From cddd175ca6bf70a518e43d1caa443ac04572150a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 19 Jan 2025 09:52:35 +0000 Subject: [PATCH] feat: Automated regeneration of merchantapi accounts_v1beta client --- api_names_out.yaml | 7 +++ .../CHANGELOG.md | 5 ++ .../merchantapi_accounts_v1beta/classes.rb | 58 +++++++++++++++++++ .../gem_version.rb | 6 +- .../representations.rb | 21 +++++++ 5 files changed, 94 insertions(+), 3 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index fcf2f757675..edf629a1ba9 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -260683,6 +260683,8 @@ "/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnPolicyId": return_policy_id "/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnPolicyUri": return_policy_uri "/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnShippingFee": return_shipping_fee +"/merchantapi:accounts_v1beta/OnlineReturnPolicy/seasonalOverrides": seasonal_overrides +"/merchantapi:accounts_v1beta/OnlineReturnPolicy/seasonalOverrides/seasonal_override": seasonal_override "/merchantapi:accounts_v1beta/PhoneNumber": phone_number "/merchantapi:accounts_v1beta/PhoneNumber/e164Number": e164_number "/merchantapi:accounts_v1beta/PhoneNumber/extension": extension @@ -260771,6 +260773,11 @@ "/merchantapi:accounts_v1beta/Row": row "/merchantapi:accounts_v1beta/Row/cells": cells "/merchantapi:accounts_v1beta/Row/cells/cell": cell +"/merchantapi:accounts_v1beta/SeasonalOverride": seasonal_override +"/merchantapi:accounts_v1beta/SeasonalOverride/begin": begin +"/merchantapi:accounts_v1beta/SeasonalOverride/end": end +"/merchantapi:accounts_v1beta/SeasonalOverride/label": label +"/merchantapi:accounts_v1beta/SeasonalOverride/policy": policy "/merchantapi:accounts_v1beta/Service": service "/merchantapi:accounts_v1beta/Service/active": active "/merchantapi:accounts_v1beta/Service/currencyCode": currency_code diff --git a/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md b/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md index d02cde8087c..bec7713f88b 100644 --- a/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md +++ b/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-merchantapi_accounts_v1beta +### v0.5.0 (2025-01-19) + +* Regenerated from discovery document revision 20250115 +* Regenerated using generator version 0.16.0 + ### v0.4.0 (2024-12-15) * Regenerated from discovery document revision 20241210 diff --git a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/classes.rb b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/classes.rb index 50cb7716144..9d3cfccd0bd 100644 --- a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/classes.rb +++ b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/classes.rb @@ -1534,6 +1534,12 @@ class OnlineReturnPolicy # @return [Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee] attr_accessor :return_shipping_fee + # Optional. Overrides to the general policy for orders placed during a specific + # set of time intervals. + # Corresponds to the JSON property `seasonalOverrides` + # @return [Array] + attr_accessor :seasonal_overrides + def initialize(**args) update!(**args) end @@ -1553,6 +1559,7 @@ def update!(**args) @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id) @return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri) @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee) + @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides) end end @@ -2283,6 +2290,57 @@ def update!(**args) end end + # Next: 5 + class SeasonalOverride + include Google::Apis::Core::Hashable + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `begin` + # @return [Google::Apis::MerchantapiAccountsV1beta::Date] + attr_accessor :begin + + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values. * A month + # and day, with a zero year (for example, an anniversary). * A year on its own, + # with a zero month and a zero day. * A year and month, with a zero day (for + # example, a credit card expiration date). Related types: * google.type. + # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp + # Corresponds to the JSON property `end` + # @return [Google::Apis::MerchantapiAccountsV1beta::Date] + attr_accessor :end + + # Required. Display name of this seasonal override in Merchant Center. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # The available policies. + # Corresponds to the JSON property `policy` + # @return [Google::Apis::MerchantapiAccountsV1beta::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @begin = args[:begin] if args.key?(:begin) + @end = args[:end] if args.key?(:end) + @label = args[:label] if args.key?(:label) + @policy = args[:policy] if args.key?(:policy) + end + end + # Shipping service. class Service include Google::Apis::Core::Hashable diff --git a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb index e62c635b948..81a4d0c424b 100644 --- a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb +++ b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module MerchantapiAccountsV1beta # Version of the google-apis-merchantapi_accounts_v1beta gem - GEM_VERSION = "0.4.0" + GEM_VERSION = "0.5.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.15.1" + GENERATOR_VERSION = "0.16.0" # Revision of the discovery document this client was generated from - REVISION = "20241210" + REVISION = "20250115" end end end diff --git a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/representations.rb b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/representations.rb index e6041a0e97e..9c4c2755ab6 100644 --- a/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/representations.rb +++ b/generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/representations.rb @@ -376,6 +376,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class SeasonalOverride + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Service class Representation < Google::Apis::Core::JsonRepresentation; end @@ -911,6 +917,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :return_policy_uri, as: 'returnPolicyUri' property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee, decorator: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee::Representation + collection :seasonal_overrides, as: 'seasonalOverrides', class: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride, decorator: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride::Representation + end end @@ -1084,6 +1092,19 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class SeasonalOverride + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :begin, as: 'begin', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation + + property :end, as: 'end', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation + + property :label, as: 'label' + property :policy, as: 'policy', class: Google::Apis::MerchantapiAccountsV1beta::Policy, decorator: Google::Apis::MerchantapiAccountsV1beta::Policy::Representation + + end + end + class Service # @private class Representation < Google::Apis::Core::JsonRepresentation