mangopay v0.1.0 MangoPay.Transaction

Functions for MangoPay transaction.

Link to this section Summary

Functions

List all transactions

List all transactions

List all transactions by bank account

List all transactions by bank account

List all transactions by credit card

List all transactions by credit card

List all transactions by client wallet

List all transactions by client wallet

List all transactions by dispute

List all transactions by dispute

List all transactions by mandate

List all transactions by mandate

List all transactions by pre authorization

List all transactions by pre authorization

List all transactions by user

List all transactions by user

List all transactions by wallet

List all transactions by wallet

Get path called

Get path called

Link to this section Functions

Link to this function all(query \\ %{})

List all transactions.

Examples

{:ok, transactions} = MangoPay.Transaction.all
Link to this function all!(query \\ %{})

List all transactions.

Examples

transactions = MangoPay.Transaction.all!
Link to this function all_by_bank_account(id, query \\ %{})

List all transactions by bank account.

Examples

bank_account_id     = Id of a bank_account
query               = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_bank_account(bank_account_id, query)
Link to this function all_by_bank_account!(id, query \\ %{})

List all transactions by bank account.

Examples

bank_account_id   = Id of a bank_account
query             = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
transactions      = MangoPay.Transaction.all_by_bank_account!(bank_account_id, query)
Link to this function all_by_card(id, query \\ %{})

List all transactions by credit card.

Examples

card_id   = Id of a card
query     = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_card(card_id, query)
Link to this function all_by_card!(id, query \\ %{})

List all transactions by credit card.

Examples

card_id   = Id of a card
query     = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_card!(card_id, query)
Link to this function all_by_client_wallet(funds_type, currency, query \\ %{})

List all transactions by client wallet.

Examples

funds_type   = Funds Type like, Fees or Credit
currency     = National currency
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_client_wallet(funds_type, currency, query)
Link to this function all_by_client_wallet!(funds_type, currency, query \\ %{})

List all transactions by client wallet.

Examples

funds_type   = Funds Type like, Fees or Credit
currency     = National currency
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_client_wallet!(funds_type, currency, query)
Link to this function all_by_dispute(id, query \\ %{})

List all transactions by dispute.

Examples

dispute_id           = Id of a dispute
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_dispute(dispute_id, query)
Link to this function all_by_dispute!(id, query \\ %{})

List all transactions by dispute.

Examples

dispute_id           = Id of a dispute
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_dispute!(dispute_id, query)
Link to this function all_by_mandate(id, query \\ %{})

List all transactions by mandate.

Examples

mandate_id   = Id of a mandate
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_mandate(mandate_id, query)
Link to this function all_by_mandate!(id, query \\ %{})

List all transactions by mandate.

Examples

mandate_id   = Id of a mandate
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_mandate!(mandate_id, query)
Link to this function all_by_pre_authorization(id, query \\ %{})

List all transactions by pre authorization.

Examples

pre_authorization_id = Id of a bank_account
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC"
}
{:ok, transactions}  = MangoPay.Transaction.all_by_pre_authorization(pre_authorization_id, query)
Link to this function all_by_pre_authorization!(id, query \\ %{})

List all transactions by pre authorization.

Examples

pre_authorization_id = Id of a bank_account
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC"
}
transactions         = MangoPay.Transaction.all_by_pre_authorization!(pre_authorization_id, query)
Link to this function all_by_user(id, query \\ %{})

List all transactions by user.

Examples

user_id             = Id of a user
query               = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_user(user_id, query)
Link to this function all_by_user!(id, query \\ %{})

List all transactions by user.

Examples

user_id           = Id of a user
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_user!(user_id, query)
Link to this function all_by_wallet(id, query \\ %{})

List all transactions by wallet.

Examples

wallet_id           = Id of a wallet
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
{:ok, transactions} = MangoPay.Transaction.all_by_wallet(wallet_id, query)
Link to this function all_by_wallet!(id, query \\ %{})

List all transactions by wallet.

Examples

wallet_id           = Id of a wallet
query        = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "BeforeDate": 1463440221,
  "AfterDate": 1431817821,
  "Status": "CREATED,FAILED",
  "Nature": "REGULAR,REFUND",
  "Type": "PAYIN,PAYOUT",
  "ResultCode": "000000,009199"
}
transactions = MangoPay.Transaction.all_by_wallet!(wallet_id, query)

Get path called.

Examples

"/users" = MangoPay.User.path()

Get path called.

Examples

"/users/id" = MangoPay.User.path(id)