BillingCycle class

Billing cycle.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

BillingCycle({PricingScheme? pricingScheme, required Frequency frequency, required TenureType tenureType, int? sequence, int? totalCycles})
BillingCycle.fromJson(Map<String, dynamic> json)
factory

Properties

frequency Frequency
The frequency details for this billing cycle.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
pricingScheme PricingScheme?
The active pricing scheme for this billing cycle. A free trial billing cycle does not require a pricing scheme.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence int?
The order in which this cycle is to run among other billing cycles. For example, a trial billing cycle has a sequence of 1 while a regular billing cycle has a sequence of 2, so that trial cycle runs before the regular cycle.
getter/setter pair
tenureType TenureType
The tenure type of the billing cycle. In case of a plan having trial cycle , only 2 trial cycles are allowed per plan. The possible values are:
getter/setter pair
totalCycles int?
The number of times this billing cycle gets executed. Trial billing cycles can only be executed a finite number of times (value between 1 and 999 for total_cycles). Regular billing cycles can be executed infinite times (value of 0 for total_cycles) or a finite number of times (value between 1 and 999 for total_cycles).
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