google-apis-paymentsresellersubscription_v1 0.42.0 → 0.44.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 +180 -3
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +3 -3
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +87 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +46 -7
- 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: 0b43788999cba2a59778bc1dd4121bede52e5d7c5a65bb84ed0bb528c671af0c
|
4
|
+
data.tar.gz: a0d8094a5149d199d77aa249eee8ed1882c35a0e03ce98b11a95df8ff4ba3d26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc9bda129363b784bb27102a4ce128c11d8a87ad0c30d0180a9af72baa4771b52db0780fb436daf9fe8155be7928da96984e1e3e2b9c27089b765ccb2aca9311
|
7
|
+
data.tar.gz: b9d95a5bd7b00be418b73590d69a35b1368ece2ae3f0dd42621dd9bddd2b97c584112dd70575c80f2dce10eede7568c6f575a7886da97ae803a8772799b196d7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-paymentsresellersubscription_v1
|
2
2
|
|
3
|
+
### v0.44.0 (2024-11-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20241105
|
6
|
+
* Regenerated using generator version 0.15.1
|
7
|
+
|
8
|
+
### v0.43.0 (2024-06-23)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240616
|
11
|
+
|
3
12
|
### v0.42.0 (2024-05-19)
|
4
13
|
|
5
14
|
* Regenerated using generator version 0.15.0
|
@@ -55,7 +55,9 @@ module Google
|
|
55
55
|
# Optional. If true, Google will cancel the subscription immediately, and may or
|
56
56
|
# may not (based on the contract) issue a prorated refund for the remainder of
|
57
57
|
# the billing cycle. Otherwise, Google defers the cancelation at renewal_time,
|
58
|
-
# and will not issue a refund.
|
58
|
+
# and will not issue a refund. - YouTube subscriptions must use this option
|
59
|
+
# currently. However, the user will still have access to the subscription until
|
60
|
+
# the end of the billing cycle.
|
59
61
|
# Corresponds to the JSON property `cancelImmediately`
|
60
62
|
# @return [Boolean]
|
61
63
|
attr_accessor :cancel_immediately
|
@@ -104,6 +106,48 @@ module Google
|
|
104
106
|
end
|
105
107
|
end
|
106
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
|
+
|
107
151
|
# Describes the length of a period of a time.
|
108
152
|
class GoogleCloudPaymentsResellerSubscriptionV1Duration
|
109
153
|
include Google::Apis::Core::Hashable
|
@@ -129,8 +173,29 @@ module Google
|
|
129
173
|
end
|
130
174
|
end
|
131
175
|
|
132
|
-
#
|
133
|
-
|
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
|
+
# LINT.IfChange Partner request for entitling the previously provisioned
|
197
|
+
# subscription to an end user. The end user identity is inferred from the
|
198
|
+
# request OAuth context.
|
134
199
|
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest
|
135
200
|
include Google::Apis::Core::Hashable
|
136
201
|
|
@@ -389,6 +454,55 @@ module Google
|
|
389
454
|
end
|
390
455
|
end
|
391
456
|
|
457
|
+
# [Preview only] Request to generate a user session.
|
458
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest
|
459
|
+
include Google::Apis::Core::Hashable
|
460
|
+
|
461
|
+
# The payload that describes the user intent.
|
462
|
+
# Corresponds to the JSON property `intentPayload`
|
463
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload]
|
464
|
+
attr_accessor :intent_payload
|
465
|
+
|
466
|
+
def initialize(**args)
|
467
|
+
update!(**args)
|
468
|
+
end
|
469
|
+
|
470
|
+
# Update properties of this object
|
471
|
+
def update!(**args)
|
472
|
+
@intent_payload = args[:intent_payload] if args.key?(:intent_payload)
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
476
|
+
# [Preview only] Response that contains the details for generated user session.
|
477
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
478
|
+
include Google::Apis::Core::Hashable
|
479
|
+
|
480
|
+
# A user session contains a short-lived token that includes information required
|
481
|
+
# to interact with Google Payments Reseller Platform using the following web
|
482
|
+
# endpoints. - A user session token should be generated dynamically for an
|
483
|
+
# authenticated user. You should refrain from sharing a token directly with a
|
484
|
+
# user in an unauthenticated context, such as SMS, or email. - You can re-
|
485
|
+
# generate new session tokens repeatedly for same `generate` request if
|
486
|
+
# necessary, regardless of the previous tokens being expired or not. You don't
|
487
|
+
# need to worry about multiple sessions resulting in duplicate fulfillments as
|
488
|
+
# guaranteed by the same subscription id. Please refer to the [Google Managed
|
489
|
+
# Signup](/payments/reseller/subscription/reference/index/User.Signup.
|
490
|
+
# Integration/Google.Managed.Signup.\(In.Preview\)) documentation for additional
|
491
|
+
# integration details.
|
492
|
+
# Corresponds to the JSON property `userSession`
|
493
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession]
|
494
|
+
attr_accessor :user_session
|
495
|
+
|
496
|
+
def initialize(**args)
|
497
|
+
update!(**args)
|
498
|
+
end
|
499
|
+
|
500
|
+
# Update properties of this object
|
501
|
+
def update!(**args)
|
502
|
+
@user_session = args[:user_session] if args.key?(:user_session)
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
392
506
|
# Payload specific to Google One products.
|
393
507
|
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
394
508
|
include Google::Apis::Core::Hashable
|
@@ -426,6 +540,31 @@ module Google
|
|
426
540
|
end
|
427
541
|
end
|
428
542
|
|
543
|
+
# The payload that describes the user intent.
|
544
|
+
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
|
545
|
+
include Google::Apis::Core::Hashable
|
546
|
+
|
547
|
+
# Intent message for creating a Subscription resource.
|
548
|
+
# Corresponds to the JSON property `createIntent`
|
549
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent]
|
550
|
+
attr_accessor :create_intent
|
551
|
+
|
552
|
+
# Intent for entitling the previously provisioned subscription to an end user.
|
553
|
+
# Corresponds to the JSON property `entitleIntent`
|
554
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent]
|
555
|
+
attr_accessor :entitle_intent
|
556
|
+
|
557
|
+
def initialize(**args)
|
558
|
+
update!(**args)
|
559
|
+
end
|
560
|
+
|
561
|
+
# Update properties of this object
|
562
|
+
def update!(**args)
|
563
|
+
@create_intent = args[:create_intent] if args.key?(:create_intent)
|
564
|
+
@entitle_intent = args[:entitle_intent] if args.key?(:entitle_intent)
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
429
568
|
# Response that contains the products.
|
430
569
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
431
570
|
include Google::Apis::Core::Hashable
|
@@ -1224,6 +1363,44 @@ module Google
|
|
1224
1363
|
end
|
1225
1364
|
end
|
1226
1365
|
|
1366
|
+
# A user session contains a short-lived token that includes information required
|
1367
|
+
# to interact with Google Payments Reseller Platform using the following web
|
1368
|
+
# endpoints. - A user session token should be generated dynamically for an
|
1369
|
+
# authenticated user. You should refrain from sharing a token directly with a
|
1370
|
+
# user in an unauthenticated context, such as SMS, or email. - You can re-
|
1371
|
+
# generate new session tokens repeatedly for same `generate` request if
|
1372
|
+
# necessary, regardless of the previous tokens being expired or not. You don't
|
1373
|
+
# need to worry about multiple sessions resulting in duplicate fulfillments as
|
1374
|
+
# guaranteed by the same subscription id. Please refer to the [Google Managed
|
1375
|
+
# Signup](/payments/reseller/subscription/reference/index/User.Signup.
|
1376
|
+
# Integration/Google.Managed.Signup.\(In.Preview\)) documentation for additional
|
1377
|
+
# integration details.
|
1378
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
1379
|
+
include Google::Apis::Core::Hashable
|
1380
|
+
|
1381
|
+
# Output only. The time at which the user session expires.
|
1382
|
+
# Corresponds to the JSON property `expireTime`
|
1383
|
+
# @return [String]
|
1384
|
+
attr_accessor :expire_time
|
1385
|
+
|
1386
|
+
# Output only. The encrypted token of the user session, including the
|
1387
|
+
# information of the user's intent and request. This token should be provided
|
1388
|
+
# when redirecting the user to Google.
|
1389
|
+
# Corresponds to the JSON property `token`
|
1390
|
+
# @return [String]
|
1391
|
+
attr_accessor :token
|
1392
|
+
|
1393
|
+
def initialize(**args)
|
1394
|
+
update!(**args)
|
1395
|
+
end
|
1396
|
+
|
1397
|
+
# Update properties of this object
|
1398
|
+
def update!(**args)
|
1399
|
+
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
1400
|
+
@token = args[:token] if args.key?(:token)
|
1401
|
+
end
|
1402
|
+
end
|
1403
|
+
|
1227
1404
|
# Payload specific to Youtube products.
|
1228
1405
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
1229
1406
|
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.44.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 = "20241105"
|
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
|
|
@@ -226,6 +256,12 @@ module Google
|
|
226
256
|
include Google::Apis::Core::JsonObjectSupport
|
227
257
|
end
|
228
258
|
|
259
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
260
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
261
|
+
|
262
|
+
include Google::Apis::Core::JsonObjectSupport
|
263
|
+
end
|
264
|
+
|
229
265
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
230
266
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
231
267
|
|
@@ -274,6 +310,16 @@ module Google
|
|
274
310
|
end
|
275
311
|
end
|
276
312
|
|
313
|
+
class GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
property :parent, as: 'parent'
|
317
|
+
property :subscription, as: 'subscription', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Subscription::Representation
|
318
|
+
|
319
|
+
property :subscription_id, as: 'subscriptionId'
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
277
323
|
class GoogleCloudPaymentsResellerSubscriptionV1Duration
|
278
324
|
# @private
|
279
325
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -282,6 +328,13 @@ module Google
|
|
282
328
|
end
|
283
329
|
end
|
284
330
|
|
331
|
+
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent
|
332
|
+
# @private
|
333
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
+
property :name, as: 'name'
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
285
338
|
class GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionRequest
|
286
339
|
# @private
|
287
340
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -358,6 +411,22 @@ module Google
|
|
358
411
|
end
|
359
412
|
end
|
360
413
|
|
414
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest
|
415
|
+
# @private
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
417
|
+
property :intent_payload, as: 'intentPayload', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1IntentPayload::Representation
|
418
|
+
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse
|
423
|
+
# @private
|
424
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
+
property :user_session, as: 'userSession', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1UserSession::Representation
|
426
|
+
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
361
430
|
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
362
431
|
# @private
|
363
432
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -368,6 +437,16 @@ module Google
|
|
368
437
|
end
|
369
438
|
end
|
370
439
|
|
440
|
+
class GoogleCloudPaymentsResellerSubscriptionV1IntentPayload
|
441
|
+
# @private
|
442
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
443
|
+
property :create_intent, as: 'createIntent', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent::Representation
|
444
|
+
|
445
|
+
property :entitle_intent, as: 'entitleIntent', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent::Representation
|
446
|
+
|
447
|
+
end
|
448
|
+
end
|
449
|
+
|
371
450
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
372
451
|
# @private
|
373
452
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -595,6 +674,14 @@ module Google
|
|
595
674
|
end
|
596
675
|
end
|
597
676
|
|
677
|
+
class GoogleCloudPaymentsResellerSubscriptionV1UserSession
|
678
|
+
# @private
|
679
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
680
|
+
property :expire_time, as: 'expireTime'
|
681
|
+
property :token, as: 'token'
|
682
|
+
end
|
683
|
+
end
|
684
|
+
|
598
685
|
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
599
686
|
# @private
|
600
687
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -52,7 +52,8 @@ module Google
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# To retrieve the products that can be resold by the partner. It should be
|
55
|
-
# autenticated with a service account.
|
55
|
+
# autenticated with a service account. - This API doesn't apply to YouTube
|
56
|
+
# products currently.
|
56
57
|
# @param [String] parent
|
57
58
|
# Required. The parent, the partner that can resell. Format: partners/`partner`
|
58
59
|
# @param [String] filter
|
@@ -138,8 +139,9 @@ module Google
|
|
138
139
|
execute_or_queue_command(command, &block)
|
139
140
|
end
|
140
141
|
|
141
|
-
#
|
142
|
-
#
|
142
|
+
# Retrieves the promotions, such as free trial, that can be used by the partner.
|
143
|
+
# - This API doesn't apply to YouTube promotions currently. It should be
|
144
|
+
# autenticated with a service account.
|
143
145
|
# @param [String] parent
|
144
146
|
# Required. The parent, the partner that can resell. Format: partners/`partner`
|
145
147
|
# @param [String] filter
|
@@ -421,10 +423,10 @@ module Google
|
|
421
423
|
execute_or_queue_command(command, &block)
|
422
424
|
end
|
423
425
|
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
427
|
-
# partner using service accounts.
|
426
|
+
# Revokes the pending cancellation of a subscription, which is currently in `
|
427
|
+
# STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription is already cancelled,
|
428
|
+
# the request will fail. - **This API doesn't apply to YouTube subscriptions.**
|
429
|
+
# It should be called directly by the partner using service accounts.
|
428
430
|
# @param [String] name
|
429
431
|
# Required. The name of the subscription resource whose pending cancellation
|
430
432
|
# needs to be undone. It will have the format of "partners/`partner_id`/
|
@@ -458,6 +460,43 @@ module Google
|
|
458
460
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
459
461
|
execute_or_queue_command(command, &block)
|
460
462
|
end
|
463
|
+
|
464
|
+
# This API replaces user authorized OAuth consnet 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 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
|
461
500
|
|
462
501
|
protected
|
463
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.44.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-11-17 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.44.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.22
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Payments Reseller Subscription API V1
|