ShipmentClearingPageReportSummaryDTO.java
package com.tradecloud.dto.shipment.actualunitcosting;
import javax.xml.bind.annotation.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ShipmentClearingPageReportSummaryDTO")
public class ShipmentClearingPageReportSummaryDTO {
@XmlElementWrapper(name = "items")
@XmlElement(name = "item")
private List<ItemValueDTO> items;
@XmlElementWrapper(name = "totals")
@XmlElement(name = "total")
private Map<String, BigDecimal> totals;
@XmlAttribute
private BigDecimal pageTotal;
@XmlElementWrapper(name = "dutyTotals")
@XmlElement(name = "dutyTotal")
private Map<String, ItemValueDTO> dutyTotals;
public List<ItemValueDTO> getItems() {
if (items == null) {
items = new ArrayList<>();
}
return items;
}
public void setItems(List<ItemValueDTO> items) {
this.items = items;
}
public Map<String, BigDecimal> getTotals() {
if (totals == null) {
totals = new HashMap<>();
}
return totals;
}
public void setTotals(Map<String, BigDecimal> totals) {
this.totals = totals;
}
public BigDecimal getPageTotal() {
return pageTotal;
}
public void setPageTotal(BigDecimal pageTotal) {
this.pageTotal = pageTotal;
}
public Map<String, ItemValueDTO> getDutyTotals() {
if (dutyTotals == null) {
dutyTotals = new HashMap<>();
}
return dutyTotals;
}
public void setDutyTotals(Map<String, ItemValueDTO> dutyTotals) {
this.dutyTotals = dutyTotals;
}
}