@yolo-croket-dev/entity-v2 0.2.133 → 0.2.135
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/.claude/settings.local.json +7 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/nicepay-billing-log/nicepay-billing-log.entity.d.ts +59 -7
- package/nicepay-billing-log/nicepay-billing-log.entity.js +4 -0
- package/package.json +1 -1
- package/user/index.d.ts +0 -1
- package/user/index.js +0 -1
- package/user-card-billing/index.d.ts +1 -0
- package/user-card-billing/index.js +17 -0
- /package/{user → user-card-billing}/user-card-billing.entity.d.ts +0 -0
- /package/{user → user-card-billing}/user-card-billing.entity.js +0 -0
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -79,3 +79,4 @@ __exportStar(require("./campaign-store-item"), exports);
|
|
|
79
79
|
__exportStar(require("./campaign-link"), exports);
|
|
80
80
|
__exportStar(require("./campaign-influencer"), exports);
|
|
81
81
|
__exportStar(require("./nicepay-billing-log"), exports);
|
|
82
|
+
__exportStar(require("./user-card-billing"), exports);
|
|
@@ -8,7 +8,11 @@ export declare enum NicepayBillingLogTypeEnum {
|
|
|
8
8
|
/** 결제 승인 */
|
|
9
9
|
approve = "approve",
|
|
10
10
|
/** 결제 취소 */
|
|
11
|
-
cancel = "cancel"
|
|
11
|
+
cancel = "cancel",
|
|
12
|
+
/** 빌키 발급 */
|
|
13
|
+
issue = "issue",
|
|
14
|
+
/** 빌키 삭제 */
|
|
15
|
+
remove = "remove"
|
|
12
16
|
}
|
|
13
17
|
/**
|
|
14
18
|
* NicePay 빌링 결제(승인) 응답 인터페이스
|
|
@@ -82,23 +86,71 @@ export interface NicepayBillingCancelResponse {
|
|
|
82
86
|
/** 가맹점 여분필드 */
|
|
83
87
|
MallReserved?: string;
|
|
84
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* NicePay 빌키 발급 응답 인터페이스
|
|
91
|
+
* @see https://developers.nicepay.co.kr/manual-card-billkey-auth-create.php
|
|
92
|
+
*/
|
|
93
|
+
export interface NicepayBillingIssueResponse {
|
|
94
|
+
/** 결과 코드 (F100: 성공) */
|
|
95
|
+
ResultCode: string;
|
|
96
|
+
/** 결과 메시지 */
|
|
97
|
+
ResultMsg: string;
|
|
98
|
+
/** 거래 ID */
|
|
99
|
+
TID: string;
|
|
100
|
+
/** 빌키 */
|
|
101
|
+
BID: string;
|
|
102
|
+
/** 빌키 발급일자 (YYYYMMDD) */
|
|
103
|
+
AuthDate: string;
|
|
104
|
+
/** 카드사 코드 */
|
|
105
|
+
CardCode: string;
|
|
106
|
+
/** 카드사명 */
|
|
107
|
+
CardName: string;
|
|
108
|
+
/** 카드 타입 (0: 신용, 1: 체크) */
|
|
109
|
+
CardCl: string;
|
|
110
|
+
/** 매입 카드사 코드 */
|
|
111
|
+
AcquCardCode: string;
|
|
112
|
+
/** 매입 카드사명 */
|
|
113
|
+
AcquCardName: string;
|
|
114
|
+
/** 마스킹된 카드번호 */
|
|
115
|
+
CardNo: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* NicePay 빌키 삭제 응답 인터페이스
|
|
119
|
+
* @see https://developers.nicepay.co.kr/manual-card-billing.php
|
|
120
|
+
*/
|
|
121
|
+
export interface NicepayBillingRemoveResponse {
|
|
122
|
+
/** 결과 코드 (F101: 성공) */
|
|
123
|
+
ResultCode: string;
|
|
124
|
+
/** 결과 메시지 */
|
|
125
|
+
ResultMsg: string;
|
|
126
|
+
/** 거래 ID */
|
|
127
|
+
TID?: string;
|
|
128
|
+
/** 빌링 키 */
|
|
129
|
+
BID?: string;
|
|
130
|
+
/** 삭제일자 (YYYYMMDD) */
|
|
131
|
+
AuthDate?: string;
|
|
132
|
+
}
|
|
85
133
|
/**
|
|
86
134
|
* @author jun
|
|
87
|
-
* @description 나이스페이 빌링
|
|
88
|
-
* @process 빌링 결제
|
|
135
|
+
* @description 나이스페이 빌링 로그 엔티티
|
|
136
|
+
* @process 빌링 결제 승인/취소, 빌키 발급/삭제 시 응답 데이터를 로그로 저장
|
|
89
137
|
*/
|
|
90
138
|
export interface NicepayBillingLogEntity {
|
|
91
139
|
_id: Types.ObjectId;
|
|
92
|
-
/** 유저빌링 아이디 */
|
|
93
|
-
userCardBillingId
|
|
140
|
+
/** 유저빌링 아이디 (issue 시점에는 미존재) */
|
|
141
|
+
userCardBillingId?: Types.ObjectId;
|
|
94
142
|
/** 종류 */
|
|
95
143
|
type: NicepayBillingLogTypeEnum;
|
|
96
|
-
/** 구매 정보 아이디 */
|
|
97
|
-
pInfoId
|
|
144
|
+
/** 구매 정보 아이디 (issue/remove 시에는 미존재) */
|
|
145
|
+
pInfoId?: Types.ObjectId;
|
|
98
146
|
/** 결제 승인 처리 시 응답 값 */
|
|
99
147
|
approveResponse?: NicepayBillingApproveResponse;
|
|
100
148
|
/** 결제 취소 처리 시 응답 값 */
|
|
101
149
|
cancelResponse?: NicepayBillingCancelResponse;
|
|
150
|
+
/** 빌키 발급 시 응답 값 */
|
|
151
|
+
issueResponse?: NicepayBillingIssueResponse;
|
|
152
|
+
/** 빌키 삭제 시 응답 값 */
|
|
153
|
+
removeResponse?: NicepayBillingRemoveResponse;
|
|
102
154
|
/** 등록일시 */
|
|
103
155
|
regDate: Date;
|
|
104
156
|
}
|
|
@@ -12,4 +12,8 @@ var NicepayBillingLogTypeEnum;
|
|
|
12
12
|
NicepayBillingLogTypeEnum["approve"] = "approve";
|
|
13
13
|
/** 결제 취소 */
|
|
14
14
|
NicepayBillingLogTypeEnum["cancel"] = "cancel";
|
|
15
|
+
/** 빌키 발급 */
|
|
16
|
+
NicepayBillingLogTypeEnum["issue"] = "issue";
|
|
17
|
+
/** 빌키 삭제 */
|
|
18
|
+
NicepayBillingLogTypeEnum["remove"] = "remove";
|
|
15
19
|
})(NicepayBillingLogTypeEnum || (exports.NicepayBillingLogTypeEnum = NicepayBillingLogTypeEnum = {}));
|
package/package.json
CHANGED
package/user/index.d.ts
CHANGED
package/user/index.js
CHANGED
|
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./user.entity"), exports);
|
|
18
18
|
__exportStar(require("./user-for-admin.entity"), exports);
|
|
19
19
|
__exportStar(require("./user-shipping-addresses.entity"), exports);
|
|
20
|
-
__exportStar(require("./user-card-billing.entity"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-card-billing.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("./user-card-billing.entity"), exports);
|
|
File without changes
|
|
File without changes
|