Class: Workarea::Payment::Status::Captured

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)


34
35
36
37
38
39
# File 'app/models/workarea/payment/status.rb', line 34

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