|
|
|
@ -48,12 +48,20 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 전문길이 set
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
//@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "TR Code", example = " ")
|
|
|
|
|
//@Size(min = 10, max = 10, message = "트랜잭션 코드는 10자리 입니다.")
|
|
|
|
|
private String trCode = StringUtils.EMPTY;
|
|
|
|
|
public void setTrCode(String trCode) {
|
|
|
|
|
this.trCode = StringUtils.leftPad(nvl(trCode), 10, StringUtils.SPACE);
|
|
|
|
|
private String trnscId = StringUtils.EMPTY;
|
|
|
|
|
public void setTrnscId(String trnscId) {
|
|
|
|
|
this.trnscId = StringUtils.leftPad(nvl(trnscId), 10, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* nice sms 발송 요청 ID - 업무 PK
|
|
|
|
|
*/
|
|
|
|
|
private String niceSmsSndngRequstId;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* data_id
|
|
|
|
|
*/
|
|
|
|
|
private String dataId;
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
@ -62,24 +70,6 @@ public class NiceCiApiDTO {
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
|
|
@Valid
|
|
|
|
|
NiceCiApiCommon niceCommon;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
|
* 공란 - 16 자리
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "공란", example = " ")
|
|
|
|
|
@Size(min = 16, max = 16, message = "공란(16자리)")
|
|
|
|
|
private String commonEmptyField = StringUtils.rightPad(StringUtils.EMPTY, 16, StringUtils.SPACE);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
|
* 조회동의사유 코드 : 4
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "조회동의사유", example = "4")
|
|
|
|
|
@Size(min = 1, max = 1, message = "조회동의사유는 1자리 입니다")
|
|
|
|
|
private String queryConsentReason = "4";
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// 공통부 : 100 자리
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
@ -94,9 +84,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "조회사유", example = " ")
|
|
|
|
|
@Size(min = 2, max = 2, message = "조회사유는 2자리 입니다")
|
|
|
|
|
private String queryReason = "17";
|
|
|
|
|
public void setQueryReason(String queryReason) {
|
|
|
|
|
this.queryReason = StringUtils.rightPad(nvl(queryReason), 2, StringUtils.SPACE);
|
|
|
|
|
private String inqireResn = "17";
|
|
|
|
|
public void setInqireResn(String inqireResn) {
|
|
|
|
|
this.inqireResn = StringUtils.rightPad(nvl(inqireResn), 2, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -107,9 +97,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "조회요청건수", example = " ")
|
|
|
|
|
@Pattern(regexp = "^\\s{2}$|\\d{1,2}", message = "조회요청 최대건수는 48입니다(2자리)")
|
|
|
|
|
private String queryReqCnt = "01";
|
|
|
|
|
public void setQueryReqCnt(Integer queryReqCnt) {
|
|
|
|
|
this.queryReqCnt = StringUtils.leftPad(nvl(queryReqCnt == null? "": queryReqCnt.toString()), 2, "0");
|
|
|
|
|
private String inqireRequstCo = "01";
|
|
|
|
|
public void setInqireRequstCo(Integer inqireRequstCo) {
|
|
|
|
|
this.inqireRequstCo = StringUtils.leftPad(nvl(inqireRequstCo == null? "": inqireRequstCo.toString()), 2, "0");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -124,7 +114,7 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "SMS발송요청구분코드", example = " ", allowableValues = {"0", "1", "2", "3"})
|
|
|
|
|
@Pattern(regexp = "[0-3]", message = "SMS발송요청구분코드 0 ~ 3 입니다(1자리)")
|
|
|
|
|
private String smsSndReqCode = "3";
|
|
|
|
|
private String smsSndngRequstSe = "3";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -134,9 +124,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "SMS 발송메세지", example = " ")
|
|
|
|
|
@Pattern(regexp = "^[\\s\\S]{10,2000}$", message = "SMS발송메세지는 10 ~ 2000자리 입니다")
|
|
|
|
|
private String sndMessage = StringUtils.rightPad(StringUtils.EMPTY, 2000, StringUtils.SPACE);
|
|
|
|
|
public void setSndMessage(String sndMessage) {
|
|
|
|
|
this.sndMessage = NiceCiUtils.rightPadKr(nvl(sndMessage), 2000, StringUtils.SPACE);
|
|
|
|
|
private String sndngMssage = StringUtils.rightPad(StringUtils.EMPTY, 2000, StringUtils.SPACE);
|
|
|
|
|
public void setSndngMssage(String sndngMssage) {
|
|
|
|
|
this.sndngMssage = NiceCiUtils.rightPadKr(nvl(sndngMssage), 2000, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -147,9 +137,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "SMS 발신번호", example = " ")
|
|
|
|
|
@Pattern(regexp = "^[\\s\\S]{3,12}$", message = "SMS 발신번호는 3 ~ 12자리 입니다")
|
|
|
|
|
private String sndPhoneNo = StringUtils.rightPad("0442113377", 12, StringUtils.SPACE);
|
|
|
|
|
public void setSndPhoneNo(String sndPhoneNo) {
|
|
|
|
|
this.sndPhoneNo = StringUtils.rightPad(nvl(sndPhoneNo), 12, StringUtils.SPACE);
|
|
|
|
|
private String dsptchNo = StringUtils.rightPad("0442113377", 12, StringUtils.SPACE);
|
|
|
|
|
public void setDsptchNo(String dsptchNo) {
|
|
|
|
|
this.dsptchNo = StringUtils.rightPad(nvl(dsptchNo), 12, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -163,7 +153,7 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "연락처조회구분코드", example = " ", allowableValues = {"1", "2", "3"})
|
|
|
|
|
@Pattern(regexp = "[1-3]", message = "연락처조회구분 코드는 1 ~ 3 입니다(1자리)")
|
|
|
|
|
private String contactSearchCode = "3";
|
|
|
|
|
private String cttpcInqireSe = "3";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -175,7 +165,7 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "알림톡발송요청구분", example = " ")
|
|
|
|
|
@Size(min = 1, max = 1, message = "알림톡발송요청구분 코드는 1자리 입니다")
|
|
|
|
|
private String alimtalkSndReqDiv = "1";
|
|
|
|
|
private String ntcntalkSndngRequstSe = "1";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -184,9 +174,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "알림톡템플릿코드", example = " ")
|
|
|
|
|
@Size(min = 100, max = 100, message = "알림톡템플릿 코드는 100자리 입니다")
|
|
|
|
|
private String alimtalkTmpltCode = StringUtils.rightPad(StringUtils.EMPTY, 100, StringUtils.SPACE);
|
|
|
|
|
public void setAlimtalkTmpltCode(String alimtalkTmpltCode) {
|
|
|
|
|
this.alimtalkTmpltCode = StringUtils.rightPad(nvl(alimtalkTmpltCode), 100, StringUtils.SPACE);
|
|
|
|
|
private String ntcntalkTmplatCode = StringUtils.rightPad(StringUtils.EMPTY, 100, StringUtils.SPACE);
|
|
|
|
|
public void setNtcntalkTmplatCode(String ntcntalkTmplatCode) {
|
|
|
|
|
this.ntcntalkTmplatCode = StringUtils.rightPad(nvl(ntcntalkTmplatCode), 100, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -197,9 +187,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "버튼요청건수", example = " ")
|
|
|
|
|
@Pattern(regexp = "^[0-5]$", message = "버튼요청건수는 1자리로 최대 5 입니다.")
|
|
|
|
|
private String btnReqCnt = "1";
|
|
|
|
|
public void setBtnReqCnt(Integer btnReqCnt) {
|
|
|
|
|
this.btnReqCnt = StringUtils.rightPad(nvl(btnReqCnt == null ? "" : btnReqCnt.toString()), 1, StringUtils.SPACE);
|
|
|
|
|
private String bttonRequstCo = "1";
|
|
|
|
|
public void setBttonRequstCo(Integer bttonRequstCo) {
|
|
|
|
|
this.bttonRequstCo = StringUtils.rightPad(nvl(bttonRequstCo == null ? "" : bttonRequstCo.toString()), 1, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -209,7 +199,7 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "공란", example = " ")
|
|
|
|
|
@Size(min = 880, max = 880, message = "공란(880자리)")
|
|
|
|
|
private String privateEmptyField = StringUtils.rightPad(StringUtils.EMPTY, 880, StringUtils.SPACE);
|
|
|
|
|
private String indvdlzRequstBlnk = StringUtils.rightPad(StringUtils.EMPTY, 880, StringUtils.SPACE);
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// 개별요청부 : 3000 자리
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
@ -235,20 +225,18 @@ public class NiceCiApiDTO {
|
|
|
|
|
//sb.append(trCode);
|
|
|
|
|
// 공통부
|
|
|
|
|
sb.append(niceCommon.ofString());
|
|
|
|
|
sb.append(commonEmptyField);
|
|
|
|
|
sb.append(queryConsentReason);
|
|
|
|
|
|
|
|
|
|
// 개별요청부
|
|
|
|
|
sb.append(queryReason);
|
|
|
|
|
sb.append(queryReqCnt);
|
|
|
|
|
sb.append(smsSndReqCode);
|
|
|
|
|
sb.append(sndMessage);
|
|
|
|
|
sb.append(sndPhoneNo);
|
|
|
|
|
sb.append(contactSearchCode);
|
|
|
|
|
sb.append(alimtalkSndReqDiv);
|
|
|
|
|
sb.append(alimtalkTmpltCode);
|
|
|
|
|
sb.append(btnReqCnt);
|
|
|
|
|
sb.append(privateEmptyField);
|
|
|
|
|
sb.append(inqireResn);
|
|
|
|
|
sb.append(inqireRequstCo);
|
|
|
|
|
sb.append(smsSndngRequstSe);
|
|
|
|
|
sb.append(sndngMssage);
|
|
|
|
|
sb.append(dsptchNo);
|
|
|
|
|
sb.append(cttpcInqireSe);
|
|
|
|
|
sb.append(ntcntalkSndngRequstSe);
|
|
|
|
|
sb.append(ntcntalkTmplatCode);
|
|
|
|
|
sb.append(bttonRequstCo);
|
|
|
|
|
sb.append(indvdlzRequstBlnk);
|
|
|
|
|
sb.append(queryRequests.stream().map(QueryRequest::ofString).collect(Collectors.joining()));
|
|
|
|
|
sb.append(buttonRequests.stream().map(ButtonRequest::ofString).collect(Collectors.joining()));
|
|
|
|
|
// FIXME: 인코딩확인후 적용
|
|
|
|
@ -264,6 +252,11 @@ public class NiceCiApiDTO {
|
|
|
|
|
public static class Response implements Serializable {
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* nice sms 발송 요청 ID - 업무 PK
|
|
|
|
|
*/
|
|
|
|
|
private String niceSmsSndngRequstId;
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// TR-CODE : 0 ~ 9 자리
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
@ -273,25 +266,15 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 회원사 고유키 - 요청시 필수 max: 9
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String trCode;
|
|
|
|
|
public void setTrCode(String trCode) {
|
|
|
|
|
this.trCode = StringUtils.trim(trCode);
|
|
|
|
|
private String trnscId;
|
|
|
|
|
public void setTrnscId(String trnscId) {
|
|
|
|
|
this.trnscId = StringUtils.trim(trnscId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// 공통부 : 100 자리
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
NiceCiApiCommon niceCommon;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
|
* 공란 - 16 자리
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String commonEmptyField;
|
|
|
|
|
public void setCommonEmptyField(String commonEmptyField) {
|
|
|
|
|
this.commonEmptyField = StringUtils.trim(commonEmptyField);
|
|
|
|
|
}
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// 공통부 : 100 자리
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
@ -305,9 +288,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 최대 48
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String resCnt;
|
|
|
|
|
public void setResCnt(String resCnt) {
|
|
|
|
|
this.resCnt = StringUtils.trim(resCnt);
|
|
|
|
|
private String rspnsCo;
|
|
|
|
|
public void setRspnsCo(String rspnsCo) {
|
|
|
|
|
this.rspnsCo = StringUtils.trim(rspnsCo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -320,9 +303,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 3: 1 ~ 3 순위 연락처중 최우선순위 1개로 발송
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String smsSndReqCode;
|
|
|
|
|
private String smsSndngRequstSe;
|
|
|
|
|
public void setSmsSndReq(String smsSndReqCode) {
|
|
|
|
|
this.smsSndReqCode = StringUtils.trim(smsSndReqCode);
|
|
|
|
|
this.smsSndngRequstSe = StringUtils.trim(smsSndReqCode);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -332,9 +315,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
* NiceCiUtils.leftKr, substringKr 메소드 사용
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String sndMessage;
|
|
|
|
|
public void setSndMessage(String sndMessage) {
|
|
|
|
|
this.sndMessage = StringUtils.trim(sndMessage);
|
|
|
|
|
private String sndngMssage;
|
|
|
|
|
public void setSndngMssage(String sndngMssage) {
|
|
|
|
|
this.sndngMssage = StringUtils.trim(sndngMssage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -343,9 +326,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 발송요청구분(smsSndReqCode)가 1, 2, 3인 경우 필수
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String sndPhoneNo;
|
|
|
|
|
public void setSndPhoneNo(String sndPhoneNo) {
|
|
|
|
|
this.sndPhoneNo = StringUtils.trim(sndPhoneNo);
|
|
|
|
|
private String dsptchNo;
|
|
|
|
|
public void setDsptchNo(String dsptchNo) {
|
|
|
|
|
this.dsptchNo = StringUtils.trim(dsptchNo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -357,16 +340,16 @@ public class NiceCiApiDTO {
|
|
|
|
|
* 3: 3순위 이내 조회
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String contactSearchCode = "3";
|
|
|
|
|
private String cttpcInqireSe = "3";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
|
* 공란 - 84 자리
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private String privateEmptyField;
|
|
|
|
|
public void setPrivateEmptyField(String privateEmptyField) {
|
|
|
|
|
this.privateEmptyField = StringUtils.trim(privateEmptyField);
|
|
|
|
|
private String indvdlzRspnsBlnk;
|
|
|
|
|
public void setIndvdlzRspnsBlnk(String indvdlzRspnsBlnk) {
|
|
|
|
|
this.indvdlzRspnsBlnk = StringUtils.trim(indvdlzRspnsBlnk);
|
|
|
|
|
}
|
|
|
|
|
//----------------------------------------------------------------------------------------------
|
|
|
|
|
// 개별응답부 : 2100 자리
|
|
|
|
@ -384,9 +367,8 @@ public class NiceCiApiDTO {
|
|
|
|
|
final int repeatLength = 110;
|
|
|
|
|
final int[] parseLength = {
|
|
|
|
|
10, // tr-code
|
|
|
|
|
83, // 공통부
|
|
|
|
|
100, // 공통부
|
|
|
|
|
// FIXME: spec과 상이 - 확인 필요 : "1"이 들어오고 있다
|
|
|
|
|
17, // 공란
|
|
|
|
|
2, // 응답건수
|
|
|
|
|
1, // SMS발송요청구분코드
|
|
|
|
|
2000, // SMS 발송메세지
|
|
|
|
@ -400,31 +382,28 @@ public class NiceCiApiDTO {
|
|
|
|
|
if (StringUtils.isNotBlank(tgtString) && NiceCiUtils.lengthKr(tgtString) >= 2320) {
|
|
|
|
|
Response response = new Response();
|
|
|
|
|
int idx = 0;
|
|
|
|
|
response.setTrCode(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setTrnscId(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setNiceCommon(NiceCiApiCommon.parse(tgtString));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setCommonEmptyField(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setResCnt(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setRspnsCo(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setSmsSndReqCode(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setSmsSndngRequstSe(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setSndMessage(NiceCiUtils.leftKr(tgtString, parseLength[idx]));
|
|
|
|
|
response.setSndngMssage(NiceCiUtils.leftKr(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = NiceCiUtils.substringKr(tgtString, parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setSndPhoneNo(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setDsptchNo(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setContactSearchCode(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setCttpcInqireSe(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx++]);
|
|
|
|
|
|
|
|
|
|
response.setPrivateEmptyField(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
response.setIndvdlzRspnsBlnk(StringUtils.left(tgtString, parseLength[idx]));
|
|
|
|
|
tgtString = tgtString.substring(parseLength[idx]);
|
|
|
|
|
|
|
|
|
|
if(NiceCiUtils.lengthKr(tgtString) % repeatLength == 0){
|
|
|
|
@ -457,7 +436,7 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "개인/사업자/법인구분", example = "1")
|
|
|
|
|
@Size(min = 1, max = 1, message = "개인/사업자/법인구분은 1자리 입니다.")
|
|
|
|
|
private String idDiv = "1";
|
|
|
|
|
private String indvdlBsnmCprSe = "1";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>
|
|
|
|
@ -466,9 +445,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "주민번호", example = " ")
|
|
|
|
|
@Size(min = 13, max = 13, message = "주민번호는 13자리 입니다.")
|
|
|
|
|
private String jumin = StringUtils.rightPad(StringUtils.EMPTY, 13, StringUtils.SPACE);
|
|
|
|
|
public void setJumin(String jumin) {
|
|
|
|
|
this.jumin = StringUtils.rightPad(nvl(jumin), 13, StringUtils.SPACE);
|
|
|
|
|
private String ihidnum = StringUtils.rightPad(StringUtils.EMPTY, 13, StringUtils.SPACE);
|
|
|
|
|
public void setIhidnum(String ihidnum) {
|
|
|
|
|
this.ihidnum = StringUtils.rightPad(nvl(ihidnum), 13, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -478,13 +457,13 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "공란", example = " ")
|
|
|
|
|
@Size(min = 36, max = 36, message = "공란(36자리)")
|
|
|
|
|
private String emptyField = StringUtils.rightPad(StringUtils.EMPTY, 36, StringUtils.SPACE);
|
|
|
|
|
private String inqireRequstBlnk = StringUtils.rightPad(StringUtils.EMPTY, 36, StringUtils.SPACE);
|
|
|
|
|
|
|
|
|
|
public String ofString() {
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
sb.append(idDiv);
|
|
|
|
|
sb.append(jumin);
|
|
|
|
|
sb.append(emptyField);
|
|
|
|
|
sb.append(indvdlBsnmCprSe);
|
|
|
|
|
sb.append(ihidnum);
|
|
|
|
|
sb.append(inqireRequstBlnk);
|
|
|
|
|
return sb.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -502,9 +481,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, title = "버튼타입", example = " ", allowableValues = {"WL", "AL"})
|
|
|
|
|
@Pattern(regexp = "[WL|AL]", message = "버튼 타입은 2자리 입니다.")
|
|
|
|
|
private String btnType = "WL";
|
|
|
|
|
public void setBtnType(String btnType) {
|
|
|
|
|
this.btnType = StringUtils.rightPad(nvl(btnType), 2, StringUtils.SPACE);
|
|
|
|
|
private String bttonTy = "WL";
|
|
|
|
|
public void setBttonTy(String bttonTy) {
|
|
|
|
|
this.bttonTy = StringUtils.rightPad(nvl(bttonTy), 2, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -514,9 +493,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "버튼이름", example = "1")
|
|
|
|
|
@Size(min = 56, max = 56, message = "버튼이름은 56자리 입니다.")
|
|
|
|
|
private String btnName = StringUtils.rightPad("납부하기", 56, StringUtils.SPACE);
|
|
|
|
|
public void setBtnName(String jumin) {
|
|
|
|
|
this.btnName = StringUtils.rightPad(nvl(btnName), 56, StringUtils.SPACE);
|
|
|
|
|
private String bttonNm = NiceCiUtils.rightPadKr("납부하기", 56, StringUtils.SPACE);
|
|
|
|
|
public void setBttonNm(String bttonNm) {
|
|
|
|
|
this.bttonNm = NiceCiUtils.rightPadKr(nvl(bttonNm), 56, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -527,12 +506,12 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "버튼URL웹링크1", example = " ")
|
|
|
|
|
@Size(min = 1000, max = 1000, message = "버튼URL웹링크1 은 1000자리 입니다.")
|
|
|
|
|
private String btnUrlWebLink1 = StringUtils.rightPad(
|
|
|
|
|
private String bttonUrlWebLink_1 = StringUtils.rightPad(
|
|
|
|
|
"https://billgates-web.kakao.com/r/platform/pages/paynow/search/1832/11/01819e09-8b4c-4287-9f0f-1c5c2df80bf0",
|
|
|
|
|
1000,
|
|
|
|
|
StringUtils.SPACE);
|
|
|
|
|
public void setBtnUrlWebLink1(String btnUrlWebLink1) {
|
|
|
|
|
this.btnUrlWebLink1 = StringUtils.rightPad(nvl(btnUrlWebLink1), 1000, StringUtils.SPACE);
|
|
|
|
|
public void setBttonUrlWebLink_1(String bttonUrlWebLink_1) {
|
|
|
|
|
this.bttonUrlWebLink_1 = StringUtils.rightPad(nvl(bttonUrlWebLink_1), 1000, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -543,9 +522,9 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "버튼URL웹링크2", example = " ")
|
|
|
|
|
@Size(min = 1000, max = 1000, message = "버튼URL웹링크2 은 1000자리 입니다.")
|
|
|
|
|
private String btnUrlWebLink2 = StringUtils.rightPad(StringUtils.EMPTY, 1000, StringUtils.SPACE);
|
|
|
|
|
public void setBtnUrlWebLink2(String btnUrlWebLink2) {
|
|
|
|
|
this.btnUrlWebLink2 = StringUtils.rightPad(nvl(btnUrlWebLink2), 1000, StringUtils.SPACE);
|
|
|
|
|
private String bttonUrlWebLink_2 = StringUtils.rightPad(StringUtils.EMPTY, 1000, StringUtils.SPACE);
|
|
|
|
|
public void setBttonUrlWebLink_2(String bttonUrlWebLink_2) {
|
|
|
|
|
this.bttonUrlWebLink_2 = StringUtils.rightPad(nvl(bttonUrlWebLink_2), 1000, StringUtils.SPACE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -555,15 +534,15 @@ public class NiceCiApiDTO {
|
|
|
|
|
*/
|
|
|
|
|
@Schema(title = "공란", example = " ")
|
|
|
|
|
@Size(min = 942, max = 942, message = "공란(36자리)")
|
|
|
|
|
private String emptyField = StringUtils.rightPad(StringUtils.EMPTY, 942, StringUtils.SPACE);
|
|
|
|
|
private String bttonRequstBlnk = StringUtils.rightPad(StringUtils.EMPTY, 942, StringUtils.SPACE);
|
|
|
|
|
|
|
|
|
|
public String ofString() {
|
|
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
|
sb.append(btnType);
|
|
|
|
|
sb.append(btnName);
|
|
|
|
|
sb.append(btnUrlWebLink1);
|
|
|
|
|
sb.append(btnUrlWebLink2);
|
|
|
|
|
sb.append(emptyField);
|
|
|
|
|
sb.append(bttonTy);
|
|
|
|
|
sb.append(bttonNm);
|
|
|
|
|
sb.append(bttonUrlWebLink_1);
|
|
|
|
|
sb.append(bttonUrlWebLink_2);
|
|
|
|
|
sb.append(bttonRequstBlnk);
|
|
|
|
|
return sb.toString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|