Class: MuffinMan::ProductFees::V0
- Inherits:
-
SpApiClient
- Object
- SpApiClient
- MuffinMan::ProductFees::V0
- Defined in:
- lib/muffin_man/product_fees/v0.rb
Constant Summary
Constants inherited from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE
Instance Attribute Summary collapse
-
#asin ⇒ Object
readonly
Returns the value of attribute asin.
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary collapse
Methods inherited from SpApiClient
Constructor Details
This class inherits a constructor from MuffinMan::SpApiClient
Instance Attribute Details
#asin ⇒ Object (readonly)
Returns the value of attribute asin.
8 9 10 |
# File 'lib/muffin_man/product_fees/v0.rb', line 8 def asin @asin end |
Instance Method Details
#get_my_fees_estimate_for_asin(asin, marketplace_id, map_price, currency_code, shipping = nil, points = nil, identifier = SecureRandom.uuid, is_amazon_fulfilled = true, optional_fulfillment_program = "FBA_CORE") ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/muffin_man/product_fees/v0.rb', line 10 def get_my_fees_estimate_for_asin(asin, marketplace_id, map_price, currency_code, shipping = nil, points = nil, identifier = SecureRandom.uuid, is_amazon_fulfilled = true, optional_fulfillment_program = "FBA_CORE") @local_var_path = "/products/fees/v0/items/#{asin}/feesEstimate" @request_body = SpApiHelpers.fees_estimate_request_body(marketplace_id, map_price, currency_code, shipping, points, identifier, is_amazon_fulfilled, optional_fulfillment_program).to_camelize @request_type = "POST" call_api end |