AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.AdaptySubscriptionUpdateParameters Class Referencesealed

Android only. Turns a purchase into an upgrade or downgrade of a subscription the user already has, rather than a new one. Pass it through AdaptyPurchaseParameters.SubscriptionUpdateParams; iOS handles the change itself through the subscription group and ignores this. More...

Public Member Functions

 AdaptySubscriptionUpdateParameters (string oldSubVendorProductId, AdaptySubscriptionUpdateReplacementMode replacementMode)
 Describes the subscription this purchase replaces.
override string ToString ()
 A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Public Attributes

string OldSubVendorProductId
 The Google Play product id of the subscription being replaced. Required.
AdaptySubscriptionUpdateReplacementMode ReplacementMode
 When the change takes effect and how the remaining time is credited. Required.

Detailed Description

Android only. Turns a purchase into an upgrade or downgrade of a subscription the user already has, rather than a new one. Pass it through AdaptyPurchaseParameters.SubscriptionUpdateParams; iOS handles the change itself through the subscription group and ignores this.

Constructor & Destructor Documentation

◆ AdaptySubscriptionUpdateParameters()

AdaptySDK.AdaptySubscriptionUpdateParameters.AdaptySubscriptionUpdateParameters ( string oldSubVendorProductId,
AdaptySubscriptionUpdateReplacementMode replacementMode )

Describes the subscription this purchase replaces.

Parameters
oldSubVendorProductIdThe Google Play product id of the subscription being replaced.
Parameters
replacementModeWhen the change takes effect.
Exceptions
ArgumentNullExceptionoldSubVendorProductId is null.

Member Function Documentation

◆ ToString()

override string AdaptySDK.AdaptySubscriptionUpdateParameters.ToString ( )

A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Member Data Documentation

◆ OldSubVendorProductId

string AdaptySDK.AdaptySubscriptionUpdateParameters.OldSubVendorProductId

The Google Play product id of the subscription being replaced. Required.

◆ ReplacementMode

AdaptySubscriptionUpdateReplacementMode AdaptySDK.AdaptySubscriptionUpdateParameters.ReplacementMode

When the change takes effect and how the remaining time is credited. Required.


The documentation for this class was generated from the following file: