Skip to content

SudoSOS Back-end API / transfers / Transfer

Class: Transfer ​

TypeORM entity for the transfer table. A single money movement on or off SudoSOS; one of from or to may be null when the counterparty lives outside the system (a Stripe deposit, a bank payout). The domain that originated the movement keeps a OneToOne back-reference, which is how the type of a transfer (deposit, fine, payout, ...) is identified at read time.

Extends ​

Constructors ​

Constructor ​

ts
new Transfer(): Transfer;

Returns ​

Transfer

Inherited from ​

BaseEntity.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
amountInclVatpublicDinero--
createdAtreadonlyDateThe creation date of the object.BaseEntity.createdAt
creditInvoicepublicInvoice--
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-BaseEntity.id
inactiveAdministrativeCostpublicInactiveAdministrativeCost--
invoicepublicInvoice--
payoutRequestpublicPayoutRequest--
sellerPayoutpublicSellerPayout--
to?publicUserThe account to which the transaction is added. Can be null if money was paid out.-
toId?publicnumber--
updatedAtreadonlyDateThe last update date of the object.BaseEntity.updatedAt
vat?publicVatGroupThe vat group of the transfer-
versionreadonlynumberThe current version of the object.BaseEntity.version
waivedFinespublicUserFineGroup--
writeOffpublicWriteOff--