@yolo-croket-dev/entity-v2 0.2.124-jun.0 → 0.2.124-jun.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.124-jun.0",
3
+ "version": "0.2.124-jun.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
package/user/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './user.entity';
2
2
  export * from './user-for-admin.entity';
3
3
  export * from './user-shipping-addresses.entity';
4
+ export * from './user-card-billing.entity';
package/user/index.js CHANGED
@@ -17,3 +17,4 @@ 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,56 @@
1
+ import { Types } from 'mongoose';
2
+ /** 유저 카드 빌링 타입 */
3
+ export declare enum UserCardBillingEnum {
4
+ /** 나이스 페이 빌링 키 */
5
+ nicepay_billing = "nicepay_billing"
6
+ }
7
+ /**
8
+ * NicePay 빌키 발급 API 원본 응답 인터페이스
9
+ * @see https://developers.nicepay.co.kr/manual-card-billkey-auth-create.php
10
+ */
11
+ export interface NicepayBillingKeyApiResponse {
12
+ /** 결과 코드 (F100: 성공) */
13
+ ResultCode: string;
14
+ /** 결과 메시지 */
15
+ ResultMsg: string;
16
+ /** 거래 ID */
17
+ TID: string;
18
+ /** 빌키 */
19
+ BID: string;
20
+ /** 빌키 발급일자 (YYYYMMDD) */
21
+ AuthDate: string;
22
+ /** 카드사 코드 */
23
+ CardCode: string;
24
+ /** 카드사명 */
25
+ CardName: string;
26
+ /** 카드 타입 (0: 신용, 1: 체크) */
27
+ CardCl: string;
28
+ /** 매입 카드사 코드 */
29
+ AcquCardCode: string;
30
+ /** 매입 카드사명 */
31
+ AcquCardName: string;
32
+ /** 마스킹된 카드번호 */
33
+ CardNo: string;
34
+ }
35
+ /**
36
+ * @author jun
37
+ * @description 유저 카드 빌링 정보 엔티티
38
+ * @process 유저의 카드 빌링키 및 카드 정보를 저장
39
+ */
40
+ export interface UserCardBillingEntity {
41
+ _id: Types.ObjectId;
42
+ /** 카드 빌링 타입 */
43
+ type: UserCardBillingEnum;
44
+ /** 유저 아이디 */
45
+ userId: Types.ObjectId;
46
+ /** 빌링키 */
47
+ billingKey: string;
48
+ /** 카드사명 (ex: 신한카드) */
49
+ cardCompany: string;
50
+ /** 마스킹된 카드번호 뒷 4자리 (ex: 1234) */
51
+ cardNumberLast4: string;
52
+ /** 등록일 */
53
+ regDate: Date;
54
+ /** NicePay 빌링키 발급 API 원본 응답 */
55
+ nicepayResponse?: NicepayBillingKeyApiResponse;
56
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCardBillingEnum = void 0;
4
+ /** 유저 카드 빌링 타입 */
5
+ var UserCardBillingEnum;
6
+ (function (UserCardBillingEnum) {
7
+ /** 나이스 페이 빌링 키 */
8
+ UserCardBillingEnum["nicepay_billing"] = "nicepay_billing";
9
+ })(UserCardBillingEnum || (exports.UserCardBillingEnum = UserCardBillingEnum = {}));