@yolo-croket-dev/entity-v2 0.2.124-jun.10 → 0.2.124-jun.11
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/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -75,3 +75,4 @@ __exportStar(require("./cart-third-push-log"), exports);
|
|
|
75
75
|
__exportStar(require("./store-item-naver-feed"), exports);
|
|
76
76
|
__exportStar(require("./brand.modules/naver-brand-dictionary"), exports);
|
|
77
77
|
__exportStar(require("./buyma-item.modules"), exports);
|
|
78
|
+
__exportStar(require("./nicepay-billing-log"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './nicepay-billing-log.entity';
|
|
@@ -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("./nicepay-billing-log.entity"), exports);
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/**
|
|
3
|
+
* @description 나이스페이 빌링 로그 종류
|
|
4
|
+
* @readonly
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export declare enum NicepayBillingLogTypeEnum {
|
|
8
|
+
/** 결제 승인 */
|
|
9
|
+
approve = "approve",
|
|
10
|
+
/** 결제 취소 */
|
|
11
|
+
cancel = "cancel"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* NicePay 빌링 결제(승인) 응답 인터페이스
|
|
15
|
+
* @see https://developers.nicepay.co.kr/manual-card-billing.php
|
|
16
|
+
*/
|
|
17
|
+
export interface NicepayBillingApproveResponse {
|
|
18
|
+
/** 결과코드 (3001: 성공 / 그외 실패) */
|
|
19
|
+
ResultCode: string;
|
|
20
|
+
/** 결과 메시지 */
|
|
21
|
+
ResultMsg: string;
|
|
22
|
+
/** 거래 ID */
|
|
23
|
+
TID: string;
|
|
24
|
+
/** 주문번호 */
|
|
25
|
+
Moid: string;
|
|
26
|
+
/** 금액 (예: 1000원인 경우 -> 000000001000) */
|
|
27
|
+
Amt: string;
|
|
28
|
+
/** 승인번호 */
|
|
29
|
+
AuthCode?: string;
|
|
30
|
+
/** 승인일시 (YYMMDDHHMISS) */
|
|
31
|
+
AuthDate?: string;
|
|
32
|
+
/** 매입 카드사 코드 */
|
|
33
|
+
AcquCardCode?: string;
|
|
34
|
+
/** 매입 카드사명 */
|
|
35
|
+
AcquCardName?: string;
|
|
36
|
+
/** 카드번호 (일부 마스킹 처리, 예: 12345678****1234) */
|
|
37
|
+
CardNo?: string;
|
|
38
|
+
/** 카드사 코드 */
|
|
39
|
+
CardCode?: string;
|
|
40
|
+
/** 카드사명 */
|
|
41
|
+
CardName?: string;
|
|
42
|
+
/** 할부개월 */
|
|
43
|
+
CardQuota?: string;
|
|
44
|
+
/** 카드타입 (0: 신용카드, 1: 체크카드) */
|
|
45
|
+
CardCl?: string;
|
|
46
|
+
/** 부분취소 가능 여부 (0: 불가능, 1: 가능) */
|
|
47
|
+
CcPartCl?: string;
|
|
48
|
+
/** 무이자 여부 (0: 이자, 1: 무이자) */
|
|
49
|
+
CardInterest?: string;
|
|
50
|
+
/** 가맹점 여분필드 (요청 시 Data 그대로 전달) */
|
|
51
|
+
MallReserved?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* NicePay 빌링 승인 취소 응답 인터페이스
|
|
55
|
+
* @see https://developers.nicepay.co.kr/manual-card-billing.php
|
|
56
|
+
*/
|
|
57
|
+
export interface NicepayBillingCancelResponse {
|
|
58
|
+
/** 결과코드 (2001: 성공) */
|
|
59
|
+
ResultCode: string;
|
|
60
|
+
/** 결과 메시지 */
|
|
61
|
+
ResultMsg: string;
|
|
62
|
+
/** 취소 금액 (예: 1000원인 경우 -> 000000001000) */
|
|
63
|
+
CancelAmt: string;
|
|
64
|
+
/** 가맹점 ID */
|
|
65
|
+
MID: string;
|
|
66
|
+
/** 주문번호 */
|
|
67
|
+
Moid: string;
|
|
68
|
+
/** 위변조 검증 데이터 hex(sha256(TID+MID+CancelAmt+MerchantKey)) */
|
|
69
|
+
Signature: string;
|
|
70
|
+
/** 결제수단 (CARD, BANK, VBANK, CELLPHONE) */
|
|
71
|
+
PayMethod?: string;
|
|
72
|
+
/** 거래 ID */
|
|
73
|
+
TID?: string;
|
|
74
|
+
/** 취소일자 (YYYYMMDD) */
|
|
75
|
+
CancelDate?: string;
|
|
76
|
+
/** 취소시간 (HHmmss) */
|
|
77
|
+
CancelTime?: string;
|
|
78
|
+
/** 취소번호 */
|
|
79
|
+
CancelNum?: string;
|
|
80
|
+
/** 취소 후 잔액 */
|
|
81
|
+
RemainAmt?: string;
|
|
82
|
+
/** 가맹점 여분필드 */
|
|
83
|
+
MallReserved?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @author jun
|
|
87
|
+
* @description 나이스페이 빌링 결제 로그 엔티티
|
|
88
|
+
* @process 빌링 결제 승인/취소 시 응답 데이터를 로그로 저장
|
|
89
|
+
*/
|
|
90
|
+
export interface NicepayBillingLogEntity {
|
|
91
|
+
_id: Types.ObjectId;
|
|
92
|
+
/** 유저빌링 아이디 */
|
|
93
|
+
userCardBillingId: Types.ObjectId;
|
|
94
|
+
/** 유저 아이디 */
|
|
95
|
+
userId: Types.ObjectId;
|
|
96
|
+
/** 종류 */
|
|
97
|
+
type: NicepayBillingLogTypeEnum;
|
|
98
|
+
/** 결제 승인 처리 시 응답 값 */
|
|
99
|
+
approveResponse?: NicepayBillingApproveResponse;
|
|
100
|
+
/** 결제 취소 처리 시 응답 값 */
|
|
101
|
+
cancelResponse?: NicepayBillingCancelResponse;
|
|
102
|
+
/** 등록일시 */
|
|
103
|
+
regDate: Date;
|
|
104
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NicepayBillingLogTypeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @description 나이스페이 빌링 로그 종류
|
|
6
|
+
* @readonly
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var NicepayBillingLogTypeEnum;
|
|
10
|
+
(function (NicepayBillingLogTypeEnum) {
|
|
11
|
+
/** 결제 승인 */
|
|
12
|
+
NicepayBillingLogTypeEnum["approve"] = "approve";
|
|
13
|
+
/** 결제 취소 */
|
|
14
|
+
NicepayBillingLogTypeEnum["cancel"] = "cancel";
|
|
15
|
+
})(NicepayBillingLogTypeEnum || (exports.NicepayBillingLogTypeEnum = NicepayBillingLogTypeEnum = {}));
|