Documentation / @facturometro/validator / AmountLeaf
Interface: AmountLeaf ​
Defined in: packages/validator/src/engine/view.ts:138
One amount element of the document, found by walking the schema.
Example ​
ts
import type { AmountLeaf } from '@facturometro/validator';
const currencies = (amounts: readonly AmountLeaf[]) => amounts.map((a) => a.value.currencyId);Properties ​
name ​
readonlyname:string
Defined in: packages/validator/src/engine/view.ts:140
Local element name, e.g. PayableAmount.
node ​
readonlynode:SchemaNode
Defined in: packages/validator/src/engine/view.ts:142
The schema node of the element.
path ​
readonlypath:ModelPath
Defined in: packages/validator/src/engine/view.ts:144
Model path of the element.
value ​
readonlyvalue:UncheckedAmount
Defined in: packages/validator/src/engine/view.ts:146
The amount as it is in the model.