ContainerQuantityDTO.java

package com.tradecloud.dto.order;

import com.tradecloud.schema.ordermanagement.ContainerQuantity;
import io.swagger.annotations.ApiModel;

import java.math.BigDecimal;

@ApiModel
public class ContainerQuantityDTO extends ContainerQuantity {

    private BigDecimal totalVolume;
    private BigDecimal totalWeight;

    public BigDecimal getTotalVolume() {
        return totalVolume;
    }

    public void setTotalVolume(BigDecimal totalVolume) {
        this.totalVolume = totalVolume;
    }

    public BigDecimal getTotalWeight() {
        return totalWeight;
    }

    public void setTotalWeight(BigDecimal totalWeight) {
        this.totalWeight = totalWeight;
    }

    @Override
    public String toString() {
        return "ContainerQuantityDTO{" +
                "totalVolume=" + totalVolume +
                ", totalWeight=" + totalWeight +
                ", content='" + content + '\'' +
                ", type=" + type +
                ", quantity=" + quantity +
                '}';
    }
}