Class: Spree::Checkout::GetShippingRates

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

Instance Method Summary collapse

Methods included from ServiceModule::Base

prepended

Instance Method Details

#call(order:) ⇒ Object



6
7
8
9
10
11
12
13
# File 'app/services/spree/checkout/get_shipping_rates.rb', line 6

def call(order:)
  run :reload_order
  run :ensure_shipping_address
  run :ensure_line_items_present
  run :move_order_to_delivery_state
  run :generate_shipping_rates
  run :return_shipments
end