google-apis-content_v2_1 0.2.0 → 0.7.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.2.0"
19
+ GEM_VERSION = "0.7.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210120"
25
+ REVISION = "20210303"
26
26
  end
27
27
  end
28
28
  end
@@ -46,6 +46,12 @@ module Google
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
+ class AccountCredentials
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
49
55
  class AccountCustomerService
50
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
57
 
@@ -280,6 +286,12 @@ module Google
280
286
  include Google::Apis::Core::JsonObjectSupport
281
287
  end
282
288
 
289
+ class BuyOnGoogleProgramStatus
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
283
295
  class CarrierRate
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -712,6 +724,12 @@ module Google
712
724
  include Google::Apis::Core::JsonObjectSupport
713
725
  end
714
726
 
727
+ class ListReturnPolicyOnlineResponse
728
+ class Representation < Google::Apis::Core::JsonRepresentation; end
729
+
730
+ include Google::Apis::Core::JsonObjectSupport
731
+ end
732
+
715
733
  class LocalInventory
716
734
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
735
 
@@ -772,6 +790,12 @@ module Google
772
790
  include Google::Apis::Core::JsonObjectSupport
773
791
  end
774
792
 
793
+ class Metrics
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
775
799
  class MinimumOrderValueTable
776
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
777
801
 
@@ -790,6 +814,12 @@ module Google
790
814
  include Google::Apis::Core::JsonObjectSupport
791
815
  end
792
816
 
817
+ class OnboardBuyOnGoogleProgramRequest
818
+ class Representation < Google::Apis::Core::JsonRepresentation; end
819
+
820
+ include Google::Apis::Core::JsonObjectSupport
821
+ end
822
+
793
823
  class Order
794
824
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
825
 
@@ -1678,6 +1708,12 @@ module Google
1678
1708
  include Google::Apis::Core::JsonObjectSupport
1679
1709
  end
1680
1710
 
1711
+ class ReportRow
1712
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1713
+
1714
+ include Google::Apis::Core::JsonObjectSupport
1715
+ end
1716
+
1681
1717
  class RepricingProductReport
1682
1718
  class Representation < Google::Apis::Core::JsonRepresentation; end
1683
1719
 
@@ -1774,6 +1810,36 @@ module Google
1774
1810
  include Google::Apis::Core::JsonObjectSupport
1775
1811
  end
1776
1812
 
1813
+ class ReturnPolicyOnline
1814
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1815
+
1816
+ include Google::Apis::Core::JsonObjectSupport
1817
+ end
1818
+
1819
+ class ReturnPolicyOnlinePolicy
1820
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1821
+
1822
+ include Google::Apis::Core::JsonObjectSupport
1823
+ end
1824
+
1825
+ class ReturnPolicyOnlineRestockingFee
1826
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1827
+
1828
+ include Google::Apis::Core::JsonObjectSupport
1829
+ end
1830
+
1831
+ class ReturnPolicyOnlineReturnReasonCategoryInfo
1832
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1833
+
1834
+ include Google::Apis::Core::JsonObjectSupport
1835
+ end
1836
+
1837
+ class ReturnPolicyOnlineReturnShippingFee
1838
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1839
+
1840
+ include Google::Apis::Core::JsonObjectSupport
1841
+ end
1842
+
1777
1843
  class ReturnPolicyPolicy
1778
1844
  class Representation < Google::Apis::Core::JsonRepresentation; end
1779
1845
 
@@ -1864,6 +1930,24 @@ module Google
1864
1930
  include Google::Apis::Core::JsonObjectSupport
1865
1931
  end
1866
1932
 
1933
+ class SearchRequest
1934
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1935
+
1936
+ include Google::Apis::Core::JsonObjectSupport
1937
+ end
1938
+
1939
+ class SearchResponse
1940
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1941
+
1942
+ include Google::Apis::Core::JsonObjectSupport
1943
+ end
1944
+
1945
+ class Segments
1946
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1947
+
1948
+ include Google::Apis::Core::JsonObjectSupport
1949
+ end
1950
+
1867
1951
  class Service
1868
1952
  class Representation < Google::Apis::Core::JsonRepresentation; end
1869
1953
 
@@ -2147,6 +2231,15 @@ module Google
2147
2231
  end
2148
2232
  end
2149
2233
 
2234
+ class AccountCredentials
2235
+ # @private
2236
+ class Representation < Google::Apis::Core::JsonRepresentation
2237
+ property :access_token, as: 'accessToken'
2238
+ property :expires_in, :numeric_string => true, as: 'expiresIn'
2239
+ property :purpose, as: 'purpose'
2240
+ end
2241
+ end
2242
+
2150
2243
  class AccountCustomerService
2151
2244
  # @private
2152
2245
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2538,6 +2631,15 @@ module Google
2538
2631
  end
2539
2632
  end
2540
2633
 
2634
+ class BuyOnGoogleProgramStatus
2635
+ # @private
2636
+ class Representation < Google::Apis::Core::JsonRepresentation
2637
+ property :customer_service_pending_email, as: 'customerServicePendingEmail'
2638
+ property :customer_service_verified_email, as: 'customerServiceVerifiedEmail'
2639
+ property :participation_stage, as: 'participationStage'
2640
+ end
2641
+ end
2642
+
2541
2643
  class CarrierRate
2542
2644
  # @private
2543
2645
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3289,6 +3391,14 @@ module Google
3289
3391
  end
3290
3392
  end
3291
3393
 
3394
+ class ListReturnPolicyOnlineResponse
3395
+ # @private
3396
+ class Representation < Google::Apis::Core::JsonRepresentation
3397
+ collection :return_policies, as: 'returnPolicies', class: Google::Apis::ContentV2_1::ReturnPolicyOnline, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
3398
+
3399
+ end
3400
+ end
3401
+
3292
3402
  class LocalInventory
3293
3403
  # @private
3294
3404
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3408,6 +3518,15 @@ module Google
3408
3518
  end
3409
3519
  end
3410
3520
 
3521
+ class Metrics
3522
+ # @private
3523
+ class Representation < Google::Apis::Core::JsonRepresentation
3524
+ property :clicks, :numeric_string => true, as: 'clicks'
3525
+ property :ctr, as: 'ctr'
3526
+ property :impressions, :numeric_string => true, as: 'impressions'
3527
+ end
3528
+ end
3529
+
3411
3530
  class MinimumOrderValueTable
3412
3531
  # @private
3413
3532
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3435,6 +3554,13 @@ module Google
3435
3554
  end
3436
3555
  end
3437
3556
 
3557
+ class OnboardBuyOnGoogleProgramRequest
3558
+ # @private
3559
+ class Representation < Google::Apis::Core::JsonRepresentation
3560
+ property :customer_service_email, as: 'customerServiceEmail'
3561
+ end
3562
+ end
3563
+
3438
3564
  class Order
3439
3565
  # @private
3440
3566
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5154,6 +5280,16 @@ module Google
5154
5280
  end
5155
5281
  end
5156
5282
 
5283
+ class ReportRow
5284
+ # @private
5285
+ class Representation < Google::Apis::Core::JsonRepresentation
5286
+ property :metrics, as: 'metrics', class: Google::Apis::ContentV2_1::Metrics, decorator: Google::Apis::ContentV2_1::Metrics::Representation
5287
+
5288
+ property :segments, as: 'segments', class: Google::Apis::ContentV2_1::Segments, decorator: Google::Apis::ContentV2_1::Segments::Representation
5289
+
5290
+ end
5291
+ end
5292
+
5157
5293
  class RepricingProductReport
5158
5294
  # @private
5159
5295
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5338,11 +5474,68 @@ module Google
5338
5474
  property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyPolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyPolicy::Representation
5339
5475
 
5340
5476
  property :return_policy_id, as: 'returnPolicyId'
5477
+ property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
5478
+
5341
5479
  collection :seasonal_overrides, as: 'seasonalOverrides', class: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride, decorator: Google::Apis::ContentV2_1::ReturnPolicySeasonalOverride::Representation
5342
5480
 
5343
5481
  end
5344
5482
  end
5345
5483
 
5484
+ class ReturnPolicyOnline
5485
+ # @private
5486
+ class Representation < Google::Apis::Core::JsonRepresentation
5487
+ collection :countries, as: 'countries'
5488
+ collection :item_conditions, as: 'itemConditions'
5489
+ property :label, as: 'label'
5490
+ property :name, as: 'name'
5491
+ property :policy, as: 'policy', class: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlinePolicy::Representation
5492
+
5493
+ property :restocking_fee, as: 'restockingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineRestockingFee::Representation
5494
+
5495
+ collection :return_methods, as: 'returnMethods'
5496
+ property :return_policy_id, as: 'returnPolicyId'
5497
+ property :return_policy_uri, as: 'returnPolicyUri'
5498
+ collection :return_reason_category_info, as: 'returnReasonCategoryInfo', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnReasonCategoryInfo::Representation
5499
+
5500
+ end
5501
+ end
5502
+
5503
+ class ReturnPolicyOnlinePolicy
5504
+ # @private
5505
+ class Representation < Google::Apis::Core::JsonRepresentation
5506
+ property :days, :numeric_string => true, as: 'days'
5507
+ property :type, as: 'type'
5508
+ end
5509
+ end
5510
+
5511
+ class ReturnPolicyOnlineRestockingFee
5512
+ # @private
5513
+ class Representation < Google::Apis::Core::JsonRepresentation
5514
+ property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5515
+
5516
+ property :micro_percent, as: 'microPercent'
5517
+ end
5518
+ end
5519
+
5520
+ class ReturnPolicyOnlineReturnReasonCategoryInfo
5521
+ # @private
5522
+ class Representation < Google::Apis::Core::JsonRepresentation
5523
+ property :return_label_source, as: 'returnLabelSource'
5524
+ property :return_reason_category, as: 'returnReasonCategory'
5525
+ property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee, decorator: Google::Apis::ContentV2_1::ReturnPolicyOnlineReturnShippingFee::Representation
5526
+
5527
+ end
5528
+ end
5529
+
5530
+ class ReturnPolicyOnlineReturnShippingFee
5531
+ # @private
5532
+ class Representation < Google::Apis::Core::JsonRepresentation
5533
+ property :fixed_fee, as: 'fixedFee', class: Google::Apis::ContentV2_1::PriceAmount, decorator: Google::Apis::ContentV2_1::PriceAmount::Representation
5534
+
5535
+ property :type, as: 'type'
5536
+ end
5537
+ end
5538
+
5346
5539
  class ReturnPolicyPolicy
5347
5540
  # @private
5348
5541
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5501,6 +5694,34 @@ module Google
5501
5694
  end
5502
5695
  end
5503
5696
 
5697
+ class SearchRequest
5698
+ # @private
5699
+ class Representation < Google::Apis::Core::JsonRepresentation
5700
+ property :page_size, as: 'pageSize'
5701
+ property :page_token, as: 'pageToken'
5702
+ property :query, as: 'query'
5703
+ end
5704
+ end
5705
+
5706
+ class SearchResponse
5707
+ # @private
5708
+ class Representation < Google::Apis::Core::JsonRepresentation
5709
+ property :next_page_token, as: 'nextPageToken'
5710
+ collection :results, as: 'results', class: Google::Apis::ContentV2_1::ReportRow, decorator: Google::Apis::ContentV2_1::ReportRow::Representation
5711
+
5712
+ end
5713
+ end
5714
+
5715
+ class Segments
5716
+ # @private
5717
+ class Representation < Google::Apis::Core::JsonRepresentation
5718
+ property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5719
+
5720
+ property :offer_id, as: 'offerId'
5721
+ property :program, as: 'program'
5722
+ end
5723
+ end
5724
+
5504
5725
  class Service
5505
5726
  # @private
5506
5727
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -453,6 +453,40 @@ module Google
453
453
  execute_or_queue_command(command, &block)
454
454
  end
455
455
 
456
+ # Uploads credentials for the Merchant Center account. If credentials already
457
+ # exist for this Merchant Center account and purpose, this method updates them.
458
+ # @param [Fixnum] account_id
459
+ # Required. The merchant id of the account these credentials belong to.
460
+ # @param [Google::Apis::ContentV2_1::AccountCredentials] account_credentials_object
461
+ # @param [String] fields
462
+ # Selector specifying which fields to include in a partial response.
463
+ # @param [String] quota_user
464
+ # Available to use for quota purposes for server-side applications. Can be any
465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
466
+ # @param [Google::Apis::RequestOptions] options
467
+ # Request-specific options
468
+ #
469
+ # @yield [result, err] Result & error if block supplied
470
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountCredentials] parsed result object
471
+ # @yieldparam err [StandardError] error object if request failed
472
+ #
473
+ # @return [Google::Apis::ContentV2_1::AccountCredentials]
474
+ #
475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
478
+ def create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil, &block)
479
+ command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/credentials', options)
480
+ command.request_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
481
+ command.request_object = account_credentials_object
482
+ command.response_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
483
+ command.response_class = Google::Apis::ContentV2_1::AccountCredentials
484
+ command.params['accountId'] = account_id unless account_id.nil?
485
+ command.query['fields'] = fields unless fields.nil?
486
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
487
+ execute_or_queue_command(command, &block)
488
+ end
489
+
456
490
  # Creates a new label, not assigned to any account.
457
491
  # @param [Fixnum] account_id
458
492
  # Required. The id of the account this label belongs to.
@@ -979,6 +1013,80 @@ module Google
979
1013
  execute_or_queue_command(command, &block)
980
1014
  end
981
1015
 
1016
+ # Retrieves a status of BoG program for your Merchant Center account.
1017
+ # @param [Fixnum] merchant_id
1018
+ # Required. The ID of the account.
1019
+ # @param [String] region_code
1020
+ # The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1021
+ # ISO_3166-1_alpha-2). Currently only US is available.
1022
+ # @param [String] fields
1023
+ # Selector specifying which fields to include in a partial response.
1024
+ # @param [String] quota_user
1025
+ # Available to use for quota purposes for server-side applications. Can be any
1026
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1027
+ # @param [Google::Apis::RequestOptions] options
1028
+ # Request-specific options
1029
+ #
1030
+ # @yield [result, err] Result & error if block supplied
1031
+ # @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
1032
+ # @yieldparam err [StandardError] error object if request failed
1033
+ #
1034
+ # @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
1035
+ #
1036
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1037
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1038
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1039
+ def get_buyongoogleprogram(merchant_id, region_code, fields: nil, quota_user: nil, options: nil, &block)
1040
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}', options)
1041
+ command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1042
+ command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1043
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1044
+ command.params['regionCode'] = region_code unless region_code.nil?
1045
+ command.query['fields'] = fields unless fields.nil?
1046
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1047
+ execute_or_queue_command(command, &block)
1048
+ end
1049
+
1050
+ # Onboards BoG in your Merchant Center account. By using this method, you agree
1051
+ # to the [Terms of Service](https://merchants.google.com/mc/termsofservice/
1052
+ # transactions/US/latest). Calling this method is only possible if the
1053
+ # authenticated account is the same as the merchant id in the request. Calling
1054
+ # this method multiple times will only accept Terms of Service if the latest
1055
+ # version is not currently signed.
1056
+ # @param [Fixnum] merchant_id
1057
+ # Required. The ID of the account.
1058
+ # @param [String] region_code
1059
+ # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1060
+ # ISO_3166-1_alpha-2). Currently only US is available.
1061
+ # @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
1062
+ # @param [String] fields
1063
+ # Selector specifying which fields to include in a partial response.
1064
+ # @param [String] quota_user
1065
+ # Available to use for quota purposes for server-side applications. Can be any
1066
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1067
+ # @param [Google::Apis::RequestOptions] options
1068
+ # Request-specific options
1069
+ #
1070
+ # @yield [result, err] Result & error if block supplied
1071
+ # @yieldparam result [NilClass] No result returned for this method
1072
+ # @yieldparam err [StandardError] error object if request failed
1073
+ #
1074
+ # @return [void]
1075
+ #
1076
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1077
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1078
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1079
+ def onboard_buyongoogleprogram_buy_on_google_program(merchant_id, region_code, onboard_buy_on_google_program_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1080
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/buyongoogleprograms/{regionCode}/onboard', options)
1081
+ command.request_representation = Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest::Representation
1082
+ command.request_object = onboard_buy_on_google_program_request_object
1083
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1084
+ command.params['regionCode'] = region_code unless region_code.nil?
1085
+ command.query['fields'] = fields unless fields.nil?
1086
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1087
+ execute_or_queue_command(command, &block)
1088
+ end
1089
+
982
1090
  # Uploads a collection to your Merchant Center account. If a collection with the
983
1091
  # same collectionId already exists, this method updates that entry. In each
984
1092
  # update, the collection is completely replaced by the fields in the body of the
@@ -4250,6 +4358,41 @@ module Google
4250
4358
  execute_or_queue_command(command, &block)
4251
4359
  end
4252
4360
 
4361
+ # Retrieves merchant performance mertrics matching the search query and
4362
+ # optionally segmented by selected dimensions.
4363
+ # @param [Fixnum] merchant_id
4364
+ # Required. Id of the merchant making the call. Must be a standalone account or
4365
+ # an MCA subaccount.
4366
+ # @param [Google::Apis::ContentV2_1::SearchRequest] search_request_object
4367
+ # @param [String] fields
4368
+ # Selector specifying which fields to include in a partial response.
4369
+ # @param [String] quota_user
4370
+ # Available to use for quota purposes for server-side applications. Can be any
4371
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4372
+ # @param [Google::Apis::RequestOptions] options
4373
+ # Request-specific options
4374
+ #
4375
+ # @yield [result, err] Result & error if block supplied
4376
+ # @yieldparam result [Google::Apis::ContentV2_1::SearchResponse] parsed result object
4377
+ # @yieldparam err [StandardError] error object if request failed
4378
+ #
4379
+ # @return [Google::Apis::ContentV2_1::SearchResponse]
4380
+ #
4381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4384
+ 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)
4386
+ command.request_representation = Google::Apis::ContentV2_1::SearchRequest::Representation
4387
+ command.request_object = search_request_object
4388
+ command.response_representation = Google::Apis::ContentV2_1::SearchResponse::Representation
4389
+ command.response_class = Google::Apis::ContentV2_1::SearchResponse
4390
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4391
+ command.query['fields'] = fields unless fields.nil?
4392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4393
+ execute_or_queue_command(command, &block)
4394
+ end
4395
+
4253
4396
  # Creates a repricing rule for your Merchant Center account.
4254
4397
  # @param [Fixnum] merchant_id
4255
4398
  # Required. The id of the merchant who owns the repricing rule.
@@ -4354,7 +4497,8 @@ module Google
4354
4497
  # @param [Fixnum] merchant_id
4355
4498
  # Required. The id of the merchant who owns the repricing rule.
4356
4499
  # @param [String] country_code
4357
- # CLDR country code (e.g. "US"), used as a filter on repricing rules.
4500
+ # [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/
4501
+ # en.xml) (e.g. "US"), used as a filter on repricing rules.
4358
4502
  # @param [String] language_code
4359
4503
  # The two-letter ISO 639-1 language code associated with the repricing rule,
4360
4504
  # used as a filter.
@@ -4815,6 +4959,174 @@ module Google
4815
4959
  execute_or_queue_command(command, &block)
4816
4960
  end
4817
4961
 
4962
+ # Creates a new return policy.
4963
+ # @param [Fixnum] merchant_id
4964
+ # Required. The id of the merchant for which to retrieve the return policy
4965
+ # online object.
4966
+ # @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
4967
+ # @param [String] fields
4968
+ # Selector specifying which fields to include in a partial response.
4969
+ # @param [String] quota_user
4970
+ # Available to use for quota purposes for server-side applications. Can be any
4971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4972
+ # @param [Google::Apis::RequestOptions] options
4973
+ # Request-specific options
4974
+ #
4975
+ # @yield [result, err] Result & error if block supplied
4976
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
4977
+ # @yieldparam err [StandardError] error object if request failed
4978
+ #
4979
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
4980
+ #
4981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4984
+ def create_returnpolicyonline(merchant_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4985
+ command = make_simple_command(:post, 'content/v2.1/{merchantId}/returnpolicyonline', options)
4986
+ command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
4987
+ command.request_object = return_policy_online_object
4988
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
4989
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
4990
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
4991
+ command.query['fields'] = fields unless fields.nil?
4992
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4993
+ execute_or_queue_command(command, &block)
4994
+ end
4995
+
4996
+ # Deletes an existing return policy.
4997
+ # @param [Fixnum] merchant_id
4998
+ # Required. The id of the merchant for which to retrieve the return policy
4999
+ # online object.
5000
+ # @param [String] return_policy_id
5001
+ # Required. The id of the return policy to delete.
5002
+ # @param [String] fields
5003
+ # Selector specifying which fields to include in a partial response.
5004
+ # @param [String] quota_user
5005
+ # Available to use for quota purposes for server-side applications. Can be any
5006
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5007
+ # @param [Google::Apis::RequestOptions] options
5008
+ # Request-specific options
5009
+ #
5010
+ # @yield [result, err] Result & error if block supplied
5011
+ # @yieldparam result [NilClass] No result returned for this method
5012
+ # @yieldparam err [StandardError] error object if request failed
5013
+ #
5014
+ # @return [void]
5015
+ #
5016
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5017
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5018
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5019
+ def delete_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
5020
+ command = make_simple_command(:delete, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5021
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5022
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5023
+ command.query['fields'] = fields unless fields.nil?
5024
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5025
+ execute_or_queue_command(command, &block)
5026
+ end
5027
+
5028
+ # Gets an existing return policy.
5029
+ # @param [Fixnum] merchant_id
5030
+ # Required. The id of the merchant for which to retrieve the return policy
5031
+ # online object.
5032
+ # @param [String] return_policy_id
5033
+ # Required. The id of the return policy to retrieve.
5034
+ # @param [String] fields
5035
+ # Selector specifying which fields to include in a partial response.
5036
+ # @param [String] quota_user
5037
+ # Available to use for quota purposes for server-side applications. Can be any
5038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5039
+ # @param [Google::Apis::RequestOptions] options
5040
+ # Request-specific options
5041
+ #
5042
+ # @yield [result, err] Result & error if block supplied
5043
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
5044
+ # @yieldparam err [StandardError] error object if request failed
5045
+ #
5046
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
5047
+ #
5048
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5049
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5050
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5051
+ def get_returnpolicyonline(merchant_id, return_policy_id, fields: nil, quota_user: nil, options: nil, &block)
5052
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5053
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5054
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
5055
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5056
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5057
+ command.query['fields'] = fields unless fields.nil?
5058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5059
+ execute_or_queue_command(command, &block)
5060
+ end
5061
+
5062
+ # Lists all existing return policies.
5063
+ # @param [Fixnum] merchant_id
5064
+ # Required. The id of the merchant for which to retrieve the return policy
5065
+ # online object.
5066
+ # @param [String] fields
5067
+ # Selector specifying which fields to include in a partial response.
5068
+ # @param [String] quota_user
5069
+ # Available to use for quota purposes for server-side applications. Can be any
5070
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5071
+ # @param [Google::Apis::RequestOptions] options
5072
+ # Request-specific options
5073
+ #
5074
+ # @yield [result, err] Result & error if block supplied
5075
+ # @yieldparam result [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse] parsed result object
5076
+ # @yieldparam err [StandardError] error object if request failed
5077
+ #
5078
+ # @return [Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse]
5079
+ #
5080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5083
+ def list_returnpolicyonlines(merchant_id, fields: nil, quota_user: nil, options: nil, &block)
5084
+ command = make_simple_command(:get, 'content/v2.1/{merchantId}/returnpolicyonline', options)
5085
+ command.response_representation = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse::Representation
5086
+ command.response_class = Google::Apis::ContentV2_1::ListReturnPolicyOnlineResponse
5087
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5088
+ command.query['fields'] = fields unless fields.nil?
5089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5090
+ execute_or_queue_command(command, &block)
5091
+ end
5092
+
5093
+ # Updates an existing return policy.
5094
+ # @param [Fixnum] merchant_id
5095
+ # Required. The id of the merchant for which to retrieve the return policy
5096
+ # online object.
5097
+ # @param [String] return_policy_id
5098
+ # Required. The id of the return policy to update.
5099
+ # @param [Google::Apis::ContentV2_1::ReturnPolicyOnline] return_policy_online_object
5100
+ # @param [String] fields
5101
+ # Selector specifying which fields to include in a partial response.
5102
+ # @param [String] quota_user
5103
+ # Available to use for quota purposes for server-side applications. Can be any
5104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5105
+ # @param [Google::Apis::RequestOptions] options
5106
+ # Request-specific options
5107
+ #
5108
+ # @yield [result, err] Result & error if block supplied
5109
+ # @yieldparam result [Google::Apis::ContentV2_1::ReturnPolicyOnline] parsed result object
5110
+ # @yieldparam err [StandardError] error object if request failed
5111
+ #
5112
+ # @return [Google::Apis::ContentV2_1::ReturnPolicyOnline]
5113
+ #
5114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5117
+ def patch_returnpolicyonline(merchant_id, return_policy_id, return_policy_online_object = nil, fields: nil, quota_user: nil, options: nil, &block)
5118
+ command = make_simple_command(:patch, 'content/v2.1/{merchantId}/returnpolicyonline/{returnPolicyId}', options)
5119
+ command.request_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5120
+ command.request_object = return_policy_online_object
5121
+ command.response_representation = Google::Apis::ContentV2_1::ReturnPolicyOnline::Representation
5122
+ command.response_class = Google::Apis::ContentV2_1::ReturnPolicyOnline
5123
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
5124
+ command.params['returnPolicyId'] = return_policy_id unless return_policy_id.nil?
5125
+ command.query['fields'] = fields unless fields.nil?
5126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5127
+ execute_or_queue_command(command, &block)
5128
+ end
5129
+
4818
5130
  # Retrieves a settlement report from your Merchant Center account.
4819
5131
  # @param [Fixnum] merchant_id
4820
5132
  # The Merchant Center account of the settlement report.