Class: Smartbill::Sdk::Contracts::InvoiceContract
- Inherits:
-
Base
- Object
- Dry::Validation::Contract
- Base
- Smartbill::Sdk::Contracts::InvoiceContract
- Defined in:
- lib/smartbill/sdk/contracts/invoice_contract.rb
Overview
Validation contract for Models::Invoice.
Adds semantic rules on top of the struct’s shape/coercion: date fields must match YYYY-MM-DD, precision must be a non-negative integer, and the embedded payment (when present) must satisfy the InvoicePaymentContract rules.