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

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