Class: AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi
- Inherits:
-
Object
- Object
- AmzSpApi::FbaSmallAndLightApiModel::SmallAndLightApi
- Defined in:
- lib/fba-small-and-light-api-model/api/small_and_light_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ nil
Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace.
-
#delete_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace.
-
#get_small_and_light_eligibility_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEligibility
Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace.
-
#get_small_and_light_eligibility_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEligibility, Integer, Hash)>
Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace.
-
#get_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEnrollment
Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace.
-
#get_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEnrollment, Integer, Hash)>
Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace.
-
#get_small_and_light_fee_preview(body, opts = {}) ⇒ SmallAndLightFeePreviews
Returns the Small and Light fee estimates for the specified items.
-
#get_small_and_light_fee_preview_with_http_info(body, opts = {}) ⇒ Array<(SmallAndLightFeePreviews, Integer, Hash)>
Returns the Small and Light fee estimates for the specified items.
-
#initialize(api_client = ApiClient.default) ⇒ SmallAndLightApi
constructor
A new instance of SmallAndLightApi.
-
#put_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEnrollment
Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace.
-
#put_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEnrollment, Integer, Hash)>
Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ SmallAndLightApi
Returns a new instance of SmallAndLightApi.
16 17 18 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 16 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
14 15 16 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 14 def api_client @api_client end |
Instance Method Details
#delete_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ nil
Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 5 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
24 25 26 27 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 24 def delete_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) delete_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts) nil end |
#delete_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Removes the item indicated by the specified seller SKU from the Small and Light program in the specified marketplace. If the item is not eligible for disenrollment, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 5 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 34 def delete_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SmallAndLightApi.delete_small_and_light_enrollment_by_seller_sku ...' end # verify the required parameter 'seller_sku' is set if @api_client.config.client_side_validation && seller_sku.nil? fail ArgumentError, "Missing the required parameter 'seller_sku' when calling SmallAndLightApi.delete_small_and_light_enrollment_by_seller_sku" end # verify the required parameter 'marketplace_ids' is set if @api_client.config.client_side_validation && marketplace_ids.nil? fail ArgumentError, "Missing the required parameter 'marketplace_ids' when calling SmallAndLightApi.delete_small_and_light_enrollment_by_seller_sku" end # resource path local_var_path = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'.sub('{' + 'sellerSKU' + '}', seller_sku.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'marketplaceIds'] = @api_client.build_collection_param(marketplace_ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: SmallAndLightApi#delete_small_and_light_enrollment_by_seller_sku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_small_and_light_eligibility_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEligibility
Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
85 86 87 88 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 85 def get_small_and_light_eligibility_by_seller_sku(seller_sku, marketplace_ids, opts = {}) data, _status_code, _headers = get_small_and_light_eligibility_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts) data end |
#get_small_and_light_eligibility_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEligibility, Integer, Hash)>
Returns the Small and Light program eligibility status of the item indicated by the specified seller SKU in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 95 def get_small_and_light_eligibility_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SmallAndLightApi.get_small_and_light_eligibility_by_seller_sku ...' end # verify the required parameter 'seller_sku' is set if @api_client.config.client_side_validation && seller_sku.nil? fail ArgumentError, "Missing the required parameter 'seller_sku' when calling SmallAndLightApi.get_small_and_light_eligibility_by_seller_sku" end # verify the required parameter 'marketplace_ids' is set if @api_client.config.client_side_validation && marketplace_ids.nil? fail ArgumentError, "Missing the required parameter 'marketplace_ids' when calling SmallAndLightApi.get_small_and_light_eligibility_by_seller_sku" end # resource path local_var_path = '/fba/smallAndLight/v1/eligibilities/{sellerSKU}'.sub('{' + 'sellerSKU' + '}', seller_sku.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'marketplaceIds'] = @api_client.build_collection_param(marketplace_ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'SmallAndLightEligibility' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: SmallAndLightApi#get_small_and_light_eligibility_by_seller_sku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEnrollment
Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
146 147 148 149 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 146 def get_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) data, _status_code, _headers = get_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts) data end |
#get_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEnrollment, Integer, Hash)>
Returns the Small and Light enrollment status for the item indicated by the specified seller SKU in the specified marketplace. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 10 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 156 def get_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SmallAndLightApi.get_small_and_light_enrollment_by_seller_sku ...' end # verify the required parameter 'seller_sku' is set if @api_client.config.client_side_validation && seller_sku.nil? fail ArgumentError, "Missing the required parameter 'seller_sku' when calling SmallAndLightApi.get_small_and_light_enrollment_by_seller_sku" end # verify the required parameter 'marketplace_ids' is set if @api_client.config.client_side_validation && marketplace_ids.nil? fail ArgumentError, "Missing the required parameter 'marketplace_ids' when calling SmallAndLightApi.get_small_and_light_enrollment_by_seller_sku" end # resource path local_var_path = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'.sub('{' + 'sellerSKU' + '}', seller_sku.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'marketplaceIds'] = @api_client.build_collection_param(marketplace_ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'SmallAndLightEnrollment' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: SmallAndLightApi#get_small_and_light_enrollment_by_seller_sku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_small_and_light_fee_preview(body, opts = {}) ⇒ SmallAndLightFeePreviews
Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 1 | 3 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
206 207 208 209 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 206 def get_small_and_light_fee_preview(body, opts = {}) data, _status_code, _headers = get_small_and_light_fee_preview_with_http_info(body, opts) data end |
#get_small_and_light_fee_preview_with_http_info(body, opts = {}) ⇒ Array<(SmallAndLightFeePreviews, Integer, Hash)>
Returns the Small and Light fee estimates for the specified items. You must include a marketplaceId parameter to retrieve the proper fee estimates for items to be sold in that marketplace. The ordering of items in the response will mirror the order of the items in the request. Duplicate ASIN/price combinations are removed. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 1 | 3 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 215 def get_small_and_light_fee_preview_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SmallAndLightApi.get_small_and_light_fee_preview ...' end # verify the required parameter 'body' is set if @api_client.config.client_side_validation && body.nil? fail ArgumentError, "Missing the required parameter 'body' when calling SmallAndLightApi.get_small_and_light_fee_preview" end # resource path local_var_path = '/fba/smallAndLight/v1/feePreviews' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(body) return_type = opts[:return_type] || 'SmallAndLightFeePreviews' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: SmallAndLightApi#get_small_and_light_fee_preview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#put_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) ⇒ SmallAndLightEnrollment
Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 5 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
263 264 265 266 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 263 def put_small_and_light_enrollment_by_seller_sku(seller_sku, marketplace_ids, opts = {}) data, _status_code, _headers = put_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts) data end |
#put_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) ⇒ Array<(SmallAndLightEnrollment, Integer, Hash)>
Enrolls the item indicated by the specified seller SKU in the Small and Light program in the specified marketplace. If the item is not eligible, the ineligibility reasons are returned. **Usage Plan:** | Rate (requests per second) | Burst | | —- | —- | | 2 | 5 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
# File 'lib/fba-small-and-light-api-model/api/small_and_light_api.rb', line 273 def put_small_and_light_enrollment_by_seller_sku_with_http_info(seller_sku, marketplace_ids, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: SmallAndLightApi.put_small_and_light_enrollment_by_seller_sku ...' end # verify the required parameter 'seller_sku' is set if @api_client.config.client_side_validation && seller_sku.nil? fail ArgumentError, "Missing the required parameter 'seller_sku' when calling SmallAndLightApi.put_small_and_light_enrollment_by_seller_sku" end # verify the required parameter 'marketplace_ids' is set if @api_client.config.client_side_validation && marketplace_ids.nil? fail ArgumentError, "Missing the required parameter 'marketplace_ids' when calling SmallAndLightApi.put_small_and_light_enrollment_by_seller_sku" end # resource path local_var_path = '/fba/smallAndLight/v1/enrollments/{sellerSKU}'.sub('{' + 'sellerSKU' + '}', seller_sku.to_s) # query parameters query_params = opts[:query_params] || {} query_params[:'marketplaceIds'] = @api_client.build_collection_param(marketplace_ids, :csv) # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] return_type = opts[:return_type] || 'SmallAndLightEnrollment' auth_names = opts[:auth_names] || [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type) if @api_client.config.debugging @api_client.config.logger.debug "API called: SmallAndLightApi#put_small_and_light_enrollment_by_seller_sku\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |