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
# 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 :generate_or_return_shipping_rates
end