Class: Billing::PaymentWithType
- Defined in:
- app/models/billing/payment_with_type.rb
Constant Summary
Constants inherited from Payment
Billing::Payment::PAYMENT_EXTERNAL, Billing::Payment::PAYMENT_MODELS, Billing::Payment::PAYMENT_WITH_TYPE, Billing::Payment::PAYPAL_EXPRESS, Billing::Payment::ROOM_TRANSFER
Instance Attribute Summary
Attributes inherited from Payment
Instance Method Summary collapse
Methods inherited from Payment
#cash?, #external?, #fiscal?, wild_args
Instance Method Details
#find_payment_type_mapping_for(fiscal_driver) ⇒ Object
14 15 16 |
# File 'app/models/billing/payment_with_type.rb', line 14 def find_payment_type_mapping_for(fiscal_driver) payment_type.payment_type_fiscal_driver_mappings.find_by(extface_driver_id: fiscal_driver.id).try(:mapping) if fiscal_driver.fiscal? end |