feat: NICE CI accept 진행

NICE CI API 호출
dev
Jonguk. Lim 1 month ago
parent 6492b10934
commit abaeb3bbc3

@ -15,6 +15,7 @@ import cokr.xit.ens.core.exception.*;
import cokr.xit.ens.core.exception.code.*; import cokr.xit.ens.core.exception.code.*;
import cokr.xit.ens.core.utils.*; import cokr.xit.ens.core.utils.*;
import cokr.xit.ens.modules.common.code.*; import cokr.xit.ens.modules.common.code.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.api.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.model.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.model.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.service.process.model.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.kko.service.process.model.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.api.*; import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.api.*;
@ -59,6 +60,7 @@ public class NiceCiAcceptService {
private final INiceCiMapper niceCiMapper; private final INiceCiMapper niceCiMapper;
private final PayUseSysApi payUseSysApi; private final PayUseSysApi payUseSysApi;
private final BillKkoPayApiSpec billKkoPayApi;
private Gson gson = new GsonBuilder().disableHtmlEscaping().create(); private Gson gson = new GsonBuilder().disableHtmlEscaping().create();
@ -207,8 +209,8 @@ public class NiceCiAcceptService {
.build(); .build();
billHistoryService.insertBillHistory(billHistDTO); billHistoryService.insertBillHistory(billHistDTO);
ResponseEntity<String> resEntity = payUseSysApi.payUrl(orgMng.getKkoBpUrlApi(), param, ResponseEntity<String> resEntity = billKkoPayApi.url(orgMng.getKkoBpBillerCode(), orgMng.getKkoBpAuthorization(),
null); gson.toJson(param));
// 마스터 상태 실패처리 // 마스터 상태 실패처리
if(resEntity.getStatusCode() != HttpStatus.OK){ if(resEntity.getStatusCode() != HttpStatus.OK){

Loading…
Cancel
Save