google-apis-paymentsresellersubscription_v1 0.24.0 → 0.26.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 +92 -4
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +3 -3
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +47 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +4 -3
- 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: f15a7b2eaa20a9842a8403a57bdbf807ee48df15d822672fd18fa8fbe014dfa8
|
4
|
+
data.tar.gz: b2db1f9b0d72b9179bcaa4dee898afc09ab5eeeb8a87b9773c25822b4c9a77a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e134935a47f17b9e057c24ad34fbe85dac5b47b69a1de40fecc66d184028193007cb2f02774465123962aa46c6ac83363a7a6c3f312039a59f600d43e1d7dbe
|
7
|
+
data.tar.gz: df2994601a0cf28f2c376d0b719d4769d229840ad08165f1687c66868d365d5843d676d5e59b338b99bbc66526680d67d262cc02a0f1690d7ec6d5a3958fd0be
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-paymentsresellersubscription_v1
|
2
2
|
|
3
|
+
### v0.26.0 (2023-01-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230127
|
6
|
+
* Regenerated using generator version 0.11.1
|
7
|
+
|
8
|
+
### v0.25.0 (2022-12-07)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20221201
|
11
|
+
|
3
12
|
### v0.24.0 (2022-11-04)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20221030
|
@@ -52,9 +52,10 @@ module Google
|
|
52
52
|
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest
|
53
53
|
include Google::Apis::Core::Hashable
|
54
54
|
|
55
|
-
# Optional. If true, Google will cancel the subscription immediately, and
|
56
|
-
# a prorated refund for the remainder of
|
57
|
-
#
|
55
|
+
# Optional. If true, Google will cancel the subscription immediately, and may or
|
56
|
+
# may not (based on the contract) issue a prorated refund for the remainder of
|
57
|
+
# the billing cycle. Otherwise, Google defers the cancelation at renewal_time,
|
58
|
+
# and will not issue a refund.
|
58
59
|
# Corresponds to the JSON property `cancelImmediately`
|
59
60
|
# @return [Boolean]
|
60
61
|
attr_accessor :cancel_immediately
|
@@ -318,6 +319,43 @@ module Google
|
|
318
319
|
end
|
319
320
|
end
|
320
321
|
|
322
|
+
# Payload specific to Google One products.
|
323
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
324
|
+
include Google::Apis::Core::Hashable
|
325
|
+
|
326
|
+
# Campaign attributed to sales of this subscription.
|
327
|
+
# Corresponds to the JSON property `campaigns`
|
328
|
+
# @return [Array<String>]
|
329
|
+
attr_accessor :campaigns
|
330
|
+
|
331
|
+
# The type of offering the subscription was sold by the partner. e.g. VAS.
|
332
|
+
# Corresponds to the JSON property `offering`
|
333
|
+
# @return [String]
|
334
|
+
attr_accessor :offering
|
335
|
+
|
336
|
+
# The type of sales channel through which the subscription was sold.
|
337
|
+
# Corresponds to the JSON property `salesChannel`
|
338
|
+
# @return [String]
|
339
|
+
attr_accessor :sales_channel
|
340
|
+
|
341
|
+
# The identifier for the partner store where the subscription was sold.
|
342
|
+
# Corresponds to the JSON property `storeId`
|
343
|
+
# @return [String]
|
344
|
+
attr_accessor :store_id
|
345
|
+
|
346
|
+
def initialize(**args)
|
347
|
+
update!(**args)
|
348
|
+
end
|
349
|
+
|
350
|
+
# Update properties of this object
|
351
|
+
def update!(**args)
|
352
|
+
@campaigns = args[:campaigns] if args.key?(:campaigns)
|
353
|
+
@offering = args[:offering] if args.key?(:offering)
|
354
|
+
@sales_channel = args[:sales_channel] if args.key?(:sales_channel)
|
355
|
+
@store_id = args[:store_id] if args.key?(:store_id)
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
321
359
|
#
|
322
360
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
323
361
|
include Google::Apis::Core::Hashable
|
@@ -441,6 +479,31 @@ module Google
|
|
441
479
|
end
|
442
480
|
end
|
443
481
|
|
482
|
+
# Specifies product specific payload.
|
483
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
|
484
|
+
include Google::Apis::Core::Hashable
|
485
|
+
|
486
|
+
# Payload specific to Google One products.
|
487
|
+
# Corresponds to the JSON property `googleOnePayload`
|
488
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload]
|
489
|
+
attr_accessor :google_one_payload
|
490
|
+
|
491
|
+
# Payload specific to Youtube products.
|
492
|
+
# Corresponds to the JSON property `youtubePayload`
|
493
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload]
|
494
|
+
attr_accessor :youtube_payload
|
495
|
+
|
496
|
+
def initialize(**args)
|
497
|
+
update!(**args)
|
498
|
+
end
|
499
|
+
|
500
|
+
# Update properties of this object
|
501
|
+
def update!(**args)
|
502
|
+
@google_one_payload = args[:google_one_payload] if args.key?(:google_one_payload)
|
503
|
+
@youtube_payload = args[:youtube_payload] if args.key?(:youtube_payload)
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
444
507
|
# Configs the prices in an available region.
|
445
508
|
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
446
509
|
include Google::Apis::Core::Hashable
|
@@ -793,7 +856,7 @@ module Google
|
|
793
856
|
end
|
794
857
|
end
|
795
858
|
|
796
|
-
# Individual line item definition of a subscription.
|
859
|
+
# Individual line item definition of a subscription.
|
797
860
|
class GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem
|
798
861
|
include Google::Apis::Core::Hashable
|
799
862
|
|
@@ -829,6 +892,11 @@ module Google
|
|
829
892
|
# @return [String]
|
830
893
|
attr_accessor :product
|
831
894
|
|
895
|
+
# Specifies product specific payload.
|
896
|
+
# Corresponds to the JSON property `productPayload`
|
897
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload]
|
898
|
+
attr_accessor :product_payload
|
899
|
+
|
832
900
|
# Output only. The recurrence type of the line item.
|
833
901
|
# Corresponds to the JSON property `recurrenceType`
|
834
902
|
# @return [String]
|
@@ -850,6 +918,7 @@ module Google
|
|
850
918
|
@line_item_promotion_specs = args[:line_item_promotion_specs] if args.key?(:line_item_promotion_specs)
|
851
919
|
@one_time_recurrence_details = args[:one_time_recurrence_details] if args.key?(:one_time_recurrence_details)
|
852
920
|
@product = args[:product] if args.key?(:product)
|
921
|
+
@product_payload = args[:product_payload] if args.key?(:product_payload)
|
853
922
|
@recurrence_type = args[:recurrence_type] if args.key?(:recurrence_type)
|
854
923
|
@state = args[:state] if args.key?(:state)
|
855
924
|
end
|
@@ -973,6 +1042,25 @@ module Google
|
|
973
1042
|
end
|
974
1043
|
end
|
975
1044
|
|
1045
|
+
# Payload specific to Youtube products.
|
1046
|
+
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
1047
|
+
include Google::Apis::Core::Hashable
|
1048
|
+
|
1049
|
+
# The list of eligibility_ids which are applicable for the line item.
|
1050
|
+
# Corresponds to the JSON property `partnerEligibilityIds`
|
1051
|
+
# @return [Array<String>]
|
1052
|
+
attr_accessor :partner_eligibility_ids
|
1053
|
+
|
1054
|
+
def initialize(**args)
|
1055
|
+
update!(**args)
|
1056
|
+
end
|
1057
|
+
|
1058
|
+
# Update properties of this object
|
1059
|
+
def update!(**args)
|
1060
|
+
@partner_eligibility_ids = args[:partner_eligibility_ids] if args.key?(:partner_eligibility_ids)
|
1061
|
+
end
|
1062
|
+
end
|
1063
|
+
|
976
1064
|
# Localized variant of a text in a particular language.
|
977
1065
|
class GoogleTypeLocalizedText
|
978
1066
|
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.26.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.11.
|
22
|
+
GENERATOR_VERSION = "0.11.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230127"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -88,6 +88,12 @@ module Google
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
91
97
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
92
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
99
|
|
@@ -112,6 +118,12 @@ module Google
|
|
112
118
|
include Google::Apis::Core::JsonObjectSupport
|
113
119
|
end
|
114
120
|
|
121
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
115
127
|
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
116
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
129
|
|
@@ -190,6 +202,12 @@ module Google
|
|
190
202
|
include Google::Apis::Core::JsonObjectSupport
|
191
203
|
end
|
192
204
|
|
205
|
+
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
193
211
|
class GoogleTypeLocalizedText
|
194
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
213
|
|
@@ -287,6 +305,16 @@ module Google
|
|
287
305
|
end
|
288
306
|
end
|
289
307
|
|
308
|
+
class GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload
|
309
|
+
# @private
|
310
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
311
|
+
collection :campaigns, as: 'campaigns'
|
312
|
+
property :offering, as: 'offering'
|
313
|
+
property :sales_channel, as: 'salesChannel'
|
314
|
+
property :store_id, as: 'storeId'
|
315
|
+
end
|
316
|
+
end
|
317
|
+
|
290
318
|
class GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse
|
291
319
|
# @private
|
292
320
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -327,6 +355,16 @@ module Google
|
|
327
355
|
end
|
328
356
|
end
|
329
357
|
|
358
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPayload
|
359
|
+
# @private
|
360
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
361
|
+
property :google_one_payload, as: 'googleOnePayload', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1GoogleOnePayload::Representation
|
362
|
+
|
363
|
+
property :youtube_payload, as: 'youtubePayload', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload::Representation
|
364
|
+
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
330
368
|
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
331
369
|
# @private
|
332
370
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -427,6 +465,8 @@ module Google
|
|
427
465
|
property :one_time_recurrence_details, as: 'oneTimeRecurrenceDetails', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItemOneTimeRecurrenceDetails::Representation
|
428
466
|
|
429
467
|
property :product, as: 'product'
|
468
|
+
property :product_payload, as: 'productPayload', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPayload::Representation
|
469
|
+
|
430
470
|
property :recurrence_type, as: 'recurrenceType'
|
431
471
|
property :state, as: 'state'
|
432
472
|
end
|
@@ -474,6 +514,13 @@ module Google
|
|
474
514
|
end
|
475
515
|
end
|
476
516
|
|
517
|
+
class GoogleCloudPaymentsResellerSubscriptionV1YoutubePayload
|
518
|
+
# @private
|
519
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
520
|
+
collection :partner_eligibility_ids, as: 'partnerEligibilityIds'
|
521
|
+
end
|
522
|
+
end
|
523
|
+
|
477
524
|
class GoogleTypeLocalizedText
|
478
525
|
# @private
|
479
526
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -306,9 +306,10 @@ module Google
|
|
306
306
|
execute_or_queue_command(command, &block)
|
307
307
|
end
|
308
308
|
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
309
|
+
# [Deprecated] New partners should be on auto-extend by default. Used by
|
310
|
+
# partners to extend a subscription service for their customers on an ongoing
|
311
|
+
# basis for the subscription to remain active and renewable. It should be called
|
312
|
+
# directly by the partner using service accounts.
|
312
313
|
# @param [String] name
|
313
314
|
# Required. The name of the subscription resource to be extended. It will have
|
314
315
|
# the format of "partners/`partner_id`/subscriptions/`subscription_id`".
|
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.26.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:
|
11
|
+
date: 2023-01-29 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.26.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.
|
78
|
+
rubygems_version: 3.4.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Payments Reseller Subscription API V1
|