@yolo-croket-dev/amqp-access 0.7.47-jun.11 → 0.7.47-jun.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/order-server/dto/nicepay/command/index.d.ts +1 -0
- package/order-server/dto/nicepay/command/index.js +17 -0
- package/order-server/dto/nicepay/command/issue-billing-key.dto.d.ts +35 -0
- package/order-server/dto/nicepay/command/issue-billing-key.dto.js +16 -0
- package/order-server/dto/nicepay/index.d.ts +1 -0
- package/order-server/dto/nicepay/index.js +1 -0
- package/order-server/services/amqp.nicepay.service.d.ts +3 -1
- package/order-server/services/amqp.nicepay.service.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './issue-billing-key.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./issue-billing-key.dto"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description NicePay 빌링키 발급(인증) 요청 Payload
|
|
3
|
+
* 프론트엔드 NicePay 인증창(goPay) 완료 후 전달받은 인증 결과
|
|
4
|
+
*/
|
|
5
|
+
export declare class IssueBillingKeyPayload {
|
|
6
|
+
/** 거래 ID (프론트엔드 인증 결과의 TxTid) */
|
|
7
|
+
txTid: string;
|
|
8
|
+
/** 인증 Token (프론트엔드 인증 결과의 AuthToken) */
|
|
9
|
+
authToken: string;
|
|
10
|
+
/** 전문생성일시 (YYYYMMDDHHMMSS) */
|
|
11
|
+
ediDate: string;
|
|
12
|
+
/** 위변조 검증 데이터: hex(sha256(TID + MID + EdiDate + MerchantKey)) */
|
|
13
|
+
signData: string;
|
|
14
|
+
/** 응답 인코딩 (euc-kr / utf-8) */
|
|
15
|
+
charSet: string;
|
|
16
|
+
/** 응답 전문 유형 (JSON / KV) */
|
|
17
|
+
ediType: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @description NicePay 빌링키 발급(인증) 응답 Result
|
|
21
|
+
*/
|
|
22
|
+
export declare class IssueBillingKeyResult {
|
|
23
|
+
/** 발급된 빌링키 (BID) */
|
|
24
|
+
bid: string;
|
|
25
|
+
/** 카드사 코드 */
|
|
26
|
+
cardCode: string;
|
|
27
|
+
/** 카드사명 */
|
|
28
|
+
cardName: string;
|
|
29
|
+
/** 마스킹된 카드번호 (예: 12345678****1234) */
|
|
30
|
+
cardNo: string;
|
|
31
|
+
/** 카드 타입 (0: 신용, 1: 체크) */
|
|
32
|
+
cardCl: string;
|
|
33
|
+
/** 빌키 발급일자 (YYYYMMDD) */
|
|
34
|
+
authDate: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssueBillingKeyResult = exports.IssueBillingKeyPayload = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description NicePay 빌링키 발급(인증) 요청 Payload
|
|
6
|
+
* 프론트엔드 NicePay 인증창(goPay) 완료 후 전달받은 인증 결과
|
|
7
|
+
*/
|
|
8
|
+
class IssueBillingKeyPayload {
|
|
9
|
+
}
|
|
10
|
+
exports.IssueBillingKeyPayload = IssueBillingKeyPayload;
|
|
11
|
+
/**
|
|
12
|
+
* @description NicePay 빌링키 발급(인증) 응답 Result
|
|
13
|
+
*/
|
|
14
|
+
class IssueBillingKeyResult {
|
|
15
|
+
}
|
|
16
|
+
exports.IssueBillingKeyResult = IssueBillingKeyResult;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult } from '../dto/nicepay';
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult } from '../dto/nicepay';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description NicePay 관련 AMQP 서비스
|
|
@@ -12,4 +12,6 @@ export declare class AmqpNicepayService {
|
|
|
12
12
|
constructor(client: ClientProxy);
|
|
13
13
|
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
14
14
|
getNicepayBillingAuthForm(payload: GetNicepayBillingAuthFormPayload, param: AbstractParam): Promise<GetNicepayBillingAuthFormResult>;
|
|
15
|
+
/** NicePay 빌링키 발급(인증) */
|
|
16
|
+
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
15
17
|
}
|
|
@@ -30,6 +30,10 @@ let AmqpNicepayService = class AmqpNicepayService {
|
|
|
30
30
|
async getNicepayBillingAuthForm(payload, param) {
|
|
31
31
|
return this.amqpManager.call('NicePay 빌키 발급 인증창 form 데이터 조회', 'nicepay.get.billing-auth-form', payload, param, { isErrorThrowing: true });
|
|
32
32
|
}
|
|
33
|
+
/** NicePay 빌링키 발급(인증) */
|
|
34
|
+
async issueBillingKey(payload, param) {
|
|
35
|
+
return this.amqpManager.call('NicePay 빌링키 발급', 'nicepay.issue.billing-key', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
33
37
|
};
|
|
34
38
|
exports.AmqpNicepayService = AmqpNicepayService;
|
|
35
39
|
exports.AmqpNicepayService = AmqpNicepayService = __decorate([
|