MollieEx.PaymentLink (mollie_ex v0.4.0)

Copy Markdown View Source

Payment link resource returned by the Mollie API.

Stable fields are exposed as snake_case struct fields. The original decoded Mollie response is preserved in raw with upstream JSON casing unchanged.

Summary

Functions

Returns the hosted payment-link checkout URL when available.

Returns true when the payment link has a paid_at timestamp.

Types

links()

(since 0.1.0)
@type links() :: %{optional(String.t()) => MollieEx.Types.Link.t() | term()}

t()

(since 0.1.0)
@type t() :: %MollieEx.PaymentLink{
  allowed_methods: [String.t()] | nil,
  amount: MollieEx.Types.Money.t() | nil,
  application_fee: term(),
  archived: boolean() | nil,
  billing_address: term(),
  created_at: String.t() | nil,
  customer_id: String.t() | nil,
  description: String.t() | nil,
  expires_at: String.t() | nil,
  id: String.t(),
  lines: term(),
  links: links(),
  minimum_amount: MollieEx.Types.Money.t() | nil,
  mode: String.t() | nil,
  paid_at: String.t() | nil,
  profile_id: String.t() | nil,
  raw: map(),
  redirect_url: String.t() | nil,
  resource: String.t() | nil,
  reusable: boolean() | nil,
  sequence_type: String.t() | nil,
  shipping_address: term(),
  updated_at: String.t() | nil,
  webhook_url: String.t() | nil
}

Functions

checkout_url(payment_link)

(since 0.1.0)
@spec checkout_url(t() | term()) :: String.t() | nil

Returns the hosted payment-link checkout URL when available.

paid?(payment_link)

(since 0.1.0)
@spec paid?(t() | term()) :: boolean()

Returns true when the payment link has a paid_at timestamp.