Class: Workarea::Payment::Status::Captured
- Inherits:
-
Object
- Object
- Workarea::Payment::Status::Captured
- Includes:
- StatusCalculator::Status
- Defined in:
- app/models/workarea/payment/status.rb
Instance Method Summary collapse
Methods included from StatusCalculator::Status
Instance Method Details
#in_status? ⇒ 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 |