google-apis-content_v2_1 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d50441de3bbf25416119c315761fc1d56c1e8c704ade4023c0691a91878ae1c
4
- data.tar.gz: 87aeb013fc03d6bc3cf27f8ea386aa976921923dae229a46a90ac9d2e4d4dab7
3
+ metadata.gz: 5fef6ae810ce1057655a9fb7277c490387548c0173e15d6a324fa2c40dc272dc
4
+ data.tar.gz: 497449f55f0fa047d19b45a56d80ad2bda171d2107836e00fb56b24933bb4776
5
5
  SHA512:
6
- metadata.gz: 03ac9f9b0e3c1612e0fa56ae971ca962f1a0866f3e1b4c834988c13f42f7bcf86b3c9165db9d46f360a1b4c68de8df1306eec96db00d59edd8bb73e3da49c2e3
7
- data.tar.gz: adb6ab861d80d539db173572b184fbce187fe1f2021a2c3e946f469bcf47fd31e9657982bcc198d50456b8740b5e23d1e4d7a396a79de7598fb944eb16714043
6
+ metadata.gz: 843e1c807c367d90c09fd5c4c20f029d517570a8538202557b27018c852065afd80f1baf4c86cf9a7aed1f58007845324b5abdcfc6efe5c4ae0f7df2a89fa800
7
+ data.tar.gz: 6ce3a29d748384ef8c79da97f70103e61ff175201e5b812541ca6094df7ed160149b769c4f792265cb82ba5fb7aa3d2bc9d9b8bcd234fe2f5db4fad0f4f9db52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.36.0 (2024-11-24)
8
+
9
+ * Regenerated from discovery document revision 20241120
10
+
3
11
  ### v0.35.0 (2024-10-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20241023
@@ -6754,6 +6754,14 @@ module Google
6754
6754
  # @return [String]
6755
6755
  attr_accessor :program_label
6756
6756
 
6757
+ # Optional. The shipping label for the loyalty program. You can use this label
6758
+ # to indicate whether this offer has the loyalty shipping benefit. If not
6759
+ # specified, the item is not eligible for loyalty shipping for the given loyalty
6760
+ # tier.
6761
+ # Corresponds to the JSON property `shippingLabel`
6762
+ # @return [String]
6763
+ attr_accessor :shipping_label
6764
+
6757
6765
  # Required. The label of the tier within the loyalty program. Must match one of
6758
6766
  # the labels within the program.
6759
6767
  # Corresponds to the JSON property `tierLabel`
@@ -6771,6 +6779,7 @@ module Google
6771
6779
  @member_price_effective_date = args[:member_price_effective_date] if args.key?(:member_price_effective_date)
6772
6780
  @price = args[:price] if args.key?(:price)
6773
6781
  @program_label = args[:program_label] if args.key?(:program_label)
6782
+ @shipping_label = args[:shipping_label] if args.key?(:shipping_label)
6774
6783
  @tier_label = args[:tier_label] if args.key?(:tier_label)
6775
6784
  end
6776
6785
  end
@@ -9162,6 +9171,11 @@ module Google
9162
9171
  # @return [Google::Apis::ContentV2_1::ProductSubscriptionCost]
9163
9172
  attr_accessor :subscription_cost
9164
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
+
9165
9179
  # Required. The CLDR territory code for the item's country of sale.
9166
9180
  # Corresponds to the JSON property `targetCountry`
9167
9181
  # @return [String]
@@ -9304,6 +9318,7 @@ module Google
9304
9318
  @structured_description = args[:structured_description] if args.key?(:structured_description)
9305
9319
  @structured_title = args[:structured_title] if args.key?(:structured_title)
9306
9320
  @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost)
9321
+ @sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives)
9307
9322
  @target_country = args[:target_country] if args.key?(:target_country)
9308
9323
  @tax_category = args[:tax_category] if args.key?(:tax_category)
9309
9324
  @taxes = args[:taxes] if args.key?(:taxes)
@@ -10144,6 +10159,38 @@ module Google
10144
10159
  end
10145
10160
  end
10146
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
+
10147
10194
  #
10148
10195
  class ProductTax
10149
10196
  include Google::Apis::Core::Hashable
@@ -14041,12 +14088,12 @@ module Google
14041
14088
  class TimeZone
14042
14089
  include Google::Apis::Core::Hashable
14043
14090
 
14044
- # IANA Time Zone Database time zone, e.g. "America/New_York".
14091
+ # IANA Time Zone Database time zone. For example "America/New_York".
14045
14092
  # Corresponds to the JSON property `id`
14046
14093
  # @return [String]
14047
14094
  attr_accessor :id
14048
14095
 
14049
- # Optional. IANA Time Zone Database version number, e.g. "2019a".
14096
+ # Optional. IANA Time Zone Database version number. For example "2019a".
14050
14097
  # Corresponds to the JSON property `version`
14051
14098
  # @return [String]
14052
14099
  attr_accessor :version
@@ -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.35.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 = "20241023"
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
 
@@ -3828,6 +3834,7 @@ module Google
3828
3834
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
3829
3835
 
3830
3836
  property :program_label, as: 'programLabel'
3837
+ property :shipping_label, as: 'shippingLabel'
3831
3838
  property :tier_label, as: 'tierLabel'
3832
3839
  end
3833
3840
  end
@@ -4366,6 +4373,8 @@ module Google
4366
4373
 
4367
4374
  property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::ContentV2_1::ProductSubscriptionCost, decorator: Google::Apis::ContentV2_1::ProductSubscriptionCost::Representation
4368
4375
 
4376
+ collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::ContentV2_1::ProductSustainabilityIncentive, decorator: Google::Apis::ContentV2_1::ProductSustainabilityIncentive::Representation
4377
+
4369
4378
  property :target_country, as: 'targetCountry'
4370
4379
  property :tax_category, as: 'taxCategory'
4371
4380
  collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation
@@ -4585,6 +4594,16 @@ module Google
4585
4594
  end
4586
4595
  end
4587
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
+
4588
4607
  class ProductTax
4589
4608
  # @private
4590
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.35.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-10-27 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.35.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.21
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