google-apis-merchantapi_accounts_v1beta 0.2.0 → 0.4.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/merchantapi_accounts_v1beta/classes.rb +217 -309
- data/lib/google/apis/merchantapi_accounts_v1beta/gem_version.rb +3 -3
- data/lib/google/apis/merchantapi_accounts_v1beta/representations.rb +25 -91
- data/lib/google/apis/merchantapi_accounts_v1beta/service.rb +66 -87
- metadata +4 -4
@@ -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.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.15.
|
22
|
+
GENERATOR_VERSION = "0.15.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20241210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,19 +22,19 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module MerchantapiAccountsV1beta
|
24
24
|
|
25
|
-
class
|
25
|
+
class Accepted
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class Account
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class AccountAggregation
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -46,19 +46,19 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class AddAccountService
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Address
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class AutofeedSettings
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -202,24 +202,12 @@ module Google
|
|
202
202
|
include Google::Apis::Core::JsonObjectSupport
|
203
203
|
end
|
204
204
|
|
205
|
-
class Interval
|
206
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
-
|
208
|
-
include Google::Apis::Core::JsonObjectSupport
|
209
|
-
end
|
210
|
-
|
211
205
|
class ListAccountIssuesResponse
|
212
206
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
213
207
|
|
214
208
|
include Google::Apis::Core::JsonObjectSupport
|
215
209
|
end
|
216
210
|
|
217
|
-
class ListAccountTaxResponse
|
218
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
219
|
-
|
220
|
-
include Google::Apis::Core::JsonObjectSupport
|
221
|
-
end
|
222
|
-
|
223
211
|
class ListAccountsResponse
|
224
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
213
|
|
@@ -424,18 +412,6 @@ module Google
|
|
424
412
|
include Google::Apis::Core::JsonObjectSupport
|
425
413
|
end
|
426
414
|
|
427
|
-
class TaxPostalCodeRange
|
428
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
-
|
430
|
-
include Google::Apis::Core::JsonObjectSupport
|
431
|
-
end
|
432
|
-
|
433
|
-
class TaxRule
|
434
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
-
|
436
|
-
include Google::Apis::Core::JsonObjectSupport
|
437
|
-
end
|
438
|
-
|
439
415
|
class TermsOfService
|
440
416
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
417
|
|
@@ -514,14 +490,6 @@ module Google
|
|
514
490
|
include Google::Apis::Core::JsonObjectSupport
|
515
491
|
end
|
516
492
|
|
517
|
-
class AcceptTermsOfService
|
518
|
-
# @private
|
519
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
520
|
-
property :name, as: 'name'
|
521
|
-
property :region_code, as: 'regionCode'
|
522
|
-
end
|
523
|
-
end
|
524
|
-
|
525
493
|
class Accepted
|
526
494
|
# @private
|
527
495
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -546,6 +514,12 @@ module Google
|
|
546
514
|
end
|
547
515
|
end
|
548
516
|
|
517
|
+
class AccountAggregation
|
518
|
+
# @private
|
519
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
520
|
+
end
|
521
|
+
end
|
522
|
+
|
549
523
|
class AccountIssue
|
550
524
|
# @private
|
551
525
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -559,20 +533,10 @@ module Google
|
|
559
533
|
end
|
560
534
|
end
|
561
535
|
|
562
|
-
class AccountTax
|
563
|
-
# @private
|
564
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
565
|
-
property :account, :numeric_string => true, as: 'account'
|
566
|
-
property :name, as: 'name'
|
567
|
-
collection :tax_rules, as: 'taxRules', class: Google::Apis::MerchantapiAccountsV1beta::TaxRule, decorator: Google::Apis::MerchantapiAccountsV1beta::TaxRule::Representation
|
568
|
-
|
569
|
-
end
|
570
|
-
end
|
571
|
-
|
572
536
|
class AddAccountService
|
573
537
|
# @private
|
574
538
|
class Representation < Google::Apis::Core::JsonRepresentation
|
575
|
-
property :account_aggregation, as: 'accountAggregation', class: Google::Apis::MerchantapiAccountsV1beta::
|
539
|
+
property :account_aggregation, as: 'accountAggregation', class: Google::Apis::MerchantapiAccountsV1beta::AccountAggregation, decorator: Google::Apis::MerchantapiAccountsV1beta::AccountAggregation::Representation
|
576
540
|
|
577
541
|
property :provider, as: 'provider'
|
578
542
|
end
|
@@ -589,6 +553,15 @@ module Google
|
|
589
553
|
end
|
590
554
|
end
|
591
555
|
|
556
|
+
class AutofeedSettings
|
557
|
+
# @private
|
558
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
559
|
+
property :eligible, as: 'eligible'
|
560
|
+
property :enable_products, as: 'enableProducts'
|
561
|
+
property :name, as: 'name'
|
562
|
+
end
|
563
|
+
end
|
564
|
+
|
592
565
|
class BusinessDayConfig
|
593
566
|
# @private
|
594
567
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -621,6 +594,7 @@ module Google
|
|
621
594
|
|
622
595
|
property :customer_service, as: 'customerService', class: Google::Apis::MerchantapiAccountsV1beta::CustomerService, decorator: Google::Apis::MerchantapiAccountsV1beta::CustomerService::Representation
|
623
596
|
|
597
|
+
property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
|
624
598
|
property :name, as: 'name'
|
625
599
|
property :phone, as: 'phone', class: Google::Apis::MerchantapiAccountsV1beta::PhoneNumber, decorator: Google::Apis::MerchantapiAccountsV1beta::PhoneNumber::Representation
|
626
600
|
|
@@ -644,14 +618,13 @@ module Google
|
|
644
618
|
class ClaimHomepageRequest
|
645
619
|
# @private
|
646
620
|
class Representation < Google::Apis::Core::JsonRepresentation
|
621
|
+
property :overwrite, as: 'overwrite'
|
647
622
|
end
|
648
623
|
end
|
649
624
|
|
650
625
|
class CreateAndConfigureAccountRequest
|
651
626
|
# @private
|
652
627
|
class Representation < Google::Apis::Core::JsonRepresentation
|
653
|
-
property :accept_terms_of_service, as: 'acceptTermsOfService', class: Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService, decorator: Google::Apis::MerchantapiAccountsV1beta::AcceptTermsOfService::Representation
|
654
|
-
|
655
628
|
property :account, as: 'account', class: Google::Apis::MerchantapiAccountsV1beta::Account, decorator: Google::Apis::MerchantapiAccountsV1beta::Account::Representation
|
656
629
|
|
657
630
|
collection :service, as: 'service', class: Google::Apis::MerchantapiAccountsV1beta::AddAccountService, decorator: Google::Apis::MerchantapiAccountsV1beta::AddAccountService::Representation
|
@@ -817,14 +790,6 @@ module Google
|
|
817
790
|
end
|
818
791
|
end
|
819
792
|
|
820
|
-
class Interval
|
821
|
-
# @private
|
822
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
823
|
-
property :end_time, as: 'endTime'
|
824
|
-
property :start_time, as: 'startTime'
|
825
|
-
end
|
826
|
-
end
|
827
|
-
|
828
793
|
class ListAccountIssuesResponse
|
829
794
|
# @private
|
830
795
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -834,15 +799,6 @@ module Google
|
|
834
799
|
end
|
835
800
|
end
|
836
801
|
|
837
|
-
class ListAccountTaxResponse
|
838
|
-
# @private
|
839
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
840
|
-
collection :account_taxes, as: 'accountTaxes', class: Google::Apis::MerchantapiAccountsV1beta::AccountTax, decorator: Google::Apis::MerchantapiAccountsV1beta::AccountTax::Representation
|
841
|
-
|
842
|
-
property :next_page_token, as: 'nextPageToken'
|
843
|
-
end
|
844
|
-
end
|
845
|
-
|
846
802
|
class ListAccountsResponse
|
847
803
|
# @private
|
848
804
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1035,6 +991,7 @@ module Google
|
|
1035
991
|
property :attribute, as: 'attribute'
|
1036
992
|
collection :changes, as: 'changes', class: Google::Apis::MerchantapiAccountsV1beta::ProductChange, decorator: Google::Apis::MerchantapiAccountsV1beta::ProductChange::Representation
|
1037
993
|
|
994
|
+
property :expiration_time, as: 'expirationTime'
|
1038
995
|
property :managing_account, as: 'managingAccount'
|
1039
996
|
property :resource, as: 'resource'
|
1040
997
|
property :resource_id, as: 'resourceId'
|
@@ -1204,29 +1161,6 @@ module Google
|
|
1204
1161
|
end
|
1205
1162
|
end
|
1206
1163
|
|
1207
|
-
class TaxPostalCodeRange
|
1208
|
-
# @private
|
1209
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1210
|
-
property :end, as: 'end'
|
1211
|
-
property :start, as: 'start'
|
1212
|
-
end
|
1213
|
-
end
|
1214
|
-
|
1215
|
-
class TaxRule
|
1216
|
-
# @private
|
1217
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1218
|
-
property :effective_time_period, as: 'effectiveTimePeriod', class: Google::Apis::MerchantapiAccountsV1beta::Interval, decorator: Google::Apis::MerchantapiAccountsV1beta::Interval::Representation
|
1219
|
-
|
1220
|
-
property :location_id, :numeric_string => true, as: 'locationId'
|
1221
|
-
property :post_code_range, as: 'postCodeRange', class: Google::Apis::MerchantapiAccountsV1beta::TaxPostalCodeRange, decorator: Google::Apis::MerchantapiAccountsV1beta::TaxPostalCodeRange::Representation
|
1222
|
-
|
1223
|
-
property :region_code, as: 'regionCode'
|
1224
|
-
property :self_specified_rate_micros, :numeric_string => true, as: 'selfSpecifiedRateMicros'
|
1225
|
-
property :shipping_taxed, as: 'shippingTaxed'
|
1226
|
-
property :use_google_rate, as: 'useGoogleRate'
|
1227
|
-
end
|
1228
|
-
end
|
1229
|
-
|
1230
1164
|
class TermsOfService
|
1231
1165
|
# @private
|
1232
1166
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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)
|
@@ -149,7 +155,8 @@ module Google
|
|
149
155
|
# Lists accounts accessible to the calling user and matching the constraints of
|
150
156
|
# the request such as page size or filters. This is not just listing the sub-
|
151
157
|
# accounts of an MCA, but all accounts the calling user has access to including
|
152
|
-
# other MCAs, linked accounts, standalone accounts and so on.
|
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.
|
153
160
|
# @param [String] filter
|
154
161
|
# Optional. Returns only accounts that match the [filter](/merchant/api/guides/
|
155
162
|
# accounts/filter). For more details, see the [filter syntax reference](/
|
@@ -196,7 +203,7 @@ module Google
|
|
196
203
|
# the same results as calling `ListsAccounts` with the following filter: `
|
197
204
|
# relationship(providerId=`parent` AND service(type="ACCOUNT_AGGREGATION"))`
|
198
205
|
# @param [String] provider
|
199
|
-
# Required. The
|
206
|
+
# Required. The aggregation service provider. Format: `providers/`providerId``
|
200
207
|
# @param [Fixnum] page_size
|
201
208
|
# Optional. The maximum number of accounts to return. The service may return
|
202
209
|
# fewer than this value. If unspecified, at most 250 accounts are returned. The
|
@@ -240,7 +247,9 @@ module Google
|
|
240
247
|
# Identifier. The resource name of the account. Format: `accounts/`account``
|
241
248
|
# @param [Google::Apis::MerchantapiAccountsV1beta::Account] account_object
|
242
249
|
# @param [String] update_mask
|
243
|
-
#
|
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`
|
244
253
|
# @param [String] fields
|
245
254
|
# Selector specifying which fields to include in a partial response.
|
246
255
|
# @param [String] quota_user
|
@@ -271,9 +280,10 @@ module Google
|
|
271
280
|
execute_or_queue_command(command, &block)
|
272
281
|
end
|
273
282
|
|
274
|
-
#
|
283
|
+
# Retrieves the autofeed settings of an account.
|
275
284
|
# @param [String] name
|
276
|
-
# Required. The name
|
285
|
+
# Required. The resource name of the autofeed settings. Format: `accounts/`
|
286
|
+
# account`/autofeedSettings`
|
277
287
|
# @param [String] fields
|
278
288
|
# Selector specifying which fields to include in a partial response.
|
279
289
|
# @param [String] quota_user
|
@@ -283,70 +293,31 @@ module Google
|
|
283
293
|
# Request-specific options
|
284
294
|
#
|
285
295
|
# @yield [result, err] Result & error if block supplied
|
286
|
-
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::
|
296
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] parsed result object
|
287
297
|
# @yieldparam err [StandardError] error object if request failed
|
288
298
|
#
|
289
|
-
# @return [Google::Apis::MerchantapiAccountsV1beta::
|
299
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings]
|
290
300
|
#
|
291
301
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
292
302
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
293
303
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
294
|
-
def
|
304
|
+
def get_account_autofeed_setting_autofeed_settings(name, fields: nil, quota_user: nil, options: nil, &block)
|
295
305
|
command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
|
296
|
-
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::
|
297
|
-
command.response_class = Google::Apis::MerchantapiAccountsV1beta::
|
306
|
+
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings::Representation
|
307
|
+
command.response_class = Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings
|
298
308
|
command.params['name'] = name unless name.nil?
|
299
309
|
command.query['fields'] = fields unless fields.nil?
|
300
310
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
301
311
|
execute_or_queue_command(command, &block)
|
302
312
|
end
|
303
313
|
|
304
|
-
#
|
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`
|
310
|
-
# @param [Fixnum] page_size
|
311
|
-
# The maximum number of tax settings to return in the response, used for paging.
|
312
|
-
# @param [String] page_token
|
313
|
-
# The token returned by the previous request.
|
314
|
-
# @param [String] fields
|
315
|
-
# Selector specifying which fields to include in a partial response.
|
316
|
-
# @param [String] quota_user
|
317
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
318
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
319
|
-
# @param [Google::Apis::RequestOptions] options
|
320
|
-
# Request-specific options
|
321
|
-
#
|
322
|
-
# @yield [result, err] Result & error if block supplied
|
323
|
-
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse] parsed result object
|
324
|
-
# @yieldparam err [StandardError] error object if request failed
|
325
|
-
#
|
326
|
-
# @return [Google::Apis::MerchantapiAccountsV1beta::ListAccountTaxResponse]
|
327
|
-
#
|
328
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
329
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
330
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
336
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
337
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
338
|
-
command.query['fields'] = fields unless fields.nil?
|
339
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
340
|
-
execute_or_queue_command(command, &block)
|
341
|
-
end
|
342
|
-
|
343
|
-
# Updates the tax settings of the account.
|
314
|
+
# Updates the autofeed settings of an account.
|
344
315
|
# @param [String] name
|
345
|
-
# Identifier. The name of the
|
346
|
-
# account
|
347
|
-
# @param [Google::Apis::MerchantapiAccountsV1beta::
|
316
|
+
# Identifier. The resource name of the autofeed settings. Format: `accounts/`
|
317
|
+
# account`/autofeedSettings`.
|
318
|
+
# @param [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] autofeed_settings_object
|
348
319
|
# @param [String] update_mask
|
349
|
-
#
|
320
|
+
# Required. List of fields being updated.
|
350
321
|
# @param [String] fields
|
351
322
|
# Selector specifying which fields to include in a partial response.
|
352
323
|
# @param [String] quota_user
|
@@ -356,20 +327,20 @@ module Google
|
|
356
327
|
# Request-specific options
|
357
328
|
#
|
358
329
|
# @yield [result, err] Result & error if block supplied
|
359
|
-
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::
|
330
|
+
# @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings] parsed result object
|
360
331
|
# @yieldparam err [StandardError] error object if request failed
|
361
332
|
#
|
362
|
-
# @return [Google::Apis::MerchantapiAccountsV1beta::
|
333
|
+
# @return [Google::Apis::MerchantapiAccountsV1beta::AutofeedSettings]
|
363
334
|
#
|
364
335
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
365
336
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
366
337
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
367
|
-
def
|
338
|
+
def update_account_autofeed_setting_autofeed_settings(name, autofeed_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
368
339
|
command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
|
369
|
-
command.request_representation = Google::Apis::MerchantapiAccountsV1beta::
|
370
|
-
command.request_object =
|
371
|
-
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::
|
372
|
-
command.response_class = Google::Apis::MerchantapiAccountsV1beta::
|
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
|
373
344
|
command.params['name'] = name unless name.nil?
|
374
345
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
375
346
|
command.query['fields'] = fields unless fields.nil?
|
@@ -415,7 +386,9 @@ module Google
|
|
415
386
|
# account`/businessIdentity`
|
416
387
|
# @param [Google::Apis::MerchantapiAccountsV1beta::BusinessIdentity] business_identity_object
|
417
388
|
# @param [String] update_mask
|
418
|
-
#
|
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`
|
419
392
|
# @param [String] fields
|
420
393
|
# Selector specifying which fields to include in a partial response.
|
421
394
|
# @param [String] quota_user
|
@@ -484,7 +457,9 @@ module Google
|
|
484
457
|
# /businessInfo`
|
485
458
|
# @param [Google::Apis::MerchantapiAccountsV1beta::BusinessInfo] business_info_object
|
486
459
|
# @param [String] update_mask
|
487
|
-
#
|
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`
|
488
463
|
# @param [String] fields
|
489
464
|
# Selector specifying which fields to include in a partial response.
|
490
465
|
# @param [String] quota_user
|
@@ -515,9 +490,10 @@ module Google
|
|
515
490
|
execute_or_queue_command(command, &block)
|
516
491
|
end
|
517
492
|
|
518
|
-
# Returns the email preferences for a Merchant Center account user.
|
519
|
-
#
|
520
|
-
#
|
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.
|
521
497
|
# @param [String] name
|
522
498
|
# Required. The name of the `EmailPreferences` resource. Format: `accounts/`
|
523
499
|
# account`/users/`email`/emailPreferences`
|
@@ -538,7 +514,7 @@ module Google
|
|
538
514
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
515
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
516
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
-
def
|
517
|
+
def get_account_email_preference_email_preferences(name, fields: nil, quota_user: nil, options: nil, &block)
|
542
518
|
command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
|
543
519
|
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
|
544
520
|
command.response_class = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences
|
@@ -559,7 +535,8 @@ module Google
|
|
559
535
|
# for the authenticated user.
|
560
536
|
# @param [Google::Apis::MerchantapiAccountsV1beta::EmailPreferences] email_preferences_object
|
561
537
|
# @param [String] update_mask
|
562
|
-
# Required. List of fields being updated.
|
538
|
+
# Required. List of fields being updated. The following fields are supported (in
|
539
|
+
# both `snake_case` and `lowerCamelCase`): - `news_and_tips`
|
563
540
|
# @param [String] fields
|
564
541
|
# Selector specifying which fields to include in a partial response.
|
565
542
|
# @param [String] quota_user
|
@@ -577,7 +554,7 @@ module Google
|
|
577
554
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
578
555
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
579
556
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
580
|
-
def
|
557
|
+
def update_account_email_preference_email_preferences(name, email_preferences_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
581
558
|
command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
|
582
559
|
command.request_representation = Google::Apis::MerchantapiAccountsV1beta::EmailPreferences::Representation
|
583
560
|
command.request_object = email_preferences_object
|
@@ -703,7 +680,8 @@ module Google
|
|
703
680
|
# account`/homepage`
|
704
681
|
# @param [Google::Apis::MerchantapiAccountsV1beta::Homepage] homepage_object
|
705
682
|
# @param [String] update_mask
|
706
|
-
#
|
683
|
+
# Optional. List of fields being updated. The following fields are supported (in
|
684
|
+
# both `snake_case` and `lowerCamelCase`): - `uri`
|
707
685
|
# @param [String] fields
|
708
686
|
# Selector specifying which fields to include in a partial response.
|
709
687
|
# @param [String] quota_user
|
@@ -751,10 +729,10 @@ module Google
|
|
751
729
|
# Provide this to retrieve the subsequent page. When paginating, all other
|
752
730
|
# parameters provided to `ListAccountIssues` must match the call that provided
|
753
731
|
# the page token.
|
754
|
-
# @param [String]
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
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.
|
758
736
|
# @param [String] fields
|
759
737
|
# Selector specifying which fields to include in a partial response.
|
760
738
|
# @param [String] quota_user
|
@@ -772,7 +750,7 @@ module Google
|
|
772
750
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
773
751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
774
752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
775
|
-
def list_account_issues(parent, language_code: nil, page_size: nil, page_token: nil,
|
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)
|
776
754
|
command = make_simple_command(:get, 'accounts/v1beta/{+parent}/issues', options)
|
777
755
|
command.response_representation = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse::Representation
|
778
756
|
command.response_class = Google::Apis::MerchantapiAccountsV1beta::ListAccountIssuesResponse
|
@@ -780,14 +758,13 @@ module Google
|
|
780
758
|
command.query['languageCode'] = language_code unless language_code.nil?
|
781
759
|
command.query['pageSize'] = page_size unless page_size.nil?
|
782
760
|
command.query['pageToken'] = page_token unless page_token.nil?
|
783
|
-
command.query['timeZone
|
784
|
-
command.query['timeZone.version'] = time_zone_version unless time_zone_version.nil?
|
761
|
+
command.query['timeZone'] = time_zone unless time_zone.nil?
|
785
762
|
command.query['fields'] = fields unless fields.nil?
|
786
763
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
787
764
|
execute_or_queue_command(command, &block)
|
788
765
|
end
|
789
766
|
|
790
|
-
# Gets an existing return policy.
|
767
|
+
# Gets an existing return policy for a given merchant.
|
791
768
|
# @param [String] name
|
792
769
|
# Required. The name of the return policy to retrieve. Format: `accounts/`
|
793
770
|
# account`/onlineReturnPolicies/`return_policy``
|
@@ -818,7 +795,7 @@ module Google
|
|
818
795
|
execute_or_queue_command(command, &block)
|
819
796
|
end
|
820
797
|
|
821
|
-
# Lists all existing return policies.
|
798
|
+
# Lists all existing return policies for a given merchant.
|
822
799
|
# @param [String] parent
|
823
800
|
# Required. The merchant account for which to list return policies. Format: `
|
824
801
|
# accounts/`account``
|
@@ -1352,7 +1329,8 @@ module Google
|
|
1352
1329
|
end
|
1353
1330
|
|
1354
1331
|
# Deletes a Merchant Center account user. Executing this method requires admin
|
1355
|
-
# 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"
|
1356
1334
|
# @param [String] name
|
1357
1335
|
# Required. The name of the user to delete. Format: `accounts/`account`/users/`
|
1358
1336
|
# email`` It is also possible to delete the user corresponding to the caller by
|
@@ -1465,7 +1443,8 @@ module Google
|
|
1465
1443
|
# account`/users/me`.
|
1466
1444
|
# @param [Google::Apis::MerchantapiAccountsV1beta::User] user_object
|
1467
1445
|
# @param [String] update_mask
|
1468
|
-
#
|
1446
|
+
# Optional. List of fields being updated. The following fields are supported (in
|
1447
|
+
# both `snake_case` and `lowerCamelCase`): - `access_rights`
|
1469
1448
|
# @param [String] fields
|
1470
1449
|
# Selector specifying which fields to include in a partial response.
|
1471
1450
|
# @param [String] quota_user
|
@@ -1569,11 +1548,11 @@ module Google
|
|
1569
1548
|
# Retrieves the latest version of the `TermsOfService` for a given `kind` and `
|
1570
1549
|
# region_code`.
|
1571
1550
|
# @param [String] kind
|
1572
|
-
# The Kind this terms of service version applies to.
|
1551
|
+
# Required. The Kind this terms of service version applies to.
|
1573
1552
|
# @param [String] region_code
|
1574
|
-
# Region code as defined by [CLDR](https://cldr.unicode.org/). This is
|
1575
|
-
# country when the ToS applies specifically to that country or 001 when
|
1576
|
-
# 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.
|
1577
1556
|
# @param [String] fields
|
1578
1557
|
# Selector specifying which fields to include in a partial response.
|
1579
1558
|
# @param [String] quota_user
|
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.
|
4
|
+
version: 0.4.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-
|
11
|
+
date: 2024-12-15 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.4.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.5.
|
78
|
+
rubygems_version: 3.5.23
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Merchant API AccountsV1beta
|