@yolo-croket-dev/entity-v2 0.0.89 → 0.0.91-hj-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.0.89",
3
+ "version": "0.0.91-hj-1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,2 +1,3 @@
1
1
  export * from './partial-refund-for-admin.entity';
2
2
  export * from './partial-refund.entity';
3
+ export * from './partial-refund-info-entity';
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,12 @@
1
1
  import PurchasedInfoEntity from '../purchased-info/purchased-info.entity';
2
- import { AuthorTypeEnum } from '../refund';
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: string;
44
- managerName: string;
50
+ managerId?: string;
51
+ managerName?: string;
52
+ author?: PartialRefundAuthorTypeEnum;
45
53
  }
46
54
  export interface PartialRefundCSCheckInfo {
47
55
  regDate: Date;
@@ -55,6 +63,24 @@ 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
+ }
73
+ /** @description 환불 철회 정보 */
74
+ export interface PartialRefundWithdrawalInfo {
75
+ /** @description 환불 철회일 */
76
+ regDate: Date;
77
+ /** @description 환불 철회 주최자 */
78
+ author: PartialRefundAuthorTypeEnum;
79
+ /** @description 환불 철회 사유 */
80
+ withdrawalReason: string;
81
+ /** @description 환불 철회 사유 이미지 리스트 */
82
+ withdrawalImgs: string;
83
+ }
58
84
  export interface PartialRefundEntity {
59
85
  _id: string;
60
86
  /** @description 환불 종류 */
@@ -78,7 +104,7 @@ export interface PartialRefundEntity {
78
104
  /** @description 결제수수료 제외한 환불할 금액 */
79
105
  refundPriceExcludingPaymentFee: number;
80
106
  /** @description 부분 환불 요청주체 */
81
- authorType: AuthorTypeEnum;
107
+ authorType: PartialRefundAuthorTypeEnum;
82
108
  /** @description CS확인 여부 */
83
109
  isCSCheck: boolean;
84
110
  /** @description 부분 환불 요청일 */
@@ -95,4 +121,6 @@ export interface PartialRefundEntity {
95
121
  CSMemo?: string;
96
122
  /** @description CS 메모 작성/삭제 정보 */
97
123
  CSMemoInfo?: PartialRefundCSMemoInfo;
124
+ approveInfo?: PartialRefundApproveInfo;
125
+ withdrawalInfo?: PartialRefundWithdrawalInfo;
98
126
  }
@@ -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 특정 옵션/수량 환불 */
@@ -13,7 +13,7 @@ export default interface StoreItemSynonymsEntity {
13
13
  /** @description mapping 종류 */
14
14
  mappingType: MappingTypeEnum;
15
15
  /** @description mappingType이 explicit 일때 필수 */
16
- input?: string | null;
16
+ input?: string[] | null;
17
17
  /** @description 동의어 */
18
18
  synonyms: string[];
19
19
  /** @description 업데이트 일자 */