PricingScheme class

Pricing scheme.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

PricingScheme({int? version, Money? fixedPrice, PricingModel? pricingModel, List<PricingTier>? tiers, String? createTime, String? updateTime})
PricingScheme.fromJson(Map<String, dynamic> json)
factory

Properties

createTime String?
The date and time when the plan was created, in Internet date and time format
getter/setter pair
fixedPrice Money?
The fixed amount to charge for the subscription. The changes to fixed amount are applicable to both existing and future subscriptions. For existing subscriptions, payments within 10 days of price change are not affected.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pricingModel PricingModel?
The pricing model for tiered plan. The 'tiers' parameter is required. The possible values are:
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tiers List<PricingTier>?
An array of pricing tiers which are used for billing volume/tiered plans. pricing_model field has to be specified.
getter/setter pair
updateTime String?
The date and time when the plan was last updated, in Internet date and time format
getter/setter pair
version int?
The version of the pricing scheme. Maximum value: 999.
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.
inherited