Inttegro.PaymentMethods.TokenizeMobileMoneyRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Tokenize Mobile Money 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 tokenize mobile money request request.

Functions

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

Types

t()

@type t() :: %Inttegro.PaymentMethods.TokenizeMobileMoneyRequest{
  custom_data: %{optional(String.t()) => String.t()} | nil,
  customer_id: String.t(),
  mobile_money:
    Inttegro.PaymentMethods.TokenizeMobileMoneyRequestMobileMoney.t(),
  owner: Inttegro.PaymentMethods.OwnerInput.t(),
  type: Inttegro.PaymentMethods.Type.t()
}

A validated tokenize mobile money request request.

Functions

new!(attrs \\ %{})

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

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