Plan class

Billing plan.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Plan(String id, String? productId, PlanStatus status, String name, String? description, List<BillingCycle>? billingCycles, PaymentPreferences? paymentPreferences, Taxes? taxes, bool? quantitySupported, String? createTime, String? updateTime, List<LinkDescription>? links)
const
Plan.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
createTime String?
The date and time when the plan was created, in Internet date and time format
final
description String?
The detailed description of the plan.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique PayPal-generated ID for the plan.
final
An array of request-related HATEOAS links.
final
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. The possible values are:
final
taxes Taxes?
The tax details.
final
updateTime String?
The date and time when the plan was last updated, in Internet date and time format
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.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited