Inttegro.PaymentMethods.PaymentMethod (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.PaymentMethods.PaymentMethod{
  active: boolean(),
  archived_at: String.t() | nil,
  bank_account: Inttegro.PaymentMethods.PaymentMethodBankAccount.t() | nil,
  created_at: String.t(),
  custom_data: %{optional(String.t()) => String.t()} | nil,
  customer_id: String.t(),
  ephemeral: boolean() | nil,
  expires_on: String.t() | nil,
  id: String.t(),
  mobile_money: Inttegro.PaymentMethods.PaymentMethodMobileMoney.t() | nil,
  owner: Inttegro.PaymentMethods.PaymentMethodOwner.t() | nil,
  supplied: Inttegro.PaymentMethods.PaymentMethodSupplied.t() | nil,
  type: Inttegro.PaymentMethods.PaymentMethodType.t(),
  verification: Inttegro.PaymentMethods.PaymentMethodVerification.t() | nil,
  verified_at: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

new!(attrs \\ %{})

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

to_map(value)

@spec to_map(t()) :: map()