Skip to content

SudoSOS Back-end API / transactions / Transaction

Class: Transaction ​

TypeORM entity for the transaction table. Holds the buyer-side record of one purchase at a PointOfSale. The actual product lines and seller-side credits live on the related SubTransactions, which cascade on save.

Extends ​

Extended by ​

Constructors ​

Constructor ​

ts
new Transaction(): Transaction;

Returns ​

Transaction

Inherited from ​

BaseEntity.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
createdAtreadonlyDateThe creation date of the object.BaseEntity.createdAt
createdBypublicUser--
frompublicUser--
idreadonlynumber-BaseEntity.id
pointOfSalepublicPointOfSaleRevision--
subTransactionspublicSubTransaction[]--
updatedAtreadonlyDateThe last update date of the object.BaseEntity.updatedAt
versionreadonlynumberThe current version of the object.BaseEntity.version