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