Class: Smartbill::Sdk::Contracts::PaymentContract
- Inherits:
-
Base
- Object
- Dry::Validation::Contract
- Base
- Smartbill::Sdk::Contracts::PaymentContract
- Defined in:
- lib/smartbill/sdk/contracts/payment_contract.rb
Overview
Validation contract for Models::Payment.
Validates type against the SmartBill payment-type set, value (positive when present), date format, and precision.
Constant Summary collapse
- PAYMENT_TYPES =
Allowed
typevalues (mirrors Models::PaymentType). [ "Chitanta", "Bon", "Card", "Card online", "CEC", "Bilet ordin", "Ordin plata", "Mandat postal", "Extras de cont", "Ramburs", "Alta incasare" ].freeze