Inttegro.PaymentMethods.UpdateRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Update Request in the PaymentMethods API.

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

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()

A validated update request request.

Functions

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

Types

t()

@type t() :: %Inttegro.PaymentMethods.UpdateRequest{
  active: boolean() | nil,
  archived: boolean() | nil,
  custom_data: %{optional(String.t()) => String.t() | nil} | nil,
  owner: Inttegro.PaymentMethods.UpdateRequestOwner.t() | nil,
  payment_method_id: String.t()
}

A validated update request request.

Functions

new!(attrs \\ %{})

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

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