package com.alexanderlogistics.zoho.dto; import java.time.LocalDate; import java.util.List; import jakarta.json.bind.annotation.JsonbDateFormat; import jakarta.json.bind.annotation.JsonbProperty; public class ZohoInvoice { @JsonbProperty("invoice_id") private String invoiceId; @JsonbProperty("customer_id") private String customerId; @JsonbProperty("currency_id") private String currencyId; @JsonbDateFormat("yyyy-MM-dd") private LocalDate date; @JsonbProperty("due_date") @JsonbDateFormat("yyyy-MM-dd") private LocalDate dueDate; @JsonbProperty("invoice_number") private String invoiceNumber; @JsonbProperty("line_items") private List lineItems; @JsonbProperty("exchange_rate") private double exchangeRate; @JsonbProperty("place_of_supply") private String placeOfSupply; private double total; // Getter und Setter public String getInvoiceId() { return invoiceId; } public void setInvoiceId(String invoiceId) { this.invoiceId = invoiceId; } public String getCustomerId() { return customerId; } public void setCustomerId(String customerId) { this.customerId = customerId; } public LocalDate getDate() { return date; } public void setDate(LocalDate date) { this.date = date; } public LocalDate getDueDate() { return dueDate; } public void setDueDate(LocalDate duedate) { this.dueDate = duedate; } public String getInvoiceNumber() { return invoiceNumber; } public void setInvoiceNumber(String invoiceNumber) { this.invoiceNumber = invoiceNumber; } public List getLineItems() { return lineItems; } public void setLineItems(List lineItems) { this.lineItems = lineItems; } public double getTotal() { return total; } public void setTotal(double total) { this.total = total; } public String getCurrencyId() { return currencyId; } public void setCurrencyId(String currencyId) { this.currencyId = currencyId; } public double getExchangeRate() { return exchangeRate; } public void setExchangeRate(double exchangeRate) { this.exchangeRate = exchangeRate; } public String getPlaceOfSupply() { return placeOfSupply; } public void setPlaceOfSupply(String placeOfSupply) { this.placeOfSupply = placeOfSupply; } }