lib/sales/application/commands.rb
module Sales
module Application
AddItemToOrder = Command.new(:order_id, :product_id)
PlaceOrder = Command.new(:order_id, :customer_id)
ExpireOrder = Command.new(:order_id)
CompleteOrder = Command.new(:order_id)
CancelOrder = Command.new(:order_id, :reason)
RequestPayment = Command.new(:order_id, :customer_id, :amount)
end
end