mangopay v0.1.0 MangoPay.BankAccount
Functions for MangoPay bank account API.
Link to this section Summary
Functions
List all bank account for a user
List all bank account for a user
Create a CA bank account
Create a CA bank account
Create a GB bank account
Create a GB bank account
Create a iban bank account
Create a iban bank account
Create an other type of bank account
Create an other type of bank account
Create a US bank account
Create a US bank account
Deactivate a bank account of a user
Deactivate a bank account of a user
Get a bank account of a user
Get a bank account of a user
Get path called
Get path called
Link to this section Functions
List all bank account for a user.
Examples
{:ok, bank_accounts} = MangoPay.BankAccount.all_by_user("user_id")
List all bank account for a user.
Examples
bank_accounts = MangoPay.BankAccount.all_by_user!("user_id")
Create a CA bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"BranchCode": "00152",
"InstitutionNumber": "614",
"AccountNumber": "11696419",
"BankName": "The Big Bank"
}
{:ok, bank_account} = MangoPay.BankAccount.create_ca("user_id", params)
Create a CA bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"BranchCode": "00152",
"InstitutionNumber": "614",
"AccountNumber": "11696419",
"BankName": "The Big Bank"
}
bank_account = MangoPay.BankAccount.create_ca!("user_id", params)
Create a GB bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"SortCode": "010039",
"AccountNumber": "11696419"
}
{:ok, bank_account} = MangoPay.BankAccount.create_gb("user_id", params)
Create a GB bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"SortCode": "010039",
"AccountNumber": "11696419"
}
bank_account = MangoPay.BankAccount.create_gb!("user_id", params)
Create a iban bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"IBAN": "FR7630004000031234567890143",
"BIC": "CRLYFRPP"
}
{:ok, bank_account} = MangoPay.BankAccount.create_iban("user_id", params)
Create a iban bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"IBAN": "FR7630004000031234567890143",
"BIC": "CRLYFRPP"
}
bank_account = MangoPay.BankAccount.create_iban!("user_id", params)
Create an other type of bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"Country": "FR",
"BIC": "CRLYFRPP",
"AccountNumber": "11696419"
}
{:ok, bank_account} = MangoPay.BankAccount.create_other("user_id", params)
Create an other type of bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"Country": "FR",
"BIC": "CRLYFRPP",
"AccountNumber": "11696419"
}
bank_account = MangoPay.BankAccount.create_other!("user_id", params)
Create a US bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"AccountNumber": "11696419",
"ABA": "071000288",
"DepositAccountType": "CHECKING"
}
{:ok, bank_account} = MangoPay.BankAccount.create_us("user_id", params)
Create a US bank account.
Examples
params = %{
"Tag": "custom meta",
"OwnerAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"OwnerName": "Joe Blogs",
"AccountNumber": "11696419",
"ABA": "071000288",
"DepositAccountType": "CHECKING"
}
bank_account = MangoPay.BankAccount.create_us!("user_id", params)
Deactivate a bank account of a user.
Examples
params = %{
"Active": false
}
{:ok, bank_account} = MangoPay.BankAccount.deactivate("user_id", "bank_account", params)
Deactivate a bank account of a user.
Examples
params = %{
"Active": false
}
{:ok, bank_account} = MangoPay.BankAccount.deactivate("user_id", "bank_account", params)
Get a bank account of a user.
Examples
{:ok, client} = MangoPay.BankAccount.get_by_user("user_id")
Get a bank account of a user.
Examples
client = MangoPay.BankAccount.get_by_user!("user_id")
Get path called.
Examples
"/users" = MangoPay.User.path()
Get path called.
Examples
"/users/id" = MangoPay.User.path(id)