Sha256: 1305ba66ff2013c216f1813a95cac05e1d4b685c71823d01db6b2e88219f6337

Contents?: true

Size: 798 Bytes

Versions: 39

Compression:

Stored size: 798 Bytes

Contents

module MuffinMan
  module RequestHelpers
    class InboundShipmentPlanRequestItem < Base
      attr_reader :seller_sku, :asin, :condition, :quantity, :quantity_in_case, :prep_details_list

      def initialize(seller_sku, asin, condition, quantity, quantity_in_case: nil, prep_details_list: [])
        @seller_sku = seller_sku
        @asin = asin
        @quantity = quantity
        @condition = condition
        @quantity_in_case = quantity_in_case
        @prep_details_list = prep_details_list
      end

      def json_body
        {
          "SellerSKU": seller_sku,
          "ASIN": asin,
          "Condition": condition,
          "Quantity": quantity,
          "QuantityInCase": quantity_in_case,
          "PrepDetailsList": prep_details_list
        }
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
muffin_man-2.4.8 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.7 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.6 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.5 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.4 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.3 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.4.2 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.3.0 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.2.2 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.2.1 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.1.3 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.1.0 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.6 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.5 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.4 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.3 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.2 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.1 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-2.0.0 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.12 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb