@yolo-croket-dev/amqp-access 0.7.47-jun.10 → 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/amqp.order-server.module.js +2 -0
- package/order-server/dto/index.d.ts +1 -0
- package/order-server/dto/index.js +1 -0
- 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 +2 -0
- package/order-server/dto/nicepay/index.js +18 -0
- package/order-server/dto/nicepay/query/get-nicepay-billing-auth-form.dto.d.ts +23 -0
- package/order-server/dto/nicepay/query/get-nicepay-billing-auth-form.dto.js +15 -0
- package/order-server/dto/nicepay/query/index.d.ts +1 -0
- package/order-server/dto/nicepay/query/index.js +17 -0
- package/order-server/services/amqp.nicepay.service.d.ts +17 -0
- package/order-server/services/amqp.nicepay.service.js +43 -0
- package/order-server/services/index.d.ts +1 -0
- package/order-server/services/index.js +1 -0
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
36
36
|
services_1.AmqpPurchasedInfoCouponService,
|
|
37
37
|
services_1.AmqpNaverSearchAdExcelService,
|
|
38
38
|
services_1.AmqpNaverSearchAdService,
|
|
39
|
+
services_1.AmqpNicepayService,
|
|
39
40
|
],
|
|
40
41
|
exports: [
|
|
41
42
|
amqp_order_server_provider_1.OrderServerProvider,
|
|
@@ -57,6 +58,7 @@ exports.AmqpOrderServerModule = AmqpOrderServerModule = __decorate([
|
|
|
57
58
|
services_1.AmqpPurchasedInfoCouponService,
|
|
58
59
|
services_1.AmqpNaverSearchAdExcelService,
|
|
59
60
|
services_1.AmqpNaverSearchAdService,
|
|
61
|
+
services_1.AmqpNicepayService,
|
|
60
62
|
],
|
|
61
63
|
})
|
|
62
64
|
], AmqpOrderServerModule);
|
|
@@ -21,3 +21,4 @@ __exportStar(require("./data-payment-method"), exports);
|
|
|
21
21
|
__exportStar(require("./direct-payment-tosspayments"), exports);
|
|
22
22
|
__exportStar(require("./changed-purchased-option-log"), exports);
|
|
23
23
|
__exportStar(require("./purchase-receipt"), exports);
|
|
24
|
+
__exportStar(require("./nicepay"), exports);
|
|
@@ -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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./query"), exports);
|
|
18
|
+
__exportStar(require("./command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description NicePay 빌키 발급 인증창 form 데이터 Payload는 빈 객체
|
|
3
|
+
*/
|
|
4
|
+
export declare class GetNicepayBillingAuthFormPayload {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @description NicePay 빌키 발급 인증창 form 파라미터 Result
|
|
8
|
+
*/
|
|
9
|
+
export declare class GetNicepayBillingAuthFormResult {
|
|
10
|
+
GoodsName: string;
|
|
11
|
+
Amt: string;
|
|
12
|
+
MID: string;
|
|
13
|
+
EdiDate: string;
|
|
14
|
+
Moid: string;
|
|
15
|
+
PayMethod: string;
|
|
16
|
+
BillAuthYN: string;
|
|
17
|
+
SignData: string;
|
|
18
|
+
BuyerEmail?: string;
|
|
19
|
+
BuyerTel?: string;
|
|
20
|
+
BuyerName?: string;
|
|
21
|
+
CharSet?: string;
|
|
22
|
+
ReqReserved?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNicepayBillingAuthFormResult = exports.GetNicepayBillingAuthFormPayload = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description NicePay 빌키 발급 인증창 form 데이터 Payload는 빈 객체
|
|
6
|
+
*/
|
|
7
|
+
class GetNicepayBillingAuthFormPayload {
|
|
8
|
+
}
|
|
9
|
+
exports.GetNicepayBillingAuthFormPayload = GetNicepayBillingAuthFormPayload;
|
|
10
|
+
/**
|
|
11
|
+
* @description NicePay 빌키 발급 인증창 form 파라미터 Result
|
|
12
|
+
*/
|
|
13
|
+
class GetNicepayBillingAuthFormResult {
|
|
14
|
+
}
|
|
15
|
+
exports.GetNicepayBillingAuthFormResult = GetNicepayBillingAuthFormResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-nicepay-billing-auth-form.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("./get-nicepay-billing-auth-form.dto"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
2
|
+
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult } from '../dto/nicepay';
|
|
4
|
+
/**
|
|
5
|
+
* @author jun
|
|
6
|
+
* @description NicePay 관련 AMQP 서비스
|
|
7
|
+
* @process order-server의 nicepay 컨트롤러와 RabbitMQ를 통해 통신
|
|
8
|
+
*/
|
|
9
|
+
export declare class AmqpNicepayService {
|
|
10
|
+
private readonly client;
|
|
11
|
+
private readonly amqpManager;
|
|
12
|
+
constructor(client: ClientProxy);
|
|
13
|
+
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
14
|
+
getNicepayBillingAuthForm(payload: GetNicepayBillingAuthFormPayload, param: AbstractParam): Promise<GetNicepayBillingAuthFormResult>;
|
|
15
|
+
/** NicePay 빌링키 발급(인증) */
|
|
16
|
+
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AmqpNicepayService = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
18
|
+
const functions_1 = require("@yolo-croket-dev/core/functions");
|
|
19
|
+
/**
|
|
20
|
+
* @author jun
|
|
21
|
+
* @description NicePay 관련 AMQP 서비스
|
|
22
|
+
* @process order-server의 nicepay 컨트롤러와 RabbitMQ를 통해 통신
|
|
23
|
+
*/
|
|
24
|
+
let AmqpNicepayService = class AmqpNicepayService {
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
this.amqpManager = new functions_1.AmqpManagement(this.client);
|
|
28
|
+
}
|
|
29
|
+
/** NicePay 빌키 발급 인증창 form 데이터 조회 */
|
|
30
|
+
async getNicepayBillingAuthForm(payload, param) {
|
|
31
|
+
return this.amqpManager.call('NicePay 빌키 발급 인증창 form 데이터 조회', 'nicepay.get.billing-auth-form', payload, param, { isErrorThrowing: true });
|
|
32
|
+
}
|
|
33
|
+
/** NicePay 빌링키 발급(인증) */
|
|
34
|
+
async issueBillingKey(payload, param) {
|
|
35
|
+
return this.amqpManager.call('NicePay 빌링키 발급', 'nicepay.issue.billing-key', payload, param, { isErrorThrowing: true });
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.AmqpNicepayService = AmqpNicepayService;
|
|
39
|
+
exports.AmqpNicepayService = AmqpNicepayService = __decorate([
|
|
40
|
+
(0, common_1.Injectable)(),
|
|
41
|
+
__param(0, (0, common_1.Inject)('ORDER_SERVER_PROVIDER')),
|
|
42
|
+
__metadata("design:paramtypes", [microservices_1.ClientProxy])
|
|
43
|
+
], AmqpNicepayService);
|
|
@@ -27,3 +27,4 @@ __exportStar(require("./purchased-info.modules"), exports);
|
|
|
27
27
|
__exportStar(require("./amqp-changed-purchased-option-log.service"), exports);
|
|
28
28
|
__exportStar(require("./amqp.purchase-receipt-sabang.service"), exports);
|
|
29
29
|
__exportStar(require("./naver-search-ad.modules"), exports);
|
|
30
|
+
__exportStar(require("./amqp.nicepay.service"), exports);
|