@yolo-croket-dev/entity-v2 0.2.134 → 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.
@@ -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: Types.ObjectId;
140
+ /** 유저빌링 아이디 (issue 시점에는 미존재) */
141
+ userCardBillingId?: Types.ObjectId;
94
142
  /** 종류 */
95
143
  type: NicepayBillingLogTypeEnum;
96
- /** 구매 정보 아이디 */
97
- pInfoId: Types.ObjectId;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.134",
3
+ "version": "0.2.135",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",