Optionaltransactions: ITransaction[]ReadonlyparserInstance of CopybookParser that is used to parse the copybook used by this transaction package
Array of ITransaction objects representing the transactions within the current transaction package
Create a new empty transaction in this package.
Load transaction from a file
This method will read the file and pass the data to TransactionPackage.load(data: string) to process the data into a transaction
Save the current package to a file
Convert the current package to an array of transactions as JSON string
Optionalspaces: numberNumber of spaces to use for indentation
{string}
The TransactionPackage class represents a transaction file that can contain multiple transactions.
Example
Create a new Transaction Package and load data from a (binary) file: