@yolo-croket-dev/entity-v2 0.0.36-jun.5 → 0.0.36-jun.8
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/cart/cart.entity.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Types } from 'mongoose';
|
|
2
|
+
import { StoreItemSellingInfo } from '@yolo-croket-dev/entity/src/store-item';
|
|
2
3
|
export declare enum CartTypeEnum {
|
|
3
4
|
shipping = "shipping",
|
|
4
5
|
direct = "direct"
|
|
@@ -20,51 +21,6 @@ export interface CartPOption {
|
|
|
20
21
|
pOptionType: CartPOptionTypeEnum;
|
|
21
22
|
pOptionList: CartPOptionChild[];
|
|
22
23
|
}
|
|
23
|
-
export interface CartPastSellingShippingFeeSectionChild {
|
|
24
|
-
until?: number;
|
|
25
|
-
untilShippingFee?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface CartPastSellingShippingFeeSection {
|
|
28
|
-
shippingFeeSectionList?: CartPastSellingShippingFeeSectionChild[];
|
|
29
|
-
lastSectionShippingFee?: number;
|
|
30
|
-
}
|
|
31
|
-
export interface CartPastSellingShippingTermsInfo {
|
|
32
|
-
shippingTermsType?: string;
|
|
33
|
-
shippingFeeBySection?: CartPastSellingShippingFeeSection;
|
|
34
|
-
}
|
|
35
|
-
export interface CartPastSellingShippingInfo {
|
|
36
|
-
expectedSendDays?: number;
|
|
37
|
-
isAbroadShipping: boolean;
|
|
38
|
-
isPrepay?: boolean;
|
|
39
|
-
prepayPrice?: number;
|
|
40
|
-
isBundleShipping?: boolean;
|
|
41
|
-
bundleShippingFee?: number;
|
|
42
|
-
isShippingTerms?: boolean;
|
|
43
|
-
shippingTermsInfo?: CartPastSellingShippingTermsInfo | null;
|
|
44
|
-
}
|
|
45
|
-
export interface CartPastDirectInfo {
|
|
46
|
-
expectedDeliveryDays?: number;
|
|
47
|
-
address: string;
|
|
48
|
-
}
|
|
49
|
-
export interface CartPastVisitInfo {
|
|
50
|
-
keepingDate?: Date;
|
|
51
|
-
isRegularlyKeeping?: boolean;
|
|
52
|
-
regularlyKeepingDays?: number;
|
|
53
|
-
}
|
|
54
|
-
export interface CartPastSellingInfo {
|
|
55
|
-
area: string;
|
|
56
|
-
nation: string;
|
|
57
|
-
city: string;
|
|
58
|
-
isExistDueDate: boolean;
|
|
59
|
-
dueDate?: Date;
|
|
60
|
-
deliveryDate?: Date;
|
|
61
|
-
isShipping: boolean;
|
|
62
|
-
shippingInfo: CartPastSellingShippingInfo;
|
|
63
|
-
isDirect: boolean;
|
|
64
|
-
directInfo?: CartPastDirectInfo;
|
|
65
|
-
isVisit?: boolean;
|
|
66
|
-
visitInfo?: CartPastVisitInfo;
|
|
67
|
-
}
|
|
68
24
|
export interface CartEntity {
|
|
69
25
|
_id: Types.ObjectId;
|
|
70
26
|
cartType: CartTypeEnum;
|
|
@@ -86,5 +42,5 @@ export interface CartEntity {
|
|
|
86
42
|
itemName_past: string;
|
|
87
43
|
itemPrice_past: number;
|
|
88
44
|
itemPriceForBuyer_past?: number;
|
|
89
|
-
sellingInfo_past:
|
|
45
|
+
sellingInfo_past: StoreItemSellingInfo;
|
|
90
46
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface DataPaymentMethodEntity {
|
|
2
|
+
/** ${payType}/${payMethod} */
|
|
3
|
+
uniqKey: string;
|
|
4
|
+
payType: string;
|
|
5
|
+
payMethod: string;
|
|
6
|
+
isUse: boolean;
|
|
7
|
+
isView: boolean;
|
|
8
|
+
hint: string;
|
|
9
|
+
feePercent: number;
|
|
10
|
+
stickerText?: string | null;
|
|
11
|
+
sort: number;
|
|
12
|
+
lastEditDate?: Date;
|
|
13
|
+
regDate: Date;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data-payment-method.entity';
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./data-payment-method.entity"), exports);
|