google-apis-paymentsresellersubscription_v1 0.18.0 → 0.20.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 +8 -0
- data/lib/google/apis/paymentsresellersubscription_v1/classes.rb +78 -8
- data/lib/google/apis/paymentsresellersubscription_v1/gem_version.rb +2 -2
- data/lib/google/apis/paymentsresellersubscription_v1/representations.rb +34 -0
- data/lib/google/apis/paymentsresellersubscription_v1/service.rb +10 -11
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e85728a4af4e652a531ab0f48ee1aeb25f99587b7d6b6e971cd478b39bf32d06
|
4
|
+
data.tar.gz: 97c48fce864de561e6db0b2268360c8c6899cfa261402b739e96887f823563c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fcf24ef1d02387e568223d9cef26e66389ceba0bd024a94234373e3fad616173d594df56fe7757d90c3b7e1a638b90a1a66703c104fbbb4cb947b98fb04fc61
|
7
|
+
data.tar.gz: 90a28958a57b695ffb659cf97798a87e0a002d032d1965696271290ddde6850587e8bdc2f376b418e5abc3552d3e3fa764e5679c27f43bfa0962c56075d07a94
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-paymentsresellersubscription_v1
|
2
2
|
|
3
|
+
### v0.20.0 (2022-09-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220913
|
6
|
+
|
7
|
+
### v0.19.0 (2022-09-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220908
|
10
|
+
|
3
11
|
### v0.18.0 (2022-09-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20220901
|
@@ -22,6 +22,32 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PaymentsresellersubscriptionV1
|
24
24
|
|
25
|
+
# Describes the amount unit including the currency code.
|
26
|
+
class GoogleCloudPaymentsResellerSubscriptionV1Amount
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# Required. Amount in micros (1_000_000 micros = 1 currency unit)
|
30
|
+
# Corresponds to the JSON property `amountMicros`
|
31
|
+
# @return [Fixnum]
|
32
|
+
attr_accessor :amount_micros
|
33
|
+
|
34
|
+
# Required. Currency codes in accordance with [ISO-4217 Currency Codes] (https://
|
35
|
+
# en.wikipedia.org/wiki/ISO_4217). For example, USD.
|
36
|
+
# Corresponds to the JSON property `currencyCode`
|
37
|
+
# @return [String]
|
38
|
+
attr_accessor :currency_code
|
39
|
+
|
40
|
+
def initialize(**args)
|
41
|
+
update!(**args)
|
42
|
+
end
|
43
|
+
|
44
|
+
# Update properties of this object
|
45
|
+
def update!(**args)
|
46
|
+
@amount_micros = args[:amount_micros] if args.key?(:amount_micros)
|
47
|
+
@currency_code = args[:currency_code] if args.key?(:currency_code)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
25
51
|
#
|
26
52
|
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest
|
27
53
|
include Google::Apis::Core::Hashable
|
@@ -230,12 +256,11 @@ module Google
|
|
230
256
|
# following features are supported: - Logical operator `AND` - Comparison
|
231
257
|
# operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (
|
232
258
|
# no wildcards `*`) - Only the following fields are supported: - `
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
# partner_eligibility_id=eligibility-id`
|
259
|
+
# applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `
|
260
|
+
# youtubePayload.postalCode` - Unless explicitly mentioned above, other features
|
261
|
+
# are not supported. Example: `applicableProducts:partners/partner1/products/
|
262
|
+
# product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND
|
263
|
+
# youtubePayload.partnerEligibilityId=eligibility-id`
|
239
264
|
# Corresponds to the JSON property `filter`
|
240
265
|
# @return [String]
|
241
266
|
attr_accessor :filter
|
@@ -375,12 +400,17 @@ module Google
|
|
375
400
|
class GoogleCloudPaymentsResellerSubscriptionV1Product
|
376
401
|
include Google::Apis::Core::Hashable
|
377
402
|
|
378
|
-
# Output only. Response only. Resource name of the
|
379
|
-
#
|
403
|
+
# Output only. Response only. Resource name of the product. It will have the
|
404
|
+
# format of "partners/`partner_id`/products/`product_id`"
|
380
405
|
# Corresponds to the JSON property `name`
|
381
406
|
# @return [String]
|
382
407
|
attr_accessor :name
|
383
408
|
|
409
|
+
# Output only. Price configs for the product in the available regions.
|
410
|
+
# Corresponds to the JSON property `priceConfigs`
|
411
|
+
# @return [Array<Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig>]
|
412
|
+
attr_accessor :price_configs
|
413
|
+
|
384
414
|
# Output only. 2-letter ISO region code where the product is available in. Ex. "
|
385
415
|
# US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1
|
386
416
|
# Corresponds to the JSON property `regionCodes`
|
@@ -404,12 +434,39 @@ module Google
|
|
404
434
|
# Update properties of this object
|
405
435
|
def update!(**args)
|
406
436
|
@name = args[:name] if args.key?(:name)
|
437
|
+
@price_configs = args[:price_configs] if args.key?(:price_configs)
|
407
438
|
@region_codes = args[:region_codes] if args.key?(:region_codes)
|
408
439
|
@subscription_billing_cycle_duration = args[:subscription_billing_cycle_duration] if args.key?(:subscription_billing_cycle_duration)
|
409
440
|
@titles = args[:titles] if args.key?(:titles)
|
410
441
|
end
|
411
442
|
end
|
412
443
|
|
444
|
+
# Configs the prices in an available region.
|
445
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
446
|
+
include Google::Apis::Core::Hashable
|
447
|
+
|
448
|
+
# Describes the amount unit including the currency code.
|
449
|
+
# Corresponds to the JSON property `amount`
|
450
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount]
|
451
|
+
attr_accessor :amount
|
452
|
+
|
453
|
+
# Output only. 2-letter ISO region code where the product is available in. Ex. "
|
454
|
+
# US".
|
455
|
+
# Corresponds to the JSON property `regionCode`
|
456
|
+
# @return [String]
|
457
|
+
attr_accessor :region_code
|
458
|
+
|
459
|
+
def initialize(**args)
|
460
|
+
update!(**args)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Update properties of this object
|
464
|
+
def update!(**args)
|
465
|
+
@amount = args[:amount] if args.key?(:amount)
|
466
|
+
@region_code = args[:region_code] if args.key?(:region_code)
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
413
470
|
# A Promotion resource that defines a promotion for a subscription that can be
|
414
471
|
# resold.
|
415
472
|
class GoogleCloudPaymentsResellerSubscriptionV1Promotion
|
@@ -505,6 +562,17 @@ module Google
|
|
505
562
|
class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
|
506
563
|
include Google::Apis::Core::Hashable
|
507
564
|
|
565
|
+
# Describes the amount unit including the currency code.
|
566
|
+
# Corresponds to the JSON property `discountAmount`
|
567
|
+
# @return [Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount]
|
568
|
+
attr_accessor :discount_amount
|
569
|
+
|
570
|
+
# Output only. The discount percentage in micros. For example, 50,000 represents
|
571
|
+
# 5%.
|
572
|
+
# Corresponds to the JSON property `discountRatioMicros`
|
573
|
+
# @return [Fixnum]
|
574
|
+
attr_accessor :discount_ratio_micros
|
575
|
+
|
508
576
|
# Output only. Output Only. The duration of an introductory offer in billing
|
509
577
|
# cycles.
|
510
578
|
# Corresponds to the JSON property `recurrenceCount`
|
@@ -517,6 +585,8 @@ module Google
|
|
517
585
|
|
518
586
|
# Update properties of this object
|
519
587
|
def update!(**args)
|
588
|
+
@discount_amount = args[:discount_amount] if args.key?(:discount_amount)
|
589
|
+
@discount_ratio_micros = args[:discount_ratio_micros] if args.key?(:discount_ratio_micros)
|
520
590
|
@recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
|
521
591
|
end
|
522
592
|
end
|
@@ -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.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220913"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,12 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PaymentsresellersubscriptionV1
|
24
24
|
|
25
|
+
class GoogleCloudPaymentsResellerSubscriptionV1Amount
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
25
31
|
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest
|
26
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
33
|
|
@@ -106,6 +112,12 @@ module Google
|
|
106
112
|
include Google::Apis::Core::JsonObjectSupport
|
107
113
|
end
|
108
114
|
|
115
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
109
121
|
class GoogleCloudPaymentsResellerSubscriptionV1Promotion
|
110
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
123
|
|
@@ -184,6 +196,14 @@ module Google
|
|
184
196
|
include Google::Apis::Core::JsonObjectSupport
|
185
197
|
end
|
186
198
|
|
199
|
+
class GoogleCloudPaymentsResellerSubscriptionV1Amount
|
200
|
+
# @private
|
201
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
202
|
+
property :amount_micros, :numeric_string => true, as: 'amountMicros'
|
203
|
+
property :currency_code, as: 'currencyCode'
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
187
207
|
class GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest
|
188
208
|
# @private
|
189
209
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -297,6 +317,8 @@ module Google
|
|
297
317
|
# @private
|
298
318
|
class Representation < Google::Apis::Core::JsonRepresentation
|
299
319
|
property :name, as: 'name'
|
320
|
+
collection :price_configs, as: 'priceConfigs', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig::Representation
|
321
|
+
|
300
322
|
collection :region_codes, as: 'regionCodes'
|
301
323
|
property :subscription_billing_cycle_duration, as: 'subscriptionBillingCycleDuration', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration::Representation
|
302
324
|
|
@@ -305,6 +327,15 @@ module Google
|
|
305
327
|
end
|
306
328
|
end
|
307
329
|
|
330
|
+
class GoogleCloudPaymentsResellerSubscriptionV1ProductPriceConfig
|
331
|
+
# @private
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
333
|
+
property :amount, as: 'amount', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount::Representation
|
334
|
+
|
335
|
+
property :region_code, as: 'regionCode'
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
308
339
|
class GoogleCloudPaymentsResellerSubscriptionV1Promotion
|
309
340
|
# @private
|
310
341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -334,6 +365,9 @@ module Google
|
|
334
365
|
class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
|
335
366
|
# @private
|
336
367
|
class Representation < Google::Apis::Core::JsonRepresentation
|
368
|
+
property :discount_amount, as: 'discountAmount', class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount, decorator: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Amount::Representation
|
369
|
+
|
370
|
+
property :discount_ratio_micros, :numeric_string => true, as: 'discountRatioMicros'
|
337
371
|
property :recurrence_count, as: 'recurrenceCount'
|
338
372
|
end
|
339
373
|
end
|
@@ -58,11 +58,11 @@ module Google
|
|
58
58
|
# in https://google.aip.dev/160 with the following caveats: - Only the following
|
59
59
|
# features are supported: - Logical operator `AND` - Comparison operator `=` (no
|
60
60
|
# wildcards `*`) - Traversal operator `.` - Has operator `:` (no wildcards `*`) -
|
61
|
-
# Only the following fields are supported: - `
|
62
|
-
#
|
63
|
-
# mentioned above, other features are not supported. Example: `
|
64
|
-
# AND
|
65
|
-
#
|
61
|
+
# Only the following fields are supported: - `regionCodes` - `youtubePayload.
|
62
|
+
# partnerEligibilityId` - `youtubePayload.postalCode` - Unless explicitly
|
63
|
+
# mentioned above, other features are not supported. Example: `regionCodes:US
|
64
|
+
# AND youtubePayload.postalCode=94043 AND youtubePayload.partnerEligibilityId=
|
65
|
+
# eligibility-id`
|
66
66
|
# @param [Fixnum] page_size
|
67
67
|
# Optional. The maximum number of products to return. The service may return
|
68
68
|
# fewer than this value. If unspecified, at most 50 products will be returned.
|
@@ -146,12 +146,11 @@ module Google
|
|
146
146
|
# following features are supported: - Logical operator `AND` - Comparison
|
147
147
|
# operator `=` (no wildcards `*`) - Traversal operator `.` - Has operator `:` (
|
148
148
|
# no wildcards `*`) - Only the following fields are supported: - `
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
# partner_eligibility_id=eligibility-id`
|
149
|
+
# applicableProducts` - `regionCodes` - `youtubePayload.partnerEligibilityId` - `
|
150
|
+
# youtubePayload.postalCode` - Unless explicitly mentioned above, other features
|
151
|
+
# are not supported. Example: `applicableProducts:partners/partner1/products/
|
152
|
+
# product1 AND regionCodes:US AND youtubePayload.postalCode=94043 AND
|
153
|
+
# youtubePayload.partnerEligibilityId=eligibility-id`
|
155
154
|
# @param [Fixnum] page_size
|
156
155
|
# Optional. The maximum number of promotions to return. The service may return
|
157
156
|
# fewer than this value. If unspecified, at most 50 products will be returned.
|
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.20.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: 2022-09-
|
11
|
+
date: 2022-09-19 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.20.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: []
|