Skip to content

Commit dbdeff2

Browse files
feat: Automated regeneration of merchantapi accounts_v1beta client (googleapis#21408)
Auto-created at 2025-01-19 09:52:35 +0000 using the toys pull request generator.
1 parent 7dc98de commit dbdeff2

File tree

5 files changed

+94
-3
lines changed

5 files changed

+94
-3
lines changed

api_names_out.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260716,6 +260716,8 @@
260716260716
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnPolicyId": return_policy_id
260717260717
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnPolicyUri": return_policy_uri
260718260718
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnShippingFee": return_shipping_fee
260719+
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/seasonalOverrides": seasonal_overrides
260720+
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/seasonalOverrides/seasonal_override": seasonal_override
260719260721
"/merchantapi:accounts_v1beta/PhoneNumber": phone_number
260720260722
"/merchantapi:accounts_v1beta/PhoneNumber/e164Number": e164_number
260721260723
"/merchantapi:accounts_v1beta/PhoneNumber/extension": extension
@@ -260804,6 +260806,11 @@
260804260806
"/merchantapi:accounts_v1beta/Row": row
260805260807
"/merchantapi:accounts_v1beta/Row/cells": cells
260806260808
"/merchantapi:accounts_v1beta/Row/cells/cell": cell
260809+
"/merchantapi:accounts_v1beta/SeasonalOverride": seasonal_override
260810+
"/merchantapi:accounts_v1beta/SeasonalOverride/begin": begin
260811+
"/merchantapi:accounts_v1beta/SeasonalOverride/end": end
260812+
"/merchantapi:accounts_v1beta/SeasonalOverride/label": label
260813+
"/merchantapi:accounts_v1beta/SeasonalOverride/policy": policy
260807260814
"/merchantapi:accounts_v1beta/Service": service
260808260815
"/merchantapi:accounts_v1beta/Service/active": active
260809260816
"/merchantapi:accounts_v1beta/Service/currencyCode": currency_code

generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-merchantapi_accounts_v1beta
22

3+
### v0.5.0 (2025-01-19)
4+
5+
* Regenerated from discovery document revision 20250115
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.4.0 (2024-12-15)
49

510
* Regenerated from discovery document revision 20241210

generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/classes.rb

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,12 @@ class OnlineReturnPolicy
15341534
# @return [Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee]
15351535
attr_accessor :return_shipping_fee
15361536

1537+
# Optional. Overrides to the general policy for orders placed during a specific
1538+
# set of time intervals.
1539+
# Corresponds to the JSON property `seasonalOverrides`
1540+
# @return [Array<Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride>]
1541+
attr_accessor :seasonal_overrides
1542+
15371543
def initialize(**args)
15381544
update!(**args)
15391545
end
@@ -1553,6 +1559,7 @@ def update!(**args)
15531559
@return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
15541560
@return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
15551561
@return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee)
1562+
@seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides)
15561563
end
15571564
end
15581565

@@ -2283,6 +2290,57 @@ def update!(**args)
22832290
end
22842291
end
22852292

2293+
# Next: 5
2294+
class SeasonalOverride
2295+
include Google::Apis::Core::Hashable
2296+
2297+
# Represents a whole or partial calendar date, such as a birthday. The time of
2298+
# day and time zone are either specified elsewhere or are insignificant. The
2299+
# date is relative to the Gregorian Calendar. This can represent one of the
2300+
# following: * A full date, with non-zero year, month, and day values. * A month
2301+
# and day, with a zero year (for example, an anniversary). * A year on its own,
2302+
# with a zero month and a zero day. * A year and month, with a zero day (for
2303+
# example, a credit card expiration date). Related types: * google.type.
2304+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2305+
# Corresponds to the JSON property `begin`
2306+
# @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2307+
attr_accessor :begin
2308+
2309+
# Represents a whole or partial calendar date, such as a birthday. The time of
2310+
# day and time zone are either specified elsewhere or are insignificant. The
2311+
# date is relative to the Gregorian Calendar. This can represent one of the
2312+
# following: * A full date, with non-zero year, month, and day values. * A month
2313+
# and day, with a zero year (for example, an anniversary). * A year on its own,
2314+
# with a zero month and a zero day. * A year and month, with a zero day (for
2315+
# example, a credit card expiration date). Related types: * google.type.
2316+
# TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2317+
# Corresponds to the JSON property `end`
2318+
# @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2319+
attr_accessor :end
2320+
2321+
# Required. Display name of this seasonal override in Merchant Center.
2322+
# Corresponds to the JSON property `label`
2323+
# @return [String]
2324+
attr_accessor :label
2325+
2326+
# The available policies.
2327+
# Corresponds to the JSON property `policy`
2328+
# @return [Google::Apis::MerchantapiAccountsV1beta::Policy]
2329+
attr_accessor :policy
2330+
2331+
def initialize(**args)
2332+
update!(**args)
2333+
end
2334+
2335+
# Update properties of this object
2336+
def update!(**args)
2337+
@begin = args[:begin] if args.key?(:begin)
2338+
@end = args[:end] if args.key?(:end)
2339+
@label = args[:label] if args.key?(:label)
2340+
@policy = args[:policy] if args.key?(:policy)
2341+
end
2342+
end
2343+
22862344
# Shipping service.
22872345
class Service
22882346
include Google::Apis::Core::Hashable

generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module MerchantapiAccountsV1beta
1818
# Version of the google-apis-merchantapi_accounts_v1beta gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241210"
25+
REVISION = "20250115"
2626
end
2727
end
2828
end

generated/google-apis-merchantapi_accounts_v1beta/lib/google/apis/merchantapi_accounts_v1beta/representations.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
376376
include Google::Apis::Core::JsonObjectSupport
377377
end
378378

379+
class SeasonalOverride
380+
class Representation < Google::Apis::Core::JsonRepresentation; end
381+
382+
include Google::Apis::Core::JsonObjectSupport
383+
end
384+
379385
class Service
380386
class Representation < Google::Apis::Core::JsonRepresentation; end
381387

@@ -911,6 +917,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
911917
property :return_policy_uri, as: 'returnPolicyUri'
912918
property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee, decorator: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee::Representation
913919

920+
collection :seasonal_overrides, as: 'seasonalOverrides', class: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride, decorator: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride::Representation
921+
914922
end
915923
end
916924

@@ -1084,6 +1092,19 @@ class Representation < Google::Apis::Core::JsonRepresentation
10841092
end
10851093
end
10861094

1095+
class SeasonalOverride
1096+
# @private
1097+
class Representation < Google::Apis::Core::JsonRepresentation
1098+
property :begin, as: 'begin', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1099+
1100+
property :end, as: 'end', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1101+
1102+
property :label, as: 'label'
1103+
property :policy, as: 'policy', class: Google::Apis::MerchantapiAccountsV1beta::Policy, decorator: Google::Apis::MerchantapiAccountsV1beta::Policy::Representation
1104+
1105+
end
1106+
end
1107+
10871108
class Service
10881109
# @private
10891110
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)