Unity Plugin Modify Subscription Methods
Requests are initiated by the developer as method calls. Parameters and events are described in the Supporting Data Objects table below.| Return Type | Method | Method Summary | Event |
|---|---|---|---|
| RequestOutput | ModifySubscription(ModifySubscriptionInput input) | Initiates a request to modify subscription for a term sku with a given proration mode. | ModifySubscriptionResponse |
Modify Subscription Supporting Data Objects
Objects used as method and event parameters are described in the following table.| Object | Members | Description |
|---|---|---|
| ModifySubscriptionInput | SkuInput skuInput | SkuInput for the subscription term. |
string prorationMode | ProrationMode specifies when the modification takes effect with the value of IMMEDIATE or DEFERRED. | |
| ModifySubscriptionResponse | string requestId | The request ID originally returned by ModifySubscription. |
AmazonUserData amazonUserData | See AmazonUserData. | |
List receipts | See PurchaseReceipt. | |
string status | Same as PurchaseResponse status. | |
| PurchaseReceipt | string receiptId | A receipt ID, which is a unique identifier of a purchase. |
long cancelDate | The cancel date for the purchase, in milliseconds since January 1, 1970, 00:00:00 GMT, or 0 if it is not canceled. | |
long purchaseDate | The purchase date for the purchase, in milliseconds since January 1, 1970, 00:00:00 GMT. | |
string productType | The type of product. Can be CONSUMABLE, ENTITLED or SUBSCRIPTION. See Understanding In-App Purchasing for more information. | |
long deferredDate | Date for deferred modification if modified in deferred proration mode. See Deferred ProrationMode for more information. | |
string deferredSku | The Sku the customer will be switching from in deferred mode. | |
string termSku | New Sku the customer will switch to. |

