ProFormaInvoiceDTO.java
package com.tradecloud.dto.consignment;
import com.tradecloud.dto.order.XmlAdapterDate;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* Created by ds on 2015/12/03.
*/
@XmlRootElement(name = "ProFromaInvoiceDTO")
@XmlAccessorType(XmlAccessType.FIELD)
public class ProFormaInvoiceDTO {
@XmlElement(name = "ProFromaInvoiceCostlineDTOList")
private List<ProFromaInvoiceCostlineDTO> proFromaInvoiceCostlineDTOList;
@XmlAttribute
private String currency;
@XmlAttribute
private String notes;
@XmlAttribute
private int lineItemCount;
@XmlAttribute
private int costLineCount;
@XmlAttribute
private String lastInvoiceLineItemCode;
@XmlAttribute
private BigDecimal total;
@XmlJavaTypeAdapter(value = XmlAdapterDate.class, type = java.util.Date.class)
private Date consignmentDate;
@XmlAttribute
private String proFormaNumber;
@XmlAttribute
private String exporterName;
@XmlAttribute
private String vat;
@XmlAttribute
private String customsCode;
@XmlAttribute
private String exporterAdress;
@XmlAttribute
private String countryOfDestination;
@XmlAttribute
private String paymentMethod;
@XmlAttribute
private String consigneeName;
@XmlAttribute
private String consigneeAdress;
@XmlAttribute
private String buyerReference;
@XmlAttribute
private String title;
@XmlAttribute
private String exporterReference;
@XmlAttribute
private String placeOfLoading;
@XmlAttribute
private String placeOfDischarge;
@XmlAttribute
private String paymentTerm;
@XmlElement(name = "ProformaInvoiceItemDTO")
private List<ProformaInvoiceItemDTO> proformaInvoiceItemDTOs;
@XmlAttribute
private String incoterm;
@XmlAttribute
private String incotermName;
@XmlAttribute
private String namedPlace;
@XmlAttribute
private String shippingMode;
@XmlAttribute
private String countryOfExport;
@XmlAttribute
private String contactString;
@XmlAttribute
private boolean displayCustomCode;
@XmlAttribute
private String exportPartyReference;
@XmlElement(name = "ProformaInvoiceTermsAndConditionsDTOList")
private List<ProformaInvoiceTermsAndConditionsDTO> proformaInvoiceTermsAndConditionsDTOList;
public String getContactString() {
return contactString;
}
public void setContactString(String contactString) {
this.contactString = contactString;
}
public List<ProFromaInvoiceCostlineDTO> getProFromaInvoiceCostlineDTOList() {
return proFromaInvoiceCostlineDTOList;
}
public void setProFromaInvoiceCostlineDTOList(List<ProFromaInvoiceCostlineDTO> proFromaInvoiceCostlineDTOList) {
this.proFromaInvoiceCostlineDTOList = proFromaInvoiceCostlineDTOList;
}
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public String getNotes() {
return notes;
}
public void setNotes(String notes) {
this.notes = notes;
}
public BigDecimal getTotal() {
return total;
}
public void setTotal(BigDecimal total) {
this.total = total;
}
public Date getConsignmentDate() {
return consignmentDate;
}
public void setConsignmentDate(Date consignmentDate) {
this.consignmentDate = consignmentDate;
}
public String getProFormaNumber() {
return proFormaNumber;
}
public void setProFormaNumber(String proFormaNumber) {
this.proFormaNumber = proFormaNumber;
}
public String getExporterName() {
return exporterName;
}
public void setExporterName(String exporterName) {
this.exporterName = exporterName;
}
public String getVat() {
return vat;
}
public void setVat(String vat) {
this.vat = vat;
}
public String getCustomsCode() {
return customsCode;
}
public void setCustomsCode(String customsCode) {
this.customsCode = customsCode;
}
public String getExporterAdress() {
return exporterAdress;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public void setExporterAdress(String exporterAdress) {
this.exporterAdress = exporterAdress;
}
public String getCountryOfDestination() {
return countryOfDestination;
}
public void setCountryOfDestination(String countryOfDestination) {
this.countryOfDestination = countryOfDestination;
}
public String getPaymentMethod() {
return paymentMethod;
}
public void setPaymentMethod(String paymentMethod) {
this.paymentMethod = paymentMethod;
}
public String getConsigneeName() {
return consigneeName;
}
public void setConsigneeName(String consigneeName) {
this.consigneeName = consigneeName;
}
public String getConsigneeAdress() {
return consigneeAdress;
}
public void setConsigneeAdress(String consigneeAdress) {
this.consigneeAdress = consigneeAdress;
}
public String getBuyerReference() {
return buyerReference;
}
public void setBuyerReference(String buyerReference) {
this.buyerReference = buyerReference;
}
public String getExporterReference() {
return exporterReference;
}
public void setExporterReference(String exporterReference) {
this.exporterReference = exporterReference;
}
public String getPlaceOfLoading() {
return placeOfLoading;
}
public void setPlaceOfLoading(String placeOfLoading) {
this.placeOfLoading = placeOfLoading;
}
public String getPlaceOfDischarge() {
return placeOfDischarge;
}
public void setPlaceOfDischarge(String placeOfDischarge) {
this.placeOfDischarge = placeOfDischarge;
}
public List<ProformaInvoiceItemDTO> getProformaInvoiceItemDTOs() {
return proformaInvoiceItemDTOs;
}
public void setProformaInvoiceItemDTOs(List<ProformaInvoiceItemDTO> proformaInvoiceItemDTOs) {
this.proformaInvoiceItemDTOs = proformaInvoiceItemDTOs;
}
public String getPaymentTerm() {
return paymentTerm;
}
public void setPaymentTerm(String paymentTerm) {
this.paymentTerm = paymentTerm;
}
public String getIncoterm() {
return incoterm;
}
public void setIncoterm(String incoterm) {
this.incoterm = incoterm;
}
public String getNamedPlace() {
return namedPlace;
}
public void setNamedPlace(String namedPlace) {
this.namedPlace = namedPlace;
}
public String getShippingMode() {
return shippingMode;
}
public void setShippingMode(String shippingMode) {
this.shippingMode = shippingMode;
}
public String getCountryOfExport() {
return countryOfExport;
}
public void setCountryOfExport(String countryOfExport) {
this.countryOfExport = countryOfExport;
}
public String getIncotermName() {
return incotermName;
}
public void setIncotermName(String incotermName) {
this.incotermName = incotermName;
}
public boolean isDisplayCustomCode() {
return displayCustomCode;
}
public void setDisplayCustomCode(boolean displayCustomCode) {
this.displayCustomCode = displayCustomCode;
}
public String getExportPartyReference() {
return exportPartyReference;
}
public void setExportPartyReference(String exportPartyReference) {
this.exportPartyReference = exportPartyReference;
}
public List<ProformaInvoiceTermsAndConditionsDTO> getProformaInvoiceTermsAndConditionsDTOList() {
return proformaInvoiceTermsAndConditionsDTOList;
}
public void setProformaInvoiceTermsAndConditionsDTOList(List<ProformaInvoiceTermsAndConditionsDTO> proformaInvoiceTermsAndConditionsDTOList) {
this.proformaInvoiceTermsAndConditionsDTOList = proformaInvoiceTermsAndConditionsDTOList;
}
public int getLineItemCount() {
return lineItemCount;
}
public void setLineItemCount(int lineItemCount) {
this.lineItemCount = lineItemCount;
}
public int getCostLineCount() {
return costLineCount;
}
public void setCostLineCount(int costLineCount) {
this.costLineCount = costLineCount;
}
public String getLastInvoiceLineItemCode() {
return lastInvoiceLineItemCode;
}
public void setLastInvoiceLineItemCode(String lastInvoiceLineItemCode) {
this.lastInvoiceLineItemCode = lastInvoiceLineItemCode;
}
}