modulr v0.4.4 Modulr.Resources.Customer

Link to this section Summary

Link to this section Functions

Link to this function create(params, driver \\ Comms.HttpDriver)

Create a customer.

Example

  Modulr.Resources.Customer.create(%{
    expectedMonthlySpend: 20000,
    type: "INDIVIDUAL",
    tcsVersion: 1,
    associates: [%{
      applicant: true,
      type: "INDIVIDUAL",
      firstName: "Joe",
      lastName: "Bloggs",
      dateOfBirth: "1995-04-24",
      type: "INDIVIDUAL",
      email: "joe@bloggs.com",
      phone: "0123123123123",
      homeAddress: %{
        addressLine1: "1 Here Street",
        country: "GB",
        postCode: "L1 1AB",
        postTown: "London"
      }
    }]
  })
Link to this function get(id, params \\ %{}, driver \\ Comms.HttpDriver)
Link to this function list(params \\ %{}, driver \\ Comms.HttpDriver)
Link to this function update(id, params, driver \\ Comms.HttpDriver)