Skip to content

Commit 74c27e1

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(paymentsresellersubscription): update the API
#### paymentsresellersubscription:v1 The following keys were added: - schemas.CreateSubscriptionIntent.properties.cycleOptions.$ref - schemas.CreateSubscriptionIntent.properties.cycleOptions.description - schemas.IntentPayload.properties.intentOptions.$ref - schemas.IntentPayload.properties.intentOptions.description - schemas.IntentPayloadIntentOptions.description - schemas.IntentPayloadIntentOptions.id - schemas.IntentPayloadIntentOptions.properties.enableOfferOverride.description - schemas.IntentPayloadIntentOptions.properties.enableOfferOverride.type - schemas.IntentPayloadIntentOptions.type
1 parent 9aaa5b0 commit 74c27e1

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

discovery/paymentsresellersubscription-v1.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@
586586
}
587587
}
588588
},
589-
"revision": "20251012",
589+
"revision": "20251026",
590590
"rootUrl": "https://paymentsresellersubscription.googleapis.com/",
591591
"schemas": {
592592
"Amount": {
@@ -663,6 +663,10 @@
663663
"description": "Intent message for creating a Subscription resource.",
664664
"id": "CreateSubscriptionIntent",
665665
"properties": {
666+
"cycleOptions": {
667+
"$ref": "CycleOptions",
668+
"description": "Optional. The cycle options for the subscription."
669+
},
666670
"parent": {
667671
"description": "Required. The parent resource name, which is the identifier of the partner.",
668672
"type": "string"
@@ -997,6 +1001,21 @@
9971001
"entitleIntent": {
9981002
"$ref": "EntitleSubscriptionIntent",
9991003
"description": "The request to entitle a subscription."
1004+
},
1005+
"intentOptions": {
1006+
"$ref": "IntentPayloadIntentOptions",
1007+
"description": "Optional. The additional features for the intent."
1008+
}
1009+
},
1010+
"type": "object"
1011+
},
1012+
"IntentPayloadIntentOptions": {
1013+
"description": "The options for the intent.",
1014+
"id": "IntentPayloadIntentOptions",
1015+
"properties": {
1016+
"enableOfferOverride": {
1017+
"description": "Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` based on the user's eligibility. Only applicable for certain YouTube free trial offers.",
1018+
"type": "boolean"
10001019
}
10011020
},
10021021
"type": "object"

src/apis/paymentsresellersubscription/v1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ export namespace paymentsresellersubscription_v1 {
163163
* Intent message for creating a Subscription resource.
164164
*/
165165
export interface Schema$CreateSubscriptionIntent {
166+
/**
167+
* Optional. The cycle options for the subscription.
168+
*/
169+
cycleOptions?: Schema$CycleOptions;
166170
/**
167171
* Required. The parent resource name, which is the identifier of the partner.
168172
*/
@@ -401,6 +405,19 @@ export namespace paymentsresellersubscription_v1 {
401405
* The request to entitle a subscription.
402406
*/
403407
entitleIntent?: Schema$EntitleSubscriptionIntent;
408+
/**
409+
* Optional. The additional features for the intent.
410+
*/
411+
intentOptions?: Schema$IntentPayloadIntentOptions;
412+
}
413+
/**
414+
* The options for the intent.
415+
*/
416+
export interface Schema$IntentPayloadIntentOptions {
417+
/**
418+
* Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` based on the user's eligibility. Only applicable for certain YouTube free trial offers.
419+
*/
420+
enableOfferOverride?: boolean | null;
404421
}
405422
/**
406423
* Response that contains the products.

0 commit comments

Comments
 (0)