google-apis-paymentsresellersubscription_v1 0.43.0 → 0.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +201 -3
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +3 -3
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +102 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +37 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9b69cfe4bc84e9eb1d7092c367789e1517ba439d65186931f66eede2749b3c
|
4
|
+
data.tar.gz: dd3cd5d8fe04ea39ce31cbff44c76998be1f23d6e44b2ee4a3c083e2bbe4f929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf85fa29fd5222436b127c581eb44a8c0a6eb8eee02ec2bed9e02032b7e10c2db77da7be72f7bb7b9d1c5601fcd0ef8b8e28f36cf19b156821f6436bb538f88
|
7
|
+
data.tar.gz: 610687facfc086b722b6d0e2899e74dd4c605fd61f1a304a1f6e82c772905922883820ae43438947b79963fab336db2465de27cd324878dd0c7e84bc872bce92
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-paymentsresellersubscription_v1
|
2
2
|
|
3
|
+
### v0.45.0 (2024-12-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241211
|
6
|
+
|
7
|
+
### v0.44.0 (2024-11-17)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20241110
|
10
|
+
* Regenerated using generator version 0.15.1
|
11
|
+
|
3
12
|
### v0.43.0 (2024-06-23)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240616
|
@@ -106,6 +106,48 @@ module Google
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
+
# Intent message for creating a Subscription resource.
|
110
|
+
class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
|
111
|
+
include Google::Apis::Core::Hashable
|
112
|
+
|
113
|
+
# Required. The parent resource name, which is the identifier of the partner.
|
114
|
+
# Corresponds to the JSON property `parent`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :parent
|
117
|
+
|
118
|
+
# A subscription serves as a central billing entity between an external partner
|
119
|
+
# and Google. The underlying Google services rely on the subscription state to
|
120
|
+
# grant or revoke the user's service entitlement. It's important to note that
|
121
|
+
# the subscription state may not always perfectly align with the user's service
|
122
|
+
# entitlement. For example, some Google services may continue providing access
|
123
|
+
# to the user until the current billing cycle ends, even if the subscription has
|
124
|
+
# been immediately canceled. However, other services may not do the same. To
|
125
|
+
# fully understand the specific details, please consult the relevant contract or
|
126
|
+
# product policy.
|
127
|
+
# Corresponds to the JSON property `subscription`
|
128
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription]
|
129
|
+
attr_accessor :subscription
|
130
|
+
|
131
|
+
# Required. Identifies the subscription resource on the Partner side. The value
|
132
|
+
# is restricted to 63 ASCII characters at the maximum. If a subscription was
|
133
|
+
# previously created with the same subscription_id, we will directly return that
|
134
|
+
# one.
|
135
|
+
# Corresponds to the JSON property `subscriptionId`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :subscription_id
|
138
|
+
|
139
|
+
def initialize(**args)
|
140
|
+
update!(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Update properties of this object
|
144
|
+
def update!(**args)
|
145
|
+
@parent = args[:parent] if args.key?(:parent)
|
146
|
+
@subscription = args[:subscription] if args.key?(:subscription)
|
147
|
+
@subscription_id = args[:subscription_id] if args.key?(:subscription_id)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
109
151
|
# Describes the length of a period of a time.
|
110
152
|
class GoogleCloudPaymentsResellerSubscriptionV1Duration
|
111
153
|
include Google::Apis::Core::Hashable
|
@@ -131,9 +173,28 @@ module Google
|
|
131
173
|
end
|
132
174
|
end
|
133
175
|
|
134
|
-
#
|
135
|
-
|
136
|
-
|
176
|
+
# Intent for entitling the previously provisioned subscription to an end user.
|
177
|
+
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
|
178
|
+
include Google::Apis::Core::Hashable
|
179
|
+
|
180
|
+
# Required. The name of the subscription resource that is entitled to the
|
181
|
+
# current end user.
|
182
|
+
# Corresponds to the JSON property `name`
|
183
|
+
# @return [String]
|
184
|
+
attr_accessor :name
|
185
|
+
|
186
|
+
def initialize(**args)
|
187
|
+
update!(**args)
|
188
|
+
end
|
189
|
+
|
190
|
+
# Update properties of this object
|
191
|
+
def update!(**args)
|
192
|
+
@name = args[:name] if args.key?(:name)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Partner request for entitling the previously provisioned subscription to an
|
197
|
+
# end user. The end user identity is inferred from the request OAuth context.
|
137
198
|
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest
|
138
199
|
include Google::Apis::Core::Hashable
|
139
200
|
|
@@ -392,6 +453,55 @@ module Google
|
|
392
453
|
end
|
393
454
|
end
|
394
455
|
|
456
|
+
# [Preview only] Request to generate a user session.
|
457
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest
|
458
|
+
include Google::Apis::Core::Hashable
|
459
|
+
|
460
|
+
# The payload that describes the user intent.
|
461
|
+
# Corresponds to the JSON property `intentPayload`
|
462
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload]
|
463
|
+
attr_accessor :intent_payload
|
464
|
+
|
465
|
+
def initialize(**args)
|
466
|
+
update!(**args)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Update properties of this object
|
470
|
+
def update!(**args)
|
471
|
+
@intent_payload = args[:intent_payload] if args.key?(:intent_payload)
|
472
|
+
end
|
473
|
+
end
|
474
|
+
|
475
|
+
# [Preview only] Response that contains the details for generated user session.
|
476
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
477
|
+
include Google::Apis::Core::Hashable
|
478
|
+
|
479
|
+
# A user session contains a short-lived token that includes information required
|
480
|
+
# to interact with Google Payments Reseller Platform using the following web
|
481
|
+
# endpoints. - A user session token should be generated dynamically for an
|
482
|
+
# authenticated user. You should refrain from sharing a token directly with a
|
483
|
+
# user in an unauthenticated context, such as SMS, or email. - You can re-
|
484
|
+
# generate new session tokens repeatedly for same `generate` request if
|
485
|
+
# necessary, regardless of the previous tokens being expired or not. You don't
|
486
|
+
# need to worry about multiple sessions resulting in duplicate fulfillments as
|
487
|
+
# guaranteed by the same subscription id. Please refer to the [Google Managed
|
488
|
+
# Signup](/payments/reseller/subscription/reference/index/User.Signup.
|
489
|
+
# Integration/Google.Managed.Signup.\(In.Preview\)) documentation for additional
|
490
|
+
# integration details.
|
491
|
+
# Corresponds to the JSON property `userSession`
|
492
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession]
|
493
|
+
attr_accessor :user_session
|
494
|
+
|
495
|
+
def initialize(**args)
|
496
|
+
update!(**args)
|
497
|
+
end
|
498
|
+
|
499
|
+
# Update properties of this object
|
500
|
+
def update!(**args)
|
501
|
+
@user_session = args[:user_session] if args.key?(:user_session)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
395
505
|
# Payload specific to Google One products.
|
396
506
|
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
397
507
|
include Google::Apis::Core::Hashable
|
@@ -429,6 +539,31 @@ module Google
|
|
429
539
|
end
|
430
540
|
end
|
431
541
|
|
542
|
+
# The payload that describes the user intent.
|
543
|
+
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
|
544
|
+
include Google::Apis::Core::Hashable
|
545
|
+
|
546
|
+
# Intent message for creating a Subscription resource.
|
547
|
+
# Corresponds to the JSON property `createIntent`
|
548
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent]
|
549
|
+
attr_accessor :create_intent
|
550
|
+
|
551
|
+
# Intent for entitling the previously provisioned subscription to an end user.
|
552
|
+
# Corresponds to the JSON property `entitleIntent`
|
553
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent]
|
554
|
+
attr_accessor :entitle_intent
|
555
|
+
|
556
|
+
def initialize(**args)
|
557
|
+
update!(**args)
|
558
|
+
end
|
559
|
+
|
560
|
+
# Update properties of this object
|
561
|
+
def update!(**args)
|
562
|
+
@create_intent = args[:create_intent] if args.key?(:create_intent)
|
563
|
+
@entitle_intent = args[:entitle_intent] if args.key?(:entitle_intent)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
432
567
|
# Response that contains the products.
|
433
568
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
434
569
|
include Google::Apis::Core::Hashable
|
@@ -845,6 +980,11 @@ module Google
|
|
845
980
|
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem>]
|
846
981
|
attr_accessor :line_items
|
847
982
|
|
983
|
+
# Describes the details of the migrated subscription.
|
984
|
+
# Corresponds to the JSON property `migrationDetails`
|
985
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails]
|
986
|
+
attr_accessor :migration_details
|
987
|
+
|
848
988
|
# Identifier. Resource name of the subscription. It will have the format of "
|
849
989
|
# partners/`partner_id`/subscriptions/`subscription_id`". This is available for
|
850
990
|
# authorizeAddon, but otherwise is response only.
|
@@ -948,6 +1088,7 @@ module Google
|
|
948
1088
|
@end_user_entitled = args[:end_user_entitled] if args.key?(:end_user_entitled)
|
949
1089
|
@free_trial_end_time = args[:free_trial_end_time] if args.key?(:free_trial_end_time)
|
950
1090
|
@line_items = args[:line_items] if args.key?(:line_items)
|
1091
|
+
@migration_details = args[:migration_details] if args.key?(:migration_details)
|
951
1092
|
@name = args[:name] if args.key?(:name)
|
952
1093
|
@partner_user_token = args[:partner_user_token] if args.key?(:partner_user_token)
|
953
1094
|
@processing_state = args[:processing_state] if args.key?(:processing_state)
|
@@ -1121,6 +1262,25 @@ module Google
|
|
1121
1262
|
end
|
1122
1263
|
end
|
1123
1264
|
|
1265
|
+
# Describes the details of the migrated subscription.
|
1266
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
|
1267
|
+
include Google::Apis::Core::Hashable
|
1268
|
+
|
1269
|
+
# Output only. The migrated subscription id in the legacy system.
|
1270
|
+
# Corresponds to the JSON property `migratedSubscriptionId`
|
1271
|
+
# @return [String]
|
1272
|
+
attr_accessor :migrated_subscription_id
|
1273
|
+
|
1274
|
+
def initialize(**args)
|
1275
|
+
update!(**args)
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
# Update properties of this object
|
1279
|
+
def update!(**args)
|
1280
|
+
@migrated_subscription_id = args[:migrated_subscription_id] if args.key?(:migrated_subscription_id)
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1124
1284
|
# Describes the spec for one promotion.
|
1125
1285
|
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
|
1126
1286
|
include Google::Apis::Core::Hashable
|
@@ -1227,6 +1387,44 @@ module Google
|
|
1227
1387
|
end
|
1228
1388
|
end
|
1229
1389
|
|
1390
|
+
# A user session contains a short-lived token that includes information required
|
1391
|
+
# to interact with Google Payments Reseller Platform using the following web
|
1392
|
+
# endpoints. - A user session token should be generated dynamically for an
|
1393
|
+
# authenticated user. You should refrain from sharing a token directly with a
|
1394
|
+
# user in an unauthenticated context, such as SMS, or email. - You can re-
|
1395
|
+
# generate new session tokens repeatedly for same `generate` request if
|
1396
|
+
# necessary, regardless of the previous tokens being expired or not. You don't
|
1397
|
+
# need to worry about multiple sessions resulting in duplicate fulfillments as
|
1398
|
+
# guaranteed by the same subscription id. Please refer to the [Google Managed
|
1399
|
+
# Signup](/payments/reseller/subscription/reference/index/User.Signup.
|
1400
|
+
# Integration/Google.Managed.Signup.\(In.Preview\)) documentation for additional
|
1401
|
+
# integration details.
|
1402
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
1403
|
+
include Google::Apis::Core::Hashable
|
1404
|
+
|
1405
|
+
# Output only. The time at which the user session expires.
|
1406
|
+
# Corresponds to the JSON property `expireTime`
|
1407
|
+
# @return [String]
|
1408
|
+
attr_accessor :expire_time
|
1409
|
+
|
1410
|
+
# Output only. The encrypted token of the user session, including the
|
1411
|
+
# information of the user's intent and request. This token should be provided
|
1412
|
+
# when redirecting the user to Google.
|
1413
|
+
# Corresponds to the JSON property `token`
|
1414
|
+
# @return [String]
|
1415
|
+
attr_accessor :token
|
1416
|
+
|
1417
|
+
def initialize(**args)
|
1418
|
+
update!(**args)
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
# Update properties of this object
|
1422
|
+
def update!(**args)
|
1423
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1424
|
+
@token = args[:token] if args.key?(:token)
|
1425
|
+
end
|
1426
|
+
end
|
1427
|
+
|
1230
1428
|
# Payload specific to Youtube products.
|
1231
1429
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
1232
1430
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module PaymentsresellersubscriptionV1
|
18
18
|
# Version of the google-apis-paymentsresellersubscription_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.45.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241211"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,12 +40,24 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class GoogleCloudPaymentsResellerSubscriptionV1Duration
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
46
52
|
include Google::Apis::Core::JsonObjectSupport
|
47
53
|
end
|
48
54
|
|
55
|
+
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
include Google::Apis::Core::JsonObjectSupport
|
59
|
+
end
|
60
|
+
|
49
61
|
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest
|
50
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
63
|
|
@@ -100,12 +112,30 @@ module Google
|
|
100
112
|
include Google::Apis::Core::JsonObjectSupport
|
101
113
|
end
|
102
114
|
|
115
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
103
127
|
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
104
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
129
|
|
106
130
|
include Google::Apis::Core::JsonObjectSupport
|
107
131
|
end
|
108
132
|
|
133
|
+
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
109
139
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
110
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
141
|
|
@@ -202,6 +232,12 @@ module Google
|
|
202
232
|
include Google::Apis::Core::JsonObjectSupport
|
203
233
|
end
|
204
234
|
|
235
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
|
236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
237
|
+
|
238
|
+
include Google::Apis::Core::JsonObjectSupport
|
239
|
+
end
|
240
|
+
|
205
241
|
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
|
206
242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
243
|
|
@@ -226,6 +262,12 @@ module Google
|
|
226
262
|
include Google::Apis::Core::JsonObjectSupport
|
227
263
|
end
|
228
264
|
|
265
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
266
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
267
|
+
|
268
|
+
include Google::Apis::Core::JsonObjectSupport
|
269
|
+
end
|
270
|
+
|
229
271
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
230
272
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
273
|
|
@@ -274,6 +316,16 @@ module Google
|
|
274
316
|
end
|
275
317
|
end
|
276
318
|
|
319
|
+
class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
|
320
|
+
# @private
|
321
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
322
|
+
property :parent, as: 'parent'
|
323
|
+
property :subscription, as: 'subscription', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription::Representation
|
324
|
+
|
325
|
+
property :subscription_id, as: 'subscriptionId'
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
277
329
|
class GoogleCloudPaymentsResellerSubscriptionV1Duration
|
278
330
|
# @private
|
279
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -282,6 +334,13 @@ module Google
|
|
282
334
|
end
|
283
335
|
end
|
284
336
|
|
337
|
+
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
|
338
|
+
# @private
|
339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
340
|
+
property :name, as: 'name'
|
341
|
+
end
|
342
|
+
end
|
343
|
+
|
285
344
|
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest
|
286
345
|
# @private
|
287
346
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -358,6 +417,22 @@ module Google
|
|
358
417
|
end
|
359
418
|
end
|
360
419
|
|
420
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest
|
421
|
+
# @private
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
423
|
+
property :intent_payload, as: 'intentPayload', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload::Representation
|
424
|
+
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
429
|
+
# @private
|
430
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
431
|
+
property :user_session, as: 'userSession', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession::Representation
|
432
|
+
|
433
|
+
end
|
434
|
+
end
|
435
|
+
|
361
436
|
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
362
437
|
# @private
|
363
438
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -368,6 +443,16 @@ module Google
|
|
368
443
|
end
|
369
444
|
end
|
370
445
|
|
446
|
+
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
|
447
|
+
# @private
|
448
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
449
|
+
property :create_intent, as: 'createIntent', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent::Representation
|
450
|
+
|
451
|
+
property :entitle_intent, as: 'entitleIntent', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent::Representation
|
452
|
+
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
371
456
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
372
457
|
# @private
|
373
458
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -495,6 +580,8 @@ module Google
|
|
495
580
|
property :free_trial_end_time, as: 'freeTrialEndTime'
|
496
581
|
collection :line_items, as: 'lineItems', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem::Representation
|
497
582
|
|
583
|
+
property :migration_details, as: 'migrationDetails', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails::Representation
|
584
|
+
|
498
585
|
property :name, as: 'name'
|
499
586
|
property :partner_user_token, as: 'partnerUserToken'
|
500
587
|
property :processing_state, as: 'processingState'
|
@@ -561,6 +648,13 @@ module Google
|
|
561
648
|
end
|
562
649
|
end
|
563
650
|
|
651
|
+
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionMigrationDetails
|
652
|
+
# @private
|
653
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
654
|
+
property :migrated_subscription_id, as: 'migratedSubscriptionId'
|
655
|
+
end
|
656
|
+
end
|
657
|
+
|
564
658
|
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec
|
565
659
|
# @private
|
566
660
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -595,6 +689,14 @@ module Google
|
|
595
689
|
end
|
596
690
|
end
|
597
691
|
|
692
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
693
|
+
# @private
|
694
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
695
|
+
property :expire_time, as: 'expireTime'
|
696
|
+
property :token, as: 'token'
|
697
|
+
end
|
698
|
+
end
|
699
|
+
|
598
700
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
599
701
|
# @private
|
600
702
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -460,6 +460,43 @@ module Google
|
|
460
460
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
461
|
execute_or_queue_command(command, &block)
|
462
462
|
end
|
463
|
+
|
464
|
+
# This API replaces user authorized OAuth consent based APIs (Create, Entitle).
|
465
|
+
# Generates a short-lived token for a user session based on the user intent. You
|
466
|
+
# can use the session token to redirect the user to Google to finish the signup
|
467
|
+
# flow. You can re-generate new session token repeatedly for the same request if
|
468
|
+
# necessary, regardless of the previous tokens being expired or not.
|
469
|
+
# @param [String] parent
|
470
|
+
# Required. The parent, the partner that can resell. Format: partners/`partner`
|
471
|
+
# @param [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest] google_cloud_payments_reseller_subscription_v1_generate_user_session_request_object
|
472
|
+
# @param [String] fields
|
473
|
+
# Selector specifying which fields to include in a partial response.
|
474
|
+
# @param [String] quota_user
|
475
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
476
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
477
|
+
# @param [Google::Apis::RequestOptions] options
|
478
|
+
# Request-specific options
|
479
|
+
#
|
480
|
+
# @yield [result, err] Result & error if block supplied
|
481
|
+
# @yieldparam result [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse] parsed result object
|
482
|
+
# @yieldparam err [StandardError] error object if request failed
|
483
|
+
#
|
484
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse]
|
485
|
+
#
|
486
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
487
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
488
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
489
|
+
def generate_partner_user_session(parent, google_cloud_payments_reseller_subscription_v1_generate_user_session_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
490
|
+
command = make_simple_command(:post, 'v1/{+parent}/userSessions:generate', options)
|
491
|
+
command.request_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest::Representation
|
492
|
+
command.request_object = google_cloud_payments_reseller_subscription_v1_generate_user_session_request_object
|
493
|
+
command.response_representation = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse::Representation
|
494
|
+
command.response_class = Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
495
|
+
command.params['parent'] = parent unless parent.nil?
|
496
|
+
command.query['fields'] = fields unless fields.nil?
|
497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
498
|
+
execute_or_queue_command(command, &block)
|
499
|
+
end
|
463
500
|
|
464
501
|
protected
|
465
502
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-paymentsresellersubscription_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.45.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-paymentsresellersubscription_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Payments Reseller Subscription API V1
|