mlomnicki/ddd-ecommerce

View on GitHub
lib/sales/application/commands.rb

Summary

Maintainability
A
0 mins
Test Coverage
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