google-apis-paymentsresellersubscription_v1 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a996b90ec579704e5e34a8b54612407e56de7671f629139ea4ab7e0bca5956c
4
- data.tar.gz: dca20a9c4baef1d770363d47d859dacb91a1ba1c5b772483c411fec4c68ae695
3
+ metadata.gz: f007f99a55596e705e4ba177d69e06eed56bc4b374e9967b8a48ab44b382b159
4
+ data.tar.gz: aa801f6c44251ffbb75520c189110f927cd24e35cf6f6ec165108af0e38b6db7
5
5
  SHA512:
6
- metadata.gz: 66da724016176a6c964021f21107198db0d69257919bc052d64321568e583663b485589821ecb3702cc079091fbd91103aa200113dda2ad9f595756a31a604d1
7
- data.tar.gz: a5f999a407372d92ddecc83aab395a3d10a04d9d7d7696d4d13f9bddc84a99dbbf7cc13303de88c8949d9b2e8dd29ef3bd9bd14cfe4cb4fafe15bfc222a5b137
6
+ metadata.gz: 98ca391e6defacd24efd729528d122f5454b7011b2130cedd868670f2b49b4562de7fefdf803dcc7d983af64bb6d86d5479acfe27a8aeb341420582f1ab1a5cc
7
+ data.tar.gz: d2300de4efc925c090bd08f0accf94d42cf62a422fc112c1dbfd55e24d60118210166979bd807dc7d8e499689a39469498f055c367dfc12faa8bcfc0092baa46
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-paymentsresellersubscription_v1
2
2
 
3
+ ### v0.21.0 (2022-09-28)
4
+
5
+ * Regenerated using generator version 0.10.0
6
+
7
+ ### v0.20.0 (2022-09-14)
8
+
9
+ * Regenerated from discovery document revision 20220913
10
+
3
11
  ### v0.19.0 (2022-09-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20220908
@@ -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
@@ -374,12 +400,17 @@ module Google
374
400
  class GoogleCloudPaymentsResellerSubscriptionV1Product
375
401
  include Google::Apis::Core::Hashable
376
402
 
377
- # Output only. Response only. Resource name of the subscription. It will have
378
- # the format of "partners/`partner_id`/products/`product_id`"
403
+ # Output only. Response only. Resource name of the product. It will have the
404
+ # format of "partners/`partner_id`/products/`product_id`"
379
405
  # Corresponds to the JSON property `name`
380
406
  # @return [String]
381
407
  attr_accessor :name
382
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
+
383
414
  # Output only. 2-letter ISO region code where the product is available in. Ex. "
384
415
  # US" Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1
385
416
  # Corresponds to the JSON property `regionCodes`
@@ -403,12 +434,39 @@ module Google
403
434
  # Update properties of this object
404
435
  def update!(**args)
405
436
  @name = args[:name] if args.key?(:name)
437
+ @price_configs = args[:price_configs] if args.key?(:price_configs)
406
438
  @region_codes = args[:region_codes] if args.key?(:region_codes)
407
439
  @subscription_billing_cycle_duration = args[:subscription_billing_cycle_duration] if args.key?(:subscription_billing_cycle_duration)
408
440
  @titles = args[:titles] if args.key?(:titles)
409
441
  end
410
442
  end
411
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
+
412
470
  # A Promotion resource that defines a promotion for a subscription that can be
413
471
  # resold.
414
472
  class GoogleCloudPaymentsResellerSubscriptionV1Promotion
@@ -504,6 +562,17 @@ module Google
504
562
  class GoogleCloudPaymentsResellerSubscriptionV1PromotionIntroductoryPricingDetailsIntroductoryPricingSpec
505
563
  include Google::Apis::Core::Hashable
506
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
+
507
576
  # Output only. Output Only. The duration of an introductory offer in billing
508
577
  # cycles.
509
578
  # Corresponds to the JSON property `recurrenceCount`
@@ -516,6 +585,8 @@ module Google
516
585
 
517
586
  # Update properties of this object
518
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)
519
590
  @recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
520
591
  end
521
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.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220908"
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
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.19.0
4
+ version: 0.21.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-12 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.9.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-paymentsresellersubscription_v1/v0.21.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: []