@valentine-efagene/qshelter-common 2.0.94 → 2.0.96

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 (51) 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/dist/src/auth/policy-evaluator.d.ts +5 -5
  42. package/dist/src/auth/policy-evaluator.js +7 -7
  43. package/dist/src/events/notifications/notification-enums.d.ts +5 -5
  44. package/dist/src/events/notifications/notification-enums.js +6 -6
  45. package/dist/src/events/payments/payment-event.d.ts +2 -2
  46. package/dist/src/events/payments/payment-publisher.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/prisma/migrations/20260112080730_rename_contract_to_application/migration.sql +293 -0
  49. package/prisma/migrations/20260112081422_cleanup_rename_contract_to_application/migration.sql +14 -0
  50. package/prisma/schema.prisma +107 -107
  51. package/prisma/schema.prisma.backup +2601 -0
@@ -0,0 +1,2030 @@
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 ApplicationPayment
6
+ *
7
+ */
8
+ export type ApplicationPaymentModel = runtime.Types.Result.DefaultSelection<Prisma.$ApplicationPaymentPayload>;
9
+ export type AggregateApplicationPayment = {
10
+ _count: ApplicationPaymentCountAggregateOutputType | null;
11
+ _avg: ApplicationPaymentAvgAggregateOutputType | null;
12
+ _sum: ApplicationPaymentSumAggregateOutputType | null;
13
+ _min: ApplicationPaymentMinAggregateOutputType | null;
14
+ _max: ApplicationPaymentMaxAggregateOutputType | null;
15
+ };
16
+ export type ApplicationPaymentAvgAggregateOutputType = {
17
+ amount: number | null;
18
+ principalAmount: number | null;
19
+ interestAmount: number | null;
20
+ lateFeeAmount: number | null;
21
+ };
22
+ export type ApplicationPaymentSumAggregateOutputType = {
23
+ amount: number | null;
24
+ principalAmount: number | null;
25
+ interestAmount: number | null;
26
+ lateFeeAmount: number | null;
27
+ };
28
+ export type ApplicationPaymentMinAggregateOutputType = {
29
+ id: string | null;
30
+ applicationId: string | null;
31
+ phaseId: string | null;
32
+ installmentId: string | null;
33
+ payerId: string | null;
34
+ amount: number | null;
35
+ principalAmount: number | null;
36
+ interestAmount: number | null;
37
+ lateFeeAmount: number | null;
38
+ paymentMethod: string | null;
39
+ status: $Enums.PaymentStatus | null;
40
+ reference: string | null;
41
+ gatewayResponse: string | null;
42
+ processedAt: Date | null;
43
+ createdAt: Date | null;
44
+ updatedAt: Date | null;
45
+ };
46
+ export type ApplicationPaymentMaxAggregateOutputType = {
47
+ id: string | null;
48
+ applicationId: string | null;
49
+ phaseId: string | null;
50
+ installmentId: string | null;
51
+ payerId: string | null;
52
+ amount: number | null;
53
+ principalAmount: number | null;
54
+ interestAmount: number | null;
55
+ lateFeeAmount: number | null;
56
+ paymentMethod: string | null;
57
+ status: $Enums.PaymentStatus | null;
58
+ reference: string | null;
59
+ gatewayResponse: string | null;
60
+ processedAt: Date | null;
61
+ createdAt: Date | null;
62
+ updatedAt: Date | null;
63
+ };
64
+ export type ApplicationPaymentCountAggregateOutputType = {
65
+ id: number;
66
+ applicationId: number;
67
+ phaseId: number;
68
+ installmentId: number;
69
+ payerId: number;
70
+ amount: number;
71
+ principalAmount: number;
72
+ interestAmount: number;
73
+ lateFeeAmount: number;
74
+ paymentMethod: number;
75
+ status: number;
76
+ reference: number;
77
+ gatewayResponse: number;
78
+ processedAt: number;
79
+ createdAt: number;
80
+ updatedAt: number;
81
+ _all: number;
82
+ };
83
+ export type ApplicationPaymentAvgAggregateInputType = {
84
+ amount?: true;
85
+ principalAmount?: true;
86
+ interestAmount?: true;
87
+ lateFeeAmount?: true;
88
+ };
89
+ export type ApplicationPaymentSumAggregateInputType = {
90
+ amount?: true;
91
+ principalAmount?: true;
92
+ interestAmount?: true;
93
+ lateFeeAmount?: true;
94
+ };
95
+ export type ApplicationPaymentMinAggregateInputType = {
96
+ id?: true;
97
+ applicationId?: true;
98
+ phaseId?: true;
99
+ installmentId?: true;
100
+ payerId?: true;
101
+ amount?: true;
102
+ principalAmount?: true;
103
+ interestAmount?: true;
104
+ lateFeeAmount?: true;
105
+ paymentMethod?: true;
106
+ status?: true;
107
+ reference?: true;
108
+ gatewayResponse?: true;
109
+ processedAt?: true;
110
+ createdAt?: true;
111
+ updatedAt?: true;
112
+ };
113
+ export type ApplicationPaymentMaxAggregateInputType = {
114
+ id?: true;
115
+ applicationId?: true;
116
+ phaseId?: true;
117
+ installmentId?: true;
118
+ payerId?: true;
119
+ amount?: true;
120
+ principalAmount?: true;
121
+ interestAmount?: true;
122
+ lateFeeAmount?: true;
123
+ paymentMethod?: true;
124
+ status?: true;
125
+ reference?: true;
126
+ gatewayResponse?: true;
127
+ processedAt?: true;
128
+ createdAt?: true;
129
+ updatedAt?: true;
130
+ };
131
+ export type ApplicationPaymentCountAggregateInputType = {
132
+ id?: true;
133
+ applicationId?: true;
134
+ phaseId?: true;
135
+ installmentId?: true;
136
+ payerId?: true;
137
+ amount?: true;
138
+ principalAmount?: true;
139
+ interestAmount?: true;
140
+ lateFeeAmount?: true;
141
+ paymentMethod?: true;
142
+ status?: true;
143
+ reference?: true;
144
+ gatewayResponse?: true;
145
+ processedAt?: true;
146
+ createdAt?: true;
147
+ updatedAt?: true;
148
+ _all?: true;
149
+ };
150
+ export type ApplicationPaymentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ /**
152
+ * Filter which ApplicationPayment to aggregate.
153
+ */
154
+ where?: Prisma.ApplicationPaymentWhereInput;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
157
+ *
158
+ * Determine the order of ApplicationPayments to fetch.
159
+ */
160
+ orderBy?: Prisma.ApplicationPaymentOrderByWithRelationInput | Prisma.ApplicationPaymentOrderByWithRelationInput[];
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
163
+ *
164
+ * Sets the start position
165
+ */
166
+ cursor?: Prisma.ApplicationPaymentWhereUniqueInput;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
+ *
170
+ * Take `±n` ApplicationPayments from the position of the cursor.
171
+ */
172
+ take?: number;
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
175
+ *
176
+ * Skip the first `n` ApplicationPayments.
177
+ */
178
+ skip?: number;
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Count returned ApplicationPayments
183
+ **/
184
+ _count?: true | ApplicationPaymentCountAggregateInputType;
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to average
189
+ **/
190
+ _avg?: ApplicationPaymentAvgAggregateInputType;
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to sum
195
+ **/
196
+ _sum?: ApplicationPaymentSumAggregateInputType;
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to find the minimum value
201
+ **/
202
+ _min?: ApplicationPaymentMinAggregateInputType;
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
+ *
206
+ * Select which fields to find the maximum value
207
+ **/
208
+ _max?: ApplicationPaymentMaxAggregateInputType;
209
+ };
210
+ export type GetApplicationPaymentAggregateType<T extends ApplicationPaymentAggregateArgs> = {
211
+ [P in keyof T & keyof AggregateApplicationPayment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateApplicationPayment[P]> : Prisma.GetScalarType<T[P], AggregateApplicationPayment[P]>;
212
+ };
213
+ export type ApplicationPaymentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
214
+ where?: Prisma.ApplicationPaymentWhereInput;
215
+ orderBy?: Prisma.ApplicationPaymentOrderByWithAggregationInput | Prisma.ApplicationPaymentOrderByWithAggregationInput[];
216
+ by: Prisma.ApplicationPaymentScalarFieldEnum[] | Prisma.ApplicationPaymentScalarFieldEnum;
217
+ having?: Prisma.ApplicationPaymentScalarWhereWithAggregatesInput;
218
+ take?: number;
219
+ skip?: number;
220
+ _count?: ApplicationPaymentCountAggregateInputType | true;
221
+ _avg?: ApplicationPaymentAvgAggregateInputType;
222
+ _sum?: ApplicationPaymentSumAggregateInputType;
223
+ _min?: ApplicationPaymentMinAggregateInputType;
224
+ _max?: ApplicationPaymentMaxAggregateInputType;
225
+ };
226
+ export type ApplicationPaymentGroupByOutputType = {
227
+ id: string;
228
+ applicationId: string;
229
+ phaseId: string | null;
230
+ installmentId: string | null;
231
+ payerId: string | null;
232
+ amount: number;
233
+ principalAmount: number;
234
+ interestAmount: number;
235
+ lateFeeAmount: number;
236
+ paymentMethod: string;
237
+ status: $Enums.PaymentStatus;
238
+ reference: string | null;
239
+ gatewayResponse: string | null;
240
+ processedAt: Date | null;
241
+ createdAt: Date;
242
+ updatedAt: Date;
243
+ _count: ApplicationPaymentCountAggregateOutputType | null;
244
+ _avg: ApplicationPaymentAvgAggregateOutputType | null;
245
+ _sum: ApplicationPaymentSumAggregateOutputType | null;
246
+ _min: ApplicationPaymentMinAggregateOutputType | null;
247
+ _max: ApplicationPaymentMaxAggregateOutputType | null;
248
+ };
249
+ type GetApplicationPaymentGroupByPayload<T extends ApplicationPaymentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<ApplicationPaymentGroupByOutputType, T['by']> & {
250
+ [P in ((keyof T) & (keyof ApplicationPaymentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], ApplicationPaymentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], ApplicationPaymentGroupByOutputType[P]>;
251
+ }>>;
252
+ export type ApplicationPaymentWhereInput = {
253
+ AND?: Prisma.ApplicationPaymentWhereInput | Prisma.ApplicationPaymentWhereInput[];
254
+ OR?: Prisma.ApplicationPaymentWhereInput[];
255
+ NOT?: Prisma.ApplicationPaymentWhereInput | Prisma.ApplicationPaymentWhereInput[];
256
+ id?: Prisma.StringFilter<"ApplicationPayment"> | string;
257
+ applicationId?: Prisma.StringFilter<"ApplicationPayment"> | string;
258
+ phaseId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
259
+ installmentId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
260
+ payerId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
261
+ amount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
262
+ principalAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
263
+ interestAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
264
+ lateFeeAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
265
+ paymentMethod?: Prisma.StringFilter<"ApplicationPayment"> | string;
266
+ status?: Prisma.EnumPaymentStatusFilter<"ApplicationPayment"> | $Enums.PaymentStatus;
267
+ reference?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
268
+ gatewayResponse?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
269
+ processedAt?: Prisma.DateTimeNullableFilter<"ApplicationPayment"> | Date | string | null;
270
+ createdAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
271
+ updatedAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
272
+ application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
273
+ phase?: Prisma.XOR<Prisma.ApplicationPhaseNullableScalarRelationFilter, Prisma.ApplicationPhaseWhereInput> | null;
274
+ installment?: Prisma.XOR<Prisma.PaymentInstallmentNullableScalarRelationFilter, Prisma.PaymentInstallmentWhereInput> | null;
275
+ payer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
276
+ };
277
+ export type ApplicationPaymentOrderByWithRelationInput = {
278
+ id?: Prisma.SortOrder;
279
+ applicationId?: Prisma.SortOrder;
280
+ phaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
281
+ installmentId?: Prisma.SortOrderInput | Prisma.SortOrder;
282
+ payerId?: Prisma.SortOrderInput | Prisma.SortOrder;
283
+ amount?: Prisma.SortOrder;
284
+ principalAmount?: Prisma.SortOrder;
285
+ interestAmount?: Prisma.SortOrder;
286
+ lateFeeAmount?: Prisma.SortOrder;
287
+ paymentMethod?: Prisma.SortOrder;
288
+ status?: Prisma.SortOrder;
289
+ reference?: Prisma.SortOrderInput | Prisma.SortOrder;
290
+ gatewayResponse?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
292
+ createdAt?: Prisma.SortOrder;
293
+ updatedAt?: Prisma.SortOrder;
294
+ application?: Prisma.ApplicationOrderByWithRelationInput;
295
+ phase?: Prisma.ApplicationPhaseOrderByWithRelationInput;
296
+ installment?: Prisma.PaymentInstallmentOrderByWithRelationInput;
297
+ payer?: Prisma.UserOrderByWithRelationInput;
298
+ _relevance?: Prisma.ApplicationPaymentOrderByRelevanceInput;
299
+ };
300
+ export type ApplicationPaymentWhereUniqueInput = Prisma.AtLeast<{
301
+ id?: string;
302
+ reference?: string;
303
+ AND?: Prisma.ApplicationPaymentWhereInput | Prisma.ApplicationPaymentWhereInput[];
304
+ OR?: Prisma.ApplicationPaymentWhereInput[];
305
+ NOT?: Prisma.ApplicationPaymentWhereInput | Prisma.ApplicationPaymentWhereInput[];
306
+ applicationId?: Prisma.StringFilter<"ApplicationPayment"> | string;
307
+ phaseId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
308
+ installmentId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
309
+ payerId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
310
+ amount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
311
+ principalAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
312
+ interestAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
313
+ lateFeeAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
314
+ paymentMethod?: Prisma.StringFilter<"ApplicationPayment"> | string;
315
+ status?: Prisma.EnumPaymentStatusFilter<"ApplicationPayment"> | $Enums.PaymentStatus;
316
+ gatewayResponse?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
317
+ processedAt?: Prisma.DateTimeNullableFilter<"ApplicationPayment"> | Date | string | null;
318
+ createdAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
319
+ updatedAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
320
+ application?: Prisma.XOR<Prisma.ApplicationScalarRelationFilter, Prisma.ApplicationWhereInput>;
321
+ phase?: Prisma.XOR<Prisma.ApplicationPhaseNullableScalarRelationFilter, Prisma.ApplicationPhaseWhereInput> | null;
322
+ installment?: Prisma.XOR<Prisma.PaymentInstallmentNullableScalarRelationFilter, Prisma.PaymentInstallmentWhereInput> | null;
323
+ payer?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null;
324
+ }, "id" | "reference">;
325
+ export type ApplicationPaymentOrderByWithAggregationInput = {
326
+ id?: Prisma.SortOrder;
327
+ applicationId?: Prisma.SortOrder;
328
+ phaseId?: Prisma.SortOrderInput | Prisma.SortOrder;
329
+ installmentId?: Prisma.SortOrderInput | Prisma.SortOrder;
330
+ payerId?: Prisma.SortOrderInput | Prisma.SortOrder;
331
+ amount?: Prisma.SortOrder;
332
+ principalAmount?: Prisma.SortOrder;
333
+ interestAmount?: Prisma.SortOrder;
334
+ lateFeeAmount?: Prisma.SortOrder;
335
+ paymentMethod?: Prisma.SortOrder;
336
+ status?: Prisma.SortOrder;
337
+ reference?: Prisma.SortOrderInput | Prisma.SortOrder;
338
+ gatewayResponse?: Prisma.SortOrderInput | Prisma.SortOrder;
339
+ processedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
340
+ createdAt?: Prisma.SortOrder;
341
+ updatedAt?: Prisma.SortOrder;
342
+ _count?: Prisma.ApplicationPaymentCountOrderByAggregateInput;
343
+ _avg?: Prisma.ApplicationPaymentAvgOrderByAggregateInput;
344
+ _max?: Prisma.ApplicationPaymentMaxOrderByAggregateInput;
345
+ _min?: Prisma.ApplicationPaymentMinOrderByAggregateInput;
346
+ _sum?: Prisma.ApplicationPaymentSumOrderByAggregateInput;
347
+ };
348
+ export type ApplicationPaymentScalarWhereWithAggregatesInput = {
349
+ AND?: Prisma.ApplicationPaymentScalarWhereWithAggregatesInput | Prisma.ApplicationPaymentScalarWhereWithAggregatesInput[];
350
+ OR?: Prisma.ApplicationPaymentScalarWhereWithAggregatesInput[];
351
+ NOT?: Prisma.ApplicationPaymentScalarWhereWithAggregatesInput | Prisma.ApplicationPaymentScalarWhereWithAggregatesInput[];
352
+ id?: Prisma.StringWithAggregatesFilter<"ApplicationPayment"> | string;
353
+ applicationId?: Prisma.StringWithAggregatesFilter<"ApplicationPayment"> | string;
354
+ phaseId?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPayment"> | string | null;
355
+ installmentId?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPayment"> | string | null;
356
+ payerId?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPayment"> | string | null;
357
+ amount?: Prisma.FloatWithAggregatesFilter<"ApplicationPayment"> | number;
358
+ principalAmount?: Prisma.FloatWithAggregatesFilter<"ApplicationPayment"> | number;
359
+ interestAmount?: Prisma.FloatWithAggregatesFilter<"ApplicationPayment"> | number;
360
+ lateFeeAmount?: Prisma.FloatWithAggregatesFilter<"ApplicationPayment"> | number;
361
+ paymentMethod?: Prisma.StringWithAggregatesFilter<"ApplicationPayment"> | string;
362
+ status?: Prisma.EnumPaymentStatusWithAggregatesFilter<"ApplicationPayment"> | $Enums.PaymentStatus;
363
+ reference?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPayment"> | string | null;
364
+ gatewayResponse?: Prisma.StringNullableWithAggregatesFilter<"ApplicationPayment"> | string | null;
365
+ processedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ApplicationPayment"> | Date | string | null;
366
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"ApplicationPayment"> | Date | string;
367
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ApplicationPayment"> | Date | string;
368
+ };
369
+ export type ApplicationPaymentCreateInput = {
370
+ id?: string;
371
+ amount: number;
372
+ principalAmount?: number;
373
+ interestAmount?: number;
374
+ lateFeeAmount?: number;
375
+ paymentMethod: string;
376
+ status?: $Enums.PaymentStatus;
377
+ reference?: string | null;
378
+ gatewayResponse?: string | null;
379
+ processedAt?: Date | string | null;
380
+ createdAt?: Date | string;
381
+ updatedAt?: Date | string;
382
+ application: Prisma.ApplicationCreateNestedOneWithoutPaymentsInput;
383
+ phase?: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentsInput;
384
+ installment?: Prisma.PaymentInstallmentCreateNestedOneWithoutPaymentsInput;
385
+ payer?: Prisma.UserCreateNestedOneWithoutApplicationPaymentsInput;
386
+ };
387
+ export type ApplicationPaymentUncheckedCreateInput = {
388
+ id?: string;
389
+ applicationId: string;
390
+ phaseId?: string | null;
391
+ installmentId?: string | null;
392
+ payerId?: string | null;
393
+ amount: number;
394
+ principalAmount?: number;
395
+ interestAmount?: number;
396
+ lateFeeAmount?: number;
397
+ paymentMethod: string;
398
+ status?: $Enums.PaymentStatus;
399
+ reference?: string | null;
400
+ gatewayResponse?: string | null;
401
+ processedAt?: Date | string | null;
402
+ createdAt?: Date | string;
403
+ updatedAt?: Date | string;
404
+ };
405
+ export type ApplicationPaymentUpdateInput = {
406
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
407
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
408
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
409
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
410
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
411
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
412
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
413
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
414
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
415
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
416
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
417
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
418
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPaymentsNestedInput;
419
+ phase?: Prisma.ApplicationPhaseUpdateOneWithoutPaymentsNestedInput;
420
+ installment?: Prisma.PaymentInstallmentUpdateOneWithoutPaymentsNestedInput;
421
+ payer?: Prisma.UserUpdateOneWithoutApplicationPaymentsNestedInput;
422
+ };
423
+ export type ApplicationPaymentUncheckedUpdateInput = {
424
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
425
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
426
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
427
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
428
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
429
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
430
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
431
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
432
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
433
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
434
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
435
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
436
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
437
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
438
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
439
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
440
+ };
441
+ export type ApplicationPaymentCreateManyInput = {
442
+ id?: string;
443
+ applicationId: string;
444
+ phaseId?: string | null;
445
+ installmentId?: string | null;
446
+ payerId?: string | null;
447
+ amount: number;
448
+ principalAmount?: number;
449
+ interestAmount?: number;
450
+ lateFeeAmount?: number;
451
+ paymentMethod: string;
452
+ status?: $Enums.PaymentStatus;
453
+ reference?: string | null;
454
+ gatewayResponse?: string | null;
455
+ processedAt?: Date | string | null;
456
+ createdAt?: Date | string;
457
+ updatedAt?: Date | string;
458
+ };
459
+ export type ApplicationPaymentUpdateManyMutationInput = {
460
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
461
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
462
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
463
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
464
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
465
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
466
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
467
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
468
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
469
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
470
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
471
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
472
+ };
473
+ export type ApplicationPaymentUncheckedUpdateManyInput = {
474
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
475
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
476
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
477
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
478
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
479
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
480
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
481
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
482
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
483
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
484
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
485
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
486
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
487
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
488
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
489
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
490
+ };
491
+ export type ApplicationPaymentListRelationFilter = {
492
+ every?: Prisma.ApplicationPaymentWhereInput;
493
+ some?: Prisma.ApplicationPaymentWhereInput;
494
+ none?: Prisma.ApplicationPaymentWhereInput;
495
+ };
496
+ export type ApplicationPaymentOrderByRelationAggregateInput = {
497
+ _count?: Prisma.SortOrder;
498
+ };
499
+ export type ApplicationPaymentOrderByRelevanceInput = {
500
+ fields: Prisma.ApplicationPaymentOrderByRelevanceFieldEnum | Prisma.ApplicationPaymentOrderByRelevanceFieldEnum[];
501
+ sort: Prisma.SortOrder;
502
+ search: string;
503
+ };
504
+ export type ApplicationPaymentCountOrderByAggregateInput = {
505
+ id?: Prisma.SortOrder;
506
+ applicationId?: Prisma.SortOrder;
507
+ phaseId?: Prisma.SortOrder;
508
+ installmentId?: Prisma.SortOrder;
509
+ payerId?: Prisma.SortOrder;
510
+ amount?: Prisma.SortOrder;
511
+ principalAmount?: Prisma.SortOrder;
512
+ interestAmount?: Prisma.SortOrder;
513
+ lateFeeAmount?: Prisma.SortOrder;
514
+ paymentMethod?: Prisma.SortOrder;
515
+ status?: Prisma.SortOrder;
516
+ reference?: Prisma.SortOrder;
517
+ gatewayResponse?: Prisma.SortOrder;
518
+ processedAt?: Prisma.SortOrder;
519
+ createdAt?: Prisma.SortOrder;
520
+ updatedAt?: Prisma.SortOrder;
521
+ };
522
+ export type ApplicationPaymentAvgOrderByAggregateInput = {
523
+ amount?: Prisma.SortOrder;
524
+ principalAmount?: Prisma.SortOrder;
525
+ interestAmount?: Prisma.SortOrder;
526
+ lateFeeAmount?: Prisma.SortOrder;
527
+ };
528
+ export type ApplicationPaymentMaxOrderByAggregateInput = {
529
+ id?: Prisma.SortOrder;
530
+ applicationId?: Prisma.SortOrder;
531
+ phaseId?: Prisma.SortOrder;
532
+ installmentId?: Prisma.SortOrder;
533
+ payerId?: Prisma.SortOrder;
534
+ amount?: Prisma.SortOrder;
535
+ principalAmount?: Prisma.SortOrder;
536
+ interestAmount?: Prisma.SortOrder;
537
+ lateFeeAmount?: Prisma.SortOrder;
538
+ paymentMethod?: Prisma.SortOrder;
539
+ status?: Prisma.SortOrder;
540
+ reference?: Prisma.SortOrder;
541
+ gatewayResponse?: Prisma.SortOrder;
542
+ processedAt?: Prisma.SortOrder;
543
+ createdAt?: Prisma.SortOrder;
544
+ updatedAt?: Prisma.SortOrder;
545
+ };
546
+ export type ApplicationPaymentMinOrderByAggregateInput = {
547
+ id?: Prisma.SortOrder;
548
+ applicationId?: Prisma.SortOrder;
549
+ phaseId?: Prisma.SortOrder;
550
+ installmentId?: Prisma.SortOrder;
551
+ payerId?: Prisma.SortOrder;
552
+ amount?: Prisma.SortOrder;
553
+ principalAmount?: Prisma.SortOrder;
554
+ interestAmount?: Prisma.SortOrder;
555
+ lateFeeAmount?: Prisma.SortOrder;
556
+ paymentMethod?: Prisma.SortOrder;
557
+ status?: Prisma.SortOrder;
558
+ reference?: Prisma.SortOrder;
559
+ gatewayResponse?: Prisma.SortOrder;
560
+ processedAt?: Prisma.SortOrder;
561
+ createdAt?: Prisma.SortOrder;
562
+ updatedAt?: Prisma.SortOrder;
563
+ };
564
+ export type ApplicationPaymentSumOrderByAggregateInput = {
565
+ amount?: Prisma.SortOrder;
566
+ principalAmount?: Prisma.SortOrder;
567
+ interestAmount?: Prisma.SortOrder;
568
+ lateFeeAmount?: Prisma.SortOrder;
569
+ };
570
+ export type ApplicationPaymentCreateNestedManyWithoutPayerInput = {
571
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput> | Prisma.ApplicationPaymentCreateWithoutPayerInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput[];
572
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput[];
573
+ createMany?: Prisma.ApplicationPaymentCreateManyPayerInputEnvelope;
574
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
575
+ };
576
+ export type ApplicationPaymentUncheckedCreateNestedManyWithoutPayerInput = {
577
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput> | Prisma.ApplicationPaymentCreateWithoutPayerInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput[];
578
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput[];
579
+ createMany?: Prisma.ApplicationPaymentCreateManyPayerInputEnvelope;
580
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
581
+ };
582
+ export type ApplicationPaymentUpdateManyWithoutPayerNestedInput = {
583
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput> | Prisma.ApplicationPaymentCreateWithoutPayerInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput[];
584
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput[];
585
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPayerInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPayerInput[];
586
+ createMany?: Prisma.ApplicationPaymentCreateManyPayerInputEnvelope;
587
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
588
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
589
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
590
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
591
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPayerInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPayerInput[];
592
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPayerInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPayerInput[];
593
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
594
+ };
595
+ export type ApplicationPaymentUncheckedUpdateManyWithoutPayerNestedInput = {
596
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput> | Prisma.ApplicationPaymentCreateWithoutPayerInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput[];
597
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPayerInput[];
598
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPayerInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPayerInput[];
599
+ createMany?: Prisma.ApplicationPaymentCreateManyPayerInputEnvelope;
600
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
601
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
602
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
603
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
604
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPayerInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPayerInput[];
605
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPayerInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPayerInput[];
606
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
607
+ };
608
+ export type ApplicationPaymentCreateNestedManyWithoutApplicationInput = {
609
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput> | Prisma.ApplicationPaymentCreateWithoutApplicationInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput[];
610
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput | Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput[];
611
+ createMany?: Prisma.ApplicationPaymentCreateManyApplicationInputEnvelope;
612
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
613
+ };
614
+ export type ApplicationPaymentUncheckedCreateNestedManyWithoutApplicationInput = {
615
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput> | Prisma.ApplicationPaymentCreateWithoutApplicationInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput[];
616
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput | Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput[];
617
+ createMany?: Prisma.ApplicationPaymentCreateManyApplicationInputEnvelope;
618
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
619
+ };
620
+ export type ApplicationPaymentUpdateManyWithoutApplicationNestedInput = {
621
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput> | Prisma.ApplicationPaymentCreateWithoutApplicationInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput[];
622
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput | Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput[];
623
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutApplicationInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutApplicationInput[];
624
+ createMany?: Prisma.ApplicationPaymentCreateManyApplicationInputEnvelope;
625
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
626
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
627
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
628
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
629
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutApplicationInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutApplicationInput[];
630
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutApplicationInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutApplicationInput[];
631
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
632
+ };
633
+ export type ApplicationPaymentUncheckedUpdateManyWithoutApplicationNestedInput = {
634
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput> | Prisma.ApplicationPaymentCreateWithoutApplicationInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput[];
635
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput | Prisma.ApplicationPaymentCreateOrConnectWithoutApplicationInput[];
636
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutApplicationInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutApplicationInput[];
637
+ createMany?: Prisma.ApplicationPaymentCreateManyApplicationInputEnvelope;
638
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
639
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
640
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
641
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
642
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutApplicationInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutApplicationInput[];
643
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutApplicationInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutApplicationInput[];
644
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
645
+ };
646
+ export type ApplicationPaymentCreateNestedManyWithoutPhaseInput = {
647
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput> | Prisma.ApplicationPaymentCreateWithoutPhaseInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput[];
648
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput[];
649
+ createMany?: Prisma.ApplicationPaymentCreateManyPhaseInputEnvelope;
650
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
651
+ };
652
+ export type ApplicationPaymentUncheckedCreateNestedManyWithoutPhaseInput = {
653
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput> | Prisma.ApplicationPaymentCreateWithoutPhaseInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput[];
654
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput[];
655
+ createMany?: Prisma.ApplicationPaymentCreateManyPhaseInputEnvelope;
656
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
657
+ };
658
+ export type ApplicationPaymentUpdateManyWithoutPhaseNestedInput = {
659
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput> | Prisma.ApplicationPaymentCreateWithoutPhaseInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput[];
660
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput[];
661
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPhaseInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPhaseInput[];
662
+ createMany?: Prisma.ApplicationPaymentCreateManyPhaseInputEnvelope;
663
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
664
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
665
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
666
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
667
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPhaseInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPhaseInput[];
668
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPhaseInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPhaseInput[];
669
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
670
+ };
671
+ export type ApplicationPaymentUncheckedUpdateManyWithoutPhaseNestedInput = {
672
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput> | Prisma.ApplicationPaymentCreateWithoutPhaseInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput[];
673
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput | Prisma.ApplicationPaymentCreateOrConnectWithoutPhaseInput[];
674
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPhaseInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutPhaseInput[];
675
+ createMany?: Prisma.ApplicationPaymentCreateManyPhaseInputEnvelope;
676
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
677
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
678
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
679
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
680
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPhaseInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutPhaseInput[];
681
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPhaseInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutPhaseInput[];
682
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
683
+ };
684
+ export type ApplicationPaymentCreateNestedManyWithoutInstallmentInput = {
685
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput> | Prisma.ApplicationPaymentCreateWithoutInstallmentInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput[];
686
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput | Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput[];
687
+ createMany?: Prisma.ApplicationPaymentCreateManyInstallmentInputEnvelope;
688
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
689
+ };
690
+ export type ApplicationPaymentUncheckedCreateNestedManyWithoutInstallmentInput = {
691
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput> | Prisma.ApplicationPaymentCreateWithoutInstallmentInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput[];
692
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput | Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput[];
693
+ createMany?: Prisma.ApplicationPaymentCreateManyInstallmentInputEnvelope;
694
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
695
+ };
696
+ export type ApplicationPaymentUpdateManyWithoutInstallmentNestedInput = {
697
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput> | Prisma.ApplicationPaymentCreateWithoutInstallmentInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput[];
698
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput | Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput[];
699
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutInstallmentInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutInstallmentInput[];
700
+ createMany?: Prisma.ApplicationPaymentCreateManyInstallmentInputEnvelope;
701
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
702
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
703
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
704
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
705
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutInstallmentInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutInstallmentInput[];
706
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutInstallmentInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutInstallmentInput[];
707
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
708
+ };
709
+ export type ApplicationPaymentUncheckedUpdateManyWithoutInstallmentNestedInput = {
710
+ create?: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput> | Prisma.ApplicationPaymentCreateWithoutInstallmentInput[] | Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput[];
711
+ connectOrCreate?: Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput | Prisma.ApplicationPaymentCreateOrConnectWithoutInstallmentInput[];
712
+ upsert?: Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutInstallmentInput | Prisma.ApplicationPaymentUpsertWithWhereUniqueWithoutInstallmentInput[];
713
+ createMany?: Prisma.ApplicationPaymentCreateManyInstallmentInputEnvelope;
714
+ set?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
715
+ disconnect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
716
+ delete?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
717
+ connect?: Prisma.ApplicationPaymentWhereUniqueInput | Prisma.ApplicationPaymentWhereUniqueInput[];
718
+ update?: Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutInstallmentInput | Prisma.ApplicationPaymentUpdateWithWhereUniqueWithoutInstallmentInput[];
719
+ updateMany?: Prisma.ApplicationPaymentUpdateManyWithWhereWithoutInstallmentInput | Prisma.ApplicationPaymentUpdateManyWithWhereWithoutInstallmentInput[];
720
+ deleteMany?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
721
+ };
722
+ export type EnumPaymentStatusFieldUpdateOperationsInput = {
723
+ set?: $Enums.PaymentStatus;
724
+ };
725
+ export type ApplicationPaymentCreateWithoutPayerInput = {
726
+ id?: string;
727
+ amount: number;
728
+ principalAmount?: number;
729
+ interestAmount?: number;
730
+ lateFeeAmount?: number;
731
+ paymentMethod: string;
732
+ status?: $Enums.PaymentStatus;
733
+ reference?: string | null;
734
+ gatewayResponse?: string | null;
735
+ processedAt?: Date | string | null;
736
+ createdAt?: Date | string;
737
+ updatedAt?: Date | string;
738
+ application: Prisma.ApplicationCreateNestedOneWithoutPaymentsInput;
739
+ phase?: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentsInput;
740
+ installment?: Prisma.PaymentInstallmentCreateNestedOneWithoutPaymentsInput;
741
+ };
742
+ export type ApplicationPaymentUncheckedCreateWithoutPayerInput = {
743
+ id?: string;
744
+ applicationId: string;
745
+ phaseId?: string | null;
746
+ installmentId?: string | null;
747
+ amount: number;
748
+ principalAmount?: number;
749
+ interestAmount?: number;
750
+ lateFeeAmount?: number;
751
+ paymentMethod: string;
752
+ status?: $Enums.PaymentStatus;
753
+ reference?: string | null;
754
+ gatewayResponse?: string | null;
755
+ processedAt?: Date | string | null;
756
+ createdAt?: Date | string;
757
+ updatedAt?: Date | string;
758
+ };
759
+ export type ApplicationPaymentCreateOrConnectWithoutPayerInput = {
760
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
761
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput>;
762
+ };
763
+ export type ApplicationPaymentCreateManyPayerInputEnvelope = {
764
+ data: Prisma.ApplicationPaymentCreateManyPayerInput | Prisma.ApplicationPaymentCreateManyPayerInput[];
765
+ skipDuplicates?: boolean;
766
+ };
767
+ export type ApplicationPaymentUpsertWithWhereUniqueWithoutPayerInput = {
768
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
769
+ update: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutPayerInput>;
770
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPayerInput>;
771
+ };
772
+ export type ApplicationPaymentUpdateWithWhereUniqueWithoutPayerInput = {
773
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
774
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutPayerInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutPayerInput>;
775
+ };
776
+ export type ApplicationPaymentUpdateManyWithWhereWithoutPayerInput = {
777
+ where: Prisma.ApplicationPaymentScalarWhereInput;
778
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateManyMutationInput, Prisma.ApplicationPaymentUncheckedUpdateManyWithoutPayerInput>;
779
+ };
780
+ export type ApplicationPaymentScalarWhereInput = {
781
+ AND?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
782
+ OR?: Prisma.ApplicationPaymentScalarWhereInput[];
783
+ NOT?: Prisma.ApplicationPaymentScalarWhereInput | Prisma.ApplicationPaymentScalarWhereInput[];
784
+ id?: Prisma.StringFilter<"ApplicationPayment"> | string;
785
+ applicationId?: Prisma.StringFilter<"ApplicationPayment"> | string;
786
+ phaseId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
787
+ installmentId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
788
+ payerId?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
789
+ amount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
790
+ principalAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
791
+ interestAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
792
+ lateFeeAmount?: Prisma.FloatFilter<"ApplicationPayment"> | number;
793
+ paymentMethod?: Prisma.StringFilter<"ApplicationPayment"> | string;
794
+ status?: Prisma.EnumPaymentStatusFilter<"ApplicationPayment"> | $Enums.PaymentStatus;
795
+ reference?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
796
+ gatewayResponse?: Prisma.StringNullableFilter<"ApplicationPayment"> | string | null;
797
+ processedAt?: Prisma.DateTimeNullableFilter<"ApplicationPayment"> | Date | string | null;
798
+ createdAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
799
+ updatedAt?: Prisma.DateTimeFilter<"ApplicationPayment"> | Date | string;
800
+ };
801
+ export type ApplicationPaymentCreateWithoutApplicationInput = {
802
+ id?: string;
803
+ amount: number;
804
+ principalAmount?: number;
805
+ interestAmount?: number;
806
+ lateFeeAmount?: number;
807
+ paymentMethod: string;
808
+ status?: $Enums.PaymentStatus;
809
+ reference?: string | null;
810
+ gatewayResponse?: string | null;
811
+ processedAt?: Date | string | null;
812
+ createdAt?: Date | string;
813
+ updatedAt?: Date | string;
814
+ phase?: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentsInput;
815
+ installment?: Prisma.PaymentInstallmentCreateNestedOneWithoutPaymentsInput;
816
+ payer?: Prisma.UserCreateNestedOneWithoutApplicationPaymentsInput;
817
+ };
818
+ export type ApplicationPaymentUncheckedCreateWithoutApplicationInput = {
819
+ id?: string;
820
+ phaseId?: string | null;
821
+ installmentId?: string | null;
822
+ payerId?: string | null;
823
+ amount: number;
824
+ principalAmount?: number;
825
+ interestAmount?: number;
826
+ lateFeeAmount?: number;
827
+ paymentMethod: string;
828
+ status?: $Enums.PaymentStatus;
829
+ reference?: string | null;
830
+ gatewayResponse?: string | null;
831
+ processedAt?: Date | string | null;
832
+ createdAt?: Date | string;
833
+ updatedAt?: Date | string;
834
+ };
835
+ export type ApplicationPaymentCreateOrConnectWithoutApplicationInput = {
836
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
837
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput>;
838
+ };
839
+ export type ApplicationPaymentCreateManyApplicationInputEnvelope = {
840
+ data: Prisma.ApplicationPaymentCreateManyApplicationInput | Prisma.ApplicationPaymentCreateManyApplicationInput[];
841
+ skipDuplicates?: boolean;
842
+ };
843
+ export type ApplicationPaymentUpsertWithWhereUniqueWithoutApplicationInput = {
844
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
845
+ update: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutApplicationInput>;
846
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedCreateWithoutApplicationInput>;
847
+ };
848
+ export type ApplicationPaymentUpdateWithWhereUniqueWithoutApplicationInput = {
849
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
850
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutApplicationInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutApplicationInput>;
851
+ };
852
+ export type ApplicationPaymentUpdateManyWithWhereWithoutApplicationInput = {
853
+ where: Prisma.ApplicationPaymentScalarWhereInput;
854
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateManyMutationInput, Prisma.ApplicationPaymentUncheckedUpdateManyWithoutApplicationInput>;
855
+ };
856
+ export type ApplicationPaymentCreateWithoutPhaseInput = {
857
+ id?: string;
858
+ amount: number;
859
+ principalAmount?: number;
860
+ interestAmount?: number;
861
+ lateFeeAmount?: number;
862
+ paymentMethod: string;
863
+ status?: $Enums.PaymentStatus;
864
+ reference?: string | null;
865
+ gatewayResponse?: string | null;
866
+ processedAt?: Date | string | null;
867
+ createdAt?: Date | string;
868
+ updatedAt?: Date | string;
869
+ application: Prisma.ApplicationCreateNestedOneWithoutPaymentsInput;
870
+ installment?: Prisma.PaymentInstallmentCreateNestedOneWithoutPaymentsInput;
871
+ payer?: Prisma.UserCreateNestedOneWithoutApplicationPaymentsInput;
872
+ };
873
+ export type ApplicationPaymentUncheckedCreateWithoutPhaseInput = {
874
+ id?: string;
875
+ applicationId: string;
876
+ installmentId?: string | null;
877
+ payerId?: string | null;
878
+ amount: number;
879
+ principalAmount?: number;
880
+ interestAmount?: number;
881
+ lateFeeAmount?: number;
882
+ paymentMethod: string;
883
+ status?: $Enums.PaymentStatus;
884
+ reference?: string | null;
885
+ gatewayResponse?: string | null;
886
+ processedAt?: Date | string | null;
887
+ createdAt?: Date | string;
888
+ updatedAt?: Date | string;
889
+ };
890
+ export type ApplicationPaymentCreateOrConnectWithoutPhaseInput = {
891
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
892
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput>;
893
+ };
894
+ export type ApplicationPaymentCreateManyPhaseInputEnvelope = {
895
+ data: Prisma.ApplicationPaymentCreateManyPhaseInput | Prisma.ApplicationPaymentCreateManyPhaseInput[];
896
+ skipDuplicates?: boolean;
897
+ };
898
+ export type ApplicationPaymentUpsertWithWhereUniqueWithoutPhaseInput = {
899
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
900
+ update: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutPhaseInput>;
901
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedCreateWithoutPhaseInput>;
902
+ };
903
+ export type ApplicationPaymentUpdateWithWhereUniqueWithoutPhaseInput = {
904
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
905
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutPhaseInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutPhaseInput>;
906
+ };
907
+ export type ApplicationPaymentUpdateManyWithWhereWithoutPhaseInput = {
908
+ where: Prisma.ApplicationPaymentScalarWhereInput;
909
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateManyMutationInput, Prisma.ApplicationPaymentUncheckedUpdateManyWithoutPhaseInput>;
910
+ };
911
+ export type ApplicationPaymentCreateWithoutInstallmentInput = {
912
+ id?: string;
913
+ amount: number;
914
+ principalAmount?: number;
915
+ interestAmount?: number;
916
+ lateFeeAmount?: number;
917
+ paymentMethod: string;
918
+ status?: $Enums.PaymentStatus;
919
+ reference?: string | null;
920
+ gatewayResponse?: string | null;
921
+ processedAt?: Date | string | null;
922
+ createdAt?: Date | string;
923
+ updatedAt?: Date | string;
924
+ application: Prisma.ApplicationCreateNestedOneWithoutPaymentsInput;
925
+ phase?: Prisma.ApplicationPhaseCreateNestedOneWithoutPaymentsInput;
926
+ payer?: Prisma.UserCreateNestedOneWithoutApplicationPaymentsInput;
927
+ };
928
+ export type ApplicationPaymentUncheckedCreateWithoutInstallmentInput = {
929
+ id?: string;
930
+ applicationId: string;
931
+ phaseId?: string | null;
932
+ payerId?: string | null;
933
+ amount: number;
934
+ principalAmount?: number;
935
+ interestAmount?: number;
936
+ lateFeeAmount?: number;
937
+ paymentMethod: string;
938
+ status?: $Enums.PaymentStatus;
939
+ reference?: string | null;
940
+ gatewayResponse?: string | null;
941
+ processedAt?: Date | string | null;
942
+ createdAt?: Date | string;
943
+ updatedAt?: Date | string;
944
+ };
945
+ export type ApplicationPaymentCreateOrConnectWithoutInstallmentInput = {
946
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
947
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput>;
948
+ };
949
+ export type ApplicationPaymentCreateManyInstallmentInputEnvelope = {
950
+ data: Prisma.ApplicationPaymentCreateManyInstallmentInput | Prisma.ApplicationPaymentCreateManyInstallmentInput[];
951
+ skipDuplicates?: boolean;
952
+ };
953
+ export type ApplicationPaymentUpsertWithWhereUniqueWithoutInstallmentInput = {
954
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
955
+ update: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutInstallmentInput>;
956
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedCreateWithoutInstallmentInput>;
957
+ };
958
+ export type ApplicationPaymentUpdateWithWhereUniqueWithoutInstallmentInput = {
959
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
960
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateWithoutInstallmentInput, Prisma.ApplicationPaymentUncheckedUpdateWithoutInstallmentInput>;
961
+ };
962
+ export type ApplicationPaymentUpdateManyWithWhereWithoutInstallmentInput = {
963
+ where: Prisma.ApplicationPaymentScalarWhereInput;
964
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateManyMutationInput, Prisma.ApplicationPaymentUncheckedUpdateManyWithoutInstallmentInput>;
965
+ };
966
+ export type ApplicationPaymentCreateManyPayerInput = {
967
+ id?: string;
968
+ applicationId: string;
969
+ phaseId?: string | null;
970
+ installmentId?: string | null;
971
+ amount: number;
972
+ principalAmount?: number;
973
+ interestAmount?: number;
974
+ lateFeeAmount?: number;
975
+ paymentMethod: string;
976
+ status?: $Enums.PaymentStatus;
977
+ reference?: string | null;
978
+ gatewayResponse?: string | null;
979
+ processedAt?: Date | string | null;
980
+ createdAt?: Date | string;
981
+ updatedAt?: Date | string;
982
+ };
983
+ export type ApplicationPaymentUpdateWithoutPayerInput = {
984
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
985
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
986
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
987
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
988
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
989
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
990
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
991
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
992
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
993
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
994
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
995
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
996
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPaymentsNestedInput;
997
+ phase?: Prisma.ApplicationPhaseUpdateOneWithoutPaymentsNestedInput;
998
+ installment?: Prisma.PaymentInstallmentUpdateOneWithoutPaymentsNestedInput;
999
+ };
1000
+ export type ApplicationPaymentUncheckedUpdateWithoutPayerInput = {
1001
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1002
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1003
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1004
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1005
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1006
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1007
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1008
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1009
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1010
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1011
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1012
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1013
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1014
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1015
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1016
+ };
1017
+ export type ApplicationPaymentUncheckedUpdateManyWithoutPayerInput = {
1018
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1019
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1020
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1021
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1022
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1023
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1024
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1025
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1026
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1027
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1028
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1029
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1030
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1031
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1032
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1033
+ };
1034
+ export type ApplicationPaymentCreateManyApplicationInput = {
1035
+ id?: string;
1036
+ phaseId?: string | null;
1037
+ installmentId?: string | null;
1038
+ payerId?: string | null;
1039
+ amount: number;
1040
+ principalAmount?: number;
1041
+ interestAmount?: number;
1042
+ lateFeeAmount?: number;
1043
+ paymentMethod: string;
1044
+ status?: $Enums.PaymentStatus;
1045
+ reference?: string | null;
1046
+ gatewayResponse?: string | null;
1047
+ processedAt?: Date | string | null;
1048
+ createdAt?: Date | string;
1049
+ updatedAt?: Date | string;
1050
+ };
1051
+ export type ApplicationPaymentUpdateWithoutApplicationInput = {
1052
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1053
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1054
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1055
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1056
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1057
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1058
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1059
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1060
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1061
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1062
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1063
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1064
+ phase?: Prisma.ApplicationPhaseUpdateOneWithoutPaymentsNestedInput;
1065
+ installment?: Prisma.PaymentInstallmentUpdateOneWithoutPaymentsNestedInput;
1066
+ payer?: Prisma.UserUpdateOneWithoutApplicationPaymentsNestedInput;
1067
+ };
1068
+ export type ApplicationPaymentUncheckedUpdateWithoutApplicationInput = {
1069
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1070
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1071
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1072
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1073
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1074
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1075
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1076
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1077
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1078
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1079
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1080
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1081
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1082
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1083
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1084
+ };
1085
+ export type ApplicationPaymentUncheckedUpdateManyWithoutApplicationInput = {
1086
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1087
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1088
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1089
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1090
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1091
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1092
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1093
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1094
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1095
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1096
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1097
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1098
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1099
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1100
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1101
+ };
1102
+ export type ApplicationPaymentCreateManyPhaseInput = {
1103
+ id?: string;
1104
+ applicationId: string;
1105
+ installmentId?: string | null;
1106
+ payerId?: string | null;
1107
+ amount: number;
1108
+ principalAmount?: number;
1109
+ interestAmount?: number;
1110
+ lateFeeAmount?: number;
1111
+ paymentMethod: string;
1112
+ status?: $Enums.PaymentStatus;
1113
+ reference?: string | null;
1114
+ gatewayResponse?: string | null;
1115
+ processedAt?: Date | string | null;
1116
+ createdAt?: Date | string;
1117
+ updatedAt?: Date | string;
1118
+ };
1119
+ export type ApplicationPaymentUpdateWithoutPhaseInput = {
1120
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1121
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1122
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1123
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1124
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1125
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1126
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1127
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1128
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1129
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1130
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1131
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1132
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPaymentsNestedInput;
1133
+ installment?: Prisma.PaymentInstallmentUpdateOneWithoutPaymentsNestedInput;
1134
+ payer?: Prisma.UserUpdateOneWithoutApplicationPaymentsNestedInput;
1135
+ };
1136
+ export type ApplicationPaymentUncheckedUpdateWithoutPhaseInput = {
1137
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1138
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1139
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1140
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1141
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1142
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1143
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1144
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1145
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1146
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1147
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1148
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1149
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1150
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1151
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1152
+ };
1153
+ export type ApplicationPaymentUncheckedUpdateManyWithoutPhaseInput = {
1154
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1155
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1156
+ installmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1157
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1158
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1159
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1160
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1161
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1162
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1163
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1164
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1165
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1166
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1167
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1168
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1169
+ };
1170
+ export type ApplicationPaymentCreateManyInstallmentInput = {
1171
+ id?: string;
1172
+ applicationId: string;
1173
+ phaseId?: string | null;
1174
+ payerId?: string | null;
1175
+ amount: number;
1176
+ principalAmount?: number;
1177
+ interestAmount?: number;
1178
+ lateFeeAmount?: number;
1179
+ paymentMethod: string;
1180
+ status?: $Enums.PaymentStatus;
1181
+ reference?: string | null;
1182
+ gatewayResponse?: string | null;
1183
+ processedAt?: Date | string | null;
1184
+ createdAt?: Date | string;
1185
+ updatedAt?: Date | string;
1186
+ };
1187
+ export type ApplicationPaymentUpdateWithoutInstallmentInput = {
1188
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1189
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1190
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1191
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1192
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1193
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1194
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1195
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1196
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1197
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1198
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1199
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1200
+ application?: Prisma.ApplicationUpdateOneRequiredWithoutPaymentsNestedInput;
1201
+ phase?: Prisma.ApplicationPhaseUpdateOneWithoutPaymentsNestedInput;
1202
+ payer?: Prisma.UserUpdateOneWithoutApplicationPaymentsNestedInput;
1203
+ };
1204
+ export type ApplicationPaymentUncheckedUpdateWithoutInstallmentInput = {
1205
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1206
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1207
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1208
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1209
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1210
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1211
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1212
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1213
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1214
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1215
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1216
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1217
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1218
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1219
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1220
+ };
1221
+ export type ApplicationPaymentUncheckedUpdateManyWithoutInstallmentInput = {
1222
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
1223
+ applicationId?: Prisma.StringFieldUpdateOperationsInput | string;
1224
+ phaseId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1225
+ payerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1226
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
1227
+ principalAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1228
+ interestAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1229
+ lateFeeAmount?: Prisma.FloatFieldUpdateOperationsInput | number;
1230
+ paymentMethod?: Prisma.StringFieldUpdateOperationsInput | string;
1231
+ status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus;
1232
+ reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1233
+ gatewayResponse?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
1234
+ processedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
1235
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1236
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1237
+ };
1238
+ export type ApplicationPaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1239
+ id?: boolean;
1240
+ applicationId?: boolean;
1241
+ phaseId?: boolean;
1242
+ installmentId?: boolean;
1243
+ payerId?: boolean;
1244
+ amount?: boolean;
1245
+ principalAmount?: boolean;
1246
+ interestAmount?: boolean;
1247
+ lateFeeAmount?: boolean;
1248
+ paymentMethod?: boolean;
1249
+ status?: boolean;
1250
+ reference?: boolean;
1251
+ gatewayResponse?: boolean;
1252
+ processedAt?: boolean;
1253
+ createdAt?: boolean;
1254
+ updatedAt?: boolean;
1255
+ application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1256
+ phase?: boolean | Prisma.ApplicationPayment$phaseArgs<ExtArgs>;
1257
+ installment?: boolean | Prisma.ApplicationPayment$installmentArgs<ExtArgs>;
1258
+ payer?: boolean | Prisma.ApplicationPayment$payerArgs<ExtArgs>;
1259
+ }, ExtArgs["result"]["applicationPayment"]>;
1260
+ export type ApplicationPaymentSelectScalar = {
1261
+ id?: boolean;
1262
+ applicationId?: boolean;
1263
+ phaseId?: boolean;
1264
+ installmentId?: boolean;
1265
+ payerId?: boolean;
1266
+ amount?: boolean;
1267
+ principalAmount?: boolean;
1268
+ interestAmount?: boolean;
1269
+ lateFeeAmount?: boolean;
1270
+ paymentMethod?: boolean;
1271
+ status?: boolean;
1272
+ reference?: boolean;
1273
+ gatewayResponse?: boolean;
1274
+ processedAt?: boolean;
1275
+ createdAt?: boolean;
1276
+ updatedAt?: boolean;
1277
+ };
1278
+ export type ApplicationPaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "applicationId" | "phaseId" | "installmentId" | "payerId" | "amount" | "principalAmount" | "interestAmount" | "lateFeeAmount" | "paymentMethod" | "status" | "reference" | "gatewayResponse" | "processedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["applicationPayment"]>;
1279
+ export type ApplicationPaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1280
+ application?: boolean | Prisma.ApplicationDefaultArgs<ExtArgs>;
1281
+ phase?: boolean | Prisma.ApplicationPayment$phaseArgs<ExtArgs>;
1282
+ installment?: boolean | Prisma.ApplicationPayment$installmentArgs<ExtArgs>;
1283
+ payer?: boolean | Prisma.ApplicationPayment$payerArgs<ExtArgs>;
1284
+ };
1285
+ export type $ApplicationPaymentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1286
+ name: "ApplicationPayment";
1287
+ objects: {
1288
+ application: Prisma.$ApplicationPayload<ExtArgs>;
1289
+ phase: Prisma.$ApplicationPhasePayload<ExtArgs> | null;
1290
+ installment: Prisma.$PaymentInstallmentPayload<ExtArgs> | null;
1291
+ payer: Prisma.$UserPayload<ExtArgs> | null;
1292
+ };
1293
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1294
+ id: string;
1295
+ applicationId: string;
1296
+ phaseId: string | null;
1297
+ installmentId: string | null;
1298
+ payerId: string | null;
1299
+ amount: number;
1300
+ principalAmount: number;
1301
+ interestAmount: number;
1302
+ lateFeeAmount: number;
1303
+ paymentMethod: string;
1304
+ status: $Enums.PaymentStatus;
1305
+ reference: string | null;
1306
+ gatewayResponse: string | null;
1307
+ processedAt: Date | null;
1308
+ createdAt: Date;
1309
+ updatedAt: Date;
1310
+ }, ExtArgs["result"]["applicationPayment"]>;
1311
+ composites: {};
1312
+ };
1313
+ export type ApplicationPaymentGetPayload<S extends boolean | null | undefined | ApplicationPaymentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload, S>;
1314
+ export type ApplicationPaymentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<ApplicationPaymentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1315
+ select?: ApplicationPaymentCountAggregateInputType | true;
1316
+ };
1317
+ export interface ApplicationPaymentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1318
+ [K: symbol]: {
1319
+ types: Prisma.TypeMap<ExtArgs>['model']['ApplicationPayment'];
1320
+ meta: {
1321
+ name: 'ApplicationPayment';
1322
+ };
1323
+ };
1324
+ /**
1325
+ * Find zero or one ApplicationPayment that matches the filter.
1326
+ * @param {ApplicationPaymentFindUniqueArgs} args - Arguments to find a ApplicationPayment
1327
+ * @example
1328
+ * // Get one ApplicationPayment
1329
+ * const applicationPayment = await prisma.applicationPayment.findUnique({
1330
+ * where: {
1331
+ * // ... provide filter here
1332
+ * }
1333
+ * })
1334
+ */
1335
+ findUnique<T extends ApplicationPaymentFindUniqueArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1336
+ /**
1337
+ * Find one ApplicationPayment that matches the filter or throw an error with `error.code='P2025'`
1338
+ * if no matches were found.
1339
+ * @param {ApplicationPaymentFindUniqueOrThrowArgs} args - Arguments to find a ApplicationPayment
1340
+ * @example
1341
+ * // Get one ApplicationPayment
1342
+ * const applicationPayment = await prisma.applicationPayment.findUniqueOrThrow({
1343
+ * where: {
1344
+ * // ... provide filter here
1345
+ * }
1346
+ * })
1347
+ */
1348
+ findUniqueOrThrow<T extends ApplicationPaymentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1349
+ /**
1350
+ * Find the first ApplicationPayment that matches the filter.
1351
+ * Note, that providing `undefined` is treated as the value not being there.
1352
+ * Read more here: https://pris.ly/d/null-undefined
1353
+ * @param {ApplicationPaymentFindFirstArgs} args - Arguments to find a ApplicationPayment
1354
+ * @example
1355
+ * // Get one ApplicationPayment
1356
+ * const applicationPayment = await prisma.applicationPayment.findFirst({
1357
+ * where: {
1358
+ * // ... provide filter here
1359
+ * }
1360
+ * })
1361
+ */
1362
+ findFirst<T extends ApplicationPaymentFindFirstArgs>(args?: Prisma.SelectSubset<T, ApplicationPaymentFindFirstArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1363
+ /**
1364
+ * Find the first ApplicationPayment that matches the filter or
1365
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1366
+ * Note, that providing `undefined` is treated as the value not being there.
1367
+ * Read more here: https://pris.ly/d/null-undefined
1368
+ * @param {ApplicationPaymentFindFirstOrThrowArgs} args - Arguments to find a ApplicationPayment
1369
+ * @example
1370
+ * // Get one ApplicationPayment
1371
+ * const applicationPayment = await prisma.applicationPayment.findFirstOrThrow({
1372
+ * where: {
1373
+ * // ... provide filter here
1374
+ * }
1375
+ * })
1376
+ */
1377
+ findFirstOrThrow<T extends ApplicationPaymentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ApplicationPaymentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1378
+ /**
1379
+ * Find zero or more ApplicationPayments that matches the filter.
1380
+ * Note, that providing `undefined` is treated as the value not being there.
1381
+ * Read more here: https://pris.ly/d/null-undefined
1382
+ * @param {ApplicationPaymentFindManyArgs} args - Arguments to filter and select certain fields only.
1383
+ * @example
1384
+ * // Get all ApplicationPayments
1385
+ * const applicationPayments = await prisma.applicationPayment.findMany()
1386
+ *
1387
+ * // Get first 10 ApplicationPayments
1388
+ * const applicationPayments = await prisma.applicationPayment.findMany({ take: 10 })
1389
+ *
1390
+ * // Only select the `id`
1391
+ * const applicationPaymentWithIdOnly = await prisma.applicationPayment.findMany({ select: { id: true } })
1392
+ *
1393
+ */
1394
+ findMany<T extends ApplicationPaymentFindManyArgs>(args?: Prisma.SelectSubset<T, ApplicationPaymentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1395
+ /**
1396
+ * Create a ApplicationPayment.
1397
+ * @param {ApplicationPaymentCreateArgs} args - Arguments to create a ApplicationPayment.
1398
+ * @example
1399
+ * // Create one ApplicationPayment
1400
+ * const ApplicationPayment = await prisma.applicationPayment.create({
1401
+ * data: {
1402
+ * // ... data to create a ApplicationPayment
1403
+ * }
1404
+ * })
1405
+ *
1406
+ */
1407
+ create<T extends ApplicationPaymentCreateArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentCreateArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1408
+ /**
1409
+ * Create many ApplicationPayments.
1410
+ * @param {ApplicationPaymentCreateManyArgs} args - Arguments to create many ApplicationPayments.
1411
+ * @example
1412
+ * // Create many ApplicationPayments
1413
+ * const applicationPayment = await prisma.applicationPayment.createMany({
1414
+ * data: [
1415
+ * // ... provide data here
1416
+ * ]
1417
+ * })
1418
+ *
1419
+ */
1420
+ createMany<T extends ApplicationPaymentCreateManyArgs>(args?: Prisma.SelectSubset<T, ApplicationPaymentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1421
+ /**
1422
+ * Delete a ApplicationPayment.
1423
+ * @param {ApplicationPaymentDeleteArgs} args - Arguments to delete one ApplicationPayment.
1424
+ * @example
1425
+ * // Delete one ApplicationPayment
1426
+ * const ApplicationPayment = await prisma.applicationPayment.delete({
1427
+ * where: {
1428
+ * // ... filter to delete one ApplicationPayment
1429
+ * }
1430
+ * })
1431
+ *
1432
+ */
1433
+ delete<T extends ApplicationPaymentDeleteArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentDeleteArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1434
+ /**
1435
+ * Update one ApplicationPayment.
1436
+ * @param {ApplicationPaymentUpdateArgs} args - Arguments to update one ApplicationPayment.
1437
+ * @example
1438
+ * // Update one ApplicationPayment
1439
+ * const applicationPayment = await prisma.applicationPayment.update({
1440
+ * where: {
1441
+ * // ... provide filter here
1442
+ * },
1443
+ * data: {
1444
+ * // ... provide data here
1445
+ * }
1446
+ * })
1447
+ *
1448
+ */
1449
+ update<T extends ApplicationPaymentUpdateArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentUpdateArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1450
+ /**
1451
+ * Delete zero or more ApplicationPayments.
1452
+ * @param {ApplicationPaymentDeleteManyArgs} args - Arguments to filter ApplicationPayments to delete.
1453
+ * @example
1454
+ * // Delete a few ApplicationPayments
1455
+ * const { count } = await prisma.applicationPayment.deleteMany({
1456
+ * where: {
1457
+ * // ... provide filter here
1458
+ * }
1459
+ * })
1460
+ *
1461
+ */
1462
+ deleteMany<T extends ApplicationPaymentDeleteManyArgs>(args?: Prisma.SelectSubset<T, ApplicationPaymentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1463
+ /**
1464
+ * Update zero or more ApplicationPayments.
1465
+ * Note, that providing `undefined` is treated as the value not being there.
1466
+ * Read more here: https://pris.ly/d/null-undefined
1467
+ * @param {ApplicationPaymentUpdateManyArgs} args - Arguments to update one or more rows.
1468
+ * @example
1469
+ * // Update many ApplicationPayments
1470
+ * const applicationPayment = await prisma.applicationPayment.updateMany({
1471
+ * where: {
1472
+ * // ... provide filter here
1473
+ * },
1474
+ * data: {
1475
+ * // ... provide data here
1476
+ * }
1477
+ * })
1478
+ *
1479
+ */
1480
+ updateMany<T extends ApplicationPaymentUpdateManyArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1481
+ /**
1482
+ * Create or update one ApplicationPayment.
1483
+ * @param {ApplicationPaymentUpsertArgs} args - Arguments to update or create a ApplicationPayment.
1484
+ * @example
1485
+ * // Update or create a ApplicationPayment
1486
+ * const applicationPayment = await prisma.applicationPayment.upsert({
1487
+ * create: {
1488
+ * // ... data to create a ApplicationPayment
1489
+ * },
1490
+ * update: {
1491
+ * // ... in case it already exists, update
1492
+ * },
1493
+ * where: {
1494
+ * // ... the filter for the ApplicationPayment we want to update
1495
+ * }
1496
+ * })
1497
+ */
1498
+ upsert<T extends ApplicationPaymentUpsertArgs>(args: Prisma.SelectSubset<T, ApplicationPaymentUpsertArgs<ExtArgs>>): Prisma.Prisma__ApplicationPaymentClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPaymentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1499
+ /**
1500
+ * Count the number of ApplicationPayments.
1501
+ * Note, that providing `undefined` is treated as the value not being there.
1502
+ * Read more here: https://pris.ly/d/null-undefined
1503
+ * @param {ApplicationPaymentCountArgs} args - Arguments to filter ApplicationPayments to count.
1504
+ * @example
1505
+ * // Count the number of ApplicationPayments
1506
+ * const count = await prisma.applicationPayment.count({
1507
+ * where: {
1508
+ * // ... the filter for the ApplicationPayments we want to count
1509
+ * }
1510
+ * })
1511
+ **/
1512
+ count<T extends ApplicationPaymentCountArgs>(args?: Prisma.Subset<T, ApplicationPaymentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], ApplicationPaymentCountAggregateOutputType> : number>;
1513
+ /**
1514
+ * Allows you to perform aggregations operations on a ApplicationPayment.
1515
+ * Note, that providing `undefined` is treated as the value not being there.
1516
+ * Read more here: https://pris.ly/d/null-undefined
1517
+ * @param {ApplicationPaymentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1518
+ * @example
1519
+ * // Ordered by age ascending
1520
+ * // Where email contains prisma.io
1521
+ * // Limited to the 10 users
1522
+ * const aggregations = await prisma.user.aggregate({
1523
+ * _avg: {
1524
+ * age: true,
1525
+ * },
1526
+ * where: {
1527
+ * email: {
1528
+ * contains: "prisma.io",
1529
+ * },
1530
+ * },
1531
+ * orderBy: {
1532
+ * age: "asc",
1533
+ * },
1534
+ * take: 10,
1535
+ * })
1536
+ **/
1537
+ aggregate<T extends ApplicationPaymentAggregateArgs>(args: Prisma.Subset<T, ApplicationPaymentAggregateArgs>): Prisma.PrismaPromise<GetApplicationPaymentAggregateType<T>>;
1538
+ /**
1539
+ * Group by ApplicationPayment.
1540
+ * Note, that providing `undefined` is treated as the value not being there.
1541
+ * Read more here: https://pris.ly/d/null-undefined
1542
+ * @param {ApplicationPaymentGroupByArgs} args - Group by arguments.
1543
+ * @example
1544
+ * // Group by city, order by createdAt, get count
1545
+ * const result = await prisma.user.groupBy({
1546
+ * by: ['city', 'createdAt'],
1547
+ * orderBy: {
1548
+ * createdAt: true
1549
+ * },
1550
+ * _count: {
1551
+ * _all: true
1552
+ * },
1553
+ * })
1554
+ *
1555
+ **/
1556
+ groupBy<T extends ApplicationPaymentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1557
+ orderBy: ApplicationPaymentGroupByArgs['orderBy'];
1558
+ } : {
1559
+ orderBy?: ApplicationPaymentGroupByArgs['orderBy'];
1560
+ }, 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 ? {
1561
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1562
+ Error,
1563
+ 'Field ',
1564
+ P,
1565
+ ` in "having" needs to be provided in "by"`
1566
+ ];
1567
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1568
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1569
+ }[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 ? {} : {
1570
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1571
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1572
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1573
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, ApplicationPaymentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetApplicationPaymentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1574
+ /**
1575
+ * Fields of the ApplicationPayment model
1576
+ */
1577
+ readonly fields: ApplicationPaymentFieldRefs;
1578
+ }
1579
+ /**
1580
+ * The delegate class that acts as a "Promise-like" for ApplicationPayment.
1581
+ * Why is this prefixed with `Prisma__`?
1582
+ * Because we want to prevent naming conflicts as mentioned in
1583
+ * https://github.com/prisma/prisma-client-js/issues/707
1584
+ */
1585
+ export interface Prisma__ApplicationPaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1586
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1587
+ application<T extends Prisma.ApplicationDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationDefaultArgs<ExtArgs>>): Prisma.Prisma__ApplicationClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1588
+ phase<T extends Prisma.ApplicationPayment$phaseArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPayment$phaseArgs<ExtArgs>>): Prisma.Prisma__ApplicationPhaseClient<runtime.Types.Result.GetResult<Prisma.$ApplicationPhasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1589
+ installment<T extends Prisma.ApplicationPayment$installmentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPayment$installmentArgs<ExtArgs>>): Prisma.Prisma__PaymentInstallmentClient<runtime.Types.Result.GetResult<Prisma.$PaymentInstallmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1590
+ payer<T extends Prisma.ApplicationPayment$payerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ApplicationPayment$payerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1591
+ /**
1592
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1593
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1594
+ * @param onrejected The callback to execute when the Promise is rejected.
1595
+ * @returns A Promise for the completion of which ever callback is executed.
1596
+ */
1597
+ 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>;
1598
+ /**
1599
+ * Attaches a callback for only the rejection of the Promise.
1600
+ * @param onrejected The callback to execute when the Promise is rejected.
1601
+ * @returns A Promise for the completion of the callback.
1602
+ */
1603
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1604
+ /**
1605
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1606
+ * resolved value cannot be modified from the callback.
1607
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1608
+ * @returns A Promise for the completion of the callback.
1609
+ */
1610
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1611
+ }
1612
+ /**
1613
+ * Fields of the ApplicationPayment model
1614
+ */
1615
+ export interface ApplicationPaymentFieldRefs {
1616
+ readonly id: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1617
+ readonly applicationId: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1618
+ readonly phaseId: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1619
+ readonly installmentId: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1620
+ readonly payerId: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1621
+ readonly amount: Prisma.FieldRef<"ApplicationPayment", 'Float'>;
1622
+ readonly principalAmount: Prisma.FieldRef<"ApplicationPayment", 'Float'>;
1623
+ readonly interestAmount: Prisma.FieldRef<"ApplicationPayment", 'Float'>;
1624
+ readonly lateFeeAmount: Prisma.FieldRef<"ApplicationPayment", 'Float'>;
1625
+ readonly paymentMethod: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1626
+ readonly status: Prisma.FieldRef<"ApplicationPayment", 'PaymentStatus'>;
1627
+ readonly reference: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1628
+ readonly gatewayResponse: Prisma.FieldRef<"ApplicationPayment", 'String'>;
1629
+ readonly processedAt: Prisma.FieldRef<"ApplicationPayment", 'DateTime'>;
1630
+ readonly createdAt: Prisma.FieldRef<"ApplicationPayment", 'DateTime'>;
1631
+ readonly updatedAt: Prisma.FieldRef<"ApplicationPayment", 'DateTime'>;
1632
+ }
1633
+ /**
1634
+ * ApplicationPayment findUnique
1635
+ */
1636
+ export type ApplicationPaymentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1637
+ /**
1638
+ * Select specific fields to fetch from the ApplicationPayment
1639
+ */
1640
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1641
+ /**
1642
+ * Omit specific fields from the ApplicationPayment
1643
+ */
1644
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1645
+ /**
1646
+ * Choose, which related nodes to fetch as well
1647
+ */
1648
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1649
+ /**
1650
+ * Filter, which ApplicationPayment to fetch.
1651
+ */
1652
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
1653
+ };
1654
+ /**
1655
+ * ApplicationPayment findUniqueOrThrow
1656
+ */
1657
+ export type ApplicationPaymentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1658
+ /**
1659
+ * Select specific fields to fetch from the ApplicationPayment
1660
+ */
1661
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1662
+ /**
1663
+ * Omit specific fields from the ApplicationPayment
1664
+ */
1665
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1666
+ /**
1667
+ * Choose, which related nodes to fetch as well
1668
+ */
1669
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1670
+ /**
1671
+ * Filter, which ApplicationPayment to fetch.
1672
+ */
1673
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
1674
+ };
1675
+ /**
1676
+ * ApplicationPayment findFirst
1677
+ */
1678
+ export type ApplicationPaymentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1679
+ /**
1680
+ * Select specific fields to fetch from the ApplicationPayment
1681
+ */
1682
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1683
+ /**
1684
+ * Omit specific fields from the ApplicationPayment
1685
+ */
1686
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1687
+ /**
1688
+ * Choose, which related nodes to fetch as well
1689
+ */
1690
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1691
+ /**
1692
+ * Filter, which ApplicationPayment to fetch.
1693
+ */
1694
+ where?: Prisma.ApplicationPaymentWhereInput;
1695
+ /**
1696
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1697
+ *
1698
+ * Determine the order of ApplicationPayments to fetch.
1699
+ */
1700
+ orderBy?: Prisma.ApplicationPaymentOrderByWithRelationInput | Prisma.ApplicationPaymentOrderByWithRelationInput[];
1701
+ /**
1702
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1703
+ *
1704
+ * Sets the position for searching for ApplicationPayments.
1705
+ */
1706
+ cursor?: Prisma.ApplicationPaymentWhereUniqueInput;
1707
+ /**
1708
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1709
+ *
1710
+ * Take `±n` ApplicationPayments from the position of the cursor.
1711
+ */
1712
+ take?: number;
1713
+ /**
1714
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1715
+ *
1716
+ * Skip the first `n` ApplicationPayments.
1717
+ */
1718
+ skip?: number;
1719
+ /**
1720
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1721
+ *
1722
+ * Filter by unique combinations of ApplicationPayments.
1723
+ */
1724
+ distinct?: Prisma.ApplicationPaymentScalarFieldEnum | Prisma.ApplicationPaymentScalarFieldEnum[];
1725
+ };
1726
+ /**
1727
+ * ApplicationPayment findFirstOrThrow
1728
+ */
1729
+ export type ApplicationPaymentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1730
+ /**
1731
+ * Select specific fields to fetch from the ApplicationPayment
1732
+ */
1733
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1734
+ /**
1735
+ * Omit specific fields from the ApplicationPayment
1736
+ */
1737
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1738
+ /**
1739
+ * Choose, which related nodes to fetch as well
1740
+ */
1741
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1742
+ /**
1743
+ * Filter, which ApplicationPayment to fetch.
1744
+ */
1745
+ where?: Prisma.ApplicationPaymentWhereInput;
1746
+ /**
1747
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1748
+ *
1749
+ * Determine the order of ApplicationPayments to fetch.
1750
+ */
1751
+ orderBy?: Prisma.ApplicationPaymentOrderByWithRelationInput | Prisma.ApplicationPaymentOrderByWithRelationInput[];
1752
+ /**
1753
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1754
+ *
1755
+ * Sets the position for searching for ApplicationPayments.
1756
+ */
1757
+ cursor?: Prisma.ApplicationPaymentWhereUniqueInput;
1758
+ /**
1759
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1760
+ *
1761
+ * Take `±n` ApplicationPayments from the position of the cursor.
1762
+ */
1763
+ take?: number;
1764
+ /**
1765
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1766
+ *
1767
+ * Skip the first `n` ApplicationPayments.
1768
+ */
1769
+ skip?: number;
1770
+ /**
1771
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1772
+ *
1773
+ * Filter by unique combinations of ApplicationPayments.
1774
+ */
1775
+ distinct?: Prisma.ApplicationPaymentScalarFieldEnum | Prisma.ApplicationPaymentScalarFieldEnum[];
1776
+ };
1777
+ /**
1778
+ * ApplicationPayment findMany
1779
+ */
1780
+ export type ApplicationPaymentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1781
+ /**
1782
+ * Select specific fields to fetch from the ApplicationPayment
1783
+ */
1784
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1785
+ /**
1786
+ * Omit specific fields from the ApplicationPayment
1787
+ */
1788
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1789
+ /**
1790
+ * Choose, which related nodes to fetch as well
1791
+ */
1792
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1793
+ /**
1794
+ * Filter, which ApplicationPayments to fetch.
1795
+ */
1796
+ where?: Prisma.ApplicationPaymentWhereInput;
1797
+ /**
1798
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1799
+ *
1800
+ * Determine the order of ApplicationPayments to fetch.
1801
+ */
1802
+ orderBy?: Prisma.ApplicationPaymentOrderByWithRelationInput | Prisma.ApplicationPaymentOrderByWithRelationInput[];
1803
+ /**
1804
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1805
+ *
1806
+ * Sets the position for listing ApplicationPayments.
1807
+ */
1808
+ cursor?: Prisma.ApplicationPaymentWhereUniqueInput;
1809
+ /**
1810
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1811
+ *
1812
+ * Take `±n` ApplicationPayments from the position of the cursor.
1813
+ */
1814
+ take?: number;
1815
+ /**
1816
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1817
+ *
1818
+ * Skip the first `n` ApplicationPayments.
1819
+ */
1820
+ skip?: number;
1821
+ distinct?: Prisma.ApplicationPaymentScalarFieldEnum | Prisma.ApplicationPaymentScalarFieldEnum[];
1822
+ };
1823
+ /**
1824
+ * ApplicationPayment create
1825
+ */
1826
+ export type ApplicationPaymentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1827
+ /**
1828
+ * Select specific fields to fetch from the ApplicationPayment
1829
+ */
1830
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1831
+ /**
1832
+ * Omit specific fields from the ApplicationPayment
1833
+ */
1834
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1835
+ /**
1836
+ * Choose, which related nodes to fetch as well
1837
+ */
1838
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1839
+ /**
1840
+ * The data needed to create a ApplicationPayment.
1841
+ */
1842
+ data: Prisma.XOR<Prisma.ApplicationPaymentCreateInput, Prisma.ApplicationPaymentUncheckedCreateInput>;
1843
+ };
1844
+ /**
1845
+ * ApplicationPayment createMany
1846
+ */
1847
+ export type ApplicationPaymentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1848
+ /**
1849
+ * The data used to create many ApplicationPayments.
1850
+ */
1851
+ data: Prisma.ApplicationPaymentCreateManyInput | Prisma.ApplicationPaymentCreateManyInput[];
1852
+ skipDuplicates?: boolean;
1853
+ };
1854
+ /**
1855
+ * ApplicationPayment update
1856
+ */
1857
+ export type ApplicationPaymentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1858
+ /**
1859
+ * Select specific fields to fetch from the ApplicationPayment
1860
+ */
1861
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1862
+ /**
1863
+ * Omit specific fields from the ApplicationPayment
1864
+ */
1865
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1866
+ /**
1867
+ * Choose, which related nodes to fetch as well
1868
+ */
1869
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1870
+ /**
1871
+ * The data needed to update a ApplicationPayment.
1872
+ */
1873
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateInput, Prisma.ApplicationPaymentUncheckedUpdateInput>;
1874
+ /**
1875
+ * Choose, which ApplicationPayment to update.
1876
+ */
1877
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
1878
+ };
1879
+ /**
1880
+ * ApplicationPayment updateMany
1881
+ */
1882
+ export type ApplicationPaymentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1883
+ /**
1884
+ * The data used to update ApplicationPayments.
1885
+ */
1886
+ data: Prisma.XOR<Prisma.ApplicationPaymentUpdateManyMutationInput, Prisma.ApplicationPaymentUncheckedUpdateManyInput>;
1887
+ /**
1888
+ * Filter which ApplicationPayments to update
1889
+ */
1890
+ where?: Prisma.ApplicationPaymentWhereInput;
1891
+ /**
1892
+ * Limit how many ApplicationPayments to update.
1893
+ */
1894
+ limit?: number;
1895
+ };
1896
+ /**
1897
+ * ApplicationPayment upsert
1898
+ */
1899
+ export type ApplicationPaymentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1900
+ /**
1901
+ * Select specific fields to fetch from the ApplicationPayment
1902
+ */
1903
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1904
+ /**
1905
+ * Omit specific fields from the ApplicationPayment
1906
+ */
1907
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1908
+ /**
1909
+ * Choose, which related nodes to fetch as well
1910
+ */
1911
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1912
+ /**
1913
+ * The filter to search for the ApplicationPayment to update in case it exists.
1914
+ */
1915
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
1916
+ /**
1917
+ * In case the ApplicationPayment found by the `where` argument doesn't exist, create a new ApplicationPayment with this data.
1918
+ */
1919
+ create: Prisma.XOR<Prisma.ApplicationPaymentCreateInput, Prisma.ApplicationPaymentUncheckedCreateInput>;
1920
+ /**
1921
+ * In case the ApplicationPayment was found with the provided `where` argument, update it with this data.
1922
+ */
1923
+ update: Prisma.XOR<Prisma.ApplicationPaymentUpdateInput, Prisma.ApplicationPaymentUncheckedUpdateInput>;
1924
+ };
1925
+ /**
1926
+ * ApplicationPayment delete
1927
+ */
1928
+ export type ApplicationPaymentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1929
+ /**
1930
+ * Select specific fields to fetch from the ApplicationPayment
1931
+ */
1932
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
1933
+ /**
1934
+ * Omit specific fields from the ApplicationPayment
1935
+ */
1936
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
1937
+ /**
1938
+ * Choose, which related nodes to fetch as well
1939
+ */
1940
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
1941
+ /**
1942
+ * Filter which ApplicationPayment to delete.
1943
+ */
1944
+ where: Prisma.ApplicationPaymentWhereUniqueInput;
1945
+ };
1946
+ /**
1947
+ * ApplicationPayment deleteMany
1948
+ */
1949
+ export type ApplicationPaymentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1950
+ /**
1951
+ * Filter which ApplicationPayments to delete
1952
+ */
1953
+ where?: Prisma.ApplicationPaymentWhereInput;
1954
+ /**
1955
+ * Limit how many ApplicationPayments to delete.
1956
+ */
1957
+ limit?: number;
1958
+ };
1959
+ /**
1960
+ * ApplicationPayment.phase
1961
+ */
1962
+ export type ApplicationPayment$phaseArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1963
+ /**
1964
+ * Select specific fields to fetch from the ApplicationPhase
1965
+ */
1966
+ select?: Prisma.ApplicationPhaseSelect<ExtArgs> | null;
1967
+ /**
1968
+ * Omit specific fields from the ApplicationPhase
1969
+ */
1970
+ omit?: Prisma.ApplicationPhaseOmit<ExtArgs> | null;
1971
+ /**
1972
+ * Choose, which related nodes to fetch as well
1973
+ */
1974
+ include?: Prisma.ApplicationPhaseInclude<ExtArgs> | null;
1975
+ where?: Prisma.ApplicationPhaseWhereInput;
1976
+ };
1977
+ /**
1978
+ * ApplicationPayment.installment
1979
+ */
1980
+ export type ApplicationPayment$installmentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1981
+ /**
1982
+ * Select specific fields to fetch from the PaymentInstallment
1983
+ */
1984
+ select?: Prisma.PaymentInstallmentSelect<ExtArgs> | null;
1985
+ /**
1986
+ * Omit specific fields from the PaymentInstallment
1987
+ */
1988
+ omit?: Prisma.PaymentInstallmentOmit<ExtArgs> | null;
1989
+ /**
1990
+ * Choose, which related nodes to fetch as well
1991
+ */
1992
+ include?: Prisma.PaymentInstallmentInclude<ExtArgs> | null;
1993
+ where?: Prisma.PaymentInstallmentWhereInput;
1994
+ };
1995
+ /**
1996
+ * ApplicationPayment.payer
1997
+ */
1998
+ export type ApplicationPayment$payerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1999
+ /**
2000
+ * Select specific fields to fetch from the User
2001
+ */
2002
+ select?: Prisma.UserSelect<ExtArgs> | null;
2003
+ /**
2004
+ * Omit specific fields from the User
2005
+ */
2006
+ omit?: Prisma.UserOmit<ExtArgs> | null;
2007
+ /**
2008
+ * Choose, which related nodes to fetch as well
2009
+ */
2010
+ include?: Prisma.UserInclude<ExtArgs> | null;
2011
+ where?: Prisma.UserWhereInput;
2012
+ };
2013
+ /**
2014
+ * ApplicationPayment without action
2015
+ */
2016
+ export type ApplicationPaymentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2017
+ /**
2018
+ * Select specific fields to fetch from the ApplicationPayment
2019
+ */
2020
+ select?: Prisma.ApplicationPaymentSelect<ExtArgs> | null;
2021
+ /**
2022
+ * Omit specific fields from the ApplicationPayment
2023
+ */
2024
+ omit?: Prisma.ApplicationPaymentOmit<ExtArgs> | null;
2025
+ /**
2026
+ * Choose, which related nodes to fetch as well
2027
+ */
2028
+ include?: Prisma.ApplicationPaymentInclude<ExtArgs> | null;
2029
+ };
2030
+ export {};