LinkOrderDTO.java
package com.tradecloud.dto.api.shipment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
@ApiModel(description = "Use For linking order to shipment")
public class LinkOrderDTO {
@ApiModelProperty(required = true,value = "order that is to be linked to shipment")
private String orderReference;
public LinkOrderDTO() {
}
public LinkOrderDTO(String orderReference) {
this.orderReference = orderReference;
}
public String getOrderReference() {
return orderReference;
}
public void setOrderReference(String orderReference) {
this.orderReference = orderReference;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
LinkOrderDTO that = (LinkOrderDTO) o;
return Objects.equals(orderReference, that.orderReference);
}
@Override
public int hashCode() {
return Objects.hash(orderReference);
}
}