Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of merchantapi accounts_v1beta client #21408

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride>]
attr_accessor :seasonal_overrides

def initialize(**args)
update!(**args)
end
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Loading