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-2.4.8 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.7 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.6 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.5 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.4 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.3 lib/muffin_man/product_fees/v0.rb
muffin_man-2.4.2 lib/muffin_man/product_fees/v0.rb
muffin_man-2.3.0 lib/muffin_man/product_fees/v0.rb
muffin_man-2.2.2 lib/muffin_man/product_fees/v0.rb
muffin_man-2.2.1 lib/muffin_man/product_fees/v0.rb
muffin_man-2.1.3 lib/muffin_man/product_fees/v0.rb
muffin_man-2.1.0 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.6 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.5 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.4 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.3 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.2 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.1 lib/muffin_man/product_fees/v0.rb
muffin_man-2.0.0 lib/muffin_man/product_fees/v0.rb
muffin_man-1.5.12 lib/muffin_man/product_fees/v0.rb