SUB class

Crypto-native Subscription Authorization

Constructors

SUB(List<int> bytes)
factory

Properties

AMOUNT_PER_PERIOD → int
Charge per period in the smallest unit of CURRENCY
no setter
amountPerPeriod → int
no setter
AUTH_KIND → recurringChargeMethod
On-chain recurring mechanism
no setter
authKind → recurringChargeMethod
no setter
CHAIN_SETTLEMENT → SCX?
Settlement descriptor (chain, splitter, token) that charges each period
no setter
chainSettlement → SCX?
no setter
CURRENCY → String?
Currency / token symbol, e.g. "USDC"
no setter
ENTITLEMENT_ID → String?
Reference to the durable entitlement ($ENT.ENTITLEMENT_ID)
no setter
entitlementId → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
LISTING_ID → String?
Listing this subscription pays for ($PLG.PLUGIN_ID / $STF.LISTING_ID)
no setter
listingId → String?
no setter
MAX_PERIODS → int
Maximum number of periods; 0 = until cancelled
no setter
maxPeriods → int
no setter
NEXT_CHARGE_AT → int
Unix ms of the next scheduled charge
no setter
nextChargeAt → int
no setter
PERIOD_DAYS → int
Billing period length in days (mirrors $PLG.SUBSCRIPTION_PERIOD_DAYS)
no setter
periodDays → int
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
SIGNATURE → List<int>?
Buyer's Ed25519 authorization signature over the terms
no setter
STATUS → subscriptionLifecycleStatus
Subscription lifecycle status
no setter
SUBSCRIPTION_ID → String?
Stable subscription identifier
no setter
subscriptionId → String?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

reader → const Reader<SUB>