MPP.Subscription.Record (mpp v0.14.0)

Copy Markdown View Source

Persisted recurring-payment authority and settlement state.

billing_anchor is the first settlement block timestamp. Period zero is charged by activation; last_charged_period advances only after a confirmed renewal.

Summary

Types

t()

@type t() :: %MPP.Subscription.Record{
  access_key: String.t(),
  access_key_type: MPP.Methods.Tempo.KeyAuthorization.key_type(),
  billing_anchor: DateTime.t(),
  in_flight_period: non_neg_integer() | nil,
  in_flight_reference: String.t() | nil,
  key_authorization: String.t(),
  last_charged_period: non_neg_integer(),
  reference: String.t(),
  source: String.t(),
  subscription: MPP.Intents.Subscription.t(),
  subscription_id: String.t(),
  timestamp: String.t()
}