Class Invoice
java.lang.Object
de.bytestore.hostinger.entity.ecommerce.Invoice
Represents an invoice entity with details about a transaction such as products, receiver, tax, and status.
This entity is mapped to the `HOST_INVOICES` table in the database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalculates the total amount of the invoice by summing up the amount of each product.getType()voidvoidsetStatus(InvoiceStatus status) voidsetType(InvoiceType type)
-
Constructor Details
-
Invoice
public Invoice()
-
-
Method Details
-
getType
-
setType
-
setStatus
-
getStatus
-
calculateAmount
Calculates the total amount of the invoice by summing up the amount of each product.- Returns:
- The total amount of the invoice as a BigDecimal.
-
postConstruct
@PostConstruct public void postConstruct()
-