Class: MangoPay::Transaction
- Defined in:
- lib/mangopay/transaction.rb
Class Method Summary collapse
-
.fetch(wallet_id, filters = {}, headers = nil) ⇒ Object
Fetches list of transactions belonging to the given
wallet_id. - .url(wallet_id) ⇒ Object
Methods inherited from Resource
Class Method Details
.fetch(wallet_id, filters = {}, headers = nil) ⇒ Object
Fetches list of transactions belonging to the given wallet_id.
See also transactions for user: MangoPay::User#transactions
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, FAILEDType: TransactionType PAYOUT, TRANSFERNature: TransactionNature REFUND, REPUDIATIONBeforeDate(timestamp): filters transactions with CreationDate before this dateAfterDate(timestamp): filters transactions with CreationDate after this date See https://docs.mangopay.com/api-references/sort-lists/
15 16 17 |
# File 'lib/mangopay/transaction.rb', line 15 def fetch(wallet_id, filters={}, headers = nil) MangoPay.request(:get, url(wallet_id), {}, filters, headers) end |