SubscriptionReviseRequest class

Updates the quantity of the product or service in a subscription. You can also use this method to switch the plan and update the shipping_amount, shipping_address values for the subscription. This type of update requires the buyer's consent.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

SubscriptionReviseRequest({required String planId, String? quantity, String? effectiveTime, Money? shippingAmount, AddressPortable? shippingAddress, ApplicationContext? applicationContext, Plan? plan})
SubscriptionReviseRequest.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
effectiveTime String?
The date and time when this change is effective, in Internet date and time format
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. Any existing overrides will not be carried forward during subscription revise.
final
planId String
The unique PayPal-generated ID for the plan.
final
quantity String?
The quantity of the product or service in the subscription.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingAddress AddressPortable?
The shipping address of the subscriber.
final
shippingAmount Money?
The shipping charges.
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