@windrun-huaiin/backend-core 27.0.0 → 28.0.0

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 (127) hide show
  1. package/dist/app/api/ai/route.d.ts +2 -0
  2. package/dist/app/api/ai/route.d.ts.map +1 -0
  3. package/dist/app/api/ai/route.js +10 -0
  4. package/dist/app/api/ai/route.mjs +1 -0
  5. package/dist/app/api/stripe/checkout/route.js +1 -1
  6. package/dist/app/api/stripe/checkout/route.mjs +1 -1
  7. package/dist/app/api/stripe/customer-portal/route.js +1 -1
  8. package/dist/app/api/stripe/customer-portal/route.mjs +1 -1
  9. package/dist/app/api/webhook/clerk/user/route.js +1 -1
  10. package/dist/app/api/webhook/clerk/user/route.mjs +1 -1
  11. package/dist/auth/auth-utils.js +1 -1
  12. package/dist/auth/auth-utils.mjs +1 -1
  13. package/dist/core-prisma/browser.d.ts +40 -0
  14. package/dist/core-prisma/browser.d.ts.map +1 -0
  15. package/dist/core-prisma/client.d.ts +57 -0
  16. package/dist/core-prisma/client.d.ts.map +1 -0
  17. package/dist/core-prisma/client.js +55 -0
  18. package/dist/core-prisma/client.mjs +33 -0
  19. package/dist/core-prisma/commonInputTypes.d.ts +495 -0
  20. package/dist/core-prisma/commonInputTypes.d.ts.map +1 -0
  21. package/dist/core-prisma/enums.d.ts +2 -0
  22. package/dist/core-prisma/enums.d.ts.map +1 -0
  23. package/dist/core-prisma/internal/class.d.ts +193 -0
  24. package/dist/core-prisma/internal/class.d.ts.map +1 -0
  25. package/dist/core-prisma/internal/class.js +108 -0
  26. package/dist/core-prisma/internal/class.mjs +87 -0
  27. package/dist/core-prisma/internal/prismaNamespace.d.ts +1180 -0
  28. package/dist/core-prisma/internal/prismaNamespace.d.ts.map +1 -0
  29. package/dist/core-prisma/internal/prismaNamespace.js +278 -0
  30. package/dist/core-prisma/internal/prismaNamespace.mjs +226 -0
  31. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts +233 -0
  32. package/dist/core-prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  33. package/dist/core-prisma/models/Apilog.d.ts +1088 -0
  34. package/dist/core-prisma/models/Apilog.d.ts.map +1 -0
  35. package/dist/core-prisma/models/Credit.d.ts +1554 -0
  36. package/dist/core-prisma/models/Credit.d.ts.map +1 -0
  37. package/dist/core-prisma/models/CreditAuditLog.d.ts +1362 -0
  38. package/dist/core-prisma/models/CreditAuditLog.d.ts.map +1 -0
  39. package/dist/core-prisma/models/Subscription.d.ts +1441 -0
  40. package/dist/core-prisma/models/Subscription.d.ts.map +1 -0
  41. package/dist/core-prisma/models/Transaction.d.ts +2222 -0
  42. package/dist/core-prisma/models/Transaction.d.ts.map +1 -0
  43. package/dist/core-prisma/models/User.d.ts +1775 -0
  44. package/dist/core-prisma/models/User.d.ts.map +1 -0
  45. package/dist/core-prisma/models/UserBackup.d.ts +1228 -0
  46. package/dist/core-prisma/models/UserBackup.d.ts.map +1 -0
  47. package/dist/core-prisma/models.d.ts +9 -0
  48. package/dist/core-prisma/models.d.ts.map +1 -0
  49. package/dist/index.js +7 -0
  50. package/dist/index.mjs +5 -2
  51. package/dist/lib/money-price-helper.d.ts.map +1 -1
  52. package/dist/lib/money-price-helper.js +1 -0
  53. package/dist/lib/money-price-helper.mjs +2 -1
  54. package/dist/lib/stripe-config.js +1 -1
  55. package/dist/lib/stripe-config.mjs +1 -1
  56. package/dist/prisma/index.d.ts +4 -1
  57. package/dist/prisma/index.d.ts.map +1 -1
  58. package/dist/prisma/index.js +6 -0
  59. package/dist/prisma/index.mjs +4 -1
  60. package/dist/prisma/prisma-transaction-util.d.ts +1 -1
  61. package/dist/prisma/prisma-transaction-util.d.ts.map +1 -1
  62. package/dist/prisma/prisma-transaction-util.js +1 -1
  63. package/dist/prisma/prisma-transaction-util.mjs +2 -2
  64. package/dist/prisma/prisma.d.ts +22 -3
  65. package/dist/prisma/prisma.d.ts.map +1 -1
  66. package/dist/prisma/prisma.js +83 -20
  67. package/dist/prisma/prisma.mjs +81 -21
  68. package/dist/services/aggregate/anonymous.aggregate.service.js +3 -2
  69. package/dist/services/aggregate/anonymous.aggregate.service.mjs +3 -2
  70. package/dist/services/aggregate/billing.aggregate.service.js +1 -1
  71. package/dist/services/aggregate/billing.aggregate.service.mjs +1 -1
  72. package/dist/services/aggregate/user.aggregate.service.d.ts.map +1 -1
  73. package/dist/services/aggregate/user.aggregate.service.js +3 -3
  74. package/dist/services/aggregate/user.aggregate.service.mjs +3 -3
  75. package/dist/services/context/index.js +1 -0
  76. package/dist/services/context/index.mjs +1 -1
  77. package/dist/services/context/user-context-finalizer.d.ts +1 -0
  78. package/dist/services/context/user-context-finalizer.d.ts.map +1 -1
  79. package/dist/services/context/user-context-finalizer.js +17 -0
  80. package/dist/services/context/user-context-finalizer.mjs +17 -1
  81. package/dist/services/context/user-context-service.js +1 -1
  82. package/dist/services/context/user-context-service.mjs +1 -1
  83. package/dist/services/database/apilog.service.js +1 -0
  84. package/dist/services/database/apilog.service.mjs +1 -0
  85. package/dist/services/database/credit.service.js +5 -4
  86. package/dist/services/database/credit.service.mjs +3 -2
  87. package/dist/services/database/creditAuditLog.service.js +5 -4
  88. package/dist/services/database/creditAuditLog.service.mjs +3 -2
  89. package/dist/services/database/prisma-model-type.d.ts +2 -2
  90. package/dist/services/database/prisma-model-type.d.ts.map +1 -1
  91. package/dist/services/database/subscription.service.js +1 -0
  92. package/dist/services/database/subscription.service.mjs +1 -0
  93. package/dist/services/database/transaction.service.js +5 -4
  94. package/dist/services/database/transaction.service.mjs +3 -2
  95. package/dist/services/database/user.service.js +1 -0
  96. package/dist/services/database/user.service.mjs +1 -0
  97. package/dist/services/database/userBackup.service.js +1 -0
  98. package/dist/services/database/userBackup.service.mjs +1 -0
  99. package/dist/services/stripe/webhook-handler.js +1 -1
  100. package/dist/services/stripe/webhook-handler.mjs +1 -1
  101. package/package.json +15 -8
  102. package/prisma/schema.prisma +3 -1
  103. package/src/app/api/ai/route.ts +6 -0
  104. package/src/core-prisma/browser.ts +54 -0
  105. package/src/core-prisma/client.ts +78 -0
  106. package/src/core-prisma/commonInputTypes.ts +565 -0
  107. package/src/core-prisma/enums.ts +15 -0
  108. package/src/core-prisma/internal/class.ts +293 -0
  109. package/src/core-prisma/internal/prismaNamespace.ts +1419 -0
  110. package/src/core-prisma/internal/prismaNamespaceBrowser.ts +259 -0
  111. package/src/core-prisma/models/Apilog.ts +1244 -0
  112. package/src/core-prisma/models/Credit.ts +1722 -0
  113. package/src/core-prisma/models/CreditAuditLog.ts +1536 -0
  114. package/src/core-prisma/models/Subscription.ts +1610 -0
  115. package/src/core-prisma/models/Transaction.ts +2398 -0
  116. package/src/core-prisma/models/User.ts +1982 -0
  117. package/src/core-prisma/models/UserBackup.ts +1384 -0
  118. package/src/core-prisma/models.ts +18 -0
  119. package/src/lib/money-price-helper.ts +3 -0
  120. package/src/prisma/index.ts +18 -1
  121. package/src/prisma/prisma-transaction-util.ts +3 -3
  122. package/src/prisma/prisma.ts +130 -21
  123. package/src/services/aggregate/user.aggregate.service.ts +2 -1
  124. package/src/services/context/user-context-finalizer.ts +16 -0
  125. package/src/services/database/credit.service.ts +2 -2
  126. package/src/services/database/prisma-model-type.ts +2 -2
  127. package/src/services/database/userBackup.service.ts +2 -2
@@ -0,0 +1,2398 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Transaction` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums"
13
+ import type * as Prisma from "../internal/prismaNamespace"
14
+
15
+ /**
16
+ * Model Transaction
17
+ *
18
+ */
19
+ export type TransactionModel = runtime.Types.Result.DefaultSelection<Prisma.$TransactionPayload>
20
+
21
+ export type AggregateTransaction = {
22
+ _count: TransactionCountAggregateOutputType | null
23
+ _avg: TransactionAvgAggregateOutputType | null
24
+ _sum: TransactionSumAggregateOutputType | null
25
+ _min: TransactionMinAggregateOutputType | null
26
+ _max: TransactionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type TransactionAvgAggregateOutputType = {
30
+ id: number | null
31
+ amount: runtime.Decimal | null
32
+ creditsGranted: number | null
33
+ deleted: number | null
34
+ }
35
+
36
+ export type TransactionSumAggregateOutputType = {
37
+ id: bigint | null
38
+ amount: runtime.Decimal | null
39
+ creditsGranted: number | null
40
+ deleted: number | null
41
+ }
42
+
43
+ export type TransactionMinAggregateOutputType = {
44
+ id: bigint | null
45
+ userId: string | null
46
+ orderId: string | null
47
+ orderStatus: string | null
48
+ orderCreatedAt: Date | null
49
+ orderExpiredAt: Date | null
50
+ orderUpdatedAt: Date | null
51
+ type: string | null
52
+ paySupplier: string | null
53
+ paySessionId: string | null
54
+ payTransactionId: string | null
55
+ paySubscriptionId: string | null
56
+ subPeriodStart: Date | null
57
+ subPeriodEnd: Date | null
58
+ subLastTryCancelAt: Date | null
59
+ subPeriodCanceledAt: Date | null
60
+ subCancellationDetail: string | null
61
+ priceId: string | null
62
+ priceName: string | null
63
+ amount: runtime.Decimal | null
64
+ currency: string | null
65
+ creditsGranted: number | null
66
+ payInvoiceId: string | null
67
+ paymentStatus: string | null
68
+ billingReason: string | null
69
+ hostedInvoiceUrl: string | null
70
+ invoicePdf: string | null
71
+ orderDetail: string | null
72
+ paidEmail: string | null
73
+ paidAt: Date | null
74
+ paidDetail: string | null
75
+ payUpdatedAt: Date | null
76
+ deleted: number | null
77
+ }
78
+
79
+ export type TransactionMaxAggregateOutputType = {
80
+ id: bigint | null
81
+ userId: string | null
82
+ orderId: string | null
83
+ orderStatus: string | null
84
+ orderCreatedAt: Date | null
85
+ orderExpiredAt: Date | null
86
+ orderUpdatedAt: Date | null
87
+ type: string | null
88
+ paySupplier: string | null
89
+ paySessionId: string | null
90
+ payTransactionId: string | null
91
+ paySubscriptionId: string | null
92
+ subPeriodStart: Date | null
93
+ subPeriodEnd: Date | null
94
+ subLastTryCancelAt: Date | null
95
+ subPeriodCanceledAt: Date | null
96
+ subCancellationDetail: string | null
97
+ priceId: string | null
98
+ priceName: string | null
99
+ amount: runtime.Decimal | null
100
+ currency: string | null
101
+ creditsGranted: number | null
102
+ payInvoiceId: string | null
103
+ paymentStatus: string | null
104
+ billingReason: string | null
105
+ hostedInvoiceUrl: string | null
106
+ invoicePdf: string | null
107
+ orderDetail: string | null
108
+ paidEmail: string | null
109
+ paidAt: Date | null
110
+ paidDetail: string | null
111
+ payUpdatedAt: Date | null
112
+ deleted: number | null
113
+ }
114
+
115
+ export type TransactionCountAggregateOutputType = {
116
+ id: number
117
+ userId: number
118
+ orderId: number
119
+ orderStatus: number
120
+ orderCreatedAt: number
121
+ orderExpiredAt: number
122
+ orderUpdatedAt: number
123
+ type: number
124
+ paySupplier: number
125
+ paySessionId: number
126
+ payTransactionId: number
127
+ paySubscriptionId: number
128
+ subPeriodStart: number
129
+ subPeriodEnd: number
130
+ subLastTryCancelAt: number
131
+ subPeriodCanceledAt: number
132
+ subCancellationDetail: number
133
+ priceId: number
134
+ priceName: number
135
+ amount: number
136
+ currency: number
137
+ creditsGranted: number
138
+ payInvoiceId: number
139
+ paymentStatus: number
140
+ billingReason: number
141
+ hostedInvoiceUrl: number
142
+ invoicePdf: number
143
+ orderDetail: number
144
+ paidEmail: number
145
+ paidAt: number
146
+ paidDetail: number
147
+ payUpdatedAt: number
148
+ deleted: number
149
+ _all: number
150
+ }
151
+
152
+
153
+ export type TransactionAvgAggregateInputType = {
154
+ id?: true
155
+ amount?: true
156
+ creditsGranted?: true
157
+ deleted?: true
158
+ }
159
+
160
+ export type TransactionSumAggregateInputType = {
161
+ id?: true
162
+ amount?: true
163
+ creditsGranted?: true
164
+ deleted?: true
165
+ }
166
+
167
+ export type TransactionMinAggregateInputType = {
168
+ id?: true
169
+ userId?: true
170
+ orderId?: true
171
+ orderStatus?: true
172
+ orderCreatedAt?: true
173
+ orderExpiredAt?: true
174
+ orderUpdatedAt?: true
175
+ type?: true
176
+ paySupplier?: true
177
+ paySessionId?: true
178
+ payTransactionId?: true
179
+ paySubscriptionId?: true
180
+ subPeriodStart?: true
181
+ subPeriodEnd?: true
182
+ subLastTryCancelAt?: true
183
+ subPeriodCanceledAt?: true
184
+ subCancellationDetail?: true
185
+ priceId?: true
186
+ priceName?: true
187
+ amount?: true
188
+ currency?: true
189
+ creditsGranted?: true
190
+ payInvoiceId?: true
191
+ paymentStatus?: true
192
+ billingReason?: true
193
+ hostedInvoiceUrl?: true
194
+ invoicePdf?: true
195
+ orderDetail?: true
196
+ paidEmail?: true
197
+ paidAt?: true
198
+ paidDetail?: true
199
+ payUpdatedAt?: true
200
+ deleted?: true
201
+ }
202
+
203
+ export type TransactionMaxAggregateInputType = {
204
+ id?: true
205
+ userId?: true
206
+ orderId?: true
207
+ orderStatus?: true
208
+ orderCreatedAt?: true
209
+ orderExpiredAt?: true
210
+ orderUpdatedAt?: true
211
+ type?: true
212
+ paySupplier?: true
213
+ paySessionId?: true
214
+ payTransactionId?: true
215
+ paySubscriptionId?: true
216
+ subPeriodStart?: true
217
+ subPeriodEnd?: true
218
+ subLastTryCancelAt?: true
219
+ subPeriodCanceledAt?: true
220
+ subCancellationDetail?: true
221
+ priceId?: true
222
+ priceName?: true
223
+ amount?: true
224
+ currency?: true
225
+ creditsGranted?: true
226
+ payInvoiceId?: true
227
+ paymentStatus?: true
228
+ billingReason?: true
229
+ hostedInvoiceUrl?: true
230
+ invoicePdf?: true
231
+ orderDetail?: true
232
+ paidEmail?: true
233
+ paidAt?: true
234
+ paidDetail?: true
235
+ payUpdatedAt?: true
236
+ deleted?: true
237
+ }
238
+
239
+ export type TransactionCountAggregateInputType = {
240
+ id?: true
241
+ userId?: true
242
+ orderId?: true
243
+ orderStatus?: true
244
+ orderCreatedAt?: true
245
+ orderExpiredAt?: true
246
+ orderUpdatedAt?: true
247
+ type?: true
248
+ paySupplier?: true
249
+ paySessionId?: true
250
+ payTransactionId?: true
251
+ paySubscriptionId?: true
252
+ subPeriodStart?: true
253
+ subPeriodEnd?: true
254
+ subLastTryCancelAt?: true
255
+ subPeriodCanceledAt?: true
256
+ subCancellationDetail?: true
257
+ priceId?: true
258
+ priceName?: true
259
+ amount?: true
260
+ currency?: true
261
+ creditsGranted?: true
262
+ payInvoiceId?: true
263
+ paymentStatus?: true
264
+ billingReason?: true
265
+ hostedInvoiceUrl?: true
266
+ invoicePdf?: true
267
+ orderDetail?: true
268
+ paidEmail?: true
269
+ paidAt?: true
270
+ paidDetail?: true
271
+ payUpdatedAt?: true
272
+ deleted?: true
273
+ _all?: true
274
+ }
275
+
276
+ export type TransactionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
277
+ /**
278
+ * Filter which Transaction to aggregate.
279
+ */
280
+ where?: Prisma.TransactionWhereInput
281
+ /**
282
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
283
+ *
284
+ * Determine the order of Transactions to fetch.
285
+ */
286
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[]
287
+ /**
288
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
289
+ *
290
+ * Sets the start position
291
+ */
292
+ cursor?: Prisma.TransactionWhereUniqueInput
293
+ /**
294
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
295
+ *
296
+ * Take `±n` Transactions from the position of the cursor.
297
+ */
298
+ take?: number
299
+ /**
300
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
301
+ *
302
+ * Skip the first `n` Transactions.
303
+ */
304
+ skip?: number
305
+ /**
306
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
307
+ *
308
+ * Count returned Transactions
309
+ **/
310
+ _count?: true | TransactionCountAggregateInputType
311
+ /**
312
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
313
+ *
314
+ * Select which fields to average
315
+ **/
316
+ _avg?: TransactionAvgAggregateInputType
317
+ /**
318
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
319
+ *
320
+ * Select which fields to sum
321
+ **/
322
+ _sum?: TransactionSumAggregateInputType
323
+ /**
324
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
325
+ *
326
+ * Select which fields to find the minimum value
327
+ **/
328
+ _min?: TransactionMinAggregateInputType
329
+ /**
330
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
331
+ *
332
+ * Select which fields to find the maximum value
333
+ **/
334
+ _max?: TransactionMaxAggregateInputType
335
+ }
336
+
337
+ export type GetTransactionAggregateType<T extends TransactionAggregateArgs> = {
338
+ [P in keyof T & keyof AggregateTransaction]: P extends '_count' | 'count'
339
+ ? T[P] extends true
340
+ ? number
341
+ : Prisma.GetScalarType<T[P], AggregateTransaction[P]>
342
+ : Prisma.GetScalarType<T[P], AggregateTransaction[P]>
343
+ }
344
+
345
+
346
+
347
+
348
+ export type TransactionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
349
+ where?: Prisma.TransactionWhereInput
350
+ orderBy?: Prisma.TransactionOrderByWithAggregationInput | Prisma.TransactionOrderByWithAggregationInput[]
351
+ by: Prisma.TransactionScalarFieldEnum[] | Prisma.TransactionScalarFieldEnum
352
+ having?: Prisma.TransactionScalarWhereWithAggregatesInput
353
+ take?: number
354
+ skip?: number
355
+ _count?: TransactionCountAggregateInputType | true
356
+ _avg?: TransactionAvgAggregateInputType
357
+ _sum?: TransactionSumAggregateInputType
358
+ _min?: TransactionMinAggregateInputType
359
+ _max?: TransactionMaxAggregateInputType
360
+ }
361
+
362
+ export type TransactionGroupByOutputType = {
363
+ id: bigint
364
+ userId: string
365
+ orderId: string
366
+ orderStatus: string
367
+ orderCreatedAt: Date | null
368
+ orderExpiredAt: Date | null
369
+ orderUpdatedAt: Date | null
370
+ type: string | null
371
+ paySupplier: string | null
372
+ paySessionId: string | null
373
+ payTransactionId: string | null
374
+ paySubscriptionId: string | null
375
+ subPeriodStart: Date | null
376
+ subPeriodEnd: Date | null
377
+ subLastTryCancelAt: Date | null
378
+ subPeriodCanceledAt: Date | null
379
+ subCancellationDetail: string | null
380
+ priceId: string | null
381
+ priceName: string | null
382
+ amount: runtime.Decimal | null
383
+ currency: string | null
384
+ creditsGranted: number | null
385
+ payInvoiceId: string | null
386
+ paymentStatus: string
387
+ billingReason: string | null
388
+ hostedInvoiceUrl: string | null
389
+ invoicePdf: string | null
390
+ orderDetail: string | null
391
+ paidEmail: string | null
392
+ paidAt: Date | null
393
+ paidDetail: string | null
394
+ payUpdatedAt: Date | null
395
+ deleted: number
396
+ _count: TransactionCountAggregateOutputType | null
397
+ _avg: TransactionAvgAggregateOutputType | null
398
+ _sum: TransactionSumAggregateOutputType | null
399
+ _min: TransactionMinAggregateOutputType | null
400
+ _max: TransactionMaxAggregateOutputType | null
401
+ }
402
+
403
+ type GetTransactionGroupByPayload<T extends TransactionGroupByArgs> = Prisma.PrismaPromise<
404
+ Array<
405
+ Prisma.PickEnumerable<TransactionGroupByOutputType, T['by']> &
406
+ {
407
+ [P in ((keyof T) & (keyof TransactionGroupByOutputType))]: P extends '_count'
408
+ ? T[P] extends boolean
409
+ ? number
410
+ : Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]>
411
+ : Prisma.GetScalarType<T[P], TransactionGroupByOutputType[P]>
412
+ }
413
+ >
414
+ >
415
+
416
+
417
+
418
+ export type TransactionWhereInput = {
419
+ AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
420
+ OR?: Prisma.TransactionWhereInput[]
421
+ NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
422
+ id?: Prisma.BigIntFilter<"Transaction"> | bigint | number
423
+ userId?: Prisma.UuidFilter<"Transaction"> | string
424
+ orderId?: Prisma.StringFilter<"Transaction"> | string
425
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string
426
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
427
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
428
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
429
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null
430
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null
431
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
432
+ payTransactionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
433
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
434
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
435
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
436
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
437
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
438
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
439
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
440
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null
441
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
442
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null
443
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null
444
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
445
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string
446
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null
447
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null
448
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null
449
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
450
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null
451
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
452
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
453
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
454
+ deleted?: Prisma.IntFilter<"Transaction"> | number
455
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
456
+ }
457
+
458
+ export type TransactionOrderByWithRelationInput = {
459
+ id?: Prisma.SortOrder
460
+ userId?: Prisma.SortOrder
461
+ orderId?: Prisma.SortOrder
462
+ orderStatus?: Prisma.SortOrder
463
+ orderCreatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
464
+ orderExpiredAt?: Prisma.SortOrderInput | Prisma.SortOrder
465
+ orderUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
466
+ type?: Prisma.SortOrderInput | Prisma.SortOrder
467
+ paySupplier?: Prisma.SortOrderInput | Prisma.SortOrder
468
+ paySessionId?: Prisma.SortOrderInput | Prisma.SortOrder
469
+ payTransactionId?: Prisma.SortOrderInput | Prisma.SortOrder
470
+ paySubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
471
+ subPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder
472
+ subPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder
473
+ subLastTryCancelAt?: Prisma.SortOrderInput | Prisma.SortOrder
474
+ subPeriodCanceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
475
+ subCancellationDetail?: Prisma.SortOrderInput | Prisma.SortOrder
476
+ priceId?: Prisma.SortOrderInput | Prisma.SortOrder
477
+ priceName?: Prisma.SortOrderInput | Prisma.SortOrder
478
+ amount?: Prisma.SortOrderInput | Prisma.SortOrder
479
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder
480
+ creditsGranted?: Prisma.SortOrderInput | Prisma.SortOrder
481
+ payInvoiceId?: Prisma.SortOrderInput | Prisma.SortOrder
482
+ paymentStatus?: Prisma.SortOrder
483
+ billingReason?: Prisma.SortOrderInput | Prisma.SortOrder
484
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder
485
+ invoicePdf?: Prisma.SortOrderInput | Prisma.SortOrder
486
+ orderDetail?: Prisma.SortOrderInput | Prisma.SortOrder
487
+ paidEmail?: Prisma.SortOrderInput | Prisma.SortOrder
488
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder
489
+ paidDetail?: Prisma.SortOrderInput | Prisma.SortOrder
490
+ payUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
491
+ deleted?: Prisma.SortOrder
492
+ user?: Prisma.UserOrderByWithRelationInput
493
+ }
494
+
495
+ export type TransactionWhereUniqueInput = Prisma.AtLeast<{
496
+ id?: bigint | number
497
+ orderId?: string
498
+ payTransactionId?: string
499
+ AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
500
+ OR?: Prisma.TransactionWhereInput[]
501
+ NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[]
502
+ userId?: Prisma.UuidFilter<"Transaction"> | string
503
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string
504
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
505
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
506
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
507
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null
508
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null
509
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
510
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
511
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
512
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
513
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
514
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
515
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
516
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
517
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null
518
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
519
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null
520
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null
521
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
522
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string
523
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null
524
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null
525
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null
526
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
527
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null
528
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
529
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
530
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
531
+ deleted?: Prisma.IntFilter<"Transaction"> | number
532
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
533
+ }, "id" | "orderId" | "payTransactionId">
534
+
535
+ export type TransactionOrderByWithAggregationInput = {
536
+ id?: Prisma.SortOrder
537
+ userId?: Prisma.SortOrder
538
+ orderId?: Prisma.SortOrder
539
+ orderStatus?: Prisma.SortOrder
540
+ orderCreatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
541
+ orderExpiredAt?: Prisma.SortOrderInput | Prisma.SortOrder
542
+ orderUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
543
+ type?: Prisma.SortOrderInput | Prisma.SortOrder
544
+ paySupplier?: Prisma.SortOrderInput | Prisma.SortOrder
545
+ paySessionId?: Prisma.SortOrderInput | Prisma.SortOrder
546
+ payTransactionId?: Prisma.SortOrderInput | Prisma.SortOrder
547
+ paySubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
548
+ subPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder
549
+ subPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder
550
+ subLastTryCancelAt?: Prisma.SortOrderInput | Prisma.SortOrder
551
+ subPeriodCanceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
552
+ subCancellationDetail?: Prisma.SortOrderInput | Prisma.SortOrder
553
+ priceId?: Prisma.SortOrderInput | Prisma.SortOrder
554
+ priceName?: Prisma.SortOrderInput | Prisma.SortOrder
555
+ amount?: Prisma.SortOrderInput | Prisma.SortOrder
556
+ currency?: Prisma.SortOrderInput | Prisma.SortOrder
557
+ creditsGranted?: Prisma.SortOrderInput | Prisma.SortOrder
558
+ payInvoiceId?: Prisma.SortOrderInput | Prisma.SortOrder
559
+ paymentStatus?: Prisma.SortOrder
560
+ billingReason?: Prisma.SortOrderInput | Prisma.SortOrder
561
+ hostedInvoiceUrl?: Prisma.SortOrderInput | Prisma.SortOrder
562
+ invoicePdf?: Prisma.SortOrderInput | Prisma.SortOrder
563
+ orderDetail?: Prisma.SortOrderInput | Prisma.SortOrder
564
+ paidEmail?: Prisma.SortOrderInput | Prisma.SortOrder
565
+ paidAt?: Prisma.SortOrderInput | Prisma.SortOrder
566
+ paidDetail?: Prisma.SortOrderInput | Prisma.SortOrder
567
+ payUpdatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
568
+ deleted?: Prisma.SortOrder
569
+ _count?: Prisma.TransactionCountOrderByAggregateInput
570
+ _avg?: Prisma.TransactionAvgOrderByAggregateInput
571
+ _max?: Prisma.TransactionMaxOrderByAggregateInput
572
+ _min?: Prisma.TransactionMinOrderByAggregateInput
573
+ _sum?: Prisma.TransactionSumOrderByAggregateInput
574
+ }
575
+
576
+ export type TransactionScalarWhereWithAggregatesInput = {
577
+ AND?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[]
578
+ OR?: Prisma.TransactionScalarWhereWithAggregatesInput[]
579
+ NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[]
580
+ id?: Prisma.BigIntWithAggregatesFilter<"Transaction"> | bigint | number
581
+ userId?: Prisma.UuidWithAggregatesFilter<"Transaction"> | string
582
+ orderId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
583
+ orderStatus?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
584
+ orderCreatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
585
+ orderExpiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
586
+ orderUpdatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
587
+ type?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
588
+ paySupplier?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
589
+ paySessionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
590
+ payTransactionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
591
+ paySubscriptionId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
592
+ subPeriodStart?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
593
+ subPeriodEnd?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
594
+ subLastTryCancelAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
595
+ subPeriodCanceledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
596
+ subCancellationDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
597
+ priceId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
598
+ priceName?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
599
+ amount?: Prisma.DecimalNullableWithAggregatesFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
600
+ currency?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
601
+ creditsGranted?: Prisma.IntNullableWithAggregatesFilter<"Transaction"> | number | null
602
+ payInvoiceId?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
603
+ paymentStatus?: Prisma.StringWithAggregatesFilter<"Transaction"> | string
604
+ billingReason?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
605
+ hostedInvoiceUrl?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
606
+ invoicePdf?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
607
+ orderDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
608
+ paidEmail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
609
+ paidAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
610
+ paidDetail?: Prisma.StringNullableWithAggregatesFilter<"Transaction"> | string | null
611
+ payUpdatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Transaction"> | Date | string | null
612
+ deleted?: Prisma.IntWithAggregatesFilter<"Transaction"> | number
613
+ }
614
+
615
+ export type TransactionCreateInput = {
616
+ id?: bigint | number
617
+ orderId: string
618
+ orderStatus?: string
619
+ orderCreatedAt?: Date | string | null
620
+ orderExpiredAt?: Date | string | null
621
+ orderUpdatedAt?: Date | string | null
622
+ type?: string | null
623
+ paySupplier?: string | null
624
+ paySessionId?: string | null
625
+ payTransactionId?: string | null
626
+ paySubscriptionId?: string | null
627
+ subPeriodStart?: Date | string | null
628
+ subPeriodEnd?: Date | string | null
629
+ subLastTryCancelAt?: Date | string | null
630
+ subPeriodCanceledAt?: Date | string | null
631
+ subCancellationDetail?: string | null
632
+ priceId?: string | null
633
+ priceName?: string | null
634
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
635
+ currency?: string | null
636
+ creditsGranted?: number | null
637
+ payInvoiceId?: string | null
638
+ paymentStatus?: string
639
+ billingReason?: string | null
640
+ hostedInvoiceUrl?: string | null
641
+ invoicePdf?: string | null
642
+ orderDetail?: string | null
643
+ paidEmail?: string | null
644
+ paidAt?: Date | string | null
645
+ paidDetail?: string | null
646
+ payUpdatedAt?: Date | string | null
647
+ deleted?: number
648
+ user: Prisma.UserCreateNestedOneWithoutTransactionsInput
649
+ }
650
+
651
+ export type TransactionUncheckedCreateInput = {
652
+ id?: bigint | number
653
+ userId: string
654
+ orderId: string
655
+ orderStatus?: string
656
+ orderCreatedAt?: Date | string | null
657
+ orderExpiredAt?: Date | string | null
658
+ orderUpdatedAt?: Date | string | null
659
+ type?: string | null
660
+ paySupplier?: string | null
661
+ paySessionId?: string | null
662
+ payTransactionId?: string | null
663
+ paySubscriptionId?: string | null
664
+ subPeriodStart?: Date | string | null
665
+ subPeriodEnd?: Date | string | null
666
+ subLastTryCancelAt?: Date | string | null
667
+ subPeriodCanceledAt?: Date | string | null
668
+ subCancellationDetail?: string | null
669
+ priceId?: string | null
670
+ priceName?: string | null
671
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
672
+ currency?: string | null
673
+ creditsGranted?: number | null
674
+ payInvoiceId?: string | null
675
+ paymentStatus?: string
676
+ billingReason?: string | null
677
+ hostedInvoiceUrl?: string | null
678
+ invoicePdf?: string | null
679
+ orderDetail?: string | null
680
+ paidEmail?: string | null
681
+ paidAt?: Date | string | null
682
+ paidDetail?: string | null
683
+ payUpdatedAt?: Date | string | null
684
+ deleted?: number
685
+ }
686
+
687
+ export type TransactionUpdateInput = {
688
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
689
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
690
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
691
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
692
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
693
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
694
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
695
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
696
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
697
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
698
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
699
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
700
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
701
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
702
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
703
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
704
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
705
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
706
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
707
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
708
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
709
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
710
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
711
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
712
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
713
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
716
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
718
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
719
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
720
+ user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput
721
+ }
722
+
723
+ export type TransactionUncheckedUpdateInput = {
724
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
725
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
726
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
727
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
728
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
729
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
730
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
731
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
732
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
733
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
734
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
735
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
736
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
737
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
738
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
739
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
740
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
741
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
742
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
743
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
744
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
746
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
747
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
748
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
749
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
750
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
751
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
752
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
753
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
754
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
755
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
756
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
757
+ }
758
+
759
+ export type TransactionCreateManyInput = {
760
+ id?: bigint | number
761
+ userId: string
762
+ orderId: string
763
+ orderStatus?: string
764
+ orderCreatedAt?: Date | string | null
765
+ orderExpiredAt?: Date | string | null
766
+ orderUpdatedAt?: Date | string | null
767
+ type?: string | null
768
+ paySupplier?: string | null
769
+ paySessionId?: string | null
770
+ payTransactionId?: string | null
771
+ paySubscriptionId?: string | null
772
+ subPeriodStart?: Date | string | null
773
+ subPeriodEnd?: Date | string | null
774
+ subLastTryCancelAt?: Date | string | null
775
+ subPeriodCanceledAt?: Date | string | null
776
+ subCancellationDetail?: string | null
777
+ priceId?: string | null
778
+ priceName?: string | null
779
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
780
+ currency?: string | null
781
+ creditsGranted?: number | null
782
+ payInvoiceId?: string | null
783
+ paymentStatus?: string
784
+ billingReason?: string | null
785
+ hostedInvoiceUrl?: string | null
786
+ invoicePdf?: string | null
787
+ orderDetail?: string | null
788
+ paidEmail?: string | null
789
+ paidAt?: Date | string | null
790
+ paidDetail?: string | null
791
+ payUpdatedAt?: Date | string | null
792
+ deleted?: number
793
+ }
794
+
795
+ export type TransactionUpdateManyMutationInput = {
796
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
797
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
798
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
799
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
800
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
801
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
802
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
803
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
804
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
805
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
806
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
807
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
808
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
809
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
810
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
811
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
812
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
813
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
814
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
815
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
816
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
817
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
818
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
819
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
820
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
821
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
822
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
823
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
824
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
825
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
826
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
827
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
828
+ }
829
+
830
+ export type TransactionUncheckedUpdateManyInput = {
831
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
832
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
833
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
834
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
835
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
836
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
837
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
838
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
839
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
840
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
841
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
842
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
843
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
844
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
845
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
846
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
847
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
848
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
849
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
850
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
851
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
852
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
853
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
854
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
855
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
856
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
857
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
858
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
859
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
860
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
861
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
862
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
863
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
864
+ }
865
+
866
+ export type TransactionListRelationFilter = {
867
+ every?: Prisma.TransactionWhereInput
868
+ some?: Prisma.TransactionWhereInput
869
+ none?: Prisma.TransactionWhereInput
870
+ }
871
+
872
+ export type TransactionOrderByRelationAggregateInput = {
873
+ _count?: Prisma.SortOrder
874
+ }
875
+
876
+ export type TransactionCountOrderByAggregateInput = {
877
+ id?: Prisma.SortOrder
878
+ userId?: Prisma.SortOrder
879
+ orderId?: Prisma.SortOrder
880
+ orderStatus?: Prisma.SortOrder
881
+ orderCreatedAt?: Prisma.SortOrder
882
+ orderExpiredAt?: Prisma.SortOrder
883
+ orderUpdatedAt?: Prisma.SortOrder
884
+ type?: Prisma.SortOrder
885
+ paySupplier?: Prisma.SortOrder
886
+ paySessionId?: Prisma.SortOrder
887
+ payTransactionId?: Prisma.SortOrder
888
+ paySubscriptionId?: Prisma.SortOrder
889
+ subPeriodStart?: Prisma.SortOrder
890
+ subPeriodEnd?: Prisma.SortOrder
891
+ subLastTryCancelAt?: Prisma.SortOrder
892
+ subPeriodCanceledAt?: Prisma.SortOrder
893
+ subCancellationDetail?: Prisma.SortOrder
894
+ priceId?: Prisma.SortOrder
895
+ priceName?: Prisma.SortOrder
896
+ amount?: Prisma.SortOrder
897
+ currency?: Prisma.SortOrder
898
+ creditsGranted?: Prisma.SortOrder
899
+ payInvoiceId?: Prisma.SortOrder
900
+ paymentStatus?: Prisma.SortOrder
901
+ billingReason?: Prisma.SortOrder
902
+ hostedInvoiceUrl?: Prisma.SortOrder
903
+ invoicePdf?: Prisma.SortOrder
904
+ orderDetail?: Prisma.SortOrder
905
+ paidEmail?: Prisma.SortOrder
906
+ paidAt?: Prisma.SortOrder
907
+ paidDetail?: Prisma.SortOrder
908
+ payUpdatedAt?: Prisma.SortOrder
909
+ deleted?: Prisma.SortOrder
910
+ }
911
+
912
+ export type TransactionAvgOrderByAggregateInput = {
913
+ id?: Prisma.SortOrder
914
+ amount?: Prisma.SortOrder
915
+ creditsGranted?: Prisma.SortOrder
916
+ deleted?: Prisma.SortOrder
917
+ }
918
+
919
+ export type TransactionMaxOrderByAggregateInput = {
920
+ id?: Prisma.SortOrder
921
+ userId?: Prisma.SortOrder
922
+ orderId?: Prisma.SortOrder
923
+ orderStatus?: Prisma.SortOrder
924
+ orderCreatedAt?: Prisma.SortOrder
925
+ orderExpiredAt?: Prisma.SortOrder
926
+ orderUpdatedAt?: Prisma.SortOrder
927
+ type?: Prisma.SortOrder
928
+ paySupplier?: Prisma.SortOrder
929
+ paySessionId?: Prisma.SortOrder
930
+ payTransactionId?: Prisma.SortOrder
931
+ paySubscriptionId?: Prisma.SortOrder
932
+ subPeriodStart?: Prisma.SortOrder
933
+ subPeriodEnd?: Prisma.SortOrder
934
+ subLastTryCancelAt?: Prisma.SortOrder
935
+ subPeriodCanceledAt?: Prisma.SortOrder
936
+ subCancellationDetail?: Prisma.SortOrder
937
+ priceId?: Prisma.SortOrder
938
+ priceName?: Prisma.SortOrder
939
+ amount?: Prisma.SortOrder
940
+ currency?: Prisma.SortOrder
941
+ creditsGranted?: Prisma.SortOrder
942
+ payInvoiceId?: Prisma.SortOrder
943
+ paymentStatus?: Prisma.SortOrder
944
+ billingReason?: Prisma.SortOrder
945
+ hostedInvoiceUrl?: Prisma.SortOrder
946
+ invoicePdf?: Prisma.SortOrder
947
+ orderDetail?: Prisma.SortOrder
948
+ paidEmail?: Prisma.SortOrder
949
+ paidAt?: Prisma.SortOrder
950
+ paidDetail?: Prisma.SortOrder
951
+ payUpdatedAt?: Prisma.SortOrder
952
+ deleted?: Prisma.SortOrder
953
+ }
954
+
955
+ export type TransactionMinOrderByAggregateInput = {
956
+ id?: Prisma.SortOrder
957
+ userId?: Prisma.SortOrder
958
+ orderId?: Prisma.SortOrder
959
+ orderStatus?: Prisma.SortOrder
960
+ orderCreatedAt?: Prisma.SortOrder
961
+ orderExpiredAt?: Prisma.SortOrder
962
+ orderUpdatedAt?: Prisma.SortOrder
963
+ type?: Prisma.SortOrder
964
+ paySupplier?: Prisma.SortOrder
965
+ paySessionId?: Prisma.SortOrder
966
+ payTransactionId?: Prisma.SortOrder
967
+ paySubscriptionId?: Prisma.SortOrder
968
+ subPeriodStart?: Prisma.SortOrder
969
+ subPeriodEnd?: Prisma.SortOrder
970
+ subLastTryCancelAt?: Prisma.SortOrder
971
+ subPeriodCanceledAt?: Prisma.SortOrder
972
+ subCancellationDetail?: Prisma.SortOrder
973
+ priceId?: Prisma.SortOrder
974
+ priceName?: Prisma.SortOrder
975
+ amount?: Prisma.SortOrder
976
+ currency?: Prisma.SortOrder
977
+ creditsGranted?: Prisma.SortOrder
978
+ payInvoiceId?: Prisma.SortOrder
979
+ paymentStatus?: Prisma.SortOrder
980
+ billingReason?: Prisma.SortOrder
981
+ hostedInvoiceUrl?: Prisma.SortOrder
982
+ invoicePdf?: Prisma.SortOrder
983
+ orderDetail?: Prisma.SortOrder
984
+ paidEmail?: Prisma.SortOrder
985
+ paidAt?: Prisma.SortOrder
986
+ paidDetail?: Prisma.SortOrder
987
+ payUpdatedAt?: Prisma.SortOrder
988
+ deleted?: Prisma.SortOrder
989
+ }
990
+
991
+ export type TransactionSumOrderByAggregateInput = {
992
+ id?: Prisma.SortOrder
993
+ amount?: Prisma.SortOrder
994
+ creditsGranted?: Prisma.SortOrder
995
+ deleted?: Prisma.SortOrder
996
+ }
997
+
998
+ export type TransactionCreateNestedManyWithoutUserInput = {
999
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
1000
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
1001
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope
1002
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1003
+ }
1004
+
1005
+ export type TransactionUncheckedCreateNestedManyWithoutUserInput = {
1006
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
1007
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
1008
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope
1009
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1010
+ }
1011
+
1012
+ export type TransactionUpdateManyWithoutUserNestedInput = {
1013
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
1014
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
1015
+ upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[]
1016
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope
1017
+ set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1018
+ disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1019
+ delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1020
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1021
+ update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[]
1022
+ updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[]
1023
+ deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
1024
+ }
1025
+
1026
+ export type TransactionUncheckedUpdateManyWithoutUserNestedInput = {
1027
+ create?: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput> | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[]
1028
+ connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[]
1029
+ upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[]
1030
+ createMany?: Prisma.TransactionCreateManyUserInputEnvelope
1031
+ set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1032
+ disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1033
+ delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1034
+ connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[]
1035
+ update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[]
1036
+ updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[]
1037
+ deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
1038
+ }
1039
+
1040
+ export type NullableDecimalFieldUpdateOperationsInput = {
1041
+ set?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1042
+ increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
1043
+ decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
1044
+ multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
1045
+ divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
1046
+ }
1047
+
1048
+ export type NullableIntFieldUpdateOperationsInput = {
1049
+ set?: number | null
1050
+ increment?: number
1051
+ decrement?: number
1052
+ multiply?: number
1053
+ divide?: number
1054
+ }
1055
+
1056
+ export type TransactionCreateWithoutUserInput = {
1057
+ id?: bigint | number
1058
+ orderId: string
1059
+ orderStatus?: string
1060
+ orderCreatedAt?: Date | string | null
1061
+ orderExpiredAt?: Date | string | null
1062
+ orderUpdatedAt?: Date | string | null
1063
+ type?: string | null
1064
+ paySupplier?: string | null
1065
+ paySessionId?: string | null
1066
+ payTransactionId?: string | null
1067
+ paySubscriptionId?: string | null
1068
+ subPeriodStart?: Date | string | null
1069
+ subPeriodEnd?: Date | string | null
1070
+ subLastTryCancelAt?: Date | string | null
1071
+ subPeriodCanceledAt?: Date | string | null
1072
+ subCancellationDetail?: string | null
1073
+ priceId?: string | null
1074
+ priceName?: string | null
1075
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1076
+ currency?: string | null
1077
+ creditsGranted?: number | null
1078
+ payInvoiceId?: string | null
1079
+ paymentStatus?: string
1080
+ billingReason?: string | null
1081
+ hostedInvoiceUrl?: string | null
1082
+ invoicePdf?: string | null
1083
+ orderDetail?: string | null
1084
+ paidEmail?: string | null
1085
+ paidAt?: Date | string | null
1086
+ paidDetail?: string | null
1087
+ payUpdatedAt?: Date | string | null
1088
+ deleted?: number
1089
+ }
1090
+
1091
+ export type TransactionUncheckedCreateWithoutUserInput = {
1092
+ id?: bigint | number
1093
+ orderId: string
1094
+ orderStatus?: string
1095
+ orderCreatedAt?: Date | string | null
1096
+ orderExpiredAt?: Date | string | null
1097
+ orderUpdatedAt?: Date | string | null
1098
+ type?: string | null
1099
+ paySupplier?: string | null
1100
+ paySessionId?: string | null
1101
+ payTransactionId?: string | null
1102
+ paySubscriptionId?: string | null
1103
+ subPeriodStart?: Date | string | null
1104
+ subPeriodEnd?: Date | string | null
1105
+ subLastTryCancelAt?: Date | string | null
1106
+ subPeriodCanceledAt?: Date | string | null
1107
+ subCancellationDetail?: string | null
1108
+ priceId?: string | null
1109
+ priceName?: string | null
1110
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1111
+ currency?: string | null
1112
+ creditsGranted?: number | null
1113
+ payInvoiceId?: string | null
1114
+ paymentStatus?: string
1115
+ billingReason?: string | null
1116
+ hostedInvoiceUrl?: string | null
1117
+ invoicePdf?: string | null
1118
+ orderDetail?: string | null
1119
+ paidEmail?: string | null
1120
+ paidAt?: Date | string | null
1121
+ paidDetail?: string | null
1122
+ payUpdatedAt?: Date | string | null
1123
+ deleted?: number
1124
+ }
1125
+
1126
+ export type TransactionCreateOrConnectWithoutUserInput = {
1127
+ where: Prisma.TransactionWhereUniqueInput
1128
+ create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>
1129
+ }
1130
+
1131
+ export type TransactionCreateManyUserInputEnvelope = {
1132
+ data: Prisma.TransactionCreateManyUserInput | Prisma.TransactionCreateManyUserInput[]
1133
+ skipDuplicates?: boolean
1134
+ }
1135
+
1136
+ export type TransactionUpsertWithWhereUniqueWithoutUserInput = {
1137
+ where: Prisma.TransactionWhereUniqueInput
1138
+ update: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>
1139
+ create: Prisma.XOR<Prisma.TransactionCreateWithoutUserInput, Prisma.TransactionUncheckedCreateWithoutUserInput>
1140
+ }
1141
+
1142
+ export type TransactionUpdateWithWhereUniqueWithoutUserInput = {
1143
+ where: Prisma.TransactionWhereUniqueInput
1144
+ data: Prisma.XOR<Prisma.TransactionUpdateWithoutUserInput, Prisma.TransactionUncheckedUpdateWithoutUserInput>
1145
+ }
1146
+
1147
+ export type TransactionUpdateManyWithWhereWithoutUserInput = {
1148
+ where: Prisma.TransactionScalarWhereInput
1149
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyWithoutUserInput>
1150
+ }
1151
+
1152
+ export type TransactionScalarWhereInput = {
1153
+ AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
1154
+ OR?: Prisma.TransactionScalarWhereInput[]
1155
+ NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[]
1156
+ id?: Prisma.BigIntFilter<"Transaction"> | bigint | number
1157
+ userId?: Prisma.UuidFilter<"Transaction"> | string
1158
+ orderId?: Prisma.StringFilter<"Transaction"> | string
1159
+ orderStatus?: Prisma.StringFilter<"Transaction"> | string
1160
+ orderCreatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1161
+ orderExpiredAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1162
+ orderUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1163
+ type?: Prisma.StringNullableFilter<"Transaction"> | string | null
1164
+ paySupplier?: Prisma.StringNullableFilter<"Transaction"> | string | null
1165
+ paySessionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
1166
+ payTransactionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
1167
+ paySubscriptionId?: Prisma.StringNullableFilter<"Transaction"> | string | null
1168
+ subPeriodStart?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1169
+ subPeriodEnd?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1170
+ subLastTryCancelAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1171
+ subPeriodCanceledAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1172
+ subCancellationDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
1173
+ priceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
1174
+ priceName?: Prisma.StringNullableFilter<"Transaction"> | string | null
1175
+ amount?: Prisma.DecimalNullableFilter<"Transaction"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1176
+ currency?: Prisma.StringNullableFilter<"Transaction"> | string | null
1177
+ creditsGranted?: Prisma.IntNullableFilter<"Transaction"> | number | null
1178
+ payInvoiceId?: Prisma.StringNullableFilter<"Transaction"> | string | null
1179
+ paymentStatus?: Prisma.StringFilter<"Transaction"> | string
1180
+ billingReason?: Prisma.StringNullableFilter<"Transaction"> | string | null
1181
+ hostedInvoiceUrl?: Prisma.StringNullableFilter<"Transaction"> | string | null
1182
+ invoicePdf?: Prisma.StringNullableFilter<"Transaction"> | string | null
1183
+ orderDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
1184
+ paidEmail?: Prisma.StringNullableFilter<"Transaction"> | string | null
1185
+ paidAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1186
+ paidDetail?: Prisma.StringNullableFilter<"Transaction"> | string | null
1187
+ payUpdatedAt?: Prisma.DateTimeNullableFilter<"Transaction"> | Date | string | null
1188
+ deleted?: Prisma.IntFilter<"Transaction"> | number
1189
+ }
1190
+
1191
+ export type TransactionCreateManyUserInput = {
1192
+ id?: bigint | number
1193
+ orderId: string
1194
+ orderStatus?: string
1195
+ orderCreatedAt?: Date | string | null
1196
+ orderExpiredAt?: Date | string | null
1197
+ orderUpdatedAt?: Date | string | null
1198
+ type?: string | null
1199
+ paySupplier?: string | null
1200
+ paySessionId?: string | null
1201
+ payTransactionId?: string | null
1202
+ paySubscriptionId?: string | null
1203
+ subPeriodStart?: Date | string | null
1204
+ subPeriodEnd?: Date | string | null
1205
+ subLastTryCancelAt?: Date | string | null
1206
+ subPeriodCanceledAt?: Date | string | null
1207
+ subCancellationDetail?: string | null
1208
+ priceId?: string | null
1209
+ priceName?: string | null
1210
+ amount?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
1211
+ currency?: string | null
1212
+ creditsGranted?: number | null
1213
+ payInvoiceId?: string | null
1214
+ paymentStatus?: string
1215
+ billingReason?: string | null
1216
+ hostedInvoiceUrl?: string | null
1217
+ invoicePdf?: string | null
1218
+ orderDetail?: string | null
1219
+ paidEmail?: string | null
1220
+ paidAt?: Date | string | null
1221
+ paidDetail?: string | null
1222
+ payUpdatedAt?: Date | string | null
1223
+ deleted?: number
1224
+ }
1225
+
1226
+ export type TransactionUpdateWithoutUserInput = {
1227
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
1228
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
1229
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
1230
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1231
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1232
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1233
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1234
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1235
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1236
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1237
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1238
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1239
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1240
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1241
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1242
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1243
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1244
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1245
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1246
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1247
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1248
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1249
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
1250
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1251
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1252
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1253
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1254
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1255
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1256
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1257
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1258
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
1259
+ }
1260
+
1261
+ export type TransactionUncheckedUpdateWithoutUserInput = {
1262
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
1263
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
1264
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
1265
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1266
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1267
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1268
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1269
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1270
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1271
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1272
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1273
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1274
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1275
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1276
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1277
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1278
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1279
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1280
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1281
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1282
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1283
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1284
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
1285
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1286
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1287
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1288
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1289
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1290
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1291
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1292
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1293
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
1294
+ }
1295
+
1296
+ export type TransactionUncheckedUpdateManyWithoutUserInput = {
1297
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
1298
+ orderId?: Prisma.StringFieldUpdateOperationsInput | string
1299
+ orderStatus?: Prisma.StringFieldUpdateOperationsInput | string
1300
+ orderCreatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1301
+ orderExpiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1302
+ orderUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1303
+ type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1304
+ paySupplier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1305
+ paySessionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1306
+ payTransactionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1307
+ paySubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1308
+ subPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1309
+ subPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1310
+ subLastTryCancelAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1311
+ subPeriodCanceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1312
+ subCancellationDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1313
+ priceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1314
+ priceName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1315
+ amount?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
1316
+ currency?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1317
+ creditsGranted?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1318
+ payInvoiceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1319
+ paymentStatus?: Prisma.StringFieldUpdateOperationsInput | string
1320
+ billingReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1321
+ hostedInvoiceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1322
+ invoicePdf?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1323
+ orderDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1324
+ paidEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1325
+ paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1326
+ paidDetail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1327
+ payUpdatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1328
+ deleted?: Prisma.IntFieldUpdateOperationsInput | number
1329
+ }
1330
+
1331
+
1332
+
1333
+ export type TransactionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1334
+ id?: boolean
1335
+ userId?: boolean
1336
+ orderId?: boolean
1337
+ orderStatus?: boolean
1338
+ orderCreatedAt?: boolean
1339
+ orderExpiredAt?: boolean
1340
+ orderUpdatedAt?: boolean
1341
+ type?: boolean
1342
+ paySupplier?: boolean
1343
+ paySessionId?: boolean
1344
+ payTransactionId?: boolean
1345
+ paySubscriptionId?: boolean
1346
+ subPeriodStart?: boolean
1347
+ subPeriodEnd?: boolean
1348
+ subLastTryCancelAt?: boolean
1349
+ subPeriodCanceledAt?: boolean
1350
+ subCancellationDetail?: boolean
1351
+ priceId?: boolean
1352
+ priceName?: boolean
1353
+ amount?: boolean
1354
+ currency?: boolean
1355
+ creditsGranted?: boolean
1356
+ payInvoiceId?: boolean
1357
+ paymentStatus?: boolean
1358
+ billingReason?: boolean
1359
+ hostedInvoiceUrl?: boolean
1360
+ invoicePdf?: boolean
1361
+ orderDetail?: boolean
1362
+ paidEmail?: boolean
1363
+ paidAt?: boolean
1364
+ paidDetail?: boolean
1365
+ payUpdatedAt?: boolean
1366
+ deleted?: boolean
1367
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1368
+ }, ExtArgs["result"]["transaction"]>
1369
+
1370
+ export type TransactionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1371
+ id?: boolean
1372
+ userId?: boolean
1373
+ orderId?: boolean
1374
+ orderStatus?: boolean
1375
+ orderCreatedAt?: boolean
1376
+ orderExpiredAt?: boolean
1377
+ orderUpdatedAt?: boolean
1378
+ type?: boolean
1379
+ paySupplier?: boolean
1380
+ paySessionId?: boolean
1381
+ payTransactionId?: boolean
1382
+ paySubscriptionId?: boolean
1383
+ subPeriodStart?: boolean
1384
+ subPeriodEnd?: boolean
1385
+ subLastTryCancelAt?: boolean
1386
+ subPeriodCanceledAt?: boolean
1387
+ subCancellationDetail?: boolean
1388
+ priceId?: boolean
1389
+ priceName?: boolean
1390
+ amount?: boolean
1391
+ currency?: boolean
1392
+ creditsGranted?: boolean
1393
+ payInvoiceId?: boolean
1394
+ paymentStatus?: boolean
1395
+ billingReason?: boolean
1396
+ hostedInvoiceUrl?: boolean
1397
+ invoicePdf?: boolean
1398
+ orderDetail?: boolean
1399
+ paidEmail?: boolean
1400
+ paidAt?: boolean
1401
+ paidDetail?: boolean
1402
+ payUpdatedAt?: boolean
1403
+ deleted?: boolean
1404
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1405
+ }, ExtArgs["result"]["transaction"]>
1406
+
1407
+ export type TransactionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1408
+ id?: boolean
1409
+ userId?: boolean
1410
+ orderId?: boolean
1411
+ orderStatus?: boolean
1412
+ orderCreatedAt?: boolean
1413
+ orderExpiredAt?: boolean
1414
+ orderUpdatedAt?: boolean
1415
+ type?: boolean
1416
+ paySupplier?: boolean
1417
+ paySessionId?: boolean
1418
+ payTransactionId?: boolean
1419
+ paySubscriptionId?: boolean
1420
+ subPeriodStart?: boolean
1421
+ subPeriodEnd?: boolean
1422
+ subLastTryCancelAt?: boolean
1423
+ subPeriodCanceledAt?: boolean
1424
+ subCancellationDetail?: boolean
1425
+ priceId?: boolean
1426
+ priceName?: boolean
1427
+ amount?: boolean
1428
+ currency?: boolean
1429
+ creditsGranted?: boolean
1430
+ payInvoiceId?: boolean
1431
+ paymentStatus?: boolean
1432
+ billingReason?: boolean
1433
+ hostedInvoiceUrl?: boolean
1434
+ invoicePdf?: boolean
1435
+ orderDetail?: boolean
1436
+ paidEmail?: boolean
1437
+ paidAt?: boolean
1438
+ paidDetail?: boolean
1439
+ payUpdatedAt?: boolean
1440
+ deleted?: boolean
1441
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1442
+ }, ExtArgs["result"]["transaction"]>
1443
+
1444
+ export type TransactionSelectScalar = {
1445
+ id?: boolean
1446
+ userId?: boolean
1447
+ orderId?: boolean
1448
+ orderStatus?: boolean
1449
+ orderCreatedAt?: boolean
1450
+ orderExpiredAt?: boolean
1451
+ orderUpdatedAt?: boolean
1452
+ type?: boolean
1453
+ paySupplier?: boolean
1454
+ paySessionId?: boolean
1455
+ payTransactionId?: boolean
1456
+ paySubscriptionId?: boolean
1457
+ subPeriodStart?: boolean
1458
+ subPeriodEnd?: boolean
1459
+ subLastTryCancelAt?: boolean
1460
+ subPeriodCanceledAt?: boolean
1461
+ subCancellationDetail?: boolean
1462
+ priceId?: boolean
1463
+ priceName?: boolean
1464
+ amount?: boolean
1465
+ currency?: boolean
1466
+ creditsGranted?: boolean
1467
+ payInvoiceId?: boolean
1468
+ paymentStatus?: boolean
1469
+ billingReason?: boolean
1470
+ hostedInvoiceUrl?: boolean
1471
+ invoicePdf?: boolean
1472
+ orderDetail?: boolean
1473
+ paidEmail?: boolean
1474
+ paidAt?: boolean
1475
+ paidDetail?: boolean
1476
+ payUpdatedAt?: boolean
1477
+ deleted?: boolean
1478
+ }
1479
+
1480
+ export type TransactionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "orderId" | "orderStatus" | "orderCreatedAt" | "orderExpiredAt" | "orderUpdatedAt" | "type" | "paySupplier" | "paySessionId" | "payTransactionId" | "paySubscriptionId" | "subPeriodStart" | "subPeriodEnd" | "subLastTryCancelAt" | "subPeriodCanceledAt" | "subCancellationDetail" | "priceId" | "priceName" | "amount" | "currency" | "creditsGranted" | "payInvoiceId" | "paymentStatus" | "billingReason" | "hostedInvoiceUrl" | "invoicePdf" | "orderDetail" | "paidEmail" | "paidAt" | "paidDetail" | "payUpdatedAt" | "deleted", ExtArgs["result"]["transaction"]>
1481
+ export type TransactionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1482
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1483
+ }
1484
+ export type TransactionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1485
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1486
+ }
1487
+ export type TransactionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1488
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1489
+ }
1490
+
1491
+ export type $TransactionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1492
+ name: "Transaction"
1493
+ objects: {
1494
+ user: Prisma.$UserPayload<ExtArgs>
1495
+ }
1496
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1497
+ id: bigint
1498
+ userId: string
1499
+ orderId: string
1500
+ orderStatus: string
1501
+ orderCreatedAt: Date | null
1502
+ orderExpiredAt: Date | null
1503
+ orderUpdatedAt: Date | null
1504
+ type: string | null
1505
+ paySupplier: string | null
1506
+ paySessionId: string | null
1507
+ payTransactionId: string | null
1508
+ paySubscriptionId: string | null
1509
+ subPeriodStart: Date | null
1510
+ subPeriodEnd: Date | null
1511
+ subLastTryCancelAt: Date | null
1512
+ subPeriodCanceledAt: Date | null
1513
+ subCancellationDetail: string | null
1514
+ priceId: string | null
1515
+ priceName: string | null
1516
+ amount: runtime.Decimal | null
1517
+ currency: string | null
1518
+ creditsGranted: number | null
1519
+ payInvoiceId: string | null
1520
+ paymentStatus: string
1521
+ billingReason: string | null
1522
+ hostedInvoiceUrl: string | null
1523
+ invoicePdf: string | null
1524
+ orderDetail: string | null
1525
+ paidEmail: string | null
1526
+ paidAt: Date | null
1527
+ paidDetail: string | null
1528
+ payUpdatedAt: Date | null
1529
+ deleted: number
1530
+ }, ExtArgs["result"]["transaction"]>
1531
+ composites: {}
1532
+ }
1533
+
1534
+ export type TransactionGetPayload<S extends boolean | null | undefined | TransactionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TransactionPayload, S>
1535
+
1536
+ export type TransactionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1537
+ Omit<TransactionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1538
+ select?: TransactionCountAggregateInputType | true
1539
+ }
1540
+
1541
+ export interface TransactionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1542
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Transaction'], meta: { name: 'Transaction' } }
1543
+ /**
1544
+ * Find zero or one Transaction that matches the filter.
1545
+ * @param {TransactionFindUniqueArgs} args - Arguments to find a Transaction
1546
+ * @example
1547
+ * // Get one Transaction
1548
+ * const transaction = await prisma.transaction.findUnique({
1549
+ * where: {
1550
+ * // ... provide filter here
1551
+ * }
1552
+ * })
1553
+ */
1554
+ findUnique<T extends TransactionFindUniqueArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1555
+
1556
+ /**
1557
+ * Find one Transaction that matches the filter or throw an error with `error.code='P2025'`
1558
+ * if no matches were found.
1559
+ * @param {TransactionFindUniqueOrThrowArgs} args - Arguments to find a Transaction
1560
+ * @example
1561
+ * // Get one Transaction
1562
+ * const transaction = await prisma.transaction.findUniqueOrThrow({
1563
+ * where: {
1564
+ * // ... provide filter here
1565
+ * }
1566
+ * })
1567
+ */
1568
+ findUniqueOrThrow<T extends TransactionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TransactionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1569
+
1570
+ /**
1571
+ * Find the first Transaction that matches the filter.
1572
+ * Note, that providing `undefined` is treated as the value not being there.
1573
+ * Read more here: https://pris.ly/d/null-undefined
1574
+ * @param {TransactionFindFirstArgs} args - Arguments to find a Transaction
1575
+ * @example
1576
+ * // Get one Transaction
1577
+ * const transaction = await prisma.transaction.findFirst({
1578
+ * where: {
1579
+ * // ... provide filter here
1580
+ * }
1581
+ * })
1582
+ */
1583
+ findFirst<T extends TransactionFindFirstArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1584
+
1585
+ /**
1586
+ * Find the first Transaction that matches the filter or
1587
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1588
+ * Note, that providing `undefined` is treated as the value not being there.
1589
+ * Read more here: https://pris.ly/d/null-undefined
1590
+ * @param {TransactionFindFirstOrThrowArgs} args - Arguments to find a Transaction
1591
+ * @example
1592
+ * // Get one Transaction
1593
+ * const transaction = await prisma.transaction.findFirstOrThrow({
1594
+ * where: {
1595
+ * // ... provide filter here
1596
+ * }
1597
+ * })
1598
+ */
1599
+ findFirstOrThrow<T extends TransactionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TransactionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1600
+
1601
+ /**
1602
+ * Find zero or more Transactions that matches the filter.
1603
+ * Note, that providing `undefined` is treated as the value not being there.
1604
+ * Read more here: https://pris.ly/d/null-undefined
1605
+ * @param {TransactionFindManyArgs} args - Arguments to filter and select certain fields only.
1606
+ * @example
1607
+ * // Get all Transactions
1608
+ * const transactions = await prisma.transaction.findMany()
1609
+ *
1610
+ * // Get first 10 Transactions
1611
+ * const transactions = await prisma.transaction.findMany({ take: 10 })
1612
+ *
1613
+ * // Only select the `id`
1614
+ * const transactionWithIdOnly = await prisma.transaction.findMany({ select: { id: true } })
1615
+ *
1616
+ */
1617
+ findMany<T extends TransactionFindManyArgs>(args?: Prisma.SelectSubset<T, TransactionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1618
+
1619
+ /**
1620
+ * Create a Transaction.
1621
+ * @param {TransactionCreateArgs} args - Arguments to create a Transaction.
1622
+ * @example
1623
+ * // Create one Transaction
1624
+ * const Transaction = await prisma.transaction.create({
1625
+ * data: {
1626
+ * // ... data to create a Transaction
1627
+ * }
1628
+ * })
1629
+ *
1630
+ */
1631
+ create<T extends TransactionCreateArgs>(args: Prisma.SelectSubset<T, TransactionCreateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1632
+
1633
+ /**
1634
+ * Create many Transactions.
1635
+ * @param {TransactionCreateManyArgs} args - Arguments to create many Transactions.
1636
+ * @example
1637
+ * // Create many Transactions
1638
+ * const transaction = await prisma.transaction.createMany({
1639
+ * data: [
1640
+ * // ... provide data here
1641
+ * ]
1642
+ * })
1643
+ *
1644
+ */
1645
+ createMany<T extends TransactionCreateManyArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1646
+
1647
+ /**
1648
+ * Create many Transactions and returns the data saved in the database.
1649
+ * @param {TransactionCreateManyAndReturnArgs} args - Arguments to create many Transactions.
1650
+ * @example
1651
+ * // Create many Transactions
1652
+ * const transaction = await prisma.transaction.createManyAndReturn({
1653
+ * data: [
1654
+ * // ... provide data here
1655
+ * ]
1656
+ * })
1657
+ *
1658
+ * // Create many Transactions and only return the `id`
1659
+ * const transactionWithIdOnly = await prisma.transaction.createManyAndReturn({
1660
+ * select: { id: true },
1661
+ * data: [
1662
+ * // ... provide data here
1663
+ * ]
1664
+ * })
1665
+ * Note, that providing `undefined` is treated as the value not being there.
1666
+ * Read more here: https://pris.ly/d/null-undefined
1667
+ *
1668
+ */
1669
+ createManyAndReturn<T extends TransactionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TransactionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1670
+
1671
+ /**
1672
+ * Delete a Transaction.
1673
+ * @param {TransactionDeleteArgs} args - Arguments to delete one Transaction.
1674
+ * @example
1675
+ * // Delete one Transaction
1676
+ * const Transaction = await prisma.transaction.delete({
1677
+ * where: {
1678
+ * // ... filter to delete one Transaction
1679
+ * }
1680
+ * })
1681
+ *
1682
+ */
1683
+ delete<T extends TransactionDeleteArgs>(args: Prisma.SelectSubset<T, TransactionDeleteArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1684
+
1685
+ /**
1686
+ * Update one Transaction.
1687
+ * @param {TransactionUpdateArgs} args - Arguments to update one Transaction.
1688
+ * @example
1689
+ * // Update one Transaction
1690
+ * const transaction = await prisma.transaction.update({
1691
+ * where: {
1692
+ * // ... provide filter here
1693
+ * },
1694
+ * data: {
1695
+ * // ... provide data here
1696
+ * }
1697
+ * })
1698
+ *
1699
+ */
1700
+ update<T extends TransactionUpdateArgs>(args: Prisma.SelectSubset<T, TransactionUpdateArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1701
+
1702
+ /**
1703
+ * Delete zero or more Transactions.
1704
+ * @param {TransactionDeleteManyArgs} args - Arguments to filter Transactions to delete.
1705
+ * @example
1706
+ * // Delete a few Transactions
1707
+ * const { count } = await prisma.transaction.deleteMany({
1708
+ * where: {
1709
+ * // ... provide filter here
1710
+ * }
1711
+ * })
1712
+ *
1713
+ */
1714
+ deleteMany<T extends TransactionDeleteManyArgs>(args?: Prisma.SelectSubset<T, TransactionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1715
+
1716
+ /**
1717
+ * Update zero or more Transactions.
1718
+ * Note, that providing `undefined` is treated as the value not being there.
1719
+ * Read more here: https://pris.ly/d/null-undefined
1720
+ * @param {TransactionUpdateManyArgs} args - Arguments to update one or more rows.
1721
+ * @example
1722
+ * // Update many Transactions
1723
+ * const transaction = await prisma.transaction.updateMany({
1724
+ * where: {
1725
+ * // ... provide filter here
1726
+ * },
1727
+ * data: {
1728
+ * // ... provide data here
1729
+ * }
1730
+ * })
1731
+ *
1732
+ */
1733
+ updateMany<T extends TransactionUpdateManyArgs>(args: Prisma.SelectSubset<T, TransactionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1734
+
1735
+ /**
1736
+ * Update zero or more Transactions and returns the data updated in the database.
1737
+ * @param {TransactionUpdateManyAndReturnArgs} args - Arguments to update many Transactions.
1738
+ * @example
1739
+ * // Update many Transactions
1740
+ * const transaction = await prisma.transaction.updateManyAndReturn({
1741
+ * where: {
1742
+ * // ... provide filter here
1743
+ * },
1744
+ * data: [
1745
+ * // ... provide data here
1746
+ * ]
1747
+ * })
1748
+ *
1749
+ * // Update zero or more Transactions and only return the `id`
1750
+ * const transactionWithIdOnly = await prisma.transaction.updateManyAndReturn({
1751
+ * select: { id: true },
1752
+ * where: {
1753
+ * // ... provide filter here
1754
+ * },
1755
+ * data: [
1756
+ * // ... provide data here
1757
+ * ]
1758
+ * })
1759
+ * Note, that providing `undefined` is treated as the value not being there.
1760
+ * Read more here: https://pris.ly/d/null-undefined
1761
+ *
1762
+ */
1763
+ updateManyAndReturn<T extends TransactionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TransactionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1764
+
1765
+ /**
1766
+ * Create or update one Transaction.
1767
+ * @param {TransactionUpsertArgs} args - Arguments to update or create a Transaction.
1768
+ * @example
1769
+ * // Update or create a Transaction
1770
+ * const transaction = await prisma.transaction.upsert({
1771
+ * create: {
1772
+ * // ... data to create a Transaction
1773
+ * },
1774
+ * update: {
1775
+ * // ... in case it already exists, update
1776
+ * },
1777
+ * where: {
1778
+ * // ... the filter for the Transaction we want to update
1779
+ * }
1780
+ * })
1781
+ */
1782
+ upsert<T extends TransactionUpsertArgs>(args: Prisma.SelectSubset<T, TransactionUpsertArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1783
+
1784
+
1785
+ /**
1786
+ * Count the number of Transactions.
1787
+ * Note, that providing `undefined` is treated as the value not being there.
1788
+ * Read more here: https://pris.ly/d/null-undefined
1789
+ * @param {TransactionCountArgs} args - Arguments to filter Transactions to count.
1790
+ * @example
1791
+ * // Count the number of Transactions
1792
+ * const count = await prisma.transaction.count({
1793
+ * where: {
1794
+ * // ... the filter for the Transactions we want to count
1795
+ * }
1796
+ * })
1797
+ **/
1798
+ count<T extends TransactionCountArgs>(
1799
+ args?: Prisma.Subset<T, TransactionCountArgs>,
1800
+ ): Prisma.PrismaPromise<
1801
+ T extends runtime.Types.Utils.Record<'select', any>
1802
+ ? T['select'] extends true
1803
+ ? number
1804
+ : Prisma.GetScalarType<T['select'], TransactionCountAggregateOutputType>
1805
+ : number
1806
+ >
1807
+
1808
+ /**
1809
+ * Allows you to perform aggregations operations on a Transaction.
1810
+ * Note, that providing `undefined` is treated as the value not being there.
1811
+ * Read more here: https://pris.ly/d/null-undefined
1812
+ * @param {TransactionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1813
+ * @example
1814
+ * // Ordered by age ascending
1815
+ * // Where email contains prisma.io
1816
+ * // Limited to the 10 users
1817
+ * const aggregations = await prisma.user.aggregate({
1818
+ * _avg: {
1819
+ * age: true,
1820
+ * },
1821
+ * where: {
1822
+ * email: {
1823
+ * contains: "prisma.io",
1824
+ * },
1825
+ * },
1826
+ * orderBy: {
1827
+ * age: "asc",
1828
+ * },
1829
+ * take: 10,
1830
+ * })
1831
+ **/
1832
+ aggregate<T extends TransactionAggregateArgs>(args: Prisma.Subset<T, TransactionAggregateArgs>): Prisma.PrismaPromise<GetTransactionAggregateType<T>>
1833
+
1834
+ /**
1835
+ * Group by Transaction.
1836
+ * Note, that providing `undefined` is treated as the value not being there.
1837
+ * Read more here: https://pris.ly/d/null-undefined
1838
+ * @param {TransactionGroupByArgs} args - Group by arguments.
1839
+ * @example
1840
+ * // Group by city, order by createdAt, get count
1841
+ * const result = await prisma.user.groupBy({
1842
+ * by: ['city', 'createdAt'],
1843
+ * orderBy: {
1844
+ * createdAt: true
1845
+ * },
1846
+ * _count: {
1847
+ * _all: true
1848
+ * },
1849
+ * })
1850
+ *
1851
+ **/
1852
+ groupBy<
1853
+ T extends TransactionGroupByArgs,
1854
+ HasSelectOrTake extends Prisma.Or<
1855
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1856
+ Prisma.Extends<'take', Prisma.Keys<T>>
1857
+ >,
1858
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1859
+ ? { orderBy: TransactionGroupByArgs['orderBy'] }
1860
+ : { orderBy?: TransactionGroupByArgs['orderBy'] },
1861
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1862
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1863
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1864
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1865
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1866
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1867
+ InputErrors extends ByEmpty extends Prisma.True
1868
+ ? `Error: "by" must not be empty.`
1869
+ : HavingValid extends Prisma.False
1870
+ ? {
1871
+ [P in HavingFields]: P extends ByFields
1872
+ ? never
1873
+ : P extends string
1874
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1875
+ : [
1876
+ Error,
1877
+ 'Field ',
1878
+ P,
1879
+ ` in "having" needs to be provided in "by"`,
1880
+ ]
1881
+ }[HavingFields]
1882
+ : 'take' extends Prisma.Keys<T>
1883
+ ? 'orderBy' extends Prisma.Keys<T>
1884
+ ? ByValid extends Prisma.True
1885
+ ? {}
1886
+ : {
1887
+ [P in OrderFields]: P extends ByFields
1888
+ ? never
1889
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1890
+ }[OrderFields]
1891
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1892
+ : 'skip' extends Prisma.Keys<T>
1893
+ ? 'orderBy' extends Prisma.Keys<T>
1894
+ ? ByValid extends Prisma.True
1895
+ ? {}
1896
+ : {
1897
+ [P in OrderFields]: P extends ByFields
1898
+ ? never
1899
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1900
+ }[OrderFields]
1901
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1902
+ : ByValid extends Prisma.True
1903
+ ? {}
1904
+ : {
1905
+ [P in OrderFields]: P extends ByFields
1906
+ ? never
1907
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1908
+ }[OrderFields]
1909
+ >(args: Prisma.SubsetIntersection<T, TransactionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTransactionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1910
+ /**
1911
+ * Fields of the Transaction model
1912
+ */
1913
+ readonly fields: TransactionFieldRefs;
1914
+ }
1915
+
1916
+ /**
1917
+ * The delegate class that acts as a "Promise-like" for Transaction.
1918
+ * Why is this prefixed with `Prisma__`?
1919
+ * Because we want to prevent naming conflicts as mentioned in
1920
+ * https://github.com/prisma/prisma-client-js/issues/707
1921
+ */
1922
+ export interface Prisma__TransactionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1923
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1924
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1925
+ /**
1926
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1927
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1928
+ * @param onrejected The callback to execute when the Promise is rejected.
1929
+ * @returns A Promise for the completion of which ever callback is executed.
1930
+ */
1931
+ 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>
1932
+ /**
1933
+ * Attaches a callback for only the rejection of the Promise.
1934
+ * @param onrejected The callback to execute when the Promise is rejected.
1935
+ * @returns A Promise for the completion of the callback.
1936
+ */
1937
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1938
+ /**
1939
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1940
+ * resolved value cannot be modified from the callback.
1941
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1942
+ * @returns A Promise for the completion of the callback.
1943
+ */
1944
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1945
+ }
1946
+
1947
+
1948
+
1949
+
1950
+ /**
1951
+ * Fields of the Transaction model
1952
+ */
1953
+ export interface TransactionFieldRefs {
1954
+ readonly id: Prisma.FieldRef<"Transaction", 'BigInt'>
1955
+ readonly userId: Prisma.FieldRef<"Transaction", 'String'>
1956
+ readonly orderId: Prisma.FieldRef<"Transaction", 'String'>
1957
+ readonly orderStatus: Prisma.FieldRef<"Transaction", 'String'>
1958
+ readonly orderCreatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1959
+ readonly orderExpiredAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1960
+ readonly orderUpdatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1961
+ readonly type: Prisma.FieldRef<"Transaction", 'String'>
1962
+ readonly paySupplier: Prisma.FieldRef<"Transaction", 'String'>
1963
+ readonly paySessionId: Prisma.FieldRef<"Transaction", 'String'>
1964
+ readonly payTransactionId: Prisma.FieldRef<"Transaction", 'String'>
1965
+ readonly paySubscriptionId: Prisma.FieldRef<"Transaction", 'String'>
1966
+ readonly subPeriodStart: Prisma.FieldRef<"Transaction", 'DateTime'>
1967
+ readonly subPeriodEnd: Prisma.FieldRef<"Transaction", 'DateTime'>
1968
+ readonly subLastTryCancelAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1969
+ readonly subPeriodCanceledAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1970
+ readonly subCancellationDetail: Prisma.FieldRef<"Transaction", 'String'>
1971
+ readonly priceId: Prisma.FieldRef<"Transaction", 'String'>
1972
+ readonly priceName: Prisma.FieldRef<"Transaction", 'String'>
1973
+ readonly amount: Prisma.FieldRef<"Transaction", 'Decimal'>
1974
+ readonly currency: Prisma.FieldRef<"Transaction", 'String'>
1975
+ readonly creditsGranted: Prisma.FieldRef<"Transaction", 'Int'>
1976
+ readonly payInvoiceId: Prisma.FieldRef<"Transaction", 'String'>
1977
+ readonly paymentStatus: Prisma.FieldRef<"Transaction", 'String'>
1978
+ readonly billingReason: Prisma.FieldRef<"Transaction", 'String'>
1979
+ readonly hostedInvoiceUrl: Prisma.FieldRef<"Transaction", 'String'>
1980
+ readonly invoicePdf: Prisma.FieldRef<"Transaction", 'String'>
1981
+ readonly orderDetail: Prisma.FieldRef<"Transaction", 'String'>
1982
+ readonly paidEmail: Prisma.FieldRef<"Transaction", 'String'>
1983
+ readonly paidAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1984
+ readonly paidDetail: Prisma.FieldRef<"Transaction", 'String'>
1985
+ readonly payUpdatedAt: Prisma.FieldRef<"Transaction", 'DateTime'>
1986
+ readonly deleted: Prisma.FieldRef<"Transaction", 'Int'>
1987
+ }
1988
+
1989
+
1990
+ // Custom InputTypes
1991
+ /**
1992
+ * Transaction findUnique
1993
+ */
1994
+ export type TransactionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1995
+ /**
1996
+ * Select specific fields to fetch from the Transaction
1997
+ */
1998
+ select?: Prisma.TransactionSelect<ExtArgs> | null
1999
+ /**
2000
+ * Omit specific fields from the Transaction
2001
+ */
2002
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2003
+ /**
2004
+ * Choose, which related nodes to fetch as well
2005
+ */
2006
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2007
+ /**
2008
+ * Filter, which Transaction to fetch.
2009
+ */
2010
+ where: Prisma.TransactionWhereUniqueInput
2011
+ }
2012
+
2013
+ /**
2014
+ * Transaction findUniqueOrThrow
2015
+ */
2016
+ export type TransactionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2017
+ /**
2018
+ * Select specific fields to fetch from the Transaction
2019
+ */
2020
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2021
+ /**
2022
+ * Omit specific fields from the Transaction
2023
+ */
2024
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2025
+ /**
2026
+ * Choose, which related nodes to fetch as well
2027
+ */
2028
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2029
+ /**
2030
+ * Filter, which Transaction to fetch.
2031
+ */
2032
+ where: Prisma.TransactionWhereUniqueInput
2033
+ }
2034
+
2035
+ /**
2036
+ * Transaction findFirst
2037
+ */
2038
+ export type TransactionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2039
+ /**
2040
+ * Select specific fields to fetch from the Transaction
2041
+ */
2042
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2043
+ /**
2044
+ * Omit specific fields from the Transaction
2045
+ */
2046
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2047
+ /**
2048
+ * Choose, which related nodes to fetch as well
2049
+ */
2050
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2051
+ /**
2052
+ * Filter, which Transaction to fetch.
2053
+ */
2054
+ where?: Prisma.TransactionWhereInput
2055
+ /**
2056
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2057
+ *
2058
+ * Determine the order of Transactions to fetch.
2059
+ */
2060
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[]
2061
+ /**
2062
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2063
+ *
2064
+ * Sets the position for searching for Transactions.
2065
+ */
2066
+ cursor?: Prisma.TransactionWhereUniqueInput
2067
+ /**
2068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2069
+ *
2070
+ * Take `±n` Transactions from the position of the cursor.
2071
+ */
2072
+ take?: number
2073
+ /**
2074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2075
+ *
2076
+ * Skip the first `n` Transactions.
2077
+ */
2078
+ skip?: number
2079
+ /**
2080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2081
+ *
2082
+ * Filter by unique combinations of Transactions.
2083
+ */
2084
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[]
2085
+ }
2086
+
2087
+ /**
2088
+ * Transaction findFirstOrThrow
2089
+ */
2090
+ export type TransactionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2091
+ /**
2092
+ * Select specific fields to fetch from the Transaction
2093
+ */
2094
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2095
+ /**
2096
+ * Omit specific fields from the Transaction
2097
+ */
2098
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2099
+ /**
2100
+ * Choose, which related nodes to fetch as well
2101
+ */
2102
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2103
+ /**
2104
+ * Filter, which Transaction to fetch.
2105
+ */
2106
+ where?: Prisma.TransactionWhereInput
2107
+ /**
2108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2109
+ *
2110
+ * Determine the order of Transactions to fetch.
2111
+ */
2112
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[]
2113
+ /**
2114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2115
+ *
2116
+ * Sets the position for searching for Transactions.
2117
+ */
2118
+ cursor?: Prisma.TransactionWhereUniqueInput
2119
+ /**
2120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2121
+ *
2122
+ * Take `±n` Transactions from the position of the cursor.
2123
+ */
2124
+ take?: number
2125
+ /**
2126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2127
+ *
2128
+ * Skip the first `n` Transactions.
2129
+ */
2130
+ skip?: number
2131
+ /**
2132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2133
+ *
2134
+ * Filter by unique combinations of Transactions.
2135
+ */
2136
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[]
2137
+ }
2138
+
2139
+ /**
2140
+ * Transaction findMany
2141
+ */
2142
+ export type TransactionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2143
+ /**
2144
+ * Select specific fields to fetch from the Transaction
2145
+ */
2146
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2147
+ /**
2148
+ * Omit specific fields from the Transaction
2149
+ */
2150
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2151
+ /**
2152
+ * Choose, which related nodes to fetch as well
2153
+ */
2154
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2155
+ /**
2156
+ * Filter, which Transactions to fetch.
2157
+ */
2158
+ where?: Prisma.TransactionWhereInput
2159
+ /**
2160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2161
+ *
2162
+ * Determine the order of Transactions to fetch.
2163
+ */
2164
+ orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[]
2165
+ /**
2166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2167
+ *
2168
+ * Sets the position for listing Transactions.
2169
+ */
2170
+ cursor?: Prisma.TransactionWhereUniqueInput
2171
+ /**
2172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2173
+ *
2174
+ * Take `±n` Transactions from the position of the cursor.
2175
+ */
2176
+ take?: number
2177
+ /**
2178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2179
+ *
2180
+ * Skip the first `n` Transactions.
2181
+ */
2182
+ skip?: number
2183
+ distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[]
2184
+ }
2185
+
2186
+ /**
2187
+ * Transaction create
2188
+ */
2189
+ export type TransactionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2190
+ /**
2191
+ * Select specific fields to fetch from the Transaction
2192
+ */
2193
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2194
+ /**
2195
+ * Omit specific fields from the Transaction
2196
+ */
2197
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2198
+ /**
2199
+ * Choose, which related nodes to fetch as well
2200
+ */
2201
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2202
+ /**
2203
+ * The data needed to create a Transaction.
2204
+ */
2205
+ data: Prisma.XOR<Prisma.TransactionCreateInput, Prisma.TransactionUncheckedCreateInput>
2206
+ }
2207
+
2208
+ /**
2209
+ * Transaction createMany
2210
+ */
2211
+ export type TransactionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2212
+ /**
2213
+ * The data used to create many Transactions.
2214
+ */
2215
+ data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[]
2216
+ skipDuplicates?: boolean
2217
+ }
2218
+
2219
+ /**
2220
+ * Transaction createManyAndReturn
2221
+ */
2222
+ export type TransactionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2223
+ /**
2224
+ * Select specific fields to fetch from the Transaction
2225
+ */
2226
+ select?: Prisma.TransactionSelectCreateManyAndReturn<ExtArgs> | null
2227
+ /**
2228
+ * Omit specific fields from the Transaction
2229
+ */
2230
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2231
+ /**
2232
+ * The data used to create many Transactions.
2233
+ */
2234
+ data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[]
2235
+ skipDuplicates?: boolean
2236
+ /**
2237
+ * Choose, which related nodes to fetch as well
2238
+ */
2239
+ include?: Prisma.TransactionIncludeCreateManyAndReturn<ExtArgs> | null
2240
+ }
2241
+
2242
+ /**
2243
+ * Transaction update
2244
+ */
2245
+ export type TransactionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2246
+ /**
2247
+ * Select specific fields to fetch from the Transaction
2248
+ */
2249
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2250
+ /**
2251
+ * Omit specific fields from the Transaction
2252
+ */
2253
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2254
+ /**
2255
+ * Choose, which related nodes to fetch as well
2256
+ */
2257
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2258
+ /**
2259
+ * The data needed to update a Transaction.
2260
+ */
2261
+ data: Prisma.XOR<Prisma.TransactionUpdateInput, Prisma.TransactionUncheckedUpdateInput>
2262
+ /**
2263
+ * Choose, which Transaction to update.
2264
+ */
2265
+ where: Prisma.TransactionWhereUniqueInput
2266
+ }
2267
+
2268
+ /**
2269
+ * Transaction updateMany
2270
+ */
2271
+ export type TransactionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2272
+ /**
2273
+ * The data used to update Transactions.
2274
+ */
2275
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyInput>
2276
+ /**
2277
+ * Filter which Transactions to update
2278
+ */
2279
+ where?: Prisma.TransactionWhereInput
2280
+ /**
2281
+ * Limit how many Transactions to update.
2282
+ */
2283
+ limit?: number
2284
+ }
2285
+
2286
+ /**
2287
+ * Transaction updateManyAndReturn
2288
+ */
2289
+ export type TransactionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2290
+ /**
2291
+ * Select specific fields to fetch from the Transaction
2292
+ */
2293
+ select?: Prisma.TransactionSelectUpdateManyAndReturn<ExtArgs> | null
2294
+ /**
2295
+ * Omit specific fields from the Transaction
2296
+ */
2297
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2298
+ /**
2299
+ * The data used to update Transactions.
2300
+ */
2301
+ data: Prisma.XOR<Prisma.TransactionUpdateManyMutationInput, Prisma.TransactionUncheckedUpdateManyInput>
2302
+ /**
2303
+ * Filter which Transactions to update
2304
+ */
2305
+ where?: Prisma.TransactionWhereInput
2306
+ /**
2307
+ * Limit how many Transactions to update.
2308
+ */
2309
+ limit?: number
2310
+ /**
2311
+ * Choose, which related nodes to fetch as well
2312
+ */
2313
+ include?: Prisma.TransactionIncludeUpdateManyAndReturn<ExtArgs> | null
2314
+ }
2315
+
2316
+ /**
2317
+ * Transaction upsert
2318
+ */
2319
+ export type TransactionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2320
+ /**
2321
+ * Select specific fields to fetch from the Transaction
2322
+ */
2323
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2324
+ /**
2325
+ * Omit specific fields from the Transaction
2326
+ */
2327
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2328
+ /**
2329
+ * Choose, which related nodes to fetch as well
2330
+ */
2331
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2332
+ /**
2333
+ * The filter to search for the Transaction to update in case it exists.
2334
+ */
2335
+ where: Prisma.TransactionWhereUniqueInput
2336
+ /**
2337
+ * In case the Transaction found by the `where` argument doesn't exist, create a new Transaction with this data.
2338
+ */
2339
+ create: Prisma.XOR<Prisma.TransactionCreateInput, Prisma.TransactionUncheckedCreateInput>
2340
+ /**
2341
+ * In case the Transaction was found with the provided `where` argument, update it with this data.
2342
+ */
2343
+ update: Prisma.XOR<Prisma.TransactionUpdateInput, Prisma.TransactionUncheckedUpdateInput>
2344
+ }
2345
+
2346
+ /**
2347
+ * Transaction delete
2348
+ */
2349
+ export type TransactionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2350
+ /**
2351
+ * Select specific fields to fetch from the Transaction
2352
+ */
2353
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2354
+ /**
2355
+ * Omit specific fields from the Transaction
2356
+ */
2357
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2358
+ /**
2359
+ * Choose, which related nodes to fetch as well
2360
+ */
2361
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2362
+ /**
2363
+ * Filter which Transaction to delete.
2364
+ */
2365
+ where: Prisma.TransactionWhereUniqueInput
2366
+ }
2367
+
2368
+ /**
2369
+ * Transaction deleteMany
2370
+ */
2371
+ export type TransactionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2372
+ /**
2373
+ * Filter which Transactions to delete
2374
+ */
2375
+ where?: Prisma.TransactionWhereInput
2376
+ /**
2377
+ * Limit how many Transactions to delete.
2378
+ */
2379
+ limit?: number
2380
+ }
2381
+
2382
+ /**
2383
+ * Transaction without action
2384
+ */
2385
+ export type TransactionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2386
+ /**
2387
+ * Select specific fields to fetch from the Transaction
2388
+ */
2389
+ select?: Prisma.TransactionSelect<ExtArgs> | null
2390
+ /**
2391
+ * Omit specific fields from the Transaction
2392
+ */
2393
+ omit?: Prisma.TransactionOmit<ExtArgs> | null
2394
+ /**
2395
+ * Choose, which related nodes to fetch as well
2396
+ */
2397
+ include?: Prisma.TransactionInclude<ExtArgs> | null
2398
+ }