Subscription class

A subscription.

Annotations
  • @JsonSerializable.new(fieldRename: FieldRename.snake)

Constructors

Subscription(String id, String? planId, SubscriptionStatus? status, String? statusChangeNote, String? statusUpdateTime, String? startTime, String? quantity, Money? shippingAmount, Subscriber? subscriber, SubscriptionBillingInfo? billingInfo, String? createTime, String? updateTime, String? customId, bool? planOverridden, Plan? plan, List<LinkDescription>? links)
const
Subscription.fromJson(Map<String, dynamic> json)
factory

Properties

billingInfo → SubscriptionBillingInfo?
The billing details for the subscription. If the subscription was or is active, these fields are populated.
final
createTime → String?
The date and time, in Internet date and time format
final
customId → String?
The custom id for the subscription. Can be invoice id.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The PayPal-generated ID for the subscription.
final
An array of request-related HATEOAS links.
final
plan → Plan?
Indicates whether the subscription has overridden any plan attributes.
final
planId → String?
The ID of the plan.
final
planOverridden → bool?
Indicates whether the subscription has overridden any plan attributes.
final
quantity → String?
The quantity of the product in the subscription.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shippingAmount → Money?
The currency and amount for a financial transaction, such as a balance or payment due.
final
startTime → String?
The date and time, in Internet date and time format
final
status → SubscriptionStatus?
The status of the subscription.
final
statusChangeNote → String?
The reason or notes for the status of the subscription.
final
statusUpdateTime → String?
The date and time, in Internet date and time format
final
subscriber → Subscriber?
The subscriber response information.
final
updateTime → String?
The date and time, 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