OfferResponseDTO.java

package com.tradecloud.dto.external;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class OfferResponseDTO extends OfferBaseDTO {
    private long id;
    private String created;
    private String expires;
    private OfferState offerState;
    private String totalVolume;
    private String totalWeight;
    private AirFreight offerAirfreight;
    private SeaFreight offerSeafreight;
    private List<KNProduct> products;
    private String currency;
    private BookingResponseExtDTO booking;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCreated() {
        return created;
    }

    public String getExpires() {
        return expires;
    }

    public void setExpires(String expires) {
        this.expires = expires;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getTotalVolume() {
        return totalVolume;
    }

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

    public String getTotalWeight() {
        return totalWeight;
    }

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

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public OfferState getOfferState() {
        return offerState;
    }

    public void setOfferState(OfferState offerState) {
        this.offerState = offerState;
    }

    public AirFreight getOfferAirfreight() {
        return offerAirfreight;
    }

    public void setOfferAirfreight(AirFreight offerAirfreight) {
        this.offerAirfreight = offerAirfreight;
    }

    public SeaFreight getOfferSeafreight() {
        return offerSeafreight;
    }

    public void setOfferSeafreight(SeaFreight offerSeafreight) {
        this.offerSeafreight = offerSeafreight;
    }

    @Override
    public String toString() {
        return "Offer Response: [totalVolume = " + totalVolume
                + ", totalWeight = " + totalWeight
                + ", currency = " + currency + "]";
    }

    public enum OfferState {
        CREATED, CANCELLED, BOOKED, TRACKING
    }

    public List<KNProduct> getProducts() {
        return products;
    }

    public void setProducts(List<KNProduct> products) {
        this.products = products;
    }

    public BookingResponseExtDTO getBooking() {
        return booking;
    }

    public void setBooking(BookingResponseExtDTO booking) {
        this.booking = booking;
    }
}