Skip to content

SudoSOS Back-end API / reports / BuyerReport

Class: BuyerReport ​

Extends ​

Constructors ​

Constructor ​

ts
new BuyerReport(init?): BuyerReport;

Parameters ​

ParameterType
init?Partial<IReport>

Returns ​

BuyerReport

Inherited from ​

ts
UnstoredPdfAble(Report).constructor

Properties ​

PropertyTypeDescriptionOverridesInherited from
dataReportData--UnstoredPdfAble(Report).data
forIdnumber--UnstoredPdfAble(Report).forId
fromDateDate--UnstoredPdfAble(Report).fromDate
pdfServiceUserReportPdfService<SalesReport | BuyerReport>The service that creates the Pdf buffer. Can be either a LaTeX-based service (UnstoredPdfService) or HTML-based service (HtmlUnstoredPdfService).UnstoredPdfAble(Report).pdfService-
tillDateDate--UnstoredPdfAble(Report).tillDate
totalExclVatDinero--UnstoredPdfAble(Report).totalExclVat
totalInclVatDinero--UnstoredPdfAble(Report).totalInclVat
transactionCountnumber--UnstoredPdfAble(Report).transactionCount

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 ​

ts
UnstoredPdfAble(Report).createPdf

createRaw() ​

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

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

ts
UnstoredPdfAble(Report).createRaw

createTex() ​

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

Returns ​

Promise<Buffer<ArrayBufferLike>>

Deprecated ​

Use createRaw() instead

Inherited from ​

ts
UnstoredPdfAble(Report).createTex

getPdfParamHash() ​

ts
getPdfParamHash(): Promise<string>;

Returns ​

Promise<string>

Inherited from ​

ts
UnstoredPdfAble(Report).getPdfParamHash