mangopay v0.1.0 MangoPay.Card

Functions for MangoPay credit cards.

Link to this section Summary

Functions

All card by card fingerprint

All card by card fingerprint

All cards for a user

All cards for a user

All transactions for a card fingerprint

All transactions for a card fingerprint

Create a card registration object

Create a card registration object

Deactivate a card for a user

Deactivate a card for a user

Get a card object

Get a card object

Get a card registration object

Get a card registration object

Get path called

Get path called

Create a card registration object

Create a card registration object

Link to this section Functions

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

All card by card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

{:ok, card} = MangoPay.Card.all_by_fingerprint("fingerprint")
Link to this function all_by_fingerprint!(id, query \\ %{})

All card by card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

card = MangoPay.Card.all_by_fingerprint!("fingerprint")
Link to this function all_by_user(id, query \\ %{})

All cards for a user.

Examples

id is the Id of the object user

{:ok, card} = MangoPay.Card.all_by_user("user_id")
Link to this function all_by_user!(id, query \\ %{})

All cards for a user.

Examples

id is the Id of the object user

card = MangoPay.Card.all_by_user!("user_id")
Link to this function all_transactions_by_fingerprint(fingerprint, query \\ %{})

All transactions for a card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

{:ok, card} = MangoPay.Card.all_transactions_by_fingerprint("fingerprint")
Link to this function all_transactions_by_fingerprint!(fingerprint, query \\ %{})

All transactions for a card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

card = MangoPay.Card.all_transactions_by_fingerprint!("fingerprint")
Link to this function all_user_by_fingerprint(fingerprint, query \\ %{})

All users by card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

{:ok, card} = MangoPay.Card.all_by_fingerprint("fingerprint")
Link to this function all_user_by_fingerprint!(fingerprint, query \\ %{})

All users by card fingerprint.

Examples

fingerprint is the Fingerprint of the object credit card

card = MangoPay.Card.all_by_fingerprint!("fingerprint")

Create a card registration object.

Examples

params are the infos needed to create a card registration object

{:ok, card} = MangoPay.Card.create("params")
Link to this function create!(params)

Create a card registration object.

Examples

params are the infos needed to create a card registration object

card = MangoPay.Card.create!("params")
Link to this function deactivate(id, params)

Deactivate a card for a user.

Examples

id is the CardId of the credit card

{:ok, card} = MangoPay.Card.deactivate("card_id", %{Active: false})
Link to this function deactivate!(id, params)

Deactivate a card for a user.

Examples

id is the CardId of the credit card

card = MangoPay.Card.deactivate!("card_id", %{Active: false})

Get a card object.

Examples

id is the CardId of the credit card

{:ok, card} = MangoPay.Card.get("card_id")

Get a card object.

Examples

id is the CardId of the credit card

card = MangoPay.Card.get!("card_id")
Link to this function get_registration(id)

Get a card registration object.

Examples

id is the Id of the Card registration object

{:ok, card} = MangoPay.Card.get_registration("card_id")
Link to this function get_registration!(id)

Get a card registration object.

Examples

id is the Id of the Card registration object

card = MangoPay.Card.get_registration!("card_id")

Get path called.

Examples

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

Get path called.

Examples

"/users/id" = MangoPay.User.path(id)
Link to this function update(id, params)

Create a card registration object.

Examples

params      = %{
  "Tag": "custom meta",
  "UserId": "8494514",
  "Currency": "EUR",
  "CardType": "CB_VISA_MASTERCARD"
}
{:ok, card} = MangoPay.Card.update("id", "params")
Link to this function update!(id, params)

Create a card registration object.

Examples

params      = %{
  "Tag": "custom meta",
  "UserId": "8494514",
  "Currency": "EUR",
  "CardType": "CB_VISA_MASTERCARD"
}
card = MangoPay.Card.update!("id", "params")