google-apis-content_v2_1 0.36.0 → 0.37.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: 38c95430028cde94462149e8d9231f2c534479e589abbc61cb50aa90613a04e4
4
- data.tar.gz: 83ed4d45825aa3059b2db11b37c18251411932bd50eed1e1701506a64383d20a
3
+ metadata.gz: 5fef6ae810ce1057655a9fb7277c490387548c0173e15d6a324fa2c40dc272dc
4
+ data.tar.gz: 497449f55f0fa047d19b45a56d80ad2bda171d2107836e00fb56b24933bb4776
5
5
  SHA512:
6
- metadata.gz: 989c79e09d2a0b74b8e40fb010797486e4311e6506a2a59e1adb5bb54c22f45cfb742ad8039013fb9e599c1c92426518bd0a6c8720c2bc92ef997e7f81a2ecce
7
- data.tar.gz: 8a37f4220a550c1fe087421937badbe70145ba29dfc09415b695c881e98e0a55165962727270de2c604359a4cc01f0a8d47eae7a7993433889ef0b6c3b51c560
6
+ metadata.gz: 843e1c807c367d90c09fd5c4c20f029d517570a8538202557b27018c852065afd80f1baf4c86cf9a7aed1f58007845324b5abdcfc6efe5c4ae0f7df2a89fa800
7
+ data.tar.gz: 6ce3a29d748384ef8c79da97f70103e61ff175201e5b812541ca6094df7ed160149b769c4f792265cb82ba5fb7aa3d2bc9d9b8bcd234fe2f5db4fad0f4f9db52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.37.0 (2024-12-22)
4
+
5
+ * Regenerated from discovery document revision 20241217
6
+
3
7
  ### v0.36.0 (2024-11-24)
4
8
 
5
9
  * Regenerated from discovery document revision 20241120
@@ -9171,6 +9171,11 @@ module Google
9171
9171
  # @return [Google::Apis::ContentV2_1::ProductSubscriptionCost]
9172
9172
  attr_accessor :subscription_cost
9173
9173
 
9174
+ # Optional. The list of sustainability incentive programs.
9175
+ # Corresponds to the JSON property `sustainabilityIncentives`
9176
+ # @return [Array<Google::Apis::ContentV2_1::ProductSustainabilityIncentive>]
9177
+ attr_accessor :sustainability_incentives
9178
+
9174
9179
  # Required. The CLDR territory code for the item's country of sale.
9175
9180
  # Corresponds to the JSON property `targetCountry`
9176
9181
  # @return [String]
@@ -9313,6 +9318,7 @@ module Google
9313
9318
  @structured_description = args[:structured_description] if args.key?(:structured_description)
9314
9319
  @structured_title = args[:structured_title] if args.key?(:structured_title)
9315
9320
  @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
9321
+ @sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
9316
9322
  @target_country = args[:target_country] if args.key?(:target_country)
9317
9323
  @tax_category = args[:tax_category] if args.key?(:tax_category)
9318
9324
  @taxes = args[:taxes] if args.key?(:taxes)
@@ -10153,6 +10159,38 @@ module Google
10153
10159
  end
10154
10160
  end
10155
10161
 
10162
+ # Information regarding sustainability related incentive programs such as
10163
+ # rebates or tax relief.
10164
+ class ProductSustainabilityIncentive
10165
+ include Google::Apis::Core::Hashable
10166
+
10167
+ # Optional. The fixed amount of the incentive.
10168
+ # Corresponds to the JSON property `amount`
10169
+ # @return [Google::Apis::ContentV2_1::Price]
10170
+ attr_accessor :amount
10171
+
10172
+ # Optional. The percentage of the sale price that the incentive is applied to.
10173
+ # Corresponds to the JSON property `percentage`
10174
+ # @return [Float]
10175
+ attr_accessor :percentage
10176
+
10177
+ # Required. Sustainability incentive program.
10178
+ # Corresponds to the JSON property `type`
10179
+ # @return [String]
10180
+ attr_accessor :type
10181
+
10182
+ def initialize(**args)
10183
+ update!(**args)
10184
+ end
10185
+
10186
+ # Update properties of this object
10187
+ def update!(**args)
10188
+ @amount = args[:amount] if args.key?(:amount)
10189
+ @percentage = args[:percentage] if args.key?(:percentage)
10190
+ @type = args[:type] if args.key?(:type)
10191
+ end
10192
+ end
10193
+
10156
10194
  #
10157
10195
  class ProductTax
10158
10196
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.36.0"
19
+ GEM_VERSION = "0.37.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 = "20241120"
25
+ REVISION = "20241217"
26
26
  end
27
27
  end
28
28
  end
@@ -1366,6 +1366,12 @@ module Google
1366
1366
  include Google::Apis::Core::JsonObjectSupport
1367
1367
  end
1368
1368
 
1369
+ class ProductSustainabilityIncentive
1370
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1371
+
1372
+ include Google::Apis::Core::JsonObjectSupport
1373
+ end
1374
+
1369
1375
  class ProductTax
1370
1376
  class Representation < Google::Apis::Core::JsonRepresentation; end
1371
1377
 
@@ -4367,6 +4373,8 @@ module Google
4367
4373
 
4368
4374
  property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::ContentV2_1::ProductSubscriptionCost, decorator: Google::Apis::ContentV2_1::ProductSubscriptionCost::Representation
4369
4375
 
4376
+ collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::ContentV2_1::ProductSustainabilityIncentive, decorator: Google::Apis::ContentV2_1::ProductSustainabilityIncentive::Representation
4377
+
4370
4378
  property :target_country, as: 'targetCountry'
4371
4379
  property :tax_category, as: 'taxCategory'
4372
4380
  collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation
@@ -4586,6 +4594,16 @@ module Google
4586
4594
  end
4587
4595
  end
4588
4596
 
4597
+ class ProductSustainabilityIncentive
4598
+ # @private
4599
+ class Representation < Google::Apis::Core::JsonRepresentation
4600
+ property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4601
+
4602
+ property :percentage, as: 'percentage'
4603
+ property :type, as: 'type'
4604
+ end
4605
+ end
4606
+
4589
4607
  class ProductTax
4590
4608
  # @private
4591
4609
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.37.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-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.36.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.37.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
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 Content API for Shopping V2_1