Skip to content

SudoSOS Back-end API / transfers / Transfer

Class: Transfer ​

Extends ​

Constructors ​

Constructor ​

ts
new Transfer(): Transfer;

Returns ​

Transfer

Inherited from ​

ts
UnstoredPdfAble(BaseEntity).constructor

Properties ​

PropertyModifierTypeDescriptionOverridesInherited from
amountInclVatpublicDinero---
createdAtreadonlyDate--UnstoredPdfAble(BaseEntity).createdAt
depositpublicStripeDeposit---
description?publicstringIf the transfer is of type 'custom', this contains a description of the transfer.--
finepublicFine---
from?publicUserThe account from which the transfer is subtracted. Can be null if money was deposited.--
fromId?publicnumber---
idreadonlynumber--UnstoredPdfAble(BaseEntity).id
inactiveAdministrativeCostpublicInactiveAdministrativeCost---
invoicepublicInvoice---
payoutRequestpublicPayoutRequest---
pdfServicepublicTransferPdfServiceThe service that creates the Pdf buffer. Can be either a LaTeX-based service (UnstoredPdfService) or HTML-based service (HtmlUnstoredPdfService).UnstoredPdfAble(BaseEntity).pdfService-
sellerPayoutpublicSellerPayout---
to?publicUserThe account to which the transaction is added. Can be null if money was paid out.--
toId?publicnumber---
updatedAtreadonlyDate--UnstoredPdfAble(BaseEntity).updatedAt
vat?publicVatGroupThe vat group of the transfer--
versionreadonlynumber--UnstoredPdfAble(BaseEntity).version
waivedFinespublicUserFineGroup---
writeOffpublicWriteOff---

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(BaseEntity).createPdf

createRaw() ​

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

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

ts
UnstoredPdfAble(BaseEntity).createRaw

createTex() ​

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

Returns ​

Promise<Buffer<ArrayBufferLike>>

Deprecated ​

Use createRaw() instead

Inherited from ​

ts
UnstoredPdfAble(BaseEntity).createTex

getPdfParamHash() ​

ts
getPdfParamHash(): Promise<string>;

Returns ​

Promise<string>

Inherited from ​

ts
UnstoredPdfAble(BaseEntity).getPdfParamHash