|
|
|
@ -10,14 +10,17 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
|
|
|
|
import javax.xml.bind.annotation.XmlElement;
|
|
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
|
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
|
import kr.xit.core.model.IApiResponse;
|
|
|
|
|
import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.Builder;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
import lombok.Getter;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
import lombok.Setter;
|
|
|
|
|
import lombok.experimental.SuperBuilder;
|
|
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -82,6 +85,7 @@ public class EPostDTO {
|
|
|
|
|
@Setter
|
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
|
|
|
@XmlRootElement(name = "response")
|
|
|
|
|
@Builder
|
|
|
|
|
public static class EpostTraceResponse implements IApiResponse {
|
|
|
|
|
|
|
|
|
|
@Schema(requiredMode = RequiredMode.REQUIRED)
|
|
|
|
@ -91,6 +95,13 @@ public class EPostDTO {
|
|
|
|
|
@Schema(requiredMode = RequiredMode.REQUIRED)
|
|
|
|
|
@XmlElement(name = "trackInfo")
|
|
|
|
|
private EpostTraceResTrackInfo trackInfo;
|
|
|
|
|
|
|
|
|
|
public EpostTraceResTrackInfo result(){
|
|
|
|
|
if("N".equals(this.header.successYN)){
|
|
|
|
|
throw BizRuntimeException.create(this.header.errorMessage);
|
|
|
|
|
}
|
|
|
|
|
return this.trackInfo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -149,6 +160,7 @@ public class EPostDTO {
|
|
|
|
|
@Setter
|
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
|
|
|
@XmlRootElement(name = "trackInfo")
|
|
|
|
|
@Builder
|
|
|
|
|
public static class EpostTraceResTrackInfo {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|