google-apis-content_v2_1 0.5.0 → 0.10.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 +270 -9
- data/lib/google/apis/content_v2_1/gem_version.rb +3 -3
- data/lib/google/apis/content_v2_1/representations.rb +109 -0
- data/lib/google/apis/content_v2_1/service.rb +339 -151
- 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.10.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 = "20210505"
|
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
|
|
@@ -268,6 +274,12 @@ module Google
|
|
268
274
|
include Google::Apis::Core::JsonObjectSupport
|
269
275
|
end
|
270
276
|
|
277
|
+
class ActivateBuyOnGoogleProgramRequest
|
278
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
279
|
+
|
280
|
+
include Google::Apis::Core::JsonObjectSupport
|
281
|
+
end
|
282
|
+
|
271
283
|
class Amount
|
272
284
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
273
285
|
|
@@ -1372,6 +1384,18 @@ module Google
|
|
1372
1384
|
include Google::Apis::Core::JsonObjectSupport
|
1373
1385
|
end
|
1374
1386
|
|
1387
|
+
class PauseBuyOnGoogleProgramRequest
|
1388
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1389
|
+
|
1390
|
+
include Google::Apis::Core::JsonObjectSupport
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
class PaymentServiceProviderLinkInfo
|
1394
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1395
|
+
|
1396
|
+
include Google::Apis::Core::JsonObjectSupport
|
1397
|
+
end
|
1398
|
+
|
1375
1399
|
class PickupCarrierService
|
1376
1400
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1377
1401
|
|
@@ -1786,6 +1810,12 @@ module Google
|
|
1786
1810
|
include Google::Apis::Core::JsonObjectSupport
|
1787
1811
|
end
|
1788
1812
|
|
1813
|
+
class RequestReviewBuyOnGoogleProgramRequest
|
1814
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1815
|
+
|
1816
|
+
include Google::Apis::Core::JsonObjectSupport
|
1817
|
+
end
|
1818
|
+
|
1789
1819
|
class ReturnAddress
|
1790
1820
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1791
1821
|
|
@@ -1858,6 +1888,12 @@ module Google
|
|
1858
1888
|
include Google::Apis::Core::JsonObjectSupport
|
1859
1889
|
end
|
1860
1890
|
|
1891
|
+
class ReturnShippingLabel
|
1892
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1893
|
+
|
1894
|
+
include Google::Apis::Core::JsonObjectSupport
|
1895
|
+
end
|
1896
|
+
|
1861
1897
|
class ReturnaddressCustomBatchRequest
|
1862
1898
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1863
1899
|
|
@@ -2164,6 +2200,12 @@ module Google
|
|
2164
2200
|
include Google::Apis::Core::JsonObjectSupport
|
2165
2201
|
end
|
2166
2202
|
|
2203
|
+
class WarehouseBasedDeliveryTime
|
2204
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2205
|
+
|
2206
|
+
include Google::Apis::Core::JsonObjectSupport
|
2207
|
+
end
|
2208
|
+
|
2167
2209
|
class Weight
|
2168
2210
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2169
2211
|
|
@@ -2225,6 +2267,15 @@ module Google
|
|
2225
2267
|
end
|
2226
2268
|
end
|
2227
2269
|
|
2270
|
+
class AccountCredentials
|
2271
|
+
# @private
|
2272
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2273
|
+
property :access_token, as: 'accessToken'
|
2274
|
+
property :expires_in, :numeric_string => true, as: 'expiresIn'
|
2275
|
+
property :purpose, as: 'purpose'
|
2276
|
+
end
|
2277
|
+
end
|
2278
|
+
|
2228
2279
|
class AccountCustomerService
|
2229
2280
|
# @private
|
2230
2281
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2454,6 +2505,8 @@ module Google
|
|
2454
2505
|
property :action, as: 'action'
|
2455
2506
|
property :link_type, as: 'linkType'
|
2456
2507
|
property :linked_account_id, as: 'linkedAccountId'
|
2508
|
+
property :payment_service_provider_link_info, as: 'paymentServiceProviderLinkInfo', class: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo, decorator: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo::Representation
|
2509
|
+
|
2457
2510
|
collection :services, as: 'services'
|
2458
2511
|
end
|
2459
2512
|
end
|
@@ -2599,6 +2652,12 @@ module Google
|
|
2599
2652
|
end
|
2600
2653
|
end
|
2601
2654
|
|
2655
|
+
class ActivateBuyOnGoogleProgramRequest
|
2656
|
+
# @private
|
2657
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2658
|
+
end
|
2659
|
+
end
|
2660
|
+
|
2602
2661
|
class Amount
|
2603
2662
|
# @private
|
2604
2663
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2642,6 +2701,7 @@ module Google
|
|
2642
2701
|
# @private
|
2643
2702
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2644
2703
|
property :country, as: 'country'
|
2704
|
+
collection :edd_services, as: 'eddServices'
|
2645
2705
|
property :name, as: 'name'
|
2646
2706
|
collection :services, as: 'services'
|
2647
2707
|
end
|
@@ -2989,6 +3049,8 @@ module Google
|
|
2989
3049
|
|
2990
3050
|
property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2_1::TransitTable, decorator: Google::Apis::ContentV2_1::TransitTable::Representation
|
2991
3051
|
|
3052
|
+
collection :warehouse_based_delivery_times, as: 'warehouseBasedDeliveryTimes', class: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime, decorator: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime::Representation
|
3053
|
+
|
2992
3054
|
end
|
2993
3055
|
end
|
2994
3056
|
|
@@ -4565,6 +4627,20 @@ module Google
|
|
4565
4627
|
end
|
4566
4628
|
end
|
4567
4629
|
|
4630
|
+
class PauseBuyOnGoogleProgramRequest
|
4631
|
+
# @private
|
4632
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4633
|
+
end
|
4634
|
+
end
|
4635
|
+
|
4636
|
+
class PaymentServiceProviderLinkInfo
|
4637
|
+
# @private
|
4638
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4639
|
+
property :external_account_business_country, as: 'externalAccountBusinessCountry'
|
4640
|
+
property :external_account_id, as: 'externalAccountId'
|
4641
|
+
end
|
4642
|
+
end
|
4643
|
+
|
4568
4644
|
class PickupCarrierService
|
4569
4645
|
# @private
|
4570
4646
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4803,6 +4879,7 @@ module Google
|
|
4803
4879
|
# @private
|
4804
4880
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4805
4881
|
collection :additional_image_links, as: 'additionalImageLinks'
|
4882
|
+
property :additional_size_type, as: 'additionalSizeType'
|
4806
4883
|
property :ads_grouping, as: 'adsGrouping'
|
4807
4884
|
collection :ads_labels, as: 'adsLabels'
|
4808
4885
|
property :ads_redirect, as: 'adsRedirect'
|
@@ -4928,6 +5005,10 @@ module Google
|
|
4928
5005
|
property :country, as: 'country'
|
4929
5006
|
property :location_group_name, as: 'locationGroupName'
|
4930
5007
|
property :location_id, :numeric_string => true, as: 'locationId'
|
5008
|
+
property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
|
5009
|
+
property :max_transit_time, :numeric_string => true, as: 'maxTransitTime'
|
5010
|
+
property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
|
5011
|
+
property :min_transit_time, :numeric_string => true, as: 'minTransitTime'
|
4931
5012
|
property :postal_code, as: 'postalCode'
|
4932
5013
|
property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
4933
5014
|
|
@@ -5423,6 +5504,12 @@ module Google
|
|
5423
5504
|
end
|
5424
5505
|
end
|
5425
5506
|
|
5507
|
+
class RequestReviewBuyOnGoogleProgramRequest
|
5508
|
+
# @private
|
5509
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5510
|
+
end
|
5511
|
+
end
|
5512
|
+
|
5426
5513
|
class ReturnAddress
|
5427
5514
|
# @private
|
5428
5515
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5570,6 +5657,15 @@ module Google
|
|
5570
5657
|
end
|
5571
5658
|
end
|
5572
5659
|
|
5660
|
+
class ReturnShippingLabel
|
5661
|
+
# @private
|
5662
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5663
|
+
property :carrier, as: 'carrier'
|
5664
|
+
property :label_uri, as: 'labelUri'
|
5665
|
+
property :tracking_id, as: 'trackingId'
|
5666
|
+
end
|
5667
|
+
end
|
5668
|
+
|
5573
5669
|
class ReturnaddressCustomBatchRequest
|
5574
5670
|
# @private
|
5575
5671
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6130,6 +6226,19 @@ module Google
|
|
6130
6226
|
end
|
6131
6227
|
end
|
6132
6228
|
|
6229
|
+
class WarehouseBasedDeliveryTime
|
6230
|
+
# @private
|
6231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6232
|
+
property :carrier, as: 'carrier'
|
6233
|
+
property :carrier_service, as: 'carrierService'
|
6234
|
+
property :origin_administrative_area, as: 'originAdministrativeArea'
|
6235
|
+
property :origin_city, as: 'originCity'
|
6236
|
+
property :origin_country, as: 'originCountry'
|
6237
|
+
property :origin_postal_code, as: 'originPostalCode'
|
6238
|
+
property :origin_street_address, as: 'originStreetAddress'
|
6239
|
+
end
|
6240
|
+
end
|
6241
|
+
|
6133
6242
|
class Weight
|
6134
6243
|
# @private
|
6135
6244
|
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,7 +1013,44 @@ module Google
|
|
979
1013
|
execute_or_queue_command(command, &block)
|
980
1014
|
end
|
981
1015
|
|
982
|
-
#
|
1016
|
+
# Reactivates the BoG program in your Merchant Center account. Moves the program
|
1017
|
+
# to the active state when allowed, e.g. when paused. Important: This method is
|
1018
|
+
# only whitelisted for selected merchants.
|
1019
|
+
# @param [Fixnum] merchant_id
|
1020
|
+
# Required. The ID of the account.
|
1021
|
+
# @param [String] region_code
|
1022
|
+
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
|
1023
|
+
# ISO_3166-1_alpha-2). Currently only US is available.
|
1024
|
+
# @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
|
1025
|
+
# @param [String] fields
|
1026
|
+
# Selector specifying which fields to include in a partial response.
|
1027
|
+
# @param [String] quota_user
|
1028
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1029
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1030
|
+
# @param [Google::Apis::RequestOptions] options
|
1031
|
+
# Request-specific options
|
1032
|
+
#
|
1033
|
+
# @yield [result, err] Result & error if block supplied
|
1034
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1035
|
+
# @yieldparam err [StandardError] error object if request failed
|
1036
|
+
#
|
1037
|
+
# @return [void]
|
1038
|
+
#
|
1039
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1040
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1041
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1042
|
+
def activate_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, activate_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1043
|
+
command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/activate', options)
|
1044
|
+
command.request_representation = Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest::Representation
|
1045
|
+
command.request_object = activate_buy_on_google_program_request_object
|
1046
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1047
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1048
|
+
command.query['fields'] = fields unless fields.nil?
|
1049
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1050
|
+
execute_or_queue_command(command, &block)
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
# Retrieves a status of the BoG program for your Merchant Center account.
|
983
1054
|
# @param [Fixnum] merchant_id
|
984
1055
|
# Required. The ID of the account.
|
985
1056
|
# @param [String] region_code
|
@@ -1003,7 +1074,7 @@ module Google
|
|
1003
1074
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1004
1075
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1005
1076
|
def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block)
|
1006
|
-
command = make_simple_command(:get, '
|
1077
|
+
command = make_simple_command(:get, '{merchantId}/buyongoogleprograms/{regionCode}', options)
|
1007
1078
|
command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
|
1008
1079
|
command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
|
1009
1080
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1013,8 +1084,12 @@ module Google
|
|
1013
1084
|
execute_or_queue_command(command, &block)
|
1014
1085
|
end
|
1015
1086
|
|
1016
|
-
# Onboards BoG in your Merchant Center account. By using this method,
|
1017
|
-
# to the Terms of Service.
|
1087
|
+
# Onboards the BoG program in your Merchant Center account. By using this method,
|
1088
|
+
# you agree to the [Terms of Service](https://merchants.google.com/mc/
|
1089
|
+
# termsofservice/transactions/US/latest). Calling this method is only possible
|
1090
|
+
# if the authenticated account is the same as the merchant id in the request.
|
1091
|
+
# Calling this method multiple times will only accept Terms of Service if the
|
1092
|
+
# latest version is not currently signed.
|
1018
1093
|
# @param [Fixnum] merchant_id
|
1019
1094
|
# Required. The ID of the account.
|
1020
1095
|
# @param [String] region_code
|
@@ -1039,7 +1114,7 @@ module Google
|
|
1039
1114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1040
1115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1041
1116
|
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)
|
1042
|
-
command = make_simple_command(:post, '
|
1117
|
+
command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
|
1043
1118
|
command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation
|
1044
1119
|
command.request_object = onboard_buy_on_google_program_request_object
|
1045
1120
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1049,6 +1124,79 @@ module Google
|
|
1049
1124
|
execute_or_queue_command(command, &block)
|
1050
1125
|
end
|
1051
1126
|
|
1127
|
+
# Pauses the BoG program in your Merchant Center account. Important: This method
|
1128
|
+
# is only whitelisted for selected merchants.
|
1129
|
+
# @param [Fixnum] merchant_id
|
1130
|
+
# Required. The ID of the account.
|
1131
|
+
# @param [String] region_code
|
1132
|
+
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
|
1133
|
+
# ISO_3166-1_alpha-2). Currently only US is available.
|
1134
|
+
# @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
|
1135
|
+
# @param [String] fields
|
1136
|
+
# Selector specifying which fields to include in a partial response.
|
1137
|
+
# @param [String] quota_user
|
1138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1140
|
+
# @param [Google::Apis::RequestOptions] options
|
1141
|
+
# Request-specific options
|
1142
|
+
#
|
1143
|
+
# @yield [result, err] Result & error if block supplied
|
1144
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1145
|
+
# @yieldparam err [StandardError] error object if request failed
|
1146
|
+
#
|
1147
|
+
# @return [void]
|
1148
|
+
#
|
1149
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1150
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1151
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1152
|
+
def pause_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, pause_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1153
|
+
command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/pause', options)
|
1154
|
+
command.request_representation = Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest::Representation
|
1155
|
+
command.request_object = pause_buy_on_google_program_request_object
|
1156
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1157
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1158
|
+
command.query['fields'] = fields unless fields.nil?
|
1159
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1160
|
+
execute_or_queue_command(command, &block)
|
1161
|
+
end
|
1162
|
+
|
1163
|
+
# Requests review and then activates the BoG program in your Merchant Center
|
1164
|
+
# account for the first time. Moves the program to the REVIEW_PENDING state.
|
1165
|
+
# Important: This method is only whitelisted for selected merchants.
|
1166
|
+
# @param [Fixnum] merchant_id
|
1167
|
+
# Required. The ID of the account.
|
1168
|
+
# @param [String] region_code
|
1169
|
+
# The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
|
1170
|
+
# ISO_3166-1_alpha-2). Currently only US is available.
|
1171
|
+
# @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
|
1172
|
+
# @param [String] fields
|
1173
|
+
# Selector specifying which fields to include in a partial response.
|
1174
|
+
# @param [String] quota_user
|
1175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1177
|
+
# @param [Google::Apis::RequestOptions] options
|
1178
|
+
# Request-specific options
|
1179
|
+
#
|
1180
|
+
# @yield [result, err] Result & error if block supplied
|
1181
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1182
|
+
# @yieldparam err [StandardError] error object if request failed
|
1183
|
+
#
|
1184
|
+
# @return [void]
|
1185
|
+
#
|
1186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1189
|
+
def requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1190
|
+
command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/requestreview', options)
|
1191
|
+
command.request_representation = Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest::Representation
|
1192
|
+
command.request_object = request_review_buy_on_google_program_request_object
|
1193
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1194
|
+
command.params['regionCode'] = region_code unless region_code.nil?
|
1195
|
+
command.query['fields'] = fields unless fields.nil?
|
1196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1197
|
+
execute_or_queue_command(command, &block)
|
1198
|
+
end
|
1199
|
+
|
1052
1200
|
# Uploads a collection to your Merchant Center account. If a collection with the
|
1053
1201
|
# same collectionId already exists, this method updates that entry. In each
|
1054
1202
|
# update, the collection is completely replaced by the fields in the body of the
|
@@ -1075,7 +1223,7 @@ module Google
|
|
1075
1223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1076
1224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1077
1225
|
def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1078
|
-
command = make_simple_command(:post, '
|
1226
|
+
command = make_simple_command(:post, '{merchantId}/collections', options)
|
1079
1227
|
command.request_representation = Google::Apis::ContentV2_1::Collection::Representation
|
1080
1228
|
command.request_object = collection_object
|
1081
1229
|
command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
|
@@ -1111,7 +1259,7 @@ module Google
|
|
1111
1259
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1112
1260
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1113
1261
|
def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1114
|
-
command = make_simple_command(:delete, '
|
1262
|
+
command = make_simple_command(:delete, '{merchantId}/collections/{collectionId}', options)
|
1115
1263
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1116
1264
|
command.params['collectionId'] = collection_id unless collection_id.nil?
|
1117
1265
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1143,7 +1291,7 @@ module Google
|
|
1143
1291
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1144
1292
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1145
1293
|
def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1146
|
-
command = make_simple_command(:get, '
|
1294
|
+
command = make_simple_command(:get, '{merchantId}/collections/{collectionId}', options)
|
1147
1295
|
command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
|
1148
1296
|
command.response_class = Google::Apis::ContentV2_1::Collection
|
1149
1297
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1183,7 +1331,7 @@ module Google
|
|
1183
1331
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1184
1332
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1185
1333
|
def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1186
|
-
command = make_simple_command(:get, '
|
1334
|
+
command = make_simple_command(:get, '{merchantId}/collections', options)
|
1187
1335
|
command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation
|
1188
1336
|
command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse
|
1189
1337
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1219,7 +1367,7 @@ module Google
|
|
1219
1367
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1220
1368
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1221
1369
|
def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
|
1222
|
-
command = make_simple_command(:get, '
|
1370
|
+
command = make_simple_command(:get, '{merchantId}/collectionstatuses/{collectionId}', options)
|
1223
1371
|
command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation
|
1224
1372
|
command.response_class = Google::Apis::ContentV2_1::CollectionStatus
|
1225
1373
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1257,7 +1405,7 @@ module Google
|
|
1257
1405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1258
1406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1259
1407
|
def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1260
|
-
command = make_simple_command(:get, '
|
1408
|
+
command = make_simple_command(:get, '{merchantId}/collectionstatuses', options)
|
1261
1409
|
command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation
|
1262
1410
|
command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse
|
1263
1411
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1293,7 +1441,7 @@ module Google
|
|
1293
1441
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1294
1442
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1295
1443
|
def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block)
|
1296
|
-
command = make_simple_command(:get, '
|
1444
|
+
command = make_simple_command(:get, '{cssGroupId}/csses/{cssDomainId}', options)
|
1297
1445
|
command.response_representation = Google::Apis::ContentV2_1::Css::Representation
|
1298
1446
|
command.response_class = Google::Apis::ContentV2_1::Css
|
1299
1447
|
command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
|
@@ -1332,7 +1480,7 @@ module Google
|
|
1332
1480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1333
1481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1334
1482
|
def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1335
|
-
command = make_simple_command(:get, '
|
1483
|
+
command = make_simple_command(:get, '{cssGroupId}/csses', options)
|
1336
1484
|
command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation
|
1337
1485
|
command.response_class = Google::Apis::ContentV2_1::ListCssesResponse
|
1338
1486
|
command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
|
@@ -1367,7 +1515,7 @@ module Google
|
|
1367
1515
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1368
1516
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1369
1517
|
def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1370
|
-
command = make_simple_command(:post, '
|
1518
|
+
command = make_simple_command(:post, '{cssGroupId}/csses/{cssDomainId}/updatelabels', options)
|
1371
1519
|
command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation
|
1372
1520
|
command.request_object = label_ids_object
|
1373
1521
|
command.response_representation = Google::Apis::ContentV2_1::Css::Representation
|
@@ -1400,7 +1548,7 @@ module Google
|
|
1400
1548
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1401
1549
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1402
1550
|
def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1403
|
-
command = make_simple_command(:post, '
|
1551
|
+
command = make_simple_command(:post, 'datafeeds/batch', options)
|
1404
1552
|
command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
|
1405
1553
|
command.request_object = datafeeds_custom_batch_request_object
|
1406
1554
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
|
@@ -1434,7 +1582,7 @@ module Google
|
|
1434
1582
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1435
1583
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1436
1584
|
def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1437
|
-
command = make_simple_command(:delete, '
|
1585
|
+
command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
|
1438
1586
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1439
1587
|
command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
|
1440
1588
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1468,7 +1616,7 @@ module Google
|
|
1468
1616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1469
1617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1470
1618
|
def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1471
|
-
command = make_simple_command(:post, '
|
1619
|
+
command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
|
1472
1620
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
|
1473
1621
|
command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
|
1474
1622
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1502,7 +1650,7 @@ module Google
|
|
1502
1650
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1503
1651
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1504
1652
|
def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
|
1505
|
-
command = make_simple_command(:get, '
|
1653
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
|
1506
1654
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1507
1655
|
command.response_class = Google::Apis::ContentV2_1::Datafeed
|
1508
1656
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1535,7 +1683,7 @@ module Google
|
|
1535
1683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1536
1684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1537
1685
|
def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1538
|
-
command = make_simple_command(:post, '
|
1686
|
+
command = make_simple_command(:post, '{merchantId}/datafeeds', options)
|
1539
1687
|
command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1540
1688
|
command.request_object = datafeed_object
|
1541
1689
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
@@ -1572,7 +1720,7 @@ module Google
|
|
1572
1720
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1573
1721
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1574
1722
|
def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1575
|
-
command = make_simple_command(:get, '
|
1723
|
+
command = make_simple_command(:get, '{merchantId}/datafeeds', options)
|
1576
1724
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
|
1577
1725
|
command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
|
1578
1726
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1609,7 +1757,7 @@ module Google
|
|
1609
1757
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1610
1758
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1611
1759
|
def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1612
|
-
command = make_simple_command(:put, '
|
1760
|
+
command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
|
1613
1761
|
command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
1614
1762
|
command.request_object = datafeed_object
|
1615
1763
|
command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
|
@@ -1641,7 +1789,7 @@ module Google
|
|
1641
1789
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1642
1790
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1643
1791
|
def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1644
|
-
command = make_simple_command(:post, '
|
1792
|
+
command = make_simple_command(:post, 'datafeedstatuses/batch', options)
|
1645
1793
|
command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
|
1646
1794
|
command.request_object = datafeedstatuses_custom_batch_request_object
|
1647
1795
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
|
@@ -1685,7 +1833,7 @@ module Google
|
|
1685
1833
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1686
1834
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1687
1835
|
def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1688
|
-
command = make_simple_command(:get, '
|
1836
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
|
1689
1837
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
|
1690
1838
|
command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
|
1691
1839
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1723,7 +1871,7 @@ module Google
|
|
1723
1871
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1724
1872
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1725
1873
|
def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1726
|
-
command = make_simple_command(:get, '
|
1874
|
+
command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
|
1727
1875
|
command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
|
1728
1876
|
command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
|
1729
1877
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1755,7 +1903,7 @@ module Google
|
|
1755
1903
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1756
1904
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1757
1905
|
def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1758
|
-
command = make_simple_command(:post, '
|
1906
|
+
command = make_simple_command(:post, 'liasettings/batch', options)
|
1759
1907
|
command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
|
1760
1908
|
command.request_object = liasettings_custom_batch_request_object
|
1761
1909
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
|
@@ -1790,7 +1938,7 @@ module Google
|
|
1790
1938
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1791
1939
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1792
1940
|
def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
1793
|
-
command = make_simple_command(:get, '
|
1941
|
+
command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
|
1794
1942
|
command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
1795
1943
|
command.response_class = Google::Apis::ContentV2_1::LiaSettings
|
1796
1944
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1826,7 +1974,7 @@ module Google
|
|
1826
1974
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1827
1975
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1828
1976
|
def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
1829
|
-
command = make_simple_command(:get, '
|
1977
|
+
command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
|
1830
1978
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
|
1831
1979
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
|
1832
1980
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1861,7 +2009,7 @@ module Google
|
|
1861
2009
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1862
2010
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1863
2011
|
def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1864
|
-
command = make_simple_command(:get, '
|
2012
|
+
command = make_simple_command(:get, '{merchantId}/liasettings', options)
|
1865
2013
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
|
1866
2014
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
|
1867
2015
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1892,7 +2040,7 @@ module Google
|
|
1892
2040
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1893
2041
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1894
2042
|
def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block)
|
1895
|
-
command = make_simple_command(:get, '
|
2043
|
+
command = make_simple_command(:get, 'liasettings/posdataproviders', options)
|
1896
2044
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
|
1897
2045
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
|
1898
2046
|
command.query['fields'] = fields unless fields.nil?
|
@@ -1927,7 +2075,7 @@ module Google
|
|
1927
2075
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1928
2076
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1929
2077
|
def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block)
|
1930
|
-
command = make_simple_command(:post, '
|
2078
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
|
1931
2079
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
|
1932
2080
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
|
1933
2081
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -1966,7 +2114,7 @@ module Google
|
|
1966
2114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1967
2115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1968
2116
|
def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block)
|
1969
|
-
command = make_simple_command(:post, '
|
2117
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
|
1970
2118
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
|
1971
2119
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
|
1972
2120
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2011,7 +2159,7 @@ module Google
|
|
2011
2159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2012
2160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2013
2161
|
def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block)
|
2014
|
-
command = make_simple_command(:post, '
|
2162
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
|
2015
2163
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
|
2016
2164
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
|
2017
2165
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2057,7 +2205,7 @@ module Google
|
|
2057
2205
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2058
2206
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2059
2207
|
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)
|
2060
|
-
command = make_simple_command(:post, '
|
2208
|
+
command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
|
2061
2209
|
command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
|
2062
2210
|
command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
|
2063
2211
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2097,7 +2245,7 @@ module Google
|
|
2097
2245
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2098
2246
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2099
2247
|
def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2100
|
-
command = make_simple_command(:put, '
|
2248
|
+
command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
|
2101
2249
|
command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
2102
2250
|
command.request_object = lia_settings_object
|
2103
2251
|
command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
|
@@ -2129,7 +2277,7 @@ module Google
|
|
2129
2277
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2130
2278
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2131
2279
|
def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2132
|
-
command = make_simple_command(:post, '
|
2280
|
+
command = make_simple_command(:post, 'localinventory/batch', options)
|
2133
2281
|
command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation
|
2134
2282
|
command.request_object = localinventory_custom_batch_request_object
|
2135
2283
|
command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation
|
@@ -2164,7 +2312,7 @@ module Google
|
|
2164
2312
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2165
2313
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2166
2314
|
def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2167
|
-
command = make_simple_command(:post, '
|
2315
|
+
command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options)
|
2168
2316
|
command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
|
2169
2317
|
command.request_object = local_inventory_object
|
2170
2318
|
command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
|
@@ -2202,7 +2350,7 @@ module Google
|
|
2202
2350
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2203
2351
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2204
2352
|
def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2205
|
-
command = make_simple_command(:post, '
|
2353
|
+
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
|
2206
2354
|
command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
|
2207
2355
|
command.request_object = orderinvoices_create_charge_invoice_request_object
|
2208
2356
|
command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
|
@@ -2242,7 +2390,7 @@ module Google
|
|
2242
2390
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2243
2391
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2244
2392
|
def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2245
|
-
command = make_simple_command(:post, '
|
2393
|
+
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
|
2246
2394
|
command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
|
2247
2395
|
command.request_object = orderinvoices_create_refund_invoice_request_object
|
2248
2396
|
command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
|
@@ -2285,7 +2433,7 @@ module Google
|
|
2285
2433
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2286
2434
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2287
2435
|
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)
|
2288
|
-
command = make_simple_command(:get, '
|
2436
|
+
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
|
2289
2437
|
command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
|
2290
2438
|
command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
|
2291
2439
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2332,7 +2480,7 @@ module Google
|
|
2332
2480
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2333
2481
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2334
2482
|
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)
|
2335
|
-
command = make_simple_command(:get, '
|
2483
|
+
command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
|
2336
2484
|
command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
|
2337
2485
|
command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
|
2338
2486
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2371,7 +2519,7 @@ module Google
|
|
2371
2519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2372
2520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2373
2521
|
def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2374
|
-
command = make_simple_command(:post, '
|
2522
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', options)
|
2375
2523
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation
|
2376
2524
|
command.request_object = orderreturns_acknowledge_request_object
|
2377
2525
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation
|
@@ -2406,7 +2554,7 @@ module Google
|
|
2406
2554
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2407
2555
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2408
2556
|
def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2409
|
-
command = make_simple_command(:post, '
|
2557
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', options)
|
2410
2558
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation
|
2411
2559
|
command.request_object = orderreturns_create_order_return_request_object
|
2412
2560
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation
|
@@ -2441,7 +2589,7 @@ module Google
|
|
2441
2589
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2442
2590
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2443
2591
|
def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block)
|
2444
|
-
command = make_simple_command(:get, '
|
2592
|
+
command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
|
2445
2593
|
command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
|
2446
2594
|
command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
|
2447
2595
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2520,7 +2668,7 @@ module Google
|
|
2520
2668
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2521
2669
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2522
2670
|
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)
|
2523
|
-
command = make_simple_command(:get, '
|
2671
|
+
command = make_simple_command(:get, '{merchantId}/orderreturns', options)
|
2524
2672
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
|
2525
2673
|
command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
|
2526
2674
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2565,7 +2713,7 @@ module Google
|
|
2565
2713
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2566
2714
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2567
2715
|
def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2568
|
-
command = make_simple_command(:post, '
|
2716
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', options)
|
2569
2717
|
command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation
|
2570
2718
|
command.request_object = orderreturns_process_request_object
|
2571
2719
|
command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation
|
@@ -2577,6 +2725,46 @@ module Google
|
|
2577
2725
|
execute_or_queue_command(command, &block)
|
2578
2726
|
end
|
2579
2727
|
|
2728
|
+
# Links a return shipping label to a return id. You can only create one return
|
2729
|
+
# label per return id. Since the label is sent to the buyer, the linked return
|
2730
|
+
# label cannot be updated or deleted. If you try to create multiple return
|
2731
|
+
# shipping labels for a single return id, every create request except the first
|
2732
|
+
# will fail.
|
2733
|
+
# @param [Fixnum] merchant_id
|
2734
|
+
# Required. The merchant the Return Shipping Label belongs to.
|
2735
|
+
# @param [String] return_id
|
2736
|
+
# Required. Provide the Google-generated merchant order return ID.
|
2737
|
+
# @param [Google::Apis::ContentV2_1::ReturnShippingLabel] return_shipping_label_object
|
2738
|
+
# @param [String] fields
|
2739
|
+
# Selector specifying which fields to include in a partial response.
|
2740
|
+
# @param [String] quota_user
|
2741
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2742
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2743
|
+
# @param [Google::Apis::RequestOptions] options
|
2744
|
+
# Request-specific options
|
2745
|
+
#
|
2746
|
+
# @yield [result, err] Result & error if block supplied
|
2747
|
+
# @yieldparam result [Google::Apis::ContentV2_1::ReturnShippingLabel] parsed result object
|
2748
|
+
# @yieldparam err [StandardError] error object if request failed
|
2749
|
+
#
|
2750
|
+
# @return [Google::Apis::ContentV2_1::ReturnShippingLabel]
|
2751
|
+
#
|
2752
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2753
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2754
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2755
|
+
def create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2756
|
+
command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/labels', options)
|
2757
|
+
command.request_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
|
2758
|
+
command.request_object = return_shipping_label_object
|
2759
|
+
command.response_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
|
2760
|
+
command.response_class = Google::Apis::ContentV2_1::ReturnShippingLabel
|
2761
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
2762
|
+
command.params['returnId'] = return_id unless return_id.nil?
|
2763
|
+
command.query['fields'] = fields unless fields.nil?
|
2764
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2765
|
+
execute_or_queue_command(command, &block)
|
2766
|
+
end
|
2767
|
+
|
2580
2768
|
# Marks an order as acknowledged.
|
2581
2769
|
# @param [Fixnum] merchant_id
|
2582
2770
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -2602,7 +2790,7 @@ module Google
|
|
2602
2790
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2603
2791
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2604
2792
|
def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2605
|
-
command = make_simple_command(:post, '
|
2793
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
|
2606
2794
|
command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
|
2607
2795
|
command.request_object = orders_acknowledge_request_object
|
2608
2796
|
command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
|
@@ -2639,7 +2827,7 @@ module Google
|
|
2639
2827
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2640
2828
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2641
2829
|
def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2642
|
-
command = make_simple_command(:post, '
|
2830
|
+
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
|
2643
2831
|
command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
|
2644
2832
|
command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
|
2645
2833
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2674,7 +2862,7 @@ module Google
|
|
2674
2862
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2675
2863
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2676
2864
|
def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2677
|
-
command = make_simple_command(:post, '
|
2865
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
|
2678
2866
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
|
2679
2867
|
command.request_object = orders_cancel_request_object
|
2680
2868
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
|
@@ -2711,7 +2899,7 @@ module Google
|
|
2711
2899
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2712
2900
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2713
2901
|
def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2714
|
-
command = make_simple_command(:post, '
|
2902
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
|
2715
2903
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
|
2716
2904
|
command.request_object = orders_cancel_line_item_request_object
|
2717
2905
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
|
@@ -2748,7 +2936,7 @@ module Google
|
|
2748
2936
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2749
2937
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2750
2938
|
def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2751
|
-
command = make_simple_command(:post, '
|
2939
|
+
command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
|
2752
2940
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
|
2753
2941
|
command.request_object = orders_cancel_test_order_by_customer_request_object
|
2754
2942
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
|
@@ -2783,7 +2971,7 @@ module Google
|
|
2783
2971
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2784
2972
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2785
2973
|
def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2786
|
-
command = make_simple_command(:post, '
|
2974
|
+
command = make_simple_command(:post, '{merchantId}/testorders', options)
|
2787
2975
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
|
2788
2976
|
command.request_object = orders_create_test_order_request_object
|
2789
2977
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
|
@@ -2819,7 +3007,7 @@ module Google
|
|
2819
3007
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2820
3008
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2821
3009
|
def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2822
|
-
command = make_simple_command(:post, '
|
3010
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
|
2823
3011
|
command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
|
2824
3012
|
command.request_object = orders_create_test_return_request_object
|
2825
3013
|
command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
|
@@ -2855,7 +3043,7 @@ module Google
|
|
2855
3043
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2856
3044
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2857
3045
|
def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2858
|
-
command = make_simple_command(:get, '
|
3046
|
+
command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
|
2859
3047
|
command.response_representation = Google::Apis::ContentV2_1::Order::Representation
|
2860
3048
|
command.response_class = Google::Apis::ContentV2_1::Order
|
2861
3049
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2889,7 +3077,7 @@ module Google
|
|
2889
3077
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2890
3078
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2891
3079
|
def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block)
|
2892
|
-
command = make_simple_command(:get, '
|
3080
|
+
command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
|
2893
3081
|
command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
|
2894
3082
|
command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
|
2895
3083
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2926,7 +3114,7 @@ module Google
|
|
2926
3114
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2927
3115
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2928
3116
|
def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2929
|
-
command = make_simple_command(:get, '
|
3117
|
+
command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
|
2930
3118
|
command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
|
2931
3119
|
command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
|
2932
3120
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -2969,7 +3157,7 @@ module Google
|
|
2969
3157
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2970
3158
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2971
3159
|
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2972
|
-
command = make_simple_command(:post, '
|
3160
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
|
2973
3161
|
command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
|
2974
3162
|
command.request_object = orders_in_store_refund_line_item_request_object
|
2975
3163
|
command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
|
@@ -3027,7 +3215,7 @@ module Google
|
|
3027
3215
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3028
3216
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3029
3217
|
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)
|
3030
|
-
command = make_simple_command(:get, '
|
3218
|
+
command = make_simple_command(:get, '{merchantId}/orders', options)
|
3031
3219
|
command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
|
3032
3220
|
command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
|
3033
3221
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3068,7 +3256,7 @@ module Google
|
|
3068
3256
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3069
3257
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3070
3258
|
def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3071
|
-
command = make_simple_command(:post, '
|
3259
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options)
|
3072
3260
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation
|
3073
3261
|
command.request_object = orders_refund_item_request_object
|
3074
3262
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation
|
@@ -3105,7 +3293,7 @@ module Google
|
|
3105
3293
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3106
3294
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3107
3295
|
def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3108
|
-
command = make_simple_command(:post, '
|
3296
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options)
|
3109
3297
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation
|
3110
3298
|
command.request_object = orders_refund_order_request_object
|
3111
3299
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation
|
@@ -3142,7 +3330,7 @@ module Google
|
|
3142
3330
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3143
3331
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3144
3332
|
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3145
|
-
command = make_simple_command(:post, '
|
3333
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
|
3146
3334
|
command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
|
3147
3335
|
command.request_object = orders_reject_return_line_item_request_object
|
3148
3336
|
command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
|
@@ -3184,7 +3372,7 @@ module Google
|
|
3184
3372
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3185
3373
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3186
3374
|
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3187
|
-
command = make_simple_command(:post, '
|
3375
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
|
3188
3376
|
command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
|
3189
3377
|
command.request_object = orders_return_refund_line_item_request_object
|
3190
3378
|
command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
|
@@ -3225,7 +3413,7 @@ module Google
|
|
3225
3413
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3226
3414
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3227
3415
|
def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3228
|
-
command = make_simple_command(:post, '
|
3416
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
|
3229
3417
|
command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
|
3230
3418
|
command.request_object = orders_set_line_item_metadata_request_object
|
3231
3419
|
command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
|
@@ -3262,7 +3450,7 @@ module Google
|
|
3262
3450
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3263
3451
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3264
3452
|
def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3265
|
-
command = make_simple_command(:post, '
|
3453
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
|
3266
3454
|
command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
|
3267
3455
|
command.request_object = orders_ship_line_items_request_object
|
3268
3456
|
command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
|
@@ -3299,7 +3487,7 @@ module Google
|
|
3299
3487
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3300
3488
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3301
3489
|
def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3302
|
-
command = make_simple_command(:post, '
|
3490
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
|
3303
3491
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
|
3304
3492
|
command.request_object = orders_update_line_item_shipping_details_request_object
|
3305
3493
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
|
@@ -3336,7 +3524,7 @@ module Google
|
|
3336
3524
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3337
3525
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3338
3526
|
def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3339
|
-
command = make_simple_command(:post, '
|
3527
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
|
3340
3528
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
|
3341
3529
|
command.request_object = orders_update_merchant_order_id_request_object
|
3342
3530
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
|
@@ -3373,7 +3561,7 @@ module Google
|
|
3373
3561
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3374
3562
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3375
3563
|
def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3376
|
-
command = make_simple_command(:post, '
|
3564
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
|
3377
3565
|
command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
|
3378
3566
|
command.request_object = orders_update_shipment_request_object
|
3379
3567
|
command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
|
@@ -3407,7 +3595,7 @@ module Google
|
|
3407
3595
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3408
3596
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3409
3597
|
def create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3410
|
-
command = make_simple_command(:post, '
|
3598
|
+
command = make_simple_command(:post, '{merchantId}/ordertrackingsignals', options)
|
3411
3599
|
command.request_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
|
3412
3600
|
command.request_object = order_tracking_signal_object
|
3413
3601
|
command.response_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
|
@@ -3438,7 +3626,7 @@ module Google
|
|
3438
3626
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3439
3627
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3440
3628
|
def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3441
|
-
command = make_simple_command(:post, '
|
3629
|
+
command = make_simple_command(:post, 'pos/batch', options)
|
3442
3630
|
command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
|
3443
3631
|
command.request_object = pos_custom_batch_request_object
|
3444
3632
|
command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
|
@@ -3473,7 +3661,7 @@ module Google
|
|
3473
3661
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3474
3662
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3475
3663
|
def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
|
3476
|
-
command = make_simple_command(:delete, '
|
3664
|
+
command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
3477
3665
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3478
3666
|
command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
|
3479
3667
|
command.params['storeCode'] = store_code unless store_code.nil?
|
@@ -3507,7 +3695,7 @@ module Google
|
|
3507
3695
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3508
3696
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3509
3697
|
def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
|
3510
|
-
command = make_simple_command(:get, '
|
3698
|
+
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
|
3511
3699
|
command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
3512
3700
|
command.response_class = Google::Apis::ContentV2_1::PosStore
|
3513
3701
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3542,7 +3730,7 @@ module Google
|
|
3542
3730
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3543
3731
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3544
3732
|
def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3545
|
-
command = make_simple_command(:post, '
|
3733
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
|
3546
3734
|
command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
3547
3735
|
command.request_object = pos_store_object
|
3548
3736
|
command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
|
@@ -3578,7 +3766,7 @@ module Google
|
|
3578
3766
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3579
3767
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3580
3768
|
def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3581
|
-
command = make_simple_command(:post, '
|
3769
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
|
3582
3770
|
command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
|
3583
3771
|
command.request_object = pos_inventory_request_object
|
3584
3772
|
command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
|
@@ -3613,7 +3801,7 @@ module Google
|
|
3613
3801
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3614
3802
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3615
3803
|
def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
3616
|
-
command = make_simple_command(:get, '
|
3804
|
+
command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
|
3617
3805
|
command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
|
3618
3806
|
command.response_class = Google::Apis::ContentV2_1::PosListResponse
|
3619
3807
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3647,7 +3835,7 @@ module Google
|
|
3647
3835
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3648
3836
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3649
3837
|
def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3650
|
-
command = make_simple_command(:post, '
|
3838
|
+
command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
|
3651
3839
|
command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
|
3652
3840
|
command.request_object = pos_sale_request_object
|
3653
3841
|
command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
|
@@ -3679,7 +3867,7 @@ module Google
|
|
3679
3867
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3680
3868
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3681
3869
|
def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3682
|
-
command = make_simple_command(:post, '
|
3870
|
+
command = make_simple_command(:post, 'products/batch', options)
|
3683
3871
|
command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
|
3684
3872
|
command.request_object = products_custom_batch_request_object
|
3685
3873
|
command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
|
@@ -3715,7 +3903,7 @@ module Google
|
|
3715
3903
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3716
3904
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3717
3905
|
def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3718
|
-
command = make_simple_command(:delete, '
|
3906
|
+
command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
|
3719
3907
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
3720
3908
|
command.params['productId'] = product_id unless product_id.nil?
|
3721
3909
|
command.query['feedId'] = feed_id unless feed_id.nil?
|
@@ -3748,7 +3936,7 @@ module Google
|
|
3748
3936
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3749
3937
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3750
3938
|
def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
|
3751
|
-
command = make_simple_command(:get, '
|
3939
|
+
command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
|
3752
3940
|
command.response_representation = Google::Apis::ContentV2_1::Product::Representation
|
3753
3941
|
command.response_class = Google::Apis::ContentV2_1::Product
|
3754
3942
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3785,7 +3973,7 @@ module Google
|
|
3785
3973
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3786
3974
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3787
3975
|
def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3788
|
-
command = make_simple_command(:post, '
|
3976
|
+
command = make_simple_command(:post, '{merchantId}/products', options)
|
3789
3977
|
command.request_representation = Google::Apis::ContentV2_1::Product::Representation
|
3790
3978
|
command.request_object = product_object
|
3791
3979
|
command.response_representation = Google::Apis::ContentV2_1::Product::Representation
|
@@ -3825,7 +4013,7 @@ module Google
|
|
3825
4013
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3826
4014
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3827
4015
|
def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3828
|
-
command = make_simple_command(:get, '
|
4016
|
+
command = make_simple_command(:get, '{merchantId}/products', options)
|
3829
4017
|
command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
|
3830
4018
|
command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
|
3831
4019
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3856,7 +4044,7 @@ module Google
|
|
3856
4044
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3857
4045
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3858
4046
|
def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3859
|
-
command = make_simple_command(:post, '
|
4047
|
+
command = make_simple_command(:post, 'productstatuses/batch', options)
|
3860
4048
|
command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
|
3861
4049
|
command.request_object = productstatuses_custom_batch_request_object
|
3862
4050
|
command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
|
@@ -3893,7 +4081,7 @@ module Google
|
|
3893
4081
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3894
4082
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3895
4083
|
def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3896
|
-
command = make_simple_command(:get, '
|
4084
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
|
3897
4085
|
command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
|
3898
4086
|
command.response_class = Google::Apis::ContentV2_1::ProductStatus
|
3899
4087
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3934,7 +4122,7 @@ module Google
|
|
3934
4122
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3935
4123
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3936
4124
|
def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3937
|
-
command = make_simple_command(:get, '
|
4125
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses', options)
|
3938
4126
|
command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
|
3939
4127
|
command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
|
3940
4128
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -3992,7 +4180,7 @@ module Google
|
|
3992
4180
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3993
4181
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3994
4182
|
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)
|
3995
|
-
command = make_simple_command(:get, '
|
4183
|
+
command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}/repricingreports', options)
|
3996
4184
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation
|
3997
4185
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
|
3998
4186
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4028,7 +4216,7 @@ module Google
|
|
4028
4216
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4029
4217
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4030
4218
|
def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
4031
|
-
command = make_simple_command(:get, '
|
4219
|
+
command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', options)
|
4032
4220
|
command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
4033
4221
|
command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings
|
4034
4222
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4060,7 +4248,7 @@ module Google
|
|
4060
4248
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4061
4249
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4062
4250
|
def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4063
|
-
command = make_simple_command(:put, '
|
4251
|
+
command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', options)
|
4064
4252
|
command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
4065
4253
|
command.request_object = pubsub_notification_settings_object
|
4066
4254
|
command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
|
@@ -4092,7 +4280,7 @@ module Google
|
|
4092
4280
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4093
4281
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4094
4282
|
def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4095
|
-
command = make_simple_command(:post, '
|
4283
|
+
command = make_simple_command(:post, 'regionalinventory/batch', options)
|
4096
4284
|
command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation
|
4097
4285
|
command.request_object = regionalinventory_custom_batch_request_object
|
4098
4286
|
command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation
|
@@ -4129,7 +4317,7 @@ module Google
|
|
4129
4317
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4130
4318
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4131
4319
|
def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4132
|
-
command = make_simple_command(:post, '
|
4320
|
+
command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options)
|
4133
4321
|
command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
|
4134
4322
|
command.request_object = regional_inventory_object
|
4135
4323
|
command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
|
@@ -4165,7 +4353,7 @@ module Google
|
|
4165
4353
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4166
4354
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4167
4355
|
def create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4168
|
-
command = make_simple_command(:post, '
|
4356
|
+
command = make_simple_command(:post, '{merchantId}/regions', options)
|
4169
4357
|
command.request_representation = Google::Apis::ContentV2_1::Region::Representation
|
4170
4358
|
command.request_object = region_object
|
4171
4359
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
@@ -4200,7 +4388,7 @@ module Google
|
|
4200
4388
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4201
4389
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4202
4390
|
def delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
|
4203
|
-
command = make_simple_command(:delete, '
|
4391
|
+
command = make_simple_command(:delete, '{merchantId}/regions/{regionId}', options)
|
4204
4392
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4205
4393
|
command.params['regionId'] = region_id unless region_id.nil?
|
4206
4394
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4231,7 +4419,7 @@ module Google
|
|
4231
4419
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4232
4420
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4233
4421
|
def get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
|
4234
|
-
command = make_simple_command(:get, '
|
4422
|
+
command = make_simple_command(:get, '{merchantId}/regions/{regionId}', options)
|
4235
4423
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
4236
4424
|
command.response_class = Google::Apis::ContentV2_1::Region
|
4237
4425
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4270,7 +4458,7 @@ module Google
|
|
4270
4458
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4271
4459
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4272
4460
|
def list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4273
|
-
command = make_simple_command(:get, '
|
4461
|
+
command = make_simple_command(:get, '{merchantId}/regions', options)
|
4274
4462
|
command.response_representation = Google::Apis::ContentV2_1::ListRegionsResponse::Representation
|
4275
4463
|
command.response_class = Google::Apis::ContentV2_1::ListRegionsResponse
|
4276
4464
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4307,7 +4495,7 @@ module Google
|
|
4307
4495
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4308
4496
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4309
4497
|
def patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4310
|
-
command = make_simple_command(:patch, '
|
4498
|
+
command = make_simple_command(:patch, '{merchantId}/regions/{regionId}', options)
|
4311
4499
|
command.request_representation = Google::Apis::ContentV2_1::Region::Representation
|
4312
4500
|
command.request_object = region_object
|
4313
4501
|
command.response_representation = Google::Apis::ContentV2_1::Region::Representation
|
@@ -4344,7 +4532,7 @@ module Google
|
|
4344
4532
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4345
4533
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4346
4534
|
def search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4347
|
-
command = make_simple_command(:post, '
|
4535
|
+
command = make_simple_command(:post, '{merchantId}/reports/search', options)
|
4348
4536
|
command.request_representation = Google::Apis::ContentV2_1::SearchRequest::Representation
|
4349
4537
|
command.request_object = search_request_object
|
4350
4538
|
command.response_representation = Google::Apis::ContentV2_1::SearchResponse::Representation
|
@@ -4379,7 +4567,7 @@ module Google
|
|
4379
4567
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4380
4568
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4381
4569
|
def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4382
|
-
command = make_simple_command(:post, '
|
4570
|
+
command = make_simple_command(:post, '{merchantId}/repricingrules', options)
|
4383
4571
|
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4384
4572
|
command.request_object = repricing_rule_object
|
4385
4573
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
@@ -4414,7 +4602,7 @@ module Google
|
|
4414
4602
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4415
4603
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4416
4604
|
def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
4417
|
-
command = make_simple_command(:delete, '
|
4605
|
+
command = make_simple_command(:delete, '{merchantId}/repricingrules/{ruleId}', options)
|
4418
4606
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4419
4607
|
command.params['ruleId'] = rule_id unless rule_id.nil?
|
4420
4608
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4445,7 +4633,7 @@ module Google
|
|
4445
4633
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4446
4634
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4447
4635
|
def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
|
4448
|
-
command = make_simple_command(:get, '
|
4636
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}', options)
|
4449
4637
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4450
4638
|
command.response_class = Google::Apis::ContentV2_1::RepricingRule
|
4451
4639
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4491,7 +4679,7 @@ module Google
|
|
4491
4679
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4492
4680
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4493
4681
|
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)
|
4494
|
-
command = make_simple_command(:get, '
|
4682
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules', options)
|
4495
4683
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation
|
4496
4684
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse
|
4497
4685
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4532,7 +4720,7 @@ module Google
|
|
4532
4720
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4533
4721
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4534
4722
|
def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4535
|
-
command = make_simple_command(:patch, '
|
4723
|
+
command = make_simple_command(:patch, '{merchantId}/repricingrules/{ruleId}', options)
|
4536
4724
|
command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
4537
4725
|
command.request_object = repricing_rule_object
|
4538
4726
|
command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
|
@@ -4583,7 +4771,7 @@ module Google
|
|
4583
4771
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4584
4772
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4585
4773
|
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)
|
4586
|
-
command = make_simple_command(:get, '
|
4774
|
+
command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}/repricingreports', options)
|
4587
4775
|
command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation
|
4588
4776
|
command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
|
4589
4777
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4617,7 +4805,7 @@ module Google
|
|
4617
4805
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4618
4806
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4619
4807
|
def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4620
|
-
command = make_simple_command(:post, '
|
4808
|
+
command = make_simple_command(:post, 'returnaddress/batch', options)
|
4621
4809
|
command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation
|
4622
4810
|
command.request_object = returnaddress_custom_batch_request_object
|
4623
4811
|
command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation
|
@@ -4650,7 +4838,7 @@ module Google
|
|
4650
4838
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4651
4839
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4652
4840
|
def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
|
4653
|
-
command = make_simple_command(:delete, '
|
4841
|
+
command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options)
|
4654
4842
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4655
4843
|
command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
|
4656
4844
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4681,7 +4869,7 @@ module Google
|
|
4681
4869
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4682
4870
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4683
4871
|
def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
|
4684
|
-
command = make_simple_command(:get, '
|
4872
|
+
command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options)
|
4685
4873
|
command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
4686
4874
|
command.response_class = Google::Apis::ContentV2_1::ReturnAddress
|
4687
4875
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4713,7 +4901,7 @@ module Google
|
|
4713
4901
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4714
4902
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4715
4903
|
def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4716
|
-
command = make_simple_command(:post, '
|
4904
|
+
command = make_simple_command(:post, '{merchantId}/returnaddress', options)
|
4717
4905
|
command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
4718
4906
|
command.request_object = return_address_object
|
4719
4907
|
command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
|
@@ -4752,7 +4940,7 @@ module Google
|
|
4752
4940
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4753
4941
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4754
4942
|
def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4755
|
-
command = make_simple_command(:get, '
|
4943
|
+
command = make_simple_command(:get, '{merchantId}/returnaddress', options)
|
4756
4944
|
command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation
|
4757
4945
|
command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse
|
4758
4946
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4784,7 +4972,7 @@ module Google
|
|
4784
4972
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4785
4973
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4786
4974
|
def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4787
|
-
command = make_simple_command(:post, '
|
4975
|
+
command = make_simple_command(:post, 'returnpolicy/batch', options)
|
4788
4976
|
command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation
|
4789
4977
|
command.request_object = returnpolicy_custom_batch_request_object
|
4790
4978
|
command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation
|
@@ -4817,7 +5005,7 @@ module Google
|
|
4817
5005
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4818
5006
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4819
5007
|
def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
4820
|
-
command = make_simple_command(:delete, '
|
5008
|
+
command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options)
|
4821
5009
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4822
5010
|
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
4823
5011
|
command.query['fields'] = fields unless fields.nil?
|
@@ -4848,7 +5036,7 @@ module Google
|
|
4848
5036
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4849
5037
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4850
5038
|
def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
4851
|
-
command = make_simple_command(:get, '
|
5039
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options)
|
4852
5040
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
4853
5041
|
command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
|
4854
5042
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4880,7 +5068,7 @@ module Google
|
|
4880
5068
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4881
5069
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4882
5070
|
def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4883
|
-
command = make_simple_command(:post, '
|
5071
|
+
command = make_simple_command(:post, '{merchantId}/returnpolicy', options)
|
4884
5072
|
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
4885
5073
|
command.request_object = return_policy_object
|
4886
5074
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
|
@@ -4912,7 +5100,7 @@ module Google
|
|
4912
5100
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4913
5101
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4914
5102
|
def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
4915
|
-
command = make_simple_command(:get, '
|
5103
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicy', options)
|
4916
5104
|
command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation
|
4917
5105
|
command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse
|
4918
5106
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -4944,7 +5132,7 @@ module Google
|
|
4944
5132
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4945
5133
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4946
5134
|
def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4947
|
-
command = make_simple_command(:post, '
|
5135
|
+
command = make_simple_command(:post, '{merchantId}/returnpolicyonline', options)
|
4948
5136
|
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
4949
5137
|
command.request_object = return_policy_online_object
|
4950
5138
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
@@ -4979,7 +5167,7 @@ module Google
|
|
4979
5167
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4980
5168
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4981
5169
|
def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
4982
|
-
command = make_simple_command(:delete, '
|
5170
|
+
command = make_simple_command(:delete, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
4983
5171
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4984
5172
|
command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
|
4985
5173
|
command.query['fields'] = fields unless fields.nil?
|
@@ -5011,7 +5199,7 @@ module Google
|
|
5011
5199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5012
5200
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5013
5201
|
def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
|
5014
|
-
command = make_simple_command(:get, '
|
5202
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
5015
5203
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
5016
5204
|
command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
|
5017
5205
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5043,7 +5231,7 @@ module Google
|
|
5043
5231
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5044
5232
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5045
5233
|
def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5046
|
-
command = make_simple_command(:get, '
|
5234
|
+
command = make_simple_command(:get, '{merchantId}/returnpolicyonline', options)
|
5047
5235
|
command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation
|
5048
5236
|
command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
|
5049
5237
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5077,7 +5265,7 @@ module Google
|
|
5077
5265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5078
5266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5079
5267
|
def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5080
|
-
command = make_simple_command(:patch, '
|
5268
|
+
command = make_simple_command(:patch, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
|
5081
5269
|
command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
5082
5270
|
command.request_object = return_policy_online_object
|
5083
5271
|
command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
|
@@ -5112,7 +5300,7 @@ module Google
|
|
5112
5300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5113
5301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5114
5302
|
def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block)
|
5115
|
-
command = make_simple_command(:get, '
|
5303
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', options)
|
5116
5304
|
command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation
|
5117
5305
|
command.response_class = Google::Apis::ContentV2_1::SettlementReport
|
5118
5306
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5155,7 +5343,7 @@ module Google
|
|
5155
5343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5156
5344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5157
5345
|
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)
|
5158
|
-
command = make_simple_command(:get, '
|
5346
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports', options)
|
5159
5347
|
command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation
|
5160
5348
|
command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse
|
5161
5349
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5200,7 +5388,7 @@ module Google
|
|
5200
5388
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5201
5389
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5202
5390
|
def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5203
|
-
command = make_simple_command(:get, '
|
5391
|
+
command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', options)
|
5204
5392
|
command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation
|
5205
5393
|
command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse
|
5206
5394
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5234,7 +5422,7 @@ module Google
|
|
5234
5422
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5235
5423
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5236
5424
|
def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5237
|
-
command = make_simple_command(:post, '
|
5425
|
+
command = make_simple_command(:post, 'shippingsettings/batch', options)
|
5238
5426
|
command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
|
5239
5427
|
command.request_object = shippingsettings_custom_batch_request_object
|
5240
5428
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
|
@@ -5269,7 +5457,7 @@ module Google
|
|
5269
5457
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5270
5458
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5271
5459
|
def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
|
5272
|
-
command = make_simple_command(:get, '
|
5460
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
|
5273
5461
|
command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|
5274
5462
|
command.response_class = Google::Apis::ContentV2_1::ShippingSettings
|
5275
5463
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5300,7 +5488,7 @@ module Google
|
|
5300
5488
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5301
5489
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5302
5490
|
def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5303
|
-
command = make_simple_command(:get, '
|
5491
|
+
command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
|
5304
5492
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
|
5305
5493
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
|
5306
5494
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5330,7 +5518,7 @@ module Google
|
|
5330
5518
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5331
5519
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5332
5520
|
def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5333
|
-
command = make_simple_command(:get, '
|
5521
|
+
command = make_simple_command(:get, '{merchantId}/supportedHolidays', options)
|
5334
5522
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
|
5335
5523
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
|
5336
5524
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5360,7 +5548,7 @@ module Google
|
|
5360
5548
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5361
5549
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5362
5550
|
def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
|
5363
|
-
command = make_simple_command(:get, '
|
5551
|
+
command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options)
|
5364
5552
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation
|
5365
5553
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
|
5366
5554
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5396,7 +5584,7 @@ module Google
|
|
5396
5584
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5397
5585
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5398
5586
|
def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5399
|
-
command = make_simple_command(:get, '
|
5587
|
+
command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
|
5400
5588
|
command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
|
5401
5589
|
command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
|
5402
5590
|
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
@@ -5434,7 +5622,7 @@ module Google
|
|
5434
5622
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5435
5623
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5436
5624
|
def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5437
|
-
command = make_simple_command(:put, '
|
5625
|
+
command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
|
5438
5626
|
command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|
5439
5627
|
command.request_object = shipping_settings_object
|
5440
5628
|
command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
|