You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dyn/paymentsresellersubscription_v1.partners.userSessions.html
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,12 @@ <h3>Method Details</h3>
98
98
{ # Request to generate a user session.
99
99
"intentPayload": { # The payload that describes the user intent. # The user intent to generate the user session.
100
100
"createIntent": { # Intent message for creating a Subscription resource. # The request to create a subscription.
101
+
"cycleOptions": { # The cycle options when starting and resuming a subscription. # Optional. The cycle options for the subscription.
102
+
"initialCycleDuration": { # 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
+
"count": 42, # number of duration units to be included.
104
+
"unit": "A String", # The unit used for the duration
105
+
},
106
+
},
101
107
"parent": "A String", # Required. The parent resource name, which is the identifier of the partner.
102
108
"subscription": { # 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's service entitlement. It's important to note that the subscription state may not always perfectly align with the user'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.
103
109
"cancellationDetails": { # 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>
238
244
"entitleIntent": { # Intent for entitling the previously provisioned subscription to an end user. # The request to entitle a subscription.
239
245
"name": "A String", # Required. The name of the subscription resource that is entitled to the current end user. It is in the format of "partners/{partner_id}/subscriptions/{subscriptionId}".
240
246
},
247
+
"intentOptions": { # The options for the intent. # Optional. The additional features for the intent.
248
+
"enableOfferOverride": 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's eligibility. Only applicable for certain YouTube free trial offers.
"description": "Intent message for creating a Subscription resource.",
664
664
"id": "CreateSubscriptionIntent",
665
665
"properties": {
666
+
"cycleOptions": {
667
+
"$ref": "CycleOptions",
668
+
"description": "Optional. The cycle options for the subscription."
669
+
},
666
670
"parent": {
667
671
"description": "Required. The parent resource name, which is the identifier of the partner.",
668
672
"type": "string"
@@ -997,6 +1001,21 @@
997
1001
"entitleIntent": {
998
1002
"$ref": "EntitleSubscriptionIntent",
999
1003
"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.",
0 commit comments