Class: MangoPay::Refund
- Includes:
- HTTPCalls::Create, HTTPCalls::Fetch
- Defined in:
- lib/mangopay/refund.rb
Overview
Class Method Summary collapse
-
.of_repudiation(repudiation_id, filters = {}) ⇒ Object
Fetches list of refunds belonging to given
repudiation_id.
Methods included from HTTPCalls::Fetch
Methods included from HTTPCalls::Create
Methods inherited from Resource
Class Method Details
.of_repudiation(repudiation_id, filters = {}) ⇒ Object
Fetches list of refunds belonging to given repudiation_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
14 15 16 17 |
# File 'lib/mangopay/refund.rb', line 14 def self.of_repudiation(repudiation_id, filters = {}) url = "#{MangoPay.api_path}/repudiations/#{repudiation_id}/refunds" MangoPay.request(:get, url, {}, filters) end |