|
4985 | 4985 | },
|
4986 | 4986 | "subscriptionsv2": {
|
4987 | 4987 | "methods": {
|
| 4988 | + "cancel": { |
| 4989 | + "description": "Cancel a subscription purchase for the user.", |
| 4990 | + "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", |
| 4991 | + "httpMethod": "POST", |
| 4992 | + "id": "androidpublisher.purchases.subscriptionsv2.cancel", |
| 4993 | + "parameterOrder": [ |
| 4994 | + "packageName", |
| 4995 | + "token" |
| 4996 | + ], |
| 4997 | + "parameters": { |
| 4998 | + "packageName": { |
| 4999 | + "description": "Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing').", |
| 5000 | + "location": "path", |
| 5001 | + "required": true, |
| 5002 | + "type": "string" |
| 5003 | + }, |
| 5004 | + "token": { |
| 5005 | + "description": "Required. The token provided to the user's device when the subscription was purchased.", |
| 5006 | + "location": "path", |
| 5007 | + "required": true, |
| 5008 | + "type": "string" |
| 5009 | + } |
| 5010 | + }, |
| 5011 | + "path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}:cancel", |
| 5012 | + "request": { |
| 5013 | + "$ref": "CancelSubscriptionPurchaseRequest" |
| 5014 | + }, |
| 5015 | + "response": { |
| 5016 | + "$ref": "CancelSubscriptionPurchaseResponse" |
| 5017 | + }, |
| 5018 | + "scopes": [ |
| 5019 | + "https://www.googleapis.com/auth/androidpublisher" |
| 5020 | + ] |
| 5021 | + }, |
4988 | 5022 | "get": {
|
4989 | 5023 | "description": "Get metadata about a subscription",
|
4990 | 5024 | "flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptionsv2/tokens/{token}",
|
|
5521 | 5555 | }
|
5522 | 5556 | }
|
5523 | 5557 | },
|
5524 |
| - "revision": "20250828", |
| 5558 | + "revision": "20250903", |
5525 | 5559 | "rootUrl": "https://androidpublisher.googleapis.com/",
|
5526 | 5560 | "schemas": {
|
5527 | 5561 | "Abi": {
|
|
6736 | 6770 | },
|
6737 | 6771 | "type": "object"
|
6738 | 6772 | },
|
| 6773 | + "CancelSubscriptionPurchaseRequest": { |
| 6774 | + "description": "Request for the purchases.subscriptionsv2.cancel API.", |
| 6775 | + "id": "CancelSubscriptionPurchaseRequest", |
| 6776 | + "properties": { |
| 6777 | + "cancellationContext": { |
| 6778 | + "$ref": "CancellationContext", |
| 6779 | + "description": "Required. Additional details around the subscription revocation." |
| 6780 | + } |
| 6781 | + }, |
| 6782 | + "type": "object" |
| 6783 | + }, |
| 6784 | + "CancelSubscriptionPurchaseResponse": { |
| 6785 | + "description": "Response for the purchases.subscriptionsv2.cancel API.", |
| 6786 | + "id": "CancelSubscriptionPurchaseResponse", |
| 6787 | + "properties": {}, |
| 6788 | + "type": "object" |
| 6789 | + }, |
6739 | 6790 | "CancelSurveyResult": {
|
6740 | 6791 | "description": "Result of the cancel survey when the subscription was canceled by the user.",
|
6741 | 6792 | "id": "CancelSurveyResult",
|
|
6790 | 6841 | },
|
6791 | 6842 | "type": "object"
|
6792 | 6843 | },
|
| 6844 | + "CancellationContext": { |
| 6845 | + "description": "Cancellation context of the purchases.subscriptionsv2.cancel API.", |
| 6846 | + "id": "CancellationContext", |
| 6847 | + "properties": { |
| 6848 | + "cancellationType": { |
| 6849 | + "description": "Required. The type of cancellation for the purchased subscription.", |
| 6850 | + "enum": [ |
| 6851 | + "CANCELLATION_TYPE_UNSPECIFIED", |
| 6852 | + "USER_REQUESTED_STOP_RENEWALS", |
| 6853 | + "DEVELOPER_REQUESTED_STOP_PAYMENTS" |
| 6854 | + ], |
| 6855 | + "enumDescriptions": [ |
| 6856 | + "Cancellation type unspecified.", |
| 6857 | + "Cancellation requested by the user, and the subscription can be restored. It only stops the subscription's next renewal. For an installment subscription, users still need to finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments", |
| 6858 | + "Cancellation requested by the developer, and the subscription cannot be restored. It stops the subscription's next payment. For an installment subscription, users will not need to pay the next payment and finish the commitment period. For more details on renewals and payments, see https://developer.android.com/google/play/billing/subscriptions#installments" |
| 6859 | + ], |
| 6860 | + "type": "string" |
| 6861 | + } |
| 6862 | + }, |
| 6863 | + "type": "object" |
| 6864 | + }, |
6793 | 6865 | "CancellationEvent": {
|
6794 | 6866 | "description": "Details of when the order was canceled.",
|
6795 | 6867 | "id": "CancellationEvent",
|
|
0 commit comments