Worldpay.Schema.CustomerAgreement (Worldpay v1.0.0)

Copy Markdown View Source

Stored credential agreement types: :card_on_file | :subscription | :installment | :unscheduled

Summary

Functions

Serialize to a string-keyed map.

Types

agreement_type()

@type agreement_type() :: :card_on_file | :subscription | :installment | :unscheduled

stored_card_usage()

@type stored_card_usage() :: :first | :subsequent

t()

@type t() :: %Worldpay.Schema.CustomerAgreement{
  scheme_reference: String.t() | nil,
  stored_card_usage: stored_card_usage() | nil,
  type: agreement_type()
}

Functions

to_map(ca)

@spec to_map(t()) :: %{required(String.t()) => String.t()}

Serialize to a string-keyed map.