SchemasCommerceSubscriptionItem class
Constructors
- SchemasCommerceSubscriptionItem({required SchemasCommerceSubscriptionItemObjectEnum object, required String id, required String instanceId, required SchemasCommerceSubscriptionItemStatusEnum status, CommerceSubscriptionCreditResponse? credit, required String planId, String? priceId, required SchemasCommercePlan? plan, required SchemasCommerceSubscriptionItemPlanPeriodEnum planPeriod, required String paymentSourceId, CommercePaymentSourceResponse? paymentSource, CommerceMoneyResponse? lifetimePaid, CommerceMoneyResponse? amount, CommerceSubscriptionItemNextPaymentResponse? nextInvoice, CommerceSubscriptionItemNextPaymentResponse? nextPayment, required String payerId, SchemasCommercePayerResponse? payer, required bool isFreeTrial, int? periodStart, int? periodEnd, required String prorationDate, int? canceledAt, int? pastDueAt, int? endedAt, required int createdAt, required int updatedAt})
- Returns a new SchemasCommerceSubscriptionItem instance.
Properties
- amount ↔ CommerceMoneyResponse?
-
Current amount for this subscription.
getter/setter pair
- canceledAt ↔ int?
-
Unix timestamp (in milliseconds) when the subscription was canceled.
getter/setter pair
- createdAt ↔ int
-
Unix timestamp (in milliseconds) when the subscription was created.
getter/setter pair
- credit ↔ CommerceSubscriptionCreditResponse?
-
Credit information (only available in PaymentAttempt events).
getter/setter pair
- endedAt ↔ int?
-
Unix timestamp (in milliseconds) when the subscription ended.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String
-
Unique identifier for the subscription item.
getter/setter pair
- instanceId ↔ String
-
Unique identifier for the Clerk instance.
getter/setter pair
- isFreeTrial ↔ bool
-
Whether this subscription is currently on a free trial.
getter/setter pair
- lifetimePaid ↔ CommerceMoneyResponse?
-
Total amount paid over the lifetime of this subscription.
getter/setter pair
- nextInvoice ↔ CommerceSubscriptionItemNextPaymentResponse?
-
Information about the next invoice.
getter/setter pair
- nextPayment ↔ CommerceSubscriptionItemNextPaymentResponse?
-
Information about the next payment.
getter/setter pair
- object ↔ SchemasCommerceSubscriptionItemObjectEnum
-
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
- pastDueAt ↔ int?
-
Unix timestamp (in milliseconds) when the subscription became past due.
getter/setter pair
- payer ↔ SchemasCommercePayerResponse?
-
The payer associated with this subscription.
getter/setter pair
- payerId ↔ String
-
Unique identifier for the payer.
getter/setter pair
- paymentSource ↔ CommercePaymentSourceResponse?
-
The payment source associated with this subscription.
getter/setter pair
- paymentSourceId ↔ String
-
Unique identifier for the payment source.
getter/setter pair
- periodEnd ↔ int?
-
Unix timestamp (in milliseconds) when the current period ends.
getter/setter pair
- periodStart ↔ int?
-
Unix timestamp (in milliseconds) when the current period started.
getter/setter pair
- plan ↔ SchemasCommercePlan?
-
The associated commerce plan.
getter/setter pair
- planId ↔ String
-
Unique identifier for the associated plan.
getter/setter pair
- planPeriod ↔ SchemasCommerceSubscriptionItemPlanPeriodEnum
-
The billing period for this subscription.
getter/setter pair
- priceId ↔ String?
-
Unique identifier for the associated price
getter/setter pair
- prorationDate ↔ String
-
Date used for proration calculations.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ SchemasCommerceSubscriptionItemStatusEnum
-
Current status of the subscription item.
getter/setter pair
- updatedAt ↔ int
-
Unix timestamp (in milliseconds) when the subscription was last updated.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → SchemasCommerceSubscriptionItem? -
Returns a new SchemasCommerceSubscriptionItem instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< SchemasCommerceSubscriptionItem> -
mapFromJson(
dynamic json) → Map< String, SchemasCommerceSubscriptionItem> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< SchemasCommerceSubscriptionItem> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.