google-apis-merchantapi_products_v1beta 0.3.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: 3ce4fa9214a385a56d8bee26349e21694deac0fae32e9daae0e6cead7cd9f421
4
- data.tar.gz: 25df2d7bcb9809448550f4c2e96c160715a27d192a5f8923875a69bca5ec54db
3
+ metadata.gz: f94ca0130eb65121c3ce7c31a13c6e866de167951ed864d4866b7026c9464961
4
+ data.tar.gz: fba809bbba93c87f6cb19b420034200216fddbaffa958a0bff249668e93b6be9
5
5
  SHA512:
6
- metadata.gz: 28a17a20b7b8fb1985d02806f7ab91ca00078218019bcf66dbe142de537992c30049376af4fa0e3e24aecff1b81a70ae7fc6c3952248c8f51fad175ff616a25e
7
- data.tar.gz: 3a3baad4c1f55d09b2219a0a1857564a7f1f77c3a690f784cd44dc9a24b8df35b540f58efabd7e6ad87ac82558ba335b4a3a6bb08a723ea2b08a11c8118b0c3e
6
+ metadata.gz: 6208d788e84eb8898bbb25c0085c14b38a04f6ae761a45773db1d1bbde20be62c72a0d8160a5de07145abe0de4ce3355f332d30ed37cb8fdc7991fb3c785d7f2
7
+ data.tar.gz: 72c22d25dc6166a3206cdee66c6b63efd7ce4246d38ab6da75eb2e04f4aef20192a36d2f41d8ac3451832ab040ff75b24cb2ee50297fedca7b7003a32cd10903
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.4.0 (2024-12-15)
8
+
9
+ * Regenerated from discovery document revision 20241211
10
+
3
11
  ### v0.3.0 (2024-12-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20241119
@@ -497,8 +497,12 @@ module Google
497
497
  # @return [Google::Apis::MerchantapiProductsV1beta::SubscriptionCost]
498
498
  attr_accessor :subscription_cost
499
499
 
500
- # The tax category of the product, used to configure detailed tax nexus in
501
- # account-level tax settings.
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
+
505
+ # The tax category of the product.
502
506
  # Corresponds to the JSON property `taxCategory`
503
507
  # @return [String]
504
508
  attr_accessor :tax_category
@@ -626,6 +630,7 @@ module Google
626
630
  @structured_description = args[:structured_description] if args.key?(:structured_description)
627
631
  @structured_title = args[:structured_title] if args.key?(:structured_title)
628
632
  @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
633
+ @sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
629
634
  @tax_category = args[:tax_category] if args.key?(:tax_category)
630
635
  @taxes = args[:taxes] if args.key?(:taxes)
631
636
  @title = args[:title] if args.key?(:title)
@@ -1618,6 +1623,38 @@ module Google
1618
1623
  end
1619
1624
  end
1620
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
+
1621
1658
  # The weight of the product.
1622
1659
  class ProductWeight
1623
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.3.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 = "20241119"
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.3.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-04 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.3.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: []
@@ -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.22
78
+ rubygems_version: 3.5.23
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Merchant API ProductsV1beta