Scenario is used to describe a tax scenario of a document based on the combination of document type and tag used.

Schema ID

https://gobl.org/draft-0/tax/regime-def#/$defs/Scenario

Properties

TitlePropertyTypeReq.Description
Namenamei18n.StringName of the scenario for further information.
Typetypearray of cbc.KeyType of document, if present.
Tagstagsarray of cbc.KeyArray of tags that have been applied to the document.
Extension Keyext_keycbc.KeyExtension key that must be present in the document.
Extension Valueext_valuestringExtension value that along side the key must be present for a match to happen. This cannot be used without an ExtKey. The value will be copied to the note code if needed.
Notenotecbc.NoteA note to be added to the document if the scenario is applied.
Codescodescbc.CodeMapCodes is used to define additional codes for regime specific situations.
Extensionsexttax.ExtensionsExt represents a set of tax extensions that should be applied to the document in the appropriate “tax” context.