@yolo-croket-dev/entity-v2 0.0.28-jun.3 → 0.0.28-jun.5
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 +5 -2
- package/purchased-info/purchased-info-for-seller.entity.d.ts +2 -1
- package/purchased-info/purchased-info-for-seller.entity.swagger.d.ts +15 -0
- package/purchased-info/purchased-info-for-seller.entity.swagger.js +52 -0
- package/purchased-info/purchased-info.entity.d.ts +826 -0
- package/purchased-info/purchased-info.entity.js +43 -0
- package/purchased-info/purchased-info.entity.swagger.d.ts +287 -0
- package/purchased-info/purchased-info.entity.swagger.js +977 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InsuranceProcessTypeEnum = exports.PastSelectionFrameDataInfo = exports.PurchasedProcessEnum = exports.UserTypeEnum = exports.TaxInvoiceIssueProcessEnum = exports.POptionTypeEnum = void 0;
|
|
4
|
+
var POptionTypeEnum;
|
|
5
|
+
(function (POptionTypeEnum) {
|
|
6
|
+
POptionTypeEnum["single"] = "single";
|
|
7
|
+
POptionTypeEnum["group"] = "group";
|
|
8
|
+
})(POptionTypeEnum || (exports.POptionTypeEnum = POptionTypeEnum = {}));
|
|
9
|
+
var TaxInvoiceIssueProcessEnum;
|
|
10
|
+
(function (TaxInvoiceIssueProcessEnum) {
|
|
11
|
+
/** 발행 완료 */
|
|
12
|
+
TaxInvoiceIssueProcessEnum["DONE"] = "done";
|
|
13
|
+
/** 발행 예정 */
|
|
14
|
+
TaxInvoiceIssueProcessEnum["EXPECTED"] = "expected";
|
|
15
|
+
})(TaxInvoiceIssueProcessEnum || (exports.TaxInvoiceIssueProcessEnum = TaxInvoiceIssueProcessEnum = {}));
|
|
16
|
+
var UserTypeEnum;
|
|
17
|
+
(function (UserTypeEnum) {
|
|
18
|
+
UserTypeEnum["seller"] = "seller";
|
|
19
|
+
UserTypeEnum["buyer"] = "buyer";
|
|
20
|
+
UserTypeEnum["manager"] = "manager";
|
|
21
|
+
UserTypeEnum["cron"] = "cron";
|
|
22
|
+
})(UserTypeEnum || (exports.UserTypeEnum = UserTypeEnum = {}));
|
|
23
|
+
var PurchasedProcessEnum;
|
|
24
|
+
(function (PurchasedProcessEnum) {
|
|
25
|
+
PurchasedProcessEnum["\uC785\uAE08\uC804"] = "beforeDeposit";
|
|
26
|
+
PurchasedProcessEnum["\uC8FC\uBB38_\uB300\uAE30\uC911"] = "waitingOrder";
|
|
27
|
+
PurchasedProcessEnum["\uBC1C\uC1A1\uC804"] = "beforeDelivery";
|
|
28
|
+
PurchasedProcessEnum["\uBC1C\uC1A1\uD6C4"] = "afterDelivery";
|
|
29
|
+
PurchasedProcessEnum["\uC218\uB839\uD655\uC778_\uB300\uAE30\uC911"] = "waitingReceive";
|
|
30
|
+
PurchasedProcessEnum["\uC644\uB8CC"] = "finished";
|
|
31
|
+
PurchasedProcessEnum["\uD658\uBD88_\uCC98\uB9AC\uC911"] = "refunding";
|
|
32
|
+
PurchasedProcessEnum["\uCDE8\uC18C\uB428"] = "cancelled";
|
|
33
|
+
})(PurchasedProcessEnum || (exports.PurchasedProcessEnum = PurchasedProcessEnum = {}));
|
|
34
|
+
// 당시 셀렉션 프레임 데이터 정보
|
|
35
|
+
class PastSelectionFrameDataInfo {
|
|
36
|
+
}
|
|
37
|
+
exports.PastSelectionFrameDataInfo = PastSelectionFrameDataInfo;
|
|
38
|
+
var InsuranceProcessTypeEnum;
|
|
39
|
+
(function (InsuranceProcessTypeEnum) {
|
|
40
|
+
InsuranceProcessTypeEnum["REG"] = "reg";
|
|
41
|
+
InsuranceProcessTypeEnum["CANCEL"] = "cancel";
|
|
42
|
+
InsuranceProcessTypeEnum["DELETE"] = "delete";
|
|
43
|
+
})(InsuranceProcessTypeEnum || (exports.InsuranceProcessTypeEnum = InsuranceProcessTypeEnum = {}));
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { BundleInfo, CancelInfo, CouponInfo, DeliveryData, PInfoIMPRefundInfo, InsuranceStatus, ManagerInfo, PInfoAccountInfo, PInfoBuyerInfo, PInfoCreditLog, PInfoDeliveryMethod, PInfoDeviceInfo, PInfoInflowInfo, PInfoPCCCInfo, PInfoPOptionInfo, PInfoPastReqInfo, PInfoProceedsInfo, PInfoSettleInfo, PInfoSortInfo, PInfoStoreItemBookmarkInfo, PInfoStoreSubscribeInfo, PInfoVBankInfo, PInfoWaitingOrderInfo, PInfoWaitingReceiveInfo, POption, POptionTypeEnum, PastSelectionConnectInfo, PastSelectionFrame, PastSellingInfo, PaymentFeeInfo, ProceedsLog, PurchasedInfoEntity, PurchasedInfoOption, PurchasedProcessEnum, PurchasedRefundInfo, ShippingFeeBySection, ShippingFeeSection, ShippingTermsInfo, PInfoStoreItemInsuranceInfo, UserTypeEnum, DiscountInfo, RelateBundlePInfo, PInfoIMPRefundError, PastDirectInfo, PastSellingInfoShippingInfo, PastVisitInfo, PastSellingInfoShippingTermsInfo, PastSellingInfoShippingFeeBySection, PastSellingInfoShippingFeeSection, PInfoPastReqUserInfo } from './purchased-info.entity';
|
|
3
|
+
declare class PastSellingInfoShippingFeeBySectionSwagger implements PastSellingInfoShippingFeeBySection {
|
|
4
|
+
shippingFeeSectionList: PastSellingInfoShippingFeeSection[];
|
|
5
|
+
lastSectionShippingFee: number;
|
|
6
|
+
}
|
|
7
|
+
declare class PastSellingInfoShippingTermsInfoSwagger implements PastSellingInfoShippingTermsInfo {
|
|
8
|
+
shippingTermsType: string;
|
|
9
|
+
shippingFeeBySection?: PastSellingInfoShippingFeeBySectionSwagger;
|
|
10
|
+
}
|
|
11
|
+
declare class PastSellingInfoShippingInfoSwagger implements PastSellingInfoShippingInfo {
|
|
12
|
+
expectedSendDays?: number;
|
|
13
|
+
isAbroadShipping: boolean;
|
|
14
|
+
isPrepay?: boolean;
|
|
15
|
+
prepayPrice?: number;
|
|
16
|
+
isBundleShipping?: boolean;
|
|
17
|
+
bundleShippingFee?: number;
|
|
18
|
+
isShippingTerms: boolean;
|
|
19
|
+
shippingTermsInfo?: PastSellingInfoShippingTermsInfoSwagger;
|
|
20
|
+
}
|
|
21
|
+
declare class PInfoIMPRefundErrorSwagger implements PInfoIMPRefundError {
|
|
22
|
+
IMPRefundErrorReason: string;
|
|
23
|
+
pastIMPInfo: object;
|
|
24
|
+
regDate: Date;
|
|
25
|
+
}
|
|
26
|
+
declare class PInfoIMPRefundInfoSwagger implements PInfoIMPRefundInfo {
|
|
27
|
+
IMPRefundErrorList?: PInfoIMPRefundErrorSwagger[];
|
|
28
|
+
IMPRefundLastErrorReason?: string;
|
|
29
|
+
IMPRefundSuccess?: object;
|
|
30
|
+
canRefundDueDate?: Date;
|
|
31
|
+
isIMPRefund?: boolean;
|
|
32
|
+
relateRefundId?: string;
|
|
33
|
+
}
|
|
34
|
+
declare class BundleInfoSwagger implements BundleInfo {
|
|
35
|
+
isBundle: boolean;
|
|
36
|
+
bundlePInfoId?: Types.ObjectId;
|
|
37
|
+
bundleDate?: Date;
|
|
38
|
+
bundleFee?: number;
|
|
39
|
+
isBundleParent?: boolean;
|
|
40
|
+
buyerUsername?: string;
|
|
41
|
+
receiverName?: string;
|
|
42
|
+
relateBundlePInfoList?: RelateBundlePInfo[];
|
|
43
|
+
}
|
|
44
|
+
declare class DiscountInfoSwagger implements DiscountInfo {
|
|
45
|
+
paidPrice: number;
|
|
46
|
+
discountValue: number;
|
|
47
|
+
discountResult: number;
|
|
48
|
+
}
|
|
49
|
+
declare class CouponInfoSwagger implements CouponInfo {
|
|
50
|
+
ICId: string;
|
|
51
|
+
discountInfo: DiscountInfoSwagger;
|
|
52
|
+
}
|
|
53
|
+
declare class PInfoStoreItemInsuranceInfoSwagger implements PInfoStoreItemInsuranceInfo {
|
|
54
|
+
isInsurance: boolean;
|
|
55
|
+
unitPrice?: number;
|
|
56
|
+
itemPriceWithInsurance: number;
|
|
57
|
+
}
|
|
58
|
+
declare class PInfoBuyerInfoSwagger implements PInfoBuyerInfo {
|
|
59
|
+
buyerName: string;
|
|
60
|
+
buyerPostCode: string;
|
|
61
|
+
buyerPhoneNumber?: string | undefined;
|
|
62
|
+
buyerAddress1?: string | undefined;
|
|
63
|
+
buyerAddress2?: string | undefined;
|
|
64
|
+
buyerDirectAddress?: string | undefined;
|
|
65
|
+
}
|
|
66
|
+
declare class DeliveryDataSwagger implements DeliveryData {
|
|
67
|
+
SCompany?: string;
|
|
68
|
+
directDate?: Date;
|
|
69
|
+
invoice?: string;
|
|
70
|
+
invoiceUrl?: string;
|
|
71
|
+
isDirectInput?: boolean;
|
|
72
|
+
regDate?: Date;
|
|
73
|
+
}
|
|
74
|
+
declare class PInfoCreditLogSwagger implements PInfoCreditLog {
|
|
75
|
+
text: string;
|
|
76
|
+
amount: number;
|
|
77
|
+
isCancel: boolean;
|
|
78
|
+
_author: string | Types.ObjectId;
|
|
79
|
+
date: Date;
|
|
80
|
+
}
|
|
81
|
+
declare class PInfoDeliveryMethodSwagger implements PInfoDeliveryMethod {
|
|
82
|
+
DType: string;
|
|
83
|
+
isVisit: boolean;
|
|
84
|
+
isPrepay?: boolean | undefined;
|
|
85
|
+
isBundleParent: boolean;
|
|
86
|
+
isBundleShipping: boolean;
|
|
87
|
+
bundleShippingFee: number;
|
|
88
|
+
bundlePInfoId?: string | Types.ObjectId;
|
|
89
|
+
address: string;
|
|
90
|
+
isShippingTerms?: boolean;
|
|
91
|
+
shippingTermsInfo?: ShippingTermsInfoSwagger;
|
|
92
|
+
}
|
|
93
|
+
declare class ShippingFeeSectionSwagger implements ShippingFeeSection {
|
|
94
|
+
until: number;
|
|
95
|
+
untilShippingFee: number;
|
|
96
|
+
}
|
|
97
|
+
declare class ShippingFeeBySectionSwagger implements ShippingFeeBySection {
|
|
98
|
+
shippingFeeSectionList: ShippingFeeSectionSwagger[];
|
|
99
|
+
lastSectionShippingFee: number;
|
|
100
|
+
}
|
|
101
|
+
declare class ShippingTermsInfoSwagger implements ShippingTermsInfo {
|
|
102
|
+
shippingTermsType: string;
|
|
103
|
+
shippingFeeBySection: ShippingFeeBySectionSwagger;
|
|
104
|
+
}
|
|
105
|
+
declare class PurchasedInfoOptionSwagger implements PurchasedInfoOption {
|
|
106
|
+
name: string;
|
|
107
|
+
purchaseNumber: number;
|
|
108
|
+
originId?: string | Types.ObjectId;
|
|
109
|
+
}
|
|
110
|
+
declare class POptionSwagger implements POption {
|
|
111
|
+
optionName: string;
|
|
112
|
+
optionNameList: string[];
|
|
113
|
+
pNums?: number;
|
|
114
|
+
}
|
|
115
|
+
declare class PInfoPOptionInfoSwagger implements PInfoPOptionInfo {
|
|
116
|
+
pOptionType?: POptionTypeEnum;
|
|
117
|
+
pOptionList: POptionSwagger[];
|
|
118
|
+
}
|
|
119
|
+
declare class ManagerInfoSwagger implements ManagerInfo {
|
|
120
|
+
managerId: string | Types.ObjectId;
|
|
121
|
+
}
|
|
122
|
+
declare class CancelInfoSwagger implements CancelInfo {
|
|
123
|
+
reason: string;
|
|
124
|
+
managerInfo?: ManagerInfoSwagger;
|
|
125
|
+
PInfoLastProcess?: string;
|
|
126
|
+
userType?: UserTypeEnum;
|
|
127
|
+
who?: string | Types.ObjectId;
|
|
128
|
+
}
|
|
129
|
+
declare class PaymentFeeInfoSwagger implements PaymentFeeInfo {
|
|
130
|
+
paymentMethod: string;
|
|
131
|
+
paymentFeePercent: number;
|
|
132
|
+
paymentFeeNumber: number;
|
|
133
|
+
regDate: Date;
|
|
134
|
+
}
|
|
135
|
+
declare class PurchasedRefundInfoSwagger implements PurchasedRefundInfo {
|
|
136
|
+
PInfoLastProcess?: string;
|
|
137
|
+
refundId?: string;
|
|
138
|
+
relateRefundIdList: string[];
|
|
139
|
+
isRefundProcessRunning?: boolean;
|
|
140
|
+
}
|
|
141
|
+
declare class PastDirectInfoSwagger implements PastDirectInfo {
|
|
142
|
+
expectedDeliveryDays?: number;
|
|
143
|
+
address: string;
|
|
144
|
+
}
|
|
145
|
+
declare class PastVisitInfoSwagger implements PastVisitInfo {
|
|
146
|
+
keepingDate: Date;
|
|
147
|
+
isRegularlyKeeping: boolean;
|
|
148
|
+
regularlyKeepingDays?: number;
|
|
149
|
+
}
|
|
150
|
+
declare class PastSellingInfoSwagger implements PastSellingInfo {
|
|
151
|
+
sellingInfoLogId?: string | Types.ObjectId;
|
|
152
|
+
area: string;
|
|
153
|
+
nation: string;
|
|
154
|
+
city: string;
|
|
155
|
+
isExistDueDate: boolean;
|
|
156
|
+
dueDate?: Date;
|
|
157
|
+
deliveryDate?: Date;
|
|
158
|
+
isShipping: boolean;
|
|
159
|
+
shippingInfo?: PastSellingInfoShippingInfoSwagger;
|
|
160
|
+
isDirect: boolean;
|
|
161
|
+
directInfo?: PastDirectInfoSwagger;
|
|
162
|
+
isVisit: boolean;
|
|
163
|
+
visitInfo?: PastVisitInfoSwagger;
|
|
164
|
+
}
|
|
165
|
+
declare class ProceedsLogSwagger implements ProceedsLog {
|
|
166
|
+
type: string;
|
|
167
|
+
proceeds: number;
|
|
168
|
+
regDate: Date;
|
|
169
|
+
}
|
|
170
|
+
declare class PInfoDeviceInfoSwagger implements PInfoDeviceInfo {
|
|
171
|
+
device_id?: string | undefined;
|
|
172
|
+
userAgent?: string | undefined;
|
|
173
|
+
yg_apptype?: string | undefined;
|
|
174
|
+
yg_appver?: string | undefined;
|
|
175
|
+
yg_model?: string | undefined;
|
|
176
|
+
yg_osver?: string | undefined;
|
|
177
|
+
}
|
|
178
|
+
declare class PInfoInflowInfoSwagger implements PInfoInflowInfo {
|
|
179
|
+
device?: PInfoDeviceInfoSwagger;
|
|
180
|
+
inflowDate?: Date;
|
|
181
|
+
ip?: string;
|
|
182
|
+
url?: string;
|
|
183
|
+
userAgent?: string;
|
|
184
|
+
yg_method?: string;
|
|
185
|
+
yg_type?: string;
|
|
186
|
+
}
|
|
187
|
+
declare class PInfoPastReqUserInfoSwagger implements PInfoPastReqUserInfo {
|
|
188
|
+
authId?: string;
|
|
189
|
+
userId?: string | Types.ObjectId;
|
|
190
|
+
username?: string;
|
|
191
|
+
}
|
|
192
|
+
declare class PInfoPastReqInfoSwagger implements PInfoPastReqInfo {
|
|
193
|
+
__filename?: string;
|
|
194
|
+
body?: object | undefined;
|
|
195
|
+
device?: PInfoDeviceInfoSwagger;
|
|
196
|
+
ip?: string;
|
|
197
|
+
referer?: string;
|
|
198
|
+
regDate?: Date;
|
|
199
|
+
url?: string;
|
|
200
|
+
userInfo?: PInfoPastReqUserInfoSwagger;
|
|
201
|
+
}
|
|
202
|
+
export declare class PurchasedInfoSwagger implements PurchasedInfoEntity {
|
|
203
|
+
_id: string | Types.ObjectId;
|
|
204
|
+
sellerId: string | Types.ObjectId;
|
|
205
|
+
buyerId: string | Types.ObjectId;
|
|
206
|
+
storeId: string | Types.ObjectId;
|
|
207
|
+
itemId: string | Types.ObjectId;
|
|
208
|
+
process: PurchasedProcessEnum;
|
|
209
|
+
beforePInfoProcess: PurchasedProcessEnum;
|
|
210
|
+
imp_uid?: string;
|
|
211
|
+
date?: Date;
|
|
212
|
+
recTime?: Date;
|
|
213
|
+
cancelledDate?: Date;
|
|
214
|
+
deliveryData?: DeliveryDataSwagger;
|
|
215
|
+
accountInfo?: PInfoAccountInfo;
|
|
216
|
+
giveMoney: boolean;
|
|
217
|
+
purchaseNumber: number;
|
|
218
|
+
proceedsInfo: PInfoProceedsInfo;
|
|
219
|
+
deliveryMethod: PInfoDeliveryMethodSwagger;
|
|
220
|
+
shippingFee: number;
|
|
221
|
+
paymentDate: Date;
|
|
222
|
+
payTryLogId?: string | Types.ObjectId;
|
|
223
|
+
payTryLogId_v2?: string | Types.ObjectId;
|
|
224
|
+
pastName?: string;
|
|
225
|
+
pastImg?: string;
|
|
226
|
+
pastPrice: number;
|
|
227
|
+
pastPriceForBuyer?: number;
|
|
228
|
+
option: PurchasedInfoOptionSwagger[];
|
|
229
|
+
pOptionInfo?: PInfoPOptionInfoSwagger;
|
|
230
|
+
totalPrice: number;
|
|
231
|
+
originPrice: number;
|
|
232
|
+
originPriceForBuyer?: number;
|
|
233
|
+
paidPrice: number;
|
|
234
|
+
paidPrice_exceptPaymentFee?: number;
|
|
235
|
+
paymentMethod?: string;
|
|
236
|
+
cancelInfo?: CancelInfoSwagger;
|
|
237
|
+
isCart?: boolean;
|
|
238
|
+
cartId?: string | Types.ObjectId;
|
|
239
|
+
memo?: string;
|
|
240
|
+
buyerInfo?: PInfoBuyerInfoSwagger;
|
|
241
|
+
paymentFeeInfo?: PaymentFeeInfoSwagger;
|
|
242
|
+
refundInfo?: PurchasedRefundInfoSwagger;
|
|
243
|
+
publicId: string;
|
|
244
|
+
usedCredit?: number;
|
|
245
|
+
pastInsuranceInfo?: PInfoStoreItemInsuranceInfoSwagger;
|
|
246
|
+
couponInfo?: CouponInfoSwagger;
|
|
247
|
+
bundlePInfo: BundleInfoSwagger;
|
|
248
|
+
IMPRefundInfo?: PInfoIMPRefundInfoSwagger;
|
|
249
|
+
pastStoreItemInfo?: object;
|
|
250
|
+
pastSellingInfo?: PastSellingInfoSwagger;
|
|
251
|
+
autoReceiveTime?: Date;
|
|
252
|
+
requirement?: string;
|
|
253
|
+
expectedProceeds: number;
|
|
254
|
+
creditLog?: PInfoCreditLogSwagger;
|
|
255
|
+
payment: object[];
|
|
256
|
+
pastBuyerUsername: string;
|
|
257
|
+
proceedsLog: ProceedsLogSwagger[];
|
|
258
|
+
inflowInfo?: PInfoInflowInfoSwagger;
|
|
259
|
+
deviceInfo?: PInfoDeviceInfoSwagger;
|
|
260
|
+
isLimitSale: boolean;
|
|
261
|
+
pastDeliveryDate?: Date;
|
|
262
|
+
reviewId?: string | Types.ObjectId;
|
|
263
|
+
reviewIdList?: Types.ObjectId[] | string[];
|
|
264
|
+
log: object[];
|
|
265
|
+
pastReqInfo?: PInfoPastReqInfoSwagger;
|
|
266
|
+
PCCCInfo?: PInfoPCCCInfo;
|
|
267
|
+
VBankInfo?: PInfoVBankInfo;
|
|
268
|
+
waitingOrderInfo?: PInfoWaitingOrderInfo;
|
|
269
|
+
waitingReceiveInfo?: PInfoWaitingReceiveInfo;
|
|
270
|
+
isStoreItemBookmark?: boolean;
|
|
271
|
+
storeItemBookmarkInfo?: PInfoStoreItemBookmarkInfo;
|
|
272
|
+
isStoreSubscribe?: boolean;
|
|
273
|
+
storeSubscribeInfo?: PInfoStoreSubscribeInfo;
|
|
274
|
+
sortInfo: PInfoSortInfo;
|
|
275
|
+
itemReviewId?: string | Types.ObjectId;
|
|
276
|
+
sellerReviewId?: string | Types.ObjectId;
|
|
277
|
+
ItemReviewSawLogId?: string | Types.ObjectId;
|
|
278
|
+
pastMainCategory?: string;
|
|
279
|
+
pastSubCategory?: string;
|
|
280
|
+
pastCategoryVersion?: string;
|
|
281
|
+
pastCategoryMajorVersion?: string;
|
|
282
|
+
pastSelectionConnectInfos?: PastSelectionConnectInfo[];
|
|
283
|
+
pastSelectionFrames?: PastSelectionFrame[];
|
|
284
|
+
settleInfo?: PInfoSettleInfo;
|
|
285
|
+
insuranceStatus?: InsuranceStatus;
|
|
286
|
+
}
|
|
287
|
+
export {};
|