google-apis-content_v2_1 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/content_v2_1/classes.rb +311 -10
- data/lib/google/apis/content_v2_1/gem_version.rb +3 -3
- data/lib/google/apis/content_v2_1/representations.rb +143 -0
- data/lib/google/apis/content_v2_1/service.rb +419 -142
- metadata +5 -5
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContentV2_1
|
18
18
|
# Version of the google-apis-content_v2_1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210325"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AccountCredentials
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class AccountCustomerService
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -280,6 +286,12 @@ module Google
|
|
280
286
|
include Google::Apis::Core::JsonObjectSupport
|
281
287
|
end
|
282
288
|
|
289
|
+
class BuyOnGoogleProgramStatus
|
290
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
291
|
+
|
292
|
+
include Google::Apis::Core::JsonObjectSupport
|
293
|
+
end
|
294
|
+
|
283
295
|
class CarrierRate
|
284
296
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
297
|
|
@@ -712,6 +724,12 @@ module Google
|
|
712
724
|
include Google::Apis::Core::JsonObjectSupport
|
713
725
|
end
|
714
726
|
|
727
|
+
class ListReturnPolicyOnlineResponse
|
728
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
729
|
+
|
730
|
+
include Google::Apis::Core::JsonObjectSupport
|
731
|
+
end
|
732
|
+
|
715
733
|
class LocalInventory
|
716
734
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
735
|
|
@@ -796,6 +814,12 @@ module Google
|
|
796
814
|
include Google::Apis::Core::JsonObjectSupport
|
797
815
|
end
|
798
816
|
|
817
|
+
class OnboardBuyOnGoogleProgramRequest
|
818
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
819
|
+
|
820
|
+
include Google::Apis::Core::JsonObjectSupport
|
821
|
+
end
|
822
|
+
|
799
823
|
class Order
|
800
824
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
801
825
|
|
@@ -1786,6 +1810,36 @@ module Google
|
|
1786
1810
|
include Google::Apis::Core::JsonObjectSupport
|
1787
1811
|
end
|
1788
1812
|
|
1813
|
+
class ReturnPolicyOnline
|
1814
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1815
|
+
|
1816
|
+
include Google::Apis::Core::JsonObjectSupport
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
class ReturnPolicyOnlinePolicy
|
1820
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1821
|
+
|
1822
|
+
include Google::Apis::Core::JsonObjectSupport
|
1823
|
+
end
|
1824
|
+
|
1825
|
+
class ReturnPolicyOnlineRestockingFee
|
1826
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1827
|
+
|
1828
|
+
include Google::Apis::Core::JsonObjectSupport
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
class ReturnPolicyOnlineReturnReasonCategoryInfo
|
1832
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1833
|
+
|
1834
|
+
include Google::Apis::Core::JsonObjectSupport
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
class ReturnPolicyOnlineReturnShippingFee
|
1838
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1839
|
+
|
1840
|
+
include Google::Apis::Core::JsonObjectSupport
|
1841
|
+
end
|
1842
|
+
|
1789
1843
|
class ReturnPolicyPolicy
|
1790
1844
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1791
1845
|
|
@@ -2177,6 +2231,15 @@ module Google
|
|
2177
2231
|
end
|
2178
2232
|
end
|
2179
2233
|
|
2234
|
+
class AccountCredentials
|
2235
|
+
# @private
|
2236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2237
|
+
property :access_token, as: 'accessToken'
|
2238
|
+
property :expires_in, :numeric_string => true, as: 'expiresIn'
|
2239
|
+
property :purpose, as: 'purpose'
|
2240
|
+
end
|
2241
|
+
end
|
2242
|
+
|
2180
2243
|
class AccountCustomerService
|
2181
2244
|
# @private
|
2182
2245
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2568,6 +2631,15 @@ module Google
|
|
2568
2631
|
end
|
2569
2632
|
end
|
2570
2633
|
|
2634
|
+
class BuyOnGoogleProgramStatus
|
2635
|
+
# @private
|
2636
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2637
|
+
property :customer_service_pending_email, as: 'customerServicePendingEmail'
|
2638
|
+
property :customer_service_verified_email, as: 'customerServiceVerifiedEmail'
|
2639
|
+
property :participation_stage, as: 'participationStage'
|
2640
|
+
end
|
2641
|
+
end
|
2642
|
+
|
2571
2643
|
class CarrierRate
|
2572
2644
|
# @private
|
2573
2645
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3319,6 +3391,14 @@ module Google
|
|
3319
3391
|
end
|
3320
3392
|
end
|
3321
3393
|
|
3394
|
+
class ListReturnPolicyOnlineResponse
|
3395
|
+
# @private
|
3396
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3397
|
+
collection :return_policies, as: 'returnPolicies', class: Google::Apis::ContentV2_1::ReturnPolicyOnline, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
3398
|
+
|
3399
|
+
end
|
3400
|
+
end
|
3401
|
+
|
3322
3402
|
class LocalInventory
|
3323
3403
|
# @private
|
3324
3404
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3474,6 +3554,13 @@ module Google
|
|
3474
3554
|
end
|
3475
3555
|
end
|
3476
3556
|
|
3557
|
+
class OnboardBuyOnGoogleProgramRequest
|
3558
|
+
# @private
|
3559
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3560
|
+
property :customer_service_email, as: 'customerServiceEmail'
|
3561
|
+
end
|
3562
|
+
end
|
3563
|
+
|
3477
3564
|
class Order
|
3478
3565
|
# @private
|
3479
3566
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4731,6 +4818,7 @@ module Google
|
|
4731
4818
|
# @private
|
4732
4819
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4733
4820
|
collection :additional_image_links, as: 'additionalImageLinks'
|
4821
|
+
property :additional_size_type, as: 'additionalSizeType'
|
4734
4822
|
property :ads_grouping, as: 'adsGrouping'
|
4735
4823
|
collection :ads_labels, as: 'adsLabels'
|
4736
4824
|
property :ads_redirect, as: 'adsRedirect'
|
@@ -5394,6 +5482,61 @@ module Google
|
|
5394
5482
|
end
|
5395
5483
|
end
|
5396
5484
|
|
5485
|
+
class ReturnPolicyOnline
|
5486
|
+
# @private
|
5487
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5488
|
+
collection :countries, as: 'countries'
|
5489
|
+
collection :item_conditions, as: 'itemConditions'
|
5490
|
+
property :label, as: 'label'
|
5491
|
+
property :name, as: 'name'
|
5492
|
+
property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy::Representation
|
5493
|
+
|
5494
|
+
property :restocking_fee, as: 'restockingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee::Representation
|
5495
|
+
|
5496
|
+
collection :return_methods, as: 'returnMethods'
|
5497
|
+
property :return_policy_id, as: 'returnPolicyId'
|
5498
|
+
property :return_policy_uri, as: 'returnPolicyUri'
|
5499
|
+
collection :return_reason_category_info, as: 'returnReasonCategoryInfo', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo::Representation
|
5500
|
+
|
5501
|
+
end
|
5502
|
+
end
|
5503
|
+
|
5504
|
+
class ReturnPolicyOnlinePolicy
|
5505
|
+
# @private
|
5506
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5507
|
+
property :days, :numeric_string => true, as: 'days'
|
5508
|
+
property :type, as: 'type'
|
5509
|
+
end
|
5510
|
+
end
|
5511
|
+
|
5512
|
+
class ReturnPolicyOnlineRestockingFee
|
5513
|
+
# @private
|
5514
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5515
|
+
property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
|
5516
|
+
|
5517
|
+
property :micro_percent, as: 'microPercent'
|
5518
|
+
end
|
5519
|
+
end
|
5520
|
+
|
5521
|
+
class ReturnPolicyOnlineReturnReasonCategoryInfo
|
5522
|
+
# @private
|
5523
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5524
|
+
property :return_label_source, as: 'returnLabelSource'
|
5525
|
+
property :return_reason_category, as: 'returnReasonCategory'
|
5526
|
+
property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee::Representation
|
5527
|
+
|
5528
|
+
end
|
5529
|
+
end
|
5530
|
+
|
5531
|
+
class ReturnPolicyOnlineReturnShippingFee
|
5532
|
+
# @private
|
5533
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5534
|
+
property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
|
5535
|
+
|
5536
|
+
property :type, as: 'type'
|
5537
|
+
end
|
5538
|
+
end
|
5539
|
+
|
5397
5540
|
class ReturnPolicyPolicy
|
5398
5541
|
# @private
|
5399
5542
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -43,7 +43,7 @@ module Google
|
|
43
43
|
attr_accessor :quota_user
|
44
44
|
|
45
45
|
def initialize
|
46
|
-
super('https://shoppingcontent.googleapis.com/', '',
|
46
|
+
super('https://shoppingcontent.googleapis.com/', 'content/v2.1/',
|
47
47
|
client_name: 'google-apis-content_v2_1',
|
48
48
|
client_version: Google::Apis::ContentV2_1::GEM_VERSION)
|
49
49
|
@batch_path = 'batch'
|
@@ -68,7 +68,7 @@ module Google
|
|
68
68
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
69
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
70
|
def authinfo_account(fields: nil, quota_user: nil, options: nil, &block)
|
71
|
-
command = make_simple_command(:get, '
|
71
|
+
command = make_simple_command(:get, 'accounts/authinfo', options)
|
72
72
|
command.response_representation = Google::Apis::ContentV2_1::AccountsAuthInfoResponse::Representation
|
73
73
|
command.response_class = Google::Apis::ContentV2_1::AccountsAuthInfoResponse
|
74
74
|
command.query['fields'] = fields unless fields.nil?
|
@@ -105,7 +105,7 @@ module Google
|
|
105
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
107
|
def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
-
command = make_simple_command(:post, '
|
108
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options)
|
109
109
|
command.response_representation = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse::Representation
|
110
110
|
command.response_class = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
|
111
111
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
138
138
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
139
139
|
def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
140
|
-
command = make_simple_command(:post, '
|
140
|
+
command = make_simple_command(:post, 'accounts/batch', options)
|
141
141
|
command.request_representation = Google::Apis::ContentV2_1::AccountsCustomBatchRequest::Representation
|
142
142
|
command.request_object = accounts_custom_batch_request_object
|
143
143
|
command.response_representation = Google::Apis::ContentV2_1::AccountsCustomBatchResponse::Representation
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
174
174
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
175
175
|
def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
176
|
-
command = make_simple_command(:delete, '
|
176
|
+
command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
|
177
177
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
178
178
|
command.params['accountId'] = account_id unless account_id.nil?
|
179
179
|
command.query['force'] = force unless force.nil?
|
@@ -210,7 +210,7 @@ module Google
|
|
210
210
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
211
211
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
212
212
|
def get_account(merchant_id, account_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
213
|
-
command = make_simple_command(:get, '
|
213
|
+
command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
|
214
214
|
command.response_representation = Google::Apis::ContentV2_1::Account::Representation
|
215
215
|
command.response_class = Google::Apis::ContentV2_1::Account
|
216
216
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -243,7 +243,7 @@ module Google
|
|
243
243
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
244
244
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
245
245
|
def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
246
|
-
command = make_simple_command(:post, '
|
246
|
+
command = make_simple_command(:post, '{merchantId}/accounts', options)
|
247
247
|
command.request_representation = Google::Apis::ContentV2_1::Account::Representation
|
248
248
|
command.request_object = account_object
|
249
249
|
command.response_representation = Google::Apis::ContentV2_1::Account::Representation
|
@@ -281,7 +281,7 @@ module Google
|
|
281
281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
282
282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
283
283
|
def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
284
|
-
command = make_simple_command(:post, '
|
284
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options)
|
285
285
|
command.request_representation = Google::Apis::ContentV2_1::AccountsLinkRequest::Representation
|
286
286
|
command.request_object = accounts_link_request_object
|
287
287
|
command.response_representation = Google::Apis::ContentV2_1::AccountsLinkResponse::Representation
|
@@ -324,7 +324,7 @@ module Google
|
|
324
324
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
325
325
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
326
326
|
def list_accounts(merchant_id, label: nil, max_results: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
327
|
-
command = make_simple_command(:get, '
|
327
|
+
command = make_simple_command(:get, '{merchantId}/accounts', options)
|
328
328
|
command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
|
329
329
|
command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
|
330
330
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -366,7 +366,7 @@ module Google
|
|
366
366
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
367
367
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
368
368
|
def listlinks_account(merchant_id, account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
369
|
-
command = make_simple_command(:get, '
|
369
|
+
command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', options)
|
370
370
|
command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation
|
371
371
|
command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse
|
372
372
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -405,7 +405,7 @@ module Google
|
|
405
405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
406
406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
407
407
|
def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
408
|
-
command = make_simple_command(:put, '
|
408
|
+
command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
|
409
409
|
command.request_representation = Google::Apis::ContentV2_1::Account::Representation
|
410
410
|
command.request_object = account_object
|
411
411
|
command.response_representation = Google::Apis::ContentV2_1::Account::Representation
|
@@ -441,7 +441,7 @@ module Google
|
|
441
441
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
442
442
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
443
443
|
def updatelabels_account(merchant_id, account_id, accounts_update_labels_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
444
|
-
command = make_simple_command(:post, '
|
444
|
+
command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', options)
|
445
445
|
command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation
|
446
446
|
command.request_object = accounts_update_labels_request_object
|
447
447
|
command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation
|
@@ -453,6 +453,40 @@ module Google
|
|
453
453
|
execute_or_queue_command(command, &block)
|
454
454
|
end
|
455
455
|
|
456
|
+
# Uploads credentials for the Merchant Center account. If credentials already
|
457
|
+
# exist for this Merchant Center account and purpose, this method updates them.
|
458
|
+
# @param [Fixnum] account_id
|
459
|
+
# Required. The merchant id of the account these credentials belong to.
|
460
|
+
# @param [Google::Apis::ContentV2_1::AccountCredentials] account_credentials_object
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::ContentV2_1::AccountCredentials] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::ContentV2_1::AccountCredentials]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:post, 'accounts/{accountId}/credentials', options)
|
480
|
+
command.request_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
|
481
|
+
command.request_object = account_credentials_object
|
482
|
+
command.response_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
|
483
|
+
command.response_class = Google::Apis::ContentV2_1::AccountCredentials
|
484
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
485
|
+
command.query['fields'] = fields unless fields.nil?
|
486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
487
|
+
execute_or_queue_command(command, &block)
|
488
|
+
end
|
489
|
+
|
456
490
|
# Creates a new label, not assigned to any account.
|
457
491
|
# @param [Fixnum] account_id
|
458
492
|
# Required. The id of the account this label belongs to.
|
@@ -475,7 +509,7 @@ module Google
|
|
475
509
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
476
510
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
477
511
|
def create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
478
|
-
command = make_simple_command(:post, '
|
512
|
+
command = make_simple_command(:post, 'accounts/{accountId}/labels', options)
|
479
513
|
command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
|
480
514
|
command.request_object = account_label_object
|
481
515
|
command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
|
@@ -509,7 +543,7 @@ module Google
|
|
509
543
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
510
544
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
511
545
|
def delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil, &block)
|
512
|
-
command = make_simple_command(:delete, '
|
546
|
+
command = make_simple_command(:delete, 'accounts/{accountId}/labels/{labelId}', options)
|
513
547
|
command.params['accountId'] = account_id unless account_id.nil?
|
514
548
|
command.params['labelId'] = label_id unless label_id.nil?
|
515
549
|
command.query['fields'] = fields unless fields.nil?
|
@@ -547,7 +581,7 @@ module Google
|
|
547
581
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
548
582
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
549
583
|
def list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
550
|
-
command = make_simple_command(:get, '
|
584
|
+
command = make_simple_command(:get, 'accounts/{accountId}/labels', options)
|
551
585
|
command.response_representation = Google::Apis::ContentV2_1::ListAccountLabelsResponse::Representation
|
552
586
|
command.response_class = Google::Apis::ContentV2_1::ListAccountLabelsResponse
|
553
587
|
command.params['accountId'] = account_id unless account_id.nil?
|
@@ -582,7 +616,7 @@ module Google
|
|
582
616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
583
617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
584
618
|
def patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
585
|
-
command = make_simple_command(:patch, '
|
619
|
+
command = make_simple_command(:patch, 'accounts/{accountId}/labels/{labelId}', options)
|
586
620
|
command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
|
587
621
|
command.request_object = account_label_object
|
588
622
|
command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
|
@@ -617,7 +651,7 @@ module Google
|
|
617
651
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
618
652
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
619
653
|
def create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
620
|
-
command = make_simple_command(:post, '
|
654
|
+
command = make_simple_command(:post, 'accounts/{accountId}/returncarrier', options)
|
621
655
|
command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
|
622
656
|
command.request_object = account_return_carrier_object
|
623
657
|
command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
|
@@ -652,7 +686,7 @@ module Google
|
|
652
686
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
653
687
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
654
688
|
def delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil, &block)
|
655
|
-
command = make_simple_command(:delete, '
|
689
|
+
command = make_simple_command(:delete, 'accounts/{accountId}/returncarrier/{carrierAccountId}', options)
|
656
690
|
command.params['accountId'] = account_id unless account_id.nil?
|
657
691
|
command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil?
|
658
692
|
command.query['fields'] = fields unless fields.nil?
|
@@ -682,7 +716,7 @@ module Google
|
|
682
716
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
683
717
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
684
718
|
def list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil, &block)
|
685
|
-
command = make_simple_command(:get, '
|
719
|
+
command = make_simple_command(:get, 'accounts/{accountId}/returncarrier', options)
|
686
720
|
command.response_representation = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse::Representation
|
687
721
|
command.response_class = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse
|
688
722
|
command.params['accountId'] = account_id unless account_id.nil?
|
@@ -716,7 +750,7 @@ module Google
|
|
716
750
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
717
751
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
718
752
|
def patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
719
|
-
command = make_simple_command(:patch, '
|
753
|
+
command = make_simple_command(:patch, 'accounts/{accountId}/returncarrier/{carrierAccountId}', options)
|
720
754
|
command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
|
721
755
|
command.request_object = account_return_carrier_object
|
722
756
|
command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
|
@@ -748,7 +782,7 @@ module Google
|
|
748
782
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
749
783
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
750
784
|
def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
751
|
-
command = make_simple_command(:post, '
|
785
|
+
command = make_simple_command(:post, 'accountstatuses/batch', options)
|
752
786
|
command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation
|
753
787
|
command.request_object = accountstatuses_custom_batch_request_object
|
754
788
|
command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation
|
@@ -787,7 +821,7 @@ module Google
|
|
787
821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
788
822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
789
823
|
def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
|
790
|
-
command = make_simple_command(:get, '
|
824
|
+
command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
|
791
825
|
command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation
|
792
826
|
command.response_class = Google::Apis::ContentV2_1::AccountStatus
|
793
827
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -827,7 +861,7 @@ module Google
|
|
827
861
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
828
862
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
829
863
|
def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
830
|
-
command = make_simple_command(:get, '
|
864
|
+
command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
|
831
865
|
command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
|
832
866
|
command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
|
833
867
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -859,7 +893,7 @@ module Google
|
|
859
893
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
860
894
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
861
895
|
def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
862
|
-
command = make_simple_command(:post, '
|
896
|
+
command = make_simple_command(:post, 'accounttax/batch', options)
|
863
897
|
command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation
|
864
898
|
command.request_object = accounttax_custom_batch_request_object
|
865
899
|
command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation
|
@@ -894,7 +928,7 @@ module Google
|
|
894
928
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
895
929
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
896
930
|
def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
897
|
-
command = make_simple_command(:get, '
|
931
|
+
command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
|
898
932
|
command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
|
899
933
|
command.response_class = Google::Apis::ContentV2_1::AccountTax
|
900
934
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -929,7 +963,7 @@ module Google
|
|
929
963
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
930
964
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
931
965
|
def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
932
|
-
command = make_simple_command(:get, '
|
966
|
+
command = make_simple_command(:get, '{merchantId}/accounttax', options)
|
933
967
|
command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation
|
934
968
|
command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse
|
935
969
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -967,7 +1001,7 @@ module Google
|
|
967
1001
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
968
1002
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
969
1003
|
def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
970
|
-
command = make_simple_command(:put, '
|
1004
|
+
command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
|
971
1005
|
command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation
|
972
1006
|
command.request_object = account_tax_object
|
973
1007
|
command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
|
@@ -979,6 +1013,80 @@ module Google
|
|
979
1013
|
execute_or_queue_command(command, &block)
|
980
1014
|
end
|
981
1015
|
|
1016
|
+
# Retrieves a status of BoG program for your Merchant Center account.
|
1017
|
+
# @param [Fixnum] merchant_id
|
1018
|
+
# Required. The ID of the account.
|
1019
|
+
# @param [String] region_code
|
1020
|
+
# The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
|
1021
|
+
# ISO_3166-1_alpha-2). Currently only US is available.
|
1022
|
+
# @param [String] fields
|
1023
|
+
# Selector specifying which fields to include in a partial response.
|
1024
|
+
# @param [String] quota_user
|
1025
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1026
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1027
|
+
# @param [Google::Apis::RequestOptions] options
|
1028
|
+
# Request-specific options
|
1029
|
+
#
|
1030
|
+
# @yield [result, err] Result & error if block supplied
|
1031
|
+
# @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
|
1032
|
+
# @yieldparam err [StandardError] error object if request failed
|
1033
|
+
#
|
1034
|
+
# @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
|
1035
|
+
#
|
1036
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1037
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1038
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1039
|
+
def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block)
|
1040
|
+
command = make_simple_command(:get, '{merchantId}/buyongoogleprograms/{regionCode}', options)
|
1041
|
+
command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
|
1042
|
+
command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
|
1043
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1044
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1045
|
+
command.query['fields'] = fields unless fields.nil?
|
1046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1047
|
+
execute_or_queue_command(command, &block)
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# Onboards BoG in your Merchant Center account. By using this method, you agree
|
1051
|
+
# to the [Terms of Service](https://merchants.google.com/mc/termsofservice/
|
1052
|
+
# transactions/US/latest). Calling this method is only possible if the
|
1053
|
+
# authenticated account is the same as the merchant id in the request. Calling
|
1054
|
+
# this method multiple times will only accept Terms of Service if the latest
|
1055
|
+
# version is not currently signed.
|
1056
|
+
# @param [Fixnum] merchant_id
|
1057
|
+
# Required. The ID of the account.
|
1058
|
+
# @param [String] region_code
|
1059
|
+
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
|
1060
|
+
# ISO_3166-1_alpha-2). Currently only US is available.
|
1061
|
+
# @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
|
1062
|
+
# @param [String] fields
|
1063
|
+
# Selector specifying which fields to include in a partial response.
|
1064
|
+
# @param [String] quota_user
|
1065
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1066
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1067
|
+
# @param [Google::Apis::RequestOptions] options
|
1068
|
+
# Request-specific options
|
1069
|
+
#
|
1070
|
+
# @yield [result, err] Result & error if block supplied
|
1071
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1072
|
+
# @yieldparam err [StandardError] error object if request failed
|
1073
|
+
#
|
1074
|
+
# @return [void]
|
1075
|
+
#
|
1076
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1077
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1078
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1079
|
+
def onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1080
|
+
command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
|
1081
|
+
command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation
|
1082
|
+
command.request_object = onboard_buy_on_google_program_request_object
|
1083
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1084
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1085
|
+
command.query['fields'] = fields unless fields.nil?
|
1086
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1087
|
+
execute_or_queue_command(command, &block)
|
1088
|
+
end
|
1089
|
+
|
982
1090
|
# Uploads a collection to your Merchant Center account. If a collection with the
|
983
1091
|
# same collectionId already exists, this method updates that entry. In each
|
984
1092
|
# update, the collection is completely replaced by the fields in the body of the
|
@@ -1005,7 +1113,7 @@ module Google
|
|
1005
1113
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1006
1114
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1007
1115
|
def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1008
|
-
command = make_simple_command(:post, '
|
1116
|
+
command = make_simple_command(:post, '{merchantId}/collections', options)
|
1009
1117
|
command.request_representation = Google::Apis::ContentV2_1::Collection::Representation
|
1010
1118
|
command.request_object = collection_object
|
1011
1119
|
command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
|
@@ -1041,7 +1149,7 @@ module Google
|
|
1041
1149
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1042
1150
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1043
1151
|
def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1044
|
-
command = make_simple_command(:delete, '
|
1152
|
+
command = make_simple_command(:delete, '{merchantId}/collections/{collectionId}', options)
|
1045
1153
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1046
1154
|
command.params['collectionId'] = collection_id unless collection_id.nil?
|
1047
1155
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1073,7 +1181,7 @@ module Google
|
|
1073
1181
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1074
1182
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1075
1183
|
def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1076
|
-
command = make_simple_command(:get, '
|
1184
|
+
command = make_simple_command(:get, '{merchantId}/collections/{collectionId}', options)
|
1077
1185
|
command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
|
1078
1186
|
command.response_class = Google::Apis::ContentV2_1::Collection
|
1079
1187
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1113,7 +1221,7 @@ module Google
|
|
1113
1221
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1114
1222
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1115
1223
|
def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1116
|
-
command = make_simple_command(:get, '
|
1224
|
+
command = make_simple_command(:get, '{merchantId}/collections', options)
|
1117
1225
|
command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation
|
1118
1226
|
command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse
|
1119
1227
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1149,7 +1257,7 @@ module Google
|
|
1149
1257
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1150
1258
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1151
1259
|
def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1152
|
-
command = make_simple_command(:get, '
|
1260
|
+
command = make_simple_command(:get, '{merchantId}/collectionstatuses/{collectionId}', options)
|
1153
1261
|
command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation
|
1154
1262
|
command.response_class = Google::Apis::ContentV2_1::CollectionStatus
|
1155
1263
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1187,7 +1295,7 @@ module Google
|
|
1187
1295
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1188
1296
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1189
1297
|
def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1190
|
-
command = make_simple_command(:get, '
|
1298
|
+
command = make_simple_command(:get, '{merchantId}/collectionstatuses', options)
|
1191
1299
|
command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation
|
1192
1300
|
command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse
|
1193
1301
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1223,7 +1331,7 @@ module Google
|
|
1223
1331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1224
1332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1225
1333
|
def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block)
|
1226
|
-
command = make_simple_command(:get, '
|
1334
|
+
command = make_simple_command(:get, '{cssGroupId}/csses/{cssDomainId}', options)
|
1227
1335
|
command.response_representation = Google::Apis::ContentV2_1::Css::Representation
|
1228
1336
|
command.response_class = Google::Apis::ContentV2_1::Css
|
1229
1337
|
command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
|
@@ -1262,7 +1370,7 @@ module Google
|
|
1262
1370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1263
1371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1264
1372
|
def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1265
|
-
command = make_simple_command(:get, '
|
1373
|
+
command = make_simple_command(:get, '{cssGroupId}/csses', options)
|
1266
1374
|
command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation
|
1267
1375
|
command.response_class = Google::Apis::ContentV2_1::ListCssesResponse
|
1268
1376
|
command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
|
@@ -1297,7 +1405,7 @@ module Google
|
|
1297
1405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1298
1406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1299
1407
|
def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1300
|
-
command = make_simple_command(:post, '
|
1408
|
+
command = make_simple_command(:post, '{cssGroupId}/csses/{cssDomainId}/updatelabels', options)
|
1301
1409
|
command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation
|
1302
1410
|
command.request_object = label_ids_object
|
1303
1411
|
command.response_representation = Google::Apis::ContentV2_1::Css::Representation
|
@@ -1330,7 +1438,7 @@ module Google
|
|
1330
1438
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1331
1439
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1332
1440
|
def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1333
|
-
command = make_simple_command(:post, '
|
1441
|
+
command = make_simple_command(:post, 'datafeeds/batch', options)
|
1334
1442
|
command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
|
1335
1443
|
command.request_object = datafeeds_custom_batch_request_object
|
1336
1444
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
|
@@ -1364,7 +1472,7 @@ module Google
|
|
1364
1472
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1365
1473
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1366
1474
|
def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1367
|
-
command = make_simple_command(:delete, '
|
1475
|
+
command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
|
1368
1476
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1369
1477
|
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
1370
1478
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1398,7 +1506,7 @@ module Google
|
|
1398
1506
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1399
1507
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1400
1508
|
def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1401
|
-
command = make_simple_command(:post, '
|
1509
|
+
command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
|
1402
1510
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
|
1403
1511
|
command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
|
1404
1512
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1432,7 +1540,7 @@ module Google
|
|
1432
1540
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1433
1541
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1434
1542
|
def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1435
|
-
command = make_simple_command(:get, '
|
1543
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
|
1436
1544
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1437
1545
|
command.response_class = Google::Apis::ContentV2_1::Datafeed
|
1438
1546
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1465,7 +1573,7 @@ module Google
|
|
1465
1573
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1466
1574
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1467
1575
|
def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1468
|
-
command = make_simple_command(:post, '
|
1576
|
+
command = make_simple_command(:post, '{merchantId}/datafeeds', options)
|
1469
1577
|
command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1470
1578
|
command.request_object = datafeed_object
|
1471
1579
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
@@ -1502,7 +1610,7 @@ module Google
|
|
1502
1610
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1503
1611
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1504
1612
|
def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1505
|
-
command = make_simple_command(:get, '
|
1613
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds', options)
|
1506
1614
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
|
1507
1615
|
command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
|
1508
1616
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1539,7 +1647,7 @@ module Google
|
|
1539
1647
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1540
1648
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1541
1649
|
def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1542
|
-
command = make_simple_command(:put, '
|
1650
|
+
command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
|
1543
1651
|
command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1544
1652
|
command.request_object = datafeed_object
|
1545
1653
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
@@ -1571,7 +1679,7 @@ module Google
|
|
1571
1679
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1572
1680
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1573
1681
|
def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1574
|
-
command = make_simple_command(:post, '
|
1682
|
+
command = make_simple_command(:post, 'datafeedstatuses/batch', options)
|
1575
1683
|
command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
|
1576
1684
|
command.request_object = datafeedstatuses_custom_batch_request_object
|
1577
1685
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
|
@@ -1615,7 +1723,7 @@ module Google
|
|
1615
1723
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1616
1724
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1617
1725
|
def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1618
|
-
command = make_simple_command(:get, '
|
1726
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
|
1619
1727
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
|
1620
1728
|
command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
|
1621
1729
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1653,7 +1761,7 @@ module Google
|
|
1653
1761
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1654
1762
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1655
1763
|
def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1656
|
-
command = make_simple_command(:get, '
|
1764
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
|
1657
1765
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
|
1658
1766
|
command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
|
1659
1767
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1685,7 +1793,7 @@ module Google
|
|
1685
1793
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1686
1794
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1687
1795
|
def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1688
|
-
command = make_simple_command(:post, '
|
1796
|
+
command = make_simple_command(:post, 'liasettings/batch', options)
|
1689
1797
|
command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
|
1690
1798
|
command.request_object = liasettings_custom_batch_request_object
|
1691
1799
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
|
@@ -1720,7 +1828,7 @@ module Google
|
|
1720
1828
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1721
1829
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1722
1830
|
def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
1723
|
-
command = make_simple_command(:get, '
|
1831
|
+
command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
|
1724
1832
|
command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
1725
1833
|
command.response_class = Google::Apis::ContentV2_1::LiaSettings
|
1726
1834
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1756,7 +1864,7 @@ module Google
|
|
1756
1864
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1757
1865
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1758
1866
|
def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
1759
|
-
command = make_simple_command(:get, '
|
1867
|
+
command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
|
1760
1868
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
|
1761
1869
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
|
1762
1870
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1791,7 +1899,7 @@ module Google
|
|
1791
1899
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1792
1900
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1793
1901
|
def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1794
|
-
command = make_simple_command(:get, '
|
1902
|
+
command = make_simple_command(:get, '{merchantId}/liasettings', options)
|
1795
1903
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
|
1796
1904
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
|
1797
1905
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1822,7 +1930,7 @@ module Google
|
|
1822
1930
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1823
1931
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1824
1932
|
def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block)
|
1825
|
-
command = make_simple_command(:get, '
|
1933
|
+
command = make_simple_command(:get, 'liasettings/posdataproviders', options)
|
1826
1934
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
|
1827
1935
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
|
1828
1936
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1857,7 +1965,7 @@ module Google
|
|
1857
1965
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1858
1966
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1859
1967
|
def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block)
|
1860
|
-
command = make_simple_command(:post, '
|
1968
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
|
1861
1969
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
|
1862
1970
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
|
1863
1971
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1896,7 +2004,7 @@ module Google
|
|
1896
2004
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1897
2005
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1898
2006
|
def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block)
|
1899
|
-
command = make_simple_command(:post, '
|
2007
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
|
1900
2008
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
|
1901
2009
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
|
1902
2010
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1941,7 +2049,7 @@ module Google
|
|
1941
2049
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1942
2050
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1943
2051
|
def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block)
|
1944
|
-
command = make_simple_command(:post, '
|
2052
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
|
1945
2053
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
|
1946
2054
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
|
1947
2055
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1987,7 +2095,7 @@ module Google
|
|
1987
2095
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1988
2096
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1989
2097
|
def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1990
|
-
command = make_simple_command(:post, '
|
2098
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
|
1991
2099
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
|
1992
2100
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
|
1993
2101
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2027,7 +2135,7 @@ module Google
|
|
2027
2135
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2028
2136
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2029
2137
|
def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2030
|
-
command = make_simple_command(:put, '
|
2138
|
+
command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
|
2031
2139
|
command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
2032
2140
|
command.request_object = lia_settings_object
|
2033
2141
|
command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
@@ -2059,7 +2167,7 @@ module Google
|
|
2059
2167
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2060
2168
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2061
2169
|
def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2062
|
-
command = make_simple_command(:post, '
|
2170
|
+
command = make_simple_command(:post, 'localinventory/batch', options)
|
2063
2171
|
command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation
|
2064
2172
|
command.request_object = localinventory_custom_batch_request_object
|
2065
2173
|
command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation
|
@@ -2094,7 +2202,7 @@ module Google
|
|
2094
2202
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2095
2203
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2096
2204
|
def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2097
|
-
command = make_simple_command(:post, '
|
2205
|
+
command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options)
|
2098
2206
|
command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
|
2099
2207
|
command.request_object = local_inventory_object
|
2100
2208
|
command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
|
@@ -2132,7 +2240,7 @@ module Google
|
|
2132
2240
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2133
2241
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2134
2242
|
def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2135
|
-
command = make_simple_command(:post, '
|
2243
|
+
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
|
2136
2244
|
command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
|
2137
2245
|
command.request_object = orderinvoices_create_charge_invoice_request_object
|
2138
2246
|
command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
|
@@ -2172,7 +2280,7 @@ module Google
|
|
2172
2280
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2173
2281
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2174
2282
|
def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2175
|
-
command = make_simple_command(:post, '
|
2283
|
+
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
|
2176
2284
|
command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
|
2177
2285
|
command.request_object = orderinvoices_create_refund_invoice_request_object
|
2178
2286
|
command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
|
@@ -2215,7 +2323,7 @@ module Google
|
|
2215
2323
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2216
2324
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2217
2325
|
def listdisbursements_orderreport(merchant_id, disbursement_end_date: nil, disbursement_start_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2218
|
-
command = make_simple_command(:get, '
|
2326
|
+
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
|
2219
2327
|
command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
|
2220
2328
|
command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
|
2221
2329
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2262,7 +2370,7 @@ module Google
|
|
2262
2370
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2263
2371
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2264
2372
|
def listtransactions_orderreport(merchant_id, disbursement_id, max_results: nil, page_token: nil, transaction_end_date: nil, transaction_start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2265
|
-
command = make_simple_command(:get, '
|
2373
|
+
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
|
2266
2374
|
command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
|
2267
2375
|
command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
|
2268
2376
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2301,7 +2409,7 @@ module Google
|
|
2301
2409
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2302
2410
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2303
2411
|
def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2304
|
-
command = make_simple_command(:post, '
|
2412
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', options)
|
2305
2413
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation
|
2306
2414
|
command.request_object = orderreturns_acknowledge_request_object
|
2307
2415
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation
|
@@ -2336,7 +2444,7 @@ module Google
|
|
2336
2444
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2337
2445
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2338
2446
|
def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2339
|
-
command = make_simple_command(:post, '
|
2447
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', options)
|
2340
2448
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation
|
2341
2449
|
command.request_object = orderreturns_create_order_return_request_object
|
2342
2450
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation
|
@@ -2371,7 +2479,7 @@ module Google
|
|
2371
2479
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2372
2480
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2373
2481
|
def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block)
|
2374
|
-
command = make_simple_command(:get, '
|
2482
|
+
command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
|
2375
2483
|
command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
|
2376
2484
|
command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
|
2377
2485
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2450,7 +2558,7 @@ module Google
|
|
2450
2558
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2451
2559
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2452
2560
|
def list_orderreturns(merchant_id, acknowledged: nil, created_end_date: nil, created_start_date: nil, google_order_ids: nil, max_results: nil, order_by: nil, page_token: nil, shipment_states: nil, shipment_status: nil, shipment_tracking_numbers: nil, shipment_types: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2453
|
-
command = make_simple_command(:get, '
|
2561
|
+
command = make_simple_command(:get, '{merchantId}/orderreturns', options)
|
2454
2562
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
|
2455
2563
|
command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
|
2456
2564
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2495,7 +2603,7 @@ module Google
|
|
2495
2603
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2496
2604
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2497
2605
|
def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2498
|
-
command = make_simple_command(:post, '
|
2606
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', options)
|
2499
2607
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation
|
2500
2608
|
command.request_object = orderreturns_process_request_object
|
2501
2609
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation
|
@@ -2532,7 +2640,7 @@ module Google
|
|
2532
2640
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2533
2641
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2534
2642
|
def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2535
|
-
command = make_simple_command(:post, '
|
2643
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
|
2536
2644
|
command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
|
2537
2645
|
command.request_object = orders_acknowledge_request_object
|
2538
2646
|
command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
|
@@ -2569,7 +2677,7 @@ module Google
|
|
2569
2677
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2570
2678
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2571
2679
|
def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2572
|
-
command = make_simple_command(:post, '
|
2680
|
+
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
|
2573
2681
|
command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
|
2574
2682
|
command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
|
2575
2683
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2604,7 +2712,7 @@ module Google
|
|
2604
2712
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2605
2713
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2606
2714
|
def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2607
|
-
command = make_simple_command(:post, '
|
2715
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
|
2608
2716
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
|
2609
2717
|
command.request_object = orders_cancel_request_object
|
2610
2718
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
|
@@ -2641,7 +2749,7 @@ module Google
|
|
2641
2749
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2642
2750
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2643
2751
|
def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2644
|
-
command = make_simple_command(:post, '
|
2752
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
|
2645
2753
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
|
2646
2754
|
command.request_object = orders_cancel_line_item_request_object
|
2647
2755
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
|
@@ -2678,7 +2786,7 @@ module Google
|
|
2678
2786
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2679
2787
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2680
2788
|
def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2681
|
-
command = make_simple_command(:post, '
|
2789
|
+
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
|
2682
2790
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
|
2683
2791
|
command.request_object = orders_cancel_test_order_by_customer_request_object
|
2684
2792
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
|
@@ -2713,7 +2821,7 @@ module Google
|
|
2713
2821
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2714
2822
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2715
2823
|
def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2716
|
-
command = make_simple_command(:post, '
|
2824
|
+
command = make_simple_command(:post, '{merchantId}/testorders', options)
|
2717
2825
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
|
2718
2826
|
command.request_object = orders_create_test_order_request_object
|
2719
2827
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
|
@@ -2749,7 +2857,7 @@ module Google
|
|
2749
2857
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2750
2858
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2751
2859
|
def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2752
|
-
command = make_simple_command(:post, '
|
2860
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
|
2753
2861
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
|
2754
2862
|
command.request_object = orders_create_test_return_request_object
|
2755
2863
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
|
@@ -2785,7 +2893,7 @@ module Google
|
|
2785
2893
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2786
2894
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2787
2895
|
def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2788
|
-
command = make_simple_command(:get, '
|
2896
|
+
command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
|
2789
2897
|
command.response_representation = Google::Apis::ContentV2_1::Order::Representation
|
2790
2898
|
command.response_class = Google::Apis::ContentV2_1::Order
|
2791
2899
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2819,7 +2927,7 @@ module Google
|
|
2819
2927
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2820
2928
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2821
2929
|
def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2822
|
-
command = make_simple_command(:get, '
|
2930
|
+
command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
|
2823
2931
|
command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
|
2824
2932
|
command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
|
2825
2933
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2856,7 +2964,7 @@ module Google
|
|
2856
2964
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2857
2965
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2858
2966
|
def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2859
|
-
command = make_simple_command(:get, '
|
2967
|
+
command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
|
2860
2968
|
command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
|
2861
2969
|
command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
|
2862
2970
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2899,7 +3007,7 @@ module Google
|
|
2899
3007
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2900
3008
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2901
3009
|
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2902
|
-
command = make_simple_command(:post, '
|
3010
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
|
2903
3011
|
command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
|
2904
3012
|
command.request_object = orders_in_store_refund_line_item_request_object
|
2905
3013
|
command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
|
@@ -2957,7 +3065,7 @@ module Google
|
|
2957
3065
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2958
3066
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2959
3067
|
def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2960
|
-
command = make_simple_command(:get, '
|
3068
|
+
command = make_simple_command(:get, '{merchantId}/orders', options)
|
2961
3069
|
command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
|
2962
3070
|
command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
|
2963
3071
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2998,7 +3106,7 @@ module Google
|
|
2998
3106
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2999
3107
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3000
3108
|
def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3001
|
-
command = make_simple_command(:post, '
|
3109
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options)
|
3002
3110
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation
|
3003
3111
|
command.request_object = orders_refund_item_request_object
|
3004
3112
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation
|
@@ -3035,7 +3143,7 @@ module Google
|
|
3035
3143
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3036
3144
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3037
3145
|
def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3038
|
-
command = make_simple_command(:post, '
|
3146
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options)
|
3039
3147
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation
|
3040
3148
|
command.request_object = orders_refund_order_request_object
|
3041
3149
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation
|
@@ -3072,7 +3180,7 @@ module Google
|
|
3072
3180
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3073
3181
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3074
3182
|
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3075
|
-
command = make_simple_command(:post, '
|
3183
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
|
3076
3184
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
|
3077
3185
|
command.request_object = orders_reject_return_line_item_request_object
|
3078
3186
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
|
@@ -3114,7 +3222,7 @@ module Google
|
|
3114
3222
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3115
3223
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3116
3224
|
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3117
|
-
command = make_simple_command(:post, '
|
3225
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
|
3118
3226
|
command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
|
3119
3227
|
command.request_object = orders_return_refund_line_item_request_object
|
3120
3228
|
command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
|
@@ -3155,7 +3263,7 @@ module Google
|
|
3155
3263
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3156
3264
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3157
3265
|
def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3158
|
-
command = make_simple_command(:post, '
|
3266
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
|
3159
3267
|
command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
|
3160
3268
|
command.request_object = orders_set_line_item_metadata_request_object
|
3161
3269
|
command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
|
@@ -3192,7 +3300,7 @@ module Google
|
|
3192
3300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3193
3301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3194
3302
|
def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3195
|
-
command = make_simple_command(:post, '
|
3303
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
|
3196
3304
|
command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
|
3197
3305
|
command.request_object = orders_ship_line_items_request_object
|
3198
3306
|
command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
|
@@ -3229,7 +3337,7 @@ module Google
|
|
3229
3337
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3230
3338
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3231
3339
|
def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3232
|
-
command = make_simple_command(:post, '
|
3340
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
|
3233
3341
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
|
3234
3342
|
command.request_object = orders_update_line_item_shipping_details_request_object
|
3235
3343
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
|
@@ -3266,7 +3374,7 @@ module Google
|
|
3266
3374
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3267
3375
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3268
3376
|
def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3269
|
-
command = make_simple_command(:post, '
|
3377
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
|
3270
3378
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
|
3271
3379
|
command.request_object = orders_update_merchant_order_id_request_object
|
3272
3380
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
|
@@ -3303,7 +3411,7 @@ module Google
|
|
3303
3411
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3304
3412
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3305
3413
|
def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3306
|
-
command = make_simple_command(:post, '
|
3414
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
|
3307
3415
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
|
3308
3416
|
command.request_object = orders_update_shipment_request_object
|
3309
3417
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
|
@@ -3337,7 +3445,7 @@ module Google
|
|
3337
3445
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3338
3446
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3339
3447
|
def create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3340
|
-
command = make_simple_command(:post, '
|
3448
|
+
command = make_simple_command(:post, '{merchantId}/ordertrackingsignals', options)
|
3341
3449
|
command.request_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
|
3342
3450
|
command.request_object = order_tracking_signal_object
|
3343
3451
|
command.response_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
|
@@ -3368,7 +3476,7 @@ module Google
|
|
3368
3476
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3369
3477
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3370
3478
|
def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3371
|
-
command = make_simple_command(:post, '
|
3479
|
+
command = make_simple_command(:post, 'pos/batch', options)
|
3372
3480
|
command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
|
3373
3481
|
command.request_object = pos_custom_batch_request_object
|
3374
3482
|
command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
|
@@ -3403,7 +3511,7 @@ module Google
|
|
3403
3511
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3404
3512
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3405
3513
|
def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
|
3406
|
-
command = make_simple_command(:delete, '
|
3514
|
+
command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
3407
3515
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3408
3516
|
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
|
3409
3517
|
command.params['storeCode'] = store_code unless store_code.nil?
|
@@ -3437,7 +3545,7 @@ module Google
|
|
3437
3545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3438
3546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3439
3547
|
def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
|
3440
|
-
command = make_simple_command(:get, '
|
3548
|
+
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
3441
3549
|
command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
3442
3550
|
command.response_class = Google::Apis::ContentV2_1::PosStore
|
3443
3551
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3472,7 +3580,7 @@ module Google
|
|
3472
3580
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3473
3581
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3474
3582
|
def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3475
|
-
command = make_simple_command(:post, '
|
3583
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
|
3476
3584
|
command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
3477
3585
|
command.request_object = pos_store_object
|
3478
3586
|
command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
@@ -3508,7 +3616,7 @@ module Google
|
|
3508
3616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3509
3617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3510
3618
|
def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3511
|
-
command = make_simple_command(:post, '
|
3619
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
|
3512
3620
|
command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
|
3513
3621
|
command.request_object = pos_inventory_request_object
|
3514
3622
|
command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
|
@@ -3543,7 +3651,7 @@ module Google
|
|
3543
3651
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3544
3652
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3545
3653
|
def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
3546
|
-
command = make_simple_command(:get, '
|
3654
|
+
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
|
3547
3655
|
command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
|
3548
3656
|
command.response_class = Google::Apis::ContentV2_1::PosListResponse
|
3549
3657
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3577,7 +3685,7 @@ module Google
|
|
3577
3685
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3578
3686
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3579
3687
|
def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3580
|
-
command = make_simple_command(:post, '
|
3688
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
|
3581
3689
|
command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
|
3582
3690
|
command.request_object = pos_sale_request_object
|
3583
3691
|
command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
|
@@ -3609,7 +3717,7 @@ module Google
|
|
3609
3717
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3610
3718
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3611
3719
|
def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3612
|
-
command = make_simple_command(:post, '
|
3720
|
+
command = make_simple_command(:post, 'products/batch', options)
|
3613
3721
|
command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
|
3614
3722
|
command.request_object = products_custom_batch_request_object
|
3615
3723
|
command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
|
@@ -3645,7 +3753,7 @@ module Google
|
|
3645
3753
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3646
3754
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3647
3755
|
def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3648
|
-
command = make_simple_command(:delete, '
|
3756
|
+
command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
|
3649
3757
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3650
3758
|
command.params['productId'] = product_id unless product_id.nil?
|
3651
3759
|
command.query['feedId'] = feed_id unless feed_id.nil?
|
@@ -3678,7 +3786,7 @@ module Google
|
|
3678
3786
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3679
3787
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3680
3788
|
def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
|
3681
|
-
command = make_simple_command(:get, '
|
3789
|
+
command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
|
3682
3790
|
command.response_representation = Google::Apis::ContentV2_1::Product::Representation
|
3683
3791
|
command.response_class = Google::Apis::ContentV2_1::Product
|
3684
3792
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3715,7 +3823,7 @@ module Google
|
|
3715
3823
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3716
3824
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3717
3825
|
def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3718
|
-
command = make_simple_command(:post, '
|
3826
|
+
command = make_simple_command(:post, '{merchantId}/products', options)
|
3719
3827
|
command.request_representation = Google::Apis::ContentV2_1::Product::Representation
|
3720
3828
|
command.request_object = product_object
|
3721
3829
|
command.response_representation = Google::Apis::ContentV2_1::Product::Representation
|
@@ -3755,7 +3863,7 @@ module Google
|
|
3755
3863
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3756
3864
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3757
3865
|
def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3758
|
-
command = make_simple_command(:get, '
|
3866
|
+
command = make_simple_command(:get, '{merchantId}/products', options)
|
3759
3867
|
command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
|
3760
3868
|
command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
|
3761
3869
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3786,7 +3894,7 @@ module Google
|
|
3786
3894
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3787
3895
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3788
3896
|
def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3789
|
-
command = make_simple_command(:post, '
|
3897
|
+
command = make_simple_command(:post, 'productstatuses/batch', options)
|
3790
3898
|
command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
|
3791
3899
|
command.request_object = productstatuses_custom_batch_request_object
|
3792
3900
|
command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
|
@@ -3823,7 +3931,7 @@ module Google
|
|
3823
3931
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3824
3932
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3825
3933
|
def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3826
|
-
command = make_simple_command(:get, '
|
3934
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
|
3827
3935
|
command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
|
3828
3936
|
command.response_class = Google::Apis::ContentV2_1::ProductStatus
|
3829
3937
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3864,7 +3972,7 @@ module Google
|
|
3864
3972
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3865
3973
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3866
3974
|
def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3867
|
-
command = make_simple_command(:get, '
|
3975
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses', options)
|
3868
3976
|
command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
|
3869
3977
|
command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
|
3870
3978
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3922,7 +4030,7 @@ module Google
|
|
3922
4030
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3923
4031
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3924
4032
|
def list_productstatus_repricingreports(merchant_id, product_id, end_date: nil, page_size: nil, page_token: nil, rule_id: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3925
|
-
command = make_simple_command(:get, '
|
4033
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}/repricingreports', options)
|
3926
4034
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation
|
3927
4035
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
|
3928
4036
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3958,7 +4066,7 @@ module Google
|
|
3958
4066
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3959
4067
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3960
4068
|
def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
3961
|
-
command = make_simple_command(:get, '
|
4069
|
+
command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', options)
|
3962
4070
|
command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
3963
4071
|
command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings
|
3964
4072
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3990,7 +4098,7 @@ module Google
|
|
3990
4098
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3991
4099
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3992
4100
|
def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3993
|
-
command = make_simple_command(:put, '
|
4101
|
+
command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', options)
|
3994
4102
|
command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
3995
4103
|
command.request_object = pubsub_notification_settings_object
|
3996
4104
|
command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
@@ -4022,7 +4130,7 @@ module Google
|
|
4022
4130
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4023
4131
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4024
4132
|
def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4025
|
-
command = make_simple_command(:post, '
|
4133
|
+
command = make_simple_command(:post, 'regionalinventory/batch', options)
|
4026
4134
|
command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation
|
4027
4135
|
command.request_object = regionalinventory_custom_batch_request_object
|
4028
4136
|
command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation
|
@@ -4059,7 +4167,7 @@ module Google
|
|
4059
4167
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4060
4168
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4061
4169
|
def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4062
|
-
command = make_simple_command(:post, '
|
4170
|
+
command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options)
|
4063
4171
|
command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
|
4064
4172
|
command.request_object = regional_inventory_object
|
4065
4173
|
command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
|
@@ -4095,7 +4203,7 @@ module Google
|
|
4095
4203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4096
4204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4097
4205
|
def create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4098
|
-
command = make_simple_command(:post, '
|
4206
|
+
command = make_simple_command(:post, '{merchantId}/regions', options)
|
4099
4207
|
command.request_representation = Google::Apis::ContentV2_1::Region::Representation
|
4100
4208
|
command.request_object = region_object
|
4101
4209
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
@@ -4130,7 +4238,7 @@ module Google
|
|
4130
4238
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4131
4239
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4132
4240
|
def delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
|
4133
|
-
command = make_simple_command(:delete, '
|
4241
|
+
command = make_simple_command(:delete, '{merchantId}/regions/{regionId}', options)
|
4134
4242
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4135
4243
|
command.params['regionId'] = region_id unless region_id.nil?
|
4136
4244
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4161,7 +4269,7 @@ module Google
|
|
4161
4269
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4162
4270
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4163
4271
|
def get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
|
4164
|
-
command = make_simple_command(:get, '
|
4272
|
+
command = make_simple_command(:get, '{merchantId}/regions/{regionId}', options)
|
4165
4273
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
4166
4274
|
command.response_class = Google::Apis::ContentV2_1::Region
|
4167
4275
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4200,7 +4308,7 @@ module Google
|
|
4200
4308
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4201
4309
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4202
4310
|
def list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4203
|
-
command = make_simple_command(:get, '
|
4311
|
+
command = make_simple_command(:get, '{merchantId}/regions', options)
|
4204
4312
|
command.response_representation = Google::Apis::ContentV2_1::ListRegionsResponse::Representation
|
4205
4313
|
command.response_class = Google::Apis::ContentV2_1::ListRegionsResponse
|
4206
4314
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4237,7 +4345,7 @@ module Google
|
|
4237
4345
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4238
4346
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4239
4347
|
def patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4240
|
-
command = make_simple_command(:patch, '
|
4348
|
+
command = make_simple_command(:patch, '{merchantId}/regions/{regionId}', options)
|
4241
4349
|
command.request_representation = Google::Apis::ContentV2_1::Region::Representation
|
4242
4350
|
command.request_object = region_object
|
4243
4351
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
@@ -4274,7 +4382,7 @@ module Google
|
|
4274
4382
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4275
4383
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4276
4384
|
def search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4277
|
-
command = make_simple_command(:post, '
|
4385
|
+
command = make_simple_command(:post, '{merchantId}/reports/search', options)
|
4278
4386
|
command.request_representation = Google::Apis::ContentV2_1::SearchRequest::Representation
|
4279
4387
|
command.request_object = search_request_object
|
4280
4388
|
command.response_representation = Google::Apis::ContentV2_1::SearchResponse::Representation
|
@@ -4309,7 +4417,7 @@ module Google
|
|
4309
4417
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4310
4418
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4311
4419
|
def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4312
|
-
command = make_simple_command(:post, '
|
4420
|
+
command = make_simple_command(:post, '{merchantId}/repricingrules', options)
|
4313
4421
|
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4314
4422
|
command.request_object = repricing_rule_object
|
4315
4423
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
@@ -4344,7 +4452,7 @@ module Google
|
|
4344
4452
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4345
4453
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4346
4454
|
def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
4347
|
-
command = make_simple_command(:delete, '
|
4455
|
+
command = make_simple_command(:delete, '{merchantId}/repricingrules/{ruleId}', options)
|
4348
4456
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4349
4457
|
command.params['ruleId'] = rule_id unless rule_id.nil?
|
4350
4458
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4375,7 +4483,7 @@ module Google
|
|
4375
4483
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4376
4484
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4377
4485
|
def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
4378
|
-
command = make_simple_command(:get, '
|
4486
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}', options)
|
4379
4487
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4380
4488
|
command.response_class = Google::Apis::ContentV2_1::RepricingRule
|
4381
4489
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4389,7 +4497,8 @@ module Google
|
|
4389
4497
|
# @param [Fixnum] merchant_id
|
4390
4498
|
# Required. The id of the merchant who owns the repricing rule.
|
4391
4499
|
# @param [String] country_code
|
4392
|
-
# CLDR country code
|
4500
|
+
# [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/
|
4501
|
+
# en.xml) (e.g. "US"), used as a filter on repricing rules.
|
4393
4502
|
# @param [String] language_code
|
4394
4503
|
# The two-letter ISO 639-1 language code associated with the repricing rule,
|
4395
4504
|
# used as a filter.
|
@@ -4420,7 +4529,7 @@ module Google
|
|
4420
4529
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4421
4530
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4422
4531
|
def list_repricingrules(merchant_id, country_code: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4423
|
-
command = make_simple_command(:get, '
|
4532
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules', options)
|
4424
4533
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation
|
4425
4534
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse
|
4426
4535
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4461,7 +4570,7 @@ module Google
|
|
4461
4570
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4462
4571
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4463
4572
|
def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4464
|
-
command = make_simple_command(:patch, '
|
4573
|
+
command = make_simple_command(:patch, '{merchantId}/repricingrules/{ruleId}', options)
|
4465
4574
|
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4466
4575
|
command.request_object = repricing_rule_object
|
4467
4576
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
@@ -4512,7 +4621,7 @@ module Google
|
|
4512
4621
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4513
4622
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4514
4623
|
def list_repricingrule_repricingreports(merchant_id, rule_id, end_date: nil, page_size: nil, page_token: nil, start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4515
|
-
command = make_simple_command(:get, '
|
4624
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}/repricingreports', options)
|
4516
4625
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation
|
4517
4626
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
|
4518
4627
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4546,7 +4655,7 @@ module Google
|
|
4546
4655
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4547
4656
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4548
4657
|
def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4549
|
-
command = make_simple_command(:post, '
|
4658
|
+
command = make_simple_command(:post, 'returnaddress/batch', options)
|
4550
4659
|
command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation
|
4551
4660
|
command.request_object = returnaddress_custom_batch_request_object
|
4552
4661
|
command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation
|
@@ -4579,7 +4688,7 @@ module Google
|
|
4579
4688
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4580
4689
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4581
4690
|
def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
|
4582
|
-
command = make_simple_command(:delete, '
|
4691
|
+
command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options)
|
4583
4692
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4584
4693
|
command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
|
4585
4694
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4610,7 +4719,7 @@ module Google
|
|
4610
4719
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4611
4720
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4612
4721
|
def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
|
4613
|
-
command = make_simple_command(:get, '
|
4722
|
+
command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options)
|
4614
4723
|
command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
4615
4724
|
command.response_class = Google::Apis::ContentV2_1::ReturnAddress
|
4616
4725
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4642,7 +4751,7 @@ module Google
|
|
4642
4751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4643
4752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4644
4753
|
def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4645
|
-
command = make_simple_command(:post, '
|
4754
|
+
command = make_simple_command(:post, '{merchantId}/returnaddress', options)
|
4646
4755
|
command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
4647
4756
|
command.request_object = return_address_object
|
4648
4757
|
command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
@@ -4681,7 +4790,7 @@ module Google
|
|
4681
4790
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4682
4791
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4683
4792
|
def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4684
|
-
command = make_simple_command(:get, '
|
4793
|
+
command = make_simple_command(:get, '{merchantId}/returnaddress', options)
|
4685
4794
|
command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation
|
4686
4795
|
command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse
|
4687
4796
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4713,7 +4822,7 @@ module Google
|
|
4713
4822
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4714
4823
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4715
4824
|
def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4716
|
-
command = make_simple_command(:post, '
|
4825
|
+
command = make_simple_command(:post, 'returnpolicy/batch', options)
|
4717
4826
|
command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation
|
4718
4827
|
command.request_object = returnpolicy_custom_batch_request_object
|
4719
4828
|
command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation
|
@@ -4746,7 +4855,7 @@ module Google
|
|
4746
4855
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4747
4856
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4748
4857
|
def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
4749
|
-
command = make_simple_command(:delete, '
|
4858
|
+
command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options)
|
4750
4859
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4751
4860
|
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
4752
4861
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4777,7 +4886,7 @@ module Google
|
|
4777
4886
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4778
4887
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4779
4888
|
def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
4780
|
-
command = make_simple_command(:get, '
|
4889
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options)
|
4781
4890
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
4782
4891
|
command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
|
4783
4892
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4809,7 +4918,7 @@ module Google
|
|
4809
4918
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4810
4919
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4811
4920
|
def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4812
|
-
command = make_simple_command(:post, '
|
4921
|
+
command = make_simple_command(:post, '{merchantId}/returnpolicy', options)
|
4813
4922
|
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
4814
4923
|
command.request_object = return_policy_object
|
4815
4924
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
@@ -4841,7 +4950,7 @@ module Google
|
|
4841
4950
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4842
4951
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4843
4952
|
def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
4844
|
-
command = make_simple_command(:get, '
|
4953
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicy', options)
|
4845
4954
|
command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation
|
4846
4955
|
command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse
|
4847
4956
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4850,6 +4959,174 @@ module Google
|
|
4850
4959
|
execute_or_queue_command(command, &block)
|
4851
4960
|
end
|
4852
4961
|
|
4962
|
+
# Creates a new return policy.
|
4963
|
+
# @param [Fixnum] merchant_id
|
4964
|
+
# Required. The id of the merchant for which to retrieve the return policy
|
4965
|
+
# online object.
|
4966
|
+
# @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
|
4967
|
+
# @param [String] fields
|
4968
|
+
# Selector specifying which fields to include in a partial response.
|
4969
|
+
# @param [String] quota_user
|
4970
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4971
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4972
|
+
# @param [Google::Apis::RequestOptions] options
|
4973
|
+
# Request-specific options
|
4974
|
+
#
|
4975
|
+
# @yield [result, err] Result & error if block supplied
|
4976
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
|
4977
|
+
# @yieldparam err [StandardError] error object if request failed
|
4978
|
+
#
|
4979
|
+
# @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
|
4980
|
+
#
|
4981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4984
|
+
def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4985
|
+
command = make_simple_command(:post, '{merchantId}/returnpolicyonline', options)
|
4986
|
+
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
4987
|
+
command.request_object = return_policy_online_object
|
4988
|
+
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
4989
|
+
command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
|
4990
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4991
|
+
command.query['fields'] = fields unless fields.nil?
|
4992
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4993
|
+
execute_or_queue_command(command, &block)
|
4994
|
+
end
|
4995
|
+
|
4996
|
+
# Deletes an existing return policy.
|
4997
|
+
# @param [Fixnum] merchant_id
|
4998
|
+
# Required. The id of the merchant for which to retrieve the return policy
|
4999
|
+
# online object.
|
5000
|
+
# @param [String] return_policy_id
|
5001
|
+
# Required. The id of the return policy to delete.
|
5002
|
+
# @param [String] fields
|
5003
|
+
# Selector specifying which fields to include in a partial response.
|
5004
|
+
# @param [String] quota_user
|
5005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5007
|
+
# @param [Google::Apis::RequestOptions] options
|
5008
|
+
# Request-specific options
|
5009
|
+
#
|
5010
|
+
# @yield [result, err] Result & error if block supplied
|
5011
|
+
# @yieldparam result [NilClass] No result returned for this method
|
5012
|
+
# @yieldparam err [StandardError] error object if request failed
|
5013
|
+
#
|
5014
|
+
# @return [void]
|
5015
|
+
#
|
5016
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5017
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5018
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5019
|
+
def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
5020
|
+
command = make_simple_command(:delete, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
5021
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5022
|
+
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
5023
|
+
command.query['fields'] = fields unless fields.nil?
|
5024
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5025
|
+
execute_or_queue_command(command, &block)
|
5026
|
+
end
|
5027
|
+
|
5028
|
+
# Gets an existing return policy.
|
5029
|
+
# @param [Fixnum] merchant_id
|
5030
|
+
# Required. The id of the merchant for which to retrieve the return policy
|
5031
|
+
# online object.
|
5032
|
+
# @param [String] return_policy_id
|
5033
|
+
# Required. The id of the return policy to retrieve.
|
5034
|
+
# @param [String] fields
|
5035
|
+
# Selector specifying which fields to include in a partial response.
|
5036
|
+
# @param [String] quota_user
|
5037
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5038
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5039
|
+
# @param [Google::Apis::RequestOptions] options
|
5040
|
+
# Request-specific options
|
5041
|
+
#
|
5042
|
+
# @yield [result, err] Result & error if block supplied
|
5043
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
|
5044
|
+
# @yieldparam err [StandardError] error object if request failed
|
5045
|
+
#
|
5046
|
+
# @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
|
5047
|
+
#
|
5048
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5049
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5050
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5051
|
+
def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
5052
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
5053
|
+
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
5054
|
+
command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
|
5055
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5056
|
+
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
5057
|
+
command.query['fields'] = fields unless fields.nil?
|
5058
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5059
|
+
execute_or_queue_command(command, &block)
|
5060
|
+
end
|
5061
|
+
|
5062
|
+
# Lists all existing return policies.
|
5063
|
+
# @param [Fixnum] merchant_id
|
5064
|
+
# Required. The id of the merchant for which to retrieve the return policy
|
5065
|
+
# online object.
|
5066
|
+
# @param [String] fields
|
5067
|
+
# Selector specifying which fields to include in a partial response.
|
5068
|
+
# @param [String] quota_user
|
5069
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5070
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5071
|
+
# @param [Google::Apis::RequestOptions] options
|
5072
|
+
# Request-specific options
|
5073
|
+
#
|
5074
|
+
# @yield [result, err] Result & error if block supplied
|
5075
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse] parsed result object
|
5076
|
+
# @yieldparam err [StandardError] error object if request failed
|
5077
|
+
#
|
5078
|
+
# @return [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse]
|
5079
|
+
#
|
5080
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5081
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5082
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5083
|
+
def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5084
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicyonline', options)
|
5085
|
+
command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation
|
5086
|
+
command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
|
5087
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5088
|
+
command.query['fields'] = fields unless fields.nil?
|
5089
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5090
|
+
execute_or_queue_command(command, &block)
|
5091
|
+
end
|
5092
|
+
|
5093
|
+
# Updates an existing return policy.
|
5094
|
+
# @param [Fixnum] merchant_id
|
5095
|
+
# Required. The id of the merchant for which to retrieve the return policy
|
5096
|
+
# online object.
|
5097
|
+
# @param [String] return_policy_id
|
5098
|
+
# Required. The id of the return policy to update.
|
5099
|
+
# @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
|
5100
|
+
# @param [String] fields
|
5101
|
+
# Selector specifying which fields to include in a partial response.
|
5102
|
+
# @param [String] quota_user
|
5103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5105
|
+
# @param [Google::Apis::RequestOptions] options
|
5106
|
+
# Request-specific options
|
5107
|
+
#
|
5108
|
+
# @yield [result, err] Result & error if block supplied
|
5109
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
|
5110
|
+
# @yieldparam err [StandardError] error object if request failed
|
5111
|
+
#
|
5112
|
+
# @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
|
5113
|
+
#
|
5114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5117
|
+
def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5118
|
+
command = make_simple_command(:patch, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
5119
|
+
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
5120
|
+
command.request_object = return_policy_online_object
|
5121
|
+
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
5122
|
+
command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
|
5123
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
5124
|
+
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
5125
|
+
command.query['fields'] = fields unless fields.nil?
|
5126
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5127
|
+
execute_or_queue_command(command, &block)
|
5128
|
+
end
|
5129
|
+
|
4853
5130
|
# Retrieves a settlement report from your Merchant Center account.
|
4854
5131
|
# @param [Fixnum] merchant_id
|
4855
5132
|
# The Merchant Center account of the settlement report.
|
@@ -4873,7 +5150,7 @@ module Google
|
|
4873
5150
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4874
5151
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4875
5152
|
def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block)
|
4876
|
-
command = make_simple_command(:get, '
|
5153
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', options)
|
4877
5154
|
command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation
|
4878
5155
|
command.response_class = Google::Apis::ContentV2_1::SettlementReport
|
4879
5156
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4916,7 +5193,7 @@ module Google
|
|
4916
5193
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4917
5194
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4918
5195
|
def list_settlementreports(merchant_id, max_results: nil, page_token: nil, transfer_end_date: nil, transfer_start_date: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4919
|
-
command = make_simple_command(:get, '
|
5196
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports', options)
|
4920
5197
|
command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation
|
4921
5198
|
command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse
|
4922
5199
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4961,7 +5238,7 @@ module Google
|
|
4961
5238
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4962
5239
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4963
5240
|
def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4964
|
-
command = make_simple_command(:get, '
|
5241
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', options)
|
4965
5242
|
command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation
|
4966
5243
|
command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse
|
4967
5244
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4995,7 +5272,7 @@ module Google
|
|
4995
5272
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4996
5273
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4997
5274
|
def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4998
|
-
command = make_simple_command(:post, '
|
5275
|
+
command = make_simple_command(:post, 'shippingsettings/batch', options)
|
4999
5276
|
command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
|
5000
5277
|
command.request_object = shippingsettings_custom_batch_request_object
|
5001
5278
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
|
@@ -5030,7 +5307,7 @@ module Google
|
|
5030
5307
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5031
5308
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5032
5309
|
def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
5033
|
-
command = make_simple_command(:get, '
|
5310
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
|
5034
5311
|
command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|
5035
5312
|
command.response_class = Google::Apis::ContentV2_1::ShippingSettings
|
5036
5313
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5061,7 +5338,7 @@ module Google
|
|
5061
5338
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5062
5339
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5063
5340
|
def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5064
|
-
command = make_simple_command(:get, '
|
5341
|
+
command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
|
5065
5342
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
|
5066
5343
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
|
5067
5344
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5091,7 +5368,7 @@ module Google
|
|
5091
5368
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5092
5369
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5093
5370
|
def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5094
|
-
command = make_simple_command(:get, '
|
5371
|
+
command = make_simple_command(:get, '{merchantId}/supportedHolidays', options)
|
5095
5372
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
|
5096
5373
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
|
5097
5374
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5121,7 +5398,7 @@ module Google
|
|
5121
5398
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5122
5399
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5123
5400
|
def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5124
|
-
command = make_simple_command(:get, '
|
5401
|
+
command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options)
|
5125
5402
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation
|
5126
5403
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
|
5127
5404
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5157,7 +5434,7 @@ module Google
|
|
5157
5434
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5158
5435
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5159
5436
|
def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5160
|
-
command = make_simple_command(:get, '
|
5437
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
|
5161
5438
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
|
5162
5439
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
|
5163
5440
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5195,7 +5472,7 @@ module Google
|
|
5195
5472
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5196
5473
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5197
5474
|
def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5198
|
-
command = make_simple_command(:put, '
|
5475
|
+
command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
|
5199
5476
|
command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|
5200
5477
|
command.request_object = shipping_settings_object
|
5201
5478
|
command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|