Module: SpApiHelpers

Defined in:
lib/sp_api_helpers.rb

Overview

Module to help create request body for API endpoints

Defined Under Namespace

Classes: FeesEstimateRequest, GetMyFeesEstimateRequest, MoneyType, PriceToEstimateFees

Class Method Summary collapse

Class Method Details

.fees_estimate_request_body(marketplace_id, price, fees_currency_code, shipping = nil, points = nil, identifier = SecureRandom.uuid, is_amazon_fulfilled = true, optional_fulfillment_program = "FBA_CORE") ⇒ Object



7
8
9
10
11
12
13
# File 'lib/sp_api_helpers.rb', line 7

def self.fees_estimate_request_body(marketplace_id, price, fees_currency_code,
                                    shipping = nil, points = nil, identifier = SecureRandom.uuid,
                                    is_amazon_fulfilled = true, optional_fulfillment_program = "FBA_CORE")
  GetMyFeesEstimateRequest.new(marketplace_id, price, fees_currency_code,
                               shipping, points, identifier,
                               is_amazon_fulfilled, optional_fulfillment_program)
end