Module: AmzSpApi::SalesApiModel

Defined in:
lib/sales-api-model/version.rb,
lib/sales-api-model.rb,
lib/sales-api-model/api_error.rb,
lib/sales-api-model/api_client.rb,
lib/sales-api-model/models/error.rb,
lib/sales-api-model/models/money.rb,
lib/sales-api-model/api/sales_api.rb,
lib/sales-api-model/configuration.rb,
lib/sales-api-model/models/decimal.rb,
lib/sales-api-model/models/error_list.rb,
lib/sales-api-model/models/order_metrics_list.rb,
lib/sales-api-model/models/order_metrics_interval.rb,
lib/sales-api-model/models/get_order_metrics_response.rb

Overview

#Selling Partner API for Sales

#The Selling Partner API for Sales provides APIs related to sales performance.

OpenAPI spec version: v1

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

Defined Under Namespace

Classes: ApiClient, ApiError, Configuration, Decimal, Error, ErrorList, GetOrderMetricsResponse, Money, OrderMetricsInterval, OrderMetricsList, SalesApi

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

AmzSpApi::SalesApiModel.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



38
39
40
41
42
43
44
# File 'lib/sales-api-model.rb', line 38

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