Module: AmzSpApi

Defined in:
lib/api_error.rb,
lib/amz_sp_api.rb,
lib/api_client.rb,
lib/configuration.rb,
lib/sp_api_client.rb,
lib/sp_configuration.rb,
lib/amz_sp_api_version.rb,
lib/restricted_sp_api_client.rb

Overview

#Selling Partner APIs for Fulfillment Outbound

#The Selling Partner API for Fulfillment Outbound lets you create applications that help a seller fulfill Multi-Channel Fulfillment orders using their inventory in Amazon’s fulfillment network. You can get information on both potential and existing fulfillment orders.

OpenAPI spec version: 2020-07-01

Generated by: github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 3.0.24

Defined Under Namespace

Modules: AplusContentApiModel, AuthorizationApiModel, CatalogItemsApiModel, EasyShipModel, FbaInboundEligibilityApiModel, FbaInventoryApiModel, FbaSmallAndLightApiModel, FeedsApiModel, FinancesApiModel, FulfillmentInboundApiModel, FulfillmentOutboundApiModel, ListingsItemsApiModel, ListingsRestrictionsApiModel, MerchantFulfillmentApiModel, MessagingApiModel, NotificationsApiModel, OrdersApiModel, ProductFeesApiModel, ProductPricingApiModel, ProductTypeDefinitionsApiModel, ReportsApiModel, SalesApiModel, SellersApiModel, ServicesApiModel, ShipmentInvoicingApiModel, ShippingApiModel, SolicitationsApiModel, TokensApiModel, UploadsApiModel, VendorDirectFulfillmentInventoryApiModel, VendorDirectFulfillmentOrdersApiModel, VendorDirectFulfillmentPaymentsApiModel, VendorDirectFulfillmentSandboxTestDataApiModel, VendorDirectFulfillmentShippingApiModel, VendorDirectFulfillmentTransactionsApiModel, VendorInvoicesApiModel, VendorOrdersApiModel, VendorShipmentsApiModel, VendorTransactionStatusApiModel Classes: ApiClient, ApiError, Configuration, RestrictedSpApiClient, SpApiClient, SpConfiguration

Constant Summary collapse

VERSION =
'1.0.1'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

AmzSpApi.configure do |config|
end

If no block given, return the default Configuration object.



13
14
15
16
17
18
19
# File 'lib/amz_sp_api.rb', line 13

def configure
  if block_given?
    yield(SpConfiguration.default)
  else
    SpConfiguration.default
  end
end

.inflate_document(body, document_response) ⇒ Object

Raises:



21
22
23
24
25
26
# File 'lib/amz_sp_api.rb', line 21

def inflate_document(body, document_response)
  compression = document_response.compression_algorithm
  return body unless compression
  raise AmzSpApi::ApiError.new("unknown compressionAlgorithm #{compression}") if compression != "GZIP"
  Zlib.gunzip(body)
end