Class: Corzinus::Checkout::CompleteAccessService

Inherits:
AccessService show all
Defined in:
app/services/corzinus/checkout/complete_access_service.rb

Instance Attribute Summary

Attributes inherited from AccessService

#order

Instance Method Summary collapse

Methods inherited from AccessService

allow?, #initialize, #step_dependencies, #valid?, valid?

Constructor Details

This class inherits a constructor from Corzinus::Checkout::AccessService

Instance Method Details

#allow?Boolean



4
5
6
7
# File 'app/services/corzinus/checkout/complete_access_service.rb', line 4

def allow?
  return true if order.items_count.zero?
  super && order.processing?
end