google-apis-content_v2_1 0.9.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.9.0"
19
+ GEM_VERSION = "0.14.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210325"
25
+ REVISION = "20210603"
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
 
@@ -3521,9 +3568,26 @@ module Google
3521
3568
  class Metrics
3522
3569
  # @private
3523
3570
  class Representation < Google::Apis::Core::JsonRepresentation
3571
+ property :aos, as: 'aos'
3572
+ property :aov_micros, as: 'aovMicros'
3524
3573
  property :clicks, :numeric_string => true, as: 'clicks'
3525
3574
  property :ctr, as: 'ctr'
3575
+ property :days_to_ship, as: 'daysToShip'
3526
3576
  property :impressions, :numeric_string => true, as: 'impressions'
3577
+ property :item_days_to_ship, as: 'itemDaysToShip'
3578
+ property :item_fill_rate, as: 'itemFillRate'
3579
+ property :ordered_item_sales_micros, :numeric_string => true, as: 'orderedItemSalesMicros'
3580
+ property :ordered_items, :numeric_string => true, as: 'orderedItems'
3581
+ property :orders, :numeric_string => true, as: 'orders'
3582
+ property :rejected_items, :numeric_string => true, as: 'rejectedItems'
3583
+ property :return_rate, as: 'returnRate'
3584
+ property :returned_items, :numeric_string => true, as: 'returnedItems'
3585
+ property :returns_micros, :numeric_string => true, as: 'returnsMicros'
3586
+ property :shipped_item_sales_micros, :numeric_string => true, as: 'shippedItemSalesMicros'
3587
+ property :shipped_items, :numeric_string => true, as: 'shippedItems'
3588
+ property :shipped_orders, :numeric_string => true, as: 'shippedOrders'
3589
+ property :unshipped_items, as: 'unshippedItems'
3590
+ property :unshipped_orders, as: 'unshippedOrders'
3527
3591
  end
3528
3592
  end
3529
3593
 
@@ -4116,6 +4180,7 @@ module Google
4116
4180
  # @private
4117
4181
  class Representation < Google::Apis::Core::JsonRepresentation
4118
4182
  property :line_item_id, as: 'lineItemId'
4183
+ property :product_id, as: 'productId'
4119
4184
  property :quantity, as: 'quantity'
4120
4185
  end
4121
4186
  end
@@ -4580,6 +4645,20 @@ module Google
4580
4645
  end
4581
4646
  end
4582
4647
 
4648
+ class PauseBuyOnGoogleProgramRequest
4649
+ # @private
4650
+ class Representation < Google::Apis::Core::JsonRepresentation
4651
+ end
4652
+ end
4653
+
4654
+ class PaymentServiceProviderLinkInfo
4655
+ # @private
4656
+ class Representation < Google::Apis::Core::JsonRepresentation
4657
+ property :external_account_business_country, as: 'externalAccountBusinessCountry'
4658
+ property :external_account_id, as: 'externalAccountId'
4659
+ end
4660
+ end
4661
+
4583
4662
  class PickupCarrierService
4584
4663
  # @private
4585
4664
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4863,6 +4942,7 @@ module Google
4863
4942
  property :item_group_id, as: 'itemGroupId'
4864
4943
  property :kind, as: 'kind'
4865
4944
  property :link, as: 'link'
4945
+ property :link_template, as: 'linkTemplate'
4866
4946
  property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2_1::LoyaltyPoints, decorator: Google::Apis::ContentV2_1::LoyaltyPoints::Representation
4867
4947
 
4868
4948
  property :material, as: 'material'
@@ -4871,10 +4951,13 @@ module Google
4871
4951
  property :min_energy_efficiency_class, as: 'minEnergyEfficiencyClass'
4872
4952
  property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
4873
4953
  property :mobile_link, as: 'mobileLink'
4954
+ property :mobile_link_template, as: 'mobileLinkTemplate'
4874
4955
  property :mpn, as: 'mpn'
4875
4956
  property :multipack, :numeric_string => true, as: 'multipack'
4876
4957
  property :offer_id, as: 'offerId'
4877
4958
  property :pattern, as: 'pattern'
4959
+ property :pickup_method, as: 'pickupMethod'
4960
+ property :pickup_sla, as: 'pickupSla'
4878
4961
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4879
4962
 
4880
4963
  collection :product_details, as: 'productDetails', class: Google::Apis::ContentV2_1::ProductProductDetail, decorator: Google::Apis::ContentV2_1::ProductProductDetail::Representation
@@ -4944,6 +5027,10 @@ module Google
4944
5027
  property :country, as: 'country'
4945
5028
  property :location_group_name, as: 'locationGroupName'
4946
5029
  property :location_id, :numeric_string => true, as: 'locationId'
5030
+ property :max_handling_time, :numeric_string => true, as: 'maxHandlingTime'
5031
+ property :max_transit_time, :numeric_string => true, as: 'maxTransitTime'
5032
+ property :min_handling_time, :numeric_string => true, as: 'minHandlingTime'
5033
+ property :min_transit_time, :numeric_string => true, as: 'minTransitTime'
4947
5034
  property :postal_code, as: 'postalCode'
4948
5035
  property :price, as: 'price', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
4949
5036
 
@@ -5067,6 +5154,7 @@ module Google
5067
5154
  property :product, as: 'product', class: Google::Apis::ContentV2_1::Product, decorator: Google::Apis::ContentV2_1::Product::Representation
5068
5155
 
5069
5156
  property :product_id, as: 'productId'
5157
+ property :update_mask, as: 'updateMask'
5070
5158
  end
5071
5159
  end
5072
5160
 
@@ -5439,6 +5527,12 @@ module Google
5439
5527
  end
5440
5528
  end
5441
5529
 
5530
+ class RequestReviewBuyOnGoogleProgramRequest
5531
+ # @private
5532
+ class Representation < Google::Apis::Core::JsonRepresentation
5533
+ end
5534
+ end
5535
+
5442
5536
  class ReturnAddress
5443
5537
  # @private
5444
5538
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5586,6 +5680,15 @@ module Google
5586
5680
  end
5587
5681
  end
5588
5682
 
5683
+ class ReturnShippingLabel
5684
+ # @private
5685
+ class Representation < Google::Apis::Core::JsonRepresentation
5686
+ property :carrier, as: 'carrier'
5687
+ property :label_uri, as: 'labelUri'
5688
+ property :tracking_id, as: 'trackingId'
5689
+ end
5690
+ end
5691
+
5589
5692
  class ReturnaddressCustomBatchRequest
5590
5693
  # @private
5591
5694
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5716,10 +5819,30 @@ module Google
5716
5819
  class Segments
5717
5820
  # @private
5718
5821
  class Representation < Google::Apis::Core::JsonRepresentation
5822
+ property :brand, as: 'brand'
5823
+ property :category_l1, as: 'categoryL1'
5824
+ property :category_l2, as: 'categoryL2'
5825
+ property :category_l3, as: 'categoryL3'
5826
+ property :category_l4, as: 'categoryL4'
5827
+ property :category_l5, as: 'categoryL5'
5828
+ property :currency_code, as: 'currencyCode'
5829
+ property :custom_label0, as: 'customLabel0'
5830
+ property :custom_label1, as: 'customLabel1'
5831
+ property :custom_label2, as: 'customLabel2'
5832
+ property :custom_label3, as: 'customLabel3'
5833
+ property :custom_label4, as: 'customLabel4'
5719
5834
  property :date, as: 'date', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5720
5835
 
5721
5836
  property :offer_id, as: 'offerId'
5837
+ property :product_type_l1, as: 'productTypeL1'
5838
+ property :product_type_l2, as: 'productTypeL2'
5839
+ property :product_type_l3, as: 'productTypeL3'
5840
+ property :product_type_l4, as: 'productTypeL4'
5841
+ property :product_type_l5, as: 'productTypeL5'
5722
5842
  property :program, as: 'program'
5843
+ property :title, as: 'title'
5844
+ property :week, as: 'week', class: Google::Apis::ContentV2_1::Date, decorator: Google::Apis::ContentV2_1::Date::Representation
5845
+
5723
5846
  end
5724
5847
  end
5725
5848
 
@@ -6146,6 +6269,19 @@ module Google
6146
6269
  end
6147
6270
  end
6148
6271
 
6272
+ class WarehouseBasedDeliveryTime
6273
+ # @private
6274
+ class Representation < Google::Apis::Core::JsonRepresentation
6275
+ property :carrier, as: 'carrier'
6276
+ property :carrier_service, as: 'carrierService'
6277
+ property :origin_administrative_area, as: 'originAdministrativeArea'
6278
+ property :origin_city, as: 'originCity'
6279
+ property :origin_country, as: 'originCountry'
6280
+ property :origin_postal_code, as: 'originPostalCode'
6281
+ property :origin_street_address, as: 'originStreetAddress'
6282
+ end
6283
+ end
6284
+
6149
6285
  class Weight
6150
6286
  # @private
6151
6287
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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