google-apis-content_v2_1 0.7.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.7.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210303"
25
+ REVISION = "20210519"
26
26
  end
27
27
  end
28
28
  end
@@ -274,6 +274,12 @@ module Google
274
274
  include Google::Apis::Core::JsonObjectSupport
275
275
  end
276
276
 
277
+ class ActivateBuyOnGoogleProgramRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
277
283
  class Amount
278
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
285
 
@@ -1378,6 +1384,18 @@ module Google
1378
1384
  include Google::Apis::Core::JsonObjectSupport
1379
1385
  end
1380
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
+
1381
1399
  class PickupCarrierService
1382
1400
  class Representation < Google::Apis::Core::JsonRepresentation; end
1383
1401
 
@@ -1792,6 +1810,12 @@ module Google
1792
1810
  include Google::Apis::Core::JsonObjectSupport
1793
1811
  end
1794
1812
 
1813
+ class RequestReviewBuyOnGoogleProgramRequest
1814
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1815
+
1816
+ include Google::Apis::Core::JsonObjectSupport
1817
+ end
1818
+
1795
1819
  class ReturnAddress
1796
1820
  class Representation < Google::Apis::Core::JsonRepresentation; end
1797
1821
 
@@ -1864,6 +1888,12 @@ module Google
1864
1888
  include Google::Apis::Core::JsonObjectSupport
1865
1889
  end
1866
1890
 
1891
+ class ReturnShippingLabel
1892
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1893
+
1894
+ include Google::Apis::Core::JsonObjectSupport
1895
+ end
1896
+
1867
1897
  class ReturnaddressCustomBatchRequest
1868
1898
  class Representation < Google::Apis::Core::JsonRepresentation; end
1869
1899
 
@@ -2170,6 +2200,12 @@ module Google
2170
2200
  include Google::Apis::Core::JsonObjectSupport
2171
2201
  end
2172
2202
 
2203
+ class WarehouseBasedDeliveryTime
2204
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2205
+
2206
+ include Google::Apis::Core::JsonObjectSupport
2207
+ end
2208
+
2173
2209
  class Weight
2174
2210
  class Representation < Google::Apis::Core::JsonRepresentation; end
2175
2211
 
@@ -2469,6 +2505,8 @@ module Google
2469
2505
  property :action, as: 'action'
2470
2506
  property :link_type, as: 'linkType'
2471
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
+
2472
2510
  collection :services, as: 'services'
2473
2511
  end
2474
2512
  end
@@ -2614,6 +2652,12 @@ module Google
2614
2652
  end
2615
2653
  end
2616
2654
 
2655
+ class ActivateBuyOnGoogleProgramRequest
2656
+ # @private
2657
+ class Representation < Google::Apis::Core::JsonRepresentation
2658
+ end
2659
+ end
2660
+
2617
2661
  class Amount
2618
2662
  # @private
2619
2663
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2657,6 +2701,7 @@ module Google
2657
2701
  # @private
2658
2702
  class Representation < Google::Apis::Core::JsonRepresentation
2659
2703
  property :country, as: 'country'
2704
+ collection :edd_services, as: 'eddServices'
2660
2705
  property :name, as: 'name'
2661
2706
  collection :services, as: 'services'
2662
2707
  end
@@ -3004,6 +3049,8 @@ module Google
3004
3049
 
3005
3050
  property :transit_time_table, as: 'transitTimeTable', class: Google::Apis::ContentV2_1::TransitTable, decorator: Google::Apis::ContentV2_1::TransitTable::Representation
3006
3051
 
3052
+ collection :warehouse_based_delivery_times, as: 'warehouseBasedDeliveryTimes', class: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime, decorator: Google::Apis::ContentV2_1::WarehouseBasedDeliveryTime::Representation
3053
+
3007
3054
  end
3008
3055
  end
3009
3056
 
@@ -4116,6 +4163,7 @@ module Google
4116
4163
  # @private
4117
4164
  class Representation < Google::Apis::Core::JsonRepresentation
4118
4165
  property :line_item_id, as: 'lineItemId'
4166
+ property :product_id, as: 'productId'
4119
4167
  property :quantity, as: 'quantity'
4120
4168
  end
4121
4169
  end
@@ -4580,6 +4628,20 @@ module Google
4580
4628
  end
4581
4629
  end
4582
4630
 
4631
+ class PauseBuyOnGoogleProgramRequest
4632
+ # @private
4633
+ class Representation < Google::Apis::Core::JsonRepresentation
4634
+ end
4635
+ end
4636
+
4637
+ class PaymentServiceProviderLinkInfo
4638
+ # @private
4639
+ class Representation < Google::Apis::Core::JsonRepresentation
4640
+ property :external_account_business_country, as: 'externalAccountBusinessCountry'
4641
+ property :external_account_id, as: 'externalAccountId'
4642
+ end
4643
+ end
4644
+
4583
4645
  class PickupCarrierService
4584
4646
  # @private
4585
4647
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4818,6 +4880,7 @@ module Google
4818
4880
  # @private
4819
4881
  class Representation < Google::Apis::Core::JsonRepresentation
4820
4882
  collection :additional_image_links, as: 'additionalImageLinks'
4883
+ property :additional_size_type, as: 'additionalSizeType'
4821
4884
  property :ads_grouping, as: 'adsGrouping'
4822
4885
  collection :ads_labels, as: 'adsLabels'
4823
4886
  property :ads_redirect, as: 'adsRedirect'
@@ -4943,6 +5006,10 @@ module Google
4943
5006
  property :country, as: 'country'
4944
5007
  property :location_group_name, as: 'locationGroupName'
4945
5008
  property :location_id, :numeric_string => true, as: 'locationId'
5009
+ property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
5010
+ property :max_transit_time, :numeric_string => true, as: 'maxTransitTime'
5011
+ property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
5012
+ property :min_transit_time, :numeric_string => true, as: 'minTransitTime'
4946
5013
  property :postal_code, as: 'postalCode'
4947
5014
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4948
5015
 
@@ -5066,6 +5133,7 @@ module Google
5066
5133
  property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation
5067
5134
 
5068
5135
  property :product_id, as: 'productId'
5136
+ property :update_mask, as: 'updateMask'
5069
5137
  end
5070
5138
  end
5071
5139
 
@@ -5438,6 +5506,12 @@ module Google
5438
5506
  end
5439
5507
  end
5440
5508
 
5509
+ class RequestReviewBuyOnGoogleProgramRequest
5510
+ # @private
5511
+ class Representation < Google::Apis::Core::JsonRepresentation
5512
+ end
5513
+ end
5514
+
5441
5515
  class ReturnAddress
5442
5516
  # @private
5443
5517
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5585,6 +5659,15 @@ module Google
5585
5659
  end
5586
5660
  end
5587
5661
 
5662
+ class ReturnShippingLabel
5663
+ # @private
5664
+ class Representation < Google::Apis::Core::JsonRepresentation
5665
+ property :carrier, as: 'carrier'
5666
+ property :label_uri, as: 'labelUri'
5667
+ property :tracking_id, as: 'trackingId'
5668
+ end
5669
+ end
5670
+
5588
5671
  class ReturnaddressCustomBatchRequest
5589
5672
  # @private
5590
5673
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6145,6 +6228,19 @@ module Google
6145
6228
  end
6146
6229
  end
6147
6230
 
6231
+ class WarehouseBasedDeliveryTime
6232
+ # @private
6233
+ class Representation < Google::Apis::Core::JsonRepresentation
6234
+ property :carrier, as: 'carrier'
6235
+ property :carrier_service, as: 'carrierService'
6236
+ property :origin_administrative_area, as: 'originAdministrativeArea'
6237
+ property :origin_city, as: 'originCity'
6238
+ property :origin_country, as: 'originCountry'
6239
+ property :origin_postal_code, as: 'originPostalCode'
6240
+ property :origin_street_address, as: 'originStreetAddress'
6241
+ end
6242
+ end
6243
+
6148
6244
  class Weight
6149
6245
  # @private
6150
6246
  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, 'content/v2.1/accounts/authinfo', options)
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, 'content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite', options)
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, 'content/v2.1/accounts/batch', options)
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, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
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, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
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, 'content/v2.1/{merchantId}/accounts', options)
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, 'content/v2.1/{merchantId}/accounts/{accountId}/link', options)
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, 'content/v2.1/{merchantId}/accounts', options)
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?
@@ -346,6 +346,8 @@ module Google
346
346
  # The ID of the account for which to list links.
347
347
  # @param [Fixnum] max_results
348
348
  # The maximum number of links to return in the response, used for pagination.
349
+ # The minimum allowed value is 5 results per page. If provided value is lower
350
+ # than 5, it will be automatically increased to 5.
349
351
  # @param [String] page_token
350
352
  # The token returned by the previous request.
351
353
  # @param [String] fields
@@ -366,7 +368,7 @@ module Google
366
368
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
367
369
  # @raise [Google::Apis::AuthorizationError] Authorization is required
368
370
  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, 'content/v2.1/{merchantId}/accounts/{accountId}/listlinks', options)
371
+ command = make_simple_command(:get, '{merchantId}/accounts/{accountId}/listlinks', options)
370
372
  command.response_representation = Google::Apis::ContentV2_1::AccountsListLinksResponse::Representation
371
373
  command.response_class = Google::Apis::ContentV2_1::AccountsListLinksResponse
372
374
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -405,7 +407,7 @@ module Google
405
407
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
406
408
  # @raise [Google::Apis::AuthorizationError] Authorization is required
407
409
  def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, options: nil, &block)
408
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounts/{accountId}', options)
410
+ command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
409
411
  command.request_representation = Google::Apis::ContentV2_1::Account::Representation
410
412
  command.request_object = account_object
411
413
  command.response_representation = Google::Apis::ContentV2_1::Account::Representation
@@ -441,7 +443,7 @@ module Google
441
443
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
442
444
  # @raise [Google::Apis::AuthorizationError] Authorization is required
443
445
  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, 'content/v2.1/{merchantId}/accounts/{accountId}/updatelabels', options)
446
+ command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/updatelabels', options)
445
447
  command.request_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsRequest::Representation
446
448
  command.request_object = accounts_update_labels_request_object
447
449
  command.response_representation = Google::Apis::ContentV2_1::AccountsUpdateLabelsResponse::Representation
@@ -476,7 +478,7 @@ module Google
476
478
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
477
479
  # @raise [Google::Apis::AuthorizationError] Authorization is required
478
480
  def create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil, &block)
479
- command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/credentials', options)
481
+ command = make_simple_command(:post, 'accounts/{accountId}/credentials', options)
480
482
  command.request_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
481
483
  command.request_object = account_credentials_object
482
484
  command.response_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
@@ -509,7 +511,7 @@ module Google
509
511
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
512
  # @raise [Google::Apis::AuthorizationError] Authorization is required
511
513
  def create_account_label(account_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
512
- command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/labels', options)
514
+ command = make_simple_command(:post, 'accounts/{accountId}/labels', options)
513
515
  command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
514
516
  command.request_object = account_label_object
515
517
  command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
@@ -543,7 +545,7 @@ module Google
543
545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
544
546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
545
547
  def delete_account_label(account_id, label_id, fields: nil, quota_user: nil, options: nil, &block)
546
- command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options)
548
+ command = make_simple_command(:delete, 'accounts/{accountId}/labels/{labelId}', options)
547
549
  command.params['accountId'] = account_id unless account_id.nil?
548
550
  command.params['labelId'] = label_id unless label_id.nil?
549
551
  command.query['fields'] = fields unless fields.nil?
@@ -581,7 +583,7 @@ module Google
581
583
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
582
584
  # @raise [Google::Apis::AuthorizationError] Authorization is required
583
585
  def list_account_labels(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
584
- command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/labels', options)
586
+ command = make_simple_command(:get, 'accounts/{accountId}/labels', options)
585
587
  command.response_representation = Google::Apis::ContentV2_1::ListAccountLabelsResponse::Representation
586
588
  command.response_class = Google::Apis::ContentV2_1::ListAccountLabelsResponse
587
589
  command.params['accountId'] = account_id unless account_id.nil?
@@ -616,7 +618,7 @@ module Google
616
618
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
619
  # @raise [Google::Apis::AuthorizationError] Authorization is required
618
620
  def patch_account_label(account_id, label_id, account_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
619
- command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/labels/{labelId}', options)
621
+ command = make_simple_command(:patch, 'accounts/{accountId}/labels/{labelId}', options)
620
622
  command.request_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
621
623
  command.request_object = account_label_object
622
624
  command.response_representation = Google::Apis::ContentV2_1::AccountLabel::Representation
@@ -651,7 +653,7 @@ module Google
651
653
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
654
  # @raise [Google::Apis::AuthorizationError] Authorization is required
653
655
  def create_account_returncarrier(account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
654
- command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/returncarrier', options)
656
+ command = make_simple_command(:post, 'accounts/{accountId}/returncarrier', options)
655
657
  command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
656
658
  command.request_object = account_return_carrier_object
657
659
  command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
@@ -686,7 +688,7 @@ module Google
686
688
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
689
  # @raise [Google::Apis::AuthorizationError] Authorization is required
688
690
  def delete_account_returncarrier(account_id, carrier_account_id, fields: nil, quota_user: nil, options: nil, &block)
689
- command = make_simple_command(:delete, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options)
691
+ command = make_simple_command(:delete, 'accounts/{accountId}/returncarrier/{carrierAccountId}', options)
690
692
  command.params['accountId'] = account_id unless account_id.nil?
691
693
  command.params['carrierAccountId'] = carrier_account_id unless carrier_account_id.nil?
692
694
  command.query['fields'] = fields unless fields.nil?
@@ -716,7 +718,7 @@ module Google
716
718
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
719
  # @raise [Google::Apis::AuthorizationError] Authorization is required
718
720
  def list_account_returncarriers(account_id, fields: nil, quota_user: nil, options: nil, &block)
719
- command = make_simple_command(:get, 'content/v2.1/accounts/{accountId}/returncarrier', options)
721
+ command = make_simple_command(:get, 'accounts/{accountId}/returncarrier', options)
720
722
  command.response_representation = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse::Representation
721
723
  command.response_class = Google::Apis::ContentV2_1::ListAccountReturnCarrierResponse
722
724
  command.params['accountId'] = account_id unless account_id.nil?
@@ -750,7 +752,7 @@ module Google
750
752
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
751
753
  # @raise [Google::Apis::AuthorizationError] Authorization is required
752
754
  def patch_account_returncarrier(account_id, carrier_account_id, account_return_carrier_object = nil, fields: nil, quota_user: nil, options: nil, &block)
753
- command = make_simple_command(:patch, 'content/v2.1/accounts/{accountId}/returncarrier/{carrierAccountId}', options)
755
+ command = make_simple_command(:patch, 'accounts/{accountId}/returncarrier/{carrierAccountId}', options)
754
756
  command.request_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
755
757
  command.request_object = account_return_carrier_object
756
758
  command.response_representation = Google::Apis::ContentV2_1::AccountReturnCarrier::Representation
@@ -782,7 +784,7 @@ module Google
782
784
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
785
  # @raise [Google::Apis::AuthorizationError] Authorization is required
784
786
  def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
785
- command = make_simple_command(:post, 'content/v2.1/accountstatuses/batch', options)
787
+ command = make_simple_command(:post, 'accountstatuses/batch', options)
786
788
  command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation
787
789
  command.request_object = accountstatuses_custom_batch_request_object
788
790
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation
@@ -821,7 +823,7 @@ module Google
821
823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
825
  def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
824
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses/{accountId}', options)
826
+ command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
825
827
  command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation
826
828
  command.response_class = Google::Apis::ContentV2_1::AccountStatus
827
829
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -861,7 +863,7 @@ module Google
861
863
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
862
864
  # @raise [Google::Apis::AuthorizationError] Authorization is required
863
865
  def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
864
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/accountstatuses', options)
866
+ command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
865
867
  command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
866
868
  command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
867
869
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -893,7 +895,7 @@ module Google
893
895
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
894
896
  # @raise [Google::Apis::AuthorizationError] Authorization is required
895
897
  def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
896
- command = make_simple_command(:post, 'content/v2.1/accounttax/batch', options)
898
+ command = make_simple_command(:post, 'accounttax/batch', options)
897
899
  command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation
898
900
  command.request_object = accounttax_custom_batch_request_object
899
901
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation
@@ -928,7 +930,7 @@ module Google
928
930
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
929
931
  # @raise [Google::Apis::AuthorizationError] Authorization is required
930
932
  def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
931
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax/{accountId}', options)
933
+ command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
932
934
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
933
935
  command.response_class = Google::Apis::ContentV2_1::AccountTax
934
936
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -963,7 +965,7 @@ module Google
963
965
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
964
966
  # @raise [Google::Apis::AuthorizationError] Authorization is required
965
967
  def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
966
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/accounttax', options)
968
+ command = make_simple_command(:get, '{merchantId}/accounttax', options)
967
969
  command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation
968
970
  command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse
969
971
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1001,7 +1003,7 @@ module Google
1001
1003
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1002
1004
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1003
1005
  def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1004
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/accounttax/{accountId}', options)
1006
+ command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
1005
1007
  command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation
1006
1008
  command.request_object = account_tax_object
1007
1009
  command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
@@ -1013,7 +1015,44 @@ module Google
1013
1015
  execute_or_queue_command(command, &block)
1014
1016
  end
1015
1017
 
1016
- # Retrieves a status of BoG program for your Merchant Center account.
1018
+ # Reactivates the BoG program in your Merchant Center account. Moves the program
1019
+ # to the active state when allowed, e.g. when paused. Important: This method is
1020
+ # only whitelisted for selected merchants.
1021
+ # @param [Fixnum] merchant_id
1022
+ # Required. The ID of the account.
1023
+ # @param [String] region_code
1024
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1025
+ # ISO_3166-1_alpha-2). Currently only US is available.
1026
+ # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1027
+ # @param [String] fields
1028
+ # Selector specifying which fields to include in a partial response.
1029
+ # @param [String] quota_user
1030
+ # Available to use for quota purposes for server-side applications. Can be any
1031
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1032
+ # @param [Google::Apis::RequestOptions] options
1033
+ # Request-specific options
1034
+ #
1035
+ # @yield [result, err] Result & error if block supplied
1036
+ # @yieldparam result [NilClass] No result returned for this method
1037
+ # @yieldparam err [StandardError] error object if request failed
1038
+ #
1039
+ # @return [void]
1040
+ #
1041
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
+ 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)
1045
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/activate', options)
1046
+ command.request_representation = Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest::Representation
1047
+ command.request_object = activate_buy_on_google_program_request_object
1048
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1049
+ command.params['regionCode'] = region_code unless region_code.nil?
1050
+ command.query['fields'] = fields unless fields.nil?
1051
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1052
+ execute_or_queue_command(command, &block)
1053
+ end
1054
+
1055
+ # Retrieves a status of the BoG program for your Merchant Center account.
1017
1056
  # @param [Fixnum] merchant_id
1018
1057
  # Required. The ID of the account.
1019
1058
  # @param [String] region_code
@@ -1037,7 +1076,7 @@ module Google
1037
1076
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1038
1077
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1039
1078
  def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block)
1040
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}', options)
1079
+ command = make_simple_command(:get, '{merchantId}/buyongoogleprograms/{regionCode}', options)
1041
1080
  command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1042
1081
  command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1043
1082
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1047,12 +1086,12 @@ module Google
1047
1086
  execute_or_queue_command(command, &block)
1048
1087
  end
1049
1088
 
1050
- # Onboards BoG in your Merchant Center account. By using this method, you agree
1051
- # to the [Terms of Service](https://merchants.google.com/mc/termsofservice/
1052
- # transactions/US/latest). Calling this method is only possible if the
1053
- # authenticated account is the same as the merchant id in the request. Calling
1054
- # this method multiple times will only accept Terms of Service if the latest
1055
- # version is not currently signed.
1089
+ # Onboards the BoG program in your Merchant Center account. By using this method,
1090
+ # you agree to the [Terms of Service](https://merchants.google.com/mc/
1091
+ # termsofservice/transactions/US/latest). Calling this method is only possible
1092
+ # if the authenticated account is the same as the merchant id in the request.
1093
+ # Calling this method multiple times will only accept Terms of Service if the
1094
+ # latest version is not currently signed.
1056
1095
  # @param [Fixnum] merchant_id
1057
1096
  # Required. The ID of the account.
1058
1097
  # @param [String] region_code
@@ -1077,7 +1116,7 @@ module Google
1077
1116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1078
1117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1079
1118
  def onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1080
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
1119
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
1081
1120
  command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation
1082
1121
  command.request_object = onboard_buy_on_google_program_request_object
1083
1122
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1087,6 +1126,79 @@ module Google
1087
1126
  execute_or_queue_command(command, &block)
1088
1127
  end
1089
1128
 
1129
+ # Pauses the BoG program in your Merchant Center account. Important: This method
1130
+ # is only whitelisted for selected merchants.
1131
+ # @param [Fixnum] merchant_id
1132
+ # Required. The ID of the account.
1133
+ # @param [String] region_code
1134
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1135
+ # ISO_3166-1_alpha-2). Currently only US is available.
1136
+ # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1137
+ # @param [String] fields
1138
+ # Selector specifying which fields to include in a partial response.
1139
+ # @param [String] quota_user
1140
+ # Available to use for quota purposes for server-side applications. Can be any
1141
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1142
+ # @param [Google::Apis::RequestOptions] options
1143
+ # Request-specific options
1144
+ #
1145
+ # @yield [result, err] Result & error if block supplied
1146
+ # @yieldparam result [NilClass] No result returned for this method
1147
+ # @yieldparam err [StandardError] error object if request failed
1148
+ #
1149
+ # @return [void]
1150
+ #
1151
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1152
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1153
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1154
+ 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)
1155
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/pause', options)
1156
+ command.request_representation = Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest::Representation
1157
+ command.request_object = pause_buy_on_google_program_request_object
1158
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1159
+ command.params['regionCode'] = region_code unless region_code.nil?
1160
+ command.query['fields'] = fields unless fields.nil?
1161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
+ execute_or_queue_command(command, &block)
1163
+ end
1164
+
1165
+ # Requests review and then activates the BoG program in your Merchant Center
1166
+ # account for the first time. Moves the program to the REVIEW_PENDING state.
1167
+ # Important: This method is only whitelisted for selected merchants.
1168
+ # @param [Fixnum] merchant_id
1169
+ # Required. The ID of the account.
1170
+ # @param [String] region_code
1171
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1172
+ # ISO_3166-1_alpha-2). Currently only US is available.
1173
+ # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1174
+ # @param [String] fields
1175
+ # Selector specifying which fields to include in a partial response.
1176
+ # @param [String] quota_user
1177
+ # Available to use for quota purposes for server-side applications. Can be any
1178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1179
+ # @param [Google::Apis::RequestOptions] options
1180
+ # Request-specific options
1181
+ #
1182
+ # @yield [result, err] Result & error if block supplied
1183
+ # @yieldparam result [NilClass] No result returned for this method
1184
+ # @yieldparam err [StandardError] error object if request failed
1185
+ #
1186
+ # @return [void]
1187
+ #
1188
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1189
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1190
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1191
+ def requestreview_buyongoogleprogram(merchant_id, region_code, request_review_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1192
+ command = make_simple_command(:post, '{merchantId}/buyongoogleprograms/{regionCode}/requestreview', options)
1193
+ command.request_representation = Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest::Representation
1194
+ command.request_object = request_review_buy_on_google_program_request_object
1195
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1196
+ command.params['regionCode'] = region_code unless region_code.nil?
1197
+ command.query['fields'] = fields unless fields.nil?
1198
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1199
+ execute_or_queue_command(command, &block)
1200
+ end
1201
+
1090
1202
  # Uploads a collection to your Merchant Center account. If a collection with the
1091
1203
  # same collectionId already exists, this method updates that entry. In each
1092
1204
  # update, the collection is completely replaced by the fields in the body of the
@@ -1113,7 +1225,7 @@ module Google
1113
1225
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1114
1226
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1115
1227
  def create_collection(merchant_id, collection_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1116
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/collections', options)
1228
+ command = make_simple_command(:post, '{merchantId}/collections', options)
1117
1229
  command.request_representation = Google::Apis::ContentV2_1::Collection::Representation
1118
1230
  command.request_object = collection_object
1119
1231
  command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
@@ -1149,7 +1261,7 @@ module Google
1149
1261
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1150
1262
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1151
1263
  def delete_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1152
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/collections/{collectionId}', options)
1264
+ command = make_simple_command(:delete, '{merchantId}/collections/{collectionId}', options)
1153
1265
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1154
1266
  command.params['collectionId'] = collection_id unless collection_id.nil?
1155
1267
  command.query['fields'] = fields unless fields.nil?
@@ -1181,7 +1293,7 @@ module Google
1181
1293
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1182
1294
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1183
1295
  def get_collection(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1184
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections/{collectionId}', options)
1296
+ command = make_simple_command(:get, '{merchantId}/collections/{collectionId}', options)
1185
1297
  command.response_representation = Google::Apis::ContentV2_1::Collection::Representation
1186
1298
  command.response_class = Google::Apis::ContentV2_1::Collection
1187
1299
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1221,7 +1333,7 @@ module Google
1221
1333
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1222
1334
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1223
1335
  def list_collections(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1224
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/collections', options)
1336
+ command = make_simple_command(:get, '{merchantId}/collections', options)
1225
1337
  command.response_representation = Google::Apis::ContentV2_1::ListCollectionsResponse::Representation
1226
1338
  command.response_class = Google::Apis::ContentV2_1::ListCollectionsResponse
1227
1339
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1257,7 +1369,7 @@ module Google
1257
1369
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1258
1370
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1259
1371
  def get_collectionstatus(merchant_id, collection_id, fields: nil, quota_user: nil, options: nil, &block)
1260
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses/{collectionId}', options)
1372
+ command = make_simple_command(:get, '{merchantId}/collectionstatuses/{collectionId}', options)
1261
1373
  command.response_representation = Google::Apis::ContentV2_1::CollectionStatus::Representation
1262
1374
  command.response_class = Google::Apis::ContentV2_1::CollectionStatus
1263
1375
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1295,7 +1407,7 @@ module Google
1295
1407
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1296
1408
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1297
1409
  def list_collectionstatuses(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1298
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/collectionstatuses', options)
1410
+ command = make_simple_command(:get, '{merchantId}/collectionstatuses', options)
1299
1411
  command.response_representation = Google::Apis::ContentV2_1::ListCollectionStatusesResponse::Representation
1300
1412
  command.response_class = Google::Apis::ContentV2_1::ListCollectionStatusesResponse
1301
1413
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1331,7 +1443,7 @@ module Google
1331
1443
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1332
1444
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1333
1445
  def get_css(css_group_id, css_domain_id, fields: nil, quota_user: nil, options: nil, &block)
1334
- command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}', options)
1446
+ command = make_simple_command(:get, '{cssGroupId}/csses/{cssDomainId}', options)
1335
1447
  command.response_representation = Google::Apis::ContentV2_1::Css::Representation
1336
1448
  command.response_class = Google::Apis::ContentV2_1::Css
1337
1449
  command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
@@ -1370,7 +1482,7 @@ module Google
1370
1482
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1371
1483
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1372
1484
  def list_csses(css_group_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1373
- command = make_simple_command(:get, 'content/v2.1/{cssGroupId}/csses', options)
1485
+ command = make_simple_command(:get, '{cssGroupId}/csses', options)
1374
1486
  command.response_representation = Google::Apis::ContentV2_1::ListCssesResponse::Representation
1375
1487
  command.response_class = Google::Apis::ContentV2_1::ListCssesResponse
1376
1488
  command.params['cssGroupId'] = css_group_id unless css_group_id.nil?
@@ -1405,7 +1517,7 @@ module Google
1405
1517
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1406
1518
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1407
1519
  def updatelabels_css(css_group_id, css_domain_id, label_ids_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1408
- command = make_simple_command(:post, 'content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels', options)
1520
+ command = make_simple_command(:post, '{cssGroupId}/csses/{cssDomainId}/updatelabels', options)
1409
1521
  command.request_representation = Google::Apis::ContentV2_1::LabelIds::Representation
1410
1522
  command.request_object = label_ids_object
1411
1523
  command.response_representation = Google::Apis::ContentV2_1::Css::Representation
@@ -1438,7 +1550,7 @@ module Google
1438
1550
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1439
1551
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1440
1552
  def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1441
- command = make_simple_command(:post, 'content/v2.1/datafeeds/batch', options)
1553
+ command = make_simple_command(:post, 'datafeeds/batch', options)
1442
1554
  command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
1443
1555
  command.request_object = datafeeds_custom_batch_request_object
1444
1556
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
@@ -1472,7 +1584,7 @@ module Google
1472
1584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1473
1585
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1474
1586
  def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1475
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
1587
+ command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
1476
1588
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
1477
1589
  command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1478
1590
  command.query['fields'] = fields unless fields.nil?
@@ -1506,7 +1618,7 @@ module Google
1506
1618
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507
1619
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1508
1620
  def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1509
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
1621
+ command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
1510
1622
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
1511
1623
  command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
1512
1624
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1540,7 +1652,7 @@ module Google
1540
1652
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1541
1653
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1542
1654
  def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, options: nil, &block)
1543
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
1655
+ command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
1544
1656
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
1545
1657
  command.response_class = Google::Apis::ContentV2_1::Datafeed
1546
1658
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1573,7 +1685,7 @@ module Google
1573
1685
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1574
1686
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1575
1687
  def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1576
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/datafeeds', options)
1688
+ command = make_simple_command(:post, '{merchantId}/datafeeds', options)
1577
1689
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
1578
1690
  command.request_object = datafeed_object
1579
1691
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
@@ -1610,7 +1722,7 @@ module Google
1610
1722
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1611
1723
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1612
1724
  def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1613
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeeds', options)
1725
+ command = make_simple_command(:get, '{merchantId}/datafeeds', options)
1614
1726
  command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
1615
1727
  command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
1616
1728
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1647,7 +1759,7 @@ module Google
1647
1759
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1648
1760
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1649
1761
  def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1650
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/datafeeds/{datafeedId}', options)
1762
+ command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
1651
1763
  command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
1652
1764
  command.request_object = datafeed_object
1653
1765
  command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
@@ -1679,7 +1791,7 @@ module Google
1679
1791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1680
1792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1681
1793
  def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1682
- command = make_simple_command(:post, 'content/v2.1/datafeedstatuses/batch', options)
1794
+ command = make_simple_command(:post, 'datafeedstatuses/batch', options)
1683
1795
  command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
1684
1796
  command.request_object = datafeedstatuses_custom_batch_request_object
1685
1797
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
@@ -1723,7 +1835,7 @@ module Google
1723
1835
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1724
1836
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1725
1837
  def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, options: nil, &block)
1726
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}', options)
1838
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
1727
1839
  command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
1728
1840
  command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
1729
1841
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1761,7 +1873,7 @@ module Google
1761
1873
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1762
1874
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1763
1875
  def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1764
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/datafeedstatuses', options)
1876
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
1765
1877
  command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
1766
1878
  command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
1767
1879
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1793,7 +1905,7 @@ module Google
1793
1905
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1794
1906
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1795
1907
  def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1796
- command = make_simple_command(:post, 'content/v2.1/liasettings/batch', options)
1908
+ command = make_simple_command(:post, 'liasettings/batch', options)
1797
1909
  command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
1798
1910
  command.request_object = liasettings_custom_batch_request_object
1799
1911
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
@@ -1828,7 +1940,7 @@ module Google
1828
1940
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1829
1941
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1830
1942
  def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
1831
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}', options)
1943
+ command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
1832
1944
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1833
1945
  command.response_class = Google::Apis::ContentV2_1::LiaSettings
1834
1946
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1864,7 +1976,7 @@ module Google
1864
1976
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1865
1977
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1866
1978
  def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
1867
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
1979
+ command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
1868
1980
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
1869
1981
  command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
1870
1982
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1899,7 +2011,7 @@ module Google
1899
2011
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1900
2012
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1901
2013
  def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1902
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/liasettings', options)
2014
+ command = make_simple_command(:get, '{merchantId}/liasettings', options)
1903
2015
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
1904
2016
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
1905
2017
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -1930,7 +2042,7 @@ module Google
1930
2042
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1931
2043
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1932
2044
  def listposdataproviders_liasetting(fields: nil, quota_user: nil, options: nil, &block)
1933
- command = make_simple_command(:get, 'content/v2.1/liasettings/posdataproviders', options)
2045
+ command = make_simple_command(:get, 'liasettings/posdataproviders', options)
1934
2046
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
1935
2047
  command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
1936
2048
  command.query['fields'] = fields unless fields.nil?
@@ -1965,7 +2077,7 @@ module Google
1965
2077
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1966
2078
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1967
2079
  def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, options: nil, &block)
1968
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
2080
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
1969
2081
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
1970
2082
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
1971
2083
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2004,7 +2116,7 @@ module Google
2004
2116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2005
2117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2006
2118
  def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, options: nil, &block)
2007
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
2119
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
2008
2120
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
2009
2121
  command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
2010
2122
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2049,7 +2161,7 @@ module Google
2049
2161
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2050
2162
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2051
2163
  def setinventoryverificationcontact_liasetting(merchant_id, account_id, country, language, contact_name, contact_email, fields: nil, quota_user: nil, options: nil, &block)
2052
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
2164
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
2053
2165
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
2054
2166
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
2055
2167
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2095,7 +2207,7 @@ module Google
2095
2207
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2096
2208
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2097
2209
  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)
2098
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider', options)
2210
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
2099
2211
  command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
2100
2212
  command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
2101
2213
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2135,7 +2247,7 @@ module Google
2135
2247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2136
2248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2137
2249
  def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2138
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/liasettings/{accountId}', options)
2250
+ command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
2139
2251
  command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
2140
2252
  command.request_object = lia_settings_object
2141
2253
  command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
@@ -2167,7 +2279,7 @@ module Google
2167
2279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2168
2280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2169
2281
  def custombatch_localinventory(localinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2170
- command = make_simple_command(:post, 'content/v2.1/localinventory/batch', options)
2282
+ command = make_simple_command(:post, 'localinventory/batch', options)
2171
2283
  command.request_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchRequest::Representation
2172
2284
  command.request_object = localinventory_custom_batch_request_object
2173
2285
  command.response_representation = Google::Apis::ContentV2_1::LocalinventoryCustomBatchResponse::Representation
@@ -2202,7 +2314,7 @@ module Google
2202
2314
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2203
2315
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2204
2316
  def insert_localinventory(merchant_id, product_id, local_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2205
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/localinventory', options)
2317
+ command = make_simple_command(:post, '{merchantId}/products/{productId}/localinventory', options)
2206
2318
  command.request_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
2207
2319
  command.request_object = local_inventory_object
2208
2320
  command.response_representation = Google::Apis::ContentV2_1::LocalInventory::Representation
@@ -2240,7 +2352,7 @@ module Google
2240
2352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2241
2353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2242
2354
  def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2243
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
2355
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
2244
2356
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
2245
2357
  command.request_object = orderinvoices_create_charge_invoice_request_object
2246
2358
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
@@ -2280,7 +2392,7 @@ module Google
2280
2392
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2281
2393
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2282
2394
  def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2283
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
2395
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
2284
2396
  command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
2285
2397
  command.request_object = orderinvoices_create_refund_invoice_request_object
2286
2398
  command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
@@ -2323,7 +2435,7 @@ module Google
2323
2435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2324
2436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2325
2437
  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)
2326
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements', options)
2438
+ command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
2327
2439
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
2328
2440
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
2329
2441
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2370,7 +2482,7 @@ module Google
2370
2482
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2371
2483
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2372
2484
  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)
2373
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
2485
+ command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
2374
2486
  command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
2375
2487
  command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
2376
2488
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2409,7 +2521,7 @@ module Google
2409
2521
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2410
2522
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2411
2523
  def acknowledge_orderreturn(merchant_id, return_id, orderreturns_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2412
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge', options)
2524
+ command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/acknowledge', options)
2413
2525
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeRequest::Representation
2414
2526
  command.request_object = orderreturns_acknowledge_request_object
2415
2527
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsAcknowledgeResponse::Representation
@@ -2444,7 +2556,7 @@ module Google
2444
2556
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2445
2557
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2446
2558
  def createorderreturn_orderreturn(merchant_id, orderreturns_create_order_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2447
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/createOrderReturn', options)
2559
+ command = make_simple_command(:post, '{merchantId}/orderreturns/createOrderReturn', options)
2448
2560
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnRequest::Representation
2449
2561
  command.request_object = orderreturns_create_order_return_request_object
2450
2562
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsCreateOrderReturnResponse::Representation
@@ -2479,7 +2591,7 @@ module Google
2479
2591
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2480
2592
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2481
2593
  def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, options: nil, &block)
2482
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns/{returnId}', options)
2594
+ command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
2483
2595
  command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
2484
2596
  command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
2485
2597
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2558,7 +2670,7 @@ module Google
2558
2670
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2559
2671
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2560
2672
  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)
2561
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orderreturns', options)
2673
+ command = make_simple_command(:get, '{merchantId}/orderreturns', options)
2562
2674
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
2563
2675
  command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
2564
2676
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2603,7 +2715,7 @@ module Google
2603
2715
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2604
2716
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2605
2717
  def process_orderreturn(merchant_id, return_id, orderreturns_process_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2606
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orderreturns/{returnId}/process', options)
2718
+ command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/process', options)
2607
2719
  command.request_representation = Google::Apis::ContentV2_1::OrderreturnsProcessRequest::Representation
2608
2720
  command.request_object = orderreturns_process_request_object
2609
2721
  command.response_representation = Google::Apis::ContentV2_1::OrderreturnsProcessResponse::Representation
@@ -2615,6 +2727,46 @@ module Google
2615
2727
  execute_or_queue_command(command, &block)
2616
2728
  end
2617
2729
 
2730
+ # Links a return shipping label to a return id. You can only create one return
2731
+ # label per return id. Since the label is sent to the buyer, the linked return
2732
+ # label cannot be updated or deleted. If you try to create multiple return
2733
+ # shipping labels for a single return id, every create request except the first
2734
+ # will fail.
2735
+ # @param [Fixnum] merchant_id
2736
+ # Required. The merchant the Return Shipping Label belongs to.
2737
+ # @param [String] return_id
2738
+ # Required. Provide the Google-generated merchant order return ID.
2739
+ # @param [Google::Apis::ContentV2_1::ReturnShippingLabel] return_shipping_label_object
2740
+ # @param [String] fields
2741
+ # Selector specifying which fields to include in a partial response.
2742
+ # @param [String] quota_user
2743
+ # Available to use for quota purposes for server-side applications. Can be any
2744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2745
+ # @param [Google::Apis::RequestOptions] options
2746
+ # Request-specific options
2747
+ #
2748
+ # @yield [result, err] Result & error if block supplied
2749
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnShippingLabel] parsed result object
2750
+ # @yieldparam err [StandardError] error object if request failed
2751
+ #
2752
+ # @return [Google::Apis::ContentV2_1::ReturnShippingLabel]
2753
+ #
2754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2757
+ def create_orderreturn_label(merchant_id, return_id, return_shipping_label_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2758
+ command = make_simple_command(:post, '{merchantId}/orderreturns/{returnId}/labels', options)
2759
+ command.request_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2760
+ command.request_object = return_shipping_label_object
2761
+ command.response_representation = Google::Apis::ContentV2_1::ReturnShippingLabel::Representation
2762
+ command.response_class = Google::Apis::ContentV2_1::ReturnShippingLabel
2763
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2764
+ command.params['returnId'] = return_id unless return_id.nil?
2765
+ command.query['fields'] = fields unless fields.nil?
2766
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2767
+ execute_or_queue_command(command, &block)
2768
+ end
2769
+
2618
2770
  # Marks an order as acknowledged.
2619
2771
  # @param [Fixnum] merchant_id
2620
2772
  # The ID of the account that manages the order. This cannot be a multi-client
@@ -2640,7 +2792,7 @@ module Google
2640
2792
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2641
2793
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2642
2794
  def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2643
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/acknowledge', options)
2795
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
2644
2796
  command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
2645
2797
  command.request_object = orders_acknowledge_request_object
2646
2798
  command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
@@ -2677,7 +2829,7 @@ module Google
2677
2829
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2678
2830
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2679
2831
  def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
2680
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/advance', options)
2832
+ command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
2681
2833
  command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
2682
2834
  command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
2683
2835
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2712,7 +2864,7 @@ module Google
2712
2864
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2713
2865
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2714
2866
  def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2715
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancel', options)
2867
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
2716
2868
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
2717
2869
  command.request_object = orders_cancel_request_object
2718
2870
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
@@ -2749,7 +2901,7 @@ module Google
2749
2901
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2750
2902
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2751
2903
  def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2752
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem', options)
2904
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
2753
2905
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
2754
2906
  command.request_object = orders_cancel_line_item_request_object
2755
2907
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
@@ -2786,7 +2938,7 @@ module Google
2786
2938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2787
2939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2788
2940
  def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2789
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer', options)
2941
+ command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
2790
2942
  command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
2791
2943
  command.request_object = orders_cancel_test_order_by_customer_request_object
2792
2944
  command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
@@ -2821,7 +2973,7 @@ module Google
2821
2973
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2822
2974
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2823
2975
  def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2824
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/testorders', options)
2976
+ command = make_simple_command(:post, '{merchantId}/testorders', options)
2825
2977
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
2826
2978
  command.request_object = orders_create_test_order_request_object
2827
2979
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
@@ -2857,7 +3009,7 @@ module Google
2857
3009
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2858
3010
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2859
3011
  def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2860
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/testreturn', options)
3012
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
2861
3013
  command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
2862
3014
  command.request_object = orders_create_test_return_request_object
2863
3015
  command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
@@ -2893,7 +3045,7 @@ module Google
2893
3045
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2894
3046
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2895
3047
  def get_order(merchant_id, order_id, fields: nil, quota_user: nil, options: nil, &block)
2896
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders/{orderId}', options)
3048
+ command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
2897
3049
  command.response_representation = Google::Apis::ContentV2_1::Order::Representation
2898
3050
  command.response_class = Google::Apis::ContentV2_1::Order
2899
3051
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2927,7 +3079,7 @@ module Google
2927
3079
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2928
3080
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2929
3081
  def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, options: nil, &block)
2930
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
3082
+ command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
2931
3083
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
2932
3084
  command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
2933
3085
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -2964,7 +3116,7 @@ module Google
2964
3116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2965
3117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2966
3118
  def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, options: nil, &block)
2967
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/testordertemplates/{templateName}', options)
3119
+ command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
2968
3120
  command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
2969
3121
  command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
2970
3122
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3007,7 +3159,7 @@ module Google
3007
3159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3008
3160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3009
3161
  def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3010
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
3162
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
3011
3163
  command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
3012
3164
  command.request_object = orders_in_store_refund_line_item_request_object
3013
3165
  command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
@@ -3065,7 +3217,7 @@ module Google
3065
3217
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3066
3218
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3067
3219
  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)
3068
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/orders', options)
3220
+ command = make_simple_command(:get, '{merchantId}/orders', options)
3069
3221
  command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
3070
3222
  command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
3071
3223
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3106,7 +3258,7 @@ module Google
3106
3258
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3107
3259
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3108
3260
  def refunditem_order(merchant_id, order_id, orders_refund_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3109
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refunditem', options)
3261
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refunditem', options)
3110
3262
  command.request_representation = Google::Apis::ContentV2_1::OrdersRefundItemRequest::Representation
3111
3263
  command.request_object = orders_refund_item_request_object
3112
3264
  command.response_representation = Google::Apis::ContentV2_1::OrdersRefundItemResponse::Representation
@@ -3143,7 +3295,7 @@ module Google
3143
3295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3144
3296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3145
3297
  def refundorder_order(merchant_id, order_id, orders_refund_order_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3146
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/refundorder', options)
3298
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refundorder', options)
3147
3299
  command.request_representation = Google::Apis::ContentV2_1::OrdersRefundOrderRequest::Representation
3148
3300
  command.request_object = orders_refund_order_request_object
3149
3301
  command.response_representation = Google::Apis::ContentV2_1::OrdersRefundOrderResponse::Representation
@@ -3180,7 +3332,7 @@ module Google
3180
3332
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3181
3333
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3182
3334
  def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3183
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
3335
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
3184
3336
  command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
3185
3337
  command.request_object = orders_reject_return_line_item_request_object
3186
3338
  command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
@@ -3222,7 +3374,7 @@ module Google
3222
3374
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3223
3375
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3224
3376
  def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3225
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem', options)
3377
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
3226
3378
  command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
3227
3379
  command.request_object = orders_return_refund_line_item_request_object
3228
3380
  command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
@@ -3263,7 +3415,7 @@ module Google
3263
3415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3264
3416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3265
3417
  def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3266
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata', options)
3418
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
3267
3419
  command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
3268
3420
  command.request_object = orders_set_line_item_metadata_request_object
3269
3421
  command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
@@ -3300,7 +3452,7 @@ module Google
3300
3452
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3301
3453
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3302
3454
  def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3303
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/shipLineItems', options)
3455
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
3304
3456
  command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
3305
3457
  command.request_object = orders_ship_line_items_request_object
3306
3458
  command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
@@ -3337,7 +3489,7 @@ module Google
3337
3489
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3338
3490
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3339
3491
  def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3340
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
3492
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
3341
3493
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
3342
3494
  command.request_object = orders_update_line_item_shipping_details_request_object
3343
3495
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
@@ -3374,7 +3526,7 @@ module Google
3374
3526
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3375
3527
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3376
3528
  def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3377
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
3529
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
3378
3530
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
3379
3531
  command.request_object = orders_update_merchant_order_id_request_object
3380
3532
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
@@ -3411,7 +3563,7 @@ module Google
3411
3563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3412
3564
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3413
3565
  def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3414
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/orders/{orderId}/updateShipment', options)
3566
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
3415
3567
  command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
3416
3568
  command.request_object = orders_update_shipment_request_object
3417
3569
  command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
@@ -3445,7 +3597,7 @@ module Google
3445
3597
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3446
3598
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3447
3599
  def create_ordertrackingsignal(merchant_id, order_tracking_signal_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3448
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/ordertrackingsignals', options)
3600
+ command = make_simple_command(:post, '{merchantId}/ordertrackingsignals', options)
3449
3601
  command.request_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
3450
3602
  command.request_object = order_tracking_signal_object
3451
3603
  command.response_representation = Google::Apis::ContentV2_1::OrderTrackingSignal::Representation
@@ -3476,7 +3628,7 @@ module Google
3476
3628
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3477
3629
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3478
3630
  def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3479
- command = make_simple_command(:post, 'content/v2.1/pos/batch', options)
3631
+ command = make_simple_command(:post, 'pos/batch', options)
3480
3632
  command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
3481
3633
  command.request_object = pos_custom_batch_request_object
3482
3634
  command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
@@ -3511,7 +3663,7 @@ module Google
3511
3663
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3512
3664
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3513
3665
  def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
3514
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3666
+ command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3515
3667
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3516
3668
  command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
3517
3669
  command.params['storeCode'] = store_code unless store_code.nil?
@@ -3545,7 +3697,7 @@ module Google
3545
3697
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3546
3698
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3547
3699
  def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, options: nil, &block)
3548
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3700
+ command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
3549
3701
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
3550
3702
  command.response_class = Google::Apis::ContentV2_1::PosStore
3551
3703
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3580,7 +3732,7 @@ module Google
3580
3732
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3581
3733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3582
3734
  def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3583
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options)
3735
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
3584
3736
  command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
3585
3737
  command.request_object = pos_store_object
3586
3738
  command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
@@ -3616,7 +3768,7 @@ module Google
3616
3768
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3617
3769
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3618
3770
  def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3619
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory', options)
3771
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
3620
3772
  command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
3621
3773
  command.request_object = pos_inventory_request_object
3622
3774
  command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
@@ -3651,7 +3803,7 @@ module Google
3651
3803
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3652
3804
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3653
3805
  def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, options: nil, &block)
3654
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/store', options)
3806
+ command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
3655
3807
  command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
3656
3808
  command.response_class = Google::Apis::ContentV2_1::PosListResponse
3657
3809
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3685,7 +3837,7 @@ module Google
3685
3837
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3686
3838
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3687
3839
  def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3688
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/pos/{targetMerchantId}/sale', options)
3840
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
3689
3841
  command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
3690
3842
  command.request_object = pos_sale_request_object
3691
3843
  command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
@@ -3717,7 +3869,7 @@ module Google
3717
3869
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3718
3870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3719
3871
  def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3720
- command = make_simple_command(:post, 'content/v2.1/products/batch', options)
3872
+ command = make_simple_command(:post, 'products/batch', options)
3721
3873
  command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
3722
3874
  command.request_object = products_custom_batch_request_object
3723
3875
  command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
@@ -3753,7 +3905,7 @@ module Google
3753
3905
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3754
3906
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3755
3907
  def delete_product(merchant_id, product_id, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3756
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/products/{productId}', options)
3908
+ command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
3757
3909
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
3758
3910
  command.params['productId'] = product_id unless product_id.nil?
3759
3911
  command.query['feedId'] = feed_id unless feed_id.nil?
@@ -3786,7 +3938,7 @@ module Google
3786
3938
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3787
3939
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3788
3940
  def get_product(merchant_id, product_id, fields: nil, quota_user: nil, options: nil, &block)
3789
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/products/{productId}', options)
3941
+ command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
3790
3942
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
3791
3943
  command.response_class = Google::Apis::ContentV2_1::Product
3792
3944
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3823,7 +3975,7 @@ module Google
3823
3975
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3824
3976
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3825
3977
  def insert_product(merchant_id, product_object = nil, feed_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3826
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/products', options)
3978
+ command = make_simple_command(:post, '{merchantId}/products', options)
3827
3979
  command.request_representation = Google::Apis::ContentV2_1::Product::Representation
3828
3980
  command.request_object = product_object
3829
3981
  command.response_representation = Google::Apis::ContentV2_1::Product::Representation
@@ -3863,7 +4015,7 @@ module Google
3863
4015
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3864
4016
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3865
4017
  def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3866
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/products', options)
4018
+ command = make_simple_command(:get, '{merchantId}/products', options)
3867
4019
  command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
3868
4020
  command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
3869
4021
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3874,6 +4026,51 @@ module Google
3874
4026
  execute_or_queue_command(command, &block)
3875
4027
  end
3876
4028
 
4029
+ # Updates an existing product in your Merchant Center account. Only updates
4030
+ # attributes provided in the request.
4031
+ # @param [Fixnum] merchant_id
4032
+ # The ID of the account that contains the product. This account cannot be a
4033
+ # multi-client account.
4034
+ # @param [String] product_id
4035
+ # The REST ID of the product for which to update.
4036
+ # @param [Google::Apis::ContentV2_1::Product] product_object
4037
+ # @param [String] update_mask
4038
+ # The comma-separated list of product attributes to be updated. Example: `"title,
4039
+ # salePrice"`. Attributes specified in the update mask without a value specified
4040
+ # in the body will be deleted from the product. Only top-level product
4041
+ # attributes can be updated. If not defined, product attributes with set values
4042
+ # will be updated and other attributes will stay unchanged.
4043
+ # @param [String] fields
4044
+ # Selector specifying which fields to include in a partial response.
4045
+ # @param [String] quota_user
4046
+ # Available to use for quota purposes for server-side applications. Can be any
4047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4048
+ # @param [Google::Apis::RequestOptions] options
4049
+ # Request-specific options
4050
+ #
4051
+ # @yield [result, err] Result & error if block supplied
4052
+ # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
4053
+ # @yieldparam err [StandardError] error object if request failed
4054
+ #
4055
+ # @return [Google::Apis::ContentV2_1::Product]
4056
+ #
4057
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4058
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4059
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4060
+ def update_product(merchant_id, product_id, product_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4061
+ command = make_simple_command(:patch, '{merchantId}/products/{productId}', options)
4062
+ command.request_representation = Google::Apis::ContentV2_1::Product::Representation
4063
+ command.request_object = product_object
4064
+ command.response_representation = Google::Apis::ContentV2_1::Product::Representation
4065
+ command.response_class = Google::Apis::ContentV2_1::Product
4066
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4067
+ command.params['productId'] = product_id unless product_id.nil?
4068
+ command.query['updateMask'] = update_mask unless update_mask.nil?
4069
+ command.query['fields'] = fields unless fields.nil?
4070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4071
+ execute_or_queue_command(command, &block)
4072
+ end
4073
+
3877
4074
  # Gets the statuses of multiple products in a single request.
3878
4075
  # @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
3879
4076
  # @param [String] fields
@@ -3894,7 +4091,7 @@ module Google
3894
4091
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3895
4092
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3896
4093
  def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3897
- command = make_simple_command(:post, 'content/v2.1/productstatuses/batch', options)
4094
+ command = make_simple_command(:post, 'productstatuses/batch', options)
3898
4095
  command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
3899
4096
  command.request_object = productstatuses_custom_batch_request_object
3900
4097
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
@@ -3931,7 +4128,7 @@ module Google
3931
4128
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3932
4129
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3933
4130
  def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, options: nil, &block)
3934
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses/{productId}', options)
4131
+ command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
3935
4132
  command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
3936
4133
  command.response_class = Google::Apis::ContentV2_1::ProductStatus
3937
4134
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -3972,7 +4169,7 @@ module Google
3972
4169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3973
4170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3974
4171
  def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3975
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses', options)
4172
+ command = make_simple_command(:get, '{merchantId}/productstatuses', options)
3976
4173
  command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
3977
4174
  command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
3978
4175
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4030,7 +4227,7 @@ module Google
4030
4227
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4031
4228
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4032
4229
  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)
4033
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/productstatuses/{productId}/repricingreports', options)
4230
+ command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}/repricingreports', options)
4034
4231
  command.response_representation = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse::Representation
4035
4232
  command.response_class = Google::Apis::ContentV2_1::ListRepricingProductReportsResponse
4036
4233
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4066,7 +4263,7 @@ module Google
4066
4263
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4067
4264
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4068
4265
  def get_pubsubnotificationsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4069
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options)
4266
+ command = make_simple_command(:get, '{merchantId}/pubsubnotificationsettings', options)
4070
4267
  command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
4071
4268
  command.response_class = Google::Apis::ContentV2_1::PubsubNotificationSettings
4072
4269
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4098,7 +4295,7 @@ module Google
4098
4295
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4099
4296
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4100
4297
  def update_pubsubnotificationsetting(merchant_id, pubsub_notification_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4101
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/pubsubnotificationsettings', options)
4298
+ command = make_simple_command(:put, '{merchantId}/pubsubnotificationsettings', options)
4102
4299
  command.request_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
4103
4300
  command.request_object = pubsub_notification_settings_object
4104
4301
  command.response_representation = Google::Apis::ContentV2_1::PubsubNotificationSettings::Representation
@@ -4130,7 +4327,7 @@ module Google
4130
4327
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4131
4328
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4132
4329
  def custombatch_regionalinventory(regionalinventory_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4133
- command = make_simple_command(:post, 'content/v2.1/regionalinventory/batch', options)
4330
+ command = make_simple_command(:post, 'regionalinventory/batch', options)
4134
4331
  command.request_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchRequest::Representation
4135
4332
  command.request_object = regionalinventory_custom_batch_request_object
4136
4333
  command.response_representation = Google::Apis::ContentV2_1::RegionalinventoryCustomBatchResponse::Representation
@@ -4167,7 +4364,7 @@ module Google
4167
4364
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4168
4365
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4169
4366
  def insert_regionalinventory(merchant_id, product_id, regional_inventory_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4170
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/products/{productId}/regionalinventory', options)
4367
+ command = make_simple_command(:post, '{merchantId}/products/{productId}/regionalinventory', options)
4171
4368
  command.request_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
4172
4369
  command.request_object = regional_inventory_object
4173
4370
  command.response_representation = Google::Apis::ContentV2_1::RegionalInventory::Representation
@@ -4203,7 +4400,7 @@ module Google
4203
4400
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4204
4401
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4205
4402
  def create_region(merchant_id, region_object = nil, region_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4206
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/regions', options)
4403
+ command = make_simple_command(:post, '{merchantId}/regions', options)
4207
4404
  command.request_representation = Google::Apis::ContentV2_1::Region::Representation
4208
4405
  command.request_object = region_object
4209
4406
  command.response_representation = Google::Apis::ContentV2_1::Region::Representation
@@ -4238,7 +4435,7 @@ module Google
4238
4435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4239
4436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4240
4437
  def delete_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
4241
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/regions/{regionId}', options)
4438
+ command = make_simple_command(:delete, '{merchantId}/regions/{regionId}', options)
4242
4439
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4243
4440
  command.params['regionId'] = region_id unless region_id.nil?
4244
4441
  command.query['fields'] = fields unless fields.nil?
@@ -4269,7 +4466,7 @@ module Google
4269
4466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4270
4467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4271
4468
  def get_region(merchant_id, region_id, fields: nil, quota_user: nil, options: nil, &block)
4272
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/regions/{regionId}', options)
4469
+ command = make_simple_command(:get, '{merchantId}/regions/{regionId}', options)
4273
4470
  command.response_representation = Google::Apis::ContentV2_1::Region::Representation
4274
4471
  command.response_class = Google::Apis::ContentV2_1::Region
4275
4472
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4308,7 +4505,7 @@ module Google
4308
4505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4309
4506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4310
4507
  def list_regions(merchant_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4311
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/regions', options)
4508
+ command = make_simple_command(:get, '{merchantId}/regions', options)
4312
4509
  command.response_representation = Google::Apis::ContentV2_1::ListRegionsResponse::Representation
4313
4510
  command.response_class = Google::Apis::ContentV2_1::ListRegionsResponse
4314
4511
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4326,7 +4523,8 @@ module Google
4326
4523
  # Required. The id of the region to update.
4327
4524
  # @param [Google::Apis::ContentV2_1::Region] region_object
4328
4525
  # @param [String] update_mask
4329
- # Optional. The field mask indicating the fields to update.
4526
+ # Optional. The comma-separated field mask indicating the fields to update.
4527
+ # Example: `"displayName,postalCodeArea.regionCode"`.
4330
4528
  # @param [String] fields
4331
4529
  # Selector specifying which fields to include in a partial response.
4332
4530
  # @param [String] quota_user
@@ -4345,7 +4543,7 @@ module Google
4345
4543
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4346
4544
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4347
4545
  def patch_region(merchant_id, region_id, region_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
4348
- command = make_simple_command(:patch, 'content/v2.1/{merchantId}/regions/{regionId}', options)
4546
+ command = make_simple_command(:patch, '{merchantId}/regions/{regionId}', options)
4349
4547
  command.request_representation = Google::Apis::ContentV2_1::Region::Representation
4350
4548
  command.request_object = region_object
4351
4549
  command.response_representation = Google::Apis::ContentV2_1::Region::Representation
@@ -4382,7 +4580,7 @@ module Google
4382
4580
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4383
4581
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4384
4582
  def search_report(merchant_id, search_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4385
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/reports/search', options)
4583
+ command = make_simple_command(:post, '{merchantId}/reports/search', options)
4386
4584
  command.request_representation = Google::Apis::ContentV2_1::SearchRequest::Representation
4387
4585
  command.request_object = search_request_object
4388
4586
  command.response_representation = Google::Apis::ContentV2_1::SearchResponse::Representation
@@ -4417,7 +4615,7 @@ module Google
4417
4615
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4418
4616
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4419
4617
  def create_repricingrule(merchant_id, repricing_rule_object = nil, rule_id: nil, fields: nil, quota_user: nil, options: nil, &block)
4420
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/repricingrules', options)
4618
+ command = make_simple_command(:post, '{merchantId}/repricingrules', options)
4421
4619
  command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
4422
4620
  command.request_object = repricing_rule_object
4423
4621
  command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
@@ -4452,7 +4650,7 @@ module Google
4452
4650
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4453
4651
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4454
4652
  def delete_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
4455
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
4653
+ command = make_simple_command(:delete, '{merchantId}/repricingrules/{ruleId}', options)
4456
4654
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4457
4655
  command.params['ruleId'] = rule_id unless rule_id.nil?
4458
4656
  command.query['fields'] = fields unless fields.nil?
@@ -4483,7 +4681,7 @@ module Google
4483
4681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4484
4682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4485
4683
  def get_repricingrule(merchant_id, rule_id, fields: nil, quota_user: nil, options: nil, &block)
4486
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
4684
+ command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}', options)
4487
4685
  command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
4488
4686
  command.response_class = Google::Apis::ContentV2_1::RepricingRule
4489
4687
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4529,7 +4727,7 @@ module Google
4529
4727
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4530
4728
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4531
4729
  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)
4532
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules', options)
4730
+ command = make_simple_command(:get, '{merchantId}/repricingrules', options)
4533
4731
  command.response_representation = Google::Apis::ContentV2_1::ListRepricingRulesResponse::Representation
4534
4732
  command.response_class = Google::Apis::ContentV2_1::ListRepricingRulesResponse
4535
4733
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4570,7 +4768,7 @@ module Google
4570
4768
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4571
4769
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4572
4770
  def patch_repricingrule(merchant_id, rule_id, repricing_rule_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4573
- command = make_simple_command(:patch, 'content/v2.1/{merchantId}/repricingrules/{ruleId}', options)
4771
+ command = make_simple_command(:patch, '{merchantId}/repricingrules/{ruleId}', options)
4574
4772
  command.request_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
4575
4773
  command.request_object = repricing_rule_object
4576
4774
  command.response_representation = Google::Apis::ContentV2_1::RepricingRule::Representation
@@ -4621,7 +4819,7 @@ module Google
4621
4819
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4622
4820
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4623
4821
  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)
4624
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/repricingrules/{ruleId}/repricingreports', options)
4822
+ command = make_simple_command(:get, '{merchantId}/repricingrules/{ruleId}/repricingreports', options)
4625
4823
  command.response_representation = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse::Representation
4626
4824
  command.response_class = Google::Apis::ContentV2_1::ListRepricingRuleReportsResponse
4627
4825
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4655,7 +4853,7 @@ module Google
4655
4853
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4656
4854
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4657
4855
  def custombatch_returnaddress(returnaddress_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4658
- command = make_simple_command(:post, 'content/v2.1/returnaddress/batch', options)
4856
+ command = make_simple_command(:post, 'returnaddress/batch', options)
4659
4857
  command.request_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchRequest::Representation
4660
4858
  command.request_object = returnaddress_custom_batch_request_object
4661
4859
  command.response_representation = Google::Apis::ContentV2_1::ReturnaddressCustomBatchResponse::Representation
@@ -4688,7 +4886,7 @@ module Google
4688
4886
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4689
4887
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4690
4888
  def delete_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
4691
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options)
4889
+ command = make_simple_command(:delete, '{merchantId}/returnaddress/{returnAddressId}', options)
4692
4890
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4693
4891
  command.params['returnAddressId'] = return_address_id unless return_address_id.nil?
4694
4892
  command.query['fields'] = fields unless fields.nil?
@@ -4719,7 +4917,7 @@ module Google
4719
4917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4720
4918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4721
4919
  def get_returnaddress(merchant_id, return_address_id, fields: nil, quota_user: nil, options: nil, &block)
4722
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress/{returnAddressId}', options)
4920
+ command = make_simple_command(:get, '{merchantId}/returnaddress/{returnAddressId}', options)
4723
4921
  command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
4724
4922
  command.response_class = Google::Apis::ContentV2_1::ReturnAddress
4725
4923
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4751,7 +4949,7 @@ module Google
4751
4949
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4752
4950
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4753
4951
  def insert_returnaddress(merchant_id, return_address_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4754
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnaddress', options)
4952
+ command = make_simple_command(:post, '{merchantId}/returnaddress', options)
4755
4953
  command.request_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
4756
4954
  command.request_object = return_address_object
4757
4955
  command.response_representation = Google::Apis::ContentV2_1::ReturnAddress::Representation
@@ -4790,7 +4988,7 @@ module Google
4790
4988
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4791
4989
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4792
4990
  def list_returnaddresses(merchant_id, country: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
4793
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnaddress', options)
4991
+ command = make_simple_command(:get, '{merchantId}/returnaddress', options)
4794
4992
  command.response_representation = Google::Apis::ContentV2_1::ReturnaddressListResponse::Representation
4795
4993
  command.response_class = Google::Apis::ContentV2_1::ReturnaddressListResponse
4796
4994
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4822,7 +5020,7 @@ module Google
4822
5020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4823
5021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4824
5022
  def custombatch_returnpolicy(returnpolicy_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4825
- command = make_simple_command(:post, 'content/v2.1/returnpolicy/batch', options)
5023
+ command = make_simple_command(:post, 'returnpolicy/batch', options)
4826
5024
  command.request_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchRequest::Representation
4827
5025
  command.request_object = returnpolicy_custom_batch_request_object
4828
5026
  command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyCustomBatchResponse::Representation
@@ -4855,7 +5053,7 @@ module Google
4855
5053
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4856
5054
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4857
5055
  def delete_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4858
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options)
5056
+ command = make_simple_command(:delete, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4859
5057
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
4860
5058
  command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
4861
5059
  command.query['fields'] = fields unless fields.nil?
@@ -4886,7 +5084,7 @@ module Google
4886
5084
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4887
5085
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4888
5086
  def get_returnpolicy(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
4889
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}', options)
5087
+ command = make_simple_command(:get, '{merchantId}/returnpolicy/{returnPolicyId}', options)
4890
5088
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
4891
5089
  command.response_class = Google::Apis::ContentV2_1::ReturnPolicy
4892
5090
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4918,7 +5116,7 @@ module Google
4918
5116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4919
5117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4920
5118
  def insert_returnpolicy(merchant_id, return_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4921
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicy', options)
5119
+ command = make_simple_command(:post, '{merchantId}/returnpolicy', options)
4922
5120
  command.request_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
4923
5121
  command.request_object = return_policy_object
4924
5122
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicy::Representation
@@ -4950,7 +5148,7 @@ module Google
4950
5148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4951
5149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4952
5150
  def list_returnpolicies(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
4953
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicy', options)
5151
+ command = make_simple_command(:get, '{merchantId}/returnpolicy', options)
4954
5152
  command.response_representation = Google::Apis::ContentV2_1::ReturnpolicyListResponse::Representation
4955
5153
  command.response_class = Google::Apis::ContentV2_1::ReturnpolicyListResponse
4956
5154
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -4982,7 +5180,7 @@ module Google
4982
5180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4983
5181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
4984
5182
  def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4985
- command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicyonline', options)
5183
+ command = make_simple_command(:post, '{merchantId}/returnpolicyonline', options)
4986
5184
  command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
4987
5185
  command.request_object = return_policy_online_object
4988
5186
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
@@ -5017,7 +5215,7 @@ module Google
5017
5215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5018
5216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5019
5217
  def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
5020
- command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5218
+ command = make_simple_command(:delete, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5021
5219
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
5022
5220
  command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5023
5221
  command.query['fields'] = fields unless fields.nil?
@@ -5049,7 +5247,7 @@ module Google
5049
5247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5050
5248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5051
5249
  def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
5052
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5250
+ command = make_simple_command(:get, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5053
5251
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5054
5252
  command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
5055
5253
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5081,7 +5279,7 @@ module Google
5081
5279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5082
5280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5083
5281
  def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5084
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline', options)
5282
+ command = make_simple_command(:get, '{merchantId}/returnpolicyonline', options)
5085
5283
  command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation
5086
5284
  command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
5087
5285
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5115,7 +5313,7 @@ module Google
5115
5313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5116
5314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5117
5315
  def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5118
- command = make_simple_command(:patch, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5316
+ command = make_simple_command(:patch, '{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5119
5317
  command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5120
5318
  command.request_object = return_policy_online_object
5121
5319
  command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
@@ -5150,7 +5348,7 @@ module Google
5150
5348
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5151
5349
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5152
5350
  def get_settlementreport(merchant_id, settlement_id, fields: nil, quota_user: nil, options: nil, &block)
5153
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}', options)
5351
+ command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}', options)
5154
5352
  command.response_representation = Google::Apis::ContentV2_1::SettlementReport::Representation
5155
5353
  command.response_class = Google::Apis::ContentV2_1::SettlementReport
5156
5354
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5193,7 +5391,7 @@ module Google
5193
5391
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5194
5392
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5195
5393
  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)
5196
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports', options)
5394
+ command = make_simple_command(:get, '{merchantId}/settlementreports', options)
5197
5395
  command.response_representation = Google::Apis::ContentV2_1::SettlementreportsListResponse::Representation
5198
5396
  command.response_class = Google::Apis::ContentV2_1::SettlementreportsListResponse
5199
5397
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5238,7 +5436,7 @@ module Google
5238
5436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5239
5437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5240
5438
  def list_settlementtransactions(merchant_id, settlement_id, max_results: nil, page_token: nil, transaction_ids: nil, fields: nil, quota_user: nil, options: nil, &block)
5241
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions', options)
5439
+ command = make_simple_command(:get, '{merchantId}/settlementreports/{settlementId}/transactions', options)
5242
5440
  command.response_representation = Google::Apis::ContentV2_1::SettlementtransactionsListResponse::Representation
5243
5441
  command.response_class = Google::Apis::ContentV2_1::SettlementtransactionsListResponse
5244
5442
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5272,7 +5470,7 @@ module Google
5272
5470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5273
5471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5274
5472
  def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5275
- command = make_simple_command(:post, 'content/v2.1/shippingsettings/batch', options)
5473
+ command = make_simple_command(:post, 'shippingsettings/batch', options)
5276
5474
  command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
5277
5475
  command.request_object = shippingsettings_custom_batch_request_object
5278
5476
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
@@ -5307,7 +5505,7 @@ module Google
5307
5505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5308
5506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5309
5507
  def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, options: nil, &block)
5310
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options)
5508
+ command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
5311
5509
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
5312
5510
  command.response_class = Google::Apis::ContentV2_1::ShippingSettings
5313
5511
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5338,7 +5536,7 @@ module Google
5338
5536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5339
5537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5340
5538
  def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5341
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedCarriers', options)
5539
+ command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
5342
5540
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
5343
5541
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
5344
5542
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5368,7 +5566,7 @@ module Google
5368
5566
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5369
5567
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5370
5568
  def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5371
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedHolidays', options)
5569
+ command = make_simple_command(:get, '{merchantId}/supportedHolidays', options)
5372
5570
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
5373
5571
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
5374
5572
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5398,7 +5596,7 @@ module Google
5398
5596
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5399
5597
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5400
5598
  def getsupportedpickupservices_shippingsetting(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5401
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/supportedPickupServices', options)
5599
+ command = make_simple_command(:get, '{merchantId}/supportedPickupServices', options)
5402
5600
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse::Representation
5403
5601
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedPickupServicesResponse
5404
5602
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5434,7 +5632,7 @@ module Google
5434
5632
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5435
5633
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5436
5634
  def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5437
- command = make_simple_command(:get, 'content/v2.1/{merchantId}/shippingsettings', options)
5635
+ command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
5438
5636
  command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
5439
5637
  command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
5440
5638
  command.params['merchantId'] = merchant_id unless merchant_id.nil?
@@ -5472,7 +5670,7 @@ module Google
5472
5670
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5473
5671
  # @raise [Google::Apis::AuthorizationError] Authorization is required
5474
5672
  def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5475
- command = make_simple_command(:put, 'content/v2.1/{merchantId}/shippingsettings/{accountId}', options)
5673
+ command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
5476
5674
  command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
5477
5675
  command.request_object = shipping_settings_object
5478
5676
  command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation