Class: Workarea::Payment::Status::PartiallyCaptured

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)


45
46
47
48
49
50
# File 'app/models/workarea/payment/status.rb', line 45

def in_status?
  order.tenders.any? do |tender|
    tender.captured_amount > 0 &&
      tender.refunded_amount == 0
  end
end