google-apis-merchantapi_accounts_v1beta 0.1.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0c1ffc31d199813070f9e6d1011977aef4384bc0f07e06d8124578a41e1181b
4
- data.tar.gz: b1f8fe89f914e0fcc0c7358a722cb7d24d49eecf5b41546a3bdd38b2fdae3a07
3
+ metadata.gz: 5041124272e679f3e58a9b875c616c82b5a83312bb8233fb438fd698afa090f2
4
+ data.tar.gz: 95e2b4e11635aed65d6eb28647a8297af16fb5f5b4be88e85bb92797f51c58ed
5
5
  SHA512:
6
- metadata.gz: 0cdc5bfff737bd0b0635c6152ebf392f7eb4d8991b715522fcead32263c3e9295273e85b80bdf2c054ee985446e29e15c385f98e948d371c5a2f35111f9df868
7
- data.tar.gz: 10b6ed1ffbf0654d16627d1e4e5a8a0e22f6a945e873a486b44804da4edc53ebfe551943290be38c60fde28570ccb65b81c8e7333d7138cf3da3c9394acc57d6
6
+ metadata.gz: e2cc0aaff7b64175ac68ba902a7956064f3795346acdedd3fff32e2f0becbab0a9a8d2ede7fcf126ad4a306158b9c7e99167999b9a25485097316f46727f79ab
7
+ data.tar.gz: 7286e63c593683f2ee81f401347073cb2644d03e81b80344ec5bcaec4e23caf880a06e52620c47eb109c2a19122f153bc5c9d9b73a19870c2719fe928171cd52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.2.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240719
6
+
3
7
  ### v0.1.0 (2024-06-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20240611
@@ -2742,7 +2742,9 @@ module Google
2742
2742
  attr_accessor :accepted
2743
2743
 
2744
2744
  # Identifier. The resource name of the terms of service version. Format: `
2745
- # accounts/`account`/termsOfServiceAgreementState/`identifier``
2745
+ # accounts/`account`/termsOfServiceAgreementState/`identifier`` The identifier
2746
+ # format is: ``TermsOfServiceKind`-`country`` For example, an identifier could
2747
+ # be: `MERCHANT_CENTER-US`
2746
2748
  # Corresponds to the JSON property `name`
2747
2749
  # @return [String]
2748
2750
  attr_accessor :name
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiAccountsV1beta
18
18
  # Version of the google-apis-merchantapi_accounts_v1beta gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240611"
25
+ REVISION = "20240719"
26
26
  end
27
27
  end
28
28
  end
@@ -146,10 +146,22 @@ module Google
146
146
  execute_or_queue_command(command, &block)
147
147
  end
148
148
 
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`
149
+ # Lists accounts accessible to the calling user and matching the constraints of
150
+ # the request such as page size or filters. This is not just listing the sub-
151
+ # accounts of an MCA, but all accounts the calling user has access to including
152
+ # other MCAs, linked accounts, standalone accounts and so on.
153
+ # @param [String] filter
154
+ # Optional. Returns only accounts that match the [filter](/merchant/api/guides/
155
+ # accounts/filter). For more details, see the [filter syntax reference](/
156
+ # merchant/api/guides/accounts/filter-syntax).
157
+ # @param [Fixnum] page_size
158
+ # Optional. The maximum number of accounts to return. The service may return
159
+ # fewer than this value. If unspecified, at most 250 accounts are returned. The
160
+ # maximum value is 500; values above 500 are coerced to 500.
161
+ # @param [String] page_token
162
+ # Optional. A page token, received from a previous `ListAccounts` call. Provide
163
+ # this to retrieve the subsequent page. When paginating, all other parameters
164
+ # provided to `ListAccounts` must match the call that provided the page token.
153
165
  # @param [String] fields
154
166
  # Selector specifying which fields to include in a partial response.
155
167
  # @param [String] quota_user
@@ -159,28 +171,40 @@ module Google
159
171
  # Request-specific options
160
172
  #
161
173
  # @yield [result, err] Result & error if block supplied
162
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
174
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse] parsed result object
163
175
  # @yieldparam err [StandardError] error object if request failed
164
176
  #
165
- # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
177
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse]
166
178
  #
167
179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
181
  # @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?
182
+ def list_accounts(filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
183
+ command = make_simple_command(:get, 'accounts/v1beta/accounts', options)
184
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse::Representation
185
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse
186
+ command.query['filter'] = filter unless filter.nil?
187
+ command.query['pageSize'] = page_size unless page_size.nil?
188
+ command.query['pageToken'] = page_token unless page_token.nil?
175
189
  command.query['fields'] = fields unless fields.nil?
176
190
  command.query['quotaUser'] = quota_user unless quota_user.nil?
177
191
  execute_or_queue_command(command, &block)
178
192
  end
179
193
 
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`
194
+ # List all sub-accounts for a given multi client account. This is a convenience
195
+ # wrapper for the more powerful `ListAccounts` method. This method will produce
196
+ # the same results as calling `ListsAccounts` with the following filter: `
197
+ # relationship(providerId=`parent` AND service(type="ACCOUNT_AGGREGATION"))`
198
+ # @param [String] provider
199
+ # Required. The parent account. Format: `accounts/`account``
200
+ # @param [Fixnum] page_size
201
+ # Optional. The maximum number of accounts to return. The service may return
202
+ # fewer than this value. If unspecified, at most 250 accounts are returned. The
203
+ # maximum value is 500; values above 500 are coerced to 500.
204
+ # @param [String] page_token
205
+ # Optional. A page token, received from a previous `ListAccounts` call. Provide
206
+ # this to retrieve the subsequent page. When paginating, all other parameters
207
+ # provided to `ListAccounts` must match the call that provided the page token.
184
208
  # @param [String] fields
185
209
  # Selector specifying which fields to include in a partial response.
186
210
  # @param [String] quota_user
@@ -190,28 +214,33 @@ module Google
190
214
  # Request-specific options
191
215
  #
192
216
  # @yield [result, err] Result & error if block supplied
193
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] parsed result object
217
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse] parsed result object
194
218
  # @yieldparam err [StandardError] error object if request failed
195
219
  #
196
- # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo]
220
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse]
197
221
  #
198
222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
199
223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
200
224
  # @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?
225
+ def list_account_subaccounts(provider, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
226
+ command = make_simple_command(:get, 'accounts/v1beta/{+provider}:listSubaccounts', options)
227
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse::Representation
228
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse
229
+ command.params['provider'] = provider unless provider.nil?
230
+ command.query['pageSize'] = page_size unless page_size.nil?
231
+ command.query['pageToken'] = page_token unless page_token.nil?
206
232
  command.query['fields'] = fields unless fields.nil?
207
233
  command.query['quotaUser'] = quota_user unless quota_user.nil?
208
234
  execute_or_queue_command(command, &block)
209
235
  end
210
236
 
211
- # Retrieves a store's homepage.
237
+ # Updates an account regardless of its type: standalone, MCA or sub-account.
238
+ # Executing this method requires admin access.
212
239
  # @param [String] name
213
- # Required. The name of the homepage to retrieve. Format: `accounts/`account`/
214
- # homepage`
240
+ # Identifier. The resource name of the account. Format: `accounts/`account``
241
+ # @param [Google::Apis::MerchantapiAccountsV1beta::Account] account_object
242
+ # @param [String] update_mask
243
+ # Required. List of fields being updated.
215
244
  # @param [String] fields
216
245
  # Selector specifying which fields to include in a partial response.
217
246
  # @param [String] quota_user
@@ -221,28 +250,30 @@ module Google
221
250
  # Request-specific options
222
251
  #
223
252
  # @yield [result, err] Result & error if block supplied
224
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
253
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Account] parsed result object
225
254
  # @yieldparam err [StandardError] error object if request failed
226
255
  #
227
- # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
256
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Account]
228
257
  #
229
258
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
230
259
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
231
260
  # @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
261
+ def patch_account(name, account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
262
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
263
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
264
+ command.request_object = account_object
265
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Account::Representation
266
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Account
236
267
  command.params['name'] = name unless name.nil?
268
+ command.query['updateMask'] = update_mask unless update_mask.nil?
237
269
  command.query['fields'] = fields unless fields.nil?
238
270
  command.query['quotaUser'] = quota_user unless quota_user.nil?
239
271
  execute_or_queue_command(command, &block)
240
272
  end
241
273
 
242
- # Retrieve shipping setting information.
274
+ # Returns the tax rules that match the conditions of GetAccountTaxRequest
243
275
  # @param [String] name
244
- # Required. The name of the shipping setting to retrieve. Format: `accounts/`
245
- # account`/shippingsetting`
276
+ # Required. The name from which tax settings will be retrieved
246
277
  # @param [String] fields
247
278
  # Selector specifying which fields to include in a partial response.
248
279
  # @param [String] quota_user
@@ -252,40 +283,34 @@ module Google
252
283
  # Request-specific options
253
284
  #
254
285
  # @yield [result, err] Result & error if block supplied
255
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings] parsed result object
286
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
256
287
  # @yieldparam err [StandardError] error object if request failed
257
288
  #
258
- # @return [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings]
289
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
259
290
  #
260
291
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
261
292
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
262
293
  # @raise [Google::Apis::AuthorizationError] Authorization is required
263
- def get_account_shipping_settings(name, fields: nil, quota_user: nil, options: nil, &block)
294
+ def get_account_accounttax(name, fields: nil, quota_user: nil, options: nil, &block)
264
295
  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
296
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
297
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax
267
298
  command.params['name'] = name unless name.nil?
268
299
  command.query['fields'] = fields unless fields.nil?
269
300
  command.query['quotaUser'] = quota_user unless quota_user.nil?
270
301
  execute_or_queue_command(command, &block)
271
302
  end
272
303
 
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).
304
+ # Lists the tax settings of the sub-accounts only in your Merchant Center
305
+ # account. This method can only be called on a multi-client account, otherwise
306
+ # it'll return an error.
307
+ # @param [String] parent
308
+ # Required. The parent, which owns this collection of account tax. Format:
309
+ # accounts/`account`
281
310
  # @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.
311
+ # The maximum number of tax settings to return in the response, used for paging.
285
312
  # @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.
313
+ # The token returned by the previous request.
289
314
  # @param [String] fields
290
315
  # Selector specifying which fields to include in a partial response.
291
316
  # @param [String] quota_user
@@ -295,19 +320,19 @@ module Google
295
320
  # Request-specific options
296
321
  #
297
322
  # @yield [result, err] Result & error if block supplied
298
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse] parsed result object
323
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse] parsed result object
299
324
  # @yieldparam err [StandardError] error object if request failed
300
325
  #
301
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountsResponse]
326
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse]
302
327
  #
303
328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
330
  # @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?
331
+ def list_account_accounttaxes(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
332
+ command = make_simple_command(:get, 'accounts/v1beta/{+parent}/accounttax', options)
333
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse::Representation
334
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse
335
+ command.params['parent'] = parent unless parent.nil?
311
336
  command.query['pageSize'] = page_size unless page_size.nil?
312
337
  command.query['pageToken'] = page_token unless page_token.nil?
313
338
  command.query['fields'] = fields unless fields.nil?
@@ -315,20 +340,13 @@ module Google
315
340
  execute_or_queue_command(command, &block)
316
341
  end
317
342
 
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.
343
+ # Updates the tax settings of the account.
344
+ # @param [String] name
345
+ # Identifier. The name of the tax setting. Format: "`account_tax.name=accounts/`
346
+ # account``"
347
+ # @param [Google::Apis::MerchantapiAccountsV1beta::AccountTax] account_tax_object
348
+ # @param [String] update_mask
349
+ # The list of fields to be updated
332
350
  # @param [String] fields
333
351
  # Selector specifying which fields to include in a partial response.
334
352
  # @param [String] quota_user
@@ -338,33 +356,31 @@ module Google
338
356
  # Request-specific options
339
357
  #
340
358
  # @yield [result, err] Result & error if block supplied
341
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse] parsed result object
359
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
342
360
  # @yieldparam err [StandardError] error object if request failed
343
361
  #
344
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListSubAccountsResponse]
362
+ # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
345
363
  #
346
364
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
347
365
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
348
366
  # @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?
367
+ def patch_account_accounttax(name, account_tax_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
368
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
369
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
370
+ command.request_object = account_tax_object
371
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
372
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::AccountTax
373
+ command.params['name'] = name unless name.nil?
374
+ command.query['updateMask'] = update_mask unless update_mask.nil?
356
375
  command.query['fields'] = fields unless fields.nil?
357
376
  command.query['quotaUser'] = quota_user unless quota_user.nil?
358
377
  execute_or_queue_command(command, &block)
359
378
  end
360
379
 
361
- # Updates an account regardless of its type: standalone, MCA or sub-account.
362
- # Executing this method requires admin access.
380
+ # Retrieves the business identity of an account.
363
381
  # @param [String] name
364
- # Identifier. The resource name of the account. Format: `accounts/`account``
365
- # @param [Google::Apis::MerchantapiAccountsV1beta::Account] account_object
366
- # @param [String] update_mask
367
- # Required. List of fields being updated.
382
+ # Required. The resource name of the business identity. Format: `accounts/`
383
+ # account`/businessIdentity`
368
384
  # @param [String] fields
369
385
  # Selector specifying which fields to include in a partial response.
370
386
  # @param [String] quota_user
@@ -374,22 +390,19 @@ module Google
374
390
  # Request-specific options
375
391
  #
376
392
  # @yield [result, err] Result & error if block supplied
377
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Account] parsed result object
393
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] parsed result object
378
394
  # @yieldparam err [StandardError] error object if request failed
379
395
  #
380
- # @return [Google::Apis::MerchantapiAccountsV1beta::Account]
396
+ # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity]
381
397
  #
382
398
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
383
399
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
384
400
  # @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)
386
- 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
401
+ def get_account_business_identity_business_identity(name, fields: nil, quota_user: nil, options: nil, &block)
402
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
403
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
404
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity
391
405
  command.params['name'] = name unless name.nil?
392
- command.query['updateMask'] = update_mask unless update_mask.nil?
393
406
  command.query['fields'] = fields unless fields.nil?
394
407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
395
408
  execute_or_queue_command(command, &block)
@@ -420,7 +433,7 @@ module Google
420
433
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
421
434
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
422
435
  # @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)
436
+ def update_account_business_identity_business_identity(name, business_identity_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
424
437
  command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
425
438
  command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity::Representation
426
439
  command.request_object = business_identity_object
@@ -433,14 +446,10 @@ module Google
433
446
  execute_or_queue_command(command, &block)
434
447
  end
435
448
 
436
- # Updates the business info of an account. Executing this method requires admin
437
- # access.
449
+ # Retrieves the business info of an account.
438
450
  # @param [String] name
439
- # Identifier. The resource name of the business info. Format: `accounts/`account`
440
- # /businessInfo`
441
- # @param [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] business_info_object
442
- # @param [String] update_mask
443
- # Required. List of fields being updated.
451
+ # Required. The resource name of the business info. Format: `accounts/`account`/
452
+ # businessInfo`
444
453
  # @param [String] fields
445
454
  # Selector specifying which fields to include in a partial response.
446
455
  # @param [String] quota_user
@@ -458,24 +467,22 @@ module Google
458
467
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
459
468
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
460
469
  # @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)
462
- command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
463
- command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
464
- command.request_object = business_info_object
470
+ def get_account_business_info_business_info(name, fields: nil, quota_user: nil, options: nil, &block)
471
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
465
472
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
466
473
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
467
474
  command.params['name'] = name unless name.nil?
468
- command.query['updateMask'] = update_mask unless update_mask.nil?
469
475
  command.query['fields'] = fields unless fields.nil?
470
476
  command.query['quotaUser'] = quota_user unless quota_user.nil?
471
477
  execute_or_queue_command(command, &block)
472
478
  end
473
479
 
474
- # Updates a store's homepage. Executing this method requires admin access.
480
+ # Updates the business info of an account. Executing this method requires admin
481
+ # access.
475
482
  # @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
483
+ # Identifier. The resource name of the business info. Format: `accounts/`account`
484
+ # /businessInfo`
485
+ # @param [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] business_info_object
479
486
  # @param [String] update_mask
480
487
  # Required. List of fields being updated.
481
488
  # @param [String] fields
@@ -487,20 +494,20 @@ module Google
487
494
  # Request-specific options
488
495
  #
489
496
  # @yield [result, err] Result & error if block supplied
490
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
497
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] parsed result object
491
498
  # @yieldparam err [StandardError] error object if request failed
492
499
  #
493
- # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
500
+ # @return [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo]
494
501
  #
495
502
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
496
503
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
497
504
  # @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)
505
+ def update_account_business_info_business_info(name, business_info_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
499
506
  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
507
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
508
+ command.request_object = business_info_object
509
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo::Representation
510
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::BusinessInfo
504
511
  command.params['name'] = name unless name.nil?
505
512
  command.query['updateMask'] = update_mask unless update_mask.nil?
506
513
  command.query['fields'] = fields unless fields.nil?
@@ -508,9 +515,12 @@ module Google
508
515
  execute_or_queue_command(command, &block)
509
516
  end
510
517
 
511
- # Returns the tax rules that match the conditions of GetAccountTaxRequest
518
+ # Returns the email preferences for a Merchant Center account user. Use the name=
519
+ # accounts/*/users/me/emailPreferences alias to get preferences for the
520
+ # authenticated user.
512
521
  # @param [String] name
513
- # Required. The name from which tax settings will be retrieved
522
+ # Required. The name of the `EmailPreferences` resource. Format: `accounts/`
523
+ # account`/users/`email`/emailPreferences`
514
524
  # @param [String] fields
515
525
  # Selector specifying which fields to include in a partial response.
516
526
  # @param [String] quota_user
@@ -520,34 +530,36 @@ module Google
520
530
  # Request-specific options
521
531
  #
522
532
  # @yield [result, err] Result & error if block supplied
523
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
533
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
524
534
  # @yieldparam err [StandardError] error object if request failed
525
535
  #
526
- # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
536
+ # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
527
537
  #
528
538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
529
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
530
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
531
- def get_account_accounttax(name, fields: nil, quota_user: nil, options: nil, &block)
541
+ def get_account_emailpreference_email_preferences(name, fields: nil, quota_user: nil, options: nil, &block)
532
542
  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
543
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
544
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
535
545
  command.params['name'] = name unless name.nil?
536
546
  command.query['fields'] = fields unless fields.nil?
537
547
  command.query['quotaUser'] = quota_user unless quota_user.nil?
538
548
  execute_or_queue_command(command, &block)
539
549
  end
540
550
 
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.
551
+ # Updates the email preferences for a Merchant Center account user. MCA users
552
+ # should specify the MCA account rather than a sub-account of the MCA.
553
+ # Preferences which are not explicitly selected in the update mask will not be
554
+ # updated. It is invalid for updates to specify an UNCONFIRMED opt-in status
555
+ # value. Use the name=accounts/*/users/me/emailPreferences alias to update
556
+ # preferences for the authenticated user.
557
+ # @param [String] name
558
+ # Identifier. The name of the EmailPreferences. The endpoint is only supported
559
+ # for the authenticated user.
560
+ # @param [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] email_preferences_object
561
+ # @param [String] update_mask
562
+ # Required. List of fields being updated.
551
563
  # @param [String] fields
552
564
  # Selector specifying which fields to include in a partial response.
553
565
  # @param [String] quota_user
@@ -557,33 +569,40 @@ module Google
557
569
  # Request-specific options
558
570
  #
559
571
  # @yield [result, err] Result & error if block supplied
560
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse] parsed result object
572
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] parsed result object
561
573
  # @yieldparam err [StandardError] error object if request failed
562
574
  #
563
- # @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse]
575
+ # @return [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences]
564
576
  #
565
577
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
578
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
579
  # @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?
580
+ def update_account_emailpreference_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
581
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
582
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
583
+ command.request_object = email_preferences_object
584
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
585
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
586
+ command.params['name'] = name unless name.nil?
587
+ command.query['updateMask'] = update_mask unless update_mask.nil?
575
588
  command.query['fields'] = fields unless fields.nil?
576
589
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
590
  execute_or_queue_command(command, &block)
578
591
  end
579
592
 
580
- # Updates the tax settings of the account.
593
+ # Claims a store's homepage. Executing this method requires admin access. If the
594
+ # homepage is already claimed, this will recheck the verification (unless the
595
+ # merchant is exempted from claiming, which also exempts from verification) and
596
+ # return a successful response. If ownership can no longer be verified, it will
597
+ # return an error, but it won't clear the claim. In case of failure, a canonical
598
+ # error message will be returned: * PERMISSION_DENIED: user doesn't have the
599
+ # necessary permissions on this MC account; * FAILED_PRECONDITION: - The account
600
+ # is not a Merchant Center account; - MC account doesn't have a homepage; -
601
+ # claiming failed (in this case the error message will contain more details).
581
602
  # @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
603
+ # Required. The name of the homepage to claim. Format: `accounts/`account`/
604
+ # homepage`
605
+ # @param [Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest] claim_homepage_request_object
587
606
  # @param [String] fields
588
607
  # Selector specifying which fields to include in a partial response.
589
608
  # @param [String] quota_user
@@ -593,40 +612,30 @@ module Google
593
612
  # Request-specific options
594
613
  #
595
614
  # @yield [result, err] Result & error if block supplied
596
- # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AccountTax] parsed result object
615
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
597
616
  # @yieldparam err [StandardError] error object if request failed
598
617
  #
599
- # @return [Google::Apis::MerchantapiAccountsV1beta::AccountTax]
618
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
600
619
  #
601
620
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
602
621
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
603
622
  # @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
623
+ def claim_homepage(name, claim_homepage_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:post, 'accounts/v1beta/{+name}:claim', options)
625
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest::Representation
626
+ command.request_object = claim_homepage_request_object
627
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
628
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
610
629
  command.params['name'] = name unless name.nil?
611
- command.query['updateMask'] = update_mask unless update_mask.nil?
612
630
  command.query['fields'] = fields unless fields.nil?
613
631
  command.query['quotaUser'] = quota_user unless quota_user.nil?
614
632
  execute_or_queue_command(command, &block)
615
633
  end
616
634
 
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).
635
+ # Retrieves a store's homepage.
626
636
  # @param [String] name
627
- # Required. The name of the homepage to claim. Format: `accounts/`account`/
637
+ # Required. The name of the homepage to retrieve. Format: `accounts/`account`/
628
638
  # homepage`
629
- # @param [Google::Apis::MerchantapiAccountsV1beta::ClaimHomepageRequest] claim_homepage_request_object
630
639
  # @param [String] fields
631
640
  # Selector specifying which fields to include in a partial response.
632
641
  # @param [String] quota_user
@@ -644,10 +653,8 @@ module Google
644
653
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
645
654
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
646
655
  # @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
656
+ def get_account_homepage_homepage(name, fields: nil, quota_user: nil, options: nil, &block)
657
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
651
658
  command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
652
659
  command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
653
660
  command.params['name'] = name unless name.nil?
@@ -690,6 +697,43 @@ module Google
690
697
  execute_or_queue_command(command, &block)
691
698
  end
692
699
 
700
+ # Updates a store's homepage. Executing this method requires admin access.
701
+ # @param [String] name
702
+ # Identifier. The resource name of the store's homepage. Format: `accounts/`
703
+ # account`/homepage`
704
+ # @param [Google::Apis::MerchantapiAccountsV1beta::Homepage] homepage_object
705
+ # @param [String] update_mask
706
+ # Required. List of fields being updated.
707
+ # @param [String] fields
708
+ # Selector specifying which fields to include in a partial response.
709
+ # @param [String] quota_user
710
+ # Available to use for quota purposes for server-side applications. Can be any
711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
712
+ # @param [Google::Apis::RequestOptions] options
713
+ # Request-specific options
714
+ #
715
+ # @yield [result, err] Result & error if block supplied
716
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Homepage] parsed result object
717
+ # @yieldparam err [StandardError] error object if request failed
718
+ #
719
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Homepage]
720
+ #
721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
724
+ def update_account_homepage_homepage(name, homepage_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
725
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
726
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
727
+ command.request_object = homepage_object
728
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Homepage::Representation
729
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Homepage
730
+ command.params['name'] = name unless name.nil?
731
+ command.query['updateMask'] = update_mask unless update_mask.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ execute_or_queue_command(command, &block)
735
+ end
736
+
693
737
  # Lists all account issues of a Merchant Center account.
694
738
  # @param [String] parent
695
739
  # Required. The parent, which owns this collection of issues. Format: `accounts/`
@@ -1140,6 +1184,37 @@ module Google
1140
1184
  execute_or_queue_command(command, &block)
1141
1185
  end
1142
1186
 
1187
+ # Retrieve shipping setting information.
1188
+ # @param [String] name
1189
+ # Required. The name of the shipping setting to retrieve. Format: `accounts/`
1190
+ # account`/shippingsetting`
1191
+ # @param [String] fields
1192
+ # Selector specifying which fields to include in a partial response.
1193
+ # @param [String] quota_user
1194
+ # Available to use for quota purposes for server-side applications. Can be any
1195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1196
+ # @param [Google::Apis::RequestOptions] options
1197
+ # Request-specific options
1198
+ #
1199
+ # @yield [result, err] Result & error if block supplied
1200
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings] parsed result object
1201
+ # @yieldparam err [StandardError] error object if request failed
1202
+ #
1203
+ # @return [Google::Apis::MerchantapiAccountsV1beta::ShippingSettings]
1204
+ #
1205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1208
+ def get_account_shipping_setting_shipping_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1209
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
1210
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings::Representation
1211
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::ShippingSettings
1212
+ command.params['name'] = name unless name.nil?
1213
+ command.query['fields'] = fields unless fields.nil?
1214
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1215
+ execute_or_queue_command(command, &block)
1216
+ end
1217
+
1143
1218
  # Replace the shipping setting of a merchant with the request shipping setting.
1144
1219
  # Executing this method requires admin access.
1145
1220
  # @param [String] parent
@@ -1178,7 +1253,8 @@ module Google
1178
1253
  # Returns the state of a terms of service agreement.
1179
1254
  # @param [String] name
1180
1255
  # Required. The resource name of the terms of service version. Format: `accounts/
1181
- # `account`/termsOfServiceAgreementState/`identifier``
1256
+ # `account`/termsOfServiceAgreementState/`identifier`` The identifier format is:
1257
+ # ``TermsOfServiceKind`-`country``
1182
1258
  # @param [String] fields
1183
1259
  # Selector specifying which fields to include in a partial response.
1184
1260
  # @param [String] quota_user
@@ -1340,39 +1416,6 @@ module Google
1340
1416
  execute_or_queue_command(command, &block)
1341
1417
  end
1342
1418
 
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
1419
  # Lists all users of a Merchant Center account.
1377
1420
  # @param [String] parent
1378
1421
  # Required. The parent, which owns this collection of users. Format: `accounts/`
@@ -1453,48 +1496,6 @@ module Google
1453
1496
  execute_or_queue_command(command, &block)
1454
1497
  end
1455
1498
 
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
1499
  # Accepts a `TermsOfService`. Executing this method requires admin access.
1499
1500
  # @param [String] name
1500
1501
  # Required. The resource name of the terms of service version. Format: `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_accounts_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.1.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.2.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []