Class: Spree::Cart::Destroy

Inherits:
Object
  • Object
show all
Includes:
ServiceModule::Base
Defined in:
app/services/spree/cart/destroy.rb

Instance Method Summary collapse

Methods included from ServiceModule::Base

prepended

Instance Method Details

#call(order:) ⇒ Object



6
7
8
9
10
11
# File 'app/services/spree/cart/destroy.rb', line 6

def call(order:)
  run :check_if_can_be_destroyed
  run :cancel_shipments
  run :void_payments
  run :destroy_order
end