Skip to content

Commit ce151d0

Browse files
feat(paymentsresellersubscription): update the api
#### paymentsresellersubscription:v1 The following keys were added: - schemas.CreateSubscriptionIntent.properties.cycleOptions.$ref (Total Keys: 1) - schemas.IntentPayload.properties.intentOptions.$ref (Total Keys: 1) - schemas.IntentPayloadIntentOptions (Total Keys: 3)
1 parent 43e67c2 commit ce151d0

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

docs/dyn/paymentsresellersubscription_v1.partners.userSessions.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ <h3>Method Details</h3>
9898
{ # Request to generate a user session.
9999
&quot;intentPayload&quot;: { # The payload that describes the user intent. # The user intent to generate the user session.
100100
&quot;createIntent&quot;: { # Intent message for creating a Subscription resource. # The request to create a subscription.
101+
&quot;cycleOptions&quot;: { # The cycle options when starting and resuming a subscription. # Optional. The cycle options for the subscription.
102+
&quot;initialCycleDuration&quot;: { # Describes the length of a period of a time. # Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start the subscription with this initial cycle duration starting at the request time (see available methods below). A prorated charge will be applied. This option is available to the following methods: - partners.subscriptions.provision - partners.subscriptions.resume - partners.userSessions.generate
103+
&quot;count&quot;: 42, # number of duration units to be included.
104+
&quot;unit&quot;: &quot;A String&quot;, # The unit used for the duration
105+
},
106+
},
101107
&quot;parent&quot;: &quot;A String&quot;, # Required. The parent resource name, which is the identifier of the partner.
102108
&quot;subscription&quot;: { # A subscription serves as a central billing entity between an external partner and Google. The underlying Google services rely on the subscription state to grant or revoke the user&#x27;s service entitlement. It&#x27;s important to note that the subscription state may not always perfectly align with the user&#x27;s service entitlement. For example, some Google services may continue providing access to the user until the current billing cycle ends, even if the subscription has been immediately canceled. However, other services may not do the same. To fully understand the specific details, please consult the relevant contract or product policy. # Required. The Subscription to be created.
103109
&quot;cancellationDetails&quot;: { # Describes the details of a cancelled or cancelling subscription. # Output only. Describes the details of a cancelled subscription. Only applicable to subscription of state `STATE_CANCELLED`.
@@ -238,6 +244,9 @@ <h3>Method Details</h3>
238244
&quot;entitleIntent&quot;: { # Intent for entitling the previously provisioned subscription to an end user. # The request to entitle a subscription.
239245
&quot;name&quot;: &quot;A String&quot;, # Required. The name of the subscription resource that is entitled to the current end user. It is in the format of &quot;partners/{partner_id}/subscriptions/{subscriptionId}&quot;.
240246
},
247+
&quot;intentOptions&quot;: { # The options for the intent. # Optional. The additional features for the intent.
248+
&quot;enableOfferOverride&quot;: True or False, # Optional. If true, Google may use a different product and promotion id from the ones in the `create_intent` based on the user&#x27;s eligibility. Only applicable for certain YouTube free trial offers.
249+
},
241250
},
242251
}
243252

googleapiclient/discovery_cache/documents/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"

0 commit comments

Comments
 (0)