Skip to content

SudoSOS Back-end API / transactions / TmpTransaction

Class: TmpTransaction ​

Extends ​

Constructors ​

Constructor ​

ts
new TmpTransaction(): TmpTransaction;

Returns ​

TmpTransaction

Inherited from ​

Transaction.constructor

Properties ​

PropertyModifierTypeDescriptionOverridesInherited from
createdAtreadonlyDate--Transaction.createdAt
createdBypublicUser--Transaction.createdBy
frompublicUser--Transaction.from
idreadonlynumber--Transaction.id
pdfServicepublicTransactionPdfServiceThe service that creates the Pdf buffer. Can be either a LaTeX-based service (UnstoredPdfService) or HTML-based service (HtmlUnstoredPdfService).-Transaction.pdfService
pointOfSalepublicPointOfSaleRevision--Transaction.pointOfSale
subTransactionspublicTmpSubTransaction[]-Transaction.subTransactions-
updatedAtreadonlyDate--Transaction.updatedAt
versionreadonlynumber--Transaction.version

Methods ​

createPdf() ​

ts
createPdf(): Promise<Buffer<ArrayBufferLike>>;

Create the Pdf buffer. This method generates the PDF and returns it as a Buffer.

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

Transaction.createPdf


createRaw() ​

ts
createRaw(): Promise<Buffer<ArrayBufferLike>>;

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

Transaction.createRaw


createTex() ​

ts
createTex(): Promise<Buffer<ArrayBufferLike>>;

Returns ​

Promise<Buffer<ArrayBufferLike>>

Deprecated ​

Use createRaw() instead

Inherited from ​

Transaction.createTex


getPdfParamHash() ​

ts
getPdfParamHash(): Promise<string>;

Returns ​

Promise<string>

Inherited from ​

Transaction.getPdfParamHash