Class: MangoPay::PayOut
- Includes:
- HTTPCalls::Fetch
- Defined in:
- lib/mangopay/pay_out.rb
Defined Under Namespace
Modules: InstantPayoutEligibility Classes: BankWire
Class Method Summary collapse
-
.refunds(pay_out_id, filters = {}, idempotency_key = nil) ⇒ Object
Fetches list of refunds belonging to the given
pay_out_id
.
Methods included from HTTPCalls::Fetch
Methods inherited from Resource
Class Method Details
.refunds(pay_out_id, filters = {}, idempotency_key = nil) ⇒ Object
Fetches list of refunds belonging to the given pay_out_id
.
Optional filters
is a hash accepting following keys:
-
page
,per_page
,sort
: pagination and sorting params (see MangoPay::HTTPCalls::Fetch::ClassMethods#fetch) -
Status
: TransactionStatus SUCCEEDED, FAILED -
ResultCode
: string representing the transaction result
11 12 13 14 |
# File 'lib/mangopay/pay_out.rb', line 11 def self.refunds(pay_out_id, filters = {}, idempotency_key = nil) url = url(pay_out_id) + '/refunds' MangoPay.request(:get, url, {}, filters, idempotency_key) end |