@carsayo/types 1.1.850 → 1.1.852
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileInfo } from "../file";
|
|
2
2
|
import { InsuranceCompany } from "../insurance";
|
|
3
3
|
import { MemberGender } from "../member";
|
|
4
|
-
import { AccidentReportState, RepairShopWorkingStatus } from "./type";
|
|
4
|
+
import { AccidentReportCommissionState, AccidentReportState, RepairShopWorkingStatus } from "./type";
|
|
5
5
|
/** 공업사 운영 시간
|
|
6
6
|
* @note 휴무일 경우 null
|
|
7
7
|
* @note 시간은 HHdd형태 (1200, 1230, ...)
|
|
@@ -188,9 +188,25 @@ export interface AccidentReport_Review {
|
|
|
188
188
|
/** 리뷰 작성 일시 */
|
|
189
189
|
created_at: Date;
|
|
190
190
|
}
|
|
191
|
+
export type AccidentReport_Commission = {
|
|
192
|
+
/** 적용된 수수료 비율 */
|
|
193
|
+
rate: number;
|
|
194
|
+
/** 납부할 금액 */
|
|
195
|
+
amount: number;
|
|
196
|
+
/** 정산 상태 */
|
|
197
|
+
state: AccidentReportCommissionState;
|
|
198
|
+
/** 생성 일시 */
|
|
199
|
+
created_at: Date;
|
|
200
|
+
/** 정산 일시 */
|
|
201
|
+
paid_at: Date | null;
|
|
202
|
+
/** 정산 취소 일시 */
|
|
203
|
+
canceled_at: Date | null;
|
|
204
|
+
};
|
|
191
205
|
export type Admin_AccidentReport = Omit<AccidentReport, "repairShop"> & {
|
|
192
206
|
/** 배정 공업사 정보 */
|
|
193
207
|
repairShop: Admin_RepairShop | null;
|
|
208
|
+
/** 정산 정보 */
|
|
209
|
+
commission: AccidentReport_Commission | null;
|
|
194
210
|
};
|
|
195
211
|
/** 관리자가 조회하는 정비소 정보 */
|
|
196
212
|
export type Admin_RepairShop = RepairShop & {
|
|
@@ -14,3 +14,12 @@ export declare const AccidentReportState: {
|
|
|
14
14
|
finished: string;
|
|
15
15
|
};
|
|
16
16
|
export type AccidentReportState = keyof typeof AccidentReportState;
|
|
17
|
+
export declare const AccidentReportCommissionState: {
|
|
18
|
+
/** 대기 */
|
|
19
|
+
pending: string;
|
|
20
|
+
/** 정산 완료 */
|
|
21
|
+
paid: string;
|
|
22
|
+
/** 정산 취소 */
|
|
23
|
+
canceled: string;
|
|
24
|
+
};
|
|
25
|
+
export type AccidentReportCommissionState = keyof typeof AccidentReportCommissionState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccidentReportState = exports.RepairShopWorkingStatus = void 0;
|
|
3
|
+
exports.AccidentReportCommissionState = exports.AccidentReportState = exports.RepairShopWorkingStatus = void 0;
|
|
4
4
|
exports.RepairShopWorkingStatus = {
|
|
5
5
|
open: "open",
|
|
6
6
|
closed: "closed",
|
|
@@ -15,3 +15,11 @@ exports.AccidentReportState = {
|
|
|
15
15
|
/** 완료 */
|
|
16
16
|
finished: "finished",
|
|
17
17
|
};
|
|
18
|
+
exports.AccidentReportCommissionState = {
|
|
19
|
+
/** 대기 */
|
|
20
|
+
pending: "pending",
|
|
21
|
+
/** 정산 완료 */
|
|
22
|
+
paid: "paid",
|
|
23
|
+
/** 정산 취소 */
|
|
24
|
+
canceled: "canceled",
|
|
25
|
+
};
|