SubscriptionRequest class

Create subscription request.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

SubscriptionRequest({required String planId, String? quantity, Money? shippingAmount, Subscriber? subscriber, SubscriptionBillingInfo? billingInfo, ApplicationContext? applicationContext, String? customId, Plan? plan})
SubscriptionRequest.fromJson(Map<String, dynamic> json)
factory

Properties

applicationContext ApplicationContext?
The application context, which customizes the payer experience during the subscription approval process with PayPal.
final
billingInfo SubscriptionBillingInfo?
The billing details for the subscription. If the subscription was or is active, these fields are populated.
final
customId String?
The custom id for the subscription. Can be invoice id.
final
hashCode int
The hash code for this object.
no setterinherited
plan Plan?
An inline plan object to customise the subscription. You can override plan level default attributes by providing customised values for the subscription in this object.
final
planId String
The ID of the plan.
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 shipping charges.
final
subscriber Subscriber?
The subscriber request information .
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