modulr v0.2.0 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(%{
    applicant: true, 
    type: "INDIVIDUAL", 
    expectedMonthlySpend: 20000, 
    tcsVersion: 1, 
    associates: [%{
      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)