@yolo-croket-dev/entity-v2 0.0.90 → 0.0.91-hj-2
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 +1 -1
- package/partial-refund/index.d.ts +1 -0
- package/partial-refund/index.js +1 -0
- package/partial-refund/partial-refund-info-entity.d.ts +14 -0
- package/partial-refund/partial-refund-info-entity.js +2 -0
- package/partial-refund/partial-refund.entity.d.ts +35 -4
- package/partial-refund/partial-refund.entity.js +10 -1
package/package.json
CHANGED
package/partial-refund/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./partial-refund-for-admin.entity"), exports);
|
|
18
18
|
__exportStar(require("./partial-refund.entity"), exports);
|
|
19
|
+
__exportStar(require("./partial-refund-info-entity"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PurchasedInfoEntity } from '../purchased-info';
|
|
2
|
+
import { PartialRefundAuthorTypeEnum, PartialRefundEntity } from './partial-refund.entity';
|
|
3
|
+
export interface PastPInfoForInfoEntity extends Pick<PurchasedInfoEntity, '_id' | 'pastName' | 'publicId' | 'pastImg'> {
|
|
4
|
+
}
|
|
5
|
+
export interface PartialRefundForInfoEntity extends Pick<PartialRefundEntity, '_id' | 'refundType' | 'refundReasonType' | 'refundReasonEtc' | 'refundProcess' | 'refundPrice' | 'returnFeeExists' | 'returnFee' | 'regDate' | 'refundOptionInfo' | 'authorType' | 'negotiated'> {
|
|
6
|
+
pastPInfo: PastPInfoForInfoEntity;
|
|
7
|
+
}
|
|
8
|
+
export interface PartialRefundInfoEntity {
|
|
9
|
+
partialRefund: PartialRefundForInfoEntity;
|
|
10
|
+
/** @description 내가 누구인가? */
|
|
11
|
+
whoIAm: PartialRefundAuthorTypeEnum;
|
|
12
|
+
/** @description 환불계좌 필요 여부 (무통장 결제 & whoIAm === buyer) */
|
|
13
|
+
isNeedRefundAccount: boolean;
|
|
14
|
+
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import PurchasedInfoEntity from '../purchased-info/purchased-info.entity';
|
|
2
|
-
|
|
2
|
+
export declare enum PartialRefundAuthorTypeEnum {
|
|
3
|
+
/** 구매자 */
|
|
4
|
+
BUYER = "buyer",
|
|
5
|
+
/** 셀러 */
|
|
6
|
+
SELLER = "seller",
|
|
7
|
+
/** 관리자 */
|
|
8
|
+
MANAGER = "manager"
|
|
9
|
+
}
|
|
3
10
|
export declare enum PartialRefundTypeEnum {
|
|
4
11
|
/** @description 특정 옵션/수량 환불 */
|
|
5
12
|
OPTION_REFUND = "OPTION_REFUND",
|
|
@@ -40,8 +47,9 @@ export interface RefundOptionInfo {
|
|
|
40
47
|
export interface PartialRefundProcessingInfo {
|
|
41
48
|
regDate: Date;
|
|
42
49
|
refundProcess: PartialRefundProcessEnum;
|
|
43
|
-
managerId
|
|
44
|
-
managerName
|
|
50
|
+
managerId?: string;
|
|
51
|
+
managerName?: string;
|
|
52
|
+
author?: PartialRefundAuthorTypeEnum;
|
|
45
53
|
}
|
|
46
54
|
export interface PartialRefundCSCheckInfo {
|
|
47
55
|
regDate: Date;
|
|
@@ -55,6 +63,27 @@ export interface PartialRefundCSMemoInfo {
|
|
|
55
63
|
managerId: string;
|
|
56
64
|
managerName: string;
|
|
57
65
|
}
|
|
66
|
+
/** @description 환불 승인 (환불 해도 된다고 허용) 정보 - 환불 처리와는 다름 */
|
|
67
|
+
export interface PartialRefundApproveInfo {
|
|
68
|
+
/** @description 환불 승인일 */
|
|
69
|
+
regDate: Date;
|
|
70
|
+
/** @description 환불 승인 주최자 */
|
|
71
|
+
author: PartialRefundAuthorTypeEnum;
|
|
72
|
+
managerId?: string;
|
|
73
|
+
}
|
|
74
|
+
/** @description 환불 철회 정보 */
|
|
75
|
+
export interface PartialRefundWithdrawalInfo {
|
|
76
|
+
/** @description 환불 철회일 */
|
|
77
|
+
regDate: Date;
|
|
78
|
+
/** @description 환불 철회 주최자 */
|
|
79
|
+
author: PartialRefundAuthorTypeEnum;
|
|
80
|
+
/** @description 주최자가 관리자면 관리자 아이디 */
|
|
81
|
+
managerId?: string;
|
|
82
|
+
/** @description 환불 철회 사유 */
|
|
83
|
+
withdrawalReason?: string;
|
|
84
|
+
/** @description 환불 철회 사유 이미지 리스트 */
|
|
85
|
+
withdrawalImgs?: string[];
|
|
86
|
+
}
|
|
58
87
|
export interface PartialRefundEntity {
|
|
59
88
|
_id: string;
|
|
60
89
|
/** @description 환불 종류 */
|
|
@@ -78,7 +107,7 @@ export interface PartialRefundEntity {
|
|
|
78
107
|
/** @description 결제수수료 제외한 환불할 금액 */
|
|
79
108
|
refundPriceExcludingPaymentFee: number;
|
|
80
109
|
/** @description 부분 환불 요청주체 */
|
|
81
|
-
authorType:
|
|
110
|
+
authorType: PartialRefundAuthorTypeEnum;
|
|
82
111
|
/** @description CS확인 여부 */
|
|
83
112
|
isCSCheck: boolean;
|
|
84
113
|
/** @description 부분 환불 요청일 */
|
|
@@ -95,4 +124,6 @@ export interface PartialRefundEntity {
|
|
|
95
124
|
CSMemo?: string;
|
|
96
125
|
/** @description CS 메모 작성/삭제 정보 */
|
|
97
126
|
CSMemoInfo?: PartialRefundCSMemoInfo;
|
|
127
|
+
approveInfo?: PartialRefundApproveInfo;
|
|
128
|
+
withdrawalInfo?: PartialRefundWithdrawalInfo;
|
|
98
129
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PartialRefundProcessEnum = exports.PartialRefundReasonTypeEnum = exports.PartialRefundTypeEnum = void 0;
|
|
3
|
+
exports.PartialRefundProcessEnum = exports.PartialRefundReasonTypeEnum = exports.PartialRefundTypeEnum = exports.PartialRefundAuthorTypeEnum = void 0;
|
|
4
|
+
var PartialRefundAuthorTypeEnum;
|
|
5
|
+
(function (PartialRefundAuthorTypeEnum) {
|
|
6
|
+
/** 구매자 */
|
|
7
|
+
PartialRefundAuthorTypeEnum["BUYER"] = "buyer";
|
|
8
|
+
/** 셀러 */
|
|
9
|
+
PartialRefundAuthorTypeEnum["SELLER"] = "seller";
|
|
10
|
+
/** 관리자 */
|
|
11
|
+
PartialRefundAuthorTypeEnum["MANAGER"] = "manager";
|
|
12
|
+
})(PartialRefundAuthorTypeEnum || (exports.PartialRefundAuthorTypeEnum = PartialRefundAuthorTypeEnum = {}));
|
|
4
13
|
var PartialRefundTypeEnum;
|
|
5
14
|
(function (PartialRefundTypeEnum) {
|
|
6
15
|
/** @description 특정 옵션/수량 환불 */
|