Paysafe.Types.Subscription (Paysafe v1.0.0)

Copy Markdown View Source

Represents a Payment Scheduler Subscription.

Summary

Types

status()

@type status() ::
  :active
  | :inactive
  | :suspended
  | :cancelled
  | :expired
  | :future
  | :completed

t()

@type t() :: %Paysafe.Types.Subscription{
  amount: pos_integer(),
  currency_code: String.t(),
  id: String.t() | nil,
  merchant_customer_id: String.t(),
  next_payment_date: String.t() | nil,
  num_payments_remaining: non_neg_integer() | nil,
  plan_id: String.t(),
  raw: map(),
  status: status()
}