Subscription class abstract
Subscription
Properties:
- id
- promotionalCode
- source_
- startDate
- endedAt - If the subscription has ended, the date the subscription ended.
- currentPeriodStart - Start of the current period that the subscription has been invoiced for.
- currentPeriodEnd - End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
- trialStart - If the subscription has a trial, the beginning of that trial.
- trialEnd - If the subscription has a trial, the end of that trial.
- cancelAt - A date in the future at which the subscription will automatically get canceled.
- canceledAt - If the subscription has been canceled, the date of that cancellation.
- status
- description - The subscription’s description, meant to be displayable to the customer.
- items
- Annotations
-
- @BuiltValue()
Constructors
- Subscription([void updates(SubscriptionBuilder b)])
-
factory
Properties
- cancelAt → DateTime?
-
A date in the future at which the subscription will automatically get canceled.
no setter
- canceledAt → DateTime?
-
If the subscription has been canceled, the date of that cancellation.
no setter
- currentPeriodEnd → DateTime
-
End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created.
no setter
- currentPeriodStart → DateTime
-
Start of the current period that the subscription has been invoiced for.
no setter
- description → String?
-
The subscription’s description, meant to be displayable to the customer.
no setter
- endedAt → DateTime?
-
If the subscription has ended, the date the subscription ended.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setter
-
items
→ BuiltList<
SubscriptionItem> ? -
no setter
- promotionalCode → String?
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source_ → SubscriptionSource?
-
no setter
- startDate → DateTime
-
no setter
- status → SubscriptionStatus
-
no setter
- trialEnd → DateTime?
-
If the subscription has a trial, the end of that trial.
no setter
- trialStart → DateTime?
-
If the subscription has a trial, the beginning of that trial.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(SubscriptionBuilder)) → Subscription -
Rebuilds the instance.
inherited
-
toBuilder(
) → SubscriptionBuilder -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
Subscription> -
no setter