Class: SolidusBacktracs::Api::ThresholdVerifier

Inherits:
Object
  • Object
show all
Defined in:
lib/solidus_backtracs/api/threshold_verifier.rb

Class Method Summary collapse

Class Method Details

.call(shipment) ⇒ Object



7
8
9
10
11
# File 'lib/solidus_backtracs/api/threshold_verifier.rb', line 7

def call(shipment)
  return false unless shipment.order.completed?

  !!(shipment_requires_creation?(shipment) || shipment_requires_update?(shipment))
end