Class: Workarea::Payment::Status::Authorized

Inherits:
Object
  • Object
show all
Includes:
StatusCalculator::Status
Defined in:
app/models/workarea/payment/status.rb

Instance Method Summary collapse

Methods included from StatusCalculator::Status

#initialize

Instance Method Details

#in_status?Boolean

Returns:

  • (Boolean)


23
24
25
26
27
28
# File 'app/models/workarea/payment/status.rb', line 23

def in_status?
  order.tenders.all? do |tender|
    tender.authorized_amount == tender.amount &&
      tender.captured_amount == 0
  end
end