Sha256: d230b2bcb48be537e547ac239d60ec7dab11bee90024fc52ca21fde1eaf6365e

Contents?: true

Size: 842 Bytes

Versions: 40

Compression:

Stored size: 842 Bytes

Contents

# frozen_string_literal: true

module MuffinMan
  module ProductFees
    require "json"
    require "sp_api_helpers"
    class V0 < SpApiClient
      attr_reader :asin

      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
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
muffin_man-1.5.11 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.10 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.9 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.8 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.7 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.6 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.5 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.4 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.3 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.2 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.1 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.0 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.13 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.12 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.11 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.10 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.9 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.8 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.7 lib/muffin_man/product_fees/v0.rb
muffin_man-1.4.6 lib/muffin_man/product_fees/v0.rb