mangopay v0.1.0 MangoPay.UboDeclaration

Functions for MangoPay ubo declaration.

Link to this section Summary

Functions

List all ubo declarations

List all ubo declarations

Create a ubo declaration

Create a ubo declaration

Get a ubo declaration

Get a ubo declaration

Get path called

Get path called

Update a ubo declaration

Update a ubo declaration

Link to this section Functions

List all ubo declarations.

Examples

{:ok, ubo_declarations} = MangoPay.UboDeclaration.all()

List all ubo declarations.

Examples

ubo_declarations = MangoPay.UboDeclaration.all!()
Link to this function create(id, params)

Create a ubo declaration.

Examples

params                 = %{
  "Tag": "custom meta",
  "DeclaredUBOs": [ "8494514" ]
}
{:ok, ubo_declaration} = MangoPay.UboDeclaration.create("ubo_declaration_id", params)
Link to this function create!(id, params)

Create a ubo declaration.

Examples

params                 = %{
  "Tag": "custom meta",
  "DeclaredUBOs": [ "8494514" ]
}
ubo_declaration = MangoPay.UboDeclaration.create!("ubo_declaration_id", params)

Get a ubo declaration.

Examples

{:ok, ubo_declaration} = MangoPay.UboDeclaration.get(id)

Get a ubo declaration.

Examples

ubo_declaration = MangoPay.UboDeclaration.get!(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)

Update a ubo declaration.

Examples

params          = %{
  "Id": "8494514",
  "CreationDate": 12926321,
  "Tag": "custom meta",
  "UserId": "8494514",
  "Status": "CREATED",
  "RefusedReasonTypes": [ "INVALID_UBO_DETAILS" ],
  "RefusedReasonMessage": "blabla",
  "DeclaredUBOs": [ "8494514" ]
}
{:ok, ubo_declaration} = MangoPay.UboDeclaration.update(id, params)
Link to this function update!(id, params)

Update a ubo declaration.

Examples

params          = %{
  "Id": "8494514",
  "CreationDate": 12926321,
  "Tag": "custom meta",
  "UserId": "8494514",
  "Status": "CREATED",
  "RefusedReasonTypes": [ "INVALID_UBO_DETAILS" ],
  "RefusedReasonMessage": "blabla",
  "DeclaredUBOs": [ "8494514" ]
}
ubo_declaration = MangoPay.UboDeclaration.update(id, params)