Class: Smartbill::Sdk::Contracts::InvoiceContract

Inherits:
Base
  • Object
show all
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.

Constant Summary

Constants inherited from Base

Base::DATE_REGEX

Method Summary

Methods inherited from Base

validate!