@yolo-croket-dev/entity-v2 0.0.40 → 0.0.41-hj-01

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/index.d.ts CHANGED
@@ -18,3 +18,4 @@ export * from './store';
18
18
  export * from './mail';
19
19
  export * from './cart';
20
20
  export * from './related-store-item';
21
+ export * from './partial-refund';
package/index.js CHANGED
@@ -34,3 +34,4 @@ __exportStar(require("./store"), exports);
34
34
  __exportStar(require("./mail"), exports);
35
35
  __exportStar(require("./cart"), exports);
36
36
  __exportStar(require("./related-store-item"), exports);
37
+ __exportStar(require("./partial-refund"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.40",
3
+ "version": "0.0.41-hj-01",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",
@@ -0,0 +1,2 @@
1
+ export * from './partial-refund-for-admin.entity';
2
+ export * from './partial-refund.entity';
@@ -0,0 +1,18 @@
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("./partial-refund-for-admin.entity"), exports);
18
+ __exportStar(require("./partial-refund.entity"), exports);
@@ -0,0 +1,50 @@
1
+ import { PartialRefundEntity } from './partial-refund.entity';
2
+ export interface PartialRefundForAdminEntity extends PartialRefundEntity {
3
+ /** @description 결제아이디 */
4
+ PInfoId: string;
5
+ /** @description 주문번호 */
6
+ publicId: string;
7
+ /** @description 구매자 아이디 */
8
+ buyerId: string;
9
+ /** @description 구매자 명 */
10
+ buyerName: string;
11
+ /** @description 구매자 번호 */
12
+ buyerPhoneNumber: string;
13
+ /** @description 구매자 이메일 */
14
+ buyerEmail: string;
15
+ /** @description 수령인 명 */
16
+ receiverName: string;
17
+ /** @description 수령인 번호 */
18
+ receivePhoneNumber: string;
19
+ /** @description 셀러아이디 */
20
+ sellerId: string;
21
+ /** @description 스토어명 */
22
+ storeTitle: string;
23
+ /** @description 셀러 번호 */
24
+ sellerPhoneNumber: string;
25
+ /** @description 상품명 */
26
+ itemName: string;
27
+ /** @description 구매한 상품 수 */
28
+ remainCount: number;
29
+ /** @description 상품가격 */
30
+ itemPrice: number;
31
+ /** @description 배송비 */
32
+ shippingFee: number;
33
+ /** @description 결제 수수료 */
34
+ paymentFee: number;
35
+ /** @description 보험료 */
36
+ insuranceFee: number;
37
+ /** @description 보험여부 */
38
+ isInsurance: boolean;
39
+ /** @description 총 결제 금액 */
40
+ paidPrice: number;
41
+ /** @description 결제 프로세스 (현재) */
42
+ paymentProcess: string;
43
+ /** @description 부분환불 요청 당시 결제 프로세스 */
44
+ pastPaymentProcess: string;
45
+ /** @description 결제수단 */
46
+ paymentMethod: string;
47
+ imp_uid: string;
48
+ /** @description 결제일 */
49
+ paymentDate: Date;
50
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,69 @@
1
+ import PurchasedInfoEntity, { PInfoPOptionInfo } from '../purchased-info/purchased-info.entity';
2
+ import { AuthorTypeEnum } from '../refund';
3
+ export declare enum PartialRefundTypeEnum {
4
+ /** @description 특정 옵션/수량 환불 */
5
+ OPTION_REFUND = 0,
6
+ /** @description 특정 금액 환불 */
7
+ PRICE_REFUND = 1,
8
+ /** @description 반품비 제외 환불 */
9
+ EXCLUDING_RETURN_FEE_REFUND = 2
10
+ }
11
+ export declare enum RefundReasonTypeEnum {
12
+ /** @description 현지 품절 */
13
+ LOCAL_SOLD_OUT = 0,
14
+ /** @description 단순 변심 */
15
+ CHANGE_MIND = 1,
16
+ /** @description 발송 지연 */
17
+ DELIVERY_DELAY = 2,
18
+ /** @description 오배송 */
19
+ MISDELIVERY = 3,
20
+ /** @description 상품 하자 */
21
+ DEFECTIVE_PRODUCT = 4,
22
+ /** @description 기타 (직접 입력) */
23
+ ETC = 5
24
+ }
25
+ export declare enum PartialRefundProcessEnum {
26
+ /** @description 접수 완료 */
27
+ SUBMISSION = 0,
28
+ /** @description 처리 완료 */
29
+ COMPLATED = 1,
30
+ /** @description 접수 철회 */
31
+ WITHDRAWAL = 2
32
+ }
33
+ export declare enum ReturnFeeBearerEnum {
34
+ BUYER = 0,
35
+ SELLER = 1
36
+ }
37
+ export interface PartialRefundEntity {
38
+ _id: string;
39
+ /** @description 환불 종류 */
40
+ refundType: PartialRefundTypeEnum;
41
+ /** @description 환불 사유 */
42
+ refundReasonType: RefundReasonTypeEnum;
43
+ /** @description 환불 사유 기타 직접입력 */
44
+ refundReasonEtc?: string;
45
+ /** @description 부분 환불 프로세스 */
46
+ refundProcess: PartialRefundProcessEnum;
47
+ /** @description 반품비 여부 */
48
+ returnFeeExists: boolean;
49
+ /** @description 반품비 */
50
+ returnFee?: number;
51
+ /** @description 반품비 부담자 */
52
+ returnFeeBearer?: ReturnFeeBearerEnum;
53
+ /** @description 협의 완료 여부 */
54
+ aggregements: boolean;
55
+ /** @description 환불할 옵션/수량 */
56
+ refundOptionInfo?: PInfoPOptionInfo;
57
+ /** @description 환불할 금액 */
58
+ refundPrice: number;
59
+ /** @description 부분 환불 요청주체 */
60
+ authorType: AuthorTypeEnum;
61
+ /** @description CS확인 여부 */
62
+ isCSCheck: boolean;
63
+ /** @description 부분 환불 요청일 */
64
+ regDate: Date;
65
+ /** @description 마지막 정보 수정일 */
66
+ lastEditDate: Date;
67
+ /** @description 부분 환불 요청 당시 결제정보 */
68
+ pastPInfo: PurchasedInfoEntity;
69
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReturnFeeBearerEnum = exports.PartialRefundProcessEnum = exports.RefundReasonTypeEnum = exports.PartialRefundTypeEnum = void 0;
4
+ var PartialRefundTypeEnum;
5
+ (function (PartialRefundTypeEnum) {
6
+ /** @description 특정 옵션/수량 환불 */
7
+ PartialRefundTypeEnum[PartialRefundTypeEnum["OPTION_REFUND"] = 0] = "OPTION_REFUND";
8
+ /** @description 특정 금액 환불 */
9
+ PartialRefundTypeEnum[PartialRefundTypeEnum["PRICE_REFUND"] = 1] = "PRICE_REFUND";
10
+ /** @description 반품비 제외 환불 */
11
+ PartialRefundTypeEnum[PartialRefundTypeEnum["EXCLUDING_RETURN_FEE_REFUND"] = 2] = "EXCLUDING_RETURN_FEE_REFUND";
12
+ })(PartialRefundTypeEnum || (exports.PartialRefundTypeEnum = PartialRefundTypeEnum = {}));
13
+ var RefundReasonTypeEnum;
14
+ (function (RefundReasonTypeEnum) {
15
+ /** @description 현지 품절 */
16
+ RefundReasonTypeEnum[RefundReasonTypeEnum["LOCAL_SOLD_OUT"] = 0] = "LOCAL_SOLD_OUT";
17
+ /** @description 단순 변심 */
18
+ RefundReasonTypeEnum[RefundReasonTypeEnum["CHANGE_MIND"] = 1] = "CHANGE_MIND";
19
+ /** @description 발송 지연 */
20
+ RefundReasonTypeEnum[RefundReasonTypeEnum["DELIVERY_DELAY"] = 2] = "DELIVERY_DELAY";
21
+ /** @description 오배송 */
22
+ RefundReasonTypeEnum[RefundReasonTypeEnum["MISDELIVERY"] = 3] = "MISDELIVERY";
23
+ /** @description 상품 하자 */
24
+ RefundReasonTypeEnum[RefundReasonTypeEnum["DEFECTIVE_PRODUCT"] = 4] = "DEFECTIVE_PRODUCT";
25
+ /** @description 기타 (직접 입력) */
26
+ RefundReasonTypeEnum[RefundReasonTypeEnum["ETC"] = 5] = "ETC";
27
+ })(RefundReasonTypeEnum || (exports.RefundReasonTypeEnum = RefundReasonTypeEnum = {}));
28
+ var PartialRefundProcessEnum;
29
+ (function (PartialRefundProcessEnum) {
30
+ /** @description 접수 완료 */
31
+ PartialRefundProcessEnum[PartialRefundProcessEnum["SUBMISSION"] = 0] = "SUBMISSION";
32
+ /** @description 처리 완료 */
33
+ PartialRefundProcessEnum[PartialRefundProcessEnum["COMPLATED"] = 1] = "COMPLATED";
34
+ /** @description 접수 철회 */
35
+ PartialRefundProcessEnum[PartialRefundProcessEnum["WITHDRAWAL"] = 2] = "WITHDRAWAL";
36
+ })(PartialRefundProcessEnum || (exports.PartialRefundProcessEnum = PartialRefundProcessEnum = {}));
37
+ var ReturnFeeBearerEnum;
38
+ (function (ReturnFeeBearerEnum) {
39
+ ReturnFeeBearerEnum[ReturnFeeBearerEnum["BUYER"] = 0] = "BUYER";
40
+ ReturnFeeBearerEnum[ReturnFeeBearerEnum["SELLER"] = 1] = "SELLER";
41
+ })(ReturnFeeBearerEnum || (exports.ReturnFeeBearerEnum = ReturnFeeBearerEnum = {}));
@@ -1 +1,2 @@
1
1
  export * from './purchased-info-for-seller.entity';
2
+ export * from './purchased-info-for-partial-refund.entity';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./purchased-info-for-seller.entity"), exports);
18
+ __exportStar(require("./purchased-info-for-partial-refund.entity"), exports);
@@ -0,0 +1,11 @@
1
+ import PurchasedInfoEntity from './purchased-info.entity';
2
+ import { AuthorTypeEnum } from '../refund';
3
+ export type PurchasedInfoForPartialRefundEntity = Pick<PurchasedInfoEntity, '_id' | 'option' | 'pOptionInfo'> & {
4
+ /** pastStoreItemInfo.itemImg[0] */
5
+ itemImg: string;
6
+ /** pastStoreItemInfo.itemPrice */
7
+ itemPrice: number;
8
+ /** pastStoreItemInfo.itemPriceForBuyer */
9
+ itemPriceForBuyer: number;
10
+ authorType: AuthorTypeEnum;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });