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 ​
Properties ​
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
createdAt | readonly | Date | The creation date of the object. | BaseEntity.createdAt |
createdBy | public | User | - | - |
from | public | User | - | - |
id | readonly | number | - | BaseEntity.id |
pointOfSale | public | PointOfSaleRevision | - | - |
subTransactions | public | SubTransaction[] | - | - |
updatedAt | readonly | Date | The last update date of the object. | BaseEntity.updatedAt |
version | readonly | number | The current version of the object. | BaseEntity.version |