Inttegro.Customers.DataInput (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Data Input in the Customers API.

Build this struct with new!/1 and pass it to the corresponding function on Inttegro.Customers. Required keys are enforced immediately; optional values left as nil are omitted from the request sent to Inttegro.

Creates and maintains customer records owned by an Inttegro application.

Customers connect contact information, addresses, orders, and saved payment methods. Use a stable customer ID for repeat relationships and keep application-specific identifiers in custom_data rather than overloading personal fields.

Summary

Types

t()

A validated data input request.

Functions

Builds a Inttegro.Customers.DataInput and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Customers.DataInput{
  custom_data: %{optional(String.t()) => term()} | nil,
  email_address: String.t(),
  name: String.t(),
  phone_number: String.t(),
  reference: String.t() | nil
}

A validated data input request.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Customers.DataInput and raises KeyError when a required field is missing.