madetech/market_town

View on GitHub
checkout/lib/market_town/checkout/integrations/spree/fulfilments.rb

Summary

Maintainability
A
0 mins
Test Coverage
module MarketTown
  module Checkout
    module Spree
      class Fulfilments
        def propose_shipments(state)
          state[:order].create_proposed_shipments
          nil
        end

        def can_fulfil_shipments?(state)
          if state[:order].send(:ensure_available_shipping_rates) == false
            false
          else
            true
          end
        end

        def apply_shipment_costs(state)
        end

        def fulfil(state)
        end
      end
    end
  end
end