CommercePriceTransitionDetails class

Constructors

CommercePriceTransitionDetails({required SchemasCommercePlan previousPlan, required BillingPriceResponse previousPrice, required int effectiveAt, required CommercePriceTransitionDetailsEffectiveModeEnum effectiveMode, int? nextBillingDate, required bool chargedImmediately, CommerceMoneyResponse? immediateCharge, required CommercePriceTransitionDetailsPreviousSubscriptionItemStatusEnum previousSubscriptionItemStatus, required String previousSubscriptionItemId})
Returns a new CommercePriceTransitionDetails instance.

Properties

chargedImmediately bool
Whether an immediate charge was made.
getter/setter pair
effectiveAt int
Unix timestamp (milliseconds) when the new price takes effect.
getter/setter pair
effectiveMode CommercePriceTransitionDetailsEffectiveModeEnum
When the new price takes effect.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
immediateCharge CommerceMoneyResponse?
Amount charged immediately, if any.
getter/setter pair
nextBillingDate int?
Unix timestamp (milliseconds) for the next billing date.
getter/setter pair
previousPlan SchemasCommercePlan
getter/setter pair
previousPrice BillingPriceResponse
getter/setter pair
previousSubscriptionItemId String
The ID of the previous subscription item.
getter/setter pair
previousSubscriptionItemStatus CommercePriceTransitionDetailsPreviousSubscriptionItemStatusEnum
The status of the previous subscription item after transition.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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) CommercePriceTransitionDetails?
Returns a new CommercePriceTransitionDetails instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CommercePriceTransitionDetails>
mapFromJson(dynamic json) Map<String, CommercePriceTransitionDetails>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CommercePriceTransitionDetails>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.