ReadonlyparserInstance of CopybookParser that is used to parse the copybook used by this transaction package
OptionaltransactionsArray of ITransaction objects representing the transactions within the current transaction package
Create a new empty transaction using the parsed copybook
Get the first transaction in the current package, or undefined if no transactions exist.
{(ITransaction | undefined)}
Get the last transaction in the current package, or undefined if no transactions exist.
{(ITransaction | undefined)}
Load data from a Buffer into transactions.
The data param can contain multiple transactions in a single buffer and splitBuffer is used to split the buffer
into an array of buffers for further processing
Save the current transaction package to file.
The new line character x'15' will be added at the end of each transaction
Convert the current transaction package to a buffer
{Buffer}
Convert the current transaction package to an array of transactions as JSON string
Optionalspaces: numberNumber of spaces to use for indentation
{string}
ITransaactionPackage is a helper interface that represents a group of transactions.
A
transaction packageuses one copybook and contains transactions that use the same copybook.