Sha256: 1ae94ead408b7d8480c315a6d1bbd40f98e741d74f3c4d4e0b85e37a76d300a1

Contents?: true

Size: 500 Bytes

Versions: 34

Compression:

Stored size: 500 Bytes

Contents

module MangoPay

  # See http://docs.mangopay.com/api-references/payins/preauthorized-payin/
  class PreAuthorization < Resource
    include HTTPCalls::Update
    include HTTPCalls::Fetch

    def self.create(params, idempotency_key = nil)
      MangoPay.request(:post, "#{url}/card/direct", params, {}, idempotency_key)
    end

    def self.transactions(pre_authorization_id, filters = {})
      MangoPay.request(:get, "#{url}/#{pre_authorization_id}/transactions", {}, filters)
    end

  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

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