@@ -990,6 +990,81 @@ def update!(**args)
990
990
end
991
991
end
992
992
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
+
993
1068
# Request message for the `ClaimHomepage` method.
994
1069
class ClaimHomepageRequest
995
1070
include Google ::Apis ::Core ::Hashable
@@ -4116,6 +4191,39 @@ def update!(**args)
4116
4191
end
4117
4192
end
4118
4193
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
+
4119
4227
# The `User` message represents a user associated with a Merchant Center account.
4120
4228
# It is used to manage user permissions and access rights within the account.
4121
4229
# For more information, see [Frequently asked questions about people and access
0 commit comments