gemcap-be-common 1.5.59 → 1.5.60
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.
|
@@ -40,7 +40,7 @@ export interface ILoanProduct {
|
|
|
40
40
|
isBalanceActual: boolean;
|
|
41
41
|
isFloatedBalanceActual: boolean;
|
|
42
42
|
isParticipant?: boolean;
|
|
43
|
-
masterLoanProductId
|
|
43
|
+
masterLoanProductId: mongoose.Types.ObjectId;
|
|
44
44
|
minPercent: number;
|
|
45
45
|
maxPercent: number;
|
|
46
46
|
prepaymentDate?: Date;
|
|
@@ -60,9 +60,10 @@ export interface ILoanProductLean extends ILoanProduct {
|
|
|
60
60
|
createdAt: Date;
|
|
61
61
|
updatedAt: Date;
|
|
62
62
|
}
|
|
63
|
-
export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId'> {
|
|
63
|
+
export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId' | 'masterLoanProductId'> {
|
|
64
64
|
_id: string;
|
|
65
65
|
borrowerId: string;
|
|
66
|
+
masterLoanProductId: string;
|
|
66
67
|
}
|
|
67
68
|
export interface ILoanProductWithId extends ILoanProduct {
|
|
68
69
|
_id: mongoose.Types.ObjectId;
|
|
@@ -83,6 +84,7 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
83
84
|
updatedAt: NativeDate;
|
|
84
85
|
} & {
|
|
85
86
|
borrowerId: mongoose.Types.ObjectId;
|
|
87
|
+
masterLoanProductId: mongoose.Types.ObjectId;
|
|
86
88
|
order: number;
|
|
87
89
|
active: boolean;
|
|
88
90
|
code: string;
|
|
@@ -97,7 +99,6 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
97
99
|
masterCode?: string;
|
|
98
100
|
payoffDate?: Date;
|
|
99
101
|
isParticipant?: boolean;
|
|
100
|
-
masterLoanProductId?: mongoose.Types.ObjectId;
|
|
101
102
|
minPercent?: number;
|
|
102
103
|
maxPercent?: number;
|
|
103
104
|
prepaymentDate?: Date;
|
|
@@ -110,6 +111,7 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
110
111
|
updatedAt: NativeDate;
|
|
111
112
|
} & {
|
|
112
113
|
borrowerId: mongoose.Types.ObjectId;
|
|
114
|
+
masterLoanProductId: mongoose.Types.ObjectId;
|
|
113
115
|
order: number;
|
|
114
116
|
active: boolean;
|
|
115
117
|
code: string;
|
|
@@ -124,7 +126,6 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
124
126
|
masterCode?: string;
|
|
125
127
|
payoffDate?: Date;
|
|
126
128
|
isParticipant?: boolean;
|
|
127
|
-
masterLoanProductId?: mongoose.Types.ObjectId;
|
|
128
129
|
minPercent?: number;
|
|
129
130
|
maxPercent?: number;
|
|
130
131
|
prepaymentDate?: Date;
|
|
@@ -137,6 +138,7 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
137
138
|
updatedAt: NativeDate;
|
|
138
139
|
} & {
|
|
139
140
|
borrowerId: mongoose.Types.ObjectId;
|
|
141
|
+
masterLoanProductId: mongoose.Types.ObjectId;
|
|
140
142
|
order: number;
|
|
141
143
|
active: boolean;
|
|
142
144
|
code: string;
|
|
@@ -151,7 +153,6 @@ export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any,
|
|
|
151
153
|
masterCode?: string;
|
|
152
154
|
payoffDate?: Date;
|
|
153
155
|
isParticipant?: boolean;
|
|
154
|
-
masterLoanProductId?: mongoose.Types.ObjectId;
|
|
155
156
|
minPercent?: number;
|
|
156
157
|
maxPercent?: number;
|
|
157
158
|
prepaymentDate?: Date;
|
|
@@ -19,7 +19,7 @@ export interface ILoanProduct {
|
|
|
19
19
|
isBalanceActual: boolean;
|
|
20
20
|
isFloatedBalanceActual: boolean;
|
|
21
21
|
isParticipant?: boolean;
|
|
22
|
-
masterLoanProductId
|
|
22
|
+
masterLoanProductId: mongoose.Types.ObjectId;
|
|
23
23
|
minPercent: number;
|
|
24
24
|
maxPercent: number;
|
|
25
25
|
prepaymentDate?: Date;
|
|
@@ -42,9 +42,10 @@ export interface ILoanProductLean extends ILoanProduct {
|
|
|
42
42
|
updatedAt: Date;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId'> {
|
|
45
|
+
export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId' | 'masterLoanProductId'> {
|
|
46
46
|
_id: string;
|
|
47
47
|
borrowerId: string;
|
|
48
|
+
masterLoanProductId: string;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export interface ILoanProductWithId extends ILoanProduct {
|
|
@@ -130,7 +131,7 @@ export const LoanProductSchema = new mongoose.Schema(
|
|
|
130
131
|
masterLoanProductId: {
|
|
131
132
|
type: mongoose.Schema.Types.ObjectId,
|
|
132
133
|
ref: MODEL_NAMES.loanProducts,
|
|
133
|
-
|
|
134
|
+
default: null,
|
|
134
135
|
},
|
|
135
136
|
minPercent: {
|
|
136
137
|
type: Number,
|