Skip to content

Commit

Permalink
fix(paymentsresellersubscription): update the API
Browse files Browse the repository at this point in the history
#### paymentsresellersubscription:v1

The following keys were changed:
- resources.partners.resources.subscriptions.methods.create.parameters.subscriptionId.description
- resources.partners.resources.subscriptions.methods.provision.parameters.subscriptionId.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.properties.cancellationReason.enum
- schemas.GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.properties.cancellationReason.enumDescriptions
- schemas.GoogleCloudPaymentsResellerSubscriptionV1Subscription.properties.partnerUserToken.description
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.properties.reason.enum
- schemas.GoogleCloudPaymentsResellerSubscriptionV1SubscriptionCancellationDetails.properties.reason.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed May 21, 2021
1 parent 1d4e8c8 commit af7ee0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
12 changes: 8 additions & 4 deletions discovery/paymentsresellersubscription-v1.json
Expand Up @@ -221,7 +221,7 @@
"type": "string"
},
"subscriptionId": {
"description": "Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.",
"description": "Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.",
"location": "query",
"type": "string"
}
Expand Down Expand Up @@ -323,7 +323,7 @@
"type": "string"
},
"subscriptionId": {
"description": "Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.",
"description": "Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.",
"location": "query",
"type": "string"
}
Expand Down Expand Up @@ -366,7 +366,7 @@
}
}
},
"revision": "20210501",
"revision": "20210520",
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
"schemas": {
"GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest": {
Expand All @@ -385,6 +385,7 @@
"CANCELLATION_REASON_ACCIDENTAL_PURCHASE",
"CANCELLATION_REASON_PAST_DUE",
"CANCELLATION_REASON_ACCOUNT_CLOSED",
"CANCELLATION_REASON_UPGRADE_DOWNGRADE",
"CANCELLATION_REASON_OTHER"
],
"enumDescriptions": [
Expand All @@ -394,6 +395,7 @@
"Accidential purchase.",
"Payment is past due.",
"User account closed.",
"Used for notification only, do not use in Cancel API. Cancallation due to upgrade or downgrade.",
"Other reason."
],
"type": "string"
Expand Down Expand Up @@ -670,7 +672,7 @@
"type": "string"
},
"partnerUserToken": {
"description": "Required. Identifier of the end-user in partner’s system.",
"description": "Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum.",
"type": "string"
},
"products": {
Expand Down Expand Up @@ -739,6 +741,7 @@
"CANCELLATION_REASON_ACCIDENTAL_PURCHASE",
"CANCELLATION_REASON_PAST_DUE",
"CANCELLATION_REASON_ACCOUNT_CLOSED",
"CANCELLATION_REASON_UPGRADE_DOWNGRADE",
"CANCELLATION_REASON_OTHER"
],
"enumDescriptions": [
Expand All @@ -748,6 +751,7 @@
"Accidential purchase.",
"Payment is past due.",
"User account closed.",
"Used for notification only, do not use in Cancel API. Cancallation due to upgrade or downgrade.",
"Other reason."
],
"type": "string"
Expand Down
24 changes: 11 additions & 13 deletions src/apis/paymentsresellersubscription/v1.ts
Expand Up @@ -316,7 +316,7 @@ export namespace paymentsresellersubscription_v1 {
*/
name?: string | null;
/**
* Required. Identifier of the end-user in partner’s system.
* Required. Identifier of the end-user in partner’s system. The value is restricted to 63 ASCII characters at the maximum.
*/
partnerUserToken?: string | null;
/**
Expand Down Expand Up @@ -916,7 +916,7 @@ export namespace paymentsresellersubscription_v1 {
* const res = await paymentsresellersubscription.partners.subscriptions.create({
* // Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id\}".
* parent: 'partners/my-partner',
* // Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.
* // Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
* subscriptionId: 'placeholder-value',
*
* // Request body metadata
Expand Down Expand Up @@ -1531,11 +1531,11 @@ export namespace paymentsresellersubscription_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await paymentsresellersubscription.partners.subscriptions.provision(
* {
* const res =
* await paymentsresellersubscription.partners.subscriptions.provision({
* // Required. The parent resource name, which is the identifier of the partner. It will have the format of "partners/{partner_id\}".
* parent: 'partners/my-partner',
* // Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.
* // Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
* subscriptionId: 'placeholder-value',
*
* // Request body metadata
Expand All @@ -1557,8 +1557,7 @@ export namespace paymentsresellersubscription_v1 {
* // "updateTime": "my_updateTime"
* // }
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -1707,8 +1706,8 @@ export namespace paymentsresellersubscription_v1 {
* google.options({auth: authClient});
*
* // Do the magic
* const res = await paymentsresellersubscription.partners.subscriptions.undoCancel(
* {
* const res =
* await paymentsresellersubscription.partners.subscriptions.undoCancel({
* // Required. The name of the subscription resource whose pending cancellation needs to be undone. It will have the format of "partners/{partner_id\}/subscriptions/{subscription_id\}"
* name: 'partners/my-partner/subscriptions/my-subscription',
*
Expand All @@ -1717,8 +1716,7 @@ export namespace paymentsresellersubscription_v1 {
* // request body parameters
* // {}
* },
* }
* );
* });
* console.log(res.data);
*
* // Example response
Expand Down Expand Up @@ -1849,7 +1847,7 @@ export namespace paymentsresellersubscription_v1 {
*/
parent?: string;
/**
* Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.
* Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
*/
subscriptionId?: string;

Expand Down Expand Up @@ -1896,7 +1894,7 @@ export namespace paymentsresellersubscription_v1 {
*/
parent?: string;
/**
* Required. Identifies the subscription resource on the Partner side. If a subscription was previously created with the same subscription_id, we will directly return that one.
* Required. Identifies the subscription resource on the Partner side. The value is restricted to 63 ASCII characters at the maximum. If a subscription was previously created with the same subscription_id, we will directly return that one.
*/
subscriptionId?: string;

Expand Down

0 comments on commit af7ee0d

Please sign in to comment.