Skip to content

Commit

Permalink
feat(androidpublisher)!: update the API
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This release has breaking changes.
#### androidpublisher:v3
The following keys were deleted:
- resources.purchases.resources.subscriptions.methods.cancel.parameters.subscriptionId.description
- resources.purchases.resources.subscriptions.methods.cancel.parameters.subscriptionId.location
- resources.purchases.resources.subscriptions.methods.cancel.parameters.subscriptionId.required
- resources.purchases.resources.subscriptions.methods.cancel.parameters.subscriptionId.type

The following keys were changed:
- resources.purchases.resources.subscriptions.methods.cancel.flatPath
- resources.purchases.resources.subscriptions.methods.cancel.parameterOrder
- resources.purchases.resources.subscriptions.methods.cancel.path
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 9, 2020
1 parent 04fc2c3 commit 859a99b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
13 changes: 3 additions & 10 deletions discovery/androidpublisher-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -2147,12 +2147,11 @@
},
"cancel": {
"description": "Cancels a user's subscription purchase. The subscription remains valid until its expiration time.",
"flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel",
"flatPath": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/tokens/{token}:cancel",
"httpMethod": "POST",
"id": "androidpublisher.purchases.subscriptions.cancel",
"parameterOrder": [
"packageName",
"subscriptionId",
"token"
],
"parameters": {
Expand All @@ -2162,20 +2161,14 @@
"required": true,
"type": "string"
},
"subscriptionId": {
"description": "The purchased subscription ID (for example, 'monthly001').",
"location": "path",
"required": true,
"type": "string"
},
"token": {
"description": "The token provided to the user's device when the subscription was purchased.",
"location": "path",
"required": true,
"type": "string"
}
},
"path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel",
"path": "androidpublisher/v3/applications/{packageName}/purchases/subscriptions/tokens/{token}:cancel",
"scopes": [
"https://www.googleapis.com/auth/androidpublisher"
]
Expand Down Expand Up @@ -2671,7 +2664,7 @@
}
}
},
"revision": "20201003",
"revision": "20201007",
"rootUrl": "https://androidpublisher.googleapis.com/",
"schemas": {
"Apk": {
Expand Down
13 changes: 3 additions & 10 deletions src/apis/androidpublisher/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9237,8 +9237,6 @@ export namespace androidpublisher_v3 {
* const res = await androidpublisher.purchases.subscriptions.cancel({
* // The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
* packageName: 'placeholder-value',
* // The purchased subscription ID (for example, 'monthly001').
* subscriptionId: 'placeholder-value',
* // The token provided to the user's device when the subscription was purchased.
* token: 'placeholder-value',
* });
Expand All @@ -9255,7 +9253,6 @@ export namespace androidpublisher_v3 {
*
* @param {object} params Parameters for request
* @param {string} params.packageName The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
* @param {string} params.subscriptionId The purchased subscription ID (for example, 'monthly001').
* @param {string} params.token The token provided to the user's device when the subscription was purchased.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
Expand Down Expand Up @@ -9318,15 +9315,15 @@ export namespace androidpublisher_v3 {
{
url: (
rootUrl +
'/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel'
'/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/tokens/{token}:cancel'
).replace(/([^:]\/)\/+/g, '$1'),
method: 'POST',
},
options
),
params,
requiredParams: ['packageName', 'subscriptionId', 'token'],
pathParams: ['packageName', 'subscriptionId', 'token'],
requiredParams: ['packageName', 'token'],
pathParams: ['packageName', 'token'],
context: this.context,
};
if (callback) {
Expand Down Expand Up @@ -9955,10 +9952,6 @@ export namespace androidpublisher_v3 {
* The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
*/
packageName?: string;
/**
* The purchased subscription ID (for example, 'monthly001').
*/
subscriptionId?: string;
/**
* The token provided to the user's device when the subscription was purchased.
*/
Expand Down

0 comments on commit 859a99b

Please sign in to comment.