Skip to content

Commit 7a65a08

Browse files
feat: Automated regeneration of merchantapi accounts_v1beta client (googleapis#22364)
Auto-created at 2025-04-06 09:52:39 +0000 using the toys pull request generator.
1 parent 459365b commit 7a65a08

File tree

6 files changed

+30
-17
lines changed

6 files changed

+30
-17
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269192,6 +269192,7 @@
269192269192
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/policy": policy
269193269193
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/processRefundDays": process_refund_days
269194269194
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/restockingFee": restocking_fee
269195+
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnLabelSource": return_label_source
269195269196
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnMethods": return_methods
269196269197
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnMethods/return_method": return_method
269197269198
"/merchantapi:accounts_v1beta/OnlineReturnPolicy/returnPolicyId": return_policy_id

generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md

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

3+
### v0.9.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250403
6+
37
### v0.8.0 (2025-03-23)
48

59
* Regenerated from discovery document revision 20250319

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

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,6 +1796,12 @@ class OnlineReturnPolicy
17961796
# @return [Google::Apis::MerchantapiAccountsV1beta::RestockingFee]
17971797
attr_accessor :restocking_fee
17981798

1799+
# The field specifies the return label source. This field is required when
1800+
# return method is BY_MAIL.
1801+
# Corresponds to the JSON property `returnLabelSource`
1802+
# @return [String]
1803+
attr_accessor :return_label_source
1804+
17991805
# Optional. The return methods of how customers can return an item. This value
18001806
# is required to not be empty unless the type of return policy is noReturns.
18011807
# Corresponds to the JSON property `returnMethods`
@@ -1840,6 +1846,7 @@ def update!(**args)
18401846
@policy = args[:policy] if args.key?(:policy)
18411847
@process_refund_days = args[:process_refund_days] if args.key?(:process_refund_days)
18421848
@restocking_fee = args[:restocking_fee] if args.key?(:restocking_fee)
1849+
@return_label_source = args[:return_label_source] if args.key?(:return_label_source)
18431850
@return_methods = args[:return_methods] if args.key?(:return_methods)
18441851
@return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
18451852
@return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
@@ -2742,8 +2749,8 @@ def update!(**args)
27422749
end
27432750
end
27442751

2745-
# The merchant account's [shipping setting](https://support.google.com/merchants/
2746-
# answer/6069284).
2752+
# The merchant account's [shipping settings](https://support.google.com/
2753+
# merchants/answer/6069284).
27472754
class ShippingSettings
27482755
include Google::Apis::Core::Hashable
27492756

@@ -2761,8 +2768,8 @@ class ShippingSettings
27612768
# @return [String]
27622769
attr_accessor :etag
27632770

2764-
# Identifier. The resource name of the shipping setting. Format: `accounts/`
2765-
# account`/shippingSetting`
2771+
# Identifier. The resource name of the shipping settings. Format: `accounts/`
2772+
# account`/shippingSettings`
27662773
# Corresponds to the JSON property `name`
27672774
# @return [String]
27682775
attr_accessor :name
@@ -2935,13 +2942,13 @@ def update!(**args)
29352942
end
29362943

29372944
# The `TermsOfService` message represents a specific version of the terms of
2938-
# service that merchants must accept to access certain features or services (see
2939-
# https://support.google.com/merchants/answer/160173). This message is important
2940-
# for the onboarding process, ensuring that merchants agree to the necessary
2941-
# legal agreements for using the service. Merchants can retrieve the latest
2942-
# terms of service for a given `kind` and `region` through `
2943-
# RetrieveLatestTermsOfService`, and accept them as required through `
2944-
# AcceptTermsOfService`.
2945+
# service that merchants must accept to access certain features or services. For
2946+
# more information, see [Terms of Service](https://support.google.com/merchants/
2947+
# answer/160173). This message is important for the onboarding process, ensuring
2948+
# that merchants agree to the necessary legal agreements for using the service.
2949+
# Merchants can retrieve the latest terms of service for a given `kind` and `
2950+
# region` through `RetrieveLatestTermsOfService`, and accept them as required
2951+
# through `AcceptTermsOfService`.
29452952
class TermsOfService
29462953
include Google::Apis::Core::Hashable
29472954

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

Lines changed: 2 additions & 2 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.8.0"
19+
GEM_VERSION = "0.9.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
10231023
property :process_refund_days, as: 'processRefundDays'
10241024
property :restocking_fee, as: 'restockingFee', class: Google::Apis::MerchantapiAccountsV1beta::RestockingFee, decorator: Google::Apis::MerchantapiAccountsV1beta::RestockingFee::Representation
10251025

1026+
property :return_label_source, as: 'returnLabelSource'
10261027
collection :return_methods, as: 'returnMethods'
10271028
property :return_policy_id, as: 'returnPolicyId'
10281029
property :return_policy_uri, as: 'returnPolicyUri'

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def initialize
5151
@batch_path = 'batch'
5252
end
5353

54-
# Creates a standalone Merchant Center account with additional configuration.
55-
# Adds the user that makes the request as an admin for the new account.
54+
# Creates a Merchant Center account with additional configuration. Adds the user
55+
# that makes the request as an admin for the new account.
5656
# @param [Google::Apis::MerchantapiAccountsV1beta::CreateAndConfigureAccountRequest] create_and_configure_account_request_object
5757
# @param [String] fields
5858
# Selector specifying which fields to include in a partial response.
@@ -1243,7 +1243,7 @@ def patch_account_region(name, region_object = nil, update_mask: nil, fields: ni
12431243
# Retrieve shipping setting information.
12441244
# @param [String] name
12451245
# Required. The name of the shipping setting to retrieve. Format: `accounts/`
1246-
# account`/shippingsetting`
1246+
# account`/shippingsettings`
12471247
# @param [String] fields
12481248
# Selector specifying which fields to include in a partial response.
12491249
# @param [String] quota_user
@@ -1309,7 +1309,7 @@ def insert_account_shipping_setting(parent, shipping_settings_object = nil, fiel
13091309
# Returns the state of a terms of service agreement.
13101310
# @param [String] name
13111311
# Required. The resource name of the terms of service version. Format: `accounts/
1312-
# `account`/termsOfServiceAgreementState/`identifier`` The identifier format is:
1312+
# `account`/termsOfServiceAgreementStates/`identifier`` The identifier format is:
13131313
# ``TermsOfServiceKind`-`country``
13141314
# @param [String] fields
13151315
# Selector specifying which fields to include in a partial response.

0 commit comments

Comments
 (0)