Skip to content

Commit b47a19b

Browse files
feat: Automated regeneration of merchantapi accounts_v1beta client (googleapis#23624)
Auto-created at 2025-07-06 10:19:55 +0000 using the toys pull request generator.
1 parent 98b0a4d commit b47a19b

File tree

6 files changed

+308
-2
lines changed

6 files changed

+308
-2
lines changed

api_names_out.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277270,6 +277270,16 @@
277270277270
"/merchantapi:accounts_v1beta/CarrierRate/name": name
277271277271
"/merchantapi:accounts_v1beta/CarrierRate/originPostalCode": origin_postal_code
277272277272
"/merchantapi:accounts_v1beta/CarrierRate/percentageAdjustment": percentage_adjustment
277273+
"/merchantapi:accounts_v1beta/CheckoutSettings": checkout_settings
277274+
"/merchantapi:accounts_v1beta/CheckoutSettings/effectiveEnrollmentState": effective_enrollment_state
277275+
"/merchantapi:accounts_v1beta/CheckoutSettings/effectiveReviewState": effective_review_state
277276+
"/merchantapi:accounts_v1beta/CheckoutSettings/effectiveUriSettings": effective_uri_settings
277277+
"/merchantapi:accounts_v1beta/CheckoutSettings/eligibleDestinations": eligible_destinations
277278+
"/merchantapi:accounts_v1beta/CheckoutSettings/eligibleDestinations/eligible_destination": eligible_destination
277279+
"/merchantapi:accounts_v1beta/CheckoutSettings/enrollmentState": enrollment_state
277280+
"/merchantapi:accounts_v1beta/CheckoutSettings/name": name
277281+
"/merchantapi:accounts_v1beta/CheckoutSettings/reviewState": review_state
277282+
"/merchantapi:accounts_v1beta/CheckoutSettings/uriSettings": uri_settings
277273277283
"/merchantapi:accounts_v1beta/ClaimHomepageRequest": claim_homepage_request
277274277284
"/merchantapi:accounts_v1beta/ClaimHomepageRequest/overwrite": overwrite
277275277285
"/merchantapi:accounts_v1beta/CreateAndConfigureAccountRequest": create_and_configure_account_request
@@ -277682,6 +277692,9 @@
277682277692
"/merchantapi:accounts_v1beta/TransitTimeValue/maxTransitDays": max_transit_days
277683277693
"/merchantapi:accounts_v1beta/TransitTimeValue/minTransitDays": min_transit_days
277684277694
"/merchantapi:accounts_v1beta/UnclaimHomepageRequest": unclaim_homepage_request
277695+
"/merchantapi:accounts_v1beta/UriSettings": uri_settings
277696+
"/merchantapi:accounts_v1beta/UriSettings/cartUriTemplate": cart_uri_template
277697+
"/merchantapi:accounts_v1beta/UriSettings/checkoutUriTemplate": checkout_uri_template
277685277698
"/merchantapi:accounts_v1beta/User": user
277686277699
"/merchantapi:accounts_v1beta/User/accessRights": access_rights
277687277700
"/merchantapi:accounts_v1beta/User/accessRights/access_right": access_right
@@ -277832,6 +277845,15 @@
277832277845
"/merchantapi:accounts_v1beta/merchantapi.accounts.patch": patch_account
277833277846
"/merchantapi:accounts_v1beta/merchantapi.accounts.patch/name": name
277834277847
"/merchantapi:accounts_v1beta/merchantapi.accounts.patch/updateMask": update_mask
277848+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.create": create_account_program_checkout_setting
277849+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.create/parent": parent
277850+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.deleteCheckoutSettings": delete_account_program_checkout_setting_checkout_settings
277851+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.deleteCheckoutSettings/name": name
277852+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.getCheckoutSettings": get_account_program_checkout_setting_checkout_settings
277853+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.getCheckoutSettings/name": name
277854+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.updateCheckoutSettings": update_account_program_checkout_setting_checkout_settings
277855+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.updateCheckoutSettings/name": name
277856+
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.checkoutSettings.updateCheckoutSettings/updateMask": update_mask
277835277857
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.disable": disable_program
277836277858
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.disable/name": name
277837277859
"/merchantapi:accounts_v1beta/merchantapi.accounts.programs.enable": enable_program

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.17.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250628
6+
37
### v0.16.0 (2025-06-29)
48

59
* Regenerated from discovery document revision 20250621

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

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,81 @@ def update!(**args)
990990
end
991991
end
992992

993+
# [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for a
994+
# specific merchant.
995+
class CheckoutSettings
996+
include Google::Apis::Core::Hashable
997+
998+
# Output only. The effective value of enrollment_state for a given merchant ID.
999+
# If account level settings are present then this value will be a copy of the
1000+
# account level settings. Otherwise, it will have the value of the parent
1001+
# account (for only marketplace sellers).
1002+
# Corresponds to the JSON property `effectiveEnrollmentState`
1003+
# @return [String]
1004+
attr_accessor :effective_enrollment_state
1005+
1006+
# Output only. The effective value of `review_state` for a given merchant ID. If
1007+
# account level settings are present then this value will be a copy of the
1008+
# account level settings. Otherwise, it will have the value of the parent
1009+
# account (for only marketplace sellers).
1010+
# Corresponds to the JSON property `effectiveReviewState`
1011+
# @return [String]
1012+
attr_accessor :effective_review_state
1013+
1014+
# URL settings for cart or checkout URL.
1015+
# Corresponds to the JSON property `effectiveUriSettings`
1016+
# @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
1017+
attr_accessor :effective_uri_settings
1018+
1019+
# Optional. The destinations to which the checkout program applies, valid
1020+
# destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
1021+
# Corresponds to the JSON property `eligibleDestinations`
1022+
# @return [Array<String>]
1023+
attr_accessor :eligible_destinations
1024+
1025+
# Output only. Reflects the merchant enrollment state in `Checkout` program.
1026+
# Corresponds to the JSON property `enrollmentState`
1027+
# @return [String]
1028+
attr_accessor :enrollment_state
1029+
1030+
# Identifier. The resource name of the program configuration settings. Format: `
1031+
# accounts/`account`/programs/`program`/checkoutSettings`
1032+
# Corresponds to the JSON property `name`
1033+
# @return [String]
1034+
attr_accessor :name
1035+
1036+
# Output only. Reflects the merchant review state in `Checkout` program. This is
1037+
# set based on the data quality reviews of the URL provided by the merchant. A
1038+
# merchant with enrollment state as `ENROLLED` can be in the following review
1039+
# states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an `
1040+
# enrollment_state` of `ENROLLED` before a review can begin for the merchant.For
1041+
# more details, check the help center doc.
1042+
# Corresponds to the JSON property `reviewState`
1043+
# @return [String]
1044+
attr_accessor :review_state
1045+
1046+
# URL settings for cart or checkout URL.
1047+
# Corresponds to the JSON property `uriSettings`
1048+
# @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
1049+
attr_accessor :uri_settings
1050+
1051+
def initialize(**args)
1052+
update!(**args)
1053+
end
1054+
1055+
# Update properties of this object
1056+
def update!(**args)
1057+
@effective_enrollment_state = args[:effective_enrollment_state] if args.key?(:effective_enrollment_state)
1058+
@effective_review_state = args[:effective_review_state] if args.key?(:effective_review_state)
1059+
@effective_uri_settings = args[:effective_uri_settings] if args.key?(:effective_uri_settings)
1060+
@eligible_destinations = args[:eligible_destinations] if args.key?(:eligible_destinations)
1061+
@enrollment_state = args[:enrollment_state] if args.key?(:enrollment_state)
1062+
@name = args[:name] if args.key?(:name)
1063+
@review_state = args[:review_state] if args.key?(:review_state)
1064+
@uri_settings = args[:uri_settings] if args.key?(:uri_settings)
1065+
end
1066+
end
1067+
9931068
# Request message for the `ClaimHomepage` method.
9941069
class ClaimHomepageRequest
9951070
include Google::Apis::Core::Hashable
@@ -4116,6 +4191,39 @@ def update!(**args)
41164191
end
41174192
end
41184193

4194+
# URL settings for cart or checkout URL.
4195+
class UriSettings
4196+
include Google::Apis::Core::Hashable
4197+
4198+
# Cart URL template. When the placeholders are expanded will redirect the buyer
4199+
# to the cart page on the merchant website with the selected item in cart. For
4200+
# more details, check the [help center doc](https://support.google.com/merchants/
4201+
# answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
4202+
# url-formatting)
4203+
# Corresponds to the JSON property `cartUriTemplate`
4204+
# @return [String]
4205+
attr_accessor :cart_uri_template
4206+
4207+
# Checkout URL template. When the placeholders are expanded will redirect the
4208+
# buyer to the merchant checkout page with the item in the cart. For more
4209+
# details, check the [help center doc](https://support.google.com/merchants/
4210+
# answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
4211+
# url-formatting)
4212+
# Corresponds to the JSON property `checkoutUriTemplate`
4213+
# @return [String]
4214+
attr_accessor :checkout_uri_template
4215+
4216+
def initialize(**args)
4217+
update!(**args)
4218+
end
4219+
4220+
# Update properties of this object
4221+
def update!(**args)
4222+
@cart_uri_template = args[:cart_uri_template] if args.key?(:cart_uri_template)
4223+
@checkout_uri_template = args[:checkout_uri_template] if args.key?(:checkout_uri_template)
4224+
end
4225+
end
4226+
41194227
# The `User` message represents a user associated with a Merchant Center account.
41204228
# It is used to manage user permissions and access rights within the account.
41214229
# For more information, see [Frequently asked questions about people and access

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.16.0"
19+
GEM_VERSION = "0.17.0"
2020

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

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

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
160160
include Google::Apis::Core::JsonObjectSupport
161161
end
162162

163+
class CheckoutSettings
164+
class Representation < Google::Apis::Core::JsonRepresentation; end
165+
166+
include Google::Apis::Core::JsonObjectSupport
167+
end
168+
163169
class ClaimHomepageRequest
164170
class Representation < Google::Apis::Core::JsonRepresentation; end
165171

@@ -688,6 +694,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
688694
include Google::Apis::Core::JsonObjectSupport
689695
end
690696

697+
class UriSettings
698+
class Representation < Google::Apis::Core::JsonRepresentation; end
699+
700+
include Google::Apis::Core::JsonObjectSupport
701+
end
702+
691703
class User
692704
class Representation < Google::Apis::Core::JsonRepresentation; end
693705

@@ -966,6 +978,22 @@ class Representation < Google::Apis::Core::JsonRepresentation
966978
end
967979
end
968980

981+
class CheckoutSettings
982+
# @private
983+
class Representation < Google::Apis::Core::JsonRepresentation
984+
property :effective_enrollment_state, as: 'effectiveEnrollmentState'
985+
property :effective_review_state, as: 'effectiveReviewState'
986+
property :effective_uri_settings, as: 'effectiveUriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
987+
988+
collection :eligible_destinations, as: 'eligibleDestinations'
989+
property :enrollment_state, as: 'enrollmentState'
990+
property :name, as: 'name'
991+
property :review_state, as: 'reviewState'
992+
property :uri_settings, as: 'uriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
993+
994+
end
995+
end
996+
969997
class ClaimHomepageRequest
970998
# @private
971999
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1821,6 +1849,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
18211849
end
18221850
end
18231851

1852+
class UriSettings
1853+
# @private
1854+
class Representation < Google::Apis::Core::JsonRepresentation
1855+
property :cart_uri_template, as: 'cartUriTemplate'
1856+
property :checkout_uri_template, as: 'checkoutUriTemplate'
1857+
end
1858+
end
1859+
18241860
class User
18251861
# @private
18261862
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)