Sha256: 2ff36be5861c228fbf7c7e10b9380a3d6597bf93c4d62be515a58d898e03a861

Contents?: true

Size: 708 Bytes

Versions: 12

Compression:

Stored size: 708 Bytes

Contents

module MangoPay

  # See http://docs.mangopay.com/api-references/refund/
  class Refund < Resource
    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

12 entries across 12 versions & 1 rubygems

Version Path
mangopay-3.4.0 lib/mangopay/refund.rb
mangopay-3.3.0 lib/mangopay/refund.rb
mangopay-3.2.0 lib/mangopay/refund.rb
mangopay-3.1.0 lib/mangopay/refund.rb
mangopay-3.0.38 lib/mangopay/refund.rb
mangopay-3.0.37 lib/mangopay/refund.rb
mangopay-3.0.36 lib/mangopay/refund.rb
mangopay-3.0.35 lib/mangopay/refund.rb
mangopay-3.0.34 lib/mangopay/refund.rb
mangopay-3.0.33 lib/mangopay/refund.rb
mangopay-3.0.32 lib/mangopay/refund.rb
mangopay-3.0.31 lib/mangopay/refund.rb