Skip to content

Documentation / @einvoice-ts/validator / IssueEnvironment

Interface: IssueEnvironment ​

Defined in: packages/validator/src/engine/issue.ts:204

What every issue of a validation run shares.

Example ​

ts
import type { IssueEnvironment } from '@einvoice-ts/validator';

const env: IssueEnvironment = { definedBy: 'peppol', kind: 'Invoice', ruleset };

Properties ​

definedBy ​

readonly definedBy: string

Defined in: packages/validator/src/engine/issue.ts:206

Id of the ruleset that defined the rule.


kind ​

readonly kind: "CreditNote" | "Invoice"

Defined in: packages/validator/src/engine/issue.ts:208

Which document is being validated.


ruleset ​

readonly ruleset: RulesetInfo

Defined in: packages/validator/src/engine/issue.ts:210

The ruleset being run.

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.