SudoSOS Back-end API / transactions / TmpTransaction
Class: TmpTransaction ​
Extends ​
Constructors ​
Constructor ​
ts
new TmpTransaction(): TmpTransaction;Returns ​
TmpTransaction
Inherited from ​
Properties ​
| Property | Modifier | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|---|
createdAt | readonly | Date | - | - | Transaction.createdAt |
createdBy | public | User | - | - | Transaction.createdBy |
from | public | User | - | - | Transaction.from |
id | readonly | number | - | - | Transaction.id |
pdfService | public | TransactionPdfService | The service that creates the Pdf buffer. Can be either a LaTeX-based service (UnstoredPdfService) or HTML-based service (HtmlUnstoredPdfService). | - | Transaction.pdfService |
pointOfSale | public | PointOfSaleRevision | - | - | Transaction.pointOfSale |
subTransactions | public | TmpSubTransaction[] | - | Transaction.subTransactions | - |
updatedAt | readonly | Date | - | - | Transaction.updatedAt |
version | readonly | number | - | - | 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 ​
createRaw() ​
ts
createRaw(): Promise<Buffer<ArrayBufferLike>>;Returns ​
Promise<Buffer<ArrayBufferLike>>
Inherited from ​
createTex() ​
ts
createTex(): Promise<Buffer<ArrayBufferLike>>;Returns ​
Promise<Buffer<ArrayBufferLike>>
Deprecated ​
Use createRaw() instead
Inherited from ​
getPdfParamHash() ​
ts
getPdfParamHash(): Promise<string>;Returns ​
Promise<string>