ShipmentOrdersDTO.java

package com.tradecloud.dto.api.shipment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(description = "Use for linking/un-linking orders to shipment")
public class ShipmentOrdersDTO {
    @ApiModelProperty(required = true,value = "shipment reference")
    private String reference;
    @ApiModelProperty(value = "List of orders to link to shipment",notes = "for un-linking order should not be included in the list")
    private List<LinkOrderDTO> orders;

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public List<LinkOrderDTO> getOrders() {
        return orders;
    }

    public void setOrders(List<LinkOrderDTO> orders) {
        this.orders = orders;
    }
}