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-1.5.11 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.10 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.9 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.8 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.7 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.6 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.5 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.4 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.3 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.2 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.1 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.5.0 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.13 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.12 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.11 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.10 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.9 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.8 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb
muffin_man-1.4.7 lib/muffin_man/request_helpers/inbound_shipment_plan_request_item.rb