@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.1

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 (412) hide show
  1. package/lib/generated/prisma/browser.d.ts +514 -0
  2. package/lib/generated/prisma/browser.js +57 -0
  3. package/lib/generated/prisma/browser.js.map +1 -0
  4. package/lib/generated/prisma/client.d.ts +531 -0
  5. package/lib/generated/prisma/client.js +69 -0
  6. package/lib/generated/prisma/client.js.map +1 -0
  7. package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
  8. package/lib/generated/prisma/commonInputTypes.js +12 -0
  9. package/lib/generated/prisma/commonInputTypes.js.map +1 -0
  10. package/lib/generated/prisma/dmmf.d.ts +4085 -0
  11. package/lib/generated/prisma/dmmf.js +27551 -0
  12. package/lib/generated/prisma/dmmf.js.map +1 -0
  13. package/lib/generated/prisma/enums.d.ts +216 -0
  14. package/lib/generated/prisma/enums.js +205 -0
  15. package/lib/generated/prisma/enums.js.map +1 -0
  16. package/lib/generated/prisma/internal/class.d.ts +1237 -0
  17. package/lib/generated/prisma/internal/class.js +79 -0
  18. package/lib/generated/prisma/internal/class.js.map +1 -0
  19. package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
  20. package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
  21. package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
  23. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
  24. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/lib/generated/prisma/kysely-types.d.ts +1499 -0
  26. package/lib/generated/prisma/kysely-types.js +196 -0
  27. package/lib/generated/prisma/kysely-types.js.map +1 -0
  28. package/lib/generated/prisma/models/Address.d.ts +1339 -0
  29. package/lib/generated/prisma/models/Address.js +12 -0
  30. package/lib/generated/prisma/models/Address.js.map +1 -0
  31. package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
  32. package/lib/generated/prisma/models/Administrator.js +12 -0
  33. package/lib/generated/prisma/models/Administrator.js.map +1 -0
  34. package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
  35. package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
  36. package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
  37. package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
  38. package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
  39. package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
  40. package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
  41. package/lib/generated/prisma/models/ApiToken.js +12 -0
  42. package/lib/generated/prisma/models/ApiToken.js.map +1 -0
  43. package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
  44. package/lib/generated/prisma/models/AwsBucket.js +12 -0
  45. package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
  46. package/lib/generated/prisma/models/Card.d.ts +1533 -0
  47. package/lib/generated/prisma/models/Card.js +12 -0
  48. package/lib/generated/prisma/models/Card.js.map +1 -0
  49. package/lib/generated/prisma/models/Cart.d.ts +2315 -0
  50. package/lib/generated/prisma/models/Cart.js +12 -0
  51. package/lib/generated/prisma/models/Cart.js.map +1 -0
  52. package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
  53. package/lib/generated/prisma/models/CartCost.js +12 -0
  54. package/lib/generated/prisma/models/CartCost.js.map +1 -0
  55. package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
  56. package/lib/generated/prisma/models/CartLine.js +12 -0
  57. package/lib/generated/prisma/models/CartLine.js.map +1 -0
  58. package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
  59. package/lib/generated/prisma/models/CartLineModifier.js +12 -0
  60. package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
  61. package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
  62. package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
  63. package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
  64. package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
  65. package/lib/generated/prisma/models/Checkout.js +12 -0
  66. package/lib/generated/prisma/models/Checkout.js.map +1 -0
  67. package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
  68. package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
  69. package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
  70. package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
  71. package/lib/generated/prisma/models/CheckoutLine.js +12 -0
  72. package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
  73. package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
  74. package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
  75. package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
  76. package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
  77. package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
  78. package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
  79. package/lib/generated/prisma/models/Collection.d.ts +1961 -0
  80. package/lib/generated/prisma/models/Collection.js +12 -0
  81. package/lib/generated/prisma/models/Collection.js.map +1 -0
  82. package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
  83. package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
  84. package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
  85. package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
  86. package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
  87. package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
  88. package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
  89. package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
  90. package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
  91. package/lib/generated/prisma/models/Customer.d.ts +2964 -0
  92. package/lib/generated/prisma/models/Customer.js +12 -0
  93. package/lib/generated/prisma/models/Customer.js.map +1 -0
  94. package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
  95. package/lib/generated/prisma/models/CustomerGroup.js +12 -0
  96. package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
  97. package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
  98. package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
  99. package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
  100. package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
  101. package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
  102. package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
  103. package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
  104. package/lib/generated/prisma/models/DiscountCode.js +12 -0
  105. package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
  106. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
  107. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
  108. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
  109. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
  110. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
  111. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
  112. package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
  113. package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
  114. package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
  115. package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
  116. package/lib/generated/prisma/models/EventLog.js +12 -0
  117. package/lib/generated/prisma/models/EventLog.js.map +1 -0
  118. package/lib/generated/prisma/models/Facet.d.ts +1266 -0
  119. package/lib/generated/prisma/models/Facet.js +12 -0
  120. package/lib/generated/prisma/models/Facet.js.map +1 -0
  121. package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
  122. package/lib/generated/prisma/models/FacetOption.js +12 -0
  123. package/lib/generated/prisma/models/FacetOption.js.map +1 -0
  124. package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
  125. package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
  126. package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
  127. package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
  128. package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
  129. package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
  130. package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
  131. package/lib/generated/prisma/models/FeatureFlag.js +12 -0
  132. package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
  133. package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
  134. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
  135. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
  136. package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
  137. package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
  138. package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
  139. package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
  140. package/lib/generated/prisma/models/FreeItemRule.js +12 -0
  141. package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
  142. package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
  143. package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
  144. package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
  145. package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
  146. package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
  147. package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
  148. package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
  149. package/lib/generated/prisma/models/Ingredient.js +12 -0
  150. package/lib/generated/prisma/models/Ingredient.js.map +1 -0
  151. package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
  152. package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
  153. package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
  154. package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
  155. package/lib/generated/prisma/models/IngredientToStore.js +12 -0
  156. package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
  157. package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
  158. package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
  159. package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
  160. package/lib/generated/prisma/models/Media.d.ts +2127 -0
  161. package/lib/generated/prisma/models/Media.js +12 -0
  162. package/lib/generated/prisma/models/Media.js.map +1 -0
  163. package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
  164. package/lib/generated/prisma/models/Modifier.js +12 -0
  165. package/lib/generated/prisma/models/Modifier.js.map +1 -0
  166. package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
  167. package/lib/generated/prisma/models/ModifierGroup.js +12 -0
  168. package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
  169. package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
  170. package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
  171. package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
  172. package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
  173. package/lib/generated/prisma/models/ModifierOption.js +12 -0
  174. package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
  175. package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
  176. package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
  177. package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
  178. package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
  179. package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
  180. package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
  181. package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
  182. package/lib/generated/prisma/models/OneTimeToken.js +12 -0
  183. package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
  184. package/lib/generated/prisma/models/Payment.d.ts +1560 -0
  185. package/lib/generated/prisma/models/Payment.js +12 -0
  186. package/lib/generated/prisma/models/Payment.js.map +1 -0
  187. package/lib/generated/prisma/models/Platform.d.ts +7442 -0
  188. package/lib/generated/prisma/models/Platform.js +12 -0
  189. package/lib/generated/prisma/models/Platform.js.map +1 -0
  190. package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
  191. package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
  192. package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
  193. package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
  194. package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
  195. package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
  196. package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
  197. package/lib/generated/prisma/models/PrepTime.js +12 -0
  198. package/lib/generated/prisma/models/PrepTime.js.map +1 -0
  199. package/lib/generated/prisma/models/Product.d.ts +2975 -0
  200. package/lib/generated/prisma/models/Product.js +12 -0
  201. package/lib/generated/prisma/models/Product.js.map +1 -0
  202. package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
  203. package/lib/generated/prisma/models/ProductCategory.js +12 -0
  204. package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
  205. package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
  206. package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
  207. package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
  208. package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
  209. package/lib/generated/prisma/models/ProductListing.js +12 -0
  210. package/lib/generated/prisma/models/ProductListing.js.map +1 -0
  211. package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
  212. package/lib/generated/prisma/models/ProductToTag.js +12 -0
  213. package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
  214. package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
  215. package/lib/generated/prisma/models/ProductVariant.js +12 -0
  216. package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
  217. package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
  218. package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
  219. package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
  220. package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
  221. package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
  222. package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
  223. package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
  224. package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
  225. package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
  226. package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
  227. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
  228. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
  229. package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
  230. package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
  231. package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
  232. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
  233. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
  234. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
  235. package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
  236. package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
  237. package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
  238. package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
  239. package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
  240. package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
  241. package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
  242. package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
  243. package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
  244. package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
  245. package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
  246. package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
  247. package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
  248. package/lib/generated/prisma/models/ProductVarietal.js +12 -0
  249. package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
  250. package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
  251. package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
  252. package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
  253. package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
  254. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
  255. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
  256. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
  257. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
  258. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
  259. package/lib/generated/prisma/models/Refund.d.ts +1707 -0
  260. package/lib/generated/prisma/models/Refund.js +12 -0
  261. package/lib/generated/prisma/models/Refund.js.map +1 -0
  262. package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
  263. package/lib/generated/prisma/models/RefundLine.js +12 -0
  264. package/lib/generated/prisma/models/RefundLine.js.map +1 -0
  265. package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
  266. package/lib/generated/prisma/models/RelatedItems.js +12 -0
  267. package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
  268. package/lib/generated/prisma/models/Role.d.ts +1264 -0
  269. package/lib/generated/prisma/models/Role.js +12 -0
  270. package/lib/generated/prisma/models/Role.js.map +1 -0
  271. package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
  272. package/lib/generated/prisma/models/ScheduledTask.js +12 -0
  273. package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
  274. package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
  275. package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
  276. package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
  277. package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
  278. package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
  279. package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
  280. package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
  281. package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
  282. package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
  283. package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
  284. package/lib/generated/prisma/models/SmsConversation.js +12 -0
  285. package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
  286. package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
  287. package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
  288. package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
  289. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
  290. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
  291. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
  292. package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
  293. package/lib/generated/prisma/models/StockLevel.js +12 -0
  294. package/lib/generated/prisma/models/StockLevel.js.map +1 -0
  295. package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
  296. package/lib/generated/prisma/models/StockLocation.js +12 -0
  297. package/lib/generated/prisma/models/StockLocation.js.map +1 -0
  298. package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
  299. package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
  300. package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
  301. package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
  302. package/lib/generated/prisma/models/StockMovement.js +12 -0
  303. package/lib/generated/prisma/models/StockMovement.js.map +1 -0
  304. package/lib/generated/prisma/models/Store.d.ts +4487 -0
  305. package/lib/generated/prisma/models/Store.js +12 -0
  306. package/lib/generated/prisma/models/Store.js.map +1 -0
  307. package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
  308. package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
  309. package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
  310. package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
  311. package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
  312. package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
  313. package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
  314. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
  315. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
  316. package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
  317. package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
  318. package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
  319. package/lib/generated/prisma/models/Tag.d.ts +1581 -0
  320. package/lib/generated/prisma/models/Tag.js +12 -0
  321. package/lib/generated/prisma/models/Tag.js.map +1 -0
  322. package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
  323. package/lib/generated/prisma/models/TaxCategory.js +12 -0
  324. package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
  325. package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
  326. package/lib/generated/prisma/models/Transaction.js +12 -0
  327. package/lib/generated/prisma/models/Transaction.js.map +1 -0
  328. package/lib/generated/prisma/models/User.d.ts +1907 -0
  329. package/lib/generated/prisma/models/User.js +12 -0
  330. package/lib/generated/prisma/models/User.js.map +1 -0
  331. package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
  332. package/lib/generated/prisma/models/UserToRole.js +12 -0
  333. package/lib/generated/prisma/models/UserToRole.js.map +1 -0
  334. package/lib/generated/prisma/models.d.ts +103 -0
  335. package/lib/generated/prisma/models.js +3 -0
  336. package/lib/generated/prisma/models.js.map +1 -0
  337. package/lib/generated/prisma/pjtg.d.ts +145 -0
  338. package/lib/generated/prisma/pjtg.js +3 -0
  339. package/lib/generated/prisma/pjtg.js.map +1 -0
  340. package/lib/helpers.d.ts +37 -0
  341. package/lib/helpers.js +226 -0
  342. package/lib/helpers.js.map +1 -0
  343. package/lib/index.d.ts +10 -0
  344. package/lib/index.js.map +1 -0
  345. package/lib/kysely/index.d.ts +2 -0
  346. package/lib/kysely/index.js +19 -0
  347. package/lib/kysely/index.js.map +1 -0
  348. package/lib/kysely/kysely-db.d.ts +3 -0
  349. package/lib/kysely/kysely-db.js +3 -0
  350. package/lib/kysely/kysely-db.js.map +1 -0
  351. package/lib/kysely/utils/index.d.ts +4 -0
  352. package/lib/kysely/utils/index.js +21 -0
  353. package/lib/kysely/utils/index.js.map +1 -0
  354. package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
  355. package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
  356. package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
  357. package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
  358. package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
  359. package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
  360. package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
  361. package/lib/kysely/utils/serialize-bigint-value.js +13 -0
  362. package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
  363. package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
  364. package/lib/kysely/utils/serialize-numeric-value.js +11 -0
  365. package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
  366. package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
  367. package/lib/kysely/utils/shallow-dehydrate.js +3 -0
  368. package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
  369. package/lib/prisma-module/index.d.ts +4 -0
  370. package/lib/prisma-module/index.js +21 -0
  371. package/lib/prisma-module/index.js.map +1 -0
  372. package/lib/prisma-module/prisma-options.d.ts +59 -0
  373. package/lib/prisma-module/prisma-options.js +3 -0
  374. package/lib/prisma-module/prisma-options.js.map +1 -0
  375. package/lib/prisma-module/prisma.constants.d.ts +1 -0
  376. package/lib/prisma-module/prisma.constants.js +5 -0
  377. package/lib/prisma-module/prisma.constants.js.map +1 -0
  378. package/lib/prisma-module/prisma.module.d.ts +8 -0
  379. package/lib/prisma-module/prisma.module.js +73 -0
  380. package/lib/prisma-module/prisma.module.js.map +1 -0
  381. package/lib/prisma-module/prisma.service.d.ts +5 -0
  382. package/lib/prisma-module/prisma.service.js +29 -0
  383. package/lib/prisma-module/prisma.service.js.map +1 -0
  384. package/lib/tsconfig.build.tsbuildinfo +1 -0
  385. package/lib/types.d.ts +7 -0
  386. package/lib/types.js +3 -0
  387. package/lib/types.js.map +1 -0
  388. package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
  389. package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
  390. package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
  391. package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
  392. package/lib/utils/ignore-prisma-builtins.js +3 -0
  393. package/lib/utils/ignore-prisma-builtins.js.map +1 -0
  394. package/lib/utils/index.d.ts +3 -0
  395. package/lib/utils/index.js +20 -0
  396. package/lib/utils/index.js.map +1 -0
  397. package/lib/utils/prisma-where-to-sql.d.ts +5 -0
  398. package/lib/utils/prisma-where-to-sql.js +94 -0
  399. package/lib/utils/prisma-where-to-sql.js.map +1 -0
  400. package/lib/web360-prisma.constants.d.ts +2 -0
  401. package/lib/web360-prisma.constants.js +6 -0
  402. package/lib/web360-prisma.constants.js.map +1 -0
  403. package/lib/web360-prisma.module.d.ts +7 -0
  404. package/lib/web360-prisma.module.js +81 -0
  405. package/lib/web360-prisma.module.js.map +1 -0
  406. package/lib/web360-prisma.options.d.ts +38 -0
  407. package/lib/web360-prisma.options.js +3 -0
  408. package/lib/web360-prisma.options.js.map +1 -0
  409. package/lib/web360-prisma.service.d.ts +57 -0
  410. package/lib/web360-prisma.service.js +57 -0
  411. package/lib/web360-prisma.service.js.map +1 -0
  412. package/package.json +3 -2
@@ -0,0 +1,1707 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Refund
5
+ *
6
+ */
7
+ export type RefundModel = runtime.Types.Result.DefaultSelection<Prisma.$RefundPayload>;
8
+ export type AggregateRefund = {
9
+ _count: RefundCountAggregateOutputType | null;
10
+ _avg: RefundAvgAggregateOutputType | null;
11
+ _sum: RefundSumAggregateOutputType | null;
12
+ _min: RefundMinAggregateOutputType | null;
13
+ _max: RefundMaxAggregateOutputType | null;
14
+ };
15
+ export type RefundAvgAggregateOutputType = {
16
+ id: number | null;
17
+ totalAmount: runtime.Decimal | null;
18
+ paymentId: number | null;
19
+ flatAmount: runtime.Decimal | null;
20
+ tipAmount: runtime.Decimal | null;
21
+ shippingAmount: runtime.Decimal | null;
22
+ transactionId: number | null;
23
+ };
24
+ export type RefundSumAggregateOutputType = {
25
+ id: bigint | null;
26
+ totalAmount: runtime.Decimal | null;
27
+ paymentId: bigint | null;
28
+ flatAmount: runtime.Decimal | null;
29
+ tipAmount: runtime.Decimal | null;
30
+ shippingAmount: runtime.Decimal | null;
31
+ transactionId: bigint | null;
32
+ };
33
+ export type RefundMinAggregateOutputType = {
34
+ id: bigint | null;
35
+ totalAmount: runtime.Decimal | null;
36
+ reason: string | null;
37
+ paymentId: bigint | null;
38
+ flatAmount: runtime.Decimal | null;
39
+ tipAmount: runtime.Decimal | null;
40
+ shippingAmount: runtime.Decimal | null;
41
+ transactionId: bigint | null;
42
+ createdAt: Date | null;
43
+ updatedAt: Date | null;
44
+ };
45
+ export type RefundMaxAggregateOutputType = {
46
+ id: bigint | null;
47
+ totalAmount: runtime.Decimal | null;
48
+ reason: string | null;
49
+ paymentId: bigint | null;
50
+ flatAmount: runtime.Decimal | null;
51
+ tipAmount: runtime.Decimal | null;
52
+ shippingAmount: runtime.Decimal | null;
53
+ transactionId: bigint | null;
54
+ createdAt: Date | null;
55
+ updatedAt: Date | null;
56
+ };
57
+ export type RefundCountAggregateOutputType = {
58
+ id: number;
59
+ totalAmount: number;
60
+ reason: number;
61
+ metadata: number;
62
+ paymentId: number;
63
+ flatAmount: number;
64
+ tipAmount: number;
65
+ shippingAmount: number;
66
+ transactionId: number;
67
+ createdAt: number;
68
+ updatedAt: number;
69
+ _all: number;
70
+ };
71
+ export type RefundAvgAggregateInputType = {
72
+ id?: true;
73
+ totalAmount?: true;
74
+ paymentId?: true;
75
+ flatAmount?: true;
76
+ tipAmount?: true;
77
+ shippingAmount?: true;
78
+ transactionId?: true;
79
+ };
80
+ export type RefundSumAggregateInputType = {
81
+ id?: true;
82
+ totalAmount?: true;
83
+ paymentId?: true;
84
+ flatAmount?: true;
85
+ tipAmount?: true;
86
+ shippingAmount?: true;
87
+ transactionId?: true;
88
+ };
89
+ export type RefundMinAggregateInputType = {
90
+ id?: true;
91
+ totalAmount?: true;
92
+ reason?: true;
93
+ paymentId?: true;
94
+ flatAmount?: true;
95
+ tipAmount?: true;
96
+ shippingAmount?: true;
97
+ transactionId?: true;
98
+ createdAt?: true;
99
+ updatedAt?: true;
100
+ };
101
+ export type RefundMaxAggregateInputType = {
102
+ id?: true;
103
+ totalAmount?: true;
104
+ reason?: true;
105
+ paymentId?: true;
106
+ flatAmount?: true;
107
+ tipAmount?: true;
108
+ shippingAmount?: true;
109
+ transactionId?: true;
110
+ createdAt?: true;
111
+ updatedAt?: true;
112
+ };
113
+ export type RefundCountAggregateInputType = {
114
+ id?: true;
115
+ totalAmount?: true;
116
+ reason?: true;
117
+ metadata?: true;
118
+ paymentId?: true;
119
+ flatAmount?: true;
120
+ tipAmount?: true;
121
+ shippingAmount?: true;
122
+ transactionId?: true;
123
+ createdAt?: true;
124
+ updatedAt?: true;
125
+ _all?: true;
126
+ };
127
+ export type RefundAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
128
+ /**
129
+ * Filter which Refund to aggregate.
130
+ */
131
+ where?: Prisma.RefundWhereInput;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
134
+ *
135
+ * Determine the order of Refunds to fetch.
136
+ */
137
+ orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[];
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
140
+ *
141
+ * Sets the start position
142
+ */
143
+ cursor?: Prisma.RefundWhereUniqueInput;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
146
+ *
147
+ * Take `±n` Refunds from the position of the cursor.
148
+ */
149
+ take?: number;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
152
+ *
153
+ * Skip the first `n` Refunds.
154
+ */
155
+ skip?: number;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Count returned Refunds
160
+ **/
161
+ _count?: true | RefundCountAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to average
166
+ **/
167
+ _avg?: RefundAvgAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to sum
172
+ **/
173
+ _sum?: RefundSumAggregateInputType;
174
+ /**
175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
176
+ *
177
+ * Select which fields to find the minimum value
178
+ **/
179
+ _min?: RefundMinAggregateInputType;
180
+ /**
181
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
182
+ *
183
+ * Select which fields to find the maximum value
184
+ **/
185
+ _max?: RefundMaxAggregateInputType;
186
+ };
187
+ export type GetRefundAggregateType<T extends RefundAggregateArgs> = {
188
+ [P in keyof T & keyof AggregateRefund]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateRefund[P]> : Prisma.GetScalarType<T[P], AggregateRefund[P]>;
189
+ };
190
+ export type RefundGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
191
+ where?: Prisma.RefundWhereInput;
192
+ orderBy?: Prisma.RefundOrderByWithAggregationInput | Prisma.RefundOrderByWithAggregationInput[];
193
+ by: Prisma.RefundScalarFieldEnum[] | Prisma.RefundScalarFieldEnum;
194
+ having?: Prisma.RefundScalarWhereWithAggregatesInput;
195
+ take?: number;
196
+ skip?: number;
197
+ _count?: RefundCountAggregateInputType | true;
198
+ _avg?: RefundAvgAggregateInputType;
199
+ _sum?: RefundSumAggregateInputType;
200
+ _min?: RefundMinAggregateInputType;
201
+ _max?: RefundMaxAggregateInputType;
202
+ };
203
+ export type RefundGroupByOutputType = {
204
+ id: bigint;
205
+ totalAmount: runtime.Decimal;
206
+ reason: string;
207
+ metadata: unknown | null;
208
+ paymentId: bigint;
209
+ flatAmount: runtime.Decimal;
210
+ tipAmount: runtime.Decimal;
211
+ shippingAmount: runtime.Decimal;
212
+ transactionId: bigint;
213
+ createdAt: Date;
214
+ updatedAt: Date;
215
+ _count: RefundCountAggregateOutputType | null;
216
+ _avg: RefundAvgAggregateOutputType | null;
217
+ _sum: RefundSumAggregateOutputType | null;
218
+ _min: RefundMinAggregateOutputType | null;
219
+ _max: RefundMaxAggregateOutputType | null;
220
+ };
221
+ type GetRefundGroupByPayload<T extends RefundGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<RefundGroupByOutputType, T['by']> & {
222
+ [P in ((keyof T) & (keyof RefundGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], RefundGroupByOutputType[P]> : Prisma.GetScalarType<T[P], RefundGroupByOutputType[P]>;
223
+ }>>;
224
+ export type RefundWhereInput = {
225
+ AND?: Prisma.RefundWhereInput | Prisma.RefundWhereInput[];
226
+ OR?: Prisma.RefundWhereInput[];
227
+ NOT?: Prisma.RefundWhereInput | Prisma.RefundWhereInput[];
228
+ id?: Prisma.BigIntFilter<"Refund"> | bigint | number;
229
+ totalAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
230
+ reason?: Prisma.StringFilter<"Refund"> | string;
231
+ metadata?: Prisma.JsonNullableFilter<"Refund">;
232
+ paymentId?: Prisma.BigIntFilter<"Refund"> | bigint | number;
233
+ flatAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
234
+ tipAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
235
+ shippingAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
236
+ transactionId?: Prisma.BigIntFilter<"Refund"> | bigint | number;
237
+ createdAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
238
+ updatedAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
239
+ payment?: Prisma.XOR<Prisma.PaymentScalarRelationFilter, Prisma.PaymentWhereInput>;
240
+ lines?: Prisma.RefundLineListRelationFilter;
241
+ transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>;
242
+ };
243
+ export type RefundOrderByWithRelationInput = {
244
+ id?: Prisma.SortOrder;
245
+ totalAmount?: Prisma.SortOrder;
246
+ reason?: Prisma.SortOrder;
247
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
248
+ paymentId?: Prisma.SortOrder;
249
+ flatAmount?: Prisma.SortOrder;
250
+ tipAmount?: Prisma.SortOrder;
251
+ shippingAmount?: Prisma.SortOrder;
252
+ transactionId?: Prisma.SortOrder;
253
+ createdAt?: Prisma.SortOrder;
254
+ updatedAt?: Prisma.SortOrder;
255
+ payment?: Prisma.PaymentOrderByWithRelationInput;
256
+ lines?: Prisma.RefundLineOrderByRelationAggregateInput;
257
+ transaction?: Prisma.TransactionOrderByWithRelationInput;
258
+ _relevance?: Prisma.RefundOrderByRelevanceInput;
259
+ };
260
+ export type RefundWhereUniqueInput = Prisma.AtLeast<{
261
+ id?: bigint | number;
262
+ transactionId?: bigint | number;
263
+ AND?: Prisma.RefundWhereInput | Prisma.RefundWhereInput[];
264
+ OR?: Prisma.RefundWhereInput[];
265
+ NOT?: Prisma.RefundWhereInput | Prisma.RefundWhereInput[];
266
+ totalAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
267
+ reason?: Prisma.StringFilter<"Refund"> | string;
268
+ metadata?: Prisma.JsonNullableFilter<"Refund">;
269
+ paymentId?: Prisma.BigIntFilter<"Refund"> | bigint | number;
270
+ flatAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
271
+ tipAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
272
+ shippingAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
273
+ createdAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
274
+ updatedAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
275
+ payment?: Prisma.XOR<Prisma.PaymentScalarRelationFilter, Prisma.PaymentWhereInput>;
276
+ lines?: Prisma.RefundLineListRelationFilter;
277
+ transaction?: Prisma.XOR<Prisma.TransactionScalarRelationFilter, Prisma.TransactionWhereInput>;
278
+ }, "id" | "transactionId">;
279
+ export type RefundOrderByWithAggregationInput = {
280
+ id?: Prisma.SortOrder;
281
+ totalAmount?: Prisma.SortOrder;
282
+ reason?: Prisma.SortOrder;
283
+ metadata?: Prisma.SortOrderInput | Prisma.SortOrder;
284
+ paymentId?: Prisma.SortOrder;
285
+ flatAmount?: Prisma.SortOrder;
286
+ tipAmount?: Prisma.SortOrder;
287
+ shippingAmount?: Prisma.SortOrder;
288
+ transactionId?: Prisma.SortOrder;
289
+ createdAt?: Prisma.SortOrder;
290
+ updatedAt?: Prisma.SortOrder;
291
+ _count?: Prisma.RefundCountOrderByAggregateInput;
292
+ _avg?: Prisma.RefundAvgOrderByAggregateInput;
293
+ _max?: Prisma.RefundMaxOrderByAggregateInput;
294
+ _min?: Prisma.RefundMinOrderByAggregateInput;
295
+ _sum?: Prisma.RefundSumOrderByAggregateInput;
296
+ };
297
+ export type RefundScalarWhereWithAggregatesInput = {
298
+ AND?: Prisma.RefundScalarWhereWithAggregatesInput | Prisma.RefundScalarWhereWithAggregatesInput[];
299
+ OR?: Prisma.RefundScalarWhereWithAggregatesInput[];
300
+ NOT?: Prisma.RefundScalarWhereWithAggregatesInput | Prisma.RefundScalarWhereWithAggregatesInput[];
301
+ id?: Prisma.BigIntWithAggregatesFilter<"Refund"> | bigint | number;
302
+ totalAmount?: Prisma.DecimalWithAggregatesFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
303
+ reason?: Prisma.StringWithAggregatesFilter<"Refund"> | string;
304
+ metadata?: Prisma.JsonNullableWithAggregatesFilter<"Refund">;
305
+ paymentId?: Prisma.BigIntWithAggregatesFilter<"Refund"> | bigint | number;
306
+ flatAmount?: Prisma.DecimalWithAggregatesFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
307
+ tipAmount?: Prisma.DecimalWithAggregatesFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
308
+ shippingAmount?: Prisma.DecimalWithAggregatesFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
309
+ transactionId?: Prisma.BigIntWithAggregatesFilter<"Refund"> | bigint | number;
310
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Refund"> | Date | string;
311
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Refund"> | Date | string;
312
+ };
313
+ export type RefundCreateInput = {
314
+ id?: bigint | number;
315
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
316
+ reason: string;
317
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
318
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
319
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
320
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
321
+ createdAt?: Date | string;
322
+ updatedAt?: Date | string;
323
+ payment: Prisma.PaymentCreateNestedOneWithoutRefundsInput;
324
+ lines?: Prisma.RefundLineCreateNestedManyWithoutRefundInput;
325
+ transaction: Prisma.TransactionCreateNestedOneWithoutRefundInput;
326
+ };
327
+ export type RefundUncheckedCreateInput = {
328
+ id?: bigint | number;
329
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
330
+ reason: string;
331
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
332
+ paymentId: bigint | number;
333
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
334
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
335
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
336
+ transactionId: bigint | number;
337
+ createdAt?: Date | string;
338
+ updatedAt?: Date | string;
339
+ lines?: Prisma.RefundLineUncheckedCreateNestedManyWithoutRefundInput;
340
+ };
341
+ export type RefundUpdateInput = {
342
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
343
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
344
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
345
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
346
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
347
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
348
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
349
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
350
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
351
+ payment?: Prisma.PaymentUpdateOneRequiredWithoutRefundsNestedInput;
352
+ lines?: Prisma.RefundLineUpdateManyWithoutRefundNestedInput;
353
+ transaction?: Prisma.TransactionUpdateOneRequiredWithoutRefundNestedInput;
354
+ };
355
+ export type RefundUncheckedUpdateInput = {
356
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
357
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
358
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
359
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
360
+ paymentId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
361
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
362
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
363
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
364
+ transactionId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
365
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
366
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
367
+ lines?: Prisma.RefundLineUncheckedUpdateManyWithoutRefundNestedInput;
368
+ };
369
+ export type RefundCreateManyInput = {
370
+ id?: bigint | number;
371
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
372
+ reason: string;
373
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
374
+ paymentId: bigint | number;
375
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
376
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
377
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
378
+ transactionId: bigint | number;
379
+ createdAt?: Date | string;
380
+ updatedAt?: Date | string;
381
+ };
382
+ export type RefundUpdateManyMutationInput = {
383
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
384
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
385
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
386
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
387
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
388
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
389
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
390
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ };
393
+ export type RefundUncheckedUpdateManyInput = {
394
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
395
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
396
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
397
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
398
+ paymentId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
399
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
400
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
401
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
402
+ transactionId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
403
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
404
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
405
+ };
406
+ export type RefundListRelationFilter = {
407
+ every?: Prisma.RefundWhereInput;
408
+ some?: Prisma.RefundWhereInput;
409
+ none?: Prisma.RefundWhereInput;
410
+ };
411
+ export type RefundOrderByRelationAggregateInput = {
412
+ _count?: Prisma.SortOrder;
413
+ };
414
+ export type RefundScalarRelationFilter = {
415
+ is?: Prisma.RefundWhereInput;
416
+ isNot?: Prisma.RefundWhereInput;
417
+ };
418
+ export type RefundOrderByRelevanceInput = {
419
+ fields: Prisma.RefundOrderByRelevanceFieldEnum | Prisma.RefundOrderByRelevanceFieldEnum[];
420
+ sort: Prisma.SortOrder;
421
+ search: string;
422
+ };
423
+ export type RefundCountOrderByAggregateInput = {
424
+ id?: Prisma.SortOrder;
425
+ totalAmount?: Prisma.SortOrder;
426
+ reason?: Prisma.SortOrder;
427
+ metadata?: Prisma.SortOrder;
428
+ paymentId?: Prisma.SortOrder;
429
+ flatAmount?: Prisma.SortOrder;
430
+ tipAmount?: Prisma.SortOrder;
431
+ shippingAmount?: Prisma.SortOrder;
432
+ transactionId?: Prisma.SortOrder;
433
+ createdAt?: Prisma.SortOrder;
434
+ updatedAt?: Prisma.SortOrder;
435
+ };
436
+ export type RefundAvgOrderByAggregateInput = {
437
+ id?: Prisma.SortOrder;
438
+ totalAmount?: Prisma.SortOrder;
439
+ paymentId?: Prisma.SortOrder;
440
+ flatAmount?: Prisma.SortOrder;
441
+ tipAmount?: Prisma.SortOrder;
442
+ shippingAmount?: Prisma.SortOrder;
443
+ transactionId?: Prisma.SortOrder;
444
+ };
445
+ export type RefundMaxOrderByAggregateInput = {
446
+ id?: Prisma.SortOrder;
447
+ totalAmount?: Prisma.SortOrder;
448
+ reason?: Prisma.SortOrder;
449
+ paymentId?: Prisma.SortOrder;
450
+ flatAmount?: Prisma.SortOrder;
451
+ tipAmount?: Prisma.SortOrder;
452
+ shippingAmount?: Prisma.SortOrder;
453
+ transactionId?: Prisma.SortOrder;
454
+ createdAt?: Prisma.SortOrder;
455
+ updatedAt?: Prisma.SortOrder;
456
+ };
457
+ export type RefundMinOrderByAggregateInput = {
458
+ id?: Prisma.SortOrder;
459
+ totalAmount?: Prisma.SortOrder;
460
+ reason?: Prisma.SortOrder;
461
+ paymentId?: Prisma.SortOrder;
462
+ flatAmount?: Prisma.SortOrder;
463
+ tipAmount?: Prisma.SortOrder;
464
+ shippingAmount?: Prisma.SortOrder;
465
+ transactionId?: Prisma.SortOrder;
466
+ createdAt?: Prisma.SortOrder;
467
+ updatedAt?: Prisma.SortOrder;
468
+ };
469
+ export type RefundSumOrderByAggregateInput = {
470
+ id?: Prisma.SortOrder;
471
+ totalAmount?: Prisma.SortOrder;
472
+ paymentId?: Prisma.SortOrder;
473
+ flatAmount?: Prisma.SortOrder;
474
+ tipAmount?: Prisma.SortOrder;
475
+ shippingAmount?: Prisma.SortOrder;
476
+ transactionId?: Prisma.SortOrder;
477
+ };
478
+ export type RefundNullableScalarRelationFilter = {
479
+ is?: Prisma.RefundWhereInput | null;
480
+ isNot?: Prisma.RefundWhereInput | null;
481
+ };
482
+ export type RefundCreateNestedManyWithoutPaymentInput = {
483
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput> | Prisma.RefundCreateWithoutPaymentInput[] | Prisma.RefundUncheckedCreateWithoutPaymentInput[];
484
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutPaymentInput | Prisma.RefundCreateOrConnectWithoutPaymentInput[];
485
+ createMany?: Prisma.RefundCreateManyPaymentInputEnvelope;
486
+ connect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
487
+ };
488
+ export type RefundUncheckedCreateNestedManyWithoutPaymentInput = {
489
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput> | Prisma.RefundCreateWithoutPaymentInput[] | Prisma.RefundUncheckedCreateWithoutPaymentInput[];
490
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutPaymentInput | Prisma.RefundCreateOrConnectWithoutPaymentInput[];
491
+ createMany?: Prisma.RefundCreateManyPaymentInputEnvelope;
492
+ connect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
493
+ };
494
+ export type RefundUpdateManyWithoutPaymentNestedInput = {
495
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput> | Prisma.RefundCreateWithoutPaymentInput[] | Prisma.RefundUncheckedCreateWithoutPaymentInput[];
496
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutPaymentInput | Prisma.RefundCreateOrConnectWithoutPaymentInput[];
497
+ upsert?: Prisma.RefundUpsertWithWhereUniqueWithoutPaymentInput | Prisma.RefundUpsertWithWhereUniqueWithoutPaymentInput[];
498
+ createMany?: Prisma.RefundCreateManyPaymentInputEnvelope;
499
+ set?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
500
+ disconnect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
501
+ delete?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
502
+ connect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
503
+ update?: Prisma.RefundUpdateWithWhereUniqueWithoutPaymentInput | Prisma.RefundUpdateWithWhereUniqueWithoutPaymentInput[];
504
+ updateMany?: Prisma.RefundUpdateManyWithWhereWithoutPaymentInput | Prisma.RefundUpdateManyWithWhereWithoutPaymentInput[];
505
+ deleteMany?: Prisma.RefundScalarWhereInput | Prisma.RefundScalarWhereInput[];
506
+ };
507
+ export type RefundUncheckedUpdateManyWithoutPaymentNestedInput = {
508
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput> | Prisma.RefundCreateWithoutPaymentInput[] | Prisma.RefundUncheckedCreateWithoutPaymentInput[];
509
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutPaymentInput | Prisma.RefundCreateOrConnectWithoutPaymentInput[];
510
+ upsert?: Prisma.RefundUpsertWithWhereUniqueWithoutPaymentInput | Prisma.RefundUpsertWithWhereUniqueWithoutPaymentInput[];
511
+ createMany?: Prisma.RefundCreateManyPaymentInputEnvelope;
512
+ set?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
513
+ disconnect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
514
+ delete?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
515
+ connect?: Prisma.RefundWhereUniqueInput | Prisma.RefundWhereUniqueInput[];
516
+ update?: Prisma.RefundUpdateWithWhereUniqueWithoutPaymentInput | Prisma.RefundUpdateWithWhereUniqueWithoutPaymentInput[];
517
+ updateMany?: Prisma.RefundUpdateManyWithWhereWithoutPaymentInput | Prisma.RefundUpdateManyWithWhereWithoutPaymentInput[];
518
+ deleteMany?: Prisma.RefundScalarWhereInput | Prisma.RefundScalarWhereInput[];
519
+ };
520
+ export type RefundCreateNestedOneWithoutLinesInput = {
521
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutLinesInput, Prisma.RefundUncheckedCreateWithoutLinesInput>;
522
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutLinesInput;
523
+ connect?: Prisma.RefundWhereUniqueInput;
524
+ };
525
+ export type RefundUpdateOneRequiredWithoutLinesNestedInput = {
526
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutLinesInput, Prisma.RefundUncheckedCreateWithoutLinesInput>;
527
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutLinesInput;
528
+ upsert?: Prisma.RefundUpsertWithoutLinesInput;
529
+ connect?: Prisma.RefundWhereUniqueInput;
530
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RefundUpdateToOneWithWhereWithoutLinesInput, Prisma.RefundUpdateWithoutLinesInput>, Prisma.RefundUncheckedUpdateWithoutLinesInput>;
531
+ };
532
+ export type RefundCreateNestedOneWithoutTransactionInput = {
533
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
534
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutTransactionInput;
535
+ connect?: Prisma.RefundWhereUniqueInput;
536
+ };
537
+ export type RefundUncheckedCreateNestedOneWithoutTransactionInput = {
538
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
539
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutTransactionInput;
540
+ connect?: Prisma.RefundWhereUniqueInput;
541
+ };
542
+ export type RefundUpdateOneWithoutTransactionNestedInput = {
543
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
544
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutTransactionInput;
545
+ upsert?: Prisma.RefundUpsertWithoutTransactionInput;
546
+ disconnect?: Prisma.RefundWhereInput | boolean;
547
+ delete?: Prisma.RefundWhereInput | boolean;
548
+ connect?: Prisma.RefundWhereUniqueInput;
549
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RefundUpdateToOneWithWhereWithoutTransactionInput, Prisma.RefundUpdateWithoutTransactionInput>, Prisma.RefundUncheckedUpdateWithoutTransactionInput>;
550
+ };
551
+ export type RefundUncheckedUpdateOneWithoutTransactionNestedInput = {
552
+ create?: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
553
+ connectOrCreate?: Prisma.RefundCreateOrConnectWithoutTransactionInput;
554
+ upsert?: Prisma.RefundUpsertWithoutTransactionInput;
555
+ disconnect?: Prisma.RefundWhereInput | boolean;
556
+ delete?: Prisma.RefundWhereInput | boolean;
557
+ connect?: Prisma.RefundWhereUniqueInput;
558
+ update?: Prisma.XOR<Prisma.XOR<Prisma.RefundUpdateToOneWithWhereWithoutTransactionInput, Prisma.RefundUpdateWithoutTransactionInput>, Prisma.RefundUncheckedUpdateWithoutTransactionInput>;
559
+ };
560
+ export type RefundCreateWithoutPaymentInput = {
561
+ id?: bigint | number;
562
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
563
+ reason: string;
564
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
565
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
566
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
567
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
568
+ createdAt?: Date | string;
569
+ updatedAt?: Date | string;
570
+ lines?: Prisma.RefundLineCreateNestedManyWithoutRefundInput;
571
+ transaction: Prisma.TransactionCreateNestedOneWithoutRefundInput;
572
+ };
573
+ export type RefundUncheckedCreateWithoutPaymentInput = {
574
+ id?: bigint | number;
575
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
576
+ reason: string;
577
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
578
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
579
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
580
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
581
+ transactionId: bigint | number;
582
+ createdAt?: Date | string;
583
+ updatedAt?: Date | string;
584
+ lines?: Prisma.RefundLineUncheckedCreateNestedManyWithoutRefundInput;
585
+ };
586
+ export type RefundCreateOrConnectWithoutPaymentInput = {
587
+ where: Prisma.RefundWhereUniqueInput;
588
+ create: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput>;
589
+ };
590
+ export type RefundCreateManyPaymentInputEnvelope = {
591
+ data: Prisma.RefundCreateManyPaymentInput | Prisma.RefundCreateManyPaymentInput[];
592
+ skipDuplicates?: boolean;
593
+ };
594
+ export type RefundUpsertWithWhereUniqueWithoutPaymentInput = {
595
+ where: Prisma.RefundWhereUniqueInput;
596
+ update: Prisma.XOR<Prisma.RefundUpdateWithoutPaymentInput, Prisma.RefundUncheckedUpdateWithoutPaymentInput>;
597
+ create: Prisma.XOR<Prisma.RefundCreateWithoutPaymentInput, Prisma.RefundUncheckedCreateWithoutPaymentInput>;
598
+ };
599
+ export type RefundUpdateWithWhereUniqueWithoutPaymentInput = {
600
+ where: Prisma.RefundWhereUniqueInput;
601
+ data: Prisma.XOR<Prisma.RefundUpdateWithoutPaymentInput, Prisma.RefundUncheckedUpdateWithoutPaymentInput>;
602
+ };
603
+ export type RefundUpdateManyWithWhereWithoutPaymentInput = {
604
+ where: Prisma.RefundScalarWhereInput;
605
+ data: Prisma.XOR<Prisma.RefundUpdateManyMutationInput, Prisma.RefundUncheckedUpdateManyWithoutPaymentInput>;
606
+ };
607
+ export type RefundScalarWhereInput = {
608
+ AND?: Prisma.RefundScalarWhereInput | Prisma.RefundScalarWhereInput[];
609
+ OR?: Prisma.RefundScalarWhereInput[];
610
+ NOT?: Prisma.RefundScalarWhereInput | Prisma.RefundScalarWhereInput[];
611
+ id?: Prisma.BigIntFilter<"Refund"> | bigint | number;
612
+ totalAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
613
+ reason?: Prisma.StringFilter<"Refund"> | string;
614
+ metadata?: Prisma.JsonNullableFilter<"Refund">;
615
+ paymentId?: Prisma.BigIntFilter<"Refund"> | bigint | number;
616
+ flatAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
617
+ tipAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
618
+ shippingAmount?: Prisma.DecimalFilter<"Refund"> | runtime.Decimal | runtime.DecimalJsLike | number | string;
619
+ transactionId?: Prisma.BigIntFilter<"Refund"> | bigint | number;
620
+ createdAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
621
+ updatedAt?: Prisma.DateTimeFilter<"Refund"> | Date | string;
622
+ };
623
+ export type RefundCreateWithoutLinesInput = {
624
+ id?: bigint | number;
625
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
626
+ reason: string;
627
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
628
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
629
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
630
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
631
+ createdAt?: Date | string;
632
+ updatedAt?: Date | string;
633
+ payment: Prisma.PaymentCreateNestedOneWithoutRefundsInput;
634
+ transaction: Prisma.TransactionCreateNestedOneWithoutRefundInput;
635
+ };
636
+ export type RefundUncheckedCreateWithoutLinesInput = {
637
+ id?: bigint | number;
638
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
639
+ reason: string;
640
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
641
+ paymentId: bigint | number;
642
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
643
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
644
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
645
+ transactionId: bigint | number;
646
+ createdAt?: Date | string;
647
+ updatedAt?: Date | string;
648
+ };
649
+ export type RefundCreateOrConnectWithoutLinesInput = {
650
+ where: Prisma.RefundWhereUniqueInput;
651
+ create: Prisma.XOR<Prisma.RefundCreateWithoutLinesInput, Prisma.RefundUncheckedCreateWithoutLinesInput>;
652
+ };
653
+ export type RefundUpsertWithoutLinesInput = {
654
+ update: Prisma.XOR<Prisma.RefundUpdateWithoutLinesInput, Prisma.RefundUncheckedUpdateWithoutLinesInput>;
655
+ create: Prisma.XOR<Prisma.RefundCreateWithoutLinesInput, Prisma.RefundUncheckedCreateWithoutLinesInput>;
656
+ where?: Prisma.RefundWhereInput;
657
+ };
658
+ export type RefundUpdateToOneWithWhereWithoutLinesInput = {
659
+ where?: Prisma.RefundWhereInput;
660
+ data: Prisma.XOR<Prisma.RefundUpdateWithoutLinesInput, Prisma.RefundUncheckedUpdateWithoutLinesInput>;
661
+ };
662
+ export type RefundUpdateWithoutLinesInput = {
663
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
664
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
665
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
666
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
667
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
668
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
669
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
670
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
671
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
672
+ payment?: Prisma.PaymentUpdateOneRequiredWithoutRefundsNestedInput;
673
+ transaction?: Prisma.TransactionUpdateOneRequiredWithoutRefundNestedInput;
674
+ };
675
+ export type RefundUncheckedUpdateWithoutLinesInput = {
676
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
677
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
678
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
679
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
680
+ paymentId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
681
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
682
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
683
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
684
+ transactionId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
685
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
686
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
687
+ };
688
+ export type RefundCreateWithoutTransactionInput = {
689
+ id?: bigint | number;
690
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
691
+ reason: string;
692
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
693
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
694
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
695
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
696
+ createdAt?: Date | string;
697
+ updatedAt?: Date | string;
698
+ payment: Prisma.PaymentCreateNestedOneWithoutRefundsInput;
699
+ lines?: Prisma.RefundLineCreateNestedManyWithoutRefundInput;
700
+ };
701
+ export type RefundUncheckedCreateWithoutTransactionInput = {
702
+ id?: bigint | number;
703
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
704
+ reason: string;
705
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
706
+ paymentId: bigint | number;
707
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
708
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
709
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
710
+ createdAt?: Date | string;
711
+ updatedAt?: Date | string;
712
+ lines?: Prisma.RefundLineUncheckedCreateNestedManyWithoutRefundInput;
713
+ };
714
+ export type RefundCreateOrConnectWithoutTransactionInput = {
715
+ where: Prisma.RefundWhereUniqueInput;
716
+ create: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
717
+ };
718
+ export type RefundUpsertWithoutTransactionInput = {
719
+ update: Prisma.XOR<Prisma.RefundUpdateWithoutTransactionInput, Prisma.RefundUncheckedUpdateWithoutTransactionInput>;
720
+ create: Prisma.XOR<Prisma.RefundCreateWithoutTransactionInput, Prisma.RefundUncheckedCreateWithoutTransactionInput>;
721
+ where?: Prisma.RefundWhereInput;
722
+ };
723
+ export type RefundUpdateToOneWithWhereWithoutTransactionInput = {
724
+ where?: Prisma.RefundWhereInput;
725
+ data: Prisma.XOR<Prisma.RefundUpdateWithoutTransactionInput, Prisma.RefundUncheckedUpdateWithoutTransactionInput>;
726
+ };
727
+ export type RefundUpdateWithoutTransactionInput = {
728
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
729
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
730
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
731
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
732
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
733
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
734
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
735
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
736
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
737
+ payment?: Prisma.PaymentUpdateOneRequiredWithoutRefundsNestedInput;
738
+ lines?: Prisma.RefundLineUpdateManyWithoutRefundNestedInput;
739
+ };
740
+ export type RefundUncheckedUpdateWithoutTransactionInput = {
741
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
742
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
743
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
744
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
745
+ paymentId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
746
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
747
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
748
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
749
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
750
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
751
+ lines?: Prisma.RefundLineUncheckedUpdateManyWithoutRefundNestedInput;
752
+ };
753
+ export type RefundCreateManyPaymentInput = {
754
+ id?: bigint | number;
755
+ totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string;
756
+ reason: string;
757
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
758
+ flatAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
759
+ tipAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
760
+ shippingAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string;
761
+ transactionId: bigint | number;
762
+ createdAt?: Date | string;
763
+ updatedAt?: Date | string;
764
+ };
765
+ export type RefundUpdateWithoutPaymentInput = {
766
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
767
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
768
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
769
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
770
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
771
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
772
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
773
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
774
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
775
+ lines?: Prisma.RefundLineUpdateManyWithoutRefundNestedInput;
776
+ transaction?: Prisma.TransactionUpdateOneRequiredWithoutRefundNestedInput;
777
+ };
778
+ export type RefundUncheckedUpdateWithoutPaymentInput = {
779
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
780
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
781
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
782
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
783
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
784
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
785
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
786
+ transactionId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
787
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
788
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
789
+ lines?: Prisma.RefundLineUncheckedUpdateManyWithoutRefundNestedInput;
790
+ };
791
+ export type RefundUncheckedUpdateManyWithoutPaymentInput = {
792
+ id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
793
+ totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
794
+ reason?: Prisma.StringFieldUpdateOperationsInput | string;
795
+ metadata?: unknown | Prisma.NullableJsonNullValueInput;
796
+ flatAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
797
+ tipAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
798
+ shippingAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string;
799
+ transactionId?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number;
800
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
801
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
802
+ };
803
+ /**
804
+ * Count Type RefundCountOutputType
805
+ */
806
+ export type RefundCountOutputType = {
807
+ lines: number;
808
+ };
809
+ export type RefundCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
810
+ lines?: boolean | RefundCountOutputTypeCountLinesArgs;
811
+ };
812
+ /**
813
+ * RefundCountOutputType without action
814
+ */
815
+ export type RefundCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
816
+ /**
817
+ * Select specific fields to fetch from the RefundCountOutputType
818
+ */
819
+ select?: Prisma.RefundCountOutputTypeSelect<ExtArgs> | null;
820
+ };
821
+ /**
822
+ * RefundCountOutputType without action
823
+ */
824
+ export type RefundCountOutputTypeCountLinesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
825
+ where?: Prisma.RefundLineWhereInput;
826
+ };
827
+ export type RefundSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
828
+ id?: boolean;
829
+ totalAmount?: boolean;
830
+ reason?: boolean;
831
+ metadata?: boolean;
832
+ paymentId?: boolean;
833
+ flatAmount?: boolean;
834
+ tipAmount?: boolean;
835
+ shippingAmount?: boolean;
836
+ transactionId?: boolean;
837
+ createdAt?: boolean;
838
+ updatedAt?: boolean;
839
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
840
+ lines?: boolean | Prisma.Refund$linesArgs<ExtArgs>;
841
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
842
+ _count?: boolean | Prisma.RefundCountOutputTypeDefaultArgs<ExtArgs>;
843
+ }, ExtArgs["result"]["refund"]>;
844
+ export type RefundSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
845
+ id?: boolean;
846
+ totalAmount?: boolean;
847
+ reason?: boolean;
848
+ metadata?: boolean;
849
+ paymentId?: boolean;
850
+ flatAmount?: boolean;
851
+ tipAmount?: boolean;
852
+ shippingAmount?: boolean;
853
+ transactionId?: boolean;
854
+ createdAt?: boolean;
855
+ updatedAt?: boolean;
856
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
857
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
858
+ }, ExtArgs["result"]["refund"]>;
859
+ export type RefundSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
860
+ id?: boolean;
861
+ totalAmount?: boolean;
862
+ reason?: boolean;
863
+ metadata?: boolean;
864
+ paymentId?: boolean;
865
+ flatAmount?: boolean;
866
+ tipAmount?: boolean;
867
+ shippingAmount?: boolean;
868
+ transactionId?: boolean;
869
+ createdAt?: boolean;
870
+ updatedAt?: boolean;
871
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
872
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
873
+ }, ExtArgs["result"]["refund"]>;
874
+ export type RefundSelectScalar = {
875
+ id?: boolean;
876
+ totalAmount?: boolean;
877
+ reason?: boolean;
878
+ metadata?: boolean;
879
+ paymentId?: boolean;
880
+ flatAmount?: boolean;
881
+ tipAmount?: boolean;
882
+ shippingAmount?: boolean;
883
+ transactionId?: boolean;
884
+ createdAt?: boolean;
885
+ updatedAt?: boolean;
886
+ };
887
+ export type RefundOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "totalAmount" | "reason" | "metadata" | "paymentId" | "flatAmount" | "tipAmount" | "shippingAmount" | "transactionId" | "createdAt" | "updatedAt", ExtArgs["result"]["refund"]>;
888
+ export type RefundInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
889
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
890
+ lines?: boolean | Prisma.Refund$linesArgs<ExtArgs>;
891
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
892
+ _count?: boolean | Prisma.RefundCountOutputTypeDefaultArgs<ExtArgs>;
893
+ };
894
+ export type RefundIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
895
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
896
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
897
+ };
898
+ export type RefundIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
899
+ payment?: boolean | Prisma.PaymentDefaultArgs<ExtArgs>;
900
+ transaction?: boolean | Prisma.TransactionDefaultArgs<ExtArgs>;
901
+ };
902
+ export type $RefundPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
903
+ name: "Refund";
904
+ objects: {
905
+ payment: Prisma.$PaymentPayload<ExtArgs>;
906
+ lines: Prisma.$RefundLinePayload<ExtArgs>[];
907
+ transaction: Prisma.$TransactionPayload<ExtArgs>;
908
+ };
909
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
910
+ id: bigint;
911
+ totalAmount: runtime.Decimal;
912
+ reason: string;
913
+ metadata: unknown | null;
914
+ paymentId: bigint;
915
+ flatAmount: runtime.Decimal;
916
+ tipAmount: runtime.Decimal;
917
+ shippingAmount: runtime.Decimal;
918
+ transactionId: bigint;
919
+ createdAt: Date;
920
+ updatedAt: Date;
921
+ }, ExtArgs["result"]["refund"]>;
922
+ composites: {};
923
+ };
924
+ export type RefundGetPayload<S extends boolean | null | undefined | RefundDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$RefundPayload, S>;
925
+ export type RefundCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<RefundFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
926
+ select?: RefundCountAggregateInputType | true;
927
+ };
928
+ export interface RefundDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
929
+ [K: symbol]: {
930
+ types: Prisma.TypeMap<ExtArgs>['model']['Refund'];
931
+ meta: {
932
+ name: 'Refund';
933
+ };
934
+ };
935
+ /**
936
+ * Find zero or one Refund that matches the filter.
937
+ * @param {RefundFindUniqueArgs} args - Arguments to find a Refund
938
+ * @example
939
+ * // Get one Refund
940
+ * const refund = await prisma.refund.findUnique({
941
+ * where: {
942
+ * // ... provide filter here
943
+ * }
944
+ * })
945
+ */
946
+ findUnique<T extends RefundFindUniqueArgs>(args: Prisma.SelectSubset<T, RefundFindUniqueArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
947
+ /**
948
+ * Find one Refund that matches the filter or throw an error with `error.code='P2025'`
949
+ * if no matches were found.
950
+ * @param {RefundFindUniqueOrThrowArgs} args - Arguments to find a Refund
951
+ * @example
952
+ * // Get one Refund
953
+ * const refund = await prisma.refund.findUniqueOrThrow({
954
+ * where: {
955
+ * // ... provide filter here
956
+ * }
957
+ * })
958
+ */
959
+ findUniqueOrThrow<T extends RefundFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, RefundFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
960
+ /**
961
+ * Find the first Refund that matches the filter.
962
+ * Note, that providing `undefined` is treated as the value not being there.
963
+ * Read more here: https://pris.ly/d/null-undefined
964
+ * @param {RefundFindFirstArgs} args - Arguments to find a Refund
965
+ * @example
966
+ * // Get one Refund
967
+ * const refund = await prisma.refund.findFirst({
968
+ * where: {
969
+ * // ... provide filter here
970
+ * }
971
+ * })
972
+ */
973
+ findFirst<T extends RefundFindFirstArgs>(args?: Prisma.SelectSubset<T, RefundFindFirstArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
974
+ /**
975
+ * Find the first Refund that matches the filter or
976
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
977
+ * Note, that providing `undefined` is treated as the value not being there.
978
+ * Read more here: https://pris.ly/d/null-undefined
979
+ * @param {RefundFindFirstOrThrowArgs} args - Arguments to find a Refund
980
+ * @example
981
+ * // Get one Refund
982
+ * const refund = await prisma.refund.findFirstOrThrow({
983
+ * where: {
984
+ * // ... provide filter here
985
+ * }
986
+ * })
987
+ */
988
+ findFirstOrThrow<T extends RefundFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, RefundFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
989
+ /**
990
+ * Find zero or more Refunds that matches the filter.
991
+ * Note, that providing `undefined` is treated as the value not being there.
992
+ * Read more here: https://pris.ly/d/null-undefined
993
+ * @param {RefundFindManyArgs} args - Arguments to filter and select certain fields only.
994
+ * @example
995
+ * // Get all Refunds
996
+ * const refunds = await prisma.refund.findMany()
997
+ *
998
+ * // Get first 10 Refunds
999
+ * const refunds = await prisma.refund.findMany({ take: 10 })
1000
+ *
1001
+ * // Only select the `id`
1002
+ * const refundWithIdOnly = await prisma.refund.findMany({ select: { id: true } })
1003
+ *
1004
+ */
1005
+ findMany<T extends RefundFindManyArgs>(args?: Prisma.SelectSubset<T, RefundFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1006
+ /**
1007
+ * Create a Refund.
1008
+ * @param {RefundCreateArgs} args - Arguments to create a Refund.
1009
+ * @example
1010
+ * // Create one Refund
1011
+ * const Refund = await prisma.refund.create({
1012
+ * data: {
1013
+ * // ... data to create a Refund
1014
+ * }
1015
+ * })
1016
+ *
1017
+ */
1018
+ create<T extends RefundCreateArgs>(args: Prisma.SelectSubset<T, RefundCreateArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1019
+ /**
1020
+ * Create many Refunds.
1021
+ * @param {RefundCreateManyArgs} args - Arguments to create many Refunds.
1022
+ * @example
1023
+ * // Create many Refunds
1024
+ * const refund = await prisma.refund.createMany({
1025
+ * data: [
1026
+ * // ... provide data here
1027
+ * ]
1028
+ * })
1029
+ *
1030
+ */
1031
+ createMany<T extends RefundCreateManyArgs>(args?: Prisma.SelectSubset<T, RefundCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1032
+ /**
1033
+ * Create many Refunds and returns the data saved in the database.
1034
+ * @param {RefundCreateManyAndReturnArgs} args - Arguments to create many Refunds.
1035
+ * @example
1036
+ * // Create many Refunds
1037
+ * const refund = await prisma.refund.createManyAndReturn({
1038
+ * data: [
1039
+ * // ... provide data here
1040
+ * ]
1041
+ * })
1042
+ *
1043
+ * // Create many Refunds and only return the `id`
1044
+ * const refundWithIdOnly = await prisma.refund.createManyAndReturn({
1045
+ * select: { id: true },
1046
+ * data: [
1047
+ * // ... provide data here
1048
+ * ]
1049
+ * })
1050
+ * Note, that providing `undefined` is treated as the value not being there.
1051
+ * Read more here: https://pris.ly/d/null-undefined
1052
+ *
1053
+ */
1054
+ createManyAndReturn<T extends RefundCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, RefundCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1055
+ /**
1056
+ * Delete a Refund.
1057
+ * @param {RefundDeleteArgs} args - Arguments to delete one Refund.
1058
+ * @example
1059
+ * // Delete one Refund
1060
+ * const Refund = await prisma.refund.delete({
1061
+ * where: {
1062
+ * // ... filter to delete one Refund
1063
+ * }
1064
+ * })
1065
+ *
1066
+ */
1067
+ delete<T extends RefundDeleteArgs>(args: Prisma.SelectSubset<T, RefundDeleteArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1068
+ /**
1069
+ * Update one Refund.
1070
+ * @param {RefundUpdateArgs} args - Arguments to update one Refund.
1071
+ * @example
1072
+ * // Update one Refund
1073
+ * const refund = await prisma.refund.update({
1074
+ * where: {
1075
+ * // ... provide filter here
1076
+ * },
1077
+ * data: {
1078
+ * // ... provide data here
1079
+ * }
1080
+ * })
1081
+ *
1082
+ */
1083
+ update<T extends RefundUpdateArgs>(args: Prisma.SelectSubset<T, RefundUpdateArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1084
+ /**
1085
+ * Delete zero or more Refunds.
1086
+ * @param {RefundDeleteManyArgs} args - Arguments to filter Refunds to delete.
1087
+ * @example
1088
+ * // Delete a few Refunds
1089
+ * const { count } = await prisma.refund.deleteMany({
1090
+ * where: {
1091
+ * // ... provide filter here
1092
+ * }
1093
+ * })
1094
+ *
1095
+ */
1096
+ deleteMany<T extends RefundDeleteManyArgs>(args?: Prisma.SelectSubset<T, RefundDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1097
+ /**
1098
+ * Update zero or more Refunds.
1099
+ * Note, that providing `undefined` is treated as the value not being there.
1100
+ * Read more here: https://pris.ly/d/null-undefined
1101
+ * @param {RefundUpdateManyArgs} args - Arguments to update one or more rows.
1102
+ * @example
1103
+ * // Update many Refunds
1104
+ * const refund = await prisma.refund.updateMany({
1105
+ * where: {
1106
+ * // ... provide filter here
1107
+ * },
1108
+ * data: {
1109
+ * // ... provide data here
1110
+ * }
1111
+ * })
1112
+ *
1113
+ */
1114
+ updateMany<T extends RefundUpdateManyArgs>(args: Prisma.SelectSubset<T, RefundUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1115
+ /**
1116
+ * Update zero or more Refunds and returns the data updated in the database.
1117
+ * @param {RefundUpdateManyAndReturnArgs} args - Arguments to update many Refunds.
1118
+ * @example
1119
+ * // Update many Refunds
1120
+ * const refund = await prisma.refund.updateManyAndReturn({
1121
+ * where: {
1122
+ * // ... provide filter here
1123
+ * },
1124
+ * data: [
1125
+ * // ... provide data here
1126
+ * ]
1127
+ * })
1128
+ *
1129
+ * // Update zero or more Refunds and only return the `id`
1130
+ * const refundWithIdOnly = await prisma.refund.updateManyAndReturn({
1131
+ * select: { id: true },
1132
+ * where: {
1133
+ * // ... provide filter here
1134
+ * },
1135
+ * data: [
1136
+ * // ... provide data here
1137
+ * ]
1138
+ * })
1139
+ * Note, that providing `undefined` is treated as the value not being there.
1140
+ * Read more here: https://pris.ly/d/null-undefined
1141
+ *
1142
+ */
1143
+ updateManyAndReturn<T extends RefundUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, RefundUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1144
+ /**
1145
+ * Create or update one Refund.
1146
+ * @param {RefundUpsertArgs} args - Arguments to update or create a Refund.
1147
+ * @example
1148
+ * // Update or create a Refund
1149
+ * const refund = await prisma.refund.upsert({
1150
+ * create: {
1151
+ * // ... data to create a Refund
1152
+ * },
1153
+ * update: {
1154
+ * // ... in case it already exists, update
1155
+ * },
1156
+ * where: {
1157
+ * // ... the filter for the Refund we want to update
1158
+ * }
1159
+ * })
1160
+ */
1161
+ upsert<T extends RefundUpsertArgs>(args: Prisma.SelectSubset<T, RefundUpsertArgs<ExtArgs>>): Prisma.Prisma__RefundClient<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1162
+ /**
1163
+ * Count the number of Refunds.
1164
+ * Note, that providing `undefined` is treated as the value not being there.
1165
+ * Read more here: https://pris.ly/d/null-undefined
1166
+ * @param {RefundCountArgs} args - Arguments to filter Refunds to count.
1167
+ * @example
1168
+ * // Count the number of Refunds
1169
+ * const count = await prisma.refund.count({
1170
+ * where: {
1171
+ * // ... the filter for the Refunds we want to count
1172
+ * }
1173
+ * })
1174
+ **/
1175
+ count<T extends RefundCountArgs>(args?: Prisma.Subset<T, RefundCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], RefundCountAggregateOutputType> : number>;
1176
+ /**
1177
+ * Allows you to perform aggregations operations on a Refund.
1178
+ * Note, that providing `undefined` is treated as the value not being there.
1179
+ * Read more here: https://pris.ly/d/null-undefined
1180
+ * @param {RefundAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1181
+ * @example
1182
+ * // Ordered by age ascending
1183
+ * // Where email contains prisma.io
1184
+ * // Limited to the 10 users
1185
+ * const aggregations = await prisma.user.aggregate({
1186
+ * _avg: {
1187
+ * age: true,
1188
+ * },
1189
+ * where: {
1190
+ * email: {
1191
+ * contains: "prisma.io",
1192
+ * },
1193
+ * },
1194
+ * orderBy: {
1195
+ * age: "asc",
1196
+ * },
1197
+ * take: 10,
1198
+ * })
1199
+ **/
1200
+ aggregate<T extends RefundAggregateArgs>(args: Prisma.Subset<T, RefundAggregateArgs>): Prisma.PrismaPromise<GetRefundAggregateType<T>>;
1201
+ /**
1202
+ * Group by Refund.
1203
+ * Note, that providing `undefined` is treated as the value not being there.
1204
+ * Read more here: https://pris.ly/d/null-undefined
1205
+ * @param {RefundGroupByArgs} args - Group by arguments.
1206
+ * @example
1207
+ * // Group by city, order by createdAt, get count
1208
+ * const result = await prisma.user.groupBy({
1209
+ * by: ['city', 'createdAt'],
1210
+ * orderBy: {
1211
+ * createdAt: true
1212
+ * },
1213
+ * _count: {
1214
+ * _all: true
1215
+ * },
1216
+ * })
1217
+ *
1218
+ **/
1219
+ groupBy<T extends RefundGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1220
+ orderBy: RefundGroupByArgs['orderBy'];
1221
+ } : {
1222
+ orderBy?: RefundGroupByArgs['orderBy'];
1223
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
1224
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1225
+ Error,
1226
+ 'Field ',
1227
+ P,
1228
+ ` in "having" needs to be provided in "by"`
1229
+ ];
1230
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1231
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1232
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1233
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1234
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1235
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1236
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, RefundGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetRefundGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1237
+ /**
1238
+ * Fields of the Refund model
1239
+ */
1240
+ readonly fields: RefundFieldRefs;
1241
+ }
1242
+ /**
1243
+ * The delegate class that acts as a "Promise-like" for Refund.
1244
+ * Why is this prefixed with `Prisma__`?
1245
+ * Because we want to prevent naming conflicts as mentioned in
1246
+ * https://github.com/prisma/prisma-client-js/issues/707
1247
+ */
1248
+ export interface Prisma__RefundClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1249
+ readonly [Symbol.toStringTag]: "PrismaPromise";
1250
+ 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>;
1251
+ lines<T extends Prisma.Refund$linesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Refund$linesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundLinePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1252
+ transaction<T extends Prisma.TransactionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TransactionDefaultArgs<ExtArgs>>): Prisma.Prisma__TransactionClient<runtime.Types.Result.GetResult<Prisma.$TransactionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
1253
+ /**
1254
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1255
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1256
+ * @param onrejected The callback to execute when the Promise is rejected.
1257
+ * @returns A Promise for the completion of which ever callback is executed.
1258
+ */
1259
+ 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>;
1260
+ /**
1261
+ * Attaches a callback for only the rejection of the Promise.
1262
+ * @param onrejected The callback to execute when the Promise is rejected.
1263
+ * @returns A Promise for the completion of the callback.
1264
+ */
1265
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1266
+ /**
1267
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1268
+ * resolved value cannot be modified from the callback.
1269
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1270
+ * @returns A Promise for the completion of the callback.
1271
+ */
1272
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1273
+ }
1274
+ /**
1275
+ * Fields of the Refund model
1276
+ */
1277
+ export interface RefundFieldRefs {
1278
+ readonly id: Prisma.FieldRef<"Refund", 'BigInt'>;
1279
+ readonly totalAmount: Prisma.FieldRef<"Refund", 'Decimal'>;
1280
+ readonly reason: Prisma.FieldRef<"Refund", 'String'>;
1281
+ readonly metadata: Prisma.FieldRef<"Refund", 'Json'>;
1282
+ readonly paymentId: Prisma.FieldRef<"Refund", 'BigInt'>;
1283
+ readonly flatAmount: Prisma.FieldRef<"Refund", 'Decimal'>;
1284
+ readonly tipAmount: Prisma.FieldRef<"Refund", 'Decimal'>;
1285
+ readonly shippingAmount: Prisma.FieldRef<"Refund", 'Decimal'>;
1286
+ readonly transactionId: Prisma.FieldRef<"Refund", 'BigInt'>;
1287
+ readonly createdAt: Prisma.FieldRef<"Refund", 'DateTime'>;
1288
+ readonly updatedAt: Prisma.FieldRef<"Refund", 'DateTime'>;
1289
+ }
1290
+ /**
1291
+ * Refund findUnique
1292
+ */
1293
+ export type RefundFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1294
+ /**
1295
+ * Select specific fields to fetch from the Refund
1296
+ */
1297
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1298
+ /**
1299
+ * Omit specific fields from the Refund
1300
+ */
1301
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1302
+ /**
1303
+ * Choose, which related nodes to fetch as well
1304
+ */
1305
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1306
+ /**
1307
+ * Filter, which Refund to fetch.
1308
+ */
1309
+ where: Prisma.RefundWhereUniqueInput;
1310
+ };
1311
+ /**
1312
+ * Refund findUniqueOrThrow
1313
+ */
1314
+ export type RefundFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1315
+ /**
1316
+ * Select specific fields to fetch from the Refund
1317
+ */
1318
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1319
+ /**
1320
+ * Omit specific fields from the Refund
1321
+ */
1322
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1323
+ /**
1324
+ * Choose, which related nodes to fetch as well
1325
+ */
1326
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1327
+ /**
1328
+ * Filter, which Refund to fetch.
1329
+ */
1330
+ where: Prisma.RefundWhereUniqueInput;
1331
+ };
1332
+ /**
1333
+ * Refund findFirst
1334
+ */
1335
+ export type RefundFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1336
+ /**
1337
+ * Select specific fields to fetch from the Refund
1338
+ */
1339
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1340
+ /**
1341
+ * Omit specific fields from the Refund
1342
+ */
1343
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1344
+ /**
1345
+ * Choose, which related nodes to fetch as well
1346
+ */
1347
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1348
+ /**
1349
+ * Filter, which Refund to fetch.
1350
+ */
1351
+ where?: Prisma.RefundWhereInput;
1352
+ /**
1353
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1354
+ *
1355
+ * Determine the order of Refunds to fetch.
1356
+ */
1357
+ orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[];
1358
+ /**
1359
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1360
+ *
1361
+ * Sets the position for searching for Refunds.
1362
+ */
1363
+ cursor?: Prisma.RefundWhereUniqueInput;
1364
+ /**
1365
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1366
+ *
1367
+ * Take `±n` Refunds from the position of the cursor.
1368
+ */
1369
+ take?: number;
1370
+ /**
1371
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1372
+ *
1373
+ * Skip the first `n` Refunds.
1374
+ */
1375
+ skip?: number;
1376
+ /**
1377
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1378
+ *
1379
+ * Filter by unique combinations of Refunds.
1380
+ */
1381
+ distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[];
1382
+ };
1383
+ /**
1384
+ * Refund findFirstOrThrow
1385
+ */
1386
+ export type RefundFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1387
+ /**
1388
+ * Select specific fields to fetch from the Refund
1389
+ */
1390
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1391
+ /**
1392
+ * Omit specific fields from the Refund
1393
+ */
1394
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1395
+ /**
1396
+ * Choose, which related nodes to fetch as well
1397
+ */
1398
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1399
+ /**
1400
+ * Filter, which Refund to fetch.
1401
+ */
1402
+ where?: Prisma.RefundWhereInput;
1403
+ /**
1404
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1405
+ *
1406
+ * Determine the order of Refunds to fetch.
1407
+ */
1408
+ orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[];
1409
+ /**
1410
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1411
+ *
1412
+ * Sets the position for searching for Refunds.
1413
+ */
1414
+ cursor?: Prisma.RefundWhereUniqueInput;
1415
+ /**
1416
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1417
+ *
1418
+ * Take `±n` Refunds from the position of the cursor.
1419
+ */
1420
+ take?: number;
1421
+ /**
1422
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1423
+ *
1424
+ * Skip the first `n` Refunds.
1425
+ */
1426
+ skip?: number;
1427
+ /**
1428
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1429
+ *
1430
+ * Filter by unique combinations of Refunds.
1431
+ */
1432
+ distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[];
1433
+ };
1434
+ /**
1435
+ * Refund findMany
1436
+ */
1437
+ export type RefundFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1438
+ /**
1439
+ * Select specific fields to fetch from the Refund
1440
+ */
1441
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1442
+ /**
1443
+ * Omit specific fields from the Refund
1444
+ */
1445
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1446
+ /**
1447
+ * Choose, which related nodes to fetch as well
1448
+ */
1449
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1450
+ /**
1451
+ * Filter, which Refunds to fetch.
1452
+ */
1453
+ where?: Prisma.RefundWhereInput;
1454
+ /**
1455
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1456
+ *
1457
+ * Determine the order of Refunds to fetch.
1458
+ */
1459
+ orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[];
1460
+ /**
1461
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1462
+ *
1463
+ * Sets the position for listing Refunds.
1464
+ */
1465
+ cursor?: Prisma.RefundWhereUniqueInput;
1466
+ /**
1467
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1468
+ *
1469
+ * Take `±n` Refunds from the position of the cursor.
1470
+ */
1471
+ take?: number;
1472
+ /**
1473
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1474
+ *
1475
+ * Skip the first `n` Refunds.
1476
+ */
1477
+ skip?: number;
1478
+ distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[];
1479
+ };
1480
+ /**
1481
+ * Refund create
1482
+ */
1483
+ export type RefundCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the Refund
1486
+ */
1487
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1488
+ /**
1489
+ * Omit specific fields from the Refund
1490
+ */
1491
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1496
+ /**
1497
+ * The data needed to create a Refund.
1498
+ */
1499
+ data: Prisma.XOR<Prisma.RefundCreateInput, Prisma.RefundUncheckedCreateInput>;
1500
+ };
1501
+ /**
1502
+ * Refund createMany
1503
+ */
1504
+ export type RefundCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1505
+ /**
1506
+ * The data used to create many Refunds.
1507
+ */
1508
+ data: Prisma.RefundCreateManyInput | Prisma.RefundCreateManyInput[];
1509
+ skipDuplicates?: boolean;
1510
+ };
1511
+ /**
1512
+ * Refund createManyAndReturn
1513
+ */
1514
+ export type RefundCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1515
+ /**
1516
+ * Select specific fields to fetch from the Refund
1517
+ */
1518
+ select?: Prisma.RefundSelectCreateManyAndReturn<ExtArgs> | null;
1519
+ /**
1520
+ * Omit specific fields from the Refund
1521
+ */
1522
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1523
+ /**
1524
+ * The data used to create many Refunds.
1525
+ */
1526
+ data: Prisma.RefundCreateManyInput | Prisma.RefundCreateManyInput[];
1527
+ skipDuplicates?: boolean;
1528
+ /**
1529
+ * Choose, which related nodes to fetch as well
1530
+ */
1531
+ include?: Prisma.RefundIncludeCreateManyAndReturn<ExtArgs> | null;
1532
+ };
1533
+ /**
1534
+ * Refund update
1535
+ */
1536
+ export type RefundUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1537
+ /**
1538
+ * Select specific fields to fetch from the Refund
1539
+ */
1540
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1541
+ /**
1542
+ * Omit specific fields from the Refund
1543
+ */
1544
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1545
+ /**
1546
+ * Choose, which related nodes to fetch as well
1547
+ */
1548
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1549
+ /**
1550
+ * The data needed to update a Refund.
1551
+ */
1552
+ data: Prisma.XOR<Prisma.RefundUpdateInput, Prisma.RefundUncheckedUpdateInput>;
1553
+ /**
1554
+ * Choose, which Refund to update.
1555
+ */
1556
+ where: Prisma.RefundWhereUniqueInput;
1557
+ };
1558
+ /**
1559
+ * Refund updateMany
1560
+ */
1561
+ export type RefundUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1562
+ /**
1563
+ * The data used to update Refunds.
1564
+ */
1565
+ data: Prisma.XOR<Prisma.RefundUpdateManyMutationInput, Prisma.RefundUncheckedUpdateManyInput>;
1566
+ /**
1567
+ * Filter which Refunds to update
1568
+ */
1569
+ where?: Prisma.RefundWhereInput;
1570
+ /**
1571
+ * Limit how many Refunds to update.
1572
+ */
1573
+ limit?: number;
1574
+ };
1575
+ /**
1576
+ * Refund updateManyAndReturn
1577
+ */
1578
+ export type RefundUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1579
+ /**
1580
+ * Select specific fields to fetch from the Refund
1581
+ */
1582
+ select?: Prisma.RefundSelectUpdateManyAndReturn<ExtArgs> | null;
1583
+ /**
1584
+ * Omit specific fields from the Refund
1585
+ */
1586
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1587
+ /**
1588
+ * The data used to update Refunds.
1589
+ */
1590
+ data: Prisma.XOR<Prisma.RefundUpdateManyMutationInput, Prisma.RefundUncheckedUpdateManyInput>;
1591
+ /**
1592
+ * Filter which Refunds to update
1593
+ */
1594
+ where?: Prisma.RefundWhereInput;
1595
+ /**
1596
+ * Limit how many Refunds to update.
1597
+ */
1598
+ limit?: number;
1599
+ /**
1600
+ * Choose, which related nodes to fetch as well
1601
+ */
1602
+ include?: Prisma.RefundIncludeUpdateManyAndReturn<ExtArgs> | null;
1603
+ };
1604
+ /**
1605
+ * Refund upsert
1606
+ */
1607
+ export type RefundUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1608
+ /**
1609
+ * Select specific fields to fetch from the Refund
1610
+ */
1611
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1612
+ /**
1613
+ * Omit specific fields from the Refund
1614
+ */
1615
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1616
+ /**
1617
+ * Choose, which related nodes to fetch as well
1618
+ */
1619
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1620
+ /**
1621
+ * The filter to search for the Refund to update in case it exists.
1622
+ */
1623
+ where: Prisma.RefundWhereUniqueInput;
1624
+ /**
1625
+ * In case the Refund found by the `where` argument doesn't exist, create a new Refund with this data.
1626
+ */
1627
+ create: Prisma.XOR<Prisma.RefundCreateInput, Prisma.RefundUncheckedCreateInput>;
1628
+ /**
1629
+ * In case the Refund was found with the provided `where` argument, update it with this data.
1630
+ */
1631
+ update: Prisma.XOR<Prisma.RefundUpdateInput, Prisma.RefundUncheckedUpdateInput>;
1632
+ };
1633
+ /**
1634
+ * Refund delete
1635
+ */
1636
+ export type RefundDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1637
+ /**
1638
+ * Select specific fields to fetch from the Refund
1639
+ */
1640
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1641
+ /**
1642
+ * Omit specific fields from the Refund
1643
+ */
1644
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1645
+ /**
1646
+ * Choose, which related nodes to fetch as well
1647
+ */
1648
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1649
+ /**
1650
+ * Filter which Refund to delete.
1651
+ */
1652
+ where: Prisma.RefundWhereUniqueInput;
1653
+ };
1654
+ /**
1655
+ * Refund deleteMany
1656
+ */
1657
+ export type RefundDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1658
+ /**
1659
+ * Filter which Refunds to delete
1660
+ */
1661
+ where?: Prisma.RefundWhereInput;
1662
+ /**
1663
+ * Limit how many Refunds to delete.
1664
+ */
1665
+ limit?: number;
1666
+ };
1667
+ /**
1668
+ * Refund.lines
1669
+ */
1670
+ export type Refund$linesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1671
+ /**
1672
+ * Select specific fields to fetch from the RefundLine
1673
+ */
1674
+ select?: Prisma.RefundLineSelect<ExtArgs> | null;
1675
+ /**
1676
+ * Omit specific fields from the RefundLine
1677
+ */
1678
+ omit?: Prisma.RefundLineOmit<ExtArgs> | null;
1679
+ /**
1680
+ * Choose, which related nodes to fetch as well
1681
+ */
1682
+ include?: Prisma.RefundLineInclude<ExtArgs> | null;
1683
+ where?: Prisma.RefundLineWhereInput;
1684
+ orderBy?: Prisma.RefundLineOrderByWithRelationInput | Prisma.RefundLineOrderByWithRelationInput[];
1685
+ cursor?: Prisma.RefundLineWhereUniqueInput;
1686
+ take?: number;
1687
+ skip?: number;
1688
+ distinct?: Prisma.RefundLineScalarFieldEnum | Prisma.RefundLineScalarFieldEnum[];
1689
+ };
1690
+ /**
1691
+ * Refund without action
1692
+ */
1693
+ export type RefundDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1694
+ /**
1695
+ * Select specific fields to fetch from the Refund
1696
+ */
1697
+ select?: Prisma.RefundSelect<ExtArgs> | null;
1698
+ /**
1699
+ * Omit specific fields from the Refund
1700
+ */
1701
+ omit?: Prisma.RefundOmit<ExtArgs> | null;
1702
+ /**
1703
+ * Choose, which related nodes to fetch as well
1704
+ */
1705
+ include?: Prisma.RefundInclude<ExtArgs> | null;
1706
+ };
1707
+ export {};