@yolo-croket-dev/entity-v2 0.0.25-jun.4 → 0.0.25-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.
@@ -1,15 +1,58 @@
1
1
  import { Types } from 'mongoose';
2
- export interface BundleChildPurchasedInfo {
2
+ export interface PurchasedInfoDetail {
3
3
  PInfoId: Types.ObjectId;
4
+ publicId: string;
5
+ paymentDate: Date;
6
+ pastItemName: string;
7
+ pOptionNams: string[];
4
8
  sellerId: Types.ObjectId;
9
+ /** 해당 데이터는 계속 변동 될 수 있음 */
10
+ process: string;
11
+ }
12
+ export interface PastIsPrepay {
13
+ PInfoId: Types.ObjectId;
14
+ isPrepay: boolean;
15
+ }
16
+ /** 어디에 사용되는지 체크해야 함 */
17
+ export interface PastIsPrepayInfo {
18
+ list: PastIsPrepay[];
19
+ select: PastIsPrepay;
20
+ regDate: Date;
21
+ }
22
+ export interface PastShippingFee {
23
+ PInfoId: Types.ObjectId;
24
+ shippingFee: number;
25
+ }
26
+ /** 어디에 사용되는지 체크해야 함 */
27
+ export interface PastShippingFeeInfo {
28
+ list: PastShippingFee[];
29
+ select: PastShippingFee;
30
+ regDate: Date;
5
31
  }
6
32
  export default interface BundlePurchasedInfoEntity {
33
+ version: string;
7
34
  _id: Types.ObjectId;
8
- /** 현재 DB에 4개정도 이상한 데이터가 있지만 */
9
- parentPInfoId: Types.ObjectId;
10
- process: string;
35
+ pastIsPrepayInfo: PastIsPrepayInfo;
36
+ pastShippingFeeInfo: PastShippingFeeInfo;
37
+ isAbroadShipping: boolean;
38
+ /** 묶음이 2개이상이면 true */
39
+ isBundle: boolean;
40
+ PInfoList: PurchasedInfoDetail[];
11
41
  buyerId: Types.ObjectId;
12
- PInfoList: BundleChildPurchasedInfo[];
42
+ pastBuyerName: string;
43
+ pastReceiverName: string;
44
+ process: string;
45
+ isYeogoo: boolean;
46
+ address: string;
47
+ lastModifyDate: Date;
48
+ bundleShippingFee?: number;
49
+ isPrepay?: boolean;
50
+ shippingFee?: number;
51
+ regDate: Date;
13
52
  log: any;
53
+ /** 현재 DB에 4개정도 이상한 데이터가 있지만 */
54
+ parentPInfoId: Types.ObjectId;
55
+ SCompany?: string;
56
+ invoice?: string;
14
57
  }
15
58
  export { BundlePurchasedInfoEntity };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.25-jun.4",
3
+ "version": "0.0.25-jun.5",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",