@valentine-efagene/qshelter-common 2.0.94 → 2.0.95

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.
Files changed (44) hide show
  1. package/dist/generated/client/browser.d.ts +16 -16
  2. package/dist/generated/client/client.d.ts +16 -16
  3. package/dist/generated/client/commonInputTypes.d.ts +72 -72
  4. package/dist/generated/client/enums.d.ts +13 -13
  5. package/dist/generated/client/enums.js +10 -10
  6. package/dist/generated/client/internal/class.d.ts +32 -32
  7. package/dist/generated/client/internal/class.js +2 -2
  8. package/dist/generated/client/internal/prismaNamespace.d.ts +321 -321
  9. package/dist/generated/client/internal/prismaNamespace.js +50 -50
  10. package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +66 -66
  11. package/dist/generated/client/internal/prismaNamespaceBrowser.js +50 -50
  12. package/dist/generated/client/models/Application.d.ts +5439 -0
  13. package/dist/generated/client/models/Application.js +1 -0
  14. package/dist/generated/client/models/ApplicationDocument.d.ts +1409 -0
  15. package/dist/generated/client/models/ApplicationDocument.js +1 -0
  16. package/dist/generated/client/models/ApplicationEvent.d.ts +1254 -0
  17. package/dist/generated/client/models/ApplicationEvent.js +1 -0
  18. package/dist/generated/client/models/ApplicationPayment.d.ts +2030 -0
  19. package/dist/generated/client/models/ApplicationPayment.js +1 -0
  20. package/dist/generated/client/models/ApplicationPhase.d.ts +2243 -0
  21. package/dist/generated/client/models/ApplicationPhase.js +1 -0
  22. package/dist/generated/client/models/ApplicationRefund.d.ts +2560 -0
  23. package/dist/generated/client/models/ApplicationRefund.js +1 -0
  24. package/dist/generated/client/models/ApplicationTermination.d.ts +3446 -0
  25. package/dist/generated/client/models/ApplicationTermination.js +1 -0
  26. package/dist/generated/client/models/DocumentationPhase.d.ts +13 -13
  27. package/dist/generated/client/models/OfferLetter.d.ts +97 -97
  28. package/dist/generated/client/models/PaymentInstallment.d.ts +1660 -0
  29. package/dist/generated/client/models/PaymentInstallment.js +1 -0
  30. package/dist/generated/client/models/PaymentMethodChangeRequest.d.ts +103 -103
  31. package/dist/generated/client/models/PaymentPhase.d.ts +40 -40
  32. package/dist/generated/client/models/PropertyPaymentMethod.d.ts +77 -77
  33. package/dist/generated/client/models/PropertyTransferRequest.d.ts +213 -213
  34. package/dist/generated/client/models/PropertyUnit.d.ts +53 -53
  35. package/dist/generated/client/models/QuestionnairePhase.d.ts +11 -11
  36. package/dist/generated/client/models/Tenant.d.ts +323 -323
  37. package/dist/generated/client/models/User.d.ts +1329 -1329
  38. package/dist/generated/client/models/index.d.ts +8 -8
  39. package/dist/generated/client/models/index.js +8 -8
  40. package/dist/generated/client/models.d.ts +8 -8
  41. package/package.json +1 -1
  42. package/prisma/migrations/20260112080730_rename_contract_to_application/migration.sql +529 -0
  43. package/prisma/schema.prisma +107 -107
  44. package/prisma/schema.prisma.backup +2601 -0
@@ -0,0 +1,1660 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as $Enums from "../enums.js";
3
+ import type * as Prisma from "../internal/prismaNamespace.js";
4
+ /**
5
+ * Model PaymentInstallment
6
+ *
7
+ */
8
+ export type PaymentInstallmentModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentInstallmentPayload>;
9
+ export type AggregatePaymentInstallment = {
10
+ _count: PaymentInstallmentCountAggregateOutputType | null;
11
+ _avg: PaymentInstallmentAvgAggregateOutputType | null;
12
+ _sum: PaymentInstallmentSumAggregateOutputType | null;
13
+ _min: PaymentInstallmentMinAggregateOutputType | null;
14
+ _max: PaymentInstallmentMaxAggregateOutputType | null;
15
+ };
16
+ export type PaymentInstallmentAvgAggregateOutputType = {
17
+ installmentNumber: number | null;
18
+ amount: number | null;
19
+ principalAmount: number | null;
20
+ interestAmount: number | null;
21
+ paidAmount: number | null;
22
+ lateFee: number | null;
23
+ gracePeriodDays: number | null;
24
+ };
25
+ export type PaymentInstallmentSumAggregateOutputType = {
26
+ installmentNumber: number | null;
27
+ amount: number | null;
28
+ principalAmount: number | null;
29
+ interestAmount: number | null;
30
+ paidAmount: number | null;
31
+ lateFee: number | null;
32
+ gracePeriodDays: number | null;
33
+ };
34
+ export type PaymentInstallmentMinAggregateOutputType = {
35
+ id: string | null;
36
+ paymentPhaseId: string | null;
37
+ installmentNumber: number | null;
38
+ amount: number | null;
39
+ principalAmount: number | null;
40
+ interestAmount: number | null;
41
+ dueDate: Date | null;
42
+ status: $Enums.InstallmentStatus | null;
43
+ paidAmount: number | null;
44
+ paidDate: Date | null;
45
+ lateFee: number | null;
46
+ lateFeeWaived: boolean | null;
47
+ gracePeriodDays: number | null;
48
+ gracePeriodEndDate: Date | null;
49
+ createdAt: Date | null;
50
+ updatedAt: Date | null;
51
+ };
52
+ export type PaymentInstallmentMaxAggregateOutputType = {
53
+ id: string | null;
54
+ paymentPhaseId: string | null;
55
+ installmentNumber: number | null;
56
+ amount: number | null;
57
+ principalAmount: number | null;
58
+ interestAmount: number | null;
59
+ dueDate: Date | null;
60
+ status: $Enums.InstallmentStatus | null;
61
+ paidAmount: number | null;
62
+ paidDate: Date | null;
63
+ lateFee: number | null;
64
+ lateFeeWaived: boolean | null;
65
+ gracePeriodDays: number | null;
66
+ gracePeriodEndDate: Date | null;
67
+ createdAt: Date | null;
68
+ updatedAt: Date | null;
69
+ };
70
+ export type PaymentInstallmentCountAggregateOutputType = {
71
+ id: number;
72
+ paymentPhaseId: number;
73
+ installmentNumber: number;
74
+ amount: number;
75
+ principalAmount: number;
76
+ interestAmount: number;
77
+ dueDate: number;
78
+ status: number;
79
+ paidAmount: number;
80
+ paidDate: number;
81
+ lateFee: number;
82
+ lateFeeWaived: number;
83
+ gracePeriodDays: number;
84
+ gracePeriodEndDate: number;
85
+ createdAt: number;
86
+ updatedAt: number;
87
+ _all: number;
88
+ };
89
+ export type PaymentInstallmentAvgAggregateInputType = {
90
+ installmentNumber?: true;
91
+ amount?: true;
92
+ principalAmount?: true;
93
+ interestAmount?: true;
94
+ paidAmount?: true;
95
+ lateFee?: true;
96
+ gracePeriodDays?: true;
97
+ };
98
+ export type PaymentInstallmentSumAggregateInputType = {
99
+ installmentNumber?: true;
100
+ amount?: true;
101
+ principalAmount?: true;
102
+ interestAmount?: true;
103
+ paidAmount?: true;
104
+ lateFee?: true;
105
+ gracePeriodDays?: true;
106
+ };
107
+ export type PaymentInstallmentMinAggregateInputType = {
108
+ id?: true;
109
+ paymentPhaseId?: true;
110
+ installmentNumber?: true;
111
+ amount?: true;
112
+ principalAmount?: true;
113
+ interestAmount?: true;
114
+ dueDate?: true;
115
+ status?: true;
116
+ paidAmount?: true;
117
+ paidDate?: true;
118
+ lateFee?: true;
119
+ lateFeeWaived?: true;
120
+ gracePeriodDays?: true;
121
+ gracePeriodEndDate?: true;
122
+ createdAt?: true;
123
+ updatedAt?: true;
124
+ };
125
+ export type PaymentInstallmentMaxAggregateInputType = {
126
+ id?: true;
127
+ paymentPhaseId?: true;
128
+ installmentNumber?: true;
129
+ amount?: true;
130
+ principalAmount?: true;
131
+ interestAmount?: true;
132
+ dueDate?: true;
133
+ status?: true;
134
+ paidAmount?: true;
135
+ paidDate?: true;
136
+ lateFee?: true;
137
+ lateFeeWaived?: true;
138
+ gracePeriodDays?: true;
139
+ gracePeriodEndDate?: true;
140
+ createdAt?: true;
141
+ updatedAt?: true;
142
+ };
143
+ export type PaymentInstallmentCountAggregateInputType = {
144
+ id?: true;
145
+ paymentPhaseId?: true;
146
+ installmentNumber?: true;
147
+ amount?: true;
148
+ principalAmount?: true;
149
+ interestAmount?: true;
150
+ dueDate?: true;
151
+ status?: true;
152
+ paidAmount?: true;
153
+ paidDate?: true;
154
+ lateFee?: true;
155
+ lateFeeWaived?: true;
156
+ gracePeriodDays?: true;
157
+ gracePeriodEndDate?: true;
158
+ createdAt?: true;
159
+ updatedAt?: true;
160
+ _all?: true;
161
+ };
162
+ export type PaymentInstallmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
+ /**
164
+ * Filter which PaymentInstallment to aggregate.
165
+ */
166
+ where?: Prisma.PaymentInstallmentWhereInput;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
169
+ *
170
+ * Determine the order of PaymentInstallments to fetch.
171
+ */
172
+ orderBy?: Prisma.PaymentInstallmentOrderByWithRelationInput | Prisma.PaymentInstallmentOrderByWithRelationInput[];
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
175
+ *
176
+ * Sets the start position
177
+ */
178
+ cursor?: Prisma.PaymentInstallmentWhereUniqueInput;
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
181
+ *
182
+ * Take `±n` PaymentInstallments from the position of the cursor.
183
+ */
184
+ take?: number;
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
187
+ *
188
+ * Skip the first `n` PaymentInstallments.
189
+ */
190
+ skip?: number;
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Count returned PaymentInstallments
195
+ **/
196
+ _count?: true | PaymentInstallmentCountAggregateInputType;
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to average
201
+ **/
202
+ _avg?: PaymentInstallmentAvgAggregateInputType;
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
+ *
206
+ * Select which fields to sum
207
+ **/
208
+ _sum?: PaymentInstallmentSumAggregateInputType;
209
+ /**
210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
211
+ *
212
+ * Select which fields to find the minimum value
213
+ **/
214
+ _min?: PaymentInstallmentMinAggregateInputType;
215
+ /**
216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
217
+ *
218
+ * Select which fields to find the maximum value
219
+ **/
220
+ _max?: PaymentInstallmentMaxAggregateInputType;
221
+ };
222
+ export type GetPaymentInstallmentAggregateType<T extends PaymentInstallmentAggregateArgs> = {
223
+ [P in keyof T & keyof AggregatePaymentInstallment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePaymentInstallment[P]> : Prisma.GetScalarType<T[P], AggregatePaymentInstallment[P]>;
224
+ };
225
+ export type PaymentInstallmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
226
+ where?: Prisma.PaymentInstallmentWhereInput;
227
+ orderBy?: Prisma.PaymentInstallmentOrderByWithAggregationInput | Prisma.PaymentInstallmentOrderByWithAggregationInput[];
228
+ by: Prisma.PaymentInstallmentScalarFieldEnum[] | Prisma.PaymentInstallmentScalarFieldEnum;
229
+ having?: Prisma.PaymentInstallmentScalarWhereWithAggregatesInput;
230
+ take?: number;
231
+ skip?: number;
232
+ _count?: PaymentInstallmentCountAggregateInputType | true;
233
+ _avg?: PaymentInstallmentAvgAggregateInputType;
234
+ _sum?: PaymentInstallmentSumAggregateInputType;
235
+ _min?: PaymentInstallmentMinAggregateInputType;
236
+ _max?: PaymentInstallmentMaxAggregateInputType;
237
+ };
238
+ export type PaymentInstallmentGroupByOutputType = {
239
+ id: string;
240
+ paymentPhaseId: string;
241
+ installmentNumber: number;
242
+ amount: number;
243
+ principalAmount: number;
244
+ interestAmount: number;
245
+ dueDate: Date;
246
+ status: $Enums.InstallmentStatus;
247
+ paidAmount: number;
248
+ paidDate: Date | null;
249
+ lateFee: number;
250
+ lateFeeWaived: boolean;
251
+ gracePeriodDays: number;
252
+ gracePeriodEndDate: Date | null;
253
+ createdAt: Date;
254
+ updatedAt: Date;
255
+ _count: PaymentInstallmentCountAggregateOutputType | null;
256
+ _avg: PaymentInstallmentAvgAggregateOutputType | null;
257
+ _sum: PaymentInstallmentSumAggregateOutputType | null;
258
+ _min: PaymentInstallmentMinAggregateOutputType | null;
259
+ _max: PaymentInstallmentMaxAggregateOutputType | null;
260
+ };
261
+ type GetPaymentInstallmentGroupByPayload<T extends PaymentInstallmentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PaymentInstallmentGroupByOutputType, T['by']> & {
262
+ [P in ((keyof T) & (keyof PaymentInstallmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PaymentInstallmentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PaymentInstallmentGroupByOutputType[P]>;
263
+ }>>;
264
+ export type PaymentInstallmentWhereInput = {
265
+ AND?: Prisma.PaymentInstallmentWhereInput | Prisma.PaymentInstallmentWhereInput[];
266
+ OR?: Prisma.PaymentInstallmentWhereInput[];
267
+ NOT?: Prisma.PaymentInstallmentWhereInput | Prisma.PaymentInstallmentWhereInput[];
268
+ id?: Prisma.StringFilter<"PaymentInstallment"> | string;
269
+ paymentPhaseId?: Prisma.StringFilter<"PaymentInstallment"> | string;
270
+ installmentNumber?: Prisma.IntFilter<"PaymentInstallment"> | number;
271
+ amount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
272
+ principalAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
273
+ interestAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
274
+ dueDate?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
275
+ status?: Prisma.EnumInstallmentStatusFilter<"PaymentInstallment"> | $Enums.InstallmentStatus;
276
+ paidAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
277
+ paidDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
278
+ lateFee?: Prisma.FloatFilter<"PaymentInstallment"> | number;
279
+ lateFeeWaived?: Prisma.BoolFilter<"PaymentInstallment"> | boolean;
280
+ gracePeriodDays?: Prisma.IntFilter<"PaymentInstallment"> | number;
281
+ gracePeriodEndDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
282
+ createdAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
283
+ updatedAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
284
+ paymentPhase?: Prisma.XOR<Prisma.PaymentPhaseScalarRelationFilter, Prisma.PaymentPhaseWhereInput>;
285
+ payments?: Prisma.ApplicationPaymentListRelationFilter;
286
+ };
287
+ export type PaymentInstallmentOrderByWithRelationInput = {
288
+ id?: Prisma.SortOrder;
289
+ paymentPhaseId?: Prisma.SortOrder;
290
+ installmentNumber?: Prisma.SortOrder;
291
+ amount?: Prisma.SortOrder;
292
+ principalAmount?: Prisma.SortOrder;
293
+ interestAmount?: Prisma.SortOrder;
294
+ dueDate?: Prisma.SortOrder;
295
+ status?: Prisma.SortOrder;
296
+ paidAmount?: Prisma.SortOrder;
297
+ paidDate?: Prisma.SortOrderInput | Prisma.SortOrder;
298
+ lateFee?: Prisma.SortOrder;
299
+ lateFeeWaived?: Prisma.SortOrder;
300
+ gracePeriodDays?: Prisma.SortOrder;
301
+ gracePeriodEndDate?: Prisma.SortOrderInput | Prisma.SortOrder;
302
+ createdAt?: Prisma.SortOrder;
303
+ updatedAt?: Prisma.SortOrder;
304
+ paymentPhase?: Prisma.PaymentPhaseOrderByWithRelationInput;
305
+ payments?: Prisma.ApplicationPaymentOrderByRelationAggregateInput;
306
+ _relevance?: Prisma.PaymentInstallmentOrderByRelevanceInput;
307
+ };
308
+ export type PaymentInstallmentWhereUniqueInput = Prisma.AtLeast<{
309
+ id?: string;
310
+ AND?: Prisma.PaymentInstallmentWhereInput | Prisma.PaymentInstallmentWhereInput[];
311
+ OR?: Prisma.PaymentInstallmentWhereInput[];
312
+ NOT?: Prisma.PaymentInstallmentWhereInput | Prisma.PaymentInstallmentWhereInput[];
313
+ paymentPhaseId?: Prisma.StringFilter<"PaymentInstallment"> | string;
314
+ installmentNumber?: Prisma.IntFilter<"PaymentInstallment"> | number;
315
+ amount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
316
+ principalAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
317
+ interestAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
318
+ dueDate?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
319
+ status?: Prisma.EnumInstallmentStatusFilter<"PaymentInstallment"> | $Enums.InstallmentStatus;
320
+ paidAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
321
+ paidDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
322
+ lateFee?: Prisma.FloatFilter<"PaymentInstallment"> | number;
323
+ lateFeeWaived?: Prisma.BoolFilter<"PaymentInstallment"> | boolean;
324
+ gracePeriodDays?: Prisma.IntFilter<"PaymentInstallment"> | number;
325
+ gracePeriodEndDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
326
+ createdAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
327
+ updatedAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
328
+ paymentPhase?: Prisma.XOR<Prisma.PaymentPhaseScalarRelationFilter, Prisma.PaymentPhaseWhereInput>;
329
+ payments?: Prisma.ApplicationPaymentListRelationFilter;
330
+ }, "id">;
331
+ export type PaymentInstallmentOrderByWithAggregationInput = {
332
+ id?: Prisma.SortOrder;
333
+ paymentPhaseId?: Prisma.SortOrder;
334
+ installmentNumber?: Prisma.SortOrder;
335
+ amount?: Prisma.SortOrder;
336
+ principalAmount?: Prisma.SortOrder;
337
+ interestAmount?: Prisma.SortOrder;
338
+ dueDate?: Prisma.SortOrder;
339
+ status?: Prisma.SortOrder;
340
+ paidAmount?: Prisma.SortOrder;
341
+ paidDate?: Prisma.SortOrderInput | Prisma.SortOrder;
342
+ lateFee?: Prisma.SortOrder;
343
+ lateFeeWaived?: Prisma.SortOrder;
344
+ gracePeriodDays?: Prisma.SortOrder;
345
+ gracePeriodEndDate?: Prisma.SortOrderInput | Prisma.SortOrder;
346
+ createdAt?: Prisma.SortOrder;
347
+ updatedAt?: Prisma.SortOrder;
348
+ _count?: Prisma.PaymentInstallmentCountOrderByAggregateInput;
349
+ _avg?: Prisma.PaymentInstallmentAvgOrderByAggregateInput;
350
+ _max?: Prisma.PaymentInstallmentMaxOrderByAggregateInput;
351
+ _min?: Prisma.PaymentInstallmentMinOrderByAggregateInput;
352
+ _sum?: Prisma.PaymentInstallmentSumOrderByAggregateInput;
353
+ };
354
+ export type PaymentInstallmentScalarWhereWithAggregatesInput = {
355
+ AND?: Prisma.PaymentInstallmentScalarWhereWithAggregatesInput | Prisma.PaymentInstallmentScalarWhereWithAggregatesInput[];
356
+ OR?: Prisma.PaymentInstallmentScalarWhereWithAggregatesInput[];
357
+ NOT?: Prisma.PaymentInstallmentScalarWhereWithAggregatesInput | Prisma.PaymentInstallmentScalarWhereWithAggregatesInput[];
358
+ id?: Prisma.StringWithAggregatesFilter<"PaymentInstallment"> | string;
359
+ paymentPhaseId?: Prisma.StringWithAggregatesFilter<"PaymentInstallment"> | string;
360
+ installmentNumber?: Prisma.IntWithAggregatesFilter<"PaymentInstallment"> | number;
361
+ amount?: Prisma.FloatWithAggregatesFilter<"PaymentInstallment"> | number;
362
+ principalAmount?: Prisma.FloatWithAggregatesFilter<"PaymentInstallment"> | number;
363
+ interestAmount?: Prisma.FloatWithAggregatesFilter<"PaymentInstallment"> | number;
364
+ dueDate?: Prisma.DateTimeWithAggregatesFilter<"PaymentInstallment"> | Date | string;
365
+ status?: Prisma.EnumInstallmentStatusWithAggregatesFilter<"PaymentInstallment"> | $Enums.InstallmentStatus;
366
+ paidAmount?: Prisma.FloatWithAggregatesFilter<"PaymentInstallment"> | number;
367
+ paidDate?: Prisma.DateTimeNullableWithAggregatesFilter<"PaymentInstallment"> | Date | string | null;
368
+ lateFee?: Prisma.FloatWithAggregatesFilter<"PaymentInstallment"> | number;
369
+ lateFeeWaived?: Prisma.BoolWithAggregatesFilter<"PaymentInstallment"> | boolean;
370
+ gracePeriodDays?: Prisma.IntWithAggregatesFilter<"PaymentInstallment"> | number;
371
+ gracePeriodEndDate?: Prisma.DateTimeNullableWithAggregatesFilter<"PaymentInstallment"> | Date | string | null;
372
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentInstallment"> | Date | string;
373
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentInstallment"> | Date | string;
374
+ };
375
+ export type PaymentInstallmentCreateInput = {
376
+ id?: string;
377
+ installmentNumber: number;
378
+ amount: number;
379
+ principalAmount?: number;
380
+ interestAmount?: number;
381
+ dueDate: Date | string;
382
+ status?: $Enums.InstallmentStatus;
383
+ paidAmount?: number;
384
+ paidDate?: Date | string | null;
385
+ lateFee?: number;
386
+ lateFeeWaived?: boolean;
387
+ gracePeriodDays?: number;
388
+ gracePeriodEndDate?: Date | string | null;
389
+ createdAt?: Date | string;
390
+ updatedAt?: Date | string;
391
+ paymentPhase: Prisma.PaymentPhaseCreateNestedOneWithoutInstallmentsInput;
392
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutInstallmentInput;
393
+ };
394
+ export type PaymentInstallmentUncheckedCreateInput = {
395
+ id?: string;
396
+ paymentPhaseId: string;
397
+ installmentNumber: number;
398
+ amount: number;
399
+ principalAmount?: number;
400
+ interestAmount?: number;
401
+ dueDate: Date | string;
402
+ status?: $Enums.InstallmentStatus;
403
+ paidAmount?: number;
404
+ paidDate?: Date | string | null;
405
+ lateFee?: number;
406
+ lateFeeWaived?: boolean;
407
+ gracePeriodDays?: number;
408
+ gracePeriodEndDate?: Date | string | null;
409
+ createdAt?: Date | string;
410
+ updatedAt?: Date | string;
411
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutInstallmentInput;
412
+ };
413
+ export type PaymentInstallmentUpdateInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
415
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
416
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
417
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
418
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
419
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
420
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
421
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
422
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
423
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
424
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
425
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
426
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
427
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
428
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
429
+ paymentPhase?: Prisma.PaymentPhaseUpdateOneRequiredWithoutInstallmentsNestedInput;
430
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutInstallmentNestedInput;
431
+ };
432
+ export type PaymentInstallmentUncheckedUpdateInput = {
433
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ paymentPhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
435
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
436
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
437
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
438
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
439
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
441
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
442
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
443
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
444
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
445
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
446
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
447
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
448
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
449
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutInstallmentNestedInput;
450
+ };
451
+ export type PaymentInstallmentCreateManyInput = {
452
+ id?: string;
453
+ paymentPhaseId: string;
454
+ installmentNumber: number;
455
+ amount: number;
456
+ principalAmount?: number;
457
+ interestAmount?: number;
458
+ dueDate: Date | string;
459
+ status?: $Enums.InstallmentStatus;
460
+ paidAmount?: number;
461
+ paidDate?: Date | string | null;
462
+ lateFee?: number;
463
+ lateFeeWaived?: boolean;
464
+ gracePeriodDays?: number;
465
+ gracePeriodEndDate?: Date | string | null;
466
+ createdAt?: Date | string;
467
+ updatedAt?: Date | string;
468
+ };
469
+ export type PaymentInstallmentUpdateManyMutationInput = {
470
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
471
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
472
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
473
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
474
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
475
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
476
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
477
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
478
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
479
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
480
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
481
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
482
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
483
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
485
+ };
486
+ export type PaymentInstallmentUncheckedUpdateManyInput = {
487
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
488
+ paymentPhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
489
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
490
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
491
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
492
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
493
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
494
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
495
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
496
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
497
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
498
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
499
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
500
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
501
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
502
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
503
+ };
504
+ export type PaymentInstallmentListRelationFilter = {
505
+ every?: Prisma.PaymentInstallmentWhereInput;
506
+ some?: Prisma.PaymentInstallmentWhereInput;
507
+ none?: Prisma.PaymentInstallmentWhereInput;
508
+ };
509
+ export type PaymentInstallmentOrderByRelationAggregateInput = {
510
+ _count?: Prisma.SortOrder;
511
+ };
512
+ export type PaymentInstallmentOrderByRelevanceInput = {
513
+ fields: Prisma.PaymentInstallmentOrderByRelevanceFieldEnum | Prisma.PaymentInstallmentOrderByRelevanceFieldEnum[];
514
+ sort: Prisma.SortOrder;
515
+ search: string;
516
+ };
517
+ export type PaymentInstallmentCountOrderByAggregateInput = {
518
+ id?: Prisma.SortOrder;
519
+ paymentPhaseId?: Prisma.SortOrder;
520
+ installmentNumber?: Prisma.SortOrder;
521
+ amount?: Prisma.SortOrder;
522
+ principalAmount?: Prisma.SortOrder;
523
+ interestAmount?: Prisma.SortOrder;
524
+ dueDate?: Prisma.SortOrder;
525
+ status?: Prisma.SortOrder;
526
+ paidAmount?: Prisma.SortOrder;
527
+ paidDate?: Prisma.SortOrder;
528
+ lateFee?: Prisma.SortOrder;
529
+ lateFeeWaived?: Prisma.SortOrder;
530
+ gracePeriodDays?: Prisma.SortOrder;
531
+ gracePeriodEndDate?: Prisma.SortOrder;
532
+ createdAt?: Prisma.SortOrder;
533
+ updatedAt?: Prisma.SortOrder;
534
+ };
535
+ export type PaymentInstallmentAvgOrderByAggregateInput = {
536
+ installmentNumber?: Prisma.SortOrder;
537
+ amount?: Prisma.SortOrder;
538
+ principalAmount?: Prisma.SortOrder;
539
+ interestAmount?: Prisma.SortOrder;
540
+ paidAmount?: Prisma.SortOrder;
541
+ lateFee?: Prisma.SortOrder;
542
+ gracePeriodDays?: Prisma.SortOrder;
543
+ };
544
+ export type PaymentInstallmentMaxOrderByAggregateInput = {
545
+ id?: Prisma.SortOrder;
546
+ paymentPhaseId?: Prisma.SortOrder;
547
+ installmentNumber?: Prisma.SortOrder;
548
+ amount?: Prisma.SortOrder;
549
+ principalAmount?: Prisma.SortOrder;
550
+ interestAmount?: Prisma.SortOrder;
551
+ dueDate?: Prisma.SortOrder;
552
+ status?: Prisma.SortOrder;
553
+ paidAmount?: Prisma.SortOrder;
554
+ paidDate?: Prisma.SortOrder;
555
+ lateFee?: Prisma.SortOrder;
556
+ lateFeeWaived?: Prisma.SortOrder;
557
+ gracePeriodDays?: Prisma.SortOrder;
558
+ gracePeriodEndDate?: Prisma.SortOrder;
559
+ createdAt?: Prisma.SortOrder;
560
+ updatedAt?: Prisma.SortOrder;
561
+ };
562
+ export type PaymentInstallmentMinOrderByAggregateInput = {
563
+ id?: Prisma.SortOrder;
564
+ paymentPhaseId?: Prisma.SortOrder;
565
+ installmentNumber?: Prisma.SortOrder;
566
+ amount?: Prisma.SortOrder;
567
+ principalAmount?: Prisma.SortOrder;
568
+ interestAmount?: Prisma.SortOrder;
569
+ dueDate?: Prisma.SortOrder;
570
+ status?: Prisma.SortOrder;
571
+ paidAmount?: Prisma.SortOrder;
572
+ paidDate?: Prisma.SortOrder;
573
+ lateFee?: Prisma.SortOrder;
574
+ lateFeeWaived?: Prisma.SortOrder;
575
+ gracePeriodDays?: Prisma.SortOrder;
576
+ gracePeriodEndDate?: Prisma.SortOrder;
577
+ createdAt?: Prisma.SortOrder;
578
+ updatedAt?: Prisma.SortOrder;
579
+ };
580
+ export type PaymentInstallmentSumOrderByAggregateInput = {
581
+ installmentNumber?: Prisma.SortOrder;
582
+ amount?: Prisma.SortOrder;
583
+ principalAmount?: Prisma.SortOrder;
584
+ interestAmount?: Prisma.SortOrder;
585
+ paidAmount?: Prisma.SortOrder;
586
+ lateFee?: Prisma.SortOrder;
587
+ gracePeriodDays?: Prisma.SortOrder;
588
+ };
589
+ export type PaymentInstallmentNullableScalarRelationFilter = {
590
+ is?: Prisma.PaymentInstallmentWhereInput | null;
591
+ isNot?: Prisma.PaymentInstallmentWhereInput | null;
592
+ };
593
+ export type PaymentInstallmentCreateNestedManyWithoutPaymentPhaseInput = {
594
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput> | Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput[] | Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput[];
595
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput | Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput[];
596
+ createMany?: Prisma.PaymentInstallmentCreateManyPaymentPhaseInputEnvelope;
597
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
598
+ };
599
+ export type PaymentInstallmentUncheckedCreateNestedManyWithoutPaymentPhaseInput = {
600
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput> | Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput[] | Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput[];
601
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput | Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput[];
602
+ createMany?: Prisma.PaymentInstallmentCreateManyPaymentPhaseInputEnvelope;
603
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
604
+ };
605
+ export type PaymentInstallmentUpdateManyWithoutPaymentPhaseNestedInput = {
606
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput> | Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput[] | Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput[];
607
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput | Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput[];
608
+ upsert?: Prisma.PaymentInstallmentUpsertWithWhereUniqueWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpsertWithWhereUniqueWithoutPaymentPhaseInput[];
609
+ createMany?: Prisma.PaymentInstallmentCreateManyPaymentPhaseInputEnvelope;
610
+ set?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
611
+ disconnect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
612
+ delete?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
613
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
614
+ update?: Prisma.PaymentInstallmentUpdateWithWhereUniqueWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpdateWithWhereUniqueWithoutPaymentPhaseInput[];
615
+ updateMany?: Prisma.PaymentInstallmentUpdateManyWithWhereWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpdateManyWithWhereWithoutPaymentPhaseInput[];
616
+ deleteMany?: Prisma.PaymentInstallmentScalarWhereInput | Prisma.PaymentInstallmentScalarWhereInput[];
617
+ };
618
+ export type PaymentInstallmentUncheckedUpdateManyWithoutPaymentPhaseNestedInput = {
619
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput> | Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput[] | Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput[];
620
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput | Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput[];
621
+ upsert?: Prisma.PaymentInstallmentUpsertWithWhereUniqueWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpsertWithWhereUniqueWithoutPaymentPhaseInput[];
622
+ createMany?: Prisma.PaymentInstallmentCreateManyPaymentPhaseInputEnvelope;
623
+ set?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
624
+ disconnect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
625
+ delete?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
626
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput | Prisma.PaymentInstallmentWhereUniqueInput[];
627
+ update?: Prisma.PaymentInstallmentUpdateWithWhereUniqueWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpdateWithWhereUniqueWithoutPaymentPhaseInput[];
628
+ updateMany?: Prisma.PaymentInstallmentUpdateManyWithWhereWithoutPaymentPhaseInput | Prisma.PaymentInstallmentUpdateManyWithWhereWithoutPaymentPhaseInput[];
629
+ deleteMany?: Prisma.PaymentInstallmentScalarWhereInput | Prisma.PaymentInstallmentScalarWhereInput[];
630
+ };
631
+ export type EnumInstallmentStatusFieldUpdateOperationsInput = {
632
+ set?: $Enums.InstallmentStatus;
633
+ };
634
+ export type PaymentInstallmentCreateNestedOneWithoutPaymentsInput = {
635
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentsInput>;
636
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentsInput;
637
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput;
638
+ };
639
+ export type PaymentInstallmentUpdateOneWithoutPaymentsNestedInput = {
640
+ create?: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentsInput>;
641
+ connectOrCreate?: Prisma.PaymentInstallmentCreateOrConnectWithoutPaymentsInput;
642
+ upsert?: Prisma.PaymentInstallmentUpsertWithoutPaymentsInput;
643
+ disconnect?: Prisma.PaymentInstallmentWhereInput | boolean;
644
+ delete?: Prisma.PaymentInstallmentWhereInput | boolean;
645
+ connect?: Prisma.PaymentInstallmentWhereUniqueInput;
646
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentInstallmentUpdateToOneWithWhereWithoutPaymentsInput, Prisma.PaymentInstallmentUpdateWithoutPaymentsInput>, Prisma.PaymentInstallmentUncheckedUpdateWithoutPaymentsInput>;
647
+ };
648
+ export type PaymentInstallmentCreateWithoutPaymentPhaseInput = {
649
+ id?: string;
650
+ installmentNumber: number;
651
+ amount: number;
652
+ principalAmount?: number;
653
+ interestAmount?: number;
654
+ dueDate: Date | string;
655
+ status?: $Enums.InstallmentStatus;
656
+ paidAmount?: number;
657
+ paidDate?: Date | string | null;
658
+ lateFee?: number;
659
+ lateFeeWaived?: boolean;
660
+ gracePeriodDays?: number;
661
+ gracePeriodEndDate?: Date | string | null;
662
+ createdAt?: Date | string;
663
+ updatedAt?: Date | string;
664
+ payments?: Prisma.ApplicationPaymentCreateNestedManyWithoutInstallmentInput;
665
+ };
666
+ export type PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput = {
667
+ id?: string;
668
+ installmentNumber: number;
669
+ amount: number;
670
+ principalAmount?: number;
671
+ interestAmount?: number;
672
+ dueDate: Date | string;
673
+ status?: $Enums.InstallmentStatus;
674
+ paidAmount?: number;
675
+ paidDate?: Date | string | null;
676
+ lateFee?: number;
677
+ lateFeeWaived?: boolean;
678
+ gracePeriodDays?: number;
679
+ gracePeriodEndDate?: Date | string | null;
680
+ createdAt?: Date | string;
681
+ updatedAt?: Date | string;
682
+ payments?: Prisma.ApplicationPaymentUncheckedCreateNestedManyWithoutInstallmentInput;
683
+ };
684
+ export type PaymentInstallmentCreateOrConnectWithoutPaymentPhaseInput = {
685
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
686
+ create: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput>;
687
+ };
688
+ export type PaymentInstallmentCreateManyPaymentPhaseInputEnvelope = {
689
+ data: Prisma.PaymentInstallmentCreateManyPaymentPhaseInput | Prisma.PaymentInstallmentCreateManyPaymentPhaseInput[];
690
+ skipDuplicates?: boolean;
691
+ };
692
+ export type PaymentInstallmentUpsertWithWhereUniqueWithoutPaymentPhaseInput = {
693
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
694
+ update: Prisma.XOR<Prisma.PaymentInstallmentUpdateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedUpdateWithoutPaymentPhaseInput>;
695
+ create: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentPhaseInput>;
696
+ };
697
+ export type PaymentInstallmentUpdateWithWhereUniqueWithoutPaymentPhaseInput = {
698
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
699
+ data: Prisma.XOR<Prisma.PaymentInstallmentUpdateWithoutPaymentPhaseInput, Prisma.PaymentInstallmentUncheckedUpdateWithoutPaymentPhaseInput>;
700
+ };
701
+ export type PaymentInstallmentUpdateManyWithWhereWithoutPaymentPhaseInput = {
702
+ where: Prisma.PaymentInstallmentScalarWhereInput;
703
+ data: Prisma.XOR<Prisma.PaymentInstallmentUpdateManyMutationInput, Prisma.PaymentInstallmentUncheckedUpdateManyWithoutPaymentPhaseInput>;
704
+ };
705
+ export type PaymentInstallmentScalarWhereInput = {
706
+ AND?: Prisma.PaymentInstallmentScalarWhereInput | Prisma.PaymentInstallmentScalarWhereInput[];
707
+ OR?: Prisma.PaymentInstallmentScalarWhereInput[];
708
+ NOT?: Prisma.PaymentInstallmentScalarWhereInput | Prisma.PaymentInstallmentScalarWhereInput[];
709
+ id?: Prisma.StringFilter<"PaymentInstallment"> | string;
710
+ paymentPhaseId?: Prisma.StringFilter<"PaymentInstallment"> | string;
711
+ installmentNumber?: Prisma.IntFilter<"PaymentInstallment"> | number;
712
+ amount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
713
+ principalAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
714
+ interestAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
715
+ dueDate?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
716
+ status?: Prisma.EnumInstallmentStatusFilter<"PaymentInstallment"> | $Enums.InstallmentStatus;
717
+ paidAmount?: Prisma.FloatFilter<"PaymentInstallment"> | number;
718
+ paidDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
719
+ lateFee?: Prisma.FloatFilter<"PaymentInstallment"> | number;
720
+ lateFeeWaived?: Prisma.BoolFilter<"PaymentInstallment"> | boolean;
721
+ gracePeriodDays?: Prisma.IntFilter<"PaymentInstallment"> | number;
722
+ gracePeriodEndDate?: Prisma.DateTimeNullableFilter<"PaymentInstallment"> | Date | string | null;
723
+ createdAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
724
+ updatedAt?: Prisma.DateTimeFilter<"PaymentInstallment"> | Date | string;
725
+ };
726
+ export type PaymentInstallmentCreateWithoutPaymentsInput = {
727
+ id?: string;
728
+ installmentNumber: number;
729
+ amount: number;
730
+ principalAmount?: number;
731
+ interestAmount?: number;
732
+ dueDate: Date | string;
733
+ status?: $Enums.InstallmentStatus;
734
+ paidAmount?: number;
735
+ paidDate?: Date | string | null;
736
+ lateFee?: number;
737
+ lateFeeWaived?: boolean;
738
+ gracePeriodDays?: number;
739
+ gracePeriodEndDate?: Date | string | null;
740
+ createdAt?: Date | string;
741
+ updatedAt?: Date | string;
742
+ paymentPhase: Prisma.PaymentPhaseCreateNestedOneWithoutInstallmentsInput;
743
+ };
744
+ export type PaymentInstallmentUncheckedCreateWithoutPaymentsInput = {
745
+ id?: string;
746
+ paymentPhaseId: string;
747
+ installmentNumber: number;
748
+ amount: number;
749
+ principalAmount?: number;
750
+ interestAmount?: number;
751
+ dueDate: Date | string;
752
+ status?: $Enums.InstallmentStatus;
753
+ paidAmount?: number;
754
+ paidDate?: Date | string | null;
755
+ lateFee?: number;
756
+ lateFeeWaived?: boolean;
757
+ gracePeriodDays?: number;
758
+ gracePeriodEndDate?: Date | string | null;
759
+ createdAt?: Date | string;
760
+ updatedAt?: Date | string;
761
+ };
762
+ export type PaymentInstallmentCreateOrConnectWithoutPaymentsInput = {
763
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
764
+ create: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentsInput>;
765
+ };
766
+ export type PaymentInstallmentUpsertWithoutPaymentsInput = {
767
+ update: Prisma.XOR<Prisma.PaymentInstallmentUpdateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedUpdateWithoutPaymentsInput>;
768
+ create: Prisma.XOR<Prisma.PaymentInstallmentCreateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedCreateWithoutPaymentsInput>;
769
+ where?: Prisma.PaymentInstallmentWhereInput;
770
+ };
771
+ export type PaymentInstallmentUpdateToOneWithWhereWithoutPaymentsInput = {
772
+ where?: Prisma.PaymentInstallmentWhereInput;
773
+ data: Prisma.XOR<Prisma.PaymentInstallmentUpdateWithoutPaymentsInput, Prisma.PaymentInstallmentUncheckedUpdateWithoutPaymentsInput>;
774
+ };
775
+ export type PaymentInstallmentUpdateWithoutPaymentsInput = {
776
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
777
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
778
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
779
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
780
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
781
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
782
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
783
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
784
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
785
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
786
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
787
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
788
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
789
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
790
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
791
+ paymentPhase?: Prisma.PaymentPhaseUpdateOneRequiredWithoutInstallmentsNestedInput;
792
+ };
793
+ export type PaymentInstallmentUncheckedUpdateWithoutPaymentsInput = {
794
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
795
+ paymentPhaseId?: Prisma.StringFieldUpdateOperationsInput | string;
796
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
797
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
798
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
799
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
800
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
801
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
802
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
803
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
804
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
805
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
806
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
807
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
808
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
809
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
810
+ };
811
+ export type PaymentInstallmentCreateManyPaymentPhaseInput = {
812
+ id?: string;
813
+ installmentNumber: number;
814
+ amount: number;
815
+ principalAmount?: number;
816
+ interestAmount?: number;
817
+ dueDate: Date | string;
818
+ status?: $Enums.InstallmentStatus;
819
+ paidAmount?: number;
820
+ paidDate?: Date | string | null;
821
+ lateFee?: number;
822
+ lateFeeWaived?: boolean;
823
+ gracePeriodDays?: number;
824
+ gracePeriodEndDate?: Date | string | null;
825
+ createdAt?: Date | string;
826
+ updatedAt?: Date | string;
827
+ };
828
+ export type PaymentInstallmentUpdateWithoutPaymentPhaseInput = {
829
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
830
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
831
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
832
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
833
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
834
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
835
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
836
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
837
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
838
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
839
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
840
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
841
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
842
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
843
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
844
+ payments?: Prisma.ApplicationPaymentUpdateManyWithoutInstallmentNestedInput;
845
+ };
846
+ export type PaymentInstallmentUncheckedUpdateWithoutPaymentPhaseInput = {
847
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
848
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
849
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
850
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
851
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
852
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
853
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
854
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
855
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
856
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
857
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
858
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
859
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
860
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
861
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
862
+ payments?: Prisma.ApplicationPaymentUncheckedUpdateManyWithoutInstallmentNestedInput;
863
+ };
864
+ export type PaymentInstallmentUncheckedUpdateManyWithoutPaymentPhaseInput = {
865
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
866
+ installmentNumber?: Prisma.IntFieldUpdateOperationsInput | number;
867
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
868
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
869
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
870
+ dueDate?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
871
+ status?: Prisma.EnumInstallmentStatusFieldUpdateOperationsInput | $Enums.InstallmentStatus;
872
+ paidAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
873
+ paidDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
874
+ lateFee?: Prisma.FloatFieldUpdateOperationsInput | number;
875
+ lateFeeWaived?: Prisma.BoolFieldUpdateOperationsInput | boolean;
876
+ gracePeriodDays?: Prisma.IntFieldUpdateOperationsInput | number;
877
+ gracePeriodEndDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
878
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
879
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
880
+ };
881
+ /**
882
+ * Count Type PaymentInstallmentCountOutputType
883
+ */
884
+ export type PaymentInstallmentCountOutputType = {
885
+ payments: number;
886
+ };
887
+ export type PaymentInstallmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
888
+ payments?: boolean | PaymentInstallmentCountOutputTypeCountPaymentsArgs;
889
+ };
890
+ /**
891
+ * PaymentInstallmentCountOutputType without action
892
+ */
893
+ export type PaymentInstallmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
894
+ /**
895
+ * Select specific fields to fetch from the PaymentInstallmentCountOutputType
896
+ */
897
+ select?: Prisma.PaymentInstallmentCountOutputTypeSelect<ExtArgs> | null;
898
+ };
899
+ /**
900
+ * PaymentInstallmentCountOutputType without action
901
+ */
902
+ export type PaymentInstallmentCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ where?: Prisma.ApplicationPaymentWhereInput;
904
+ };
905
+ export type PaymentInstallmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
906
+ id?: boolean;
907
+ paymentPhaseId?: boolean;
908
+ installmentNumber?: boolean;
909
+ amount?: boolean;
910
+ principalAmount?: boolean;
911
+ interestAmount?: boolean;
912
+ dueDate?: boolean;
913
+ status?: boolean;
914
+ paidAmount?: boolean;
915
+ paidDate?: boolean;
916
+ lateFee?: boolean;
917
+ lateFeeWaived?: boolean;
918
+ gracePeriodDays?: boolean;
919
+ gracePeriodEndDate?: boolean;
920
+ createdAt?: boolean;
921
+ updatedAt?: boolean;
922
+ paymentPhase?: boolean | Prisma.PaymentPhaseDefaultArgs<ExtArgs>;
923
+ payments?: boolean | Prisma.PaymentInstallment$paymentsArgs<ExtArgs>;
924
+ _count?: boolean | Prisma.PaymentInstallmentCountOutputTypeDefaultArgs<ExtArgs>;
925
+ }, ExtArgs["result"]["paymentInstallment"]>;
926
+ export type PaymentInstallmentSelectScalar = {
927
+ id?: boolean;
928
+ paymentPhaseId?: boolean;
929
+ installmentNumber?: boolean;
930
+ amount?: boolean;
931
+ principalAmount?: boolean;
932
+ interestAmount?: boolean;
933
+ dueDate?: boolean;
934
+ status?: boolean;
935
+ paidAmount?: boolean;
936
+ paidDate?: boolean;
937
+ lateFee?: boolean;
938
+ lateFeeWaived?: boolean;
939
+ gracePeriodDays?: boolean;
940
+ gracePeriodEndDate?: boolean;
941
+ createdAt?: boolean;
942
+ updatedAt?: boolean;
943
+ };
944
+ export type PaymentInstallmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "paymentPhaseId" | "installmentNumber" | "amount" | "principalAmount" | "interestAmount" | "dueDate" | "status" | "paidAmount" | "paidDate" | "lateFee" | "lateFeeWaived" | "gracePeriodDays" | "gracePeriodEndDate" | "createdAt" | "updatedAt", ExtArgs["result"]["paymentInstallment"]>;
945
+ export type PaymentInstallmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
946
+ paymentPhase?: boolean | Prisma.PaymentPhaseDefaultArgs<ExtArgs>;
947
+ payments?: boolean | Prisma.PaymentInstallment$paymentsArgs<ExtArgs>;
948
+ _count?: boolean | Prisma.PaymentInstallmentCountOutputTypeDefaultArgs<ExtArgs>;
949
+ };
950
+ export type $PaymentInstallmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
951
+ name: "PaymentInstallment";
952
+ objects: {
953
+ paymentPhase: Prisma.$PaymentPhasePayload<ExtArgs>;
954
+ payments: Prisma.$ApplicationPaymentPayload<ExtArgs>[];
955
+ };
956
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
957
+ id: string;
958
+ paymentPhaseId: string;
959
+ installmentNumber: number;
960
+ amount: number;
961
+ principalAmount: number;
962
+ interestAmount: number;
963
+ dueDate: Date;
964
+ status: $Enums.InstallmentStatus;
965
+ paidAmount: number;
966
+ paidDate: Date | null;
967
+ lateFee: number;
968
+ lateFeeWaived: boolean;
969
+ gracePeriodDays: number;
970
+ gracePeriodEndDate: Date | null;
971
+ createdAt: Date;
972
+ updatedAt: Date;
973
+ }, ExtArgs["result"]["paymentInstallment"]>;
974
+ composites: {};
975
+ };
976
+ export type PaymentInstallmentGetPayload<S extends boolean | null | undefined | PaymentInstallmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload, S>;
977
+ export type PaymentInstallmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PaymentInstallmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
978
+ select?: PaymentInstallmentCountAggregateInputType | true;
979
+ };
980
+ export interface PaymentInstallmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
981
+ [K: symbol]: {
982
+ types: Prisma.TypeMap<ExtArgs>['model']['PaymentInstallment'];
983
+ meta: {
984
+ name: 'PaymentInstallment';
985
+ };
986
+ };
987
+ /**
988
+ * Find zero or one PaymentInstallment that matches the filter.
989
+ * @param {PaymentInstallmentFindUniqueArgs} args - Arguments to find a PaymentInstallment
990
+ * @example
991
+ * // Get one PaymentInstallment
992
+ * const paymentInstallment = await prisma.paymentInstallment.findUnique({
993
+ * where: {
994
+ * // ... provide filter here
995
+ * }
996
+ * })
997
+ */
998
+ findUnique<T extends PaymentInstallmentFindUniqueArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
999
+ /**
1000
+ * Find one PaymentInstallment that matches the filter or throw an error with `error.code='P2025'`
1001
+ * if no matches were found.
1002
+ * @param {PaymentInstallmentFindUniqueOrThrowArgs} args - Arguments to find a PaymentInstallment
1003
+ * @example
1004
+ * // Get one PaymentInstallment
1005
+ * const paymentInstallment = await prisma.paymentInstallment.findUniqueOrThrow({
1006
+ * where: {
1007
+ * // ... provide filter here
1008
+ * }
1009
+ * })
1010
+ */
1011
+ findUniqueOrThrow<T extends PaymentInstallmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1012
+ /**
1013
+ * Find the first PaymentInstallment that matches the filter.
1014
+ * Note, that providing `undefined` is treated as the value not being there.
1015
+ * Read more here: https://pris.ly/d/null-undefined
1016
+ * @param {PaymentInstallmentFindFirstArgs} args - Arguments to find a PaymentInstallment
1017
+ * @example
1018
+ * // Get one PaymentInstallment
1019
+ * const paymentInstallment = await prisma.paymentInstallment.findFirst({
1020
+ * where: {
1021
+ * // ... provide filter here
1022
+ * }
1023
+ * })
1024
+ */
1025
+ findFirst<T extends PaymentInstallmentFindFirstArgs>(args?: Prisma.SelectSubset<T, PaymentInstallmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1026
+ /**
1027
+ * Find the first PaymentInstallment that matches the filter or
1028
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1029
+ * Note, that providing `undefined` is treated as the value not being there.
1030
+ * Read more here: https://pris.ly/d/null-undefined
1031
+ * @param {PaymentInstallmentFindFirstOrThrowArgs} args - Arguments to find a PaymentInstallment
1032
+ * @example
1033
+ * // Get one PaymentInstallment
1034
+ * const paymentInstallment = await prisma.paymentInstallment.findFirstOrThrow({
1035
+ * where: {
1036
+ * // ... provide filter here
1037
+ * }
1038
+ * })
1039
+ */
1040
+ findFirstOrThrow<T extends PaymentInstallmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PaymentInstallmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1041
+ /**
1042
+ * Find zero or more PaymentInstallments that matches the filter.
1043
+ * Note, that providing `undefined` is treated as the value not being there.
1044
+ * Read more here: https://pris.ly/d/null-undefined
1045
+ * @param {PaymentInstallmentFindManyArgs} args - Arguments to filter and select certain fields only.
1046
+ * @example
1047
+ * // Get all PaymentInstallments
1048
+ * const paymentInstallments = await prisma.paymentInstallment.findMany()
1049
+ *
1050
+ * // Get first 10 PaymentInstallments
1051
+ * const paymentInstallments = await prisma.paymentInstallment.findMany({ take: 10 })
1052
+ *
1053
+ * // Only select the `id`
1054
+ * const paymentInstallmentWithIdOnly = await prisma.paymentInstallment.findMany({ select: { id: true } })
1055
+ *
1056
+ */
1057
+ findMany<T extends PaymentInstallmentFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentInstallmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1058
+ /**
1059
+ * Create a PaymentInstallment.
1060
+ * @param {PaymentInstallmentCreateArgs} args - Arguments to create a PaymentInstallment.
1061
+ * @example
1062
+ * // Create one PaymentInstallment
1063
+ * const PaymentInstallment = await prisma.paymentInstallment.create({
1064
+ * data: {
1065
+ * // ... data to create a PaymentInstallment
1066
+ * }
1067
+ * })
1068
+ *
1069
+ */
1070
+ create<T extends PaymentInstallmentCreateArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentCreateArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1071
+ /**
1072
+ * Create many PaymentInstallments.
1073
+ * @param {PaymentInstallmentCreateManyArgs} args - Arguments to create many PaymentInstallments.
1074
+ * @example
1075
+ * // Create many PaymentInstallments
1076
+ * const paymentInstallment = await prisma.paymentInstallment.createMany({
1077
+ * data: [
1078
+ * // ... provide data here
1079
+ * ]
1080
+ * })
1081
+ *
1082
+ */
1083
+ createMany<T extends PaymentInstallmentCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentInstallmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1084
+ /**
1085
+ * Delete a PaymentInstallment.
1086
+ * @param {PaymentInstallmentDeleteArgs} args - Arguments to delete one PaymentInstallment.
1087
+ * @example
1088
+ * // Delete one PaymentInstallment
1089
+ * const PaymentInstallment = await prisma.paymentInstallment.delete({
1090
+ * where: {
1091
+ * // ... filter to delete one PaymentInstallment
1092
+ * }
1093
+ * })
1094
+ *
1095
+ */
1096
+ delete<T extends PaymentInstallmentDeleteArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentDeleteArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1097
+ /**
1098
+ * Update one PaymentInstallment.
1099
+ * @param {PaymentInstallmentUpdateArgs} args - Arguments to update one PaymentInstallment.
1100
+ * @example
1101
+ * // Update one PaymentInstallment
1102
+ * const paymentInstallment = await prisma.paymentInstallment.update({
1103
+ * where: {
1104
+ * // ... provide filter here
1105
+ * },
1106
+ * data: {
1107
+ * // ... provide data here
1108
+ * }
1109
+ * })
1110
+ *
1111
+ */
1112
+ update<T extends PaymentInstallmentUpdateArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentUpdateArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1113
+ /**
1114
+ * Delete zero or more PaymentInstallments.
1115
+ * @param {PaymentInstallmentDeleteManyArgs} args - Arguments to filter PaymentInstallments to delete.
1116
+ * @example
1117
+ * // Delete a few PaymentInstallments
1118
+ * const { count } = await prisma.paymentInstallment.deleteMany({
1119
+ * where: {
1120
+ * // ... provide filter here
1121
+ * }
1122
+ * })
1123
+ *
1124
+ */
1125
+ deleteMany<T extends PaymentInstallmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentInstallmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1126
+ /**
1127
+ * Update zero or more PaymentInstallments.
1128
+ * Note, that providing `undefined` is treated as the value not being there.
1129
+ * Read more here: https://pris.ly/d/null-undefined
1130
+ * @param {PaymentInstallmentUpdateManyArgs} args - Arguments to update one or more rows.
1131
+ * @example
1132
+ * // Update many PaymentInstallments
1133
+ * const paymentInstallment = await prisma.paymentInstallment.updateMany({
1134
+ * where: {
1135
+ * // ... provide filter here
1136
+ * },
1137
+ * data: {
1138
+ * // ... provide data here
1139
+ * }
1140
+ * })
1141
+ *
1142
+ */
1143
+ updateMany<T extends PaymentInstallmentUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1144
+ /**
1145
+ * Create or update one PaymentInstallment.
1146
+ * @param {PaymentInstallmentUpsertArgs} args - Arguments to update or create a PaymentInstallment.
1147
+ * @example
1148
+ * // Update or create a PaymentInstallment
1149
+ * const paymentInstallment = await prisma.paymentInstallment.upsert({
1150
+ * create: {
1151
+ * // ... data to create a PaymentInstallment
1152
+ * },
1153
+ * update: {
1154
+ * // ... in case it already exists, update
1155
+ * },
1156
+ * where: {
1157
+ * // ... the filter for the PaymentInstallment we want to update
1158
+ * }
1159
+ * })
1160
+ */
1161
+ upsert<T extends PaymentInstallmentUpsertArgs>(args: Prisma.SelectSubset<T, PaymentInstallmentUpsertArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1162
+ /**
1163
+ * Count the number of PaymentInstallments.
1164
+ * Note, that providing `undefined` is treated as the value not being there.
1165
+ * Read more here: https://pris.ly/d/null-undefined
1166
+ * @param {PaymentInstallmentCountArgs} args - Arguments to filter PaymentInstallments to count.
1167
+ * @example
1168
+ * // Count the number of PaymentInstallments
1169
+ * const count = await prisma.paymentInstallment.count({
1170
+ * where: {
1171
+ * // ... the filter for the PaymentInstallments we want to count
1172
+ * }
1173
+ * })
1174
+ **/
1175
+ count<T extends PaymentInstallmentCountArgs>(args?: Prisma.Subset<T, PaymentInstallmentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PaymentInstallmentCountAggregateOutputType> : number>;
1176
+ /**
1177
+ * Allows you to perform aggregations operations on a PaymentInstallment.
1178
+ * Note, that providing `undefined` is treated as the value not being there.
1179
+ * Read more here: https://pris.ly/d/null-undefined
1180
+ * @param {PaymentInstallmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1181
+ * @example
1182
+ * // Ordered by age ascending
1183
+ * // Where email contains prisma.io
1184
+ * // Limited to the 10 users
1185
+ * const aggregations = await prisma.user.aggregate({
1186
+ * _avg: {
1187
+ * age: true,
1188
+ * },
1189
+ * where: {
1190
+ * email: {
1191
+ * contains: "prisma.io",
1192
+ * },
1193
+ * },
1194
+ * orderBy: {
1195
+ * age: "asc",
1196
+ * },
1197
+ * take: 10,
1198
+ * })
1199
+ **/
1200
+ aggregate<T extends PaymentInstallmentAggregateArgs>(args: Prisma.Subset<T, PaymentInstallmentAggregateArgs>): Prisma.PrismaPromise<GetPaymentInstallmentAggregateType<T>>;
1201
+ /**
1202
+ * Group by PaymentInstallment.
1203
+ * Note, that providing `undefined` is treated as the value not being there.
1204
+ * Read more here: https://pris.ly/d/null-undefined
1205
+ * @param {PaymentInstallmentGroupByArgs} args - Group by arguments.
1206
+ * @example
1207
+ * // Group by city, order by createdAt, get count
1208
+ * const result = await prisma.user.groupBy({
1209
+ * by: ['city', 'createdAt'],
1210
+ * orderBy: {
1211
+ * createdAt: true
1212
+ * },
1213
+ * _count: {
1214
+ * _all: true
1215
+ * },
1216
+ * })
1217
+ *
1218
+ **/
1219
+ groupBy<T extends PaymentInstallmentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1220
+ orderBy: PaymentInstallmentGroupByArgs['orderBy'];
1221
+ } : {
1222
+ orderBy?: PaymentInstallmentGroupByArgs['orderBy'];
1223
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1224
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1225
+ Error,
1226
+ 'Field ',
1227
+ P,
1228
+ ` in "having" needs to be provided in "by"`
1229
+ ];
1230
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1231
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1232
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1233
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1234
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1235
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1236
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentInstallmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentInstallmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1237
+ /**
1238
+ * Fields of the PaymentInstallment model
1239
+ */
1240
+ readonly fields: PaymentInstallmentFieldRefs;
1241
+ }
1242
+ /**
1243
+ * The delegate class that acts as a "Promise-like" for PaymentInstallment.
1244
+ * Why is this prefixed with `Prisma__`?
1245
+ * Because we want to prevent naming conflicts as mentioned in
1246
+ * https://github.com/prisma/prisma-client-js/issues/707
1247
+ */
1248
+ export interface Prisma__PaymentInstallmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1249
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1250
+ paymentPhase<T extends Prisma.PaymentPhaseDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentPhaseDefaultArgs<ExtArgs>>): Prisma.Prisma__PaymentPhaseClient<runtime.Types.Result.GetResult<Prisma.$PaymentPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1251
+ payments<T extends Prisma.PaymentInstallment$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentInstallment$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1252
+ /**
1253
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1254
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1255
+ * @param onrejected The callback to execute when the Promise is rejected.
1256
+ * @returns A Promise for the completion of which ever callback is executed.
1257
+ */
1258
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1259
+ /**
1260
+ * Attaches a callback for only the rejection of the Promise.
1261
+ * @param onrejected The callback to execute when the Promise is rejected.
1262
+ * @returns A Promise for the completion of the callback.
1263
+ */
1264
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1265
+ /**
1266
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1267
+ * resolved value cannot be modified from the callback.
1268
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1269
+ * @returns A Promise for the completion of the callback.
1270
+ */
1271
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1272
+ }
1273
+ /**
1274
+ * Fields of the PaymentInstallment model
1275
+ */
1276
+ export interface PaymentInstallmentFieldRefs {
1277
+ readonly id: Prisma.FieldRef<"PaymentInstallment", 'String'>;
1278
+ readonly paymentPhaseId: Prisma.FieldRef<"PaymentInstallment", 'String'>;
1279
+ readonly installmentNumber: Prisma.FieldRef<"PaymentInstallment", 'Int'>;
1280
+ readonly amount: Prisma.FieldRef<"PaymentInstallment", 'Float'>;
1281
+ readonly principalAmount: Prisma.FieldRef<"PaymentInstallment", 'Float'>;
1282
+ readonly interestAmount: Prisma.FieldRef<"PaymentInstallment", 'Float'>;
1283
+ readonly dueDate: Prisma.FieldRef<"PaymentInstallment", 'DateTime'>;
1284
+ readonly status: Prisma.FieldRef<"PaymentInstallment", 'InstallmentStatus'>;
1285
+ readonly paidAmount: Prisma.FieldRef<"PaymentInstallment", 'Float'>;
1286
+ readonly paidDate: Prisma.FieldRef<"PaymentInstallment", 'DateTime'>;
1287
+ readonly lateFee: Prisma.FieldRef<"PaymentInstallment", 'Float'>;
1288
+ readonly lateFeeWaived: Prisma.FieldRef<"PaymentInstallment", 'Boolean'>;
1289
+ readonly gracePeriodDays: Prisma.FieldRef<"PaymentInstallment", 'Int'>;
1290
+ readonly gracePeriodEndDate: Prisma.FieldRef<"PaymentInstallment", 'DateTime'>;
1291
+ readonly createdAt: Prisma.FieldRef<"PaymentInstallment", 'DateTime'>;
1292
+ readonly updatedAt: Prisma.FieldRef<"PaymentInstallment", 'DateTime'>;
1293
+ }
1294
+ /**
1295
+ * PaymentInstallment findUnique
1296
+ */
1297
+ export type PaymentInstallmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1298
+ /**
1299
+ * Select specific fields to fetch from the PaymentInstallment
1300
+ */
1301
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1302
+ /**
1303
+ * Omit specific fields from the PaymentInstallment
1304
+ */
1305
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1306
+ /**
1307
+ * Choose, which related nodes to fetch as well
1308
+ */
1309
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1310
+ /**
1311
+ * Filter, which PaymentInstallment to fetch.
1312
+ */
1313
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
1314
+ };
1315
+ /**
1316
+ * PaymentInstallment findUniqueOrThrow
1317
+ */
1318
+ export type PaymentInstallmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1319
+ /**
1320
+ * Select specific fields to fetch from the PaymentInstallment
1321
+ */
1322
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1323
+ /**
1324
+ * Omit specific fields from the PaymentInstallment
1325
+ */
1326
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
1330
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1331
+ /**
1332
+ * Filter, which PaymentInstallment to fetch.
1333
+ */
1334
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
1335
+ };
1336
+ /**
1337
+ * PaymentInstallment findFirst
1338
+ */
1339
+ export type PaymentInstallmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1340
+ /**
1341
+ * Select specific fields to fetch from the PaymentInstallment
1342
+ */
1343
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1344
+ /**
1345
+ * Omit specific fields from the PaymentInstallment
1346
+ */
1347
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1348
+ /**
1349
+ * Choose, which related nodes to fetch as well
1350
+ */
1351
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1352
+ /**
1353
+ * Filter, which PaymentInstallment to fetch.
1354
+ */
1355
+ where?: Prisma.PaymentInstallmentWhereInput;
1356
+ /**
1357
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1358
+ *
1359
+ * Determine the order of PaymentInstallments to fetch.
1360
+ */
1361
+ orderBy?: Prisma.PaymentInstallmentOrderByWithRelationInput | Prisma.PaymentInstallmentOrderByWithRelationInput[];
1362
+ /**
1363
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1364
+ *
1365
+ * Sets the position for searching for PaymentInstallments.
1366
+ */
1367
+ cursor?: Prisma.PaymentInstallmentWhereUniqueInput;
1368
+ /**
1369
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1370
+ *
1371
+ * Take `±n` PaymentInstallments from the position of the cursor.
1372
+ */
1373
+ take?: number;
1374
+ /**
1375
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1376
+ *
1377
+ * Skip the first `n` PaymentInstallments.
1378
+ */
1379
+ skip?: number;
1380
+ /**
1381
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1382
+ *
1383
+ * Filter by unique combinations of PaymentInstallments.
1384
+ */
1385
+ distinct?: Prisma.PaymentInstallmentScalarFieldEnum | Prisma.PaymentInstallmentScalarFieldEnum[];
1386
+ };
1387
+ /**
1388
+ * PaymentInstallment findFirstOrThrow
1389
+ */
1390
+ export type PaymentInstallmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * Select specific fields to fetch from the PaymentInstallment
1393
+ */
1394
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1395
+ /**
1396
+ * Omit specific fields from the PaymentInstallment
1397
+ */
1398
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1403
+ /**
1404
+ * Filter, which PaymentInstallment to fetch.
1405
+ */
1406
+ where?: Prisma.PaymentInstallmentWhereInput;
1407
+ /**
1408
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1409
+ *
1410
+ * Determine the order of PaymentInstallments to fetch.
1411
+ */
1412
+ orderBy?: Prisma.PaymentInstallmentOrderByWithRelationInput | Prisma.PaymentInstallmentOrderByWithRelationInput[];
1413
+ /**
1414
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1415
+ *
1416
+ * Sets the position for searching for PaymentInstallments.
1417
+ */
1418
+ cursor?: Prisma.PaymentInstallmentWhereUniqueInput;
1419
+ /**
1420
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1421
+ *
1422
+ * Take `±n` PaymentInstallments from the position of the cursor.
1423
+ */
1424
+ take?: number;
1425
+ /**
1426
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1427
+ *
1428
+ * Skip the first `n` PaymentInstallments.
1429
+ */
1430
+ skip?: number;
1431
+ /**
1432
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1433
+ *
1434
+ * Filter by unique combinations of PaymentInstallments.
1435
+ */
1436
+ distinct?: Prisma.PaymentInstallmentScalarFieldEnum | Prisma.PaymentInstallmentScalarFieldEnum[];
1437
+ };
1438
+ /**
1439
+ * PaymentInstallment findMany
1440
+ */
1441
+ export type PaymentInstallmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
+ /**
1443
+ * Select specific fields to fetch from the PaymentInstallment
1444
+ */
1445
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1446
+ /**
1447
+ * Omit specific fields from the PaymentInstallment
1448
+ */
1449
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1450
+ /**
1451
+ * Choose, which related nodes to fetch as well
1452
+ */
1453
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1454
+ /**
1455
+ * Filter, which PaymentInstallments to fetch.
1456
+ */
1457
+ where?: Prisma.PaymentInstallmentWhereInput;
1458
+ /**
1459
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1460
+ *
1461
+ * Determine the order of PaymentInstallments to fetch.
1462
+ */
1463
+ orderBy?: Prisma.PaymentInstallmentOrderByWithRelationInput | Prisma.PaymentInstallmentOrderByWithRelationInput[];
1464
+ /**
1465
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1466
+ *
1467
+ * Sets the position for listing PaymentInstallments.
1468
+ */
1469
+ cursor?: Prisma.PaymentInstallmentWhereUniqueInput;
1470
+ /**
1471
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1472
+ *
1473
+ * Take `±n` PaymentInstallments from the position of the cursor.
1474
+ */
1475
+ take?: number;
1476
+ /**
1477
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1478
+ *
1479
+ * Skip the first `n` PaymentInstallments.
1480
+ */
1481
+ skip?: number;
1482
+ distinct?: Prisma.PaymentInstallmentScalarFieldEnum | Prisma.PaymentInstallmentScalarFieldEnum[];
1483
+ };
1484
+ /**
1485
+ * PaymentInstallment create
1486
+ */
1487
+ export type PaymentInstallmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1488
+ /**
1489
+ * Select specific fields to fetch from the PaymentInstallment
1490
+ */
1491
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1492
+ /**
1493
+ * Omit specific fields from the PaymentInstallment
1494
+ */
1495
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1496
+ /**
1497
+ * Choose, which related nodes to fetch as well
1498
+ */
1499
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1500
+ /**
1501
+ * The data needed to create a PaymentInstallment.
1502
+ */
1503
+ data: Prisma.XOR<Prisma.PaymentInstallmentCreateInput, Prisma.PaymentInstallmentUncheckedCreateInput>;
1504
+ };
1505
+ /**
1506
+ * PaymentInstallment createMany
1507
+ */
1508
+ export type PaymentInstallmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * The data used to create many PaymentInstallments.
1511
+ */
1512
+ data: Prisma.PaymentInstallmentCreateManyInput | Prisma.PaymentInstallmentCreateManyInput[];
1513
+ skipDuplicates?: boolean;
1514
+ };
1515
+ /**
1516
+ * PaymentInstallment update
1517
+ */
1518
+ export type PaymentInstallmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1519
+ /**
1520
+ * Select specific fields to fetch from the PaymentInstallment
1521
+ */
1522
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1523
+ /**
1524
+ * Omit specific fields from the PaymentInstallment
1525
+ */
1526
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1527
+ /**
1528
+ * Choose, which related nodes to fetch as well
1529
+ */
1530
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1531
+ /**
1532
+ * The data needed to update a PaymentInstallment.
1533
+ */
1534
+ data: Prisma.XOR<Prisma.PaymentInstallmentUpdateInput, Prisma.PaymentInstallmentUncheckedUpdateInput>;
1535
+ /**
1536
+ * Choose, which PaymentInstallment to update.
1537
+ */
1538
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
1539
+ };
1540
+ /**
1541
+ * PaymentInstallment updateMany
1542
+ */
1543
+ export type PaymentInstallmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ /**
1545
+ * The data used to update PaymentInstallments.
1546
+ */
1547
+ data: Prisma.XOR<Prisma.PaymentInstallmentUpdateManyMutationInput, Prisma.PaymentInstallmentUncheckedUpdateManyInput>;
1548
+ /**
1549
+ * Filter which PaymentInstallments to update
1550
+ */
1551
+ where?: Prisma.PaymentInstallmentWhereInput;
1552
+ /**
1553
+ * Limit how many PaymentInstallments to update.
1554
+ */
1555
+ limit?: number;
1556
+ };
1557
+ /**
1558
+ * PaymentInstallment upsert
1559
+ */
1560
+ export type PaymentInstallmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1561
+ /**
1562
+ * Select specific fields to fetch from the PaymentInstallment
1563
+ */
1564
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1565
+ /**
1566
+ * Omit specific fields from the PaymentInstallment
1567
+ */
1568
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1569
+ /**
1570
+ * Choose, which related nodes to fetch as well
1571
+ */
1572
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1573
+ /**
1574
+ * The filter to search for the PaymentInstallment to update in case it exists.
1575
+ */
1576
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
1577
+ /**
1578
+ * In case the PaymentInstallment found by the `where` argument doesn't exist, create a new PaymentInstallment with this data.
1579
+ */
1580
+ create: Prisma.XOR<Prisma.PaymentInstallmentCreateInput, Prisma.PaymentInstallmentUncheckedCreateInput>;
1581
+ /**
1582
+ * In case the PaymentInstallment was found with the provided `where` argument, update it with this data.
1583
+ */
1584
+ update: Prisma.XOR<Prisma.PaymentInstallmentUpdateInput, Prisma.PaymentInstallmentUncheckedUpdateInput>;
1585
+ };
1586
+ /**
1587
+ * PaymentInstallment delete
1588
+ */
1589
+ export type PaymentInstallmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1590
+ /**
1591
+ * Select specific fields to fetch from the PaymentInstallment
1592
+ */
1593
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1594
+ /**
1595
+ * Omit specific fields from the PaymentInstallment
1596
+ */
1597
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1598
+ /**
1599
+ * Choose, which related nodes to fetch as well
1600
+ */
1601
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1602
+ /**
1603
+ * Filter which PaymentInstallment to delete.
1604
+ */
1605
+ where: Prisma.PaymentInstallmentWhereUniqueInput;
1606
+ };
1607
+ /**
1608
+ * PaymentInstallment deleteMany
1609
+ */
1610
+ export type PaymentInstallmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1611
+ /**
1612
+ * Filter which PaymentInstallments to delete
1613
+ */
1614
+ where?: Prisma.PaymentInstallmentWhereInput;
1615
+ /**
1616
+ * Limit how many PaymentInstallments to delete.
1617
+ */
1618
+ limit?: number;
1619
+ };
1620
+ /**
1621
+ * PaymentInstallment.payments
1622
+ */
1623
+ export type PaymentInstallment$paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Select specific fields to fetch from the ApplicationPayment
1626
+ */
1627
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1628
+ /**
1629
+ * Omit specific fields from the ApplicationPayment
1630
+ */
1631
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1632
+ /**
1633
+ * Choose, which related nodes to fetch as well
1634
+ */
1635
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1636
+ where?: Prisma.ApplicationPaymentWhereInput;
1637
+ orderBy?: Prisma.ApplicationPaymentOrderByWithRelationInput | Prisma.ApplicationPaymentOrderByWithRelationInput[];
1638
+ cursor?: Prisma.ApplicationPaymentWhereUniqueInput;
1639
+ take?: number;
1640
+ skip?: number;
1641
+ distinct?: Prisma.ApplicationPaymentScalarFieldEnum | Prisma.ApplicationPaymentScalarFieldEnum[];
1642
+ };
1643
+ /**
1644
+ * PaymentInstallment without action
1645
+ */
1646
+ export type PaymentInstallmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1647
+ /**
1648
+ * Select specific fields to fetch from the PaymentInstallment
1649
+ */
1650
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1651
+ /**
1652
+ * Omit specific fields from the PaymentInstallment
1653
+ */
1654
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1655
+ /**
1656
+ * Choose, which related nodes to fetch as well
1657
+ */
1658
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1659
+ };
1660
+ export {};