@yolo-croket-dev/amqp-access 0.7.47-jun.18 → 0.7.47-jun.19
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 +1 -0
- package/order-server/dto/nicepay/command/register-billing-card.dto.d.ts +29 -0
- package/order-server/dto/nicepay/command/register-billing-card.dto.js +41 -0
- package/order-server/dto/user-card-billing/command/register-user-card-billing.dto.d.ts +3 -1
- package/order-server/dto/user-card-billing/command/register-user-card-billing.dto.js +4 -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
|
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./issue-billing-key.dto"), exports);
|
|
18
|
+
__exportStar(require("./register-billing-card.dto"), exports);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description NicePay 빌링키 발급 + 유저 카드 등록 통합 요청 Payload
|
|
3
|
+
* 프론트엔드 NicePay 인증창(goPay) 완료 후 전달받은 인증 결과
|
|
4
|
+
*/
|
|
5
|
+
export declare class RegisterBillingCardPayload {
|
|
6
|
+
/** 거래 ID (프론트엔드 인증 결과의 TxTid) */
|
|
7
|
+
txTid: string;
|
|
8
|
+
/** 인증 Token (프론트엔드 인증 결과의 AuthToken) */
|
|
9
|
+
authToken: string;
|
|
10
|
+
/** 전문생성일시 (YYYYMMDDHHMMSS) */
|
|
11
|
+
ediDate: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @description NicePay 빌링키 발급 + 유저 카드 등록 통합 응답 Result
|
|
15
|
+
*/
|
|
16
|
+
export declare class RegisterBillingCardResult {
|
|
17
|
+
/** 발급된 빌링키 (BID) */
|
|
18
|
+
bid: string;
|
|
19
|
+
/** 카드사 코드 */
|
|
20
|
+
cardCode: string;
|
|
21
|
+
/** 카드사명 */
|
|
22
|
+
cardName: string;
|
|
23
|
+
/** 마스킹된 카드번호 (예: 12345678****1234) */
|
|
24
|
+
cardNo: string;
|
|
25
|
+
/** 카드 타입 (0: 신용, 1: 체크) */
|
|
26
|
+
cardCl: string;
|
|
27
|
+
/** 빌키 발급일자 (YYYYMMDD) */
|
|
28
|
+
authDate: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RegisterBillingCardResult = exports.RegisterBillingCardPayload = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* @description NicePay 빌링키 발급 + 유저 카드 등록 통합 요청 Payload
|
|
16
|
+
* 프론트엔드 NicePay 인증창(goPay) 완료 후 전달받은 인증 결과
|
|
17
|
+
*/
|
|
18
|
+
class RegisterBillingCardPayload {
|
|
19
|
+
}
|
|
20
|
+
exports.RegisterBillingCardPayload = RegisterBillingCardPayload;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], RegisterBillingCardPayload.prototype, "txTid", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], RegisterBillingCardPayload.prototype, "authToken", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], RegisterBillingCardPayload.prototype, "ediDate", void 0);
|
|
36
|
+
/**
|
|
37
|
+
* @description NicePay 빌링키 발급 + 유저 카드 등록 통합 응답 Result
|
|
38
|
+
*/
|
|
39
|
+
class RegisterBillingCardResult {
|
|
40
|
+
}
|
|
41
|
+
exports.RegisterBillingCardResult = RegisterBillingCardResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserCardBillingEnum } from '@yolo-croket-dev/entity-v2/user';
|
|
1
|
+
import { UserCardBillingEnum, NicepayBillingKeyApiResponse } from '@yolo-croket-dev/entity-v2/user';
|
|
2
2
|
/**
|
|
3
3
|
* @description 유저 카드 정보 등록 요청 Payload
|
|
4
4
|
*/
|
|
@@ -11,4 +11,6 @@ export declare class RegisterUserCardBillingPayload {
|
|
|
11
11
|
cardCompany: string;
|
|
12
12
|
/** 마스킹된 카드번호 뒷 4자리 (ex: 1234) */
|
|
13
13
|
cardNumberLast4: string;
|
|
14
|
+
/** NicePay 빌링키 발급 API 원본 응답 */
|
|
15
|
+
nicepayResponse?: NicepayBillingKeyApiResponse;
|
|
14
16
|
}
|
|
@@ -38,3 +38,7 @@ __decorate([
|
|
|
38
38
|
(0, class_validator_1.IsNotEmpty)(),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], RegisterUserCardBillingPayload.prototype, "cardNumberLast4", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], RegisterUserCardBillingPayload.prototype, "nicepayResponse", void 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClientProxy } from '@nestjs/microservices';
|
|
2
2
|
import { AbstractParam } from '@yolo-croket-dev/core';
|
|
3
|
-
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult } from '../dto/nicepay';
|
|
3
|
+
import { GetNicepayBillingAuthFormPayload, GetNicepayBillingAuthFormResult, IssueBillingKeyPayload, IssueBillingKeyResult, RegisterBillingCardPayload, RegisterBillingCardResult } from '../dto/nicepay';
|
|
4
4
|
/**
|
|
5
5
|
* @author jun
|
|
6
6
|
* @description NicePay 관련 AMQP 서비스
|
|
@@ -14,4 +14,6 @@ export declare class AmqpNicepayService {
|
|
|
14
14
|
getNicepayBillingAuthForm(payload: GetNicepayBillingAuthFormPayload, param: AbstractParam): Promise<GetNicepayBillingAuthFormResult>;
|
|
15
15
|
/** NicePay 빌링키 발급(인증) */
|
|
16
16
|
issueBillingKey(payload: IssueBillingKeyPayload, param: AbstractParam): Promise<IssueBillingKeyResult>;
|
|
17
|
+
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
18
|
+
registerBillingCard(payload: RegisterBillingCardPayload, param: AbstractParam): Promise<RegisterBillingCardResult>;
|
|
17
19
|
}
|
|
@@ -34,6 +34,10 @@ let AmqpNicepayService = class AmqpNicepayService {
|
|
|
34
34
|
async issueBillingKey(payload, param) {
|
|
35
35
|
return this.amqpManager.call('NicePay 빌링키 발급', 'nicepay.issue.billing-key', payload, param, { isErrorThrowing: true });
|
|
36
36
|
}
|
|
37
|
+
/** NicePay 빌링키 발급 + 유저 카드 정보 등록 */
|
|
38
|
+
async registerBillingCard(payload, param) {
|
|
39
|
+
return this.amqpManager.call('NicePay 빌링키 발급 + 유저 카드 등록', 'nicepay.register.billing-card', payload, param, { isErrorThrowing: true });
|
|
40
|
+
}
|
|
37
41
|
};
|
|
38
42
|
exports.AmqpNicepayService = AmqpNicepayService;
|
|
39
43
|
exports.AmqpNicepayService = AmqpNicepayService = __decorate([
|