lib/rsr_group/order.rb in rsr_group-1.0.1 vs lib/rsr_group/order.rb in rsr_group-1.1.0

- old
+ new

@@ -49,10 +49,10 @@ # @param [Hash] item # @option item [String] :rsr_stock_number *required* # @option item [Integer] :quantity *required* # @option item [String] :shipping_carrier *required* # @option item [String] :shipping_method *required* - def add_item(item) + def add_item(item = {}) requires!(item, :rsr_stock_number, :quantity, :shipping_carrier, :shipping_method) @items << OrderDetail.new(item.merge(order_identifier: @identifier)) end