@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 Payment
6
+ *
7
+ */
4
8
  export type PaymentModel = runtime.Types.Result.DefaultSelection<Prisma.$PaymentPayload>;
5
9
  export type AggregatePayment = {
6
10
  _count: PaymentCountAggregateOutputType | null;
@@ -114,15 +118,63 @@ export type PaymentCountAggregateInputType = {
114
118
  _all?: true;
115
119
  };
116
120
  export type PaymentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ /**
122
+ * Filter which Payment to aggregate.
123
+ */
117
124
  where?: Prisma.PaymentWhereInput;
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
127
+ *
128
+ * Determine the order of Payments to fetch.
129
+ */
118
130
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
133
+ *
134
+ * Sets the start position
135
+ */
119
136
  cursor?: Prisma.PaymentWhereUniqueInput;
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
+ *
140
+ * Take `±n` Payments from the position of the cursor.
141
+ */
120
142
  take?: number;
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Skip the first `n` Payments.
147
+ */
121
148
  skip?: number;
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Count returned Payments
153
+ **/
122
154
  _count?: true | PaymentCountAggregateInputType;
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to average
159
+ **/
123
160
  _avg?: PaymentAvgAggregateInputType;
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to sum
165
+ **/
124
166
  _sum?: PaymentSumAggregateInputType;
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the minimum value
171
+ **/
125
172
  _min?: PaymentMinAggregateInputType;
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to find the maximum value
177
+ **/
126
178
  _max?: PaymentMaxAggregateInputType;
127
179
  };
128
180
  export type GetPaymentAggregateType<T extends PaymentAggregateArgs> = {
@@ -578,15 +630,27 @@ export type PaymentUncheckedUpdateWithoutSessionsInput = {
578
630
  updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
579
631
  order?: Prisma.OrderUncheckedUpdateOneWithoutPaymentNestedInput;
580
632
  };
633
+ /**
634
+ * Count Type PaymentCountOutputType
635
+ */
581
636
  export type PaymentCountOutputType = {
582
637
  sessions: number;
583
638
  };
584
639
  export type PaymentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
585
640
  sessions?: boolean | PaymentCountOutputTypeCountSessionsArgs;
586
641
  };
642
+ /**
643
+ * PaymentCountOutputType without action
644
+ */
587
645
  export type PaymentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
646
+ /**
647
+ * Select specific fields to fetch from the PaymentCountOutputType
648
+ */
588
649
  select?: Prisma.PaymentCountOutputTypeSelect<ExtArgs> | null;
589
650
  };
651
+ /**
652
+ * PaymentCountOutputType without action
653
+ */
590
654
  export type PaymentCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
591
655
  where?: Prisma.PaymentSessionWhereInput;
592
656
  };
@@ -685,22 +749,290 @@ export interface PaymentDelegate<ExtArgs extends runtime.Types.Extensions.Intern
685
749
  name: 'Payment';
686
750
  };
687
751
  };
752
+ /**
753
+ * Find zero or one Payment that matches the filter.
754
+ * @param {PaymentFindUniqueArgs} args - Arguments to find a Payment
755
+ * @example
756
+ * // Get one Payment
757
+ * const payment = await prisma.payment.findUnique({
758
+ * where: {
759
+ * // ... provide filter here
760
+ * }
761
+ * })
762
+ */
688
763
  findUnique<T extends PaymentFindUniqueArgs>(args: Prisma.SelectSubset<T, PaymentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
764
+ /**
765
+ * Find one Payment that matches the filter or throw an error with `error.code='P2025'`
766
+ * if no matches were found.
767
+ * @param {PaymentFindUniqueOrThrowArgs} args - Arguments to find a Payment
768
+ * @example
769
+ * // Get one Payment
770
+ * const payment = await prisma.payment.findUniqueOrThrow({
771
+ * where: {
772
+ * // ... provide filter here
773
+ * }
774
+ * })
775
+ */
689
776
  findUniqueOrThrow<T extends PaymentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PaymentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
777
+ /**
778
+ * Find the first Payment that matches the filter.
779
+ * Note, that providing `undefined` is treated as the value not being there.
780
+ * Read more here: https://pris.ly/d/null-undefined
781
+ * @param {PaymentFindFirstArgs} args - Arguments to find a Payment
782
+ * @example
783
+ * // Get one Payment
784
+ * const payment = await prisma.payment.findFirst({
785
+ * where: {
786
+ * // ... provide filter here
787
+ * }
788
+ * })
789
+ */
690
790
  findFirst<T extends PaymentFindFirstArgs>(args?: Prisma.SelectSubset<T, PaymentFindFirstArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
791
+ /**
792
+ * Find the first Payment that matches the filter or
793
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
794
+ * Note, that providing `undefined` is treated as the value not being there.
795
+ * Read more here: https://pris.ly/d/null-undefined
796
+ * @param {PaymentFindFirstOrThrowArgs} args - Arguments to find a Payment
797
+ * @example
798
+ * // Get one Payment
799
+ * const payment = await prisma.payment.findFirstOrThrow({
800
+ * where: {
801
+ * // ... provide filter here
802
+ * }
803
+ * })
804
+ */
691
805
  findFirstOrThrow<T extends PaymentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PaymentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
806
+ /**
807
+ * Find zero or more Payments that matches the filter.
808
+ * Note, that providing `undefined` is treated as the value not being there.
809
+ * Read more here: https://pris.ly/d/null-undefined
810
+ * @param {PaymentFindManyArgs} args - Arguments to filter and select certain fields only.
811
+ * @example
812
+ * // Get all Payments
813
+ * const payments = await prisma.payment.findMany()
814
+ *
815
+ * // Get first 10 Payments
816
+ * const payments = await prisma.payment.findMany({ take: 10 })
817
+ *
818
+ * // Only select the `id`
819
+ * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } })
820
+ *
821
+ */
692
822
  findMany<T extends PaymentFindManyArgs>(args?: Prisma.SelectSubset<T, PaymentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
823
+ /**
824
+ * Create a Payment.
825
+ * @param {PaymentCreateArgs} args - Arguments to create a Payment.
826
+ * @example
827
+ * // Create one Payment
828
+ * const Payment = await prisma.payment.create({
829
+ * data: {
830
+ * // ... data to create a Payment
831
+ * }
832
+ * })
833
+ *
834
+ */
693
835
  create<T extends PaymentCreateArgs>(args: Prisma.SelectSubset<T, PaymentCreateArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
836
+ /**
837
+ * Create many Payments.
838
+ * @param {PaymentCreateManyArgs} args - Arguments to create many Payments.
839
+ * @example
840
+ * // Create many Payments
841
+ * const payment = await prisma.payment.createMany({
842
+ * data: [
843
+ * // ... provide data here
844
+ * ]
845
+ * })
846
+ *
847
+ */
694
848
  createMany<T extends PaymentCreateManyArgs>(args?: Prisma.SelectSubset<T, PaymentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
849
+ /**
850
+ * Create many Payments and returns the data saved in the database.
851
+ * @param {PaymentCreateManyAndReturnArgs} args - Arguments to create many Payments.
852
+ * @example
853
+ * // Create many Payments
854
+ * const payment = await prisma.payment.createManyAndReturn({
855
+ * data: [
856
+ * // ... provide data here
857
+ * ]
858
+ * })
859
+ *
860
+ * // Create many Payments and only return the `id`
861
+ * const paymentWithIdOnly = await prisma.payment.createManyAndReturn({
862
+ * select: { id: true },
863
+ * data: [
864
+ * // ... provide data here
865
+ * ]
866
+ * })
867
+ * Note, that providing `undefined` is treated as the value not being there.
868
+ * Read more here: https://pris.ly/d/null-undefined
869
+ *
870
+ */
695
871
  createManyAndReturn<T extends PaymentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PaymentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
872
+ /**
873
+ * Delete a Payment.
874
+ * @param {PaymentDeleteArgs} args - Arguments to delete one Payment.
875
+ * @example
876
+ * // Delete one Payment
877
+ * const Payment = await prisma.payment.delete({
878
+ * where: {
879
+ * // ... filter to delete one Payment
880
+ * }
881
+ * })
882
+ *
883
+ */
696
884
  delete<T extends PaymentDeleteArgs>(args: Prisma.SelectSubset<T, PaymentDeleteArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
885
+ /**
886
+ * Update one Payment.
887
+ * @param {PaymentUpdateArgs} args - Arguments to update one Payment.
888
+ * @example
889
+ * // Update one Payment
890
+ * const payment = await prisma.payment.update({
891
+ * where: {
892
+ * // ... provide filter here
893
+ * },
894
+ * data: {
895
+ * // ... provide data here
896
+ * }
897
+ * })
898
+ *
899
+ */
697
900
  update<T extends PaymentUpdateArgs>(args: Prisma.SelectSubset<T, PaymentUpdateArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
901
+ /**
902
+ * Delete zero or more Payments.
903
+ * @param {PaymentDeleteManyArgs} args - Arguments to filter Payments to delete.
904
+ * @example
905
+ * // Delete a few Payments
906
+ * const { count } = await prisma.payment.deleteMany({
907
+ * where: {
908
+ * // ... provide filter here
909
+ * }
910
+ * })
911
+ *
912
+ */
698
913
  deleteMany<T extends PaymentDeleteManyArgs>(args?: Prisma.SelectSubset<T, PaymentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
914
+ /**
915
+ * Update zero or more Payments.
916
+ * Note, that providing `undefined` is treated as the value not being there.
917
+ * Read more here: https://pris.ly/d/null-undefined
918
+ * @param {PaymentUpdateManyArgs} args - Arguments to update one or more rows.
919
+ * @example
920
+ * // Update many Payments
921
+ * const payment = await prisma.payment.updateMany({
922
+ * where: {
923
+ * // ... provide filter here
924
+ * },
925
+ * data: {
926
+ * // ... provide data here
927
+ * }
928
+ * })
929
+ *
930
+ */
699
931
  updateMany<T extends PaymentUpdateManyArgs>(args: Prisma.SelectSubset<T, PaymentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
932
+ /**
933
+ * Update zero or more Payments and returns the data updated in the database.
934
+ * @param {PaymentUpdateManyAndReturnArgs} args - Arguments to update many Payments.
935
+ * @example
936
+ * // Update many Payments
937
+ * const payment = await prisma.payment.updateManyAndReturn({
938
+ * where: {
939
+ * // ... provide filter here
940
+ * },
941
+ * data: [
942
+ * // ... provide data here
943
+ * ]
944
+ * })
945
+ *
946
+ * // Update zero or more Payments and only return the `id`
947
+ * const paymentWithIdOnly = await prisma.payment.updateManyAndReturn({
948
+ * select: { id: true },
949
+ * where: {
950
+ * // ... provide filter here
951
+ * },
952
+ * data: [
953
+ * // ... provide data here
954
+ * ]
955
+ * })
956
+ * Note, that providing `undefined` is treated as the value not being there.
957
+ * Read more here: https://pris.ly/d/null-undefined
958
+ *
959
+ */
700
960
  updateManyAndReturn<T extends PaymentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PaymentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
961
+ /**
962
+ * Create or update one Payment.
963
+ * @param {PaymentUpsertArgs} args - Arguments to update or create a Payment.
964
+ * @example
965
+ * // Update or create a Payment
966
+ * const payment = await prisma.payment.upsert({
967
+ * create: {
968
+ * // ... data to create a Payment
969
+ * },
970
+ * update: {
971
+ * // ... in case it already exists, update
972
+ * },
973
+ * where: {
974
+ * // ... the filter for the Payment we want to update
975
+ * }
976
+ * })
977
+ */
701
978
  upsert<T extends PaymentUpsertArgs>(args: Prisma.SelectSubset<T, PaymentUpsertArgs<ExtArgs>>): Prisma.Prisma__PaymentClient<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
979
+ /**
980
+ * Count the number of Payments.
981
+ * Note, that providing `undefined` is treated as the value not being there.
982
+ * Read more here: https://pris.ly/d/null-undefined
983
+ * @param {PaymentCountArgs} args - Arguments to filter Payments to count.
984
+ * @example
985
+ * // Count the number of Payments
986
+ * const count = await prisma.payment.count({
987
+ * where: {
988
+ * // ... the filter for the Payments we want to count
989
+ * }
990
+ * })
991
+ **/
702
992
  count<T extends PaymentCountArgs>(args?: Prisma.Subset<T, PaymentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], PaymentCountAggregateOutputType> : number>;
993
+ /**
994
+ * Allows you to perform aggregations operations on a Payment.
995
+ * Note, that providing `undefined` is treated as the value not being there.
996
+ * Read more here: https://pris.ly/d/null-undefined
997
+ * @param {PaymentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
998
+ * @example
999
+ * // Ordered by age ascending
1000
+ * // Where email contains prisma.io
1001
+ * // Limited to the 10 users
1002
+ * const aggregations = await prisma.user.aggregate({
1003
+ * _avg: {
1004
+ * age: true,
1005
+ * },
1006
+ * where: {
1007
+ * email: {
1008
+ * contains: "prisma.io",
1009
+ * },
1010
+ * },
1011
+ * orderBy: {
1012
+ * age: "asc",
1013
+ * },
1014
+ * take: 10,
1015
+ * })
1016
+ **/
703
1017
  aggregate<T extends PaymentAggregateArgs>(args: Prisma.Subset<T, PaymentAggregateArgs>): Prisma.PrismaPromise<GetPaymentAggregateType<T>>;
1018
+ /**
1019
+ * Group by Payment.
1020
+ * Note, that providing `undefined` is treated as the value not being there.
1021
+ * Read more here: https://pris.ly/d/null-undefined
1022
+ * @param {PaymentGroupByArgs} args - Group by arguments.
1023
+ * @example
1024
+ * // Group by city, order by createdAt, get count
1025
+ * const result = await prisma.user.groupBy({
1026
+ * by: ['city', 'createdAt'],
1027
+ * orderBy: {
1028
+ * createdAt: true
1029
+ * },
1030
+ * _count: {
1031
+ * _all: true
1032
+ * },
1033
+ * })
1034
+ *
1035
+ **/
704
1036
  groupBy<T extends PaymentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
705
1037
  orderBy: PaymentGroupByArgs['orderBy'];
706
1038
  } : {
@@ -719,16 +1051,45 @@ export interface PaymentDelegate<ExtArgs extends runtime.Types.Extensions.Intern
719
1051
  }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
720
1052
  [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
721
1053
  }[OrderFields]>(args: Prisma.SubsetIntersection<T, PaymentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPaymentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1054
+ /**
1055
+ * Fields of the Payment model
1056
+ */
722
1057
  readonly fields: PaymentFieldRefs;
723
1058
  }
1059
+ /**
1060
+ * The delegate class that acts as a "Promise-like" for Payment.
1061
+ * Why is this prefixed with `Prisma__`?
1062
+ * Because we want to prevent naming conflicts as mentioned in
1063
+ * https://github.com/prisma/prisma-client-js/issues/707
1064
+ */
724
1065
  export interface Prisma__PaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
725
1066
  readonly [Symbol.toStringTag]: "PrismaPromise";
726
1067
  sessions<T extends Prisma.Payment$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Payment$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentSessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
727
1068
  order<T extends Prisma.Payment$orderArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Payment$orderArgs<ExtArgs>>): Prisma.Prisma__OrderClient<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1069
+ /**
1070
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1071
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1072
+ * @param onrejected The callback to execute when the Promise is rejected.
1073
+ * @returns A Promise for the completion of which ever callback is executed.
1074
+ */
728
1075
  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>;
1076
+ /**
1077
+ * Attaches a callback for only the rejection of the Promise.
1078
+ * @param onrejected The callback to execute when the Promise is rejected.
1079
+ * @returns A Promise for the completion of the callback.
1080
+ */
729
1081
  catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1082
+ /**
1083
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1084
+ * resolved value cannot be modified from the callback.
1085
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1086
+ * @returns A Promise for the completion of the callback.
1087
+ */
730
1088
  finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
731
1089
  }
1090
+ /**
1091
+ * Fields of the Payment model
1092
+ */
732
1093
  export interface PaymentFieldRefs {
733
1094
  readonly id: Prisma.FieldRef<"Payment", 'String'>;
734
1095
  readonly method: Prisma.FieldRef<"Payment", 'PaymentMethod'>;
@@ -742,107 +1103,395 @@ export interface PaymentFieldRefs {
742
1103
  readonly createdAt: Prisma.FieldRef<"Payment", 'DateTime'>;
743
1104
  readonly updatedAt: Prisma.FieldRef<"Payment", 'DateTime'>;
744
1105
  }
1106
+ /**
1107
+ * Payment findUnique
1108
+ */
745
1109
  export type PaymentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * Select specific fields to fetch from the Payment
1112
+ */
746
1113
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1114
+ /**
1115
+ * Omit specific fields from the Payment
1116
+ */
747
1117
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1118
+ /**
1119
+ * Choose, which related nodes to fetch as well
1120
+ */
748
1121
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1122
+ /**
1123
+ * Filter, which Payment to fetch.
1124
+ */
749
1125
  where: Prisma.PaymentWhereUniqueInput;
750
1126
  };
1127
+ /**
1128
+ * Payment findUniqueOrThrow
1129
+ */
751
1130
  export type PaymentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the Payment
1133
+ */
752
1134
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1135
+ /**
1136
+ * Omit specific fields from the Payment
1137
+ */
753
1138
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1139
+ /**
1140
+ * Choose, which related nodes to fetch as well
1141
+ */
754
1142
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1143
+ /**
1144
+ * Filter, which Payment to fetch.
1145
+ */
755
1146
  where: Prisma.PaymentWhereUniqueInput;
756
1147
  };
1148
+ /**
1149
+ * Payment findFirst
1150
+ */
757
1151
  export type PaymentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1152
+ /**
1153
+ * Select specific fields to fetch from the Payment
1154
+ */
758
1155
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1156
+ /**
1157
+ * Omit specific fields from the Payment
1158
+ */
759
1159
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1160
+ /**
1161
+ * Choose, which related nodes to fetch as well
1162
+ */
760
1163
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1164
+ /**
1165
+ * Filter, which Payment to fetch.
1166
+ */
761
1167
  where?: Prisma.PaymentWhereInput;
1168
+ /**
1169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1170
+ *
1171
+ * Determine the order of Payments to fetch.
1172
+ */
762
1173
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1174
+ /**
1175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1176
+ *
1177
+ * Sets the position for searching for Payments.
1178
+ */
763
1179
  cursor?: Prisma.PaymentWhereUniqueInput;
1180
+ /**
1181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1182
+ *
1183
+ * Take `±n` Payments from the position of the cursor.
1184
+ */
764
1185
  take?: number;
1186
+ /**
1187
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1188
+ *
1189
+ * Skip the first `n` Payments.
1190
+ */
765
1191
  skip?: number;
1192
+ /**
1193
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1194
+ *
1195
+ * Filter by unique combinations of Payments.
1196
+ */
766
1197
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
767
1198
  };
1199
+ /**
1200
+ * Payment findFirstOrThrow
1201
+ */
768
1202
  export type PaymentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
+ /**
1204
+ * Select specific fields to fetch from the Payment
1205
+ */
769
1206
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1207
+ /**
1208
+ * Omit specific fields from the Payment
1209
+ */
770
1210
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1211
+ /**
1212
+ * Choose, which related nodes to fetch as well
1213
+ */
771
1214
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1215
+ /**
1216
+ * Filter, which Payment to fetch.
1217
+ */
772
1218
  where?: Prisma.PaymentWhereInput;
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1221
+ *
1222
+ * Determine the order of Payments to fetch.
1223
+ */
773
1224
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1225
+ /**
1226
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1227
+ *
1228
+ * Sets the position for searching for Payments.
1229
+ */
774
1230
  cursor?: Prisma.PaymentWhereUniqueInput;
1231
+ /**
1232
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
+ *
1234
+ * Take `±n` Payments from the position of the cursor.
1235
+ */
775
1236
  take?: number;
1237
+ /**
1238
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1239
+ *
1240
+ * Skip the first `n` Payments.
1241
+ */
776
1242
  skip?: number;
1243
+ /**
1244
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1245
+ *
1246
+ * Filter by unique combinations of Payments.
1247
+ */
777
1248
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
778
1249
  };
1250
+ /**
1251
+ * Payment findMany
1252
+ */
779
1253
  export type PaymentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * Select specific fields to fetch from the Payment
1256
+ */
780
1257
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1258
+ /**
1259
+ * Omit specific fields from the Payment
1260
+ */
781
1261
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1262
+ /**
1263
+ * Choose, which related nodes to fetch as well
1264
+ */
782
1265
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1266
+ /**
1267
+ * Filter, which Payments to fetch.
1268
+ */
783
1269
  where?: Prisma.PaymentWhereInput;
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1272
+ *
1273
+ * Determine the order of Payments to fetch.
1274
+ */
784
1275
  orderBy?: Prisma.PaymentOrderByWithRelationInput | Prisma.PaymentOrderByWithRelationInput[];
1276
+ /**
1277
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1278
+ *
1279
+ * Sets the position for listing Payments.
1280
+ */
785
1281
  cursor?: Prisma.PaymentWhereUniqueInput;
1282
+ /**
1283
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1284
+ *
1285
+ * Take `±n` Payments from the position of the cursor.
1286
+ */
786
1287
  take?: number;
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1290
+ *
1291
+ * Skip the first `n` Payments.
1292
+ */
787
1293
  skip?: number;
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1296
+ *
1297
+ * Filter by unique combinations of Payments.
1298
+ */
788
1299
  distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[];
789
1300
  };
1301
+ /**
1302
+ * Payment create
1303
+ */
790
1304
  export type PaymentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1305
+ /**
1306
+ * Select specific fields to fetch from the Payment
1307
+ */
791
1308
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1309
+ /**
1310
+ * Omit specific fields from the Payment
1311
+ */
792
1312
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1313
+ /**
1314
+ * Choose, which related nodes to fetch as well
1315
+ */
793
1316
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1317
+ /**
1318
+ * The data needed to create a Payment.
1319
+ */
794
1320
  data: Prisma.XOR<Prisma.PaymentCreateInput, Prisma.PaymentUncheckedCreateInput>;
795
1321
  };
1322
+ /**
1323
+ * Payment createMany
1324
+ */
796
1325
  export type PaymentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * The data used to create many Payments.
1328
+ */
797
1329
  data: Prisma.PaymentCreateManyInput | Prisma.PaymentCreateManyInput[];
798
1330
  skipDuplicates?: boolean;
799
1331
  };
1332
+ /**
1333
+ * Payment createManyAndReturn
1334
+ */
800
1335
  export type PaymentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ /**
1337
+ * Select specific fields to fetch from the Payment
1338
+ */
801
1339
  select?: Prisma.PaymentSelectCreateManyAndReturn<ExtArgs> | null;
1340
+ /**
1341
+ * Omit specific fields from the Payment
1342
+ */
802
1343
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1344
+ /**
1345
+ * The data used to create many Payments.
1346
+ */
803
1347
  data: Prisma.PaymentCreateManyInput | Prisma.PaymentCreateManyInput[];
804
1348
  skipDuplicates?: boolean;
805
1349
  };
1350
+ /**
1351
+ * Payment update
1352
+ */
806
1353
  export type PaymentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1354
+ /**
1355
+ * Select specific fields to fetch from the Payment
1356
+ */
807
1357
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1358
+ /**
1359
+ * Omit specific fields from the Payment
1360
+ */
808
1361
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1362
+ /**
1363
+ * Choose, which related nodes to fetch as well
1364
+ */
809
1365
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1366
+ /**
1367
+ * The data needed to update a Payment.
1368
+ */
810
1369
  data: Prisma.XOR<Prisma.PaymentUpdateInput, Prisma.PaymentUncheckedUpdateInput>;
1370
+ /**
1371
+ * Choose, which Payment to update.
1372
+ */
811
1373
  where: Prisma.PaymentWhereUniqueInput;
812
1374
  };
1375
+ /**
1376
+ * Payment updateMany
1377
+ */
813
1378
  export type PaymentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1379
+ /**
1380
+ * The data used to update Payments.
1381
+ */
814
1382
  data: Prisma.XOR<Prisma.PaymentUpdateManyMutationInput, Prisma.PaymentUncheckedUpdateManyInput>;
1383
+ /**
1384
+ * Filter which Payments to update
1385
+ */
815
1386
  where?: Prisma.PaymentWhereInput;
1387
+ /**
1388
+ * Limit how many Payments to update.
1389
+ */
816
1390
  limit?: number;
817
1391
  };
1392
+ /**
1393
+ * Payment updateManyAndReturn
1394
+ */
818
1395
  export type PaymentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1396
+ /**
1397
+ * Select specific fields to fetch from the Payment
1398
+ */
819
1399
  select?: Prisma.PaymentSelectUpdateManyAndReturn<ExtArgs> | null;
1400
+ /**
1401
+ * Omit specific fields from the Payment
1402
+ */
820
1403
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1404
+ /**
1405
+ * The data used to update Payments.
1406
+ */
821
1407
  data: Prisma.XOR<Prisma.PaymentUpdateManyMutationInput, Prisma.PaymentUncheckedUpdateManyInput>;
1408
+ /**
1409
+ * Filter which Payments to update
1410
+ */
822
1411
  where?: Prisma.PaymentWhereInput;
1412
+ /**
1413
+ * Limit how many Payments to update.
1414
+ */
823
1415
  limit?: number;
824
1416
  };
1417
+ /**
1418
+ * Payment upsert
1419
+ */
825
1420
  export type PaymentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Select specific fields to fetch from the Payment
1423
+ */
826
1424
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1425
+ /**
1426
+ * Omit specific fields from the Payment
1427
+ */
827
1428
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1429
+ /**
1430
+ * Choose, which related nodes to fetch as well
1431
+ */
828
1432
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1433
+ /**
1434
+ * The filter to search for the Payment to update in case it exists.
1435
+ */
829
1436
  where: Prisma.PaymentWhereUniqueInput;
1437
+ /**
1438
+ * In case the Payment found by the `where` argument doesn't exist, create a new Payment with this data.
1439
+ */
830
1440
  create: Prisma.XOR<Prisma.PaymentCreateInput, Prisma.PaymentUncheckedCreateInput>;
1441
+ /**
1442
+ * In case the Payment was found with the provided `where` argument, update it with this data.
1443
+ */
831
1444
  update: Prisma.XOR<Prisma.PaymentUpdateInput, Prisma.PaymentUncheckedUpdateInput>;
832
1445
  };
1446
+ /**
1447
+ * Payment delete
1448
+ */
833
1449
  export type PaymentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1450
+ /**
1451
+ * Select specific fields to fetch from the Payment
1452
+ */
834
1453
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1454
+ /**
1455
+ * Omit specific fields from the Payment
1456
+ */
835
1457
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1458
+ /**
1459
+ * Choose, which related nodes to fetch as well
1460
+ */
836
1461
  include?: Prisma.PaymentInclude<ExtArgs> | null;
1462
+ /**
1463
+ * Filter which Payment to delete.
1464
+ */
837
1465
  where: Prisma.PaymentWhereUniqueInput;
838
1466
  };
1467
+ /**
1468
+ * Payment deleteMany
1469
+ */
839
1470
  export type PaymentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1471
+ /**
1472
+ * Filter which Payments to delete
1473
+ */
840
1474
  where?: Prisma.PaymentWhereInput;
1475
+ /**
1476
+ * Limit how many Payments to delete.
1477
+ */
841
1478
  limit?: number;
842
1479
  };
1480
+ /**
1481
+ * Payment.sessions
1482
+ */
843
1483
  export type Payment$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the PaymentSession
1486
+ */
844
1487
  select?: Prisma.PaymentSessionSelect<ExtArgs> | null;
1488
+ /**
1489
+ * Omit specific fields from the PaymentSession
1490
+ */
845
1491
  omit?: Prisma.PaymentSessionOmit<ExtArgs> | null;
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
846
1495
  include?: Prisma.PaymentSessionInclude<ExtArgs> | null;
847
1496
  where?: Prisma.PaymentSessionWhereInput;
848
1497
  orderBy?: Prisma.PaymentSessionOrderByWithRelationInput | Prisma.PaymentSessionOrderByWithRelationInput[];
@@ -851,15 +1500,39 @@ export type Payment$sessionsArgs<ExtArgs extends runtime.Types.Extensions.Intern
851
1500
  skip?: number;
852
1501
  distinct?: Prisma.PaymentSessionScalarFieldEnum | Prisma.PaymentSessionScalarFieldEnum[];
853
1502
  };
1503
+ /**
1504
+ * Payment.order
1505
+ */
854
1506
  export type Payment$orderArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1507
+ /**
1508
+ * Select specific fields to fetch from the Order
1509
+ */
855
1510
  select?: Prisma.OrderSelect<ExtArgs> | null;
1511
+ /**
1512
+ * Omit specific fields from the Order
1513
+ */
856
1514
  omit?: Prisma.OrderOmit<ExtArgs> | null;
1515
+ /**
1516
+ * Choose, which related nodes to fetch as well
1517
+ */
857
1518
  include?: Prisma.OrderInclude<ExtArgs> | null;
858
1519
  where?: Prisma.OrderWhereInput;
859
1520
  };
1521
+ /**
1522
+ * Payment without action
1523
+ */
860
1524
  export type PaymentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1525
+ /**
1526
+ * Select specific fields to fetch from the Payment
1527
+ */
861
1528
  select?: Prisma.PaymentSelect<ExtArgs> | null;
1529
+ /**
1530
+ * Omit specific fields from the Payment
1531
+ */
862
1532
  omit?: Prisma.PaymentOmit<ExtArgs> | null;
1533
+ /**
1534
+ * Choose, which related nodes to fetch as well
1535
+ */
863
1536
  include?: Prisma.PaymentInclude<ExtArgs> | null;
864
1537
  };
865
1538
  export {};