google-apis-merchantapi_products_v1beta 0.4.0 → 0.6.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: 83d45e65a36fe3b4c107056de4b3920788f8279cb191d6cb71c1b1aec3cb80fe
4
+ data.tar.gz: af894427e2a60d83f45106417743a57c19d0ecf6c5295825d028bf1322f4b98e
5
5
  SHA512:
6
- metadata.gz: 3adad8c63e057b058c86522cedd245928b7bac74465168df4c91b091d71e8a049ecbaee41f4a35db5847767f4565169b8089ee43927c22bae069c7cde8d0fbb2
7
- data.tar.gz: 5c9156c02cc2ee686b85805d813926e76aa4daa8a3836bb05eb2cdf7f2a8beec3c4cdb235019b3482dd53a77579bd43a17b6c7278a874e8c97fef8194a37034b
6
+ metadata.gz: 345131ac30aecb01a91d2db3ad0e0ca0466b5d340c0b47834b885df0b091a5cb25c8d2a6b60bbecb1a530b36effd9f884a58cf9b5af66556e82e14bdc43aec3d
7
+ data.tar.gz: 5887418173c8adf568c7a26ba255cc2545e066baa9a8356f0f61ace1e7f7fa2fbd9bcb8f7c177d4b8bc1d63a5d59ffd79af5ca86570bd2506bd1d9a903b1f778
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-merchantapi_products_v1beta
2
2
 
3
+ ### v0.6.0 (2025-01-08)
4
+
5
+ * Regenerated from discovery document revision 20250106
6
+
7
+ ### v0.5.0 (2024-12-22)
8
+
9
+ * Regenerated from discovery document revision 20241217
10
+
3
11
  ### v0.4.0 (2024-12-15)
4
12
 
5
13
  * 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)
@@ -1365,8 +1371,8 @@ module Google
1365
1371
  # @return [Google::Apis::MerchantapiProductsV1beta::Attributes]
1366
1372
  attr_accessor :attributes
1367
1373
 
1368
- # Required. Immutable. The [channel](https://support.google.com/merchants/answer/
1369
- # 7361332) of the product.
1374
+ # Immutable. The [channel](https://support.google.com/merchants/answer/7361332)
1375
+ # of the product.
1370
1376
  # Corresponds to the JSON property `channel`
1371
1377
  # @return [String]
1372
1378
  attr_accessor :channel
@@ -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.6.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 = "20250106"
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,13 @@
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.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-01-12 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_products_v1beta/v0.6.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_products_v1beta
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.2
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Merchant API ProductsV1beta
82
79
  test_files: []