java.lang.Object
de.bytestore.hostinger.entity.ecommerce.Invoice

@Entity(name="host_Invoices") public class Invoice extends Object
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 Details

    • Invoice

      public Invoice()
  • Method Details

    • getType

      public InvoiceType getType()
    • setType

      public void setType(InvoiceType type)
    • setStatus

      public void setStatus(InvoiceStatus status)
    • getStatus

      public InvoiceStatus getStatus()
    • calculateAmount

      public BigDecimal 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()