@shophost/rest-api 0.1.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 (430) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +69 -0
  3. package/global.d.ts +1 -0
  4. package/package.json +53 -0
  5. package/schemas.d.ts +1 -0
  6. package/schemas.js +2 -0
  7. package/schemas.ts +1 -0
  8. package/src/contract.d.ts +3853 -0
  9. package/src/contract.js +6 -0
  10. package/src/contract.js.map +1 -0
  11. package/src/contracts/cart.contract.d.ts +536 -0
  12. package/src/contracts/cart.contract.js +29 -0
  13. package/src/contracts/cart.contract.js.map +1 -0
  14. package/src/contracts/customers.contract.d.ts +903 -0
  15. package/src/contracts/customers.contract.js +119 -0
  16. package/src/contracts/customers.contract.js.map +1 -0
  17. package/src/contracts/files.contract.d.ts +152 -0
  18. package/src/contracts/files.contract.js +29 -0
  19. package/src/contracts/files.contract.js.map +1 -0
  20. package/src/contracts/health.contract.d.ts +38 -0
  21. package/src/contracts/health.contract.js +25 -0
  22. package/src/contracts/health.contract.js.map +1 -0
  23. package/src/contracts/index.d.ts +15466 -0
  24. package/src/contracts/index.js +32 -0
  25. package/src/contracts/index.js.map +1 -0
  26. package/src/contracts/location.contract.d.ts +127 -0
  27. package/src/contracts/location.contract.js +40 -0
  28. package/src/contracts/location.contract.js.map +1 -0
  29. package/src/contracts/manufacturers.contract.d.ts +931 -0
  30. package/src/contracts/manufacturers.contract.js +85 -0
  31. package/src/contracts/manufacturers.contract.js.map +1 -0
  32. package/src/contracts/orders.contract.d.ts +3910 -0
  33. package/src/contracts/orders.contract.js +92 -0
  34. package/src/contracts/orders.contract.js.map +1 -0
  35. package/src/contracts/organizations.contract.d.ts +2234 -0
  36. package/src/contracts/organizations.contract.js +71 -0
  37. package/src/contracts/organizations.contract.js.map +1 -0
  38. package/src/contracts/payment.contract.d.ts +64 -0
  39. package/src/contracts/payment.contract.js +20 -0
  40. package/src/contracts/payment.contract.js.map +1 -0
  41. package/src/contracts/product-categories.contract.d.ts +1172 -0
  42. package/src/contracts/product-categories.contract.js +103 -0
  43. package/src/contracts/product-categories.contract.js.map +1 -0
  44. package/src/contracts/products.contract.d.ts +3976 -0
  45. package/src/contracts/products.contract.js +128 -0
  46. package/src/contracts/products.contract.js.map +1 -0
  47. package/src/contracts/reservation.contract.d.ts +675 -0
  48. package/src/contracts/reservation.contract.js +141 -0
  49. package/src/contracts/reservation.contract.js.map +1 -0
  50. package/src/contracts/shipping-methods.contract.d.ts +1276 -0
  51. package/src/contracts/shipping-methods.contract.js +118 -0
  52. package/src/contracts/shipping-methods.contract.js.map +1 -0
  53. package/src/contracts/shipping.contract.d.ts +319 -0
  54. package/src/contracts/shipping.contract.js +42 -0
  55. package/src/contracts/shipping.contract.js.map +1 -0
  56. package/src/contracts/webhook.contract.d.ts +66 -0
  57. package/src/contracts/webhook.contract.js +28 -0
  58. package/src/contracts/webhook.contract.js.map +1 -0
  59. package/src/db/__generated__/client/client.d.ts +385 -0
  60. package/src/db/__generated__/client/client.js +44 -0
  61. package/src/db/__generated__/client/client.js.map +1 -0
  62. package/src/db/__generated__/client/commonInputTypes.d.ts +816 -0
  63. package/src/db/__generated__/client/commonInputTypes.js +10 -0
  64. package/src/db/__generated__/client/commonInputTypes.js.map +1 -0
  65. package/src/db/__generated__/client/enums.d.ts +204 -0
  66. package/src/db/__generated__/client/enums.js +199 -0
  67. package/src/db/__generated__/client/enums.js.map +1 -0
  68. package/src/db/__generated__/client/index.d.ts +1 -0
  69. package/src/db/__generated__/client/index.js +5 -0
  70. package/src/db/__generated__/client/index.js.map +1 -0
  71. package/src/db/__generated__/client/internal/class.d.ts +414 -0
  72. package/src/db/__generated__/client/internal/class.js +76 -0
  73. package/src/db/__generated__/client/internal/class.js.map +1 -0
  74. package/src/db/__generated__/client/internal/prismaNamespace.d.ts +3474 -0
  75. package/src/db/__generated__/client/internal/prismaNamespace.js +543 -0
  76. package/src/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  77. package/src/db/__generated__/client/models/Account.d.ts +1459 -0
  78. package/src/db/__generated__/client/models/Account.js +2 -0
  79. package/src/db/__generated__/client/models/Account.js.map +1 -0
  80. package/src/db/__generated__/client/models/Address.d.ts +2337 -0
  81. package/src/db/__generated__/client/models/Address.js +2 -0
  82. package/src/db/__generated__/client/models/Address.js.map +1 -0
  83. package/src/db/__generated__/client/models/Campaign.d.ts +1469 -0
  84. package/src/db/__generated__/client/models/Campaign.js +2 -0
  85. package/src/db/__generated__/client/models/Campaign.js.map +1 -0
  86. package/src/db/__generated__/client/models/ClosingTimes.d.ts +1227 -0
  87. package/src/db/__generated__/client/models/ClosingTimes.js +2 -0
  88. package/src/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  89. package/src/db/__generated__/client/models/File.d.ts +2670 -0
  90. package/src/db/__generated__/client/models/File.js +2 -0
  91. package/src/db/__generated__/client/models/File.js.map +1 -0
  92. package/src/db/__generated__/client/models/Invitation.d.ts +1363 -0
  93. package/src/db/__generated__/client/models/Invitation.js +2 -0
  94. package/src/db/__generated__/client/models/Invitation.js.map +1 -0
  95. package/src/db/__generated__/client/models/LegalEntity.d.ts +1572 -0
  96. package/src/db/__generated__/client/models/LegalEntity.js +2 -0
  97. package/src/db/__generated__/client/models/LegalEntity.js.map +1 -0
  98. package/src/db/__generated__/client/models/Manufacturer.d.ts +1746 -0
  99. package/src/db/__generated__/client/models/Manufacturer.js +2 -0
  100. package/src/db/__generated__/client/models/Manufacturer.js.map +1 -0
  101. package/src/db/__generated__/client/models/ManufacturerTranslation.d.ts +1286 -0
  102. package/src/db/__generated__/client/models/ManufacturerTranslation.js +2 -0
  103. package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  104. package/src/db/__generated__/client/models/Member.d.ts +1281 -0
  105. package/src/db/__generated__/client/models/Member.js +2 -0
  106. package/src/db/__generated__/client/models/Member.js.map +1 -0
  107. package/src/db/__generated__/client/models/Modifier.d.ts +1404 -0
  108. package/src/db/__generated__/client/models/Modifier.js +2 -0
  109. package/src/db/__generated__/client/models/Modifier.js.map +1 -0
  110. package/src/db/__generated__/client/models/ModifierGroup.d.ts +1469 -0
  111. package/src/db/__generated__/client/models/ModifierGroup.js +2 -0
  112. package/src/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  113. package/src/db/__generated__/client/models/ModifierGroupTranslation.d.ts +1181 -0
  114. package/src/db/__generated__/client/models/ModifierGroupTranslation.js +2 -0
  115. package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  116. package/src/db/__generated__/client/models/OpeningTimes.d.ts +1227 -0
  117. package/src/db/__generated__/client/models/OpeningTimes.js +2 -0
  118. package/src/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  119. package/src/db/__generated__/client/models/Order.d.ts +2820 -0
  120. package/src/db/__generated__/client/models/Order.js +2 -0
  121. package/src/db/__generated__/client/models/Order.js.map +1 -0
  122. package/src/db/__generated__/client/models/OrderItem.d.ts +1755 -0
  123. package/src/db/__generated__/client/models/OrderItem.js +2 -0
  124. package/src/db/__generated__/client/models/OrderItem.js.map +1 -0
  125. package/src/db/__generated__/client/models/OrderItemTranslation.d.ts +1181 -0
  126. package/src/db/__generated__/client/models/OrderItemTranslation.js +2 -0
  127. package/src/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  128. package/src/db/__generated__/client/models/Organization.d.ts +3996 -0
  129. package/src/db/__generated__/client/models/Organization.js +2 -0
  130. package/src/db/__generated__/client/models/Organization.js.map +1 -0
  131. package/src/db/__generated__/client/models/OrganizationConfiguration.d.ts +1954 -0
  132. package/src/db/__generated__/client/models/OrganizationConfiguration.js +2 -0
  133. package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  134. package/src/db/__generated__/client/models/Payment.d.ts +1538 -0
  135. package/src/db/__generated__/client/models/Payment.js +2 -0
  136. package/src/db/__generated__/client/models/Payment.js.map +1 -0
  137. package/src/db/__generated__/client/models/PaymentSession.d.ts +1384 -0
  138. package/src/db/__generated__/client/models/PaymentSession.js +2 -0
  139. package/src/db/__generated__/client/models/PaymentSession.js.map +1 -0
  140. package/src/db/__generated__/client/models/Product.d.ts +3136 -0
  141. package/src/db/__generated__/client/models/Product.js +2 -0
  142. package/src/db/__generated__/client/models/Product.js.map +1 -0
  143. package/src/db/__generated__/client/models/ProductCategory.d.ts +1964 -0
  144. package/src/db/__generated__/client/models/ProductCategory.js +2 -0
  145. package/src/db/__generated__/client/models/ProductCategory.js.map +1 -0
  146. package/src/db/__generated__/client/models/ProductCategoryTranslation.d.ts +1321 -0
  147. package/src/db/__generated__/client/models/ProductCategoryTranslation.js +2 -0
  148. package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  149. package/src/db/__generated__/client/models/ProductSnapshot.d.ts +1389 -0
  150. package/src/db/__generated__/client/models/ProductSnapshot.js +2 -0
  151. package/src/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  152. package/src/db/__generated__/client/models/ProductTranslation.d.ts +1321 -0
  153. package/src/db/__generated__/client/models/ProductTranslation.js +2 -0
  154. package/src/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  155. package/src/db/__generated__/client/models/Reservation.d.ts +1665 -0
  156. package/src/db/__generated__/client/models/Reservation.js +2 -0
  157. package/src/db/__generated__/client/models/Reservation.js.map +1 -0
  158. package/src/db/__generated__/client/models/Session.d.ts +1316 -0
  159. package/src/db/__generated__/client/models/Session.js +2 -0
  160. package/src/db/__generated__/client/models/Session.js.map +1 -0
  161. package/src/db/__generated__/client/models/ShippingMethod.d.ts +1934 -0
  162. package/src/db/__generated__/client/models/ShippingMethod.js +2 -0
  163. package/src/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  164. package/src/db/__generated__/client/models/ShippingZone.d.ts +1366 -0
  165. package/src/db/__generated__/client/models/ShippingZone.js +2 -0
  166. package/src/db/__generated__/client/models/ShippingZone.js.map +1 -0
  167. package/src/db/__generated__/client/models/User.d.ts +2201 -0
  168. package/src/db/__generated__/client/models/User.js +2 -0
  169. package/src/db/__generated__/client/models/User.js.map +1 -0
  170. package/src/db/__generated__/client/models/Verification.d.ts +1026 -0
  171. package/src/db/__generated__/client/models/Verification.js +2 -0
  172. package/src/db/__generated__/client/models/Verification.js.map +1 -0
  173. package/src/db/__generated__/client/models.d.ts +38 -0
  174. package/src/db/__generated__/client/models.js +2 -0
  175. package/src/db/__generated__/client/models.js.map +1 -0
  176. package/src/db/index.d.ts +1 -0
  177. package/src/db/index.js +2 -0
  178. package/src/db/index.js.map +1 -0
  179. package/src/emails/order-confirmation-email.d.ts +10 -0
  180. package/src/emails/order-confirmation-email.js +229 -0
  181. package/src/emails/order-confirmation-email.js.map +1 -0
  182. package/src/emails/order-notification-email.d.ts +10 -0
  183. package/src/emails/order-notification-email.js +229 -0
  184. package/src/emails/order-notification-email.js.map +1 -0
  185. package/src/emails/reservation-cancellation-email.d.ts +10 -0
  186. package/src/emails/reservation-cancellation-email.js +82 -0
  187. package/src/emails/reservation-cancellation-email.js.map +1 -0
  188. package/src/emails/reservation-confirmation-email.d.ts +10 -0
  189. package/src/emails/reservation-confirmation-email.js +82 -0
  190. package/src/emails/reservation-confirmation-email.js.map +1 -0
  191. package/src/emails/reservation-notification-email.d.ts +11 -0
  192. package/src/emails/reservation-notification-email.js +93 -0
  193. package/src/emails/reservation-notification-email.js.map +1 -0
  194. package/src/exceptions/http-exception.d.ts +6 -0
  195. package/src/exceptions/http-exception.js +9 -0
  196. package/src/exceptions/http-exception.js.map +1 -0
  197. package/src/handlers/webhook.handler.d.ts +8 -0
  198. package/src/handlers/webhook.handler.js +36 -0
  199. package/src/handlers/webhook.handler.js.map +1 -0
  200. package/src/index.d.ts +5 -0
  201. package/src/index.js +7 -0
  202. package/src/index.js.map +1 -0
  203. package/src/integrations/next.d.ts +25 -0
  204. package/src/integrations/next.js +69 -0
  205. package/src/integrations/next.js.map +1 -0
  206. package/src/lib/better-auth.lib.d.ts +10215 -0
  207. package/src/lib/better-auth.lib.js +96 -0
  208. package/src/lib/better-auth.lib.js.map +1 -0
  209. package/src/lib/openapi.lib.d.ts +2 -0
  210. package/src/lib/openapi.lib.js +25 -0
  211. package/src/lib/openapi.lib.js.map +1 -0
  212. package/src/lib/pino.d.ts +1 -0
  213. package/src/lib/pino.js +5 -0
  214. package/src/lib/pino.js.map +1 -0
  215. package/src/lib/prisma.d.ts +819 -0
  216. package/src/lib/prisma.js +14 -0
  217. package/src/lib/prisma.js.map +1 -0
  218. package/src/lib/stripe.d.ts +2 -0
  219. package/src/lib/stripe.js +8 -0
  220. package/src/lib/stripe.js.map +1 -0
  221. package/src/lib/ts-rest.d.ts +2 -0
  222. package/src/lib/ts-rest.js +3 -0
  223. package/src/lib/ts-rest.js.map +1 -0
  224. package/src/routers/cart.router.d.ts +536 -0
  225. package/src/routers/cart.router.js +20 -0
  226. package/src/routers/cart.router.js.map +1 -0
  227. package/src/routers/file.router.d.ts +153 -0
  228. package/src/routers/file.router.js +28 -0
  229. package/src/routers/file.router.js.map +1 -0
  230. package/src/routers/health.router.d.ts +37 -0
  231. package/src/routers/health.router.js +17 -0
  232. package/src/routers/health.router.js.map +1 -0
  233. package/src/routers/index.d.ts +11 -0
  234. package/src/routers/index.js +12 -0
  235. package/src/routers/index.js.map +1 -0
  236. package/src/routers/manufacturer.router.d.ts +931 -0
  237. package/src/routers/manufacturer.router.js +58 -0
  238. package/src/routers/manufacturer.router.js.map +1 -0
  239. package/src/routers/order.router.d.ts +3911 -0
  240. package/src/routers/order.router.js +60 -0
  241. package/src/routers/order.router.js.map +1 -0
  242. package/src/routers/organization.router.d.ts +2234 -0
  243. package/src/routers/organization.router.js +55 -0
  244. package/src/routers/organization.router.js.map +1 -0
  245. package/src/routers/payment.router.d.ts +65 -0
  246. package/src/routers/payment.router.js +22 -0
  247. package/src/routers/payment.router.js.map +1 -0
  248. package/src/routers/places.router.d.ts +132 -0
  249. package/src/routers/places.router.js +31 -0
  250. package/src/routers/places.router.js.map +1 -0
  251. package/src/routers/product-category.router.d.ts +1172 -0
  252. package/src/routers/product-category.router.js +66 -0
  253. package/src/routers/product-category.router.js.map +1 -0
  254. package/src/routers/product.router.d.ts +3976 -0
  255. package/src/routers/product.router.js +86 -0
  256. package/src/routers/product.router.js.map +1 -0
  257. package/src/routers/reservation.router.d.ts +675 -0
  258. package/src/routers/reservation.router.js +71 -0
  259. package/src/routers/reservation.router.js.map +1 -0
  260. package/src/routers/shipping-method.router.d.ts +1276 -0
  261. package/src/routers/shipping-method.router.js +67 -0
  262. package/src/routers/shipping-method.router.js.map +1 -0
  263. package/src/routers/shipping.router.d.ts +320 -0
  264. package/src/routers/shipping.router.js +38 -0
  265. package/src/routers/shipping.router.js.map +1 -0
  266. package/src/routers/webhook.router.d.ts +65 -0
  267. package/src/routers/webhook.router.js +19 -0
  268. package/src/routers/webhook.router.js.map +1 -0
  269. package/src/schemas/address.schema.d.ts +235 -0
  270. package/src/schemas/address.schema.js +114 -0
  271. package/src/schemas/address.schema.js.map +1 -0
  272. package/src/schemas/auth.schema.d.ts +29 -0
  273. package/src/schemas/auth.schema.js +39 -0
  274. package/src/schemas/auth.schema.js.map +1 -0
  275. package/src/schemas/cart.schema.d.ts +446 -0
  276. package/src/schemas/cart.schema.js +41 -0
  277. package/src/schemas/cart.schema.js.map +1 -0
  278. package/src/schemas/currency.schema.d.ts +49 -0
  279. package/src/schemas/currency.schema.js +120 -0
  280. package/src/schemas/currency.schema.js.map +1 -0
  281. package/src/schemas/error.schema.d.ts +11 -0
  282. package/src/schemas/error.schema.js +14 -0
  283. package/src/schemas/error.schema.js.map +1 -0
  284. package/src/schemas/file.schema.d.ts +115 -0
  285. package/src/schemas/file.schema.js +79 -0
  286. package/src/schemas/file.schema.js.map +1 -0
  287. package/src/schemas/fulfilment.schema.d.ts +2 -0
  288. package/src/schemas/fulfilment.schema.js +5 -0
  289. package/src/schemas/fulfilment.schema.js.map +1 -0
  290. package/src/schemas/headers.schema.d.ts +11 -0
  291. package/src/schemas/headers.schema.js +15 -0
  292. package/src/schemas/headers.schema.js.map +1 -0
  293. package/src/schemas/index.d.ts +27 -0
  294. package/src/schemas/index.js +28 -0
  295. package/src/schemas/index.js.map +1 -0
  296. package/src/schemas/legal-entity.schema.d.ts +212 -0
  297. package/src/schemas/legal-entity.schema.js +85 -0
  298. package/src/schemas/legal-entity.schema.js.map +1 -0
  299. package/src/schemas/locales.schema.d.ts +8 -0
  300. package/src/schemas/locales.schema.js +240 -0
  301. package/src/schemas/locales.schema.js.map +1 -0
  302. package/src/schemas/location.schema.d.ts +41 -0
  303. package/src/schemas/location.schema.js +50 -0
  304. package/src/schemas/location.schema.js.map +1 -0
  305. package/src/schemas/manufacturer.schema.d.ts +287 -0
  306. package/src/schemas/manufacturer.schema.js +127 -0
  307. package/src/schemas/manufacturer.schema.js.map +1 -0
  308. package/src/schemas/number.schema.d.ts +3 -0
  309. package/src/schemas/number.schema.js +29 -0
  310. package/src/schemas/number.schema.js.map +1 -0
  311. package/src/schemas/order.schema.d.ts +1046 -0
  312. package/src/schemas/order.schema.js +160 -0
  313. package/src/schemas/order.schema.js.map +1 -0
  314. package/src/schemas/organization-configuration.schema.d.ts +287 -0
  315. package/src/schemas/organization-configuration.schema.js +117 -0
  316. package/src/schemas/organization-configuration.schema.js.map +1 -0
  317. package/src/schemas/organization.schema.d.ts +894 -0
  318. package/src/schemas/organization.schema.js +66 -0
  319. package/src/schemas/organization.schema.js.map +1 -0
  320. package/src/schemas/pagination.schema.d.ts +51 -0
  321. package/src/schemas/pagination.schema.js +54 -0
  322. package/src/schemas/pagination.schema.js.map +1 -0
  323. package/src/schemas/params.schema.d.ts +19 -0
  324. package/src/schemas/params.schema.js +22 -0
  325. package/src/schemas/params.schema.js.map +1 -0
  326. package/src/schemas/payment.schema.d.ts +54 -0
  327. package/src/schemas/payment.schema.js +48 -0
  328. package/src/schemas/payment.schema.js.map +1 -0
  329. package/src/schemas/product-category.schema.d.ts +352 -0
  330. package/src/schemas/product-category.schema.js +87 -0
  331. package/src/schemas/product-category.schema.js.map +1 -0
  332. package/src/schemas/product-modifier.schema.d.ts +280 -0
  333. package/src/schemas/product-modifier.schema.js +86 -0
  334. package/src/schemas/product-modifier.schema.js.map +1 -0
  335. package/src/schemas/product.schema.d.ts +1405 -0
  336. package/src/schemas/product.schema.js +136 -0
  337. package/src/schemas/product.schema.js.map +1 -0
  338. package/src/schemas/queries.schema.d.ts +8 -0
  339. package/src/schemas/queries.schema.js +8 -0
  340. package/src/schemas/queries.schema.js.map +1 -0
  341. package/src/schemas/recipient.schema.d.ts +260 -0
  342. package/src/schemas/recipient.schema.js +40 -0
  343. package/src/schemas/recipient.schema.js.map +1 -0
  344. package/src/schemas/reservation.schema.d.ts +61 -0
  345. package/src/schemas/reservation.schema.js +53 -0
  346. package/src/schemas/reservation.schema.js.map +1 -0
  347. package/src/schemas/shipping-method.schema.d.ts +335 -0
  348. package/src/schemas/shipping-method.schema.js +50 -0
  349. package/src/schemas/shipping-method.schema.js.map +1 -0
  350. package/src/schemas/shipping-zone.schema.d.ts +24 -0
  351. package/src/schemas/shipping-zone.schema.js +33 -0
  352. package/src/schemas/shipping-zone.schema.js.map +1 -0
  353. package/src/schemas/user.schema.d.ts +24 -0
  354. package/src/schemas/user.schema.js +32 -0
  355. package/src/schemas/user.schema.js.map +1 -0
  356. package/src/services/cart.service.d.ts +60 -0
  357. package/src/services/cart.service.js +97 -0
  358. package/src/services/cart.service.js.map +1 -0
  359. package/src/services/email.service.d.ts +32 -0
  360. package/src/services/email.service.js +116 -0
  361. package/src/services/email.service.js.map +1 -0
  362. package/src/services/file.service.d.ts +28 -0
  363. package/src/services/file.service.js +66 -0
  364. package/src/services/file.service.js.map +1 -0
  365. package/src/services/location.service.d.ts +28 -0
  366. package/src/services/location.service.js +109 -0
  367. package/src/services/location.service.js.map +1 -0
  368. package/src/services/manufacturer.service.d.ts +146 -0
  369. package/src/services/manufacturer.service.js +190 -0
  370. package/src/services/manufacturer.service.js.map +1 -0
  371. package/src/services/order.service.d.ts +444 -0
  372. package/src/services/order.service.js +306 -0
  373. package/src/services/order.service.js.map +1 -0
  374. package/src/services/organization.service.d.ts +301 -0
  375. package/src/services/organization.service.js +312 -0
  376. package/src/services/organization.service.js.map +1 -0
  377. package/src/services/payment.service.d.ts +35 -0
  378. package/src/services/payment.service.js +100 -0
  379. package/src/services/payment.service.js.map +1 -0
  380. package/src/services/product-category.service.d.ts +180 -0
  381. package/src/services/product-category.service.js +220 -0
  382. package/src/services/product-category.service.js.map +1 -0
  383. package/src/services/product.service.d.ts +493 -0
  384. package/src/services/product.service.js +437 -0
  385. package/src/services/product.service.js.map +1 -0
  386. package/src/services/reservation.service.d.ts +104 -0
  387. package/src/services/reservation.service.js +231 -0
  388. package/src/services/reservation.service.js.map +1 -0
  389. package/src/services/shipping-method.service.d.ts +206 -0
  390. package/src/services/shipping-method.service.js +229 -0
  391. package/src/services/shipping-method.service.js.map +1 -0
  392. package/src/services/shipping.service.d.ts +57 -0
  393. package/src/services/shipping.service.js +96 -0
  394. package/src/services/shipping.service.js.map +1 -0
  395. package/src/services/stripe.service.d.ts +26 -0
  396. package/src/services/stripe.service.js +164 -0
  397. package/src/services/stripe.service.js.map +1 -0
  398. package/src/types/google-maps.types.d.ts +53 -0
  399. package/src/types/google-maps.types.js +2 -0
  400. package/src/types/google-maps.types.js.map +1 -0
  401. package/src/utils/auth.util.d.ts +3 -0
  402. package/src/utils/auth.util.js +36 -0
  403. package/src/utils/auth.util.js.map +1 -0
  404. package/src/utils/cart.util.d.ts +27 -0
  405. package/src/utils/cart.util.js +76 -0
  406. package/src/utils/cart.util.js.map +1 -0
  407. package/src/utils/client.util.d.ts +3853 -0
  408. package/src/utils/client.util.js +6 -0
  409. package/src/utils/client.util.js.map +1 -0
  410. package/src/utils/currency.util.d.ts +1 -0
  411. package/src/utils/currency.util.js +11 -0
  412. package/src/utils/currency.util.js.map +1 -0
  413. package/src/utils/env.util.d.ts +2 -0
  414. package/src/utils/env.util.js +8 -0
  415. package/src/utils/env.util.js.map +1 -0
  416. package/src/utils/error-handler.util.d.ts +3 -0
  417. package/src/utils/error-handler.util.js +30 -0
  418. package/src/utils/error-handler.util.js.map +1 -0
  419. package/src/utils/generate-password-hash.util.d.ts +7 -0
  420. package/src/utils/generate-password-hash.util.js +30 -0
  421. package/src/utils/generate-password-hash.util.js.map +1 -0
  422. package/src/utils/object.util.d.ts +11 -0
  423. package/src/utils/object.util.js +39 -0
  424. package/src/utils/object.util.js.map +1 -0
  425. package/src/utils/translations.util.d.ts +0 -0
  426. package/src/utils/translations.util.js +2 -0
  427. package/src/utils/translations.util.js.map +1 -0
  428. package/src/utils/zod.util.d.ts +15 -0
  429. package/src/utils/zod.util.js +85 -0
  430. package/src/utils/zod.util.js.map +1 -0
@@ -0,0 +1,1384 @@
1
+ /**
2
+ * This file exports the `PaymentSession` model and its related types.
3
+ *
4
+ * 🟢 You can import this file directly.
5
+ */
6
+ import * as runtime from "@prisma/client/runtime/library";
7
+ import type * as $Enums from "../enums.ts";
8
+ import type * as Prisma from "../internal/prismaNamespace.ts";
9
+ /**
10
+ * Model PaymentSession
11
+ *
12
+ */
13
+ export type PaymentSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentSessionPayload>;
14
+ export type AggregatePaymentSession = {
15
+ _count: PaymentSessionCountAggregateOutputType | null;
16
+ _avg: PaymentSessionAvgAggregateOutputType | null;
17
+ _sum: PaymentSessionSumAggregateOutputType | null;
18
+ _min: PaymentSessionMinAggregateOutputType | null;
19
+ _max: PaymentSessionMaxAggregateOutputType | null;
20
+ };
21
+ export type PaymentSessionAvgAggregateOutputType = {
22
+ amount: number | null;
23
+ };
24
+ export type PaymentSessionSumAggregateOutputType = {
25
+ amount: number | null;
26
+ };
27
+ export type PaymentSessionMinAggregateOutputType = {
28
+ id: string | null;
29
+ referenceId: string | null;
30
+ amount: number | null;
31
+ currency: $Enums.Currency | null;
32
+ capturedAt: Date | null;
33
+ expiredAt: Date | null;
34
+ createdAt: Date | null;
35
+ updatedAt: Date | null;
36
+ paymentId: string | null;
37
+ };
38
+ export type PaymentSessionMaxAggregateOutputType = {
39
+ id: string | null;
40
+ referenceId: string | null;
41
+ amount: number | null;
42
+ currency: $Enums.Currency | null;
43
+ capturedAt: Date | null;
44
+ expiredAt: Date | null;
45
+ createdAt: Date | null;
46
+ updatedAt: Date | null;
47
+ paymentId: string | null;
48
+ };
49
+ export type PaymentSessionCountAggregateOutputType = {
50
+ id: number;
51
+ referenceId: number;
52
+ amount: number;
53
+ currency: number;
54
+ rawData: number;
55
+ capturedAt: number;
56
+ expiredAt: number;
57
+ createdAt: number;
58
+ updatedAt: number;
59
+ paymentId: number;
60
+ _all: number;
61
+ };
62
+ export type PaymentSessionAvgAggregateInputType = {
63
+ amount?: true;
64
+ };
65
+ export type PaymentSessionSumAggregateInputType = {
66
+ amount?: true;
67
+ };
68
+ export type PaymentSessionMinAggregateInputType = {
69
+ id?: true;
70
+ referenceId?: true;
71
+ amount?: true;
72
+ currency?: true;
73
+ capturedAt?: true;
74
+ expiredAt?: true;
75
+ createdAt?: true;
76
+ updatedAt?: true;
77
+ paymentId?: true;
78
+ };
79
+ export type PaymentSessionMaxAggregateInputType = {
80
+ id?: true;
81
+ referenceId?: true;
82
+ amount?: true;
83
+ currency?: true;
84
+ capturedAt?: true;
85
+ expiredAt?: true;
86
+ createdAt?: true;
87
+ updatedAt?: true;
88
+ paymentId?: true;
89
+ };
90
+ export type PaymentSessionCountAggregateInputType = {
91
+ id?: true;
92
+ referenceId?: true;
93
+ amount?: true;
94
+ currency?: true;
95
+ rawData?: true;
96
+ capturedAt?: true;
97
+ expiredAt?: true;
98
+ createdAt?: true;
99
+ updatedAt?: true;
100
+ paymentId?: true;
101
+ _all?: true;
102
+ };
103
+ export type PaymentSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
104
+ /**
105
+ * Filter which PaymentSession to aggregate.
106
+ */
107
+ where?: Prisma.PaymentSessionWhereInput;
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
110
+ *
111
+ * Determine the order of PaymentSessions to fetch.
112
+ */
113
+ orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
116
+ *
117
+ * Sets the start position
118
+ */
119
+ cursor?: Prisma.PaymentSessionWhereUniqueInput;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Take `±n` PaymentSessions from the position of the cursor.
124
+ */
125
+ take?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
128
+ *
129
+ * Skip the first `n` PaymentSessions.
130
+ */
131
+ skip?: number;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Count returned PaymentSessions
136
+ **/
137
+ _count?: true | PaymentSessionCountAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to average
142
+ **/
143
+ _avg?: PaymentSessionAvgAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to sum
148
+ **/
149
+ _sum?: PaymentSessionSumAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the minimum value
154
+ **/
155
+ _min?: PaymentSessionMinAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to find the maximum value
160
+ **/
161
+ _max?: PaymentSessionMaxAggregateInputType;
162
+ };
163
+ export type GetPaymentSessionAggregateType<T extends PaymentSessionAggregateArgs> = {
164
+ [P in keyof T & keyof AggregatePaymentSession]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregatePaymentSession[P]> : Prisma.GetScalarType<T[P], AggregatePaymentSession[P]>;
165
+ };
166
+ export type PaymentSessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
167
+ where?: Prisma.PaymentSessionWhereInput;
168
+ orderBy?: Prisma.PaymentSessionOrderByWithAggregationInput | Prisma.PaymentSessionOrderByWithAggregationInput[];
169
+ by: Prisma.PaymentSessionScalarFieldEnum[] | Prisma.PaymentSessionScalarFieldEnum;
170
+ having?: Prisma.PaymentSessionScalarWhereWithAggregatesInput;
171
+ take?: number;
172
+ skip?: number;
173
+ _count?: PaymentSessionCountAggregateInputType | true;
174
+ _avg?: PaymentSessionAvgAggregateInputType;
175
+ _sum?: PaymentSessionSumAggregateInputType;
176
+ _min?: PaymentSessionMinAggregateInputType;
177
+ _max?: PaymentSessionMaxAggregateInputType;
178
+ };
179
+ export type PaymentSessionGroupByOutputType = {
180
+ id: string;
181
+ referenceId: string;
182
+ amount: number;
183
+ currency: $Enums.Currency;
184
+ rawData: runtime.JsonValue;
185
+ capturedAt: Date | null;
186
+ expiredAt: Date | null;
187
+ createdAt: Date;
188
+ updatedAt: Date;
189
+ paymentId: string;
190
+ _count: PaymentSessionCountAggregateOutputType | null;
191
+ _avg: PaymentSessionAvgAggregateOutputType | null;
192
+ _sum: PaymentSessionSumAggregateOutputType | null;
193
+ _min: PaymentSessionMinAggregateOutputType | null;
194
+ _max: PaymentSessionMaxAggregateOutputType | null;
195
+ };
196
+ type GetPaymentSessionGroupByPayload<T extends PaymentSessionGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<PaymentSessionGroupByOutputType, T['by']> & {
197
+ [P in ((keyof T) & (keyof PaymentSessionGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], PaymentSessionGroupByOutputType[P]> : Prisma.GetScalarType<T[P], PaymentSessionGroupByOutputType[P]>;
198
+ }>>;
199
+ export type PaymentSessionWhereInput = {
200
+ AND?: Prisma.PaymentSessionWhereInput | Prisma.PaymentSessionWhereInput[];
201
+ OR?: Prisma.PaymentSessionWhereInput[];
202
+ NOT?: Prisma.PaymentSessionWhereInput | Prisma.PaymentSessionWhereInput[];
203
+ id?: Prisma.StringFilter<"PaymentSession"> | string;
204
+ referenceId?: Prisma.StringFilter<"PaymentSession"> | string;
205
+ amount?: Prisma.FloatFilter<"PaymentSession"> | number;
206
+ currency?: Prisma.EnumCurrencyFilter<"PaymentSession"> | $Enums.Currency;
207
+ rawData?: Prisma.JsonFilter<"PaymentSession">;
208
+ capturedAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
209
+ expiredAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
210
+ createdAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
211
+ updatedAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
212
+ paymentId?: Prisma.StringFilter<"PaymentSession"> | string;
213
+ payment?: Prisma.XOR<Prisma.PaymentScalarRelationFilter, Prisma.PaymentWhereInput>;
214
+ };
215
+ export type PaymentSessionOrderByWithRelationInput = {
216
+ id?: Prisma.SortOrder;
217
+ referenceId?: Prisma.SortOrder;
218
+ amount?: Prisma.SortOrder;
219
+ currency?: Prisma.SortOrder;
220
+ rawData?: Prisma.SortOrder;
221
+ capturedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
222
+ expiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
223
+ createdAt?: Prisma.SortOrder;
224
+ updatedAt?: Prisma.SortOrder;
225
+ paymentId?: Prisma.SortOrder;
226
+ payment?: Prisma.PaymentOrderByWithRelationInput;
227
+ };
228
+ export type PaymentSessionWhereUniqueInput = Prisma.AtLeast<{
229
+ id?: string;
230
+ referenceId?: string;
231
+ AND?: Prisma.PaymentSessionWhereInput | Prisma.PaymentSessionWhereInput[];
232
+ OR?: Prisma.PaymentSessionWhereInput[];
233
+ NOT?: Prisma.PaymentSessionWhereInput | Prisma.PaymentSessionWhereInput[];
234
+ amount?: Prisma.FloatFilter<"PaymentSession"> | number;
235
+ currency?: Prisma.EnumCurrencyFilter<"PaymentSession"> | $Enums.Currency;
236
+ rawData?: Prisma.JsonFilter<"PaymentSession">;
237
+ capturedAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
238
+ expiredAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
239
+ createdAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
240
+ updatedAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
241
+ paymentId?: Prisma.StringFilter<"PaymentSession"> | string;
242
+ payment?: Prisma.XOR<Prisma.PaymentScalarRelationFilter, Prisma.PaymentWhereInput>;
243
+ }, "id" | "referenceId">;
244
+ export type PaymentSessionOrderByWithAggregationInput = {
245
+ id?: Prisma.SortOrder;
246
+ referenceId?: Prisma.SortOrder;
247
+ amount?: Prisma.SortOrder;
248
+ currency?: Prisma.SortOrder;
249
+ rawData?: Prisma.SortOrder;
250
+ capturedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
251
+ expiredAt?: Prisma.SortOrderInput | Prisma.SortOrder;
252
+ createdAt?: Prisma.SortOrder;
253
+ updatedAt?: Prisma.SortOrder;
254
+ paymentId?: Prisma.SortOrder;
255
+ _count?: Prisma.PaymentSessionCountOrderByAggregateInput;
256
+ _avg?: Prisma.PaymentSessionAvgOrderByAggregateInput;
257
+ _max?: Prisma.PaymentSessionMaxOrderByAggregateInput;
258
+ _min?: Prisma.PaymentSessionMinOrderByAggregateInput;
259
+ _sum?: Prisma.PaymentSessionSumOrderByAggregateInput;
260
+ };
261
+ export type PaymentSessionScalarWhereWithAggregatesInput = {
262
+ AND?: Prisma.PaymentSessionScalarWhereWithAggregatesInput | Prisma.PaymentSessionScalarWhereWithAggregatesInput[];
263
+ OR?: Prisma.PaymentSessionScalarWhereWithAggregatesInput[];
264
+ NOT?: Prisma.PaymentSessionScalarWhereWithAggregatesInput | Prisma.PaymentSessionScalarWhereWithAggregatesInput[];
265
+ id?: Prisma.StringWithAggregatesFilter<"PaymentSession"> | string;
266
+ referenceId?: Prisma.StringWithAggregatesFilter<"PaymentSession"> | string;
267
+ amount?: Prisma.FloatWithAggregatesFilter<"PaymentSession"> | number;
268
+ currency?: Prisma.EnumCurrencyWithAggregatesFilter<"PaymentSession"> | $Enums.Currency;
269
+ rawData?: Prisma.JsonWithAggregatesFilter<"PaymentSession">;
270
+ capturedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"PaymentSession"> | Date | string | null;
271
+ expiredAt?: Prisma.DateTimeNullableWithAggregatesFilter<"PaymentSession"> | Date | string | null;
272
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentSession"> | Date | string;
273
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PaymentSession"> | Date | string;
274
+ paymentId?: Prisma.StringWithAggregatesFilter<"PaymentSession"> | string;
275
+ };
276
+ export type PaymentSessionCreateInput = {
277
+ id?: string;
278
+ referenceId: string;
279
+ amount: number;
280
+ currency?: $Enums.Currency;
281
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
282
+ capturedAt?: Date | string | null;
283
+ expiredAt?: Date | string | null;
284
+ createdAt?: Date | string;
285
+ updatedAt?: Date | string;
286
+ payment: Prisma.PaymentCreateNestedOneWithoutSessionsInput;
287
+ };
288
+ export type PaymentSessionUncheckedCreateInput = {
289
+ id?: string;
290
+ referenceId: string;
291
+ amount: number;
292
+ currency?: $Enums.Currency;
293
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
294
+ capturedAt?: Date | string | null;
295
+ expiredAt?: Date | string | null;
296
+ createdAt?: Date | string;
297
+ updatedAt?: Date | string;
298
+ paymentId: string;
299
+ };
300
+ export type PaymentSessionUpdateInput = {
301
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
302
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
303
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
304
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
305
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
306
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
307
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
308
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
309
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
310
+ payment?: Prisma.PaymentUpdateOneRequiredWithoutSessionsNestedInput;
311
+ };
312
+ export type PaymentSessionUncheckedUpdateInput = {
313
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
314
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
315
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
316
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
317
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
318
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
319
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
320
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
321
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
322
+ paymentId?: Prisma.StringFieldUpdateOperationsInput | string;
323
+ };
324
+ export type PaymentSessionCreateManyInput = {
325
+ id?: string;
326
+ referenceId: string;
327
+ amount: number;
328
+ currency?: $Enums.Currency;
329
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
330
+ capturedAt?: Date | string | null;
331
+ expiredAt?: Date | string | null;
332
+ createdAt?: Date | string;
333
+ updatedAt?: Date | string;
334
+ paymentId: string;
335
+ };
336
+ export type PaymentSessionUpdateManyMutationInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
338
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
340
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
341
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
342
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
343
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
344
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
345
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
346
+ };
347
+ export type PaymentSessionUncheckedUpdateManyInput = {
348
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
349
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
350
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
351
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
352
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
353
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
354
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
355
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
356
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
357
+ paymentId?: Prisma.StringFieldUpdateOperationsInput | string;
358
+ };
359
+ export type PaymentSessionListRelationFilter = {
360
+ every?: Prisma.PaymentSessionWhereInput;
361
+ some?: Prisma.PaymentSessionWhereInput;
362
+ none?: Prisma.PaymentSessionWhereInput;
363
+ };
364
+ export type PaymentSessionOrderByRelationAggregateInput = {
365
+ _count?: Prisma.SortOrder;
366
+ };
367
+ export type PaymentSessionCountOrderByAggregateInput = {
368
+ id?: Prisma.SortOrder;
369
+ referenceId?: Prisma.SortOrder;
370
+ amount?: Prisma.SortOrder;
371
+ currency?: Prisma.SortOrder;
372
+ rawData?: Prisma.SortOrder;
373
+ capturedAt?: Prisma.SortOrder;
374
+ expiredAt?: Prisma.SortOrder;
375
+ createdAt?: Prisma.SortOrder;
376
+ updatedAt?: Prisma.SortOrder;
377
+ paymentId?: Prisma.SortOrder;
378
+ };
379
+ export type PaymentSessionAvgOrderByAggregateInput = {
380
+ amount?: Prisma.SortOrder;
381
+ };
382
+ export type PaymentSessionMaxOrderByAggregateInput = {
383
+ id?: Prisma.SortOrder;
384
+ referenceId?: Prisma.SortOrder;
385
+ amount?: Prisma.SortOrder;
386
+ currency?: Prisma.SortOrder;
387
+ capturedAt?: Prisma.SortOrder;
388
+ expiredAt?: Prisma.SortOrder;
389
+ createdAt?: Prisma.SortOrder;
390
+ updatedAt?: Prisma.SortOrder;
391
+ paymentId?: Prisma.SortOrder;
392
+ };
393
+ export type PaymentSessionMinOrderByAggregateInput = {
394
+ id?: Prisma.SortOrder;
395
+ referenceId?: Prisma.SortOrder;
396
+ amount?: Prisma.SortOrder;
397
+ currency?: Prisma.SortOrder;
398
+ capturedAt?: Prisma.SortOrder;
399
+ expiredAt?: Prisma.SortOrder;
400
+ createdAt?: Prisma.SortOrder;
401
+ updatedAt?: Prisma.SortOrder;
402
+ paymentId?: Prisma.SortOrder;
403
+ };
404
+ export type PaymentSessionSumOrderByAggregateInput = {
405
+ amount?: Prisma.SortOrder;
406
+ };
407
+ export type PaymentSessionCreateNestedManyWithoutPaymentInput = {
408
+ create?: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput> | Prisma.PaymentSessionCreateWithoutPaymentInput[] | Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput[];
409
+ connectOrCreate?: Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput | Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput[];
410
+ createMany?: Prisma.PaymentSessionCreateManyPaymentInputEnvelope;
411
+ connect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
412
+ };
413
+ export type PaymentSessionUncheckedCreateNestedManyWithoutPaymentInput = {
414
+ create?: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput> | Prisma.PaymentSessionCreateWithoutPaymentInput[] | Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput[];
415
+ connectOrCreate?: Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput | Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput[];
416
+ createMany?: Prisma.PaymentSessionCreateManyPaymentInputEnvelope;
417
+ connect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
418
+ };
419
+ export type PaymentSessionUpdateManyWithoutPaymentNestedInput = {
420
+ create?: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput> | Prisma.PaymentSessionCreateWithoutPaymentInput[] | Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput[];
421
+ connectOrCreate?: Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput | Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput[];
422
+ upsert?: Prisma.PaymentSessionUpsertWithWhereUniqueWithoutPaymentInput | Prisma.PaymentSessionUpsertWithWhereUniqueWithoutPaymentInput[];
423
+ createMany?: Prisma.PaymentSessionCreateManyPaymentInputEnvelope;
424
+ set?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
425
+ disconnect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
426
+ delete?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
427
+ connect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
428
+ update?: Prisma.PaymentSessionUpdateWithWhereUniqueWithoutPaymentInput | Prisma.PaymentSessionUpdateWithWhereUniqueWithoutPaymentInput[];
429
+ updateMany?: Prisma.PaymentSessionUpdateManyWithWhereWithoutPaymentInput | Prisma.PaymentSessionUpdateManyWithWhereWithoutPaymentInput[];
430
+ deleteMany?: Prisma.PaymentSessionScalarWhereInput | Prisma.PaymentSessionScalarWhereInput[];
431
+ };
432
+ export type PaymentSessionUncheckedUpdateManyWithoutPaymentNestedInput = {
433
+ create?: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput> | Prisma.PaymentSessionCreateWithoutPaymentInput[] | Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput[];
434
+ connectOrCreate?: Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput | Prisma.PaymentSessionCreateOrConnectWithoutPaymentInput[];
435
+ upsert?: Prisma.PaymentSessionUpsertWithWhereUniqueWithoutPaymentInput | Prisma.PaymentSessionUpsertWithWhereUniqueWithoutPaymentInput[];
436
+ createMany?: Prisma.PaymentSessionCreateManyPaymentInputEnvelope;
437
+ set?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
438
+ disconnect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
439
+ delete?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
440
+ connect?: Prisma.PaymentSessionWhereUniqueInput | Prisma.PaymentSessionWhereUniqueInput[];
441
+ update?: Prisma.PaymentSessionUpdateWithWhereUniqueWithoutPaymentInput | Prisma.PaymentSessionUpdateWithWhereUniqueWithoutPaymentInput[];
442
+ updateMany?: Prisma.PaymentSessionUpdateManyWithWhereWithoutPaymentInput | Prisma.PaymentSessionUpdateManyWithWhereWithoutPaymentInput[];
443
+ deleteMany?: Prisma.PaymentSessionScalarWhereInput | Prisma.PaymentSessionScalarWhereInput[];
444
+ };
445
+ export type PaymentSessionCreateWithoutPaymentInput = {
446
+ id?: string;
447
+ referenceId: string;
448
+ amount: number;
449
+ currency?: $Enums.Currency;
450
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
451
+ capturedAt?: Date | string | null;
452
+ expiredAt?: Date | string | null;
453
+ createdAt?: Date | string;
454
+ updatedAt?: Date | string;
455
+ };
456
+ export type PaymentSessionUncheckedCreateWithoutPaymentInput = {
457
+ id?: string;
458
+ referenceId: string;
459
+ amount: number;
460
+ currency?: $Enums.Currency;
461
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
462
+ capturedAt?: Date | string | null;
463
+ expiredAt?: Date | string | null;
464
+ createdAt?: Date | string;
465
+ updatedAt?: Date | string;
466
+ };
467
+ export type PaymentSessionCreateOrConnectWithoutPaymentInput = {
468
+ where: Prisma.PaymentSessionWhereUniqueInput;
469
+ create: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput>;
470
+ };
471
+ export type PaymentSessionCreateManyPaymentInputEnvelope = {
472
+ data: Prisma.PaymentSessionCreateManyPaymentInput | Prisma.PaymentSessionCreateManyPaymentInput[];
473
+ skipDuplicates?: boolean;
474
+ };
475
+ export type PaymentSessionUpsertWithWhereUniqueWithoutPaymentInput = {
476
+ where: Prisma.PaymentSessionWhereUniqueInput;
477
+ update: Prisma.XOR<Prisma.PaymentSessionUpdateWithoutPaymentInput, Prisma.PaymentSessionUncheckedUpdateWithoutPaymentInput>;
478
+ create: Prisma.XOR<Prisma.PaymentSessionCreateWithoutPaymentInput, Prisma.PaymentSessionUncheckedCreateWithoutPaymentInput>;
479
+ };
480
+ export type PaymentSessionUpdateWithWhereUniqueWithoutPaymentInput = {
481
+ where: Prisma.PaymentSessionWhereUniqueInput;
482
+ data: Prisma.XOR<Prisma.PaymentSessionUpdateWithoutPaymentInput, Prisma.PaymentSessionUncheckedUpdateWithoutPaymentInput>;
483
+ };
484
+ export type PaymentSessionUpdateManyWithWhereWithoutPaymentInput = {
485
+ where: Prisma.PaymentSessionScalarWhereInput;
486
+ data: Prisma.XOR<Prisma.PaymentSessionUpdateManyMutationInput, Prisma.PaymentSessionUncheckedUpdateManyWithoutPaymentInput>;
487
+ };
488
+ export type PaymentSessionScalarWhereInput = {
489
+ AND?: Prisma.PaymentSessionScalarWhereInput | Prisma.PaymentSessionScalarWhereInput[];
490
+ OR?: Prisma.PaymentSessionScalarWhereInput[];
491
+ NOT?: Prisma.PaymentSessionScalarWhereInput | Prisma.PaymentSessionScalarWhereInput[];
492
+ id?: Prisma.StringFilter<"PaymentSession"> | string;
493
+ referenceId?: Prisma.StringFilter<"PaymentSession"> | string;
494
+ amount?: Prisma.FloatFilter<"PaymentSession"> | number;
495
+ currency?: Prisma.EnumCurrencyFilter<"PaymentSession"> | $Enums.Currency;
496
+ rawData?: Prisma.JsonFilter<"PaymentSession">;
497
+ capturedAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
498
+ expiredAt?: Prisma.DateTimeNullableFilter<"PaymentSession"> | Date | string | null;
499
+ createdAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
500
+ updatedAt?: Prisma.DateTimeFilter<"PaymentSession"> | Date | string;
501
+ paymentId?: Prisma.StringFilter<"PaymentSession"> | string;
502
+ };
503
+ export type PaymentSessionCreateManyPaymentInput = {
504
+ id?: string;
505
+ referenceId: string;
506
+ amount: number;
507
+ currency?: $Enums.Currency;
508
+ rawData: Prisma.JsonNullValueInput | runtime.InputJsonValue;
509
+ capturedAt?: Date | string | null;
510
+ expiredAt?: Date | string | null;
511
+ createdAt?: Date | string;
512
+ updatedAt?: Date | string;
513
+ };
514
+ export type PaymentSessionUpdateWithoutPaymentInput = {
515
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
516
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
517
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
518
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
519
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
520
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
521
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
522
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
523
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ };
525
+ export type PaymentSessionUncheckedUpdateWithoutPaymentInput = {
526
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
527
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
528
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
529
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
530
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
531
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
532
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
533
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
534
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
+ };
536
+ export type PaymentSessionUncheckedUpdateManyWithoutPaymentInput = {
537
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
538
+ referenceId?: Prisma.StringFieldUpdateOperationsInput | string;
539
+ amount?: Prisma.FloatFieldUpdateOperationsInput | number;
540
+ currency?: Prisma.EnumCurrencyFieldUpdateOperationsInput | $Enums.Currency;
541
+ rawData?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
542
+ capturedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
543
+ expiredAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
544
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
545
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
546
+ };
547
+ export type PaymentSessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
548
+ id?: boolean;
549
+ referenceId?: boolean;
550
+ amount?: boolean;
551
+ currency?: boolean;
552
+ rawData?: boolean;
553
+ capturedAt?: boolean;
554
+ expiredAt?: boolean;
555
+ createdAt?: boolean;
556
+ updatedAt?: boolean;
557
+ paymentId?: boolean;
558
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
559
+ }, ExtArgs["result"]["paymentSession"]>;
560
+ export type PaymentSessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
561
+ id?: boolean;
562
+ referenceId?: boolean;
563
+ amount?: boolean;
564
+ currency?: boolean;
565
+ rawData?: boolean;
566
+ capturedAt?: boolean;
567
+ expiredAt?: boolean;
568
+ createdAt?: boolean;
569
+ updatedAt?: boolean;
570
+ paymentId?: boolean;
571
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
572
+ }, ExtArgs["result"]["paymentSession"]>;
573
+ export type PaymentSessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
574
+ id?: boolean;
575
+ referenceId?: boolean;
576
+ amount?: boolean;
577
+ currency?: boolean;
578
+ rawData?: boolean;
579
+ capturedAt?: boolean;
580
+ expiredAt?: boolean;
581
+ createdAt?: boolean;
582
+ updatedAt?: boolean;
583
+ paymentId?: boolean;
584
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
585
+ }, ExtArgs["result"]["paymentSession"]>;
586
+ export type PaymentSessionSelectScalar = {
587
+ id?: boolean;
588
+ referenceId?: boolean;
589
+ amount?: boolean;
590
+ currency?: boolean;
591
+ rawData?: boolean;
592
+ capturedAt?: boolean;
593
+ expiredAt?: boolean;
594
+ createdAt?: boolean;
595
+ updatedAt?: boolean;
596
+ paymentId?: boolean;
597
+ };
598
+ export type PaymentSessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "referenceId" | "amount" | "currency" | "rawData" | "capturedAt" | "expiredAt" | "createdAt" | "updatedAt" | "paymentId", ExtArgs["result"]["paymentSession"]>;
599
+ export type PaymentSessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
600
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
601
+ };
602
+ export type PaymentSessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
603
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
604
+ };
605
+ export type PaymentSessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
606
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
607
+ };
608
+ export type $PaymentSessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
609
+ name: "PaymentSession";
610
+ objects: {
611
+ payment: Prisma.$PaymentPayload<ExtArgs>;
612
+ };
613
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
614
+ id: string;
615
+ referenceId: string;
616
+ amount: number;
617
+ currency: $Enums.Currency;
618
+ rawData: runtime.JsonValue;
619
+ capturedAt: Date | null;
620
+ expiredAt: Date | null;
621
+ createdAt: Date;
622
+ updatedAt: Date;
623
+ paymentId: string;
624
+ }, ExtArgs["result"]["paymentSession"]>;
625
+ composites: {};
626
+ };
627
+ export type PaymentSessionGetPayload<S extends boolean | null | undefined | PaymentSessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload, S>;
628
+ export type PaymentSessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<PaymentSessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
629
+ select?: PaymentSessionCountAggregateInputType | true;
630
+ };
631
+ export interface PaymentSessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
632
+ [K: symbol]: {
633
+ types: Prisma.TypeMap<ExtArgs>['model']['PaymentSession'];
634
+ meta: {
635
+ name: 'PaymentSession';
636
+ };
637
+ };
638
+ /**
639
+ * Find zero or one PaymentSession that matches the filter.
640
+ * @param {PaymentSessionFindUniqueArgs} args - Arguments to find a PaymentSession
641
+ * @example
642
+ * // Get one PaymentSession
643
+ * const paymentSession = await prisma.paymentSession.findUnique({
644
+ * where: {
645
+ * // ... provide filter here
646
+ * }
647
+ * })
648
+ */
649
+ findUnique<T extends PaymentSessionFindUniqueArgs>(args: Prisma.SelectSubset<T, PaymentSessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
650
+ /**
651
+ * Find one PaymentSession that matches the filter or throw an error with `error.code='P2025'`
652
+ * if no matches were found.
653
+ * @param {PaymentSessionFindUniqueOrThrowArgs} args - Arguments to find a PaymentSession
654
+ * @example
655
+ * // Get one PaymentSession
656
+ * const paymentSession = await prisma.paymentSession.findUniqueOrThrow({
657
+ * where: {
658
+ * // ... provide filter here
659
+ * }
660
+ * })
661
+ */
662
+ findUniqueOrThrow<T extends PaymentSessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PaymentSessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
663
+ /**
664
+ * Find the first PaymentSession that matches the filter.
665
+ * Note, that providing `undefined` is treated as the value not being there.
666
+ * Read more here: https://pris.ly/d/null-undefined
667
+ * @param {PaymentSessionFindFirstArgs} args - Arguments to find a PaymentSession
668
+ * @example
669
+ * // Get one PaymentSession
670
+ * const paymentSession = await prisma.paymentSession.findFirst({
671
+ * where: {
672
+ * // ... provide filter here
673
+ * }
674
+ * })
675
+ */
676
+ findFirst<T extends PaymentSessionFindFirstArgs>(args?: Prisma.SelectSubset<T, PaymentSessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
677
+ /**
678
+ * Find the first PaymentSession that matches the filter or
679
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
680
+ * Note, that providing `undefined` is treated as the value not being there.
681
+ * Read more here: https://pris.ly/d/null-undefined
682
+ * @param {PaymentSessionFindFirstOrThrowArgs} args - Arguments to find a PaymentSession
683
+ * @example
684
+ * // Get one PaymentSession
685
+ * const paymentSession = await prisma.paymentSession.findFirstOrThrow({
686
+ * where: {
687
+ * // ... provide filter here
688
+ * }
689
+ * })
690
+ */
691
+ findFirstOrThrow<T extends PaymentSessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PaymentSessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
692
+ /**
693
+ * Find zero or more PaymentSessions that matches the filter.
694
+ * Note, that providing `undefined` is treated as the value not being there.
695
+ * Read more here: https://pris.ly/d/null-undefined
696
+ * @param {PaymentSessionFindManyArgs} args - Arguments to filter and select certain fields only.
697
+ * @example
698
+ * // Get all PaymentSessions
699
+ * const paymentSessions = await prisma.paymentSession.findMany()
700
+ *
701
+ * // Get first 10 PaymentSessions
702
+ * const paymentSessions = await prisma.paymentSession.findMany({ take: 10 })
703
+ *
704
+ * // Only select the `id`
705
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.findMany({ select: { id: true } })
706
+ *
707
+ */
708
+ findMany<T extends PaymentSessionFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
709
+ /**
710
+ * Create a PaymentSession.
711
+ * @param {PaymentSessionCreateArgs} args - Arguments to create a PaymentSession.
712
+ * @example
713
+ * // Create one PaymentSession
714
+ * const PaymentSession = await prisma.paymentSession.create({
715
+ * data: {
716
+ * // ... data to create a PaymentSession
717
+ * }
718
+ * })
719
+ *
720
+ */
721
+ create<T extends PaymentSessionCreateArgs>(args: Prisma.SelectSubset<T, PaymentSessionCreateArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
722
+ /**
723
+ * Create many PaymentSessions.
724
+ * @param {PaymentSessionCreateManyArgs} args - Arguments to create many PaymentSessions.
725
+ * @example
726
+ * // Create many PaymentSessions
727
+ * const paymentSession = await prisma.paymentSession.createMany({
728
+ * data: [
729
+ * // ... provide data here
730
+ * ]
731
+ * })
732
+ *
733
+ */
734
+ createMany<T extends PaymentSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
735
+ /**
736
+ * Create many PaymentSessions and returns the data saved in the database.
737
+ * @param {PaymentSessionCreateManyAndReturnArgs} args - Arguments to create many PaymentSessions.
738
+ * @example
739
+ * // Create many PaymentSessions
740
+ * const paymentSession = await prisma.paymentSession.createManyAndReturn({
741
+ * data: [
742
+ * // ... provide data here
743
+ * ]
744
+ * })
745
+ *
746
+ * // Create many PaymentSessions and only return the `id`
747
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.createManyAndReturn({
748
+ * select: { id: true },
749
+ * data: [
750
+ * // ... provide data here
751
+ * ]
752
+ * })
753
+ * Note, that providing `undefined` is treated as the value not being there.
754
+ * Read more here: https://pris.ly/d/null-undefined
755
+ *
756
+ */
757
+ createManyAndReturn<T extends PaymentSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PaymentSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
758
+ /**
759
+ * Delete a PaymentSession.
760
+ * @param {PaymentSessionDeleteArgs} args - Arguments to delete one PaymentSession.
761
+ * @example
762
+ * // Delete one PaymentSession
763
+ * const PaymentSession = await prisma.paymentSession.delete({
764
+ * where: {
765
+ * // ... filter to delete one PaymentSession
766
+ * }
767
+ * })
768
+ *
769
+ */
770
+ delete<T extends PaymentSessionDeleteArgs>(args: Prisma.SelectSubset<T, PaymentSessionDeleteArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
771
+ /**
772
+ * Update one PaymentSession.
773
+ * @param {PaymentSessionUpdateArgs} args - Arguments to update one PaymentSession.
774
+ * @example
775
+ * // Update one PaymentSession
776
+ * const paymentSession = await prisma.paymentSession.update({
777
+ * where: {
778
+ * // ... provide filter here
779
+ * },
780
+ * data: {
781
+ * // ... provide data here
782
+ * }
783
+ * })
784
+ *
785
+ */
786
+ update<T extends PaymentSessionUpdateArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpdateArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
787
+ /**
788
+ * Delete zero or more PaymentSessions.
789
+ * @param {PaymentSessionDeleteManyArgs} args - Arguments to filter PaymentSessions to delete.
790
+ * @example
791
+ * // Delete a few PaymentSessions
792
+ * const { count } = await prisma.paymentSession.deleteMany({
793
+ * where: {
794
+ * // ... provide filter here
795
+ * }
796
+ * })
797
+ *
798
+ */
799
+ deleteMany<T extends PaymentSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
800
+ /**
801
+ * Update zero or more PaymentSessions.
802
+ * Note, that providing `undefined` is treated as the value not being there.
803
+ * Read more here: https://pris.ly/d/null-undefined
804
+ * @param {PaymentSessionUpdateManyArgs} args - Arguments to update one or more rows.
805
+ * @example
806
+ * // Update many PaymentSessions
807
+ * const paymentSession = await prisma.paymentSession.updateMany({
808
+ * where: {
809
+ * // ... provide filter here
810
+ * },
811
+ * data: {
812
+ * // ... provide data here
813
+ * }
814
+ * })
815
+ *
816
+ */
817
+ updateMany<T extends PaymentSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
818
+ /**
819
+ * Update zero or more PaymentSessions and returns the data updated in the database.
820
+ * @param {PaymentSessionUpdateManyAndReturnArgs} args - Arguments to update many PaymentSessions.
821
+ * @example
822
+ * // Update many PaymentSessions
823
+ * const paymentSession = await prisma.paymentSession.updateManyAndReturn({
824
+ * where: {
825
+ * // ... provide filter here
826
+ * },
827
+ * data: [
828
+ * // ... provide data here
829
+ * ]
830
+ * })
831
+ *
832
+ * // Update zero or more PaymentSessions and only return the `id`
833
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.updateManyAndReturn({
834
+ * select: { id: true },
835
+ * where: {
836
+ * // ... provide filter here
837
+ * },
838
+ * data: [
839
+ * // ... provide data here
840
+ * ]
841
+ * })
842
+ * Note, that providing `undefined` is treated as the value not being there.
843
+ * Read more here: https://pris.ly/d/null-undefined
844
+ *
845
+ */
846
+ updateManyAndReturn<T extends PaymentSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
847
+ /**
848
+ * Create or update one PaymentSession.
849
+ * @param {PaymentSessionUpsertArgs} args - Arguments to update or create a PaymentSession.
850
+ * @example
851
+ * // Update or create a PaymentSession
852
+ * const paymentSession = await prisma.paymentSession.upsert({
853
+ * create: {
854
+ * // ... data to create a PaymentSession
855
+ * },
856
+ * update: {
857
+ * // ... in case it already exists, update
858
+ * },
859
+ * where: {
860
+ * // ... the filter for the PaymentSession we want to update
861
+ * }
862
+ * })
863
+ */
864
+ upsert<T extends PaymentSessionUpsertArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpsertArgs<ExtArgs>>): Prisma.Prisma__PaymentSessionClient<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
865
+ /**
866
+ * Count the number of PaymentSessions.
867
+ * Note, that providing `undefined` is treated as the value not being there.
868
+ * Read more here: https://pris.ly/d/null-undefined
869
+ * @param {PaymentSessionCountArgs} args - Arguments to filter PaymentSessions to count.
870
+ * @example
871
+ * // Count the number of PaymentSessions
872
+ * const count = await prisma.paymentSession.count({
873
+ * where: {
874
+ * // ... the filter for the PaymentSessions we want to count
875
+ * }
876
+ * })
877
+ **/
878
+ count<T extends PaymentSessionCountArgs>(args?: Prisma.Subset<T, PaymentSessionCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PaymentSessionCountAggregateOutputType> : number>;
879
+ /**
880
+ * Allows you to perform aggregations operations on a PaymentSession.
881
+ * Note, that providing `undefined` is treated as the value not being there.
882
+ * Read more here: https://pris.ly/d/null-undefined
883
+ * @param {PaymentSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
884
+ * @example
885
+ * // Ordered by age ascending
886
+ * // Where email contains prisma.io
887
+ * // Limited to the 10 users
888
+ * const aggregations = await prisma.user.aggregate({
889
+ * _avg: {
890
+ * age: true,
891
+ * },
892
+ * where: {
893
+ * email: {
894
+ * contains: "prisma.io",
895
+ * },
896
+ * },
897
+ * orderBy: {
898
+ * age: "asc",
899
+ * },
900
+ * take: 10,
901
+ * })
902
+ **/
903
+ aggregate<T extends PaymentSessionAggregateArgs>(args: Prisma.Subset<T, PaymentSessionAggregateArgs>): Prisma.PrismaPromise<GetPaymentSessionAggregateType<T>>;
904
+ /**
905
+ * Group by PaymentSession.
906
+ * Note, that providing `undefined` is treated as the value not being there.
907
+ * Read more here: https://pris.ly/d/null-undefined
908
+ * @param {PaymentSessionGroupByArgs} args - Group by arguments.
909
+ * @example
910
+ * // Group by city, order by createdAt, get count
911
+ * const result = await prisma.user.groupBy({
912
+ * by: ['city', 'createdAt'],
913
+ * orderBy: {
914
+ * createdAt: true
915
+ * },
916
+ * _count: {
917
+ * _all: true
918
+ * },
919
+ * })
920
+ *
921
+ **/
922
+ groupBy<T extends PaymentSessionGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
923
+ orderBy: PaymentSessionGroupByArgs['orderBy'];
924
+ } : {
925
+ orderBy?: PaymentSessionGroupByArgs['orderBy'];
926
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
927
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
928
+ Error,
929
+ 'Field ',
930
+ P,
931
+ ` in "having" needs to be provided in "by"`
932
+ ];
933
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
934
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
935
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
936
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
937
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
938
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
939
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
940
+ /**
941
+ * Fields of the PaymentSession model
942
+ */
943
+ readonly fields: PaymentSessionFieldRefs;
944
+ }
945
+ /**
946
+ * The delegate class that acts as a "Promise-like" for PaymentSession.
947
+ * Why is this prefixed with `Prisma__`?
948
+ * Because we want to prevent naming conflicts as mentioned in
949
+ * https://github.com/prisma/prisma-client-js/issues/707
950
+ */
951
+ export interface Prisma__PaymentSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
952
+ readonly [Symbol.toStringTag]: "PrismaPromise";
953
+ payment<T extends Prisma.PaymentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PaymentDefaultArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
954
+ /**
955
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
956
+ * @param onfulfilled The callback to execute when the Promise is resolved.
957
+ * @param onrejected The callback to execute when the Promise is rejected.
958
+ * @returns A Promise for the completion of which ever callback is executed.
959
+ */
960
+ 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>;
961
+ /**
962
+ * Attaches a callback for only the rejection of the Promise.
963
+ * @param onrejected The callback to execute when the Promise is rejected.
964
+ * @returns A Promise for the completion of the callback.
965
+ */
966
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
967
+ /**
968
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
969
+ * resolved value cannot be modified from the callback.
970
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
971
+ * @returns A Promise for the completion of the callback.
972
+ */
973
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
974
+ }
975
+ /**
976
+ * Fields of the PaymentSession model
977
+ */
978
+ export interface PaymentSessionFieldRefs {
979
+ readonly id: Prisma.FieldRef<"PaymentSession", 'String'>;
980
+ readonly referenceId: Prisma.FieldRef<"PaymentSession", 'String'>;
981
+ readonly amount: Prisma.FieldRef<"PaymentSession", 'Float'>;
982
+ readonly currency: Prisma.FieldRef<"PaymentSession", 'Currency'>;
983
+ readonly rawData: Prisma.FieldRef<"PaymentSession", 'Json'>;
984
+ readonly capturedAt: Prisma.FieldRef<"PaymentSession", 'DateTime'>;
985
+ readonly expiredAt: Prisma.FieldRef<"PaymentSession", 'DateTime'>;
986
+ readonly createdAt: Prisma.FieldRef<"PaymentSession", 'DateTime'>;
987
+ readonly updatedAt: Prisma.FieldRef<"PaymentSession", 'DateTime'>;
988
+ readonly paymentId: Prisma.FieldRef<"PaymentSession", 'String'>;
989
+ }
990
+ /**
991
+ * PaymentSession findUnique
992
+ */
993
+ export type PaymentSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
994
+ /**
995
+ * Select specific fields to fetch from the PaymentSession
996
+ */
997
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
998
+ /**
999
+ * Omit specific fields from the PaymentSession
1000
+ */
1001
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1002
+ /**
1003
+ * Choose, which related nodes to fetch as well
1004
+ */
1005
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1006
+ /**
1007
+ * Filter, which PaymentSession to fetch.
1008
+ */
1009
+ where: Prisma.PaymentSessionWhereUniqueInput;
1010
+ };
1011
+ /**
1012
+ * PaymentSession findUniqueOrThrow
1013
+ */
1014
+ export type PaymentSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1015
+ /**
1016
+ * Select specific fields to fetch from the PaymentSession
1017
+ */
1018
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1019
+ /**
1020
+ * Omit specific fields from the PaymentSession
1021
+ */
1022
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1023
+ /**
1024
+ * Choose, which related nodes to fetch as well
1025
+ */
1026
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1027
+ /**
1028
+ * Filter, which PaymentSession to fetch.
1029
+ */
1030
+ where: Prisma.PaymentSessionWhereUniqueInput;
1031
+ };
1032
+ /**
1033
+ * PaymentSession findFirst
1034
+ */
1035
+ export type PaymentSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1036
+ /**
1037
+ * Select specific fields to fetch from the PaymentSession
1038
+ */
1039
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1040
+ /**
1041
+ * Omit specific fields from the PaymentSession
1042
+ */
1043
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1044
+ /**
1045
+ * Choose, which related nodes to fetch as well
1046
+ */
1047
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1048
+ /**
1049
+ * Filter, which PaymentSession to fetch.
1050
+ */
1051
+ where?: Prisma.PaymentSessionWhereInput;
1052
+ /**
1053
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1054
+ *
1055
+ * Determine the order of PaymentSessions to fetch.
1056
+ */
1057
+ orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1058
+ /**
1059
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1060
+ *
1061
+ * Sets the position for searching for PaymentSessions.
1062
+ */
1063
+ cursor?: Prisma.PaymentSessionWhereUniqueInput;
1064
+ /**
1065
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1066
+ *
1067
+ * Take `±n` PaymentSessions from the position of the cursor.
1068
+ */
1069
+ take?: number;
1070
+ /**
1071
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1072
+ *
1073
+ * Skip the first `n` PaymentSessions.
1074
+ */
1075
+ skip?: number;
1076
+ /**
1077
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1078
+ *
1079
+ * Filter by unique combinations of PaymentSessions.
1080
+ */
1081
+ distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
1082
+ };
1083
+ /**
1084
+ * PaymentSession findFirstOrThrow
1085
+ */
1086
+ export type PaymentSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1087
+ /**
1088
+ * Select specific fields to fetch from the PaymentSession
1089
+ */
1090
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1091
+ /**
1092
+ * Omit specific fields from the PaymentSession
1093
+ */
1094
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1095
+ /**
1096
+ * Choose, which related nodes to fetch as well
1097
+ */
1098
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1099
+ /**
1100
+ * Filter, which PaymentSession to fetch.
1101
+ */
1102
+ where?: Prisma.PaymentSessionWhereInput;
1103
+ /**
1104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1105
+ *
1106
+ * Determine the order of PaymentSessions to fetch.
1107
+ */
1108
+ orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1109
+ /**
1110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1111
+ *
1112
+ * Sets the position for searching for PaymentSessions.
1113
+ */
1114
+ cursor?: Prisma.PaymentSessionWhereUniqueInput;
1115
+ /**
1116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1117
+ *
1118
+ * Take `±n` PaymentSessions from the position of the cursor.
1119
+ */
1120
+ take?: number;
1121
+ /**
1122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1123
+ *
1124
+ * Skip the first `n` PaymentSessions.
1125
+ */
1126
+ skip?: number;
1127
+ /**
1128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1129
+ *
1130
+ * Filter by unique combinations of PaymentSessions.
1131
+ */
1132
+ distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
1133
+ };
1134
+ /**
1135
+ * PaymentSession findMany
1136
+ */
1137
+ export type PaymentSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1138
+ /**
1139
+ * Select specific fields to fetch from the PaymentSession
1140
+ */
1141
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1142
+ /**
1143
+ * Omit specific fields from the PaymentSession
1144
+ */
1145
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1146
+ /**
1147
+ * Choose, which related nodes to fetch as well
1148
+ */
1149
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1150
+ /**
1151
+ * Filter, which PaymentSessions to fetch.
1152
+ */
1153
+ where?: Prisma.PaymentSessionWhereInput;
1154
+ /**
1155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1156
+ *
1157
+ * Determine the order of PaymentSessions to fetch.
1158
+ */
1159
+ orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1160
+ /**
1161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1162
+ *
1163
+ * Sets the position for listing PaymentSessions.
1164
+ */
1165
+ cursor?: Prisma.PaymentSessionWhereUniqueInput;
1166
+ /**
1167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1168
+ *
1169
+ * Take `±n` PaymentSessions from the position of the cursor.
1170
+ */
1171
+ take?: number;
1172
+ /**
1173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1174
+ *
1175
+ * Skip the first `n` PaymentSessions.
1176
+ */
1177
+ skip?: number;
1178
+ distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
1179
+ };
1180
+ /**
1181
+ * PaymentSession create
1182
+ */
1183
+ export type PaymentSessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1184
+ /**
1185
+ * Select specific fields to fetch from the PaymentSession
1186
+ */
1187
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1188
+ /**
1189
+ * Omit specific fields from the PaymentSession
1190
+ */
1191
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
1195
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1196
+ /**
1197
+ * The data needed to create a PaymentSession.
1198
+ */
1199
+ data: Prisma.XOR<Prisma.PaymentSessionCreateInput, Prisma.PaymentSessionUncheckedCreateInput>;
1200
+ };
1201
+ /**
1202
+ * PaymentSession createMany
1203
+ */
1204
+ export type PaymentSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ /**
1206
+ * The data used to create many PaymentSessions.
1207
+ */
1208
+ data: Prisma.PaymentSessionCreateManyInput | Prisma.PaymentSessionCreateManyInput[];
1209
+ skipDuplicates?: boolean;
1210
+ };
1211
+ /**
1212
+ * PaymentSession createManyAndReturn
1213
+ */
1214
+ export type PaymentSessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1215
+ /**
1216
+ * Select specific fields to fetch from the PaymentSession
1217
+ */
1218
+ select?: Prisma.PaymentSessionSelectCreateManyAndReturn<ExtArgs> | null;
1219
+ /**
1220
+ * Omit specific fields from the PaymentSession
1221
+ */
1222
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1223
+ /**
1224
+ * The data used to create many PaymentSessions.
1225
+ */
1226
+ data: Prisma.PaymentSessionCreateManyInput | Prisma.PaymentSessionCreateManyInput[];
1227
+ skipDuplicates?: boolean;
1228
+ /**
1229
+ * Choose, which related nodes to fetch as well
1230
+ */
1231
+ include?: Prisma.PaymentSessionIncludeCreateManyAndReturn<ExtArgs> | null;
1232
+ };
1233
+ /**
1234
+ * PaymentSession update
1235
+ */
1236
+ export type PaymentSessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1237
+ /**
1238
+ * Select specific fields to fetch from the PaymentSession
1239
+ */
1240
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1241
+ /**
1242
+ * Omit specific fields from the PaymentSession
1243
+ */
1244
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1245
+ /**
1246
+ * Choose, which related nodes to fetch as well
1247
+ */
1248
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1249
+ /**
1250
+ * The data needed to update a PaymentSession.
1251
+ */
1252
+ data: Prisma.XOR<Prisma.PaymentSessionUpdateInput, Prisma.PaymentSessionUncheckedUpdateInput>;
1253
+ /**
1254
+ * Choose, which PaymentSession to update.
1255
+ */
1256
+ where: Prisma.PaymentSessionWhereUniqueInput;
1257
+ };
1258
+ /**
1259
+ * PaymentSession updateMany
1260
+ */
1261
+ export type PaymentSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1262
+ /**
1263
+ * The data used to update PaymentSessions.
1264
+ */
1265
+ data: Prisma.XOR<Prisma.PaymentSessionUpdateManyMutationInput, Prisma.PaymentSessionUncheckedUpdateManyInput>;
1266
+ /**
1267
+ * Filter which PaymentSessions to update
1268
+ */
1269
+ where?: Prisma.PaymentSessionWhereInput;
1270
+ /**
1271
+ * Limit how many PaymentSessions to update.
1272
+ */
1273
+ limit?: number;
1274
+ };
1275
+ /**
1276
+ * PaymentSession updateManyAndReturn
1277
+ */
1278
+ export type PaymentSessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the PaymentSession
1281
+ */
1282
+ select?: Prisma.PaymentSessionSelectUpdateManyAndReturn<ExtArgs> | null;
1283
+ /**
1284
+ * Omit specific fields from the PaymentSession
1285
+ */
1286
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1287
+ /**
1288
+ * The data used to update PaymentSessions.
1289
+ */
1290
+ data: Prisma.XOR<Prisma.PaymentSessionUpdateManyMutationInput, Prisma.PaymentSessionUncheckedUpdateManyInput>;
1291
+ /**
1292
+ * Filter which PaymentSessions to update
1293
+ */
1294
+ where?: Prisma.PaymentSessionWhereInput;
1295
+ /**
1296
+ * Limit how many PaymentSessions to update.
1297
+ */
1298
+ limit?: number;
1299
+ /**
1300
+ * Choose, which related nodes to fetch as well
1301
+ */
1302
+ include?: Prisma.PaymentSessionIncludeUpdateManyAndReturn<ExtArgs> | null;
1303
+ };
1304
+ /**
1305
+ * PaymentSession upsert
1306
+ */
1307
+ export type PaymentSessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1308
+ /**
1309
+ * Select specific fields to fetch from the PaymentSession
1310
+ */
1311
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1312
+ /**
1313
+ * Omit specific fields from the PaymentSession
1314
+ */
1315
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1316
+ /**
1317
+ * Choose, which related nodes to fetch as well
1318
+ */
1319
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1320
+ /**
1321
+ * The filter to search for the PaymentSession to update in case it exists.
1322
+ */
1323
+ where: Prisma.PaymentSessionWhereUniqueInput;
1324
+ /**
1325
+ * In case the PaymentSession found by the `where` argument doesn't exist, create a new PaymentSession with this data.
1326
+ */
1327
+ create: Prisma.XOR<Prisma.PaymentSessionCreateInput, Prisma.PaymentSessionUncheckedCreateInput>;
1328
+ /**
1329
+ * In case the PaymentSession was found with the provided `where` argument, update it with this data.
1330
+ */
1331
+ update: Prisma.XOR<Prisma.PaymentSessionUpdateInput, Prisma.PaymentSessionUncheckedUpdateInput>;
1332
+ };
1333
+ /**
1334
+ * PaymentSession delete
1335
+ */
1336
+ export type PaymentSessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1337
+ /**
1338
+ * Select specific fields to fetch from the PaymentSession
1339
+ */
1340
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1341
+ /**
1342
+ * Omit specific fields from the PaymentSession
1343
+ */
1344
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1345
+ /**
1346
+ * Choose, which related nodes to fetch as well
1347
+ */
1348
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1349
+ /**
1350
+ * Filter which PaymentSession to delete.
1351
+ */
1352
+ where: Prisma.PaymentSessionWhereUniqueInput;
1353
+ };
1354
+ /**
1355
+ * PaymentSession deleteMany
1356
+ */
1357
+ export type PaymentSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Filter which PaymentSessions to delete
1360
+ */
1361
+ where?: Prisma.PaymentSessionWhereInput;
1362
+ /**
1363
+ * Limit how many PaymentSessions to delete.
1364
+ */
1365
+ limit?: number;
1366
+ };
1367
+ /**
1368
+ * PaymentSession without action
1369
+ */
1370
+ export type PaymentSessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1371
+ /**
1372
+ * Select specific fields to fetch from the PaymentSession
1373
+ */
1374
+ select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1375
+ /**
1376
+ * Omit specific fields from the PaymentSession
1377
+ */
1378
+ omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
1382
+ include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1383
+ };
1384
+ export {};