mangopay v0.1.0 MangoPay.Client
Functions for MangoPay client.
Link to this section Summary
Functions
Get a client object
Get a client object
Get path called
Get path called
Update a client
Update a client
Update logo of client. The base64 encoded file which needs to be uploaded
Update logo of client. The base64 encoded file which needs to be uploaded
Link to this section Functions
Link to this function
get()
Get a client object.
Examples
{:ok, client} = MangoPay.Client.get("client_id")
Link to this function
get!()
Get a client object.
Examples
client = MangoPay.Client.get!("client_id")
Link to this function
path()
Get path called.
Examples
"/users" = MangoPay.User.path()
Link to this function
path(id)
Get path called.
Examples
"/users/id" = MangoPay.User.path(id)
Link to this function
update(params)
Update a client.
Examples
params = {
"PrimaryButtonColour": "#508c4a",
"PrimaryThemeColour": "#d0ae5f",
"AdminEmails": [ "support@mangopay.com" ],
"TechEmails": [ "support@mangopay.com" ],
"BillingEmails": [ "support@mangopay.com" ],
"FraudEmails": [ "support@mangopay.com" ],
"HeadquartersAddress": {
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"TaxNumber": "FR52BSSS",
"PlatformType": "MARKETPLACE",
"PlatformDescription": "We are a marketplace specialised in rare flipflops for Europe and America. ",
"PlatformURL": "https://www.mangopay.com"
}
{:ok, client} = MangoPay.Client.update(params)
Link to this function
update!(params)
Update a client.
Examples
params = {
"PrimaryButtonColour": "#508c4a",
"PrimaryThemeColour": "#d0ae5f",
"AdminEmails": [ "support@mangopay.com" ],
"TechEmails": [ "support@mangopay.com" ],
"BillingEmails": [ "support@mangopay.com" ],
"FraudEmails": [ "support@mangopay.com" ],
"HeadquartersAddress": {
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"TaxNumber": "FR52BSSS",
"PlatformType": "MARKETPLACE",
"PlatformDescription": "We are a marketplace specialised in rare flipflops for Europe and America. ",
"PlatformURL": "https://www.mangopay.com"
}
client = MangoPay.Client.update!(params)
Link to this function
update_logo(params)
Update logo of client. The base64 encoded file which needs to be uploaded
Examples
{:ok, client} = MangoPay.Client.update_logo(%{File: "blablaha"})
Link to this function
update_logo!(params)
Update logo of client. The base64 encoded file which needs to be uploaded
Examples
client = MangoPay.Client.update_logo!(%{File: "blablaha"})