@shophost/rest-api 2.0.32 → 2.0.34

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 (348) hide show
  1. package/package.json +13 -14
  2. package/src/app.js +53 -1
  3. package/src/app.js.map +1 -0
  4. package/src/core/auth/auth.schema.js +41 -1
  5. package/src/core/auth/auth.schema.js.map +1 -0
  6. package/src/core/auth/auth.util.js +44 -1
  7. package/src/core/auth/auth.util.js.map +1 -0
  8. package/src/core/auth/better-auth.lib.js +100 -1
  9. package/src/core/auth/better-auth.lib.js.map +1 -0
  10. package/src/core/auth/generate-password-hash.util.d.ts +3 -0
  11. package/src/core/auth/generate-password-hash.util.js +30 -1
  12. package/src/core/auth/generate-password-hash.util.js.map +1 -0
  13. package/src/core/auth/headers.schema.js +22 -1
  14. package/src/core/auth/headers.schema.js.map +1 -0
  15. package/src/core/auth/user.schema.js +30 -1
  16. package/src/core/auth/user.schema.js.map +1 -0
  17. package/src/core/db/__generated__/client/browser.d.ts +128 -0
  18. package/src/core/db/__generated__/client/browser.js +18 -1
  19. package/src/core/db/__generated__/client/browser.js.map +1 -0
  20. package/src/core/db/__generated__/client/client.d.ts +143 -0
  21. package/src/core/db/__generated__/client/client.js +35 -1
  22. package/src/core/db/__generated__/client/client.js.map +1 -0
  23. package/src/core/db/__generated__/client/commonInputTypes.js +11 -1
  24. package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
  25. package/src/core/db/__generated__/client/enums.js +200 -1
  26. package/src/core/db/__generated__/client/enums.js.map +1 -0
  27. package/src/core/db/__generated__/client/internal/class.d.ts +343 -0
  28. package/src/core/db/__generated__/client/internal/class.js +55 -1
  29. package/src/core/db/__generated__/client/internal/class.js.map +1 -0
  30. package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +234 -0
  31. package/src/core/db/__generated__/client/internal/prismaNamespace.js +541 -1
  32. package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
  33. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +15 -0
  34. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -1
  35. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
  36. package/src/core/db/__generated__/client/models/Account.d.ts +633 -0
  37. package/src/core/db/__generated__/client/models/Account.js +2 -1
  38. package/src/core/db/__generated__/client/models/Account.js.map +1 -0
  39. package/src/core/db/__generated__/client/models/Address.d.ts +706 -0
  40. package/src/core/db/__generated__/client/models/Address.js +2 -1
  41. package/src/core/db/__generated__/client/models/Address.js.map +1 -0
  42. package/src/core/db/__generated__/client/models/Campaign.d.ts +643 -0
  43. package/src/core/db/__generated__/client/models/Campaign.js +2 -1
  44. package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
  45. package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +639 -0
  46. package/src/core/db/__generated__/client/models/ClosingTimes.js +2 -1
  47. package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
  48. package/src/core/db/__generated__/client/models/File.d.ts +757 -0
  49. package/src/core/db/__generated__/client/models/File.js +2 -1
  50. package/src/core/db/__generated__/client/models/File.js.map +1 -0
  51. package/src/core/db/__generated__/client/models/Invitation.d.ts +633 -0
  52. package/src/core/db/__generated__/client/models/Invitation.js +2 -1
  53. package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
  54. package/src/core/db/__generated__/client/models/LegalEntity.d.ts +657 -0
  55. package/src/core/db/__generated__/client/models/LegalEntity.js +2 -1
  56. package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
  57. package/src/core/db/__generated__/client/models/Manufacturer.d.ts +684 -0
  58. package/src/core/db/__generated__/client/models/Manufacturer.js +2 -1
  59. package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
  60. package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +633 -0
  61. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +2 -1
  62. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
  63. package/src/core/db/__generated__/client/models/Member.d.ts +633 -0
  64. package/src/core/db/__generated__/client/models/Member.js +2 -1
  65. package/src/core/db/__generated__/client/models/Member.js.map +1 -0
  66. package/src/core/db/__generated__/client/models/Modifier.d.ts +667 -0
  67. package/src/core/db/__generated__/client/models/Modifier.js +2 -1
  68. package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
  69. package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +691 -0
  70. package/src/core/db/__generated__/client/models/ModifierGroup.js +2 -1
  71. package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
  72. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +633 -0
  73. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +2 -1
  74. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
  75. package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +639 -0
  76. package/src/core/db/__generated__/client/models/OpeningTimes.js +2 -1
  77. package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
  78. package/src/core/db/__generated__/client/models/Order.d.ts +705 -0
  79. package/src/core/db/__generated__/client/models/Order.js +2 -1
  80. package/src/core/db/__generated__/client/models/Order.js.map +1 -0
  81. package/src/core/db/__generated__/client/models/OrderItem.d.ts +691 -0
  82. package/src/core/db/__generated__/client/models/OrderItem.js +2 -1
  83. package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
  84. package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +633 -0
  85. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +2 -1
  86. package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
  87. package/src/core/db/__generated__/client/models/Organization.d.ts +816 -0
  88. package/src/core/db/__generated__/client/models/Organization.js +2 -1
  89. package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
  90. package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +681 -0
  91. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +2 -1
  92. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
  93. package/src/core/db/__generated__/client/models/Payment.d.ts +673 -0
  94. package/src/core/db/__generated__/client/models/Payment.js +2 -1
  95. package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
  96. package/src/core/db/__generated__/client/models/PaymentSession.d.ts +643 -0
  97. package/src/core/db/__generated__/client/models/PaymentSession.js +2 -1
  98. package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
  99. package/src/core/db/__generated__/client/models/Product.d.ts +751 -0
  100. package/src/core/db/__generated__/client/models/Product.js +2 -1
  101. package/src/core/db/__generated__/client/models/Product.js.map +1 -0
  102. package/src/core/db/__generated__/client/models/ProductCategory.d.ts +694 -0
  103. package/src/core/db/__generated__/client/models/ProductCategory.js +2 -1
  104. package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
  105. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +633 -0
  106. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +2 -1
  107. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
  108. package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +669 -0
  109. package/src/core/db/__generated__/client/models/ProductSnapshot.js +2 -1
  110. package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
  111. package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +633 -0
  112. package/src/core/db/__generated__/client/models/ProductTranslation.js +2 -1
  113. package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
  114. package/src/core/db/__generated__/client/models/Reservation.d.ts +655 -0
  115. package/src/core/db/__generated__/client/models/Reservation.js +2 -1
  116. package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
  117. package/src/core/db/__generated__/client/models/Session.d.ts +633 -0
  118. package/src/core/db/__generated__/client/models/Session.js +2 -1
  119. package/src/core/db/__generated__/client/models/Session.js.map +1 -0
  120. package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +684 -0
  121. package/src/core/db/__generated__/client/models/ShippingMethod.js +2 -1
  122. package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
  123. package/src/core/db/__generated__/client/models/ShippingZone.d.ts +643 -0
  124. package/src/core/db/__generated__/client/models/ShippingZone.js +2 -1
  125. package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
  126. package/src/core/db/__generated__/client/models/User.d.ts +741 -0
  127. package/src/core/db/__generated__/client/models/User.js +2 -1
  128. package/src/core/db/__generated__/client/models/User.js.map +1 -0
  129. package/src/core/db/__generated__/client/models/Verification.d.ts +597 -0
  130. package/src/core/db/__generated__/client/models/Verification.js +2 -1
  131. package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
  132. package/src/core/db/__generated__/client/models.js +2 -1
  133. package/src/core/db/__generated__/client/models.js.map +1 -0
  134. package/src/core/db/index.js +2 -1
  135. package/src/core/db/index.js.map +1 -0
  136. package/src/core/exceptions/http-exception.js +9 -1
  137. package/src/core/exceptions/http-exception.js.map +1 -0
  138. package/src/core/hono/hono.js +123 -1
  139. package/src/core/hono/hono.js.map +1 -0
  140. package/src/core/lib/prisma.js +11 -1
  141. package/src/core/lib/prisma.js.map +1 -0
  142. package/src/core/logging/pino.js +5 -1
  143. package/src/core/logging/pino.js.map +1 -0
  144. package/src/core/notifications/email.service.d.ts +15 -0
  145. package/src/core/notifications/email.service.js +116 -1
  146. package/src/core/notifications/email.service.js.map +1 -0
  147. package/src/core/openapi/openapi.lib.js +26 -1
  148. package/src/core/openapi/openapi.lib.js.map +1 -0
  149. package/src/core/types/google-maps.types.js +2 -1
  150. package/src/core/types/google-maps.types.js.map +1 -0
  151. package/src/core/utils/currency.util.js +11 -1
  152. package/src/core/utils/currency.util.js.map +1 -0
  153. package/src/core/utils/env.util.js +8 -1
  154. package/src/core/utils/env.util.js.map +1 -0
  155. package/src/core/utils/object.util.d.ts +10 -0
  156. package/src/core/utils/object.util.js +39 -1
  157. package/src/core/utils/object.util.js.map +1 -0
  158. package/src/core/utils/translations.util.js +2 -0
  159. package/src/core/utils/translations.util.js.map +1 -0
  160. package/src/core/utils/zod.util.d.ts +12 -0
  161. package/src/core/utils/zod.util.js +85 -1
  162. package/src/core/utils/zod.util.js.map +1 -0
  163. package/src/db.js +3 -1
  164. package/src/db.js.map +1 -0
  165. package/src/features/access/access.handler.js +91 -1
  166. package/src/features/access/access.handler.js.map +1 -0
  167. package/src/features/access/access.route.js +220 -1
  168. package/src/features/access/access.route.js.map +1 -0
  169. package/src/features/access/access.schema.js +108 -1
  170. package/src/features/access/access.schema.js.map +1 -0
  171. package/src/features/access/access.service.js +294 -1
  172. package/src/features/access/access.service.js.map +1 -0
  173. package/src/features/cart/cart.handler.js +17 -1
  174. package/src/features/cart/cart.handler.js.map +1 -0
  175. package/src/features/cart/cart.route.js +32 -1
  176. package/src/features/cart/cart.route.js.map +1 -0
  177. package/src/features/cart/cart.schema.js +39 -1
  178. package/src/features/cart/cart.schema.js.map +1 -0
  179. package/src/features/cart/cart.service.d.ts +7 -0
  180. package/src/features/cart/cart.service.js +97 -1
  181. package/src/features/cart/cart.service.js.map +1 -0
  182. package/src/features/cart/cart.util.js +76 -1
  183. package/src/features/cart/cart.util.js.map +1 -0
  184. package/src/features/file/file.handler.js +23 -1
  185. package/src/features/file/file.handler.js.map +1 -0
  186. package/src/features/file/file.route.js +34 -1
  187. package/src/features/file/file.route.js.map +1 -0
  188. package/src/features/file/file.schema.js +77 -1
  189. package/src/features/file/file.schema.js.map +1 -0
  190. package/src/features/file/file.service.d.ts +6 -0
  191. package/src/features/file/file.service.js +66 -1
  192. package/src/features/file/file.service.js.map +1 -0
  193. package/src/features/health/health.handler.js +10 -1
  194. package/src/features/health/health.handler.js.map +1 -0
  195. package/src/features/health/health.route.js +25 -1
  196. package/src/features/health/health.route.js.map +1 -0
  197. package/src/features/index.js +16 -1
  198. package/src/features/index.js.map +1 -0
  199. package/src/features/location/location.handler.js +25 -1
  200. package/src/features/location/location.handler.js.map +1 -0
  201. package/src/features/location/location.route.js +56 -1
  202. package/src/features/location/location.route.js.map +1 -0
  203. package/src/features/location/location.schema.js +50 -1
  204. package/src/features/location/location.schema.js.map +1 -0
  205. package/src/features/location/location.service.d.ts +3 -0
  206. package/src/features/location/location.service.js +141 -1
  207. package/src/features/location/location.service.js.map +1 -0
  208. package/src/features/manufacturer/manufacturer.handler.js +53 -1
  209. package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
  210. package/src/features/manufacturer/manufacturer.route.js +97 -1
  211. package/src/features/manufacturer/manufacturer.route.js.map +1 -0
  212. package/src/features/manufacturer/manufacturer.schema.js +125 -1
  213. package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
  214. package/src/features/manufacturer/manufacturer.service.d.ts +19 -0
  215. package/src/features/manufacturer/manufacturer.service.js +190 -1
  216. package/src/features/manufacturer/manufacturer.service.js.map +1 -0
  217. package/src/features/order/emails/order-confirmation.email.js +229 -1
  218. package/src/features/order/emails/order-confirmation.email.js.map +1 -0
  219. package/src/features/order/emails/order-notification.email.js +229 -1
  220. package/src/features/order/emails/order-notification.email.js.map +1 -0
  221. package/src/features/order/fulfilment.schema.js +3 -1
  222. package/src/features/order/fulfilment.schema.js.map +1 -0
  223. package/src/features/order/order.handler.js +54 -1
  224. package/src/features/order/order.handler.js.map +1 -0
  225. package/src/features/order/order.route.js +111 -1
  226. package/src/features/order/order.route.js.map +1 -0
  227. package/src/features/order/order.schema.js +158 -1
  228. package/src/features/order/order.schema.js.map +1 -0
  229. package/src/features/order/order.service.d.ts +15 -0
  230. package/src/features/order/order.service.js +306 -1
  231. package/src/features/order/order.service.js.map +1 -0
  232. package/src/features/order/recipient.schema.js +38 -1
  233. package/src/features/order/recipient.schema.js.map +1 -0
  234. package/src/features/organization/legal-entity.schema.js +83 -1
  235. package/src/features/organization/legal-entity.schema.js.map +1 -0
  236. package/src/features/organization/organization-configuration.schema.js +115 -1
  237. package/src/features/organization/organization-configuration.schema.js.map +1 -0
  238. package/src/features/organization/organization.handler.js +48 -1
  239. package/src/features/organization/organization.handler.js.map +1 -0
  240. package/src/features/organization/organization.route.js +84 -1
  241. package/src/features/organization/organization.route.js.map +1 -0
  242. package/src/features/organization/organization.schema.js +64 -1
  243. package/src/features/organization/organization.schema.js.map +1 -0
  244. package/src/features/organization/organization.service.d.ts +15 -0
  245. package/src/features/organization/organization.service.js +334 -1
  246. package/src/features/organization/organization.service.js.map +1 -0
  247. package/src/features/payment/payment.handler.js +16 -1
  248. package/src/features/payment/payment.handler.js.map +1 -0
  249. package/src/features/payment/payment.route.js +22 -1
  250. package/src/features/payment/payment.route.js.map +1 -0
  251. package/src/features/payment/payment.schema.js +46 -1
  252. package/src/features/payment/payment.schema.js.map +1 -0
  253. package/src/features/payment/payment.service.js +100 -1
  254. package/src/features/payment/payment.service.js.map +1 -0
  255. package/src/features/payment/stripe.service.js +164 -1
  256. package/src/features/payment/stripe.service.js.map +1 -0
  257. package/src/features/product/product-modifier.schema.js +84 -1
  258. package/src/features/product/product-modifier.schema.js.map +1 -0
  259. package/src/features/product/product.handler.js +87 -1
  260. package/src/features/product/product.handler.js.map +1 -0
  261. package/src/features/product/product.route.js +179 -1
  262. package/src/features/product/product.route.js.map +1 -0
  263. package/src/features/product/product.schema.js +143 -1
  264. package/src/features/product/product.schema.js.map +1 -0
  265. package/src/features/product/product.service.d.ts +25 -0
  266. package/src/features/product/product.service.js +440 -1
  267. package/src/features/product/product.service.js.map +1 -0
  268. package/src/features/product-category/product-category.handler.js +59 -1
  269. package/src/features/product-category/product-category.handler.js.map +1 -0
  270. package/src/features/product-category/product-category.route.js +139 -1
  271. package/src/features/product-category/product-category.route.js.map +1 -0
  272. package/src/features/product-category/product-category.schema.js +86 -1
  273. package/src/features/product-category/product-category.schema.js.map +1 -0
  274. package/src/features/product-category/product-category.service.d.ts +22 -0
  275. package/src/features/product-category/product-category.service.js +220 -1
  276. package/src/features/product-category/product-category.service.js.map +1 -0
  277. package/src/features/reservation/emails/reservation-cancellation.email.js +82 -1
  278. package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
  279. package/src/features/reservation/emails/reservation-confirmation.email.js +82 -1
  280. package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
  281. package/src/features/reservation/emails/reservation-notification.email.js +93 -1
  282. package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
  283. package/src/features/reservation/reservation.handler.js +65 -1
  284. package/src/features/reservation/reservation.handler.js.map +1 -0
  285. package/src/features/reservation/reservation.route.js +167 -1
  286. package/src/features/reservation/reservation.route.js.map +1 -0
  287. package/src/features/reservation/reservation.schema.js +51 -1
  288. package/src/features/reservation/reservation.schema.js.map +1 -0
  289. package/src/features/reservation/reservation.service.d.ts +18 -0
  290. package/src/features/reservation/reservation.service.js +231 -1
  291. package/src/features/reservation/reservation.service.js.map +1 -0
  292. package/src/features/shipping/shipping.handler.js +32 -1
  293. package/src/features/shipping/shipping.handler.js.map +1 -0
  294. package/src/features/shipping/shipping.route.js +51 -1
  295. package/src/features/shipping/shipping.route.js.map +1 -0
  296. package/src/features/shipping/shipping.service.d.ts +7 -0
  297. package/src/features/shipping/shipping.service.js +96 -1
  298. package/src/features/shipping/shipping.service.js.map +1 -0
  299. package/src/features/shipping-method/shipping-method.handler.js +60 -1
  300. package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
  301. package/src/features/shipping-method/shipping-method.route.js +144 -1
  302. package/src/features/shipping-method/shipping-method.route.js.map +1 -0
  303. package/src/features/shipping-method/shipping-method.schema.js +48 -1
  304. package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
  305. package/src/features/shipping-method/shipping-method.service.d.ts +25 -0
  306. package/src/features/shipping-method/shipping-method.service.js +229 -1
  307. package/src/features/shipping-method/shipping-method.service.js.map +1 -0
  308. package/src/features/shipping-method/shipping-zone.schema.js +31 -1
  309. package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
  310. package/src/features/webhook/webhook.handler.js +50 -1
  311. package/src/features/webhook/webhook.handler.js.map +1 -0
  312. package/src/features/webhook/webhook.route.js +33 -1
  313. package/src/features/webhook/webhook.route.js.map +1 -0
  314. package/src/index.js +6 -1
  315. package/src/index.js.map +1 -0
  316. package/src/integrations/next.js +82 -1
  317. package/src/integrations/next.js.map +1 -0
  318. package/src/schemas/address.schema.d.ts +8 -0
  319. package/src/schemas/address.schema.js +112 -1
  320. package/src/schemas/address.schema.js.map +1 -0
  321. package/src/schemas/currency.schema.d.ts +42 -0
  322. package/src/schemas/currency.schema.js +118 -1
  323. package/src/schemas/currency.schema.js.map +1 -0
  324. package/src/schemas/error.schema.js +12 -1
  325. package/src/schemas/error.schema.js.map +1 -0
  326. package/src/schemas/index.js +29 -1
  327. package/src/schemas/index.js.map +1 -0
  328. package/src/schemas/locales.schema.js +238 -1
  329. package/src/schemas/locales.schema.js.map +1 -0
  330. package/src/schemas/number.schema.js +29 -1
  331. package/src/schemas/number.schema.js.map +1 -0
  332. package/src/schemas/pagination.schema.js +54 -1
  333. package/src/schemas/pagination.schema.js.map +1 -0
  334. package/src/schemas/params.schema.js +20 -1
  335. package/src/schemas/params.schema.js.map +1 -0
  336. package/src/schemas/queries.schema.js +6 -1
  337. package/src/schemas/queries.schema.js.map +1 -0
  338. package/src/test/global-setup.js +37 -1
  339. package/src/test/global-setup.js.map +1 -0
  340. package/src/test/integration/api-fixtures.js +160 -1
  341. package/src/test/integration/api-fixtures.js.map +1 -0
  342. package/src/test/integration/seed.js +368 -1
  343. package/src/test/integration/seed.js.map +1 -0
  344. package/src/test/integration/test-helpers.js +154 -1
  345. package/src/test/integration/test-helpers.js.map +1 -0
  346. package/src/test/setup-test-env.js +7 -1
  347. package/src/test/setup-test-env.js.map +1 -0
  348. package/scripts/minify.mjs +0 -123
@@ -1,6 +1,10 @@
1
1
  import type * as runtime from "@prisma/client/runtime/client";
2
2
  import type * as $Enums from "../enums";
3
3
  import type * as Prisma from "../internal/prismaNamespace";
4
+ /**
5
+ * Model PaymentSession
6
+ *
7
+ */
4
8
  export type PaymentSessionModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentSessionPayload>;
5
9
  export type AggregatePaymentSession = {
6
10
  _count: PaymentSessionCountAggregateOutputType | null;
@@ -92,15 +96,63 @@ export type PaymentSessionCountAggregateInputType = {
92
96
  _all?: true;
93
97
  };
94
98
  export type PaymentSessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
99
+ /**
100
+ * Filter which PaymentSession to aggregate.
101
+ */
95
102
  where?: Prisma.PaymentSessionWhereInput;
103
+ /**
104
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
105
+ *
106
+ * Determine the order of PaymentSessions to fetch.
107
+ */
96
108
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
111
+ *
112
+ * Sets the start position
113
+ */
97
114
  cursor?: Prisma.PaymentSessionWhereUniqueInput;
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
117
+ *
118
+ * Take `±n` PaymentSessions from the position of the cursor.
119
+ */
98
120
  take?: number;
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Skip the first `n` PaymentSessions.
125
+ */
99
126
  skip?: number;
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
129
+ *
130
+ * Count returned PaymentSessions
131
+ **/
100
132
  _count?: true | PaymentSessionCountAggregateInputType;
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Select which fields to average
137
+ **/
101
138
  _avg?: PaymentSessionAvgAggregateInputType;
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to sum
143
+ **/
102
144
  _sum?: PaymentSessionSumAggregateInputType;
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the minimum value
149
+ **/
103
150
  _min?: PaymentSessionMinAggregateInputType;
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to find the maximum value
155
+ **/
104
156
  _max?: PaymentSessionMaxAggregateInputType;
105
157
  };
106
158
  export type GetPaymentSessionAggregateType<T extends PaymentSessionAggregateArgs> = {
@@ -578,22 +630,290 @@ export interface PaymentSessionDelegate<ExtArgs extends runtime.Types.Extensions
578
630
  name: 'PaymentSession';
579
631
  };
580
632
  };
633
+ /**
634
+ * Find zero or one PaymentSession that matches the filter.
635
+ * @param {PaymentSessionFindUniqueArgs} args - Arguments to find a PaymentSession
636
+ * @example
637
+ * // Get one PaymentSession
638
+ * const paymentSession = await prisma.paymentSession.findUnique({
639
+ * where: {
640
+ * // ... provide filter here
641
+ * }
642
+ * })
643
+ */
581
644
  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>;
645
+ /**
646
+ * Find one PaymentSession that matches the filter or throw an error with `error.code='P2025'`
647
+ * if no matches were found.
648
+ * @param {PaymentSessionFindUniqueOrThrowArgs} args - Arguments to find a PaymentSession
649
+ * @example
650
+ * // Get one PaymentSession
651
+ * const paymentSession = await prisma.paymentSession.findUniqueOrThrow({
652
+ * where: {
653
+ * // ... provide filter here
654
+ * }
655
+ * })
656
+ */
582
657
  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>;
658
+ /**
659
+ * Find the first PaymentSession that matches the filter.
660
+ * Note, that providing `undefined` is treated as the value not being there.
661
+ * Read more here: https://pris.ly/d/null-undefined
662
+ * @param {PaymentSessionFindFirstArgs} args - Arguments to find a PaymentSession
663
+ * @example
664
+ * // Get one PaymentSession
665
+ * const paymentSession = await prisma.paymentSession.findFirst({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * }
669
+ * })
670
+ */
583
671
  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>;
672
+ /**
673
+ * Find the first PaymentSession that matches the filter or
674
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
675
+ * Note, that providing `undefined` is treated as the value not being there.
676
+ * Read more here: https://pris.ly/d/null-undefined
677
+ * @param {PaymentSessionFindFirstOrThrowArgs} args - Arguments to find a PaymentSession
678
+ * @example
679
+ * // Get one PaymentSession
680
+ * const paymentSession = await prisma.paymentSession.findFirstOrThrow({
681
+ * where: {
682
+ * // ... provide filter here
683
+ * }
684
+ * })
685
+ */
584
686
  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>;
687
+ /**
688
+ * Find zero or more PaymentSessions that matches the filter.
689
+ * Note, that providing `undefined` is treated as the value not being there.
690
+ * Read more here: https://pris.ly/d/null-undefined
691
+ * @param {PaymentSessionFindManyArgs} args - Arguments to filter and select certain fields only.
692
+ * @example
693
+ * // Get all PaymentSessions
694
+ * const paymentSessions = await prisma.paymentSession.findMany()
695
+ *
696
+ * // Get first 10 PaymentSessions
697
+ * const paymentSessions = await prisma.paymentSession.findMany({ take: 10 })
698
+ *
699
+ * // Only select the `id`
700
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.findMany({ select: { id: true } })
701
+ *
702
+ */
585
703
  findMany<T extends PaymentSessionFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
704
+ /**
705
+ * Create a PaymentSession.
706
+ * @param {PaymentSessionCreateArgs} args - Arguments to create a PaymentSession.
707
+ * @example
708
+ * // Create one PaymentSession
709
+ * const PaymentSession = await prisma.paymentSession.create({
710
+ * data: {
711
+ * // ... data to create a PaymentSession
712
+ * }
713
+ * })
714
+ *
715
+ */
586
716
  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>;
717
+ /**
718
+ * Create many PaymentSessions.
719
+ * @param {PaymentSessionCreateManyArgs} args - Arguments to create many PaymentSessions.
720
+ * @example
721
+ * // Create many PaymentSessions
722
+ * const paymentSession = await prisma.paymentSession.createMany({
723
+ * data: [
724
+ * // ... provide data here
725
+ * ]
726
+ * })
727
+ *
728
+ */
587
729
  createMany<T extends PaymentSessionCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
730
+ /**
731
+ * Create many PaymentSessions and returns the data saved in the database.
732
+ * @param {PaymentSessionCreateManyAndReturnArgs} args - Arguments to create many PaymentSessions.
733
+ * @example
734
+ * // Create many PaymentSessions
735
+ * const paymentSession = await prisma.paymentSession.createManyAndReturn({
736
+ * data: [
737
+ * // ... provide data here
738
+ * ]
739
+ * })
740
+ *
741
+ * // Create many PaymentSessions and only return the `id`
742
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.createManyAndReturn({
743
+ * select: { id: true },
744
+ * data: [
745
+ * // ... provide data here
746
+ * ]
747
+ * })
748
+ * Note, that providing `undefined` is treated as the value not being there.
749
+ * Read more here: https://pris.ly/d/null-undefined
750
+ *
751
+ */
588
752
  createManyAndReturn<T extends PaymentSessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PaymentSessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
753
+ /**
754
+ * Delete a PaymentSession.
755
+ * @param {PaymentSessionDeleteArgs} args - Arguments to delete one PaymentSession.
756
+ * @example
757
+ * // Delete one PaymentSession
758
+ * const PaymentSession = await prisma.paymentSession.delete({
759
+ * where: {
760
+ * // ... filter to delete one PaymentSession
761
+ * }
762
+ * })
763
+ *
764
+ */
589
765
  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>;
766
+ /**
767
+ * Update one PaymentSession.
768
+ * @param {PaymentSessionUpdateArgs} args - Arguments to update one PaymentSession.
769
+ * @example
770
+ * // Update one PaymentSession
771
+ * const paymentSession = await prisma.paymentSession.update({
772
+ * where: {
773
+ * // ... provide filter here
774
+ * },
775
+ * data: {
776
+ * // ... provide data here
777
+ * }
778
+ * })
779
+ *
780
+ */
590
781
  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>;
782
+ /**
783
+ * Delete zero or more PaymentSessions.
784
+ * @param {PaymentSessionDeleteManyArgs} args - Arguments to filter PaymentSessions to delete.
785
+ * @example
786
+ * // Delete a few PaymentSessions
787
+ * const { count } = await prisma.paymentSession.deleteMany({
788
+ * where: {
789
+ * // ... provide filter here
790
+ * }
791
+ * })
792
+ *
793
+ */
591
794
  deleteMany<T extends PaymentSessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentSessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
795
+ /**
796
+ * Update zero or more PaymentSessions.
797
+ * Note, that providing `undefined` is treated as the value not being there.
798
+ * Read more here: https://pris.ly/d/null-undefined
799
+ * @param {PaymentSessionUpdateManyArgs} args - Arguments to update one or more rows.
800
+ * @example
801
+ * // Update many PaymentSessions
802
+ * const paymentSession = await prisma.paymentSession.updateMany({
803
+ * where: {
804
+ * // ... provide filter here
805
+ * },
806
+ * data: {
807
+ * // ... provide data here
808
+ * }
809
+ * })
810
+ *
811
+ */
592
812
  updateMany<T extends PaymentSessionUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
813
+ /**
814
+ * Update zero or more PaymentSessions and returns the data updated in the database.
815
+ * @param {PaymentSessionUpdateManyAndReturnArgs} args - Arguments to update many PaymentSessions.
816
+ * @example
817
+ * // Update many PaymentSessions
818
+ * const paymentSession = await prisma.paymentSession.updateManyAndReturn({
819
+ * where: {
820
+ * // ... provide filter here
821
+ * },
822
+ * data: [
823
+ * // ... provide data here
824
+ * ]
825
+ * })
826
+ *
827
+ * // Update zero or more PaymentSessions and only return the `id`
828
+ * const paymentSessionWithIdOnly = await prisma.paymentSession.updateManyAndReturn({
829
+ * select: { id: true },
830
+ * where: {
831
+ * // ... provide filter here
832
+ * },
833
+ * data: [
834
+ * // ... provide data here
835
+ * ]
836
+ * })
837
+ * Note, that providing `undefined` is treated as the value not being there.
838
+ * Read more here: https://pris.ly/d/null-undefined
839
+ *
840
+ */
593
841
  updateManyAndReturn<T extends PaymentSessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PaymentSessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
842
+ /**
843
+ * Create or update one PaymentSession.
844
+ * @param {PaymentSessionUpsertArgs} args - Arguments to update or create a PaymentSession.
845
+ * @example
846
+ * // Update or create a PaymentSession
847
+ * const paymentSession = await prisma.paymentSession.upsert({
848
+ * create: {
849
+ * // ... data to create a PaymentSession
850
+ * },
851
+ * update: {
852
+ * // ... in case it already exists, update
853
+ * },
854
+ * where: {
855
+ * // ... the filter for the PaymentSession we want to update
856
+ * }
857
+ * })
858
+ */
594
859
  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>;
860
+ /**
861
+ * Count the number of PaymentSessions.
862
+ * Note, that providing `undefined` is treated as the value not being there.
863
+ * Read more here: https://pris.ly/d/null-undefined
864
+ * @param {PaymentSessionCountArgs} args - Arguments to filter PaymentSessions to count.
865
+ * @example
866
+ * // Count the number of PaymentSessions
867
+ * const count = await prisma.paymentSession.count({
868
+ * where: {
869
+ * // ... the filter for the PaymentSessions we want to count
870
+ * }
871
+ * })
872
+ **/
595
873
  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>;
874
+ /**
875
+ * Allows you to perform aggregations operations on a PaymentSession.
876
+ * Note, that providing `undefined` is treated as the value not being there.
877
+ * Read more here: https://pris.ly/d/null-undefined
878
+ * @param {PaymentSessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
879
+ * @example
880
+ * // Ordered by age ascending
881
+ * // Where email contains prisma.io
882
+ * // Limited to the 10 users
883
+ * const aggregations = await prisma.user.aggregate({
884
+ * _avg: {
885
+ * age: true,
886
+ * },
887
+ * where: {
888
+ * email: {
889
+ * contains: "prisma.io",
890
+ * },
891
+ * },
892
+ * orderBy: {
893
+ * age: "asc",
894
+ * },
895
+ * take: 10,
896
+ * })
897
+ **/
596
898
  aggregate<T extends PaymentSessionAggregateArgs>(args: Prisma.Subset<T, PaymentSessionAggregateArgs>): Prisma.PrismaPromise<GetPaymentSessionAggregateType<T>>;
899
+ /**
900
+ * Group by PaymentSession.
901
+ * Note, that providing `undefined` is treated as the value not being there.
902
+ * Read more here: https://pris.ly/d/null-undefined
903
+ * @param {PaymentSessionGroupByArgs} args - Group by arguments.
904
+ * @example
905
+ * // Group by city, order by createdAt, get count
906
+ * const result = await prisma.user.groupBy({
907
+ * by: ['city', 'createdAt'],
908
+ * orderBy: {
909
+ * createdAt: true
910
+ * },
911
+ * _count: {
912
+ * _all: true
913
+ * },
914
+ * })
915
+ *
916
+ **/
597
917
  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 ? {
598
918
  orderBy: PaymentSessionGroupByArgs['orderBy'];
599
919
  } : {
@@ -612,15 +932,44 @@ export interface PaymentSessionDelegate<ExtArgs extends runtime.Types.Extensions
612
932
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
613
933
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
614
934
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentSessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
935
+ /**
936
+ * Fields of the PaymentSession model
937
+ */
615
938
  readonly fields: PaymentSessionFieldRefs;
616
939
  }
940
+ /**
941
+ * The delegate class that acts as a "Promise-like" for PaymentSession.
942
+ * Why is this prefixed with `Prisma__`?
943
+ * Because we want to prevent naming conflicts as mentioned in
944
+ * https://github.com/prisma/prisma-client-js/issues/707
945
+ */
617
946
  export interface Prisma__PaymentSessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
618
947
  readonly [Symbol.toStringTag]: "PrismaPromise";
619
948
  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>;
949
+ /**
950
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
951
+ * @param onfulfilled The callback to execute when the Promise is resolved.
952
+ * @param onrejected The callback to execute when the Promise is rejected.
953
+ * @returns A Promise for the completion of which ever callback is executed.
954
+ */
620
955
  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>;
956
+ /**
957
+ * Attaches a callback for only the rejection of the Promise.
958
+ * @param onrejected The callback to execute when the Promise is rejected.
959
+ * @returns A Promise for the completion of the callback.
960
+ */
621
961
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
962
+ /**
963
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
964
+ * resolved value cannot be modified from the callback.
965
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
966
+ * @returns A Promise for the completion of the callback.
967
+ */
622
968
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
623
969
  }
970
+ /**
971
+ * Fields of the PaymentSession model
972
+ */
624
973
  export interface PaymentSessionFieldRefs {
625
974
  readonly id: Prisma.FieldRef<"PaymentSession", 'String'>;
626
975
  readonly referenceId: Prisma.FieldRef<"PaymentSession", 'String'>;
@@ -633,109 +982,403 @@ export interface PaymentSessionFieldRefs {
633
982
  readonly updatedAt: Prisma.FieldRef<"PaymentSession", 'DateTime'>;
634
983
  readonly paymentId: Prisma.FieldRef<"PaymentSession", 'String'>;
635
984
  }
985
+ /**
986
+ * PaymentSession findUnique
987
+ */
636
988
  export type PaymentSessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
+ /**
990
+ * Select specific fields to fetch from the PaymentSession
991
+ */
637
992
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
993
+ /**
994
+ * Omit specific fields from the PaymentSession
995
+ */
638
996
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
997
+ /**
998
+ * Choose, which related nodes to fetch as well
999
+ */
639
1000
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1001
+ /**
1002
+ * Filter, which PaymentSession to fetch.
1003
+ */
640
1004
  where: Prisma.PaymentSessionWhereUniqueInput;
641
1005
  };
1006
+ /**
1007
+ * PaymentSession findUniqueOrThrow
1008
+ */
642
1009
  export type PaymentSessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1010
+ /**
1011
+ * Select specific fields to fetch from the PaymentSession
1012
+ */
643
1013
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1014
+ /**
1015
+ * Omit specific fields from the PaymentSession
1016
+ */
644
1017
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1018
+ /**
1019
+ * Choose, which related nodes to fetch as well
1020
+ */
645
1021
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1022
+ /**
1023
+ * Filter, which PaymentSession to fetch.
1024
+ */
646
1025
  where: Prisma.PaymentSessionWhereUniqueInput;
647
1026
  };
1027
+ /**
1028
+ * PaymentSession findFirst
1029
+ */
648
1030
  export type PaymentSessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1031
+ /**
1032
+ * Select specific fields to fetch from the PaymentSession
1033
+ */
649
1034
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1035
+ /**
1036
+ * Omit specific fields from the PaymentSession
1037
+ */
650
1038
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1039
+ /**
1040
+ * Choose, which related nodes to fetch as well
1041
+ */
651
1042
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1043
+ /**
1044
+ * Filter, which PaymentSession to fetch.
1045
+ */
652
1046
  where?: Prisma.PaymentSessionWhereInput;
1047
+ /**
1048
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1049
+ *
1050
+ * Determine the order of PaymentSessions to fetch.
1051
+ */
653
1052
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1053
+ /**
1054
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1055
+ *
1056
+ * Sets the position for searching for PaymentSessions.
1057
+ */
654
1058
  cursor?: Prisma.PaymentSessionWhereUniqueInput;
1059
+ /**
1060
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1061
+ *
1062
+ * Take `±n` PaymentSessions from the position of the cursor.
1063
+ */
655
1064
  take?: number;
1065
+ /**
1066
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1067
+ *
1068
+ * Skip the first `n` PaymentSessions.
1069
+ */
656
1070
  skip?: number;
1071
+ /**
1072
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1073
+ *
1074
+ * Filter by unique combinations of PaymentSessions.
1075
+ */
657
1076
  distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
658
1077
  };
1078
+ /**
1079
+ * PaymentSession findFirstOrThrow
1080
+ */
659
1081
  export type PaymentSessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * Select specific fields to fetch from the PaymentSession
1084
+ */
660
1085
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1086
+ /**
1087
+ * Omit specific fields from the PaymentSession
1088
+ */
661
1089
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1090
+ /**
1091
+ * Choose, which related nodes to fetch as well
1092
+ */
662
1093
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1094
+ /**
1095
+ * Filter, which PaymentSession to fetch.
1096
+ */
663
1097
  where?: Prisma.PaymentSessionWhereInput;
1098
+ /**
1099
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1100
+ *
1101
+ * Determine the order of PaymentSessions to fetch.
1102
+ */
664
1103
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1104
+ /**
1105
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1106
+ *
1107
+ * Sets the position for searching for PaymentSessions.
1108
+ */
665
1109
  cursor?: Prisma.PaymentSessionWhereUniqueInput;
1110
+ /**
1111
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1112
+ *
1113
+ * Take `±n` PaymentSessions from the position of the cursor.
1114
+ */
666
1115
  take?: number;
1116
+ /**
1117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1118
+ *
1119
+ * Skip the first `n` PaymentSessions.
1120
+ */
667
1121
  skip?: number;
1122
+ /**
1123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1124
+ *
1125
+ * Filter by unique combinations of PaymentSessions.
1126
+ */
668
1127
  distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
669
1128
  };
1129
+ /**
1130
+ * PaymentSession findMany
1131
+ */
670
1132
  export type PaymentSessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1133
+ /**
1134
+ * Select specific fields to fetch from the PaymentSession
1135
+ */
671
1136
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1137
+ /**
1138
+ * Omit specific fields from the PaymentSession
1139
+ */
672
1140
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1141
+ /**
1142
+ * Choose, which related nodes to fetch as well
1143
+ */
673
1144
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1145
+ /**
1146
+ * Filter, which PaymentSessions to fetch.
1147
+ */
674
1148
  where?: Prisma.PaymentSessionWhereInput;
1149
+ /**
1150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1151
+ *
1152
+ * Determine the order of PaymentSessions to fetch.
1153
+ */
675
1154
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
1155
+ /**
1156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1157
+ *
1158
+ * Sets the position for listing PaymentSessions.
1159
+ */
676
1160
  cursor?: Prisma.PaymentSessionWhereUniqueInput;
1161
+ /**
1162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1163
+ *
1164
+ * Take `±n` PaymentSessions from the position of the cursor.
1165
+ */
677
1166
  take?: number;
1167
+ /**
1168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1169
+ *
1170
+ * Skip the first `n` PaymentSessions.
1171
+ */
678
1172
  skip?: number;
1173
+ /**
1174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1175
+ *
1176
+ * Filter by unique combinations of PaymentSessions.
1177
+ */
679
1178
  distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
680
1179
  };
1180
+ /**
1181
+ * PaymentSession create
1182
+ */
681
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
+ */
682
1187
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1188
+ /**
1189
+ * Omit specific fields from the PaymentSession
1190
+ */
683
1191
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1192
+ /**
1193
+ * Choose, which related nodes to fetch as well
1194
+ */
684
1195
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1196
+ /**
1197
+ * The data needed to create a PaymentSession.
1198
+ */
685
1199
  data: Prisma.XOR<Prisma.PaymentSessionCreateInput, Prisma.PaymentSessionUncheckedCreateInput>;
686
1200
  };
1201
+ /**
1202
+ * PaymentSession createMany
1203
+ */
687
1204
  export type PaymentSessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1205
+ /**
1206
+ * The data used to create many PaymentSessions.
1207
+ */
688
1208
  data: Prisma.PaymentSessionCreateManyInput | Prisma.PaymentSessionCreateManyInput[];
689
1209
  skipDuplicates?: boolean;
690
1210
  };
1211
+ /**
1212
+ * PaymentSession createManyAndReturn
1213
+ */
691
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
+ */
692
1218
  select?: Prisma.PaymentSessionSelectCreateManyAndReturn<ExtArgs> | null;
1219
+ /**
1220
+ * Omit specific fields from the PaymentSession
1221
+ */
693
1222
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1223
+ /**
1224
+ * The data used to create many PaymentSessions.
1225
+ */
694
1226
  data: Prisma.PaymentSessionCreateManyInput | Prisma.PaymentSessionCreateManyInput[];
695
1227
  skipDuplicates?: boolean;
1228
+ /**
1229
+ * Choose, which related nodes to fetch as well
1230
+ */
696
1231
  include?: Prisma.PaymentSessionIncludeCreateManyAndReturn<ExtArgs> | null;
697
1232
  };
1233
+ /**
1234
+ * PaymentSession update
1235
+ */
698
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
+ */
699
1240
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1241
+ /**
1242
+ * Omit specific fields from the PaymentSession
1243
+ */
700
1244
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1245
+ /**
1246
+ * Choose, which related nodes to fetch as well
1247
+ */
701
1248
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1249
+ /**
1250
+ * The data needed to update a PaymentSession.
1251
+ */
702
1252
  data: Prisma.XOR<Prisma.PaymentSessionUpdateInput, Prisma.PaymentSessionUncheckedUpdateInput>;
1253
+ /**
1254
+ * Choose, which PaymentSession to update.
1255
+ */
703
1256
  where: Prisma.PaymentSessionWhereUniqueInput;
704
1257
  };
1258
+ /**
1259
+ * PaymentSession updateMany
1260
+ */
705
1261
  export type PaymentSessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1262
+ /**
1263
+ * The data used to update PaymentSessions.
1264
+ */
706
1265
  data: Prisma.XOR<Prisma.PaymentSessionUpdateManyMutationInput, Prisma.PaymentSessionUncheckedUpdateManyInput>;
1266
+ /**
1267
+ * Filter which PaymentSessions to update
1268
+ */
707
1269
  where?: Prisma.PaymentSessionWhereInput;
1270
+ /**
1271
+ * Limit how many PaymentSessions to update.
1272
+ */
708
1273
  limit?: number;
709
1274
  };
1275
+ /**
1276
+ * PaymentSession updateManyAndReturn
1277
+ */
710
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
+ */
711
1282
  select?: Prisma.PaymentSessionSelectUpdateManyAndReturn<ExtArgs> | null;
1283
+ /**
1284
+ * Omit specific fields from the PaymentSession
1285
+ */
712
1286
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1287
+ /**
1288
+ * The data used to update PaymentSessions.
1289
+ */
713
1290
  data: Prisma.XOR<Prisma.PaymentSessionUpdateManyMutationInput, Prisma.PaymentSessionUncheckedUpdateManyInput>;
1291
+ /**
1292
+ * Filter which PaymentSessions to update
1293
+ */
714
1294
  where?: Prisma.PaymentSessionWhereInput;
1295
+ /**
1296
+ * Limit how many PaymentSessions to update.
1297
+ */
715
1298
  limit?: number;
1299
+ /**
1300
+ * Choose, which related nodes to fetch as well
1301
+ */
716
1302
  include?: Prisma.PaymentSessionIncludeUpdateManyAndReturn<ExtArgs> | null;
717
1303
  };
1304
+ /**
1305
+ * PaymentSession upsert
1306
+ */
718
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
+ */
719
1311
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1312
+ /**
1313
+ * Omit specific fields from the PaymentSession
1314
+ */
720
1315
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1316
+ /**
1317
+ * Choose, which related nodes to fetch as well
1318
+ */
721
1319
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1320
+ /**
1321
+ * The filter to search for the PaymentSession to update in case it exists.
1322
+ */
722
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
+ */
723
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
+ */
724
1331
  update: Prisma.XOR<Prisma.PaymentSessionUpdateInput, Prisma.PaymentSessionUncheckedUpdateInput>;
725
1332
  };
1333
+ /**
1334
+ * PaymentSession delete
1335
+ */
726
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
+ */
727
1340
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1341
+ /**
1342
+ * Omit specific fields from the PaymentSession
1343
+ */
728
1344
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1345
+ /**
1346
+ * Choose, which related nodes to fetch as well
1347
+ */
729
1348
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
1349
+ /**
1350
+ * Filter which PaymentSession to delete.
1351
+ */
730
1352
  where: Prisma.PaymentSessionWhereUniqueInput;
731
1353
  };
1354
+ /**
1355
+ * PaymentSession deleteMany
1356
+ */
732
1357
  export type PaymentSessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1358
+ /**
1359
+ * Filter which PaymentSessions to delete
1360
+ */
733
1361
  where?: Prisma.PaymentSessionWhereInput;
1362
+ /**
1363
+ * Limit how many PaymentSessions to delete.
1364
+ */
734
1365
  limit?: number;
735
1366
  };
1367
+ /**
1368
+ * PaymentSession without action
1369
+ */
736
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
+ */
737
1374
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1375
+ /**
1376
+ * Omit specific fields from the PaymentSession
1377
+ */
738
1378
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1379
+ /**
1380
+ * Choose, which related nodes to fetch as well
1381
+ */
739
1382
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
740
1383
  };
741
1384
  export {};