Class: DefraRubyMocks::GovpayRefundDetailsService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/defra_ruby_mocks/govpay_refund_details_service.rb

Constant Summary collapse

DEFAULT_LAST_REFUND_REQUEST_TIME =
1.day.ago.freeze

Instance Method Summary collapse

Methods inherited from BaseService

run

Instance Method Details

#run(payment_id:, refund_id:) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



8
9
10
11
12
13
14
15
16
17
18
# File 'app/services/defra_ruby_mocks/govpay_refund_details_service.rb', line 8

def run(payment_id:, refund_id:) # rubocop:disable Lint/UnusedMethodArgument
  {
    amount: 2000,
    created_date: "2019-09-19T16:53:03.213Z",
    refund_id: refund_id,
    status: status,
    settlement_summary: {
      settled_date: "2019-09-21"
    }
  }
end