google-apis-merchantapi_accounts_v1beta 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -84,9 +84,14 @@ module Google
84
84
 
85
85
  # Deletes the specified account regardless of its type: standalone, MCA or sub-
86
86
  # account. Deleting an MCA leads to the deletion of all of its sub-accounts.
87
- # Executing this method requires admin access.
87
+ # Executing this method requires admin access. The deletion succeeds only if the
88
+ # account does not provide services to any other account and has no processed
89
+ # offers. You can use the `force` parameter to override this.
88
90
  # @param [String] name
89
91
  # Required. The name of the account to delete. Format: `accounts/`account``
92
+ # @param [Boolean] force
93
+ # Optional. If set to `true`, the account is deleted even if it provides
94
+ # services to other accounts or has processed offers.
90
95
  # @param [String] fields
91
96
  # Selector specifying which fields to include in a partial response.
92
97
  # @param [String] quota_user
@@ -104,11 +109,12 @@ module Google
104
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
105
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
106
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
107
- def delete_account(name, fields: nil, quota_user: nil, options: nil, &block)
112
+ def delete_account(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
108
113
  command = make_simple_command(:delete, 'accounts/v1beta/{+name}', options)
109
114
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation
110
115
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty
111
116
  command.params['name'] = name unless name.nil?
117
+ command.query['force'] = force unless force.nil?
112
118
  command.query['fields'] = fields unless fields.nil?
113
119
  command.query['quotaUser'] = quota_user unless quota_user.nil?
114
120
  execute_or_queue_command(command, &block)
@@ -146,10 +152,23 @@ module Google
146
152
  execute_or_queue_command(command, &block)
147
153
  end
148
154
 
149
- # Retrieves the business identity of an account.
150
- # @param [String] name
151
- # Required. The resource name of the business identity. Format: `accounts/`
152
- # account`/businessIdentity`
155
+ # Lists accounts accessible to the calling user and matching the constraints of
156
+ # the request such as page size or filters. This is not just listing the sub-
157
+ # accounts of an MCA, but all accounts the calling user has access to including
158
+ # other MCAs, linked accounts, standalone accounts and so on. If no filter is
159
+ # provided, then it returns accounts the user is directly added to.
160
+ # @param [String] filter
161
+ # Optional. Returns only accounts that match the [filter](/merchant/api/guides/
162
+ # accounts/filter). For more details, see the [filter syntax reference](/
163
+ # merchant/api/guides/accounts/filter-syntax).
164
+ # @param [Fixnum] page_size
165
+ # Optional. The maximum number of accounts to return. The service may return
166
+ # fewer than this value. If unspecified, at most 250 accounts are returned. The
167
+ # maximum value is 500; values above 500 are coerced to 500.
168
+ # @param [String] page_token
169
+ # Optional. A page token, received from a previous `ListAccounts` call. Provide
170
+ # this to retrieve the subsequent page. When paginating, all other parameters
171
+ # provided to `ListAccounts` must match the call that provided the page token.
153
172
  # @param [String] fields
154
173
  # Selector specifying which fields to include in a partial response.
155
174
  # @param [String] quota_user
@@ -159,28 +178,40 @@ module Google
159
178
  # Request-specific options
160
179
  #
161
180
  # @yield [result, err] Result & error if block supplied
162
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
181
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse] parsed result object
163
182
  # @yieldparam err [StandardError] error object if request failed
164
183
  #
165
- # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
184
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse]
166
185
  #
167
186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
170
- def get_account_business_identity(name, fields: nil, quota_user: nil, options: nil, &block)
171
- command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
172
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
173
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
174
- command.params['name'] = name unless name.nil?
189
+ def list_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ command = make_simple_command(:get, 'accounts/v1beta/accounts', options)
191
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse::Representation
192
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse
193
+ command.query['filter'] = filter unless filter.nil?
194
+ command.query['pageSize'] = page_size unless page_size.nil?
195
+ command.query['pageToken'] = page_token unless page_token.nil?
175
196
  command.query['fields'] = fields unless fields.nil?
176
197
  command.query['quotaUser'] = quota_user unless quota_user.nil?
177
198
  execute_or_queue_command(command, &block)
178
199
  end
179
200
 
180
- # Retrieves the business info of an account.
181
- # @param [String] name
182
- # Required. The resource name of the business info. Format: `accounts/`account`/
183
- # businessInfo`
201
+ # List all sub-accounts for a given multi client account. This is a convenience
202
+ # wrapper for the more powerful `ListAccounts` method. This method will produce
203
+ # the same results as calling `ListsAccounts` with the following filter: `
204
+ # relationship(providerId=`parent` AND service(type="ACCOUNT_AGGREGATION"))`
205
+ # @param [String] provider
206
+ # Required. The aggregation service provider. Format: `providers/`providerId``
207
+ # @param [Fixnum] page_size
208
+ # Optional. The maximum number of accounts to return. The service may return
209
+ # fewer than this value. If unspecified, at most 250 accounts are returned. The
210
+ # maximum value is 500; values above 500 are coerced to 500.
211
+ # @param [String] page_token
212
+ # Optional. A page token, received from a previous `ListAccounts` call. Provide
213
+ # this to retrieve the subsequent page. When paginating, all other parameters
214
+ # provided to `ListAccounts` must match the call that provided the page token.
184
215
  # @param [String] fields
185
216
  # Selector specifying which fields to include in a partial response.
186
217
  # @param [String] quota_user
@@ -190,28 +221,35 @@ module Google
190
221
  # Request-specific options
191
222
  #
192
223
  # @yield [result, err] Result & error if block supplied
193
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] parsed result object
224
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse] parsed result object
194
225
  # @yieldparam err [StandardError] error object if request failed
195
226
  #
196
- # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo]
227
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse]
197
228
  #
198
229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
199
230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
200
231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
201
- def get_account_business_info(name, fields: nil, quota_user: nil, options: nil, &block)
202
- command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
203
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
204
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
205
- command.params['name'] = name unless name.nil?
232
+ def list_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
233
+ command = make_simple_command(:get, 'accounts/v1beta/{+provider}:listSubaccounts', options)
234
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse::Representation
235
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse
236
+ command.params['provider'] = provider unless provider.nil?
237
+ command.query['pageSize'] = page_size unless page_size.nil?
238
+ command.query['pageToken'] = page_token unless page_token.nil?
206
239
  command.query['fields'] = fields unless fields.nil?
207
240
  command.query['quotaUser'] = quota_user unless quota_user.nil?
208
241
  execute_or_queue_command(command, &block)
209
242
  end
210
243
 
211
- # Retrieves a store's homepage.
244
+ # Updates an account regardless of its type: standalone, MCA or sub-account.
245
+ # Executing this method requires admin access.
212
246
  # @param [String] name
213
- # Required. The name of the homepage to retrieve. Format: `accounts/`account`/
214
- # homepage`
247
+ # Identifier. The resource name of the account. Format: `accounts/`account``
248
+ # @param [Google::Apis::MerchantapiAccountsV1beta::Account] account_object
249
+ # @param [String] update_mask
250
+ # Optional. List of fields being updated. The following fields are supported (in
251
+ # both `snake_case` and `lowerCamelCase`): - `account_name` - `adult_content` - `
252
+ # language_code` - `time_zone`
215
253
  # @param [String] fields
216
254
  # Selector specifying which fields to include in a partial response.
217
255
  # @param [String] quota_user
@@ -221,28 +259,31 @@ module Google
221
259
  # Request-specific options
222
260
  #
223
261
  # @yield [result, err] Result & error if block supplied
224
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
262
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Account] parsed result object
225
263
  # @yieldparam err [StandardError] error object if request failed
226
264
  #
227
- # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
265
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Account]
228
266
  #
229
267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
232
- def get_account_homepage(name, fields: nil, quota_user: nil, options: nil, &block)
233
- command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
234
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
235
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
270
+ def patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
271
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
272
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
273
+ command.request_object = account_object
274
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
275
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account
236
276
  command.params['name'] = name unless name.nil?
277
+ command.query['updateMask'] = update_mask unless update_mask.nil?
237
278
  command.query['fields'] = fields unless fields.nil?
238
279
  command.query['quotaUser'] = quota_user unless quota_user.nil?
239
280
  execute_or_queue_command(command, &block)
240
281
  end
241
282
 
242
- # Retrieve shipping setting information.
283
+ # Retrieves the autofeed settings of an account.
243
284
  # @param [String] name
244
- # Required. The name of the shipping setting to retrieve. Format: `accounts/`
245
- # account`/shippingsetting`
285
+ # Required. The resource name of the autofeed settings. Format: `accounts/`
286
+ # account`/autofeedSettings`
246
287
  # @param [String] fields
247
288
  # Selector specifying which fields to include in a partial response.
248
289
  # @param [String] quota_user
@@ -252,40 +293,31 @@ module Google
252
293
  # Request-specific options
253
294
  #
254
295
  # @yield [result, err] Result & error if block supplied
255
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings] parsed result object
296
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] parsed result object
256
297
  # @yieldparam err [StandardError] error object if request failed
257
298
  #
258
- # @return [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings]
299
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings]
259
300
  #
260
301
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
302
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
303
  # @raise [Google::Apis::AuthorizationError] Authorization is required
263
- def get_account_shipping_settings(name, fields: nil, quota_user: nil, options: nil, &block)
304
+ def get_account_autofeed_setting_autofeed_settings(name, fields: nil, quota_user: nil, options: nil, &block)
264
305
  command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
265
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation
266
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
306
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings::Representation
307
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings
267
308
  command.params['name'] = name unless name.nil?
268
309
  command.query['fields'] = fields unless fields.nil?
269
310
  command.query['quotaUser'] = quota_user unless quota_user.nil?
270
311
  execute_or_queue_command(command, &block)
271
312
  end
272
313
 
273
- # Lists accounts accessible to the calling user and matching the constraints of
274
- # the request such as page size or filters. This is not just listing the sub-
275
- # accounts of an MCA, but all accounts the calling user has access to including
276
- # other MCAs, linked accounts, standalone accounts and so on.
277
- # @param [String] filter
278
- # Optional. Returns only accounts that match the [filter](/merchant/api/guides/
279
- # accounts/filter). For more details, see the [filter syntax reference](/
280
- # merchant/api/guides/accounts/filter-syntax).
281
- # @param [Fixnum] page_size
282
- # Optional. The maximum number of accounts to return. The service may return
283
- # fewer than this value. If unspecified, at most 250 accounts are returned. The
284
- # maximum value is 500; values above 500 are coerced to 500.
285
- # @param [String] page_token
286
- # Optional. A page token, received from a previous `ListAccounts` call. Provide
287
- # this to retrieve the subsequent page. When paginating, all other parameters
288
- # provided to `ListAccounts` must match the call that provided the page token.
314
+ # Updates the autofeed settings of an account.
315
+ # @param [String] name
316
+ # Identifier. The resource name of the autofeed settings. Format: `accounts/`
317
+ # account`/autofeedSettings`.
318
+ # @param [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] autofeed_settings_object
319
+ # @param [String] update_mask
320
+ # Required. List of fields being updated.
289
321
  # @param [String] fields
290
322
  # Selector specifying which fields to include in a partial response.
291
323
  # @param [String] quota_user
@@ -295,40 +327,31 @@ module Google
295
327
  # Request-specific options
296
328
  #
297
329
  # @yield [result, err] Result & error if block supplied
298
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse] parsed result object
330
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] parsed result object
299
331
  # @yieldparam err [StandardError] error object if request failed
300
332
  #
301
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse]
333
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings]
302
334
  #
303
335
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
336
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
337
  # @raise [Google::Apis::AuthorizationError] Authorization is required
306
- def list_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
307
- command = make_simple_command(:get, 'accounts/v1beta/accounts', options)
308
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse::Representation
309
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse
310
- command.query['filter'] = filter unless filter.nil?
311
- command.query['pageSize'] = page_size unless page_size.nil?
312
- command.query['pageToken'] = page_token unless page_token.nil?
338
+ def update_account_autofeed_setting_autofeed_settings(name, autofeed_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
339
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
340
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings::Representation
341
+ command.request_object = autofeed_settings_object
342
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings::Representation
343
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings
344
+ command.params['name'] = name unless name.nil?
345
+ command.query['updateMask'] = update_mask unless update_mask.nil?
313
346
  command.query['fields'] = fields unless fields.nil?
314
347
  command.query['quotaUser'] = quota_user unless quota_user.nil?
315
348
  execute_or_queue_command(command, &block)
316
349
  end
317
350
 
318
- # List all sub-accounts for a given multi client account. This is a convenience
319
- # wrapper for the more powerful `ListAccounts` method. This method will produce
320
- # the same results as calling `ListsAccounts` with the following filter: `
321
- # relationship(providerId=`parent` AND service(type="ACCOUNT_AGGREGATION"))`
322
- # @param [String] provider
323
- # Required. The parent account. Format: `accounts/`account``
324
- # @param [Fixnum] page_size
325
- # Optional. The maximum number of accounts to return. The service may return
326
- # fewer than this value. If unspecified, at most 250 accounts are returned. The
327
- # maximum value is 500; values above 500 are coerced to 500.
328
- # @param [String] page_token
329
- # Optional. A page token, received from a previous `ListAccounts` call. Provide
330
- # this to retrieve the subsequent page. When paginating, all other parameters
331
- # provided to `ListAccounts` must match the call that provided the page token.
351
+ # Retrieves the business identity of an account.
352
+ # @param [String] name
353
+ # Required. The resource name of the business identity. Format: `accounts/`
354
+ # account`/businessIdentity`
332
355
  # @param [String] fields
333
356
  # Selector specifying which fields to include in a partial response.
334
357
  # @param [String] quota_user
@@ -338,33 +361,34 @@ module Google
338
361
  # Request-specific options
339
362
  #
340
363
  # @yield [result, err] Result & error if block supplied
341
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse] parsed result object
364
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
342
365
  # @yieldparam err [StandardError] error object if request failed
343
366
  #
344
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse]
367
+ # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
345
368
  #
346
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
349
- def list_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
350
- command = make_simple_command(:get, 'accounts/v1beta/{+provider}:listSubaccounts', options)
351
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse::Representation
352
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse
353
- command.params['provider'] = provider unless provider.nil?
354
- command.query['pageSize'] = page_size unless page_size.nil?
355
- command.query['pageToken'] = page_token unless page_token.nil?
372
+ def get_account_business_identity_business_identity(name, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
374
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
375
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
376
+ command.params['name'] = name unless name.nil?
356
377
  command.query['fields'] = fields unless fields.nil?
357
378
  command.query['quotaUser'] = quota_user unless quota_user.nil?
358
379
  execute_or_queue_command(command, &block)
359
380
  end
360
381
 
361
- # Updates an account regardless of its type: standalone, MCA or sub-account.
362
- # Executing this method requires admin access.
382
+ # Updates the business identity of an account. Executing this method requires
383
+ # admin access.
363
384
  # @param [String] name
364
- # Identifier. The resource name of the account. Format: `accounts/`account``
365
- # @param [Google::Apis::MerchantapiAccountsV1beta::Account] account_object
385
+ # Identifier. The resource name of the business identity. Format: `accounts/`
386
+ # account`/businessIdentity`
387
+ # @param [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] business_identity_object
366
388
  # @param [String] update_mask
367
- # Required. List of fields being updated.
389
+ # Optional. List of fields being updated. The following fields are supported (in
390
+ # both `snake_case` and `lowerCamelCase`): - `black_owned` - `latino_owned` - `
391
+ # promotions_consent` - `small_business` - `veteran_owned` - `women_owned`
368
392
  # @param [String] fields
369
393
  # Selector specifying which fields to include in a partial response.
370
394
  # @param [String] quota_user
@@ -374,20 +398,20 @@ module Google
374
398
  # Request-specific options
375
399
  #
376
400
  # @yield [result, err] Result & error if block supplied
377
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Account] parsed result object
401
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
378
402
  # @yieldparam err [StandardError] error object if request failed
379
403
  #
380
- # @return [Google::Apis::MerchantapiAccountsV1beta::Account]
404
+ # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
381
405
  #
382
406
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
407
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
408
  # @raise [Google::Apis::AuthorizationError] Authorization is required
385
- def patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
409
+ def update_account_business_identity_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
386
410
  command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
387
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
388
- command.request_object = account_object
389
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
390
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account
411
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
412
+ command.request_object = business_identity_object
413
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
414
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
391
415
  command.params['name'] = name unless name.nil?
392
416
  command.query['updateMask'] = update_mask unless update_mask.nil?
393
417
  command.query['fields'] = fields unless fields.nil?
@@ -395,14 +419,10 @@ module Google
395
419
  execute_or_queue_command(command, &block)
396
420
  end
397
421
 
398
- # Updates the business identity of an account. Executing this method requires
399
- # admin access.
422
+ # Retrieves the business info of an account.
400
423
  # @param [String] name
401
- # Identifier. The resource name of the business identity. Format: `accounts/`
402
- # account`/businessIdentity`
403
- # @param [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] business_identity_object
404
- # @param [String] update_mask
405
- # Required. List of fields being updated.
424
+ # Required. The resource name of the business info. Format: `accounts/`account`/
425
+ # businessInfo`
406
426
  # @param [String] fields
407
427
  # Selector specifying which fields to include in a partial response.
408
428
  # @param [String] quota_user
@@ -412,22 +432,19 @@ module Google
412
432
  # Request-specific options
413
433
  #
414
434
  # @yield [result, err] Result & error if block supplied
415
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
435
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] parsed result object
416
436
  # @yieldparam err [StandardError] error object if request failed
417
437
  #
418
- # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
438
+ # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo]
419
439
  #
420
440
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
421
441
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
422
442
  # @raise [Google::Apis::AuthorizationError] Authorization is required
423
- def update_account_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
424
- command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
425
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
426
- command.request_object = business_identity_object
427
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
428
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
443
+ def get_account_business_info_business_info(name, fields: nil, quota_user: nil, options: nil, &block)
444
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
445
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
446
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
429
447
  command.params['name'] = name unless name.nil?
430
- command.query['updateMask'] = update_mask unless update_mask.nil?
431
448
  command.query['fields'] = fields unless fields.nil?
432
449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
433
450
  execute_or_queue_command(command, &block)
@@ -440,7 +457,9 @@ module Google
440
457
  # /businessInfo`
441
458
  # @param [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] business_info_object
442
459
  # @param [String] update_mask
443
- # Required. List of fields being updated.
460
+ # Optional. List of fields being updated. The following fields are supported (in
461
+ # both `snake_case` and `lowerCamelCase`): - `address` - `customer_service` - `
462
+ # korean_business_registration_number`
444
463
  # @param [String] fields
445
464
  # Selector specifying which fields to include in a partial response.
446
465
  # @param [String] quota_user
@@ -458,7 +477,7 @@ module Google
458
477
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
459
478
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460
479
  # @raise [Google::Apis::AuthorizationError] Authorization is required
461
- def update_account_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
480
+ def update_account_business_info_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
462
481
  command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
463
482
  command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
464
483
  command.request_object = business_info_object
@@ -471,13 +490,13 @@ module Google
471
490
  execute_or_queue_command(command, &block)
472
491
  end
473
492
 
474
- # Updates a store's homepage. Executing this method requires admin access.
493
+ # Returns the email preferences for a Merchant Center account user. This service
494
+ # only permits retrieving and updating email preferences for the authenticated
495
+ # user. Use the name=accounts/*/users/me/emailPreferences alias to get
496
+ # preferences for the authenticated user.
475
497
  # @param [String] name
476
- # Identifier. The resource name of the store's homepage. Format: `accounts/`
477
- # account`/homepage`
478
- # @param [Google::Apis::MerchantapiAccountsV1beta::Homepage] homepage_object
479
- # @param [String] update_mask
480
- # Required. List of fields being updated.
498
+ # Required. The name of the `EmailPreferences` resource. Format: `accounts/`
499
+ # account`/users/`email`/emailPreferences`
481
500
  # @param [String] fields
482
501
  # Selector specifying which fields to include in a partial response.
483
502
  # @param [String] quota_user
@@ -487,30 +506,37 @@ module Google
487
506
  # Request-specific options
488
507
  #
489
508
  # @yield [result, err] Result & error if block supplied
490
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
509
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
491
510
  # @yieldparam err [StandardError] error object if request failed
492
511
  #
493
- # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
512
+ # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
494
513
  #
495
514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
498
- def update_account_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
499
- command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
500
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
501
- command.request_object = homepage_object
502
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
503
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
517
+ def get_account_email_preference_email_preferences(name, fields: nil, quota_user: nil, options: nil, &block)
518
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
519
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
520
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
504
521
  command.params['name'] = name unless name.nil?
505
- command.query['updateMask'] = update_mask unless update_mask.nil?
506
522
  command.query['fields'] = fields unless fields.nil?
507
523
  command.query['quotaUser'] = quota_user unless quota_user.nil?
508
524
  execute_or_queue_command(command, &block)
509
525
  end
510
526
 
511
- # Returns the tax rules that match the conditions of GetAccountTaxRequest
527
+ # Updates the email preferences for a Merchant Center account user. MCA users
528
+ # should specify the MCA account rather than a sub-account of the MCA.
529
+ # Preferences which are not explicitly selected in the update mask will not be
530
+ # updated. It is invalid for updates to specify an UNCONFIRMED opt-in status
531
+ # value. Use the name=accounts/*/users/me/emailPreferences alias to update
532
+ # preferences for the authenticated user.
512
533
  # @param [String] name
513
- # Required. The name from which tax settings will be retrieved
534
+ # Identifier. The name of the EmailPreferences. The endpoint is only supported
535
+ # for the authenticated user.
536
+ # @param [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] email_preferences_object
537
+ # @param [String] update_mask
538
+ # Required. List of fields being updated. The following fields are supported (in
539
+ # both `snake_case` and `lowerCamelCase`): - `news_and_tips`
514
540
  # @param [String] fields
515
541
  # Selector specifying which fields to include in a partial response.
516
542
  # @param [String] quota_user
@@ -520,34 +546,40 @@ module Google
520
546
  # Request-specific options
521
547
  #
522
548
  # @yield [result, err] Result & error if block supplied
523
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
549
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
524
550
  # @yieldparam err [StandardError] error object if request failed
525
551
  #
526
- # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
552
+ # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
527
553
  #
528
554
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
529
555
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
530
556
  # @raise [Google::Apis::AuthorizationError] Authorization is required
531
- def get_account_accounttax(name, fields: nil, quota_user: nil, options: nil, &block)
532
- command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
533
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
534
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax
557
+ def update_account_email_preference_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
558
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
559
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
560
+ command.request_object = email_preferences_object
561
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
562
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
535
563
  command.params['name'] = name unless name.nil?
564
+ command.query['updateMask'] = update_mask unless update_mask.nil?
536
565
  command.query['fields'] = fields unless fields.nil?
537
566
  command.query['quotaUser'] = quota_user unless quota_user.nil?
538
567
  execute_or_queue_command(command, &block)
539
568
  end
540
569
 
541
- # Lists the tax settings of the sub-accounts only in your Merchant Center
542
- # account. This method can only be called on a multi-client account, otherwise
543
- # it'll return an error.
544
- # @param [String] parent
545
- # Required. The parent, which owns this collection of account tax. Format:
546
- # accounts/`account`
547
- # @param [Fixnum] page_size
548
- # The maximum number of tax settings to return in the response, used for paging.
549
- # @param [String] page_token
550
- # The token returned by the previous request.
570
+ # Claims a store's homepage. Executing this method requires admin access. If the
571
+ # homepage is already claimed, this will recheck the verification (unless the
572
+ # merchant is exempted from claiming, which also exempts from verification) and
573
+ # return a successful response. If ownership can no longer be verified, it will
574
+ # return an error, but it won't clear the claim. In case of failure, a canonical
575
+ # error message will be returned: * PERMISSION_DENIED: user doesn't have the
576
+ # necessary permissions on this MC account; * FAILED_PRECONDITION: - The account
577
+ # is not a Merchant Center account; - MC account doesn't have a homepage; -
578
+ # claiming failed (in this case the error message will contain more details).
579
+ # @param [String] name
580
+ # Required. The name of the homepage to claim. Format: `accounts/`account`/
581
+ # homepage`
582
+ # @param [Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest] claim_homepage_request_object
551
583
  # @param [String] fields
552
584
  # Selector specifying which fields to include in a partial response.
553
585
  # @param [String] quota_user
@@ -557,33 +589,30 @@ module Google
557
589
  # Request-specific options
558
590
  #
559
591
  # @yield [result, err] Result & error if block supplied
560
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse] parsed result object
592
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
561
593
  # @yieldparam err [StandardError] error object if request failed
562
594
  #
563
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse]
595
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
564
596
  #
565
597
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
598
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
599
  # @raise [Google::Apis::AuthorizationError] Authorization is required
568
- def list_account_accounttaxes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
569
- command = make_simple_command(:get, 'accounts/v1beta/{+parent}/accounttax', options)
570
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse::Representation
571
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse
572
- command.params['parent'] = parent unless parent.nil?
573
- command.query['pageSize'] = page_size unless page_size.nil?
574
- command.query['pageToken'] = page_token unless page_token.nil?
600
+ def claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
601
+ command = make_simple_command(:post, 'accounts/v1beta/{+name}:claim', options)
602
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest::Representation
603
+ command.request_object = claim_homepage_request_object
604
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
605
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
606
+ command.params['name'] = name unless name.nil?
575
607
  command.query['fields'] = fields unless fields.nil?
576
608
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
609
  execute_or_queue_command(command, &block)
578
610
  end
579
611
 
580
- # Updates the tax settings of the account.
612
+ # Retrieves a store's homepage.
581
613
  # @param [String] name
582
- # Identifier. The name of the tax setting. Format: "`account_tax.name=accounts/`
583
- # account``"
584
- # @param [Google::Apis::MerchantapiAccountsV1beta::AccountTax] account_tax_object
585
- # @param [String] update_mask
586
- # The list of fields to be updated
614
+ # Required. The name of the homepage to retrieve. Format: `accounts/`account`/
615
+ # homepage`
587
616
  # @param [String] fields
588
617
  # Selector specifying which fields to include in a partial response.
589
618
  # @param [String] quota_user
@@ -593,40 +622,29 @@ module Google
593
622
  # Request-specific options
594
623
  #
595
624
  # @yield [result, err] Result & error if block supplied
596
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
625
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
597
626
  # @yieldparam err [StandardError] error object if request failed
598
627
  #
599
- # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
628
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
600
629
  #
601
630
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
631
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
632
  # @raise [Google::Apis::AuthorizationError] Authorization is required
604
- def patch_account_accounttax(name, account_tax_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
605
- command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
606
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
607
- command.request_object = account_tax_object
608
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
609
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax
633
+ def get_account_homepage_homepage(name, fields: nil, quota_user: nil, options: nil, &block)
634
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
635
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
636
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
610
637
  command.params['name'] = name unless name.nil?
611
- command.query['updateMask'] = update_mask unless update_mask.nil?
612
638
  command.query['fields'] = fields unless fields.nil?
613
639
  command.query['quotaUser'] = quota_user unless quota_user.nil?
614
640
  execute_or_queue_command(command, &block)
615
641
  end
616
642
 
617
- # Claims a store's homepage. Executing this method requires admin access. If the
618
- # homepage is already claimed, this will recheck the verification (unless the
619
- # merchant is exempted from claiming, which also exempts from verification) and
620
- # return a successful response. If ownership can no longer be verified, it will
621
- # return an error, but it won't clear the claim. In case of failure, a canonical
622
- # error message will be returned: * PERMISSION_DENIED: user doesn't have the
623
- # necessary permissions on this MC account; * FAILED_PRECONDITION: - The account
624
- # is not a Merchant Center account; - MC account doesn't have a homepage; -
625
- # claiming failed (in this case the error message will contain more details).
643
+ # Unclaims a store's homepage. Executing this method requires admin access.
626
644
  # @param [String] name
627
- # Required. The name of the homepage to claim. Format: `accounts/`account`/
645
+ # Required. The name of the homepage to unclaim. Format: `accounts/`account`/
628
646
  # homepage`
629
- # @param [Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest] claim_homepage_request_object
647
+ # @param [Google::Apis::MerchantapiAccountsV1beta::UnclaimHomepageRequest] unclaim_homepage_request_object
630
648
  # @param [String] fields
631
649
  # Selector specifying which fields to include in a partial response.
632
650
  # @param [String] quota_user
@@ -644,10 +662,10 @@ module Google
644
662
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
663
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
664
  # @raise [Google::Apis::AuthorizationError] Authorization is required
647
- def claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
648
- command = make_simple_command(:post, 'accounts/v1beta/{+name}:claim', options)
649
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest::Representation
650
- command.request_object = claim_homepage_request_object
665
+ def unclaim_homepage(name, unclaim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
666
+ command = make_simple_command(:post, 'accounts/v1beta/{+name}:unclaim', options)
667
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::UnclaimHomepageRequest::Representation
668
+ command.request_object = unclaim_homepage_request_object
651
669
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
652
670
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
653
671
  command.params['name'] = name unless name.nil?
@@ -656,11 +674,14 @@ module Google
656
674
  execute_or_queue_command(command, &block)
657
675
  end
658
676
 
659
- # Unclaims a store's homepage. Executing this method requires admin access.
677
+ # Updates a store's homepage. Executing this method requires admin access.
660
678
  # @param [String] name
661
- # Required. The name of the homepage to unclaim. Format: `accounts/`account`/
662
- # homepage`
663
- # @param [Google::Apis::MerchantapiAccountsV1beta::UnclaimHomepageRequest] unclaim_homepage_request_object
679
+ # Identifier. The resource name of the store's homepage. Format: `accounts/`
680
+ # account`/homepage`
681
+ # @param [Google::Apis::MerchantapiAccountsV1beta::Homepage] homepage_object
682
+ # @param [String] update_mask
683
+ # Optional. List of fields being updated. The following fields are supported (in
684
+ # both `snake_case` and `lowerCamelCase`): - `uri`
664
685
  # @param [String] fields
665
686
  # Selector specifying which fields to include in a partial response.
666
687
  # @param [String] quota_user
@@ -678,13 +699,14 @@ module Google
678
699
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
700
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
701
  # @raise [Google::Apis::AuthorizationError] Authorization is required
681
- def unclaim_homepage(name, unclaim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
682
- command = make_simple_command(:post, 'accounts/v1beta/{+name}:unclaim', options)
683
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::UnclaimHomepageRequest::Representation
684
- command.request_object = unclaim_homepage_request_object
702
+ def update_account_homepage_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
703
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
704
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
705
+ command.request_object = homepage_object
685
706
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
686
707
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
687
708
  command.params['name'] = name unless name.nil?
709
+ command.query['updateMask'] = update_mask unless update_mask.nil?
688
710
  command.query['fields'] = fields unless fields.nil?
689
711
  command.query['quotaUser'] = quota_user unless quota_user.nil?
690
712
  execute_or_queue_command(command, &block)
@@ -707,10 +729,10 @@ module Google
707
729
  # Provide this to retrieve the subsequent page. When paginating, all other
708
730
  # parameters provided to `ListAccountIssues` must match the call that provided
709
731
  # the page token.
710
- # @param [String] time_zone_id
711
- # IANA Time Zone Database time zone, e.g. "America/New_York".
712
- # @param [String] time_zone_version
713
- # Optional. IANA Time Zone Database version number, e.g. "2019a".
732
+ # @param [String] time_zone
733
+ # Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
734
+ # localize times in human-readable fields. For example 'America/Los_Angeles'. If
735
+ # not set, 'America/Los_Angeles' will be used.
714
736
  # @param [String] fields
715
737
  # Selector specifying which fields to include in a partial response.
716
738
  # @param [String] quota_user
@@ -728,7 +750,7 @@ module Google
728
750
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
751
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
752
  # @raise [Google::Apis::AuthorizationError] Authorization is required
731
- def list_account_issues(parent, language_code: nil, page_size: nil, page_token: nil, time_zone_id: nil, time_zone_version: nil, fields: nil, quota_user: nil, options: nil, &block)
753
+ def list_account_issues(parent, language_code: nil, page_size: nil, page_token: nil, time_zone: nil, fields: nil, quota_user: nil, options: nil, &block)
732
754
  command = make_simple_command(:get, 'accounts/v1beta/{+parent}/issues', options)
733
755
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse::Representation
734
756
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse
@@ -736,14 +758,13 @@ module Google
736
758
  command.query['languageCode'] = language_code unless language_code.nil?
737
759
  command.query['pageSize'] = page_size unless page_size.nil?
738
760
  command.query['pageToken'] = page_token unless page_token.nil?
739
- command.query['timeZone.id'] = time_zone_id unless time_zone_id.nil?
740
- command.query['timeZone.version'] = time_zone_version unless time_zone_version.nil?
761
+ command.query['timeZone'] = time_zone unless time_zone.nil?
741
762
  command.query['fields'] = fields unless fields.nil?
742
763
  command.query['quotaUser'] = quota_user unless quota_user.nil?
743
764
  execute_or_queue_command(command, &block)
744
765
  end
745
766
 
746
- # Gets an existing return policy.
767
+ # Gets an existing return policy for a given merchant.
747
768
  # @param [String] name
748
769
  # Required. The name of the return policy to retrieve. Format: `accounts/`
749
770
  # account`/onlineReturnPolicies/`return_policy``
@@ -774,7 +795,7 @@ module Google
774
795
  execute_or_queue_command(command, &block)
775
796
  end
776
797
 
777
- # Lists all existing return policies.
798
+ # Lists all existing return policies for a given merchant.
778
799
  # @param [String] parent
779
800
  # Required. The merchant account for which to list return policies. Format: `
780
801
  # accounts/`account``
@@ -1140,6 +1161,37 @@ module Google
1140
1161
  execute_or_queue_command(command, &block)
1141
1162
  end
1142
1163
 
1164
+ # Retrieve shipping setting information.
1165
+ # @param [String] name
1166
+ # Required. The name of the shipping setting to retrieve. Format: `accounts/`
1167
+ # account`/shippingsetting`
1168
+ # @param [String] fields
1169
+ # Selector specifying which fields to include in a partial response.
1170
+ # @param [String] quota_user
1171
+ # Available to use for quota purposes for server-side applications. Can be any
1172
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1173
+ # @param [Google::Apis::RequestOptions] options
1174
+ # Request-specific options
1175
+ #
1176
+ # @yield [result, err] Result & error if block supplied
1177
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings] parsed result object
1178
+ # @yieldparam err [StandardError] error object if request failed
1179
+ #
1180
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings]
1181
+ #
1182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
+ def get_account_shipping_setting_shipping_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1186
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
1187
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation
1188
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
1189
+ command.params['name'] = name unless name.nil?
1190
+ command.query['fields'] = fields unless fields.nil?
1191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1192
+ execute_or_queue_command(command, &block)
1193
+ end
1194
+
1143
1195
  # Replace the shipping setting of a merchant with the request shipping setting.
1144
1196
  # Executing this method requires admin access.
1145
1197
  # @param [String] parent
@@ -1178,7 +1230,8 @@ module Google
1178
1230
  # Returns the state of a terms of service agreement.
1179
1231
  # @param [String] name
1180
1232
  # Required. The resource name of the terms of service version. Format: `accounts/
1181
- # `account`/termsOfServiceAgreementState/`identifier``
1233
+ # `account`/termsOfServiceAgreementState/`identifier`` The identifier format is:
1234
+ # ``TermsOfServiceKind`-`country``
1182
1235
  # @param [String] fields
1183
1236
  # Selector specifying which fields to include in a partial response.
1184
1237
  # @param [String] quota_user
@@ -1276,7 +1329,8 @@ module Google
1276
1329
  end
1277
1330
 
1278
1331
  # Deletes a Merchant Center account user. Executing this method requires admin
1279
- # access.
1332
+ # access. The user to be deleted can't be the last admin user of that account.
1333
+ # Also a user is protected from deletion if it is managed by Business Manager"
1280
1334
  # @param [String] name
1281
1335
  # Required. The name of the user to delete. Format: `accounts/`account`/users/`
1282
1336
  # email`` It is also possible to delete the user corresponding to the caller by
@@ -1340,39 +1394,6 @@ module Google
1340
1394
  execute_or_queue_command(command, &block)
1341
1395
  end
1342
1396
 
1343
- # Returns the email preferences for a Merchant Center account user. Use the name=
1344
- # accounts/*/users/me/emailPreferences alias to get preferences for the
1345
- # authenticated user.
1346
- # @param [String] name
1347
- # Required. The name of the `EmailPreferences` resource. Format: `accounts/`
1348
- # account`/users/`email`/emailPreferences`
1349
- # @param [String] fields
1350
- # Selector specifying which fields to include in a partial response.
1351
- # @param [String] quota_user
1352
- # Available to use for quota purposes for server-side applications. Can be any
1353
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1354
- # @param [Google::Apis::RequestOptions] options
1355
- # Request-specific options
1356
- #
1357
- # @yield [result, err] Result & error if block supplied
1358
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
1359
- # @yieldparam err [StandardError] error object if request failed
1360
- #
1361
- # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
1362
- #
1363
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1364
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1365
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1366
- def get_account_user_email_preferences(name, fields: nil, quota_user: nil, options: nil, &block)
1367
- command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
1368
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
1369
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
1370
- command.params['name'] = name unless name.nil?
1371
- command.query['fields'] = fields unless fields.nil?
1372
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1373
- execute_or_queue_command(command, &block)
1374
- end
1375
-
1376
1397
  # Lists all users of a Merchant Center account.
1377
1398
  # @param [String] parent
1378
1399
  # Required. The parent, which owns this collection of users. Format: `accounts/`
@@ -1422,7 +1443,8 @@ module Google
1422
1443
  # account`/users/me`.
1423
1444
  # @param [Google::Apis::MerchantapiAccountsV1beta::User] user_object
1424
1445
  # @param [String] update_mask
1425
- # Required. List of fields being updated.
1446
+ # Optional. List of fields being updated. The following fields are supported (in
1447
+ # both `snake_case` and `lowerCamelCase`): - `access_rights`
1426
1448
  # @param [String] fields
1427
1449
  # Selector specifying which fields to include in a partial response.
1428
1450
  # @param [String] quota_user
@@ -1453,48 +1475,6 @@ module Google
1453
1475
  execute_or_queue_command(command, &block)
1454
1476
  end
1455
1477
 
1456
- # Updates the email preferences for a Merchant Center account user. MCA users
1457
- # should specify the MCA account rather than a sub-account of the MCA.
1458
- # Preferences which are not explicitly selected in the update mask will not be
1459
- # updated. It is invalid for updates to specify an UNCONFIRMED opt-in status
1460
- # value. Use the name=accounts/*/users/me/emailPreferences alias to update
1461
- # preferences for the authenticated user.
1462
- # @param [String] name
1463
- # Identifier. The name of the EmailPreferences. The endpoint is only supported
1464
- # for the authenticated user.
1465
- # @param [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] email_preferences_object
1466
- # @param [String] update_mask
1467
- # Required. List of fields being updated.
1468
- # @param [String] fields
1469
- # Selector specifying which fields to include in a partial response.
1470
- # @param [String] quota_user
1471
- # Available to use for quota purposes for server-side applications. Can be any
1472
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1473
- # @param [Google::Apis::RequestOptions] options
1474
- # Request-specific options
1475
- #
1476
- # @yield [result, err] Result & error if block supplied
1477
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
1478
- # @yieldparam err [StandardError] error object if request failed
1479
- #
1480
- # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
1481
- #
1482
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1483
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1484
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1485
- def update_account_user_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1486
- command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
1487
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
1488
- command.request_object = email_preferences_object
1489
- command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
1490
- command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
1491
- command.params['name'] = name unless name.nil?
1492
- command.query['updateMask'] = update_mask unless update_mask.nil?
1493
- command.query['fields'] = fields unless fields.nil?
1494
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1495
- execute_or_queue_command(command, &block)
1496
- end
1497
-
1498
1478
  # Accepts a `TermsOfService`. Executing this method requires admin access.
1499
1479
  # @param [String] name
1500
1480
  # Required. The resource name of the terms of service version. Format: `
@@ -1568,11 +1548,11 @@ module Google
1568
1548
  # Retrieves the latest version of the `TermsOfService` for a given `kind` and `
1569
1549
  # region_code`.
1570
1550
  # @param [String] kind
1571
- # The Kind this terms of service version applies to.
1551
+ # Required. The Kind this terms of service version applies to.
1572
1552
  # @param [String] region_code
1573
- # Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a
1574
- # country when the ToS applies specifically to that country or 001 when it
1575
- # applies globally.
1553
+ # Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is
1554
+ # either a country when the ToS applies specifically to that country or 001 when
1555
+ # it applies globally.
1576
1556
  # @param [String] fields
1577
1557
  # Selector specifying which fields to include in a partial response.
1578
1558
  # @param [String] quota_user