Skip to content

SudoSOS Back-end API / invoicing / Invoice

Class: Invoice ​

Extends ​

Constructors ​

Constructor ​

ts
new Invoice(): Invoice;

Returns ​

Invoice

Inherited from ​

BaseEntity.constructor

Properties ​

PropertyModifierTypeDescriptionInherited from
addresseepublicstringName of the addressed-
attentionpublicstringSpecial attention to the addressee-
citypublicstringCity to use on the invoice-
countrypublicstringCountry to use on the invoice-
createdAtreadonlyDateThe creation date of the object.BaseEntity.createdAt
creditTransfer?publicTransferIf this invoice is deleted, this will be credit transfer.-
creditTransferId?publicnumber--
datepublicDateDate of the invoice-
descriptionpublicstringThe description of the invoice-
idreadonlynumber-BaseEntity.id
invoiceStatuspublicInvoiceStatus[]The status history of the invoice-
pdf?publicInvoicePdfThe PDF file onDelete: 'CASCADE' is not possible here, because removing the pdf from the database will not remove it from storage-
pdfId?publicnumberThe ID of the PDF file-
postalCodepublicstringPostal code to use on the invoice-
referencepublicstringThe reference of the invoice-
streetpublicstringStreet to use on the invoice-
subTransactionRowspublicSubTransactionRow[]--
subTransactionRowsDeletedInvoicepublicSubTransactionRow[]--
topublicUserThe account for whom the invoice is-
toIdpublicnumberThe ID of the account for whom the invoice is-
transferpublicTransferThe transfer entity representing the invoice.-
updatedAtreadonlyDateThe last update date of the object.BaseEntity.updatedAt
versionreadonlynumberThe current version of the object.BaseEntity.version