Inttegro.PaymentMethods.OwnerAddress (inttegro v0.2.0)

Copy Markdown View Source

Represents Owner Address data in the PaymentMethods API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Saves and manages customer-owned payment methods.

A payment method always belongs to its attached customer. Tokenization may start a verification flow; inspect the returned verification state before attempting a charge. The API returns masked or provider-safe details and never returns raw reusable credentials.

Summary

Types

t()

The decoded owner address value.

Functions

Builds a Inttegro.PaymentMethods.OwnerAddress and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.PaymentMethods.OwnerAddress{
  city: String.t() | nil,
  country: String.t(),
  line_1: String.t() | nil,
  line_2: String.t() | nil,
  name: String.t() | nil,
  phone_number: String.t() | nil,
  post_code: String.t() | nil,
  region: String.t() | nil
}

The decoded owner address value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.PaymentMethods.OwnerAddress and raises KeyError when a required field is missing.