Synctera.Businesses (Synctera v1.0.0)

Copy Markdown View Source

Synctera 'Businesses' endpoints.

Code generated by scripts/generate.py from the Synctera OpenAPI spec. Do not edit by hand — re-run mix generate (or python3 scripts/generate.py) to regenerate.

Summary

Functions

Create a business — Create a business who may act as a customer or a related business. You can then verify the identity of this customer and associate them with other people and accounts.

Like create_business/2 but returns the value directly and raises on error.

Get business — Get business by ID.

Like get_business/3 but returns the value directly and raises on error.

List business — Retrieves paginated list of businesses associated with the authorized requester.

Like list_businesses/2 but returns the value directly and raises on error.

Patch business — Update business by ID.

Like update_business/3 but returns the value directly and raises on error.

Functions

create_business(client, opts \\ [])

@spec create_business(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Create a business — Create a business who may act as a customer or a related business. You can then verify the identity of this customer and associate them with other people and accounts.

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

create_business!(client, opts)

@spec create_business!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like create_business/2 but returns the value directly and raises on error.

get_business(client, business_id, opts \\ [])

@spec get_business(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Get business — Get business by ID.

Options

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

get_business!(client, business_id, opts)

@spec get_business!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like get_business/3 but returns the value directly and raises on error.

list_businesses(client, opts \\ [])

@spec list_businesses(
  Synctera.Client.t(),
  keyword()
) :: {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

List business — Retrieves paginated list of businesses associated with the authorized requester.

Options

Query options: :id, :entity_name, :phone_number, :status, :is_customer, :sort_by, :limit, :page_token

  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

list_businesses!(client, opts)

@spec list_businesses!(
  Synctera.Client.t(),
  keyword()
) :: Synctera.JSON.json()

Like list_businesses/2 but returns the value directly and raises on error.

update_business(client, business_id, opts \\ [])

@spec update_business(Synctera.Client.t(), String.t(), keyword()) ::
  {:ok, Synctera.JSON.json()} | {:error, Synctera.Error.t()}

Patch business — Update business by ID.

Options

  • :body — request body (map), required.
  • :idempotency_key — see Synctera.Idempotency.
  • :device_info — a %Synctera.DeviceInfo{} overriding the client default.

update_business!(client, business_id, opts)

@spec update_business!(Synctera.Client.t(), String.t(), keyword()) ::
  Synctera.JSON.json()

Like update_business/3 but returns the value directly and raises on error.