diff --git a/api_names_out.yaml b/api_names_out.yaml index 5c461fd2591..7c92b3d98b6 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -127773,6 +127773,8 @@ "/content:v2.1/Product/structuredDescription": structured_description "/content:v2.1/Product/structuredTitle": structured_title "/content:v2.1/Product/subscriptionCost": subscription_cost +"/content:v2.1/Product/sustainabilityIncentives": sustainability_incentives +"/content:v2.1/Product/sustainabilityIncentives/sustainability_incentive": sustainability_incentive "/content:v2.1/Product/targetCountry": target_country "/content:v2.1/Product/taxCategory": tax_category "/content:v2.1/Product/taxes": taxes @@ -127903,6 +127905,10 @@ "/content:v2.1/ProductSubscriptionCost/amount": amount "/content:v2.1/ProductSubscriptionCost/period": period "/content:v2.1/ProductSubscriptionCost/periodLength": period_length +"/content:v2.1/ProductSustainabilityIncentive": product_sustainability_incentive +"/content:v2.1/ProductSustainabilityIncentive/amount": amount +"/content:v2.1/ProductSustainabilityIncentive/percentage": percentage +"/content:v2.1/ProductSustainabilityIncentive/type": type "/content:v2.1/ProductTax": product_tax "/content:v2.1/ProductTax/country": country "/content:v2.1/ProductTax/locationId": location_id diff --git a/generated/google-apis-content_v2_1/CHANGELOG.md b/generated/google-apis-content_v2_1/CHANGELOG.md index 91fbb6fb756..88c475ca5da 100644 --- a/generated/google-apis-content_v2_1/CHANGELOG.md +++ b/generated/google-apis-content_v2_1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-content_v2_1 +### v0.37.0 (2024-12-22) + +* Regenerated from discovery document revision 20241217 + ### v0.36.0 (2024-11-24) * Regenerated from discovery document revision 20241120 diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb index 17427c72de5..e98d4d08cd7 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/classes.rb @@ -9171,6 +9171,11 @@ class Product # @return [Google::Apis::ContentV2_1::ProductSubscriptionCost] attr_accessor :subscription_cost + # Optional. The list of sustainability incentive programs. + # Corresponds to the JSON property `sustainabilityIncentives` + # @return [Array] + attr_accessor :sustainability_incentives + # Required. The CLDR territory code for the item's country of sale. # Corresponds to the JSON property `targetCountry` # @return [String] @@ -9313,6 +9318,7 @@ def update!(**args) @structured_description = args[:structured_description] if args.key?(:structured_description) @structured_title = args[:structured_title] if args.key?(:structured_title) @subscription_cost = args[:subscription_cost] if args.key?(:subscription_cost) + @sustainability_incentives = args[:sustainability_incentives] if args.key?(:sustainability_incentives) @target_country = args[:target_country] if args.key?(:target_country) @tax_category = args[:tax_category] if args.key?(:tax_category) @taxes = args[:taxes] if args.key?(:taxes) @@ -10153,6 +10159,38 @@ def update!(**args) end end + # Information regarding sustainability related incentive programs such as + # rebates or tax relief. + class ProductSustainabilityIncentive + include Google::Apis::Core::Hashable + + # Optional. The fixed amount of the incentive. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::ContentV2_1::Price] + attr_accessor :amount + + # Optional. The percentage of the sale price that the incentive is applied to. + # Corresponds to the JSON property `percentage` + # @return [Float] + attr_accessor :percentage + + # Required. Sustainability incentive program. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @percentage = args[:percentage] if args.key?(:percentage) + @type = args[:type] if args.key?(:type) + end + end + # class ProductTax include Google::Apis::Core::Hashable diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb index 1d97c6430b6..cd8a3be62e3 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ContentV2_1 # Version of the google-apis-content_v2_1 gem - GEM_VERSION = "0.36.0" + GEM_VERSION = "0.37.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20241120" + REVISION = "20241217" end end end diff --git a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb index 9ad8fcea5ea..84838de2d67 100644 --- a/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb +++ b/generated/google-apis-content_v2_1/lib/google/apis/content_v2_1/representations.rb @@ -1366,6 +1366,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ProductSustainabilityIncentive + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ProductTax class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4367,6 +4373,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :subscription_cost, as: 'subscriptionCost', class: Google::Apis::ContentV2_1::ProductSubscriptionCost, decorator: Google::Apis::ContentV2_1::ProductSubscriptionCost::Representation + collection :sustainability_incentives, as: 'sustainabilityIncentives', class: Google::Apis::ContentV2_1::ProductSustainabilityIncentive, decorator: Google::Apis::ContentV2_1::ProductSustainabilityIncentive::Representation + property :target_country, as: 'targetCountry' property :tax_category, as: 'taxCategory' collection :taxes, as: 'taxes', class: Google::Apis::ContentV2_1::ProductTax, decorator: Google::Apis::ContentV2_1::ProductTax::Representation @@ -4586,6 +4594,16 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ProductSustainabilityIncentive + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation + + property :percentage, as: 'percentage' + property :type, as: 'type' + end + end + class ProductTax # @private class Representation < Google::Apis::Core::JsonRepresentation