Sha256: 8170a203b8f48c3fa6b915f67dd6768fa3198134734802605a53c5e59b402b39

Contents?: true

Size: 729 Bytes

Versions: 40

Compression:

Stored size: 729 Bytes

Contents

module MangoPay

  # See http://docs.mangopay.com/api-references/transfers/
  class Transfer < Resource
    include HTTPCalls::Create
    include HTTPCalls::Fetch
    include HTTPCalls::Refund

    # 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 {CREATED, SUCCEEDED, FAILED}
    # - +ResultCode+: string representing the transaction result
    def self.refunds(transfer_id, filters = {})
      url = url(transfer_id) + '/refunds'
      MangoPay.request(:get, url, {}, filters)
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mangopay-3.28.0 lib/mangopay/transfer.rb
mangopay-3.27.0 lib/mangopay/transfer.rb
mangopay-3.26.1 lib/mangopay/transfer.rb
mangopay-3.26.0 lib/mangopay/transfer.rb
mangopay-3.25.1 lib/mangopay/transfer.rb
mangopay-3.25.0 lib/mangopay/transfer.rb
mangopay-3.24.1 lib/mangopay/transfer.rb
mangopay-3.24.0 lib/mangopay/transfer.rb
mangopay-3.23.0 lib/mangopay/transfer.rb
mangopay-3.22.0 lib/mangopay/transfer.rb
mangopay-3.21.0 lib/mangopay/transfer.rb
mangopay-3.20.0 lib/mangopay/transfer.rb
mangopay-3.19.0 lib/mangopay/transfer.rb
mangopay-3.18.0 lib/mangopay/transfer.rb
mangopay-3.17.0 lib/mangopay/transfer.rb
mangopay-3.16.0 lib/mangopay/transfer.rb
mangopay-3.15.0 lib/mangopay/transfer.rb
mangopay-3.14.0 lib/mangopay/transfer.rb
mangopay-3.13.2 lib/mangopay/transfer.rb
mangopay-3.12.0 lib/mangopay/transfer.rb