package org.helicalmoment.zola.takehome.v1.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.lang.Integer; import java.lang.Long; import java.lang.String; import java.util.Date; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.0.0-dev * User agent: apibuilder app.apibuilder.io/helicalmoment/zola-takehome/1.0.0-dev/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * An invoice */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Invoice { protected Integer id; @NotNull protected String invoiceNumber; @NotNull protected String poNumber; @NotNull protected Date dueDate; @NotNull protected Long amountCents; protected Date createdAt; public Invoice(Integer id, String invoiceNumber, String poNumber, Date dueDate, Long amountCents, Date createdAt) { this.id = id; this.invoiceNumber = invoiceNumber; this.poNumber = poNumber; this.dueDate = dueDate; this.amountCents = amountCents; this.createdAt = createdAt; } public Invoice() { } /** * Unique identifier for an invoice */ public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } /** * The invoice number associated with the invoice */ public String getInvoiceNumber() { return invoiceNumber; } public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } /** * The purchase number associated with the invoice */ public String getPoNumber() { return poNumber; } public void setPoNumber(String poNumber) { this.poNumber = poNumber; } /** * When invoice payment is due */ public Date getDueDate() { return dueDate; } public void setDueDate(Date dueDate) { this.dueDate = dueDate; } /** * Total amount of invoice in US cents */ public Long getAmountCents() { return amountCents; } public void setAmountCents(Long amountCents) { this.amountCents = amountCents; } /** * Invoice creation timestamp */ public Date getCreatedAt() { return createdAt; } public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } }