@carsayo/types 1.1.892072 → 1.1.892074
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/dist/types/modules/chat/dto.d.ts +4 -0
- package/dist/types/modules/chat/dto.js +2 -0
- package/dist/types/modules/chat/index.d.ts +1 -0
- package/dist/types/modules/chat/index.js +1 -0
- package/dist/types/modules/chat/type.d.ts +1 -0
- package/dist/types/modules/chat/type.room.additionalInfo.d.ts +28 -3
- package/dist/types/modules/purchase/dto.d.ts +9 -0
- package/dist/types/modules/purchase/dto.js +3 -0
- package/dist/types/modules/purchase/index.d.ts +2 -0
- package/dist/types/modules/purchase/index.js +18 -0
- package/dist/types/modules/purchase/interface.d.ts +22 -0
- package/dist/types/modules/purchase/interface.js +2 -0
- package/dist/types/modules/purchase/type.d.ts +11 -0
- package/dist/types/modules/purchase/type.js +13 -0
- package/dist/types/modules/repair/constants.d.ts +23 -0
- package/dist/types/modules/repair/constants.js +52 -0
- package/dist/types/modules/sellMyCar/interface.d.ts +14 -0
- package/dist/types/providers/coocon-usedcar/constants.d.ts +46 -0
- package/dist/types/providers/coocon-usedcar/constants.js +673 -0
- package/dist/types/providers/nicepayment/dto.d.ts +60 -0
- package/dist/types/providers/nicepayment/dto.js +9 -0
- package/dist/types/providers/nicepayment/index.d.ts +3 -0
- package/dist/types/providers/nicepayment/index.js +19 -0
- package/dist/types/providers/nicepayment/interface.d.ts +168 -0
- package/dist/types/providers/nicepayment/interface.js +2 -0
- package/dist/types/providers/nicepayment/type.d.ts +36 -0
- package/dist/types/providers/nicepayment/type.js +37 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/** DTO는 서버단에 요청을 보낼 때 사용하는 클래스 유형으로 서버단에서 이 곳에 정의된 대로 유효성 검사를 처리합니다. */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PaymentIntervalTarget = void 0;
|
|
5
|
+
exports.PaymentIntervalTarget = {
|
|
6
|
+
created_at: "생성일시",
|
|
7
|
+
paid_at: "결제완료일시",
|
|
8
|
+
canceled_at: "결제취소일시",
|
|
9
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./dto"), exports);
|
|
18
|
+
__exportStar(require("./interface"), exports);
|
|
19
|
+
__exportStar(require("./type"), exports);
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { MemberShort } from "../../modules";
|
|
2
|
+
import { PaymentMethod, PaymentState } from "./type";
|
|
3
|
+
/**
|
|
4
|
+
* @interface NicepaymentInitData
|
|
5
|
+
* @description 나이스 결제 시스템을 위한 초기화 데이터 인터페이스입니다.
|
|
6
|
+
* @url https://developers.nicepay.co.kr/manual-auth.php
|
|
7
|
+
*/
|
|
8
|
+
export interface NicepaymentInitData {
|
|
9
|
+
/**
|
|
10
|
+
* @property {string} GoodsName - 결제상품명 (euc-kr).
|
|
11
|
+
*/
|
|
12
|
+
GoodsName: string;
|
|
13
|
+
/**
|
|
14
|
+
* @property {number} Amt - 금액 (숫자만 입력).
|
|
15
|
+
*/
|
|
16
|
+
Amt: number;
|
|
17
|
+
/**
|
|
18
|
+
* @property {string} MID - 상점아이디.
|
|
19
|
+
*/
|
|
20
|
+
MID: string;
|
|
21
|
+
/**
|
|
22
|
+
* @property {string} EdiDate - 요청 시간 (YYYYMMDDHHMISS).
|
|
23
|
+
*/
|
|
24
|
+
EdiDate: string;
|
|
25
|
+
/**
|
|
26
|
+
* @property {string} Moid - 상품주문번호.
|
|
27
|
+
*/
|
|
28
|
+
Moid: string;
|
|
29
|
+
/**
|
|
30
|
+
* @property {string} SignData - hex(sha256(EdiDate + MID + Amt + MerchantKey)), 위변조 검증 데이터.
|
|
31
|
+
*/
|
|
32
|
+
SignData: string;
|
|
33
|
+
/**
|
|
34
|
+
* @property {PaymentMethod} [PayMethod] - 상품 주문 방법 (""는 모두 다 넣는것).
|
|
35
|
+
*/
|
|
36
|
+
PayMethod?: PaymentMethod;
|
|
37
|
+
/**
|
|
38
|
+
* @property {string} ReturnURL - ReturnURL 요청 응답 URL (절대 경로).
|
|
39
|
+
*/
|
|
40
|
+
ReturnURL: string;
|
|
41
|
+
/**
|
|
42
|
+
* @property {string} [BuyerName] - 구매자명 (euc-kr).
|
|
43
|
+
*/
|
|
44
|
+
BuyerName?: string;
|
|
45
|
+
/**
|
|
46
|
+
* @property {string} [BuyerTel] - 구매자연락처 (숫자만 입력).
|
|
47
|
+
*/
|
|
48
|
+
BuyerTel?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @property {string} [BuyerEmail] - 구매자 메일주소.
|
|
51
|
+
*/
|
|
52
|
+
BuyerEmail?: string;
|
|
53
|
+
/**
|
|
54
|
+
* @property {string} [VbankExpDate] - 가상계좌 추가 파라미터 가상계좌입금만료일 (YYYYMMDDHHMM).
|
|
55
|
+
*/
|
|
56
|
+
VbankExpDate?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @property {"utf-8"} CharSet - 문자셋 ("utf-8").
|
|
59
|
+
*/
|
|
60
|
+
CharSet: "utf-8";
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @interface NicePaymentInfo
|
|
64
|
+
* @description 나이스 결제 정보 인터페이스입니다.
|
|
65
|
+
*/
|
|
66
|
+
export interface NicePaymentInfo {
|
|
67
|
+
/**
|
|
68
|
+
* @property {string} id - 결제 고유 ID.
|
|
69
|
+
*/
|
|
70
|
+
id: string;
|
|
71
|
+
/**
|
|
72
|
+
* @property {string} name - 결제자 이름.
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* @property {number} amount - 결제 금액.
|
|
77
|
+
*/
|
|
78
|
+
amount: number;
|
|
79
|
+
/**
|
|
80
|
+
* @property {PaymentMethod} method - 결제 방법.
|
|
81
|
+
*/
|
|
82
|
+
method: PaymentMethod;
|
|
83
|
+
/**
|
|
84
|
+
* @property {PaymentState} status - 결제 상태.
|
|
85
|
+
*/
|
|
86
|
+
status: PaymentState;
|
|
87
|
+
/**
|
|
88
|
+
* @property {object} [card] - Method: CARD일 때 정의됩니다.
|
|
89
|
+
* @property {string} card.cardName - 카드 이름.
|
|
90
|
+
* @property {string} card.cardNumber - 카드 번호.
|
|
91
|
+
*/
|
|
92
|
+
card?: {
|
|
93
|
+
cardName: string;
|
|
94
|
+
cardNumber: string;
|
|
95
|
+
};
|
|
96
|
+
virtualBank?: PaymentVirtualBankInfo;
|
|
97
|
+
/**
|
|
98
|
+
* @property {object} [bank] - Method: BANK일 때 정의됩니다.
|
|
99
|
+
* @property {string} bank.bankName - 은행 이름.
|
|
100
|
+
*/
|
|
101
|
+
bank?: {
|
|
102
|
+
bankName: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @property {Date} created_at - 생성 일자.
|
|
106
|
+
*/
|
|
107
|
+
created_at: Date;
|
|
108
|
+
/**
|
|
109
|
+
* @property {Date} updated_at - 수정 일자.
|
|
110
|
+
*/
|
|
111
|
+
updated_at: Date;
|
|
112
|
+
/**
|
|
113
|
+
* @property {Date | null} paid_at - 결제일.
|
|
114
|
+
*/
|
|
115
|
+
paid_at: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
* @property {Date | null} stopped_at - 결제 도중 취소한 일자.
|
|
118
|
+
*/
|
|
119
|
+
stopped_at: Date | null;
|
|
120
|
+
/**
|
|
121
|
+
* @property {Date | null} canceled_at - 취소일자.
|
|
122
|
+
*/
|
|
123
|
+
canceled_at: Date | null;
|
|
124
|
+
}
|
|
125
|
+
export interface PaymentVirtualBankInfo {
|
|
126
|
+
bankName: string;
|
|
127
|
+
accountNumber: string;
|
|
128
|
+
/** YYYYMMDD */
|
|
129
|
+
expireDate: string;
|
|
130
|
+
/** hhmmss (UTC 0 기준입니다) */
|
|
131
|
+
expireTime: string;
|
|
132
|
+
}
|
|
133
|
+
/** 결제 리스트 검색 결과 */
|
|
134
|
+
export interface PaymentSearchList {
|
|
135
|
+
totalCount: number;
|
|
136
|
+
data: NicePaymentInfo[];
|
|
137
|
+
additionalInfo: {
|
|
138
|
+
/** 요청시 totalPrice: true일 경우 정의됩니다 */
|
|
139
|
+
totalPrice?: number;
|
|
140
|
+
/** 요청시 orderState: true일 경우 정의됩니다 */
|
|
141
|
+
paymentState?: PaymentSearchListStateCount;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/** 결제 리스트 검색 결과 */
|
|
145
|
+
export interface Admin_PaymentSearchList {
|
|
146
|
+
totalCount: number;
|
|
147
|
+
data: (NicePaymentInfo & {
|
|
148
|
+
member: MemberShort;
|
|
149
|
+
})[];
|
|
150
|
+
additionalInfo: {
|
|
151
|
+
/** 요청시 totalPrice: true일 경우 정의됩니다 */
|
|
152
|
+
totalPrice?: number;
|
|
153
|
+
/** 요청시 orderState: true일 경우 정의됩니다 */
|
|
154
|
+
paymentState?: PaymentSearchListStateCount;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
export interface PaymentSearchListStateCount {
|
|
158
|
+
/** [가상계좌 대기] */
|
|
159
|
+
virtualAccountWaiting: number;
|
|
160
|
+
/** [미사용] */
|
|
161
|
+
paid: number;
|
|
162
|
+
/** [결제 완료] */
|
|
163
|
+
used: number;
|
|
164
|
+
/** [결제 취소] */
|
|
165
|
+
canceled: number;
|
|
166
|
+
/** [취소 실패] */
|
|
167
|
+
cancelFailed: number;
|
|
168
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @init [주문 시작]
|
|
3
|
+
* @stopped [취소] (결제가 완료된 적 없음)
|
|
4
|
+
* @virtualAccountWaiting [가상계좌 대기] 가상계좌 입금 대기중
|
|
5
|
+
* @paid [미사용] 결제는 완료되었으나, 사용하지 않았습니다.
|
|
6
|
+
* @used [결제 완료] 결제가 완료되었으며 사용하였습니다.
|
|
7
|
+
* @canceled [결제 취소] 나이스 페이에 결제 취소 요청이 정상적으로 접수되었습니다.
|
|
8
|
+
* @cancelFailed [취소 실패] 결제 취소 요청 실패(가상계좌라던가, 결제 완료 후 오랜 기간이 지났다던지 등)
|
|
9
|
+
*/
|
|
10
|
+
export declare const PaymentState: {
|
|
11
|
+
readonly init: "init";
|
|
12
|
+
readonly stopped: "stopped";
|
|
13
|
+
readonly virtualAccountWaiting: "virtualAccountWaiting";
|
|
14
|
+
readonly paid: "paid";
|
|
15
|
+
readonly used: "used";
|
|
16
|
+
readonly canceled: "canceled";
|
|
17
|
+
readonly cancelFailed: "cancelFailed";
|
|
18
|
+
};
|
|
19
|
+
export type PaymentState = keyof typeof PaymentState;
|
|
20
|
+
/**
|
|
21
|
+
* @"" 모든 결제 방법이 포함
|
|
22
|
+
* @CARD 신용카드 결제
|
|
23
|
+
* @BANK 계좌이체
|
|
24
|
+
* @VBANK 가상계좌 결제
|
|
25
|
+
* @CELLPHONE 휴대전화 결제
|
|
26
|
+
* @CARD,BANK,VBANK 카드, 계좌이체, 가상계좌 결제
|
|
27
|
+
*/
|
|
28
|
+
export declare const PaymentMethod: {
|
|
29
|
+
readonly CARD: "CARD";
|
|
30
|
+
readonly BANK: "BANK";
|
|
31
|
+
readonly VBANK: "VBANK";
|
|
32
|
+
readonly CELLPHONE: "CELLPHONE";
|
|
33
|
+
readonly "CARD,BANK,VBANK": "CARD,BANK,VBANK";
|
|
34
|
+
readonly "": "";
|
|
35
|
+
};
|
|
36
|
+
export type PaymentMethod = keyof typeof PaymentMethod;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMethod = exports.PaymentState = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @init [주문 시작]
|
|
6
|
+
* @stopped [취소] (결제가 완료된 적 없음)
|
|
7
|
+
* @virtualAccountWaiting [가상계좌 대기] 가상계좌 입금 대기중
|
|
8
|
+
* @paid [미사용] 결제는 완료되었으나, 사용하지 않았습니다.
|
|
9
|
+
* @used [결제 완료] 결제가 완료되었으며 사용하였습니다.
|
|
10
|
+
* @canceled [결제 취소] 나이스 페이에 결제 취소 요청이 정상적으로 접수되었습니다.
|
|
11
|
+
* @cancelFailed [취소 실패] 결제 취소 요청 실패(가상계좌라던가, 결제 완료 후 오랜 기간이 지났다던지 등)
|
|
12
|
+
*/
|
|
13
|
+
exports.PaymentState = {
|
|
14
|
+
init: "init",
|
|
15
|
+
stopped: "stopped",
|
|
16
|
+
virtualAccountWaiting: "virtualAccountWaiting",
|
|
17
|
+
paid: "paid",
|
|
18
|
+
used: "used",
|
|
19
|
+
canceled: "canceled",
|
|
20
|
+
cancelFailed: "cancelFailed",
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @"" 모든 결제 방법이 포함
|
|
24
|
+
* @CARD 신용카드 결제
|
|
25
|
+
* @BANK 계좌이체
|
|
26
|
+
* @VBANK 가상계좌 결제
|
|
27
|
+
* @CELLPHONE 휴대전화 결제
|
|
28
|
+
* @CARD,BANK,VBANK 카드, 계좌이체, 가상계좌 결제
|
|
29
|
+
*/
|
|
30
|
+
exports.PaymentMethod = {
|
|
31
|
+
CARD: "CARD",
|
|
32
|
+
BANK: "BANK",
|
|
33
|
+
VBANK: "VBANK",
|
|
34
|
+
CELLPHONE: "CELLPHONE",
|
|
35
|
+
"CARD,BANK,VBANK": "CARD,BANK,VBANK",
|
|
36
|
+
"": "",
|
|
37
|
+
};
|