Class: MangoPay::Transfer

Inherits:
Resource show all
Includes:
HTTPCalls::Create, HTTPCalls::Fetch, HTTPCalls::Refund
Defined in:
lib/mangopay/transfer.rb

Overview

Class Method Summary collapse

Methods included from HTTPCalls::Refund

included

Methods included from HTTPCalls::Fetch

included, parse_id_or_filters

Methods included from HTTPCalls::Create

included

Methods inherited from Resource

class_name, url

Class Method Details

.refunds(transfer_id, filters = {}) ⇒ Object

Fetches list of refunds belonging to given transfer_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



15
16
17
18
# File 'lib/mangopay/transfer.rb', line 15

def self.refunds(transfer_id, filters = {})
  url = url(transfer_id) + '/refunds'
  MangoPay.request(:get, url, {}, filters)
end