google-apis-merchantapi_products_v1beta 0.4.0 → 0.5.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: 680d4e75a1193c25f03032c73f08dabade5d3fcad032637a9ce47d9c2b29e665
4
- data.tar.gz: 0d2b6495ec11829db45952a4bdf0bd01703d21e51420b0ee70ca56c04f5f7e12
3
+ metadata.gz: f94ca0130eb65121c3ce7c31a13c6e866de167951ed864d4866b7026c9464961
4
+ data.tar.gz: fba809bbba93c87f6cb19b420034200216fddbaffa958a0bff249668e93b6be9
5
5
  SHA512:
6
- metadata.gz: 3adad8c63e057b058c86522cedd245928b7bac74465168df4c91b091d71e8a049ecbaee41f4a35db5847767f4565169b8089ee43927c22bae069c7cde8d0fbb2
7
- data.tar.gz: 5c9156c02cc2ee686b85805d813926e76aa4daa8a3836bb05eb2cdf7f2a8beec3c4cdb235019b3482dd53a77579bd43a17b6c7278a874e8c97fef8194a37034b
6
+ metadata.gz: 6208d788e84eb8898bbb25c0085c14b38a04f6ae761a45773db1d1bbde20be62c72a0d8160a5de07145abe0de4ce3355f332d30ed37cb8fdc7991fb3c785d7f2
7
+ data.tar.gz: 72c22d25dc6166a3206cdee66c6b63efd7ce4246d38ab6da75eb2e04f4aef20192a36d2f41d8ac3451832ab040ff75b24cb2ee50297fedca7b7003a32cd10903
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-merchantapi_products_v1beta
2
2
 
3
+ ### v0.5.0 (2024-12-22)
4
+
5
+ * Regenerated from discovery document revision 20241217
6
+
3
7
  ### v0.4.0 (2024-12-15)
4
8
 
5
9
  * Regenerated from discovery document revision 20241211
@@ -497,6 +497,11 @@ module Google
497
497
  # @return [Google::Apis::MerchantapiProductsV1beta::SubscriptionCost]
498
498
  attr_accessor :subscription_cost
499
499
 
500
+ # The list of sustainability incentive programs.
501
+ # Corresponds to the JSON property `sustainabilityIncentives`
502
+ # @return [Array<Google::Apis::MerchantapiProductsV1beta::ProductSustainabilityIncentive>]
503
+ attr_accessor :sustainability_incentives
504
+
500
505
  # The tax category of the product.
501
506
  # Corresponds to the JSON property `taxCategory`
502
507
  # @return [String]
@@ -625,6 +630,7 @@ module Google
625
630
  @structured_description = args[:structured_description] if args.key?(:structured_description)
626
631
  @structured_title = args[:structured_title] if args.key?(:structured_title)
627
632
  @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
633
+ @sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
628
634
  @tax_category = args[:tax_category] if args.key?(:tax_category)
629
635
  @taxes = args[:taxes] if args.key?(:taxes)
630
636
  @title = args[:title] if args.key?(:title)
@@ -1617,6 +1623,38 @@ module Google
1617
1623
  end
1618
1624
  end
1619
1625
 
1626
+ # Information regarding sustainability-related incentive programs such as
1627
+ # rebates or tax relief.
1628
+ class ProductSustainabilityIncentive
1629
+ include Google::Apis::Core::Hashable
1630
+
1631
+ # The price represented as a number and currency.
1632
+ # Corresponds to the JSON property `amount`
1633
+ # @return [Google::Apis::MerchantapiProductsV1beta::Price]
1634
+ attr_accessor :amount
1635
+
1636
+ # The percentage of the sale price that the incentive is applied to.
1637
+ # Corresponds to the JSON property `percentage`
1638
+ # @return [Float]
1639
+ attr_accessor :percentage
1640
+
1641
+ # Sustainability incentive program.
1642
+ # Corresponds to the JSON property `type`
1643
+ # @return [String]
1644
+ attr_accessor :type
1645
+
1646
+ def initialize(**args)
1647
+ update!(**args)
1648
+ end
1649
+
1650
+ # Update properties of this object
1651
+ def update!(**args)
1652
+ @amount = args[:amount] if args.key?(:amount)
1653
+ @percentage = args[:percentage] if args.key?(:percentage)
1654
+ @type = args[:type] if args.key?(:type)
1655
+ end
1656
+ end
1657
+
1620
1658
  # The weight of the product.
1621
1659
  class ProductWeight
1622
1660
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiProductsV1beta
18
18
  # Version of the google-apis-merchantapi_products_v1beta gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241211"
25
+ REVISION = "20241217"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class ProductSustainabilityIncentive
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class ProductWeight
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -320,6 +326,8 @@ module Google
320
326
 
321
327
  property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::MerchantapiProductsV1beta::SubscriptionCost, decorator: Google::Apis::MerchantapiProductsV1beta::SubscriptionCost::Representation
322
328
 
329
+ collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::MerchantapiProductsV1beta::ProductSustainabilityIncentive, decorator: Google::Apis::MerchantapiProductsV1beta::ProductSustainabilityIncentive::Representation
330
+
323
331
  property :tax_category, as: 'taxCategory'
324
332
  collection :taxes, as: 'taxes', class: Google::Apis::MerchantapiProductsV1beta::Tax, decorator: Google::Apis::MerchantapiProductsV1beta::Tax::Representation
325
333
 
@@ -576,6 +584,16 @@ module Google
576
584
  end
577
585
  end
578
586
 
587
+ class ProductSustainabilityIncentive
588
+ # @private
589
+ class Representation < Google::Apis::Core::JsonRepresentation
590
+ property :amount, as: 'amount', class: Google::Apis::MerchantapiProductsV1beta::Price, decorator: Google::Apis::MerchantapiProductsV1beta::Price::Representation
591
+
592
+ property :percentage, as: 'percentage'
593
+ property :type, as: 'type'
594
+ end
595
+ end
596
+
579
597
  class ProductWeight
580
598
  # @private
581
599
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_products_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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-12-15 00:00:00.000000000 Z
11
+ date: 2025-01-05 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-merchantapi_products_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.4.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.5.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_products_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []