mangopay v0.1.0 MangoPay.Refund

Functions for MangoPay refund.

Link to this section Summary

Functions

List all refunds by pay in

List all refunds by pay in

List all refund by pay out

List all refund by pay out

List all refunds by repudiation

List all refunds by repudiation

List all refunds by transfer

List all refunds by transfer

Get a refund

Get a refund

Get path called

Get path called

Link to this section Functions

Link to this function all_by_pay_in(id, query \\ %{})

List all refunds by pay in.

Examples

pay_in_id      = Id of a transfer
query          = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, refunds} = MangoPay.Refund.all_by_pay_in(pay_in_id, query)
Link to this function all_by_pay_in!(id, query \\ %{})

List all refunds by pay in.

Examples

pay_in_id      = Id of a transfer
query          = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
refunds        = MangoPay.Refund.all_by_pay_in!(pay_in_id, query)
Link to this function all_by_pay_out(id, query \\ %{})

List all refund by pay out.

Examples

pay_out_id    = Id of a transfer
query         = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, refund} = MangoPay.Refund.all_by_pay_out(pay_out_id, query)
Link to this function all_by_pay_out!(id, query \\ %{})

List all refund by pay out.

Examples

pay_out_id = Id of a transfer
query      = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
refund     = MangoPay.Refund.all_by_pay_out!(pay_out_id, query)
Link to this function all_by_repudiation(id, query \\ %{})

List all refunds by repudiation.

Examples

repudiation_id = Id of a repudiation
query          = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, refunds} = MangoPay.Refund.all_by_repudiation(repudiation_id, query)
Link to this function all_by_repudiation!(id, query \\ %{})

List all refunds by repudiation.

Examples

repudiation_id = Id of a repudiation
query          = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
refunds        = MangoPay.Refund.all_by_repudiation!(repudiation_id, query)
Link to this function all_by_transfer(id, query \\ %{})

List all refunds by transfer.

Examples

transfer_id    = Id of a transfer
query          = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
{:ok, refunds} = MangoPay.Refund.all_by_transfer(transfer_id, query)
Link to this function all_by_transfer!(id, query \\ %{})

List all refunds by transfer.

Examples

transfer_id = Id of a transfer
query       = %{
  "Page": 1,
  "Per_Page": 25,
  "Sort": "CreationDate:DESC",
  "Status": "CREATED,FAILED",
  "ResultCode": "000000,009199"
}
refunds     = MangoPay.Refund.all_by_transfer!(transfer_id, query)

Get a refund.

Examples

{:ok, refund} = MangoPay.Refund.get(id)

Get a refund.

Examples

refund = MangoPay.Refund.get!(id)

Get path called.

Examples

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

Get path called.

Examples

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