Sha256: 425b4d5916833ac6cbff66a47c93ea947df8dd6fe1f1a3208a9ace305e43d157

Contents?: true

Size: 900 Bytes

Versions: 1

Compression:

Stored size: 900 Bytes

Contents

module MangoPay

  class WithdrawalContribution < MangoPay::Ressource

    # Create a withdrawal contribution
    #
    # * *Args*    :
    #   - +data+ -> A JSON with the following attributes (Square brackets for optionals):
    #               * [Tag]
    #               * UserID
    #               * WalletID
    #               * AmountDeclared
    # * *Returns* :
    #   - A withdrawal contribution object
    #
    def self.create(data)
      post_request('contributions-by-withdrawal', data)
    end


    # Get a withdrawal contribution
    #
    # * *Args*    :
    #   - +withdrawal_contribution_id+ -> The id of the withdrawal contribution you want to retrieve
    # * *Returns* :
    #   - A withdrawal contribution object
    #
    def self.get(withdrawal_contribution_id)
      get_request(File.join('contributions-by-withdrawal', withdrawal_contribution_id.to_s))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mangopay-2.0.0 lib/mangopay/withdrawal_contribution.rb