SudoSOS Back-end API / invoicing / Invoice
Class: Invoice ​
Extends ​
Constructors ​
Constructor ​
ts
new Invoice(): Invoice;Returns ​
Invoice
Inherited from ​
Properties ​
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
addressee | public | string | Name of the addressed | - |
attention | public | string | Special attention to the addressee | - |
city | public | string | City to use on the invoice | - |
country | public | string | Country to use on the invoice | - |
createdAt | readonly | Date | The creation date of the object. | BaseEntity.createdAt |
creditTransfer? | public | Transfer | If this invoice is deleted, this will be credit transfer. | - |
creditTransferId? | public | number | - | - |
date | public | Date | Date of the invoice | - |
description | public | string | The description of the invoice | - |
id | readonly | number | - | BaseEntity.id |
invoiceStatus | public | InvoiceStatus[] | The status history of the invoice | - |
pdf? | public | InvoicePdf | The PDF file onDelete: 'CASCADE' is not possible here, because removing the pdf from the database will not remove it from storage | - |
pdfId? | public | number | The ID of the PDF file | - |
postalCode | public | string | Postal code to use on the invoice | - |
reference | public | string | The reference of the invoice | - |
street | public | string | Street to use on the invoice | - |
subTransactionRows | public | SubTransactionRow[] | - | - |
subTransactionRowsDeletedInvoice | public | SubTransactionRow[] | - | - |
to | public | User | The account for whom the invoice is | - |
toId | public | number | The ID of the account for whom the invoice is | - |
transfer | public | Transfer | The transfer entity representing the invoice. | - |
updatedAt | readonly | Date | The last update date of the object. | BaseEntity.updatedAt |
version | readonly | number | The current version of the object. | BaseEntity.version |