Skip to content

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 ​

readonly name: string

Defined in: packages/validator/src/engine/view.ts:140

Local element name, e.g. PayableAmount.


node ​

readonly node: SchemaNode

Defined in: packages/validator/src/engine/view.ts:142

The schema node of the element.


path ​

readonly path: ModelPath

Defined in: packages/validator/src/engine/view.ts:144

Model path of the element.


value ​

readonly value: UncheckedAmount

Defined in: packages/validator/src/engine/view.ts:146

The amount as it is in the model.

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.