Sha256: 55725785a946ebf425052d97195839616a5ec448d8dd39658e62a99a99075f2e
Contents?: true
Size: 738 Bytes
Versions: 28
Compression:
Stored size: 738 Bytes
Contents
module MangoPay # See http://docs.mangopay.com/api-references/refund/ class Refund < Resource include HTTPCalls::Create include HTTPCalls::Fetch # 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 {CREATED, SUCCEEDED, FAILED} # - +ResultCode+: string representing the transaction result def self.of_repudiation(repudiation_id, filters = {}) url = "#{MangoPay.api_path}/repudiations/#{repudiation_id}/refunds" MangoPay.request(:get, url, {}, filters) end end end
Version data entries
28 entries across 28 versions & 1 rubygems