PlanRequest class
Billing plan.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
PlanRequest({required String productId, required String name, PlanStatus? status, String? description, required List<
BillingCycle> billingCycles, required PaymentPreferences paymentPreferences, Taxes? taxes, bool? quantitySupported}) -
const
-
PlanRequest.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
billingCycles
→ List<
BillingCycle> -
An array of billing cycles for trial billing and regular billing. A plan
can have at most two trial cycles and only one regular cycle.
final
- description → String?
-
The detailed description of the plan.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The plan name.
final
- paymentPreferences → PaymentPreferences
-
The payment preferences for a subscription.
final
- productId → String
-
The ID for the product.
final
- quantitySupported → bool?
-
Indicates whether you can subscribe to this plan by providing a quantity for the goods or service.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → PlanStatus?
-
The plan status. Allowed input values are CREATED and ACTIVE.
The possible values are:
final
- taxes → Taxes?
-
The tax details.
final
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited