refund roadmap pr-1 and pr-2
This commit is contained in:
@@ -75,3 +75,15 @@ export type Booking = Prisma.BookingModel
|
||||
* (di Phase MIDTRANS nanti). Untuk MANUAL biasanya cukup 1 Payment.
|
||||
*/
|
||||
export type Payment = Prisma.PaymentModel
|
||||
/**
|
||||
* Model Refund
|
||||
* Refund = financial event terpisah dari Booking. Satu Booking bisa punya
|
||||
* banyak Refund (partial, multi-tahap). Setiap row auditable: kapan dibuat,
|
||||
* siapa melaporkan, siapa approve, kapan SUCCEEDED. Never delete — kalau
|
||||
* gagal, set status=FAILED + alasan.
|
||||
*
|
||||
* Di MVP refund dimasukkan admin secara manual berdasarkan laporan dari
|
||||
* peserta atau organizer (via WhatsApp/email). Phase berikutnya akan
|
||||
* menambah self-service flow dari user dan organizer.
|
||||
*/
|
||||
export type Refund = Prisma.RefundModel
|
||||
|
||||
@@ -99,3 +99,15 @@ export type Booking = Prisma.BookingModel
|
||||
* (di Phase MIDTRANS nanti). Untuk MANUAL biasanya cukup 1 Payment.
|
||||
*/
|
||||
export type Payment = Prisma.PaymentModel
|
||||
/**
|
||||
* Model Refund
|
||||
* Refund = financial event terpisah dari Booking. Satu Booking bisa punya
|
||||
* banyak Refund (partial, multi-tahap). Setiap row auditable: kapan dibuat,
|
||||
* siapa melaporkan, siapa approve, kapan SUCCEEDED. Never delete — kalau
|
||||
* gagal, set status=FAILED + alasan.
|
||||
*
|
||||
* Di MVP refund dimasukkan admin secara manual berdasarkan laporan dari
|
||||
* peserta atau organizer (via WhatsApp/email). Phase berikutnya akan
|
||||
* menambah self-service flow dari user dan organizer.
|
||||
*/
|
||||
export type Refund = Prisma.RefundModel
|
||||
|
||||
@@ -389,6 +389,74 @@ export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumRefundReasonFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReason | Prisma.EnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel> | $Enums.RefundReason
|
||||
}
|
||||
|
||||
export type EnumRefundReporterFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReporter | Prisma.EnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel> | $Enums.RefundReporter
|
||||
}
|
||||
|
||||
export type EnumRefundInitiatorFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundInitiator | Prisma.EnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel> | $Enums.RefundInitiator
|
||||
}
|
||||
|
||||
export type EnumRefundStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundStatus | Prisma.EnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel> | $Enums.RefundStatus
|
||||
}
|
||||
|
||||
export type EnumRefundReasonWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReason | Prisma.EnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReasonWithAggregatesFilter<$PrismaModel> | $Enums.RefundReason
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumRefundReporterWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReporter | Prisma.EnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReporterWithAggregatesFilter<$PrismaModel> | $Enums.RefundReporter
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumRefundInitiatorWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundInitiator | Prisma.EnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundInitiatorWithAggregatesFilter<$PrismaModel> | $Enums.RefundInitiator
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumRefundStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundStatus | Prisma.EnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundStatusWithAggregatesFilter<$PrismaModel> | $Enums.RefundStatus
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedStringFilter<$PrismaModel = never> = {
|
||||
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>
|
||||
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>
|
||||
@@ -750,4 +818,72 @@ export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
||||
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter
|
||||
}
|
||||
|
||||
export type NestedEnumRefundReasonFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReason | Prisma.EnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel> | $Enums.RefundReason
|
||||
}
|
||||
|
||||
export type NestedEnumRefundReporterFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReporter | Prisma.EnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel> | $Enums.RefundReporter
|
||||
}
|
||||
|
||||
export type NestedEnumRefundInitiatorFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundInitiator | Prisma.EnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel> | $Enums.RefundInitiator
|
||||
}
|
||||
|
||||
export type NestedEnumRefundStatusFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundStatus | Prisma.EnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel> | $Enums.RefundStatus
|
||||
}
|
||||
|
||||
export type NestedEnumRefundReasonWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReason | Prisma.EnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReason[] | Prisma.ListEnumRefundReasonFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReasonWithAggregatesFilter<$PrismaModel> | $Enums.RefundReason
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundReasonFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumRefundReporterWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundReporter | Prisma.EnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundReporter[] | Prisma.ListEnumRefundReporterFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundReporterWithAggregatesFilter<$PrismaModel> | $Enums.RefundReporter
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundReporterFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumRefundInitiatorWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundInitiator | Prisma.EnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundInitiator[] | Prisma.ListEnumRefundInitiatorFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundInitiatorWithAggregatesFilter<$PrismaModel> | $Enums.RefundInitiator
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundInitiatorFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumRefundStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.RefundStatus | Prisma.EnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
notIn?: $Enums.RefundStatus[] | Prisma.ListEnumRefundStatusFieldRefInput<$PrismaModel>
|
||||
not?: Prisma.NestedEnumRefundStatusWithAggregatesFilter<$PrismaModel> | $Enums.RefundStatus
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumRefundStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ export const BookingStatus = {
|
||||
PAID: 'PAID',
|
||||
CANCELLED: 'CANCELLED',
|
||||
REFUNDED: 'REFUNDED',
|
||||
PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
|
||||
EXPIRED: 'EXPIRED'
|
||||
} as const
|
||||
|
||||
@@ -93,3 +94,45 @@ export const PaymentStatus = {
|
||||
} as const
|
||||
|
||||
export type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus]
|
||||
|
||||
|
||||
export const RefundReason = {
|
||||
USER_CANCELLATION: 'USER_CANCELLATION',
|
||||
ORGANIZER_CANCELLED: 'ORGANIZER_CANCELLED',
|
||||
TRIP_ISSUE: 'TRIP_ISSUE',
|
||||
ADMIN_ADJUSTMENT: 'ADMIN_ADJUSTMENT',
|
||||
DISPUTE_RESOLVED: 'DISPUTE_RESOLVED',
|
||||
OTHER: 'OTHER'
|
||||
} as const
|
||||
|
||||
export type RefundReason = (typeof RefundReason)[keyof typeof RefundReason]
|
||||
|
||||
|
||||
export const RefundStatus = {
|
||||
PENDING: 'PENDING',
|
||||
APPROVED: 'APPROVED',
|
||||
REJECTED: 'REJECTED',
|
||||
PROCESSING: 'PROCESSING',
|
||||
SUCCEEDED: 'SUCCEEDED',
|
||||
FAILED: 'FAILED'
|
||||
} as const
|
||||
|
||||
export type RefundStatus = (typeof RefundStatus)[keyof typeof RefundStatus]
|
||||
|
||||
|
||||
export const RefundInitiator = {
|
||||
USER: 'USER',
|
||||
ORGANIZER: 'ORGANIZER',
|
||||
SYSTEM: 'SYSTEM',
|
||||
ADMIN: 'ADMIN'
|
||||
} as const
|
||||
|
||||
export type RefundInitiator = (typeof RefundInitiator)[keyof typeof RefundInitiator]
|
||||
|
||||
|
||||
export const RefundReporter = {
|
||||
PARTICIPANT: 'PARTICIPANT',
|
||||
ORGANIZER: 'ORGANIZER'
|
||||
} as const
|
||||
|
||||
export type RefundReporter = (typeof RefundReporter)[keyof typeof RefundReporter]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -393,7 +393,8 @@ export const ModelName = {
|
||||
TripImage: 'TripImage',
|
||||
TripParticipant: 'TripParticipant',
|
||||
Booking: 'Booking',
|
||||
Payment: 'Payment'
|
||||
Payment: 'Payment',
|
||||
Refund: 'Refund'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -409,7 +410,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "userProfile" | "account" | "organizerVerification" | "trip" | "tripReview" | "tripImage" | "tripParticipant" | "booking" | "payment"
|
||||
modelProps: "user" | "userProfile" | "account" | "organizerVerification" | "trip" | "tripReview" | "tripImage" | "tripParticipant" | "booking" | "payment" | "refund"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -1153,6 +1154,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Refund: {
|
||||
payload: Prisma.$RefundPayload<ExtArgs>
|
||||
fields: Prisma.RefundFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.RefundFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.RefundFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.RefundFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.RefundFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.RefundFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.RefundCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.RefundCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.RefundCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.RefundDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.RefundUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.RefundDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.RefundUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.RefundUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.RefundUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$RefundPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.RefundAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateRefund>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.RefundGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.RefundGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.RefundCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.RefundCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -1365,6 +1440,31 @@ export const PaymentScalarFieldEnum = {
|
||||
export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum]
|
||||
|
||||
|
||||
export const RefundScalarFieldEnum = {
|
||||
id: 'id',
|
||||
bookingId: 'bookingId',
|
||||
paymentId: 'paymentId',
|
||||
amount: 'amount',
|
||||
currency: 'currency',
|
||||
reason: 'reason',
|
||||
reportedBy: 'reportedBy',
|
||||
reportNote: 'reportNote',
|
||||
initiatedBy: 'initiatedBy',
|
||||
status: 'status',
|
||||
idempotencyKey: 'idempotencyKey',
|
||||
adminNote: 'adminNote',
|
||||
reviewedById: 'reviewedById',
|
||||
reviewedAt: 'reviewedAt',
|
||||
succeededAt: 'succeededAt',
|
||||
failedAt: 'failedAt',
|
||||
externalRefundId: 'externalRefundId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type RefundScalarFieldEnum = (typeof RefundScalarFieldEnum)[keyof typeof RefundScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -1587,6 +1687,62 @@ export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$Prisma
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundReason'
|
||||
*/
|
||||
export type EnumRefundReasonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundReason'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundReason[]'
|
||||
*/
|
||||
export type ListEnumRefundReasonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundReason[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundReporter'
|
||||
*/
|
||||
export type EnumRefundReporterFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundReporter'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundReporter[]'
|
||||
*/
|
||||
export type ListEnumRefundReporterFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundReporter[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundInitiator'
|
||||
*/
|
||||
export type EnumRefundInitiatorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundInitiator'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundInitiator[]'
|
||||
*/
|
||||
export type ListEnumRefundInitiatorFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundInitiator[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundStatus'
|
||||
*/
|
||||
export type EnumRefundStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundStatus'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'RefundStatus[]'
|
||||
*/
|
||||
export type ListEnumRefundStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'RefundStatus[]'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float'
|
||||
*/
|
||||
@@ -1720,6 +1876,7 @@ export type GlobalOmitConfig = {
|
||||
tripParticipant?: Prisma.TripParticipantOmit
|
||||
booking?: Prisma.BookingOmit
|
||||
payment?: Prisma.PaymentOmit
|
||||
refund?: Prisma.RefundOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -60,7 +60,8 @@ export const ModelName = {
|
||||
TripImage: 'TripImage',
|
||||
TripParticipant: 'TripParticipant',
|
||||
Booking: 'Booking',
|
||||
Payment: 'Payment'
|
||||
Payment: 'Payment',
|
||||
Refund: 'Refund'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -252,6 +253,31 @@ export const PaymentScalarFieldEnum = {
|
||||
export type PaymentScalarFieldEnum = (typeof PaymentScalarFieldEnum)[keyof typeof PaymentScalarFieldEnum]
|
||||
|
||||
|
||||
export const RefundScalarFieldEnum = {
|
||||
id: 'id',
|
||||
bookingId: 'bookingId',
|
||||
paymentId: 'paymentId',
|
||||
amount: 'amount',
|
||||
currency: 'currency',
|
||||
reason: 'reason',
|
||||
reportedBy: 'reportedBy',
|
||||
reportNote: 'reportNote',
|
||||
initiatedBy: 'initiatedBy',
|
||||
status: 'status',
|
||||
idempotencyKey: 'idempotencyKey',
|
||||
adminNote: 'adminNote',
|
||||
reviewedById: 'reviewedById',
|
||||
reviewedAt: 'reviewedAt',
|
||||
succeededAt: 'succeededAt',
|
||||
failedAt: 'failedAt',
|
||||
externalRefundId: 'externalRefundId',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
export type RefundScalarFieldEnum = (typeof RefundScalarFieldEnum)[keyof typeof RefundScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
@@ -18,4 +18,5 @@ export type * from './models/TripImage'
|
||||
export type * from './models/TripParticipant'
|
||||
export type * from './models/Booking'
|
||||
export type * from './models/Payment'
|
||||
export type * from './models/Refund'
|
||||
export type * from './commonInputTypes'
|
||||
@@ -257,6 +257,7 @@ export type BookingWhereInput = {
|
||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
||||
participant?: Prisma.XOR<Prisma.TripParticipantScalarRelationFilter, Prisma.TripParticipantWhereInput>
|
||||
payments?: Prisma.PaymentListRelationFilter
|
||||
refunds?: Prisma.RefundListRelationFilter
|
||||
}
|
||||
|
||||
export type BookingOrderByWithRelationInput = {
|
||||
@@ -273,6 +274,7 @@ export type BookingOrderByWithRelationInput = {
|
||||
user?: Prisma.UserOrderByWithRelationInput
|
||||
participant?: Prisma.TripParticipantOrderByWithRelationInput
|
||||
payments?: Prisma.PaymentOrderByRelationAggregateInput
|
||||
refunds?: Prisma.RefundOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type BookingWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -293,6 +295,7 @@ export type BookingWhereUniqueInput = Prisma.AtLeast<{
|
||||
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
||||
participant?: Prisma.XOR<Prisma.TripParticipantScalarRelationFilter, Prisma.TripParticipantWhereInput>
|
||||
payments?: Prisma.PaymentListRelationFilter
|
||||
refunds?: Prisma.RefundListRelationFilter
|
||||
}, "id" | "participantId" | "tripId_userId">
|
||||
|
||||
export type BookingOrderByWithAggregationInput = {
|
||||
@@ -338,6 +341,7 @@ export type BookingCreateInput = {
|
||||
user: Prisma.UserCreateNestedOneWithoutBookingsInput
|
||||
participant: Prisma.TripParticipantCreateNestedOneWithoutBookingInput
|
||||
payments?: Prisma.PaymentCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateInput = {
|
||||
@@ -351,6 +355,7 @@ export type BookingUncheckedCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUpdateInput = {
|
||||
@@ -364,6 +369,7 @@ export type BookingUpdateInput = {
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutBookingsNestedInput
|
||||
participant?: Prisma.TripParticipantUpdateOneRequiredWithoutBookingNestedInput
|
||||
payments?: Prisma.PaymentUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateInput = {
|
||||
@@ -377,6 +383,7 @@ export type BookingUncheckedUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
payments?: Prisma.PaymentUncheckedUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingCreateManyInput = {
|
||||
@@ -615,6 +622,20 @@ export type BookingUpdateOneRequiredWithoutPaymentsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.BookingUpdateToOneWithWhereWithoutPaymentsInput, Prisma.BookingUpdateWithoutPaymentsInput>, Prisma.BookingUncheckedUpdateWithoutPaymentsInput>
|
||||
}
|
||||
|
||||
export type BookingCreateNestedOneWithoutRefundsInput = {
|
||||
create?: Prisma.XOR<Prisma.BookingCreateWithoutRefundsInput, Prisma.BookingUncheckedCreateWithoutRefundsInput>
|
||||
connectOrCreate?: Prisma.BookingCreateOrConnectWithoutRefundsInput
|
||||
connect?: Prisma.BookingWhereUniqueInput
|
||||
}
|
||||
|
||||
export type BookingUpdateOneRequiredWithoutRefundsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.BookingCreateWithoutRefundsInput, Prisma.BookingUncheckedCreateWithoutRefundsInput>
|
||||
connectOrCreate?: Prisma.BookingCreateOrConnectWithoutRefundsInput
|
||||
upsert?: Prisma.BookingUpsertWithoutRefundsInput
|
||||
connect?: Prisma.BookingWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.BookingUpdateToOneWithWhereWithoutRefundsInput, Prisma.BookingUpdateWithoutRefundsInput>, Prisma.BookingUncheckedUpdateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type BookingCreateWithoutUserInput = {
|
||||
id?: string
|
||||
amount: number
|
||||
@@ -625,6 +646,7 @@ export type BookingCreateWithoutUserInput = {
|
||||
trip: Prisma.TripCreateNestedOneWithoutBookingsInput
|
||||
participant: Prisma.TripParticipantCreateNestedOneWithoutBookingInput
|
||||
payments?: Prisma.PaymentCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateWithoutUserInput = {
|
||||
@@ -637,6 +659,7 @@ export type BookingUncheckedCreateWithoutUserInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingCreateOrConnectWithoutUserInput = {
|
||||
@@ -690,6 +713,7 @@ export type BookingCreateWithoutTripInput = {
|
||||
user: Prisma.UserCreateNestedOneWithoutBookingsInput
|
||||
participant: Prisma.TripParticipantCreateNestedOneWithoutBookingInput
|
||||
payments?: Prisma.PaymentCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateWithoutTripInput = {
|
||||
@@ -702,6 +726,7 @@ export type BookingUncheckedCreateWithoutTripInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingCreateOrConnectWithoutTripInput = {
|
||||
@@ -740,6 +765,7 @@ export type BookingCreateWithoutParticipantInput = {
|
||||
trip: Prisma.TripCreateNestedOneWithoutBookingsInput
|
||||
user: Prisma.UserCreateNestedOneWithoutBookingsInput
|
||||
payments?: Prisma.PaymentCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateWithoutParticipantInput = {
|
||||
@@ -752,6 +778,7 @@ export type BookingUncheckedCreateWithoutParticipantInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutBookingInput
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingCreateOrConnectWithoutParticipantInput = {
|
||||
@@ -780,6 +807,7 @@ export type BookingUpdateWithoutParticipantInput = {
|
||||
trip?: Prisma.TripUpdateOneRequiredWithoutBookingsNestedInput
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutBookingsNestedInput
|
||||
payments?: Prisma.PaymentUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateWithoutParticipantInput = {
|
||||
@@ -792,6 +820,7 @@ export type BookingUncheckedUpdateWithoutParticipantInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
payments?: Prisma.PaymentUncheckedUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingCreateWithoutPaymentsInput = {
|
||||
@@ -804,6 +833,7 @@ export type BookingCreateWithoutPaymentsInput = {
|
||||
trip: Prisma.TripCreateNestedOneWithoutBookingsInput
|
||||
user: Prisma.UserCreateNestedOneWithoutBookingsInput
|
||||
participant: Prisma.TripParticipantCreateNestedOneWithoutBookingInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateWithoutPaymentsInput = {
|
||||
@@ -816,6 +846,7 @@ export type BookingUncheckedCreateWithoutPaymentsInput = {
|
||||
status?: $Enums.BookingStatus
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingCreateOrConnectWithoutPaymentsInput = {
|
||||
@@ -844,6 +875,7 @@ export type BookingUpdateWithoutPaymentsInput = {
|
||||
trip?: Prisma.TripUpdateOneRequiredWithoutBookingsNestedInput
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutBookingsNestedInput
|
||||
participant?: Prisma.TripParticipantUpdateOneRequiredWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateWithoutPaymentsInput = {
|
||||
@@ -856,6 +888,75 @@ export type BookingUncheckedUpdateWithoutPaymentsInput = {
|
||||
status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingCreateWithoutRefundsInput = {
|
||||
id?: string
|
||||
amount: number
|
||||
currency?: string
|
||||
status?: $Enums.BookingStatus
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
trip: Prisma.TripCreateNestedOneWithoutBookingsInput
|
||||
user: Prisma.UserCreateNestedOneWithoutBookingsInput
|
||||
participant: Prisma.TripParticipantCreateNestedOneWithoutBookingInput
|
||||
payments?: Prisma.PaymentCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedCreateWithoutRefundsInput = {
|
||||
id?: string
|
||||
tripId: string
|
||||
userId: string
|
||||
participantId: string
|
||||
amount: number
|
||||
currency?: string
|
||||
status?: $Enums.BookingStatus
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
payments?: Prisma.PaymentUncheckedCreateNestedManyWithoutBookingInput
|
||||
}
|
||||
|
||||
export type BookingCreateOrConnectWithoutRefundsInput = {
|
||||
where: Prisma.BookingWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.BookingCreateWithoutRefundsInput, Prisma.BookingUncheckedCreateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type BookingUpsertWithoutRefundsInput = {
|
||||
update: Prisma.XOR<Prisma.BookingUpdateWithoutRefundsInput, Prisma.BookingUncheckedUpdateWithoutRefundsInput>
|
||||
create: Prisma.XOR<Prisma.BookingCreateWithoutRefundsInput, Prisma.BookingUncheckedCreateWithoutRefundsInput>
|
||||
where?: Prisma.BookingWhereInput
|
||||
}
|
||||
|
||||
export type BookingUpdateToOneWithWhereWithoutRefundsInput = {
|
||||
where?: Prisma.BookingWhereInput
|
||||
data: Prisma.XOR<Prisma.BookingUpdateWithoutRefundsInput, Prisma.BookingUncheckedUpdateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type BookingUpdateWithoutRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
trip?: Prisma.TripUpdateOneRequiredWithoutBookingsNestedInput
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutBookingsNestedInput
|
||||
participant?: Prisma.TripParticipantUpdateOneRequiredWithoutBookingNestedInput
|
||||
payments?: Prisma.PaymentUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateWithoutRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
tripId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
participantId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
currency?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumBookingStatusFieldUpdateOperationsInput | $Enums.BookingStatus
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
payments?: Prisma.PaymentUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingCreateManyUserInput = {
|
||||
@@ -879,6 +980,7 @@ export type BookingUpdateWithoutUserInput = {
|
||||
trip?: Prisma.TripUpdateOneRequiredWithoutBookingsNestedInput
|
||||
participant?: Prisma.TripParticipantUpdateOneRequiredWithoutBookingNestedInput
|
||||
payments?: Prisma.PaymentUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateWithoutUserInput = {
|
||||
@@ -891,6 +993,7 @@ export type BookingUncheckedUpdateWithoutUserInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
payments?: Prisma.PaymentUncheckedUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateManyWithoutUserInput = {
|
||||
@@ -925,6 +1028,7 @@ export type BookingUpdateWithoutTripInput = {
|
||||
user?: Prisma.UserUpdateOneRequiredWithoutBookingsNestedInput
|
||||
participant?: Prisma.TripParticipantUpdateOneRequiredWithoutBookingNestedInput
|
||||
payments?: Prisma.PaymentUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateWithoutTripInput = {
|
||||
@@ -937,6 +1041,7 @@ export type BookingUncheckedUpdateWithoutTripInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
payments?: Prisma.PaymentUncheckedUpdateManyWithoutBookingNestedInput
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutBookingNestedInput
|
||||
}
|
||||
|
||||
export type BookingUncheckedUpdateManyWithoutTripInput = {
|
||||
@@ -957,10 +1062,12 @@ export type BookingUncheckedUpdateManyWithoutTripInput = {
|
||||
|
||||
export type BookingCountOutputType = {
|
||||
payments: number
|
||||
refunds: number
|
||||
}
|
||||
|
||||
export type BookingCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
payments?: boolean | BookingCountOutputTypeCountPaymentsArgs
|
||||
refunds?: boolean | BookingCountOutputTypeCountRefundsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -980,6 +1087,13 @@ export type BookingCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Type
|
||||
where?: Prisma.PaymentWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* BookingCountOutputType without action
|
||||
*/
|
||||
export type BookingCountOutputTypeCountRefundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.RefundWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type BookingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -995,6 +1109,7 @@ export type BookingSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
participant?: boolean | Prisma.TripParticipantDefaultArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.Booking$paymentsArgs<ExtArgs>
|
||||
refunds?: boolean | Prisma.Booking$refundsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.BookingCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["booking"]>
|
||||
|
||||
@@ -1046,6 +1161,7 @@ export type BookingInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
||||
participant?: boolean | Prisma.TripParticipantDefaultArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.Booking$paymentsArgs<ExtArgs>
|
||||
refunds?: boolean | Prisma.Booking$refundsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.BookingCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type BookingIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -1066,6 +1182,7 @@ export type $BookingPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
user: Prisma.$UserPayload<ExtArgs>
|
||||
participant: Prisma.$TripParticipantPayload<ExtArgs>
|
||||
payments: Prisma.$PaymentPayload<ExtArgs>[]
|
||||
refunds: Prisma.$RefundPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1475,6 +1592,7 @@ export interface Prisma__BookingClient<T, Null = never, ExtArgs extends runtime.
|
||||
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
participant<T extends Prisma.TripParticipantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TripParticipantDefaultArgs<ExtArgs>>): Prisma.Prisma__TripParticipantClient<runtime.Types.Result.GetResult<Prisma.$TripParticipantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
payments<T extends Prisma.Booking$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Booking$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
refunds<T extends Prisma.Booking$refundsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Booking$refundsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1937,6 +2055,30 @@ export type Booking$paymentsArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Booking.refunds
|
||||
*/
|
||||
export type Booking$refundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Refund
|
||||
*/
|
||||
select?: Prisma.RefundSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Refund
|
||||
*/
|
||||
omit?: Prisma.RefundOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.RefundInclude<ExtArgs> | null
|
||||
where?: Prisma.RefundWhereInput
|
||||
orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[]
|
||||
cursor?: Prisma.RefundWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Booking without action
|
||||
*/
|
||||
|
||||
@@ -302,6 +302,7 @@ export type PaymentWhereInput = {
|
||||
createdAt?: Prisma.DateTimeFilter<"Payment"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Payment"> | Date | string
|
||||
booking?: Prisma.XOR<Prisma.BookingScalarRelationFilter, Prisma.BookingWhereInput>
|
||||
refunds?: Prisma.RefundListRelationFilter
|
||||
}
|
||||
|
||||
export type PaymentOrderByWithRelationInput = {
|
||||
@@ -322,6 +323,7 @@ export type PaymentOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
booking?: Prisma.BookingOrderByWithRelationInput
|
||||
refunds?: Prisma.RefundOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type PaymentWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -345,6 +347,7 @@ export type PaymentWhereUniqueInput = Prisma.AtLeast<{
|
||||
createdAt?: Prisma.DateTimeFilter<"Payment"> | Date | string
|
||||
updatedAt?: Prisma.DateTimeFilter<"Payment"> | Date | string
|
||||
booking?: Prisma.XOR<Prisma.BookingScalarRelationFilter, Prisma.BookingWhereInput>
|
||||
refunds?: Prisma.RefundListRelationFilter
|
||||
}, "id" | "externalOrderId">
|
||||
|
||||
export type PaymentOrderByWithAggregationInput = {
|
||||
@@ -410,6 +413,7 @@ export type PaymentCreateInput = {
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
booking: Prisma.BookingCreateNestedOneWithoutPaymentsInput
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedCreateInput = {
|
||||
@@ -429,6 +433,7 @@ export type PaymentUncheckedCreateInput = {
|
||||
rejectionReason?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type PaymentUpdateInput = {
|
||||
@@ -448,6 +453,7 @@ export type PaymentUpdateInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
booking?: Prisma.BookingUpdateOneRequiredWithoutPaymentsNestedInput
|
||||
refunds?: Prisma.RefundUpdateManyWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedUpdateInput = {
|
||||
@@ -467,6 +473,7 @@ export type PaymentUncheckedUpdateInput = {
|
||||
rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type PaymentCreateManyInput = {
|
||||
@@ -598,6 +605,11 @@ export type PaymentSumOrderByAggregateInput = {
|
||||
amount?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PaymentNullableScalarRelationFilter = {
|
||||
is?: Prisma.PaymentWhereInput | null
|
||||
isNot?: Prisma.PaymentWhereInput | null
|
||||
}
|
||||
|
||||
export type PaymentCreateNestedManyWithoutBookingInput = {
|
||||
create?: Prisma.XOR<Prisma.PaymentCreateWithoutBookingInput, Prisma.PaymentUncheckedCreateWithoutBookingInput> | Prisma.PaymentCreateWithoutBookingInput[] | Prisma.PaymentUncheckedCreateWithoutBookingInput[]
|
||||
connectOrCreate?: Prisma.PaymentCreateOrConnectWithoutBookingInput | Prisma.PaymentCreateOrConnectWithoutBookingInput[]
|
||||
@@ -648,6 +660,22 @@ export type EnumPaymentStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PaymentStatus
|
||||
}
|
||||
|
||||
export type PaymentCreateNestedOneWithoutRefundsInput = {
|
||||
create?: Prisma.XOR<Prisma.PaymentCreateWithoutRefundsInput, Prisma.PaymentUncheckedCreateWithoutRefundsInput>
|
||||
connectOrCreate?: Prisma.PaymentCreateOrConnectWithoutRefundsInput
|
||||
connect?: Prisma.PaymentWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PaymentUpdateOneWithoutRefundsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PaymentCreateWithoutRefundsInput, Prisma.PaymentUncheckedCreateWithoutRefundsInput>
|
||||
connectOrCreate?: Prisma.PaymentCreateOrConnectWithoutRefundsInput
|
||||
upsert?: Prisma.PaymentUpsertWithoutRefundsInput
|
||||
disconnect?: Prisma.PaymentWhereInput | boolean
|
||||
delete?: Prisma.PaymentWhereInput | boolean
|
||||
connect?: Prisma.PaymentWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PaymentUpdateToOneWithWhereWithoutRefundsInput, Prisma.PaymentUpdateWithoutRefundsInput>, Prisma.PaymentUncheckedUpdateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type PaymentCreateWithoutBookingInput = {
|
||||
id?: string
|
||||
provider: $Enums.PaymentProvider
|
||||
@@ -664,6 +692,7 @@ export type PaymentCreateWithoutBookingInput = {
|
||||
rejectionReason?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
refunds?: Prisma.RefundCreateNestedManyWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedCreateWithoutBookingInput = {
|
||||
@@ -682,6 +711,7 @@ export type PaymentUncheckedCreateWithoutBookingInput = {
|
||||
rejectionReason?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
refunds?: Prisma.RefundUncheckedCreateNestedManyWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type PaymentCreateOrConnectWithoutBookingInput = {
|
||||
@@ -732,6 +762,98 @@ export type PaymentScalarWhereInput = {
|
||||
updatedAt?: Prisma.DateTimeFilter<"Payment"> | Date | string
|
||||
}
|
||||
|
||||
export type PaymentCreateWithoutRefundsInput = {
|
||||
id?: string
|
||||
provider: $Enums.PaymentProvider
|
||||
externalOrderId: string
|
||||
externalTxId?: string | null
|
||||
method?: string | null
|
||||
amount: number
|
||||
status?: $Enums.PaymentStatus
|
||||
rawCallback?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
snapToken?: string | null
|
||||
expiresAt?: Date | string | null
|
||||
paidAt?: Date | string | null
|
||||
failedAt?: Date | string | null
|
||||
rejectionReason?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
booking: Prisma.BookingCreateNestedOneWithoutPaymentsInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedCreateWithoutRefundsInput = {
|
||||
id?: string
|
||||
bookingId: string
|
||||
provider: $Enums.PaymentProvider
|
||||
externalOrderId: string
|
||||
externalTxId?: string | null
|
||||
method?: string | null
|
||||
amount: number
|
||||
status?: $Enums.PaymentStatus
|
||||
rawCallback?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
snapToken?: string | null
|
||||
expiresAt?: Date | string | null
|
||||
paidAt?: Date | string | null
|
||||
failedAt?: Date | string | null
|
||||
rejectionReason?: string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
}
|
||||
|
||||
export type PaymentCreateOrConnectWithoutRefundsInput = {
|
||||
where: Prisma.PaymentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PaymentCreateWithoutRefundsInput, Prisma.PaymentUncheckedCreateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type PaymentUpsertWithoutRefundsInput = {
|
||||
update: Prisma.XOR<Prisma.PaymentUpdateWithoutRefundsInput, Prisma.PaymentUncheckedUpdateWithoutRefundsInput>
|
||||
create: Prisma.XOR<Prisma.PaymentCreateWithoutRefundsInput, Prisma.PaymentUncheckedCreateWithoutRefundsInput>
|
||||
where?: Prisma.PaymentWhereInput
|
||||
}
|
||||
|
||||
export type PaymentUpdateToOneWithWhereWithoutRefundsInput = {
|
||||
where?: Prisma.PaymentWhereInput
|
||||
data: Prisma.XOR<Prisma.PaymentUpdateWithoutRefundsInput, Prisma.PaymentUncheckedUpdateWithoutRefundsInput>
|
||||
}
|
||||
|
||||
export type PaymentUpdateWithoutRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
provider?: Prisma.EnumPaymentProviderFieldUpdateOperationsInput | $Enums.PaymentProvider
|
||||
externalOrderId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
externalTxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus
|
||||
rawCallback?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
snapToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
failedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
booking?: Prisma.BookingUpdateOneRequiredWithoutPaymentsNestedInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedUpdateWithoutRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
bookingId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
provider?: Prisma.EnumPaymentProviderFieldUpdateOperationsInput | $Enums.PaymentProvider
|
||||
externalOrderId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
externalTxId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
method?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
amount?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
status?: Prisma.EnumPaymentStatusFieldUpdateOperationsInput | $Enums.PaymentStatus
|
||||
rawCallback?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
snapToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
paidAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
failedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type PaymentCreateManyBookingInput = {
|
||||
id?: string
|
||||
provider: $Enums.PaymentProvider
|
||||
@@ -766,6 +888,7 @@ export type PaymentUpdateWithoutBookingInput = {
|
||||
rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
refunds?: Prisma.RefundUpdateManyWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedUpdateWithoutBookingInput = {
|
||||
@@ -784,6 +907,7 @@ export type PaymentUncheckedUpdateWithoutBookingInput = {
|
||||
rejectionReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
refunds?: Prisma.RefundUncheckedUpdateManyWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type PaymentUncheckedUpdateManyWithoutBookingInput = {
|
||||
@@ -805,6 +929,35 @@ export type PaymentUncheckedUpdateManyWithoutBookingInput = {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Count Type PaymentCountOutputType
|
||||
*/
|
||||
|
||||
export type PaymentCountOutputType = {
|
||||
refunds: number
|
||||
}
|
||||
|
||||
export type PaymentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
refunds?: boolean | PaymentCountOutputTypeCountRefundsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
* PaymentCountOutputType without action
|
||||
*/
|
||||
export type PaymentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the PaymentCountOutputType
|
||||
*/
|
||||
select?: Prisma.PaymentCountOutputTypeSelect<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* PaymentCountOutputType without action
|
||||
*/
|
||||
export type PaymentCountOutputTypeCountRefundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.RefundWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type PaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -824,6 +977,8 @@ export type PaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
booking?: boolean | Prisma.BookingDefaultArgs<ExtArgs>
|
||||
refunds?: boolean | Prisma.Payment$refundsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PaymentCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["payment"]>
|
||||
|
||||
export type PaymentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
@@ -888,6 +1043,8 @@ export type PaymentSelectScalar = {
|
||||
export type PaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "bookingId" | "provider" | "externalOrderId" | "externalTxId" | "method" | "amount" | "status" | "rawCallback" | "snapToken" | "expiresAt" | "paidAt" | "failedAt" | "rejectionReason" | "createdAt" | "updatedAt", ExtArgs["result"]["payment"]>
|
||||
export type PaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
booking?: boolean | Prisma.BookingDefaultArgs<ExtArgs>
|
||||
refunds?: boolean | Prisma.Payment$refundsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PaymentCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type PaymentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
booking?: boolean | Prisma.BookingDefaultArgs<ExtArgs>
|
||||
@@ -900,6 +1057,7 @@ export type $PaymentPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
name: "Payment"
|
||||
objects: {
|
||||
booking: Prisma.$BookingPayload<ExtArgs>
|
||||
refunds: Prisma.$RefundPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1332,6 +1490,7 @@ readonly fields: PaymentFieldRefs;
|
||||
export interface Prisma__PaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
booking<T extends Prisma.BookingDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BookingDefaultArgs<ExtArgs>>): Prisma.Prisma__BookingClient<runtime.Types.Result.GetResult<Prisma.$BookingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
refunds<T extends Prisma.Payment$refundsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Payment$refundsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1777,6 +1936,30 @@ export type PaymentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Payment.refunds
|
||||
*/
|
||||
export type Payment$refundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Refund
|
||||
*/
|
||||
select?: Prisma.RefundSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Refund
|
||||
*/
|
||||
omit?: Prisma.RefundOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.RefundInclude<ExtArgs> | null
|
||||
where?: Prisma.RefundWhereInput
|
||||
orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[]
|
||||
cursor?: Prisma.RefundWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Payment without action
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -229,6 +229,7 @@ export type UserWhereInput = {
|
||||
bookings?: Prisma.BookingListRelationFilter
|
||||
organizerVerification?: Prisma.XOR<Prisma.OrganizerVerificationNullableScalarRelationFilter, Prisma.OrganizerVerificationWhereInput> | null
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationListRelationFilter
|
||||
reviewedRefunds?: Prisma.RefundListRelationFilter
|
||||
profile?: Prisma.XOR<Prisma.UserProfileNullableScalarRelationFilter, Prisma.UserProfileWhereInput> | null
|
||||
}
|
||||
|
||||
@@ -250,6 +251,7 @@ export type UserOrderByWithRelationInput = {
|
||||
bookings?: Prisma.BookingOrderByRelationAggregateInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationOrderByWithRelationInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationOrderByRelationAggregateInput
|
||||
reviewedRefunds?: Prisma.RefundOrderByRelationAggregateInput
|
||||
profile?: Prisma.UserProfileOrderByWithRelationInput
|
||||
}
|
||||
|
||||
@@ -274,6 +276,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
bookings?: Prisma.BookingListRelationFilter
|
||||
organizerVerification?: Prisma.XOR<Prisma.OrganizerVerificationNullableScalarRelationFilter, Prisma.OrganizerVerificationWhereInput> | null
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationListRelationFilter
|
||||
reviewedRefunds?: Prisma.RefundListRelationFilter
|
||||
profile?: Prisma.XOR<Prisma.UserProfileNullableScalarRelationFilter, Prisma.UserProfileWhereInput> | null
|
||||
}, "id" | "email">
|
||||
|
||||
@@ -327,6 +330,7 @@ export type UserCreateInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -348,6 +352,7 @@ export type UserUncheckedCreateInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -369,6 +374,7 @@ export type UserUpdateInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -390,6 +396,7 @@ export type UserUncheckedUpdateInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -615,6 +622,22 @@ export type UserUpdateOneRequiredWithoutBookingsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutBookingsInput, Prisma.UserUpdateWithoutBookingsInput>, Prisma.UserUncheckedUpdateWithoutBookingsInput>
|
||||
}
|
||||
|
||||
export type UserCreateNestedOneWithoutReviewedRefundsInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutReviewedRefundsInput, Prisma.UserUncheckedCreateWithoutReviewedRefundsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutReviewedRefundsInput
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
}
|
||||
|
||||
export type UserUpdateOneWithoutReviewedRefundsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutReviewedRefundsInput, Prisma.UserUncheckedCreateWithoutReviewedRefundsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutReviewedRefundsInput
|
||||
upsert?: Prisma.UserUpsertWithoutReviewedRefundsInput
|
||||
disconnect?: Prisma.UserWhereInput | boolean
|
||||
delete?: Prisma.UserWhereInput | boolean
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutReviewedRefundsInput, Prisma.UserUpdateWithoutReviewedRefundsInput>, Prisma.UserUncheckedUpdateWithoutReviewedRefundsInput>
|
||||
}
|
||||
|
||||
export type UserCreateWithoutProfileInput = {
|
||||
id?: string
|
||||
name: string
|
||||
@@ -633,6 +656,7 @@ export type UserCreateWithoutProfileInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutProfileInput = {
|
||||
@@ -653,6 +677,7 @@ export type UserUncheckedCreateWithoutProfileInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutProfileInput = {
|
||||
@@ -689,6 +714,7 @@ export type UserUpdateWithoutProfileInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutProfileInput = {
|
||||
@@ -709,6 +735,7 @@ export type UserUncheckedUpdateWithoutProfileInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutAccountsInput = {
|
||||
@@ -728,6 +755,7 @@ export type UserCreateWithoutAccountsInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -748,6 +776,7 @@ export type UserUncheckedCreateWithoutAccountsInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -784,6 +813,7 @@ export type UserUpdateWithoutAccountsInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -804,6 +834,7 @@ export type UserUncheckedUpdateWithoutAccountsInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -824,6 +855,7 @@ export type UserCreateWithoutOrganizerVerificationInput = {
|
||||
tripReviews?: Prisma.TripReviewCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -844,6 +876,7 @@ export type UserUncheckedCreateWithoutOrganizerVerificationInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -869,6 +902,7 @@ export type UserCreateWithoutReviewedVerificationsInput = {
|
||||
tripReviews?: Prisma.TripReviewCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -889,6 +923,7 @@ export type UserUncheckedCreateWithoutReviewedVerificationsInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -925,6 +960,7 @@ export type UserUpdateWithoutOrganizerVerificationInput = {
|
||||
tripReviews?: Prisma.TripReviewUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -945,6 +981,7 @@ export type UserUncheckedUpdateWithoutOrganizerVerificationInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -976,6 +1013,7 @@ export type UserUpdateWithoutReviewedVerificationsInput = {
|
||||
tripReviews?: Prisma.TripReviewUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -996,6 +1034,7 @@ export type UserUncheckedUpdateWithoutReviewedVerificationsInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1016,6 +1055,7 @@ export type UserCreateWithoutTripsInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1036,6 +1076,7 @@ export type UserUncheckedCreateWithoutTripsInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1072,6 +1113,7 @@ export type UserUpdateWithoutTripsInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1092,6 +1134,7 @@ export type UserUncheckedUpdateWithoutTripsInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1112,6 +1155,7 @@ export type UserCreateWithoutTripReviewsInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1132,6 +1176,7 @@ export type UserUncheckedCreateWithoutTripReviewsInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1168,6 +1213,7 @@ export type UserUpdateWithoutTripReviewsInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1188,6 +1234,7 @@ export type UserUncheckedUpdateWithoutTripReviewsInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1208,6 +1255,7 @@ export type UserCreateWithoutParticipationsInput = {
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1228,6 +1276,7 @@ export type UserUncheckedCreateWithoutParticipationsInput = {
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1264,6 +1313,7 @@ export type UserUpdateWithoutParticipationsInput = {
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1284,6 +1334,7 @@ export type UserUncheckedUpdateWithoutParticipationsInput = {
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1304,6 +1355,7 @@ export type UserCreateWithoutBookingsInput = {
|
||||
tripReviews?: Prisma.TripReviewCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1324,6 +1376,7 @@ export type UserUncheckedCreateWithoutBookingsInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
@@ -1360,6 +1413,7 @@ export type UserUpdateWithoutBookingsInput = {
|
||||
tripReviews?: Prisma.TripReviewUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1380,6 +1434,107 @@ export type UserUncheckedUpdateWithoutBookingsInput = {
|
||||
tripReviews?: Prisma.TripReviewUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
reviewedRefunds?: Prisma.RefundUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutReviewedRefundsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
email: string
|
||||
password?: string | null
|
||||
image?: string | null
|
||||
emailVerified?: Date | string | null
|
||||
acceptedTermsAndPrivacy?: boolean
|
||||
acceptedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
|
||||
trips?: Prisma.TripCreateNestedManyWithoutOrganizerInput
|
||||
participations?: Prisma.TripParticipantCreateNestedManyWithoutUserInput
|
||||
tripReviews?: Prisma.TripReviewCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutReviewedRefundsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
email: string
|
||||
password?: string | null
|
||||
image?: string | null
|
||||
emailVerified?: Date | string | null
|
||||
acceptedTermsAndPrivacy?: boolean
|
||||
acceptedAt?: Date | string | null
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
|
||||
trips?: Prisma.TripUncheckedCreateNestedManyWithoutOrganizerInput
|
||||
participations?: Prisma.TripParticipantUncheckedCreateNestedManyWithoutUserInput
|
||||
tripReviews?: Prisma.TripReviewUncheckedCreateNestedManyWithoutUserInput
|
||||
bookings?: Prisma.BookingUncheckedCreateNestedManyWithoutUserInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedCreateNestedOneWithoutUserInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedCreateNestedManyWithoutReviewedByInput
|
||||
profile?: Prisma.UserProfileUncheckedCreateNestedOneWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutReviewedRefundsInput = {
|
||||
where: Prisma.UserWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutReviewedRefundsInput, Prisma.UserUncheckedCreateWithoutReviewedRefundsInput>
|
||||
}
|
||||
|
||||
export type UserUpsertWithoutReviewedRefundsInput = {
|
||||
update: Prisma.XOR<Prisma.UserUpdateWithoutReviewedRefundsInput, Prisma.UserUncheckedUpdateWithoutReviewedRefundsInput>
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutReviewedRefundsInput, Prisma.UserUncheckedCreateWithoutReviewedRefundsInput>
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
export type UserUpdateToOneWithWhereWithoutReviewedRefundsInput = {
|
||||
where?: Prisma.UserWhereInput
|
||||
data: Prisma.XOR<Prisma.UserUpdateWithoutReviewedRefundsInput, Prisma.UserUncheckedUpdateWithoutReviewedRefundsInput>
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutReviewedRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
acceptedTermsAndPrivacy?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
|
||||
trips?: Prisma.TripUpdateManyWithoutOrganizerNestedInput
|
||||
participations?: Prisma.TripParticipantUpdateManyWithoutUserNestedInput
|
||||
tripReviews?: Prisma.TripReviewUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutReviewedRefundsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
acceptedTermsAndPrivacy?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
acceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
|
||||
trips?: Prisma.TripUncheckedUpdateManyWithoutOrganizerNestedInput
|
||||
participations?: Prisma.TripParticipantUncheckedUpdateManyWithoutUserNestedInput
|
||||
tripReviews?: Prisma.TripReviewUncheckedUpdateManyWithoutUserNestedInput
|
||||
bookings?: Prisma.BookingUncheckedUpdateManyWithoutUserNestedInput
|
||||
organizerVerification?: Prisma.OrganizerVerificationUncheckedUpdateOneWithoutUserNestedInput
|
||||
reviewedVerifications?: Prisma.OrganizerVerificationUncheckedUpdateManyWithoutReviewedByNestedInput
|
||||
profile?: Prisma.UserProfileUncheckedUpdateOneWithoutUserNestedInput
|
||||
}
|
||||
|
||||
@@ -1395,6 +1550,7 @@ export type UserCountOutputType = {
|
||||
tripReviews: number
|
||||
bookings: number
|
||||
reviewedVerifications: number
|
||||
reviewedRefunds: number
|
||||
}
|
||||
|
||||
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -1404,6 +1560,7 @@ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.I
|
||||
tripReviews?: boolean | UserCountOutputTypeCountTripReviewsArgs
|
||||
bookings?: boolean | UserCountOutputTypeCountBookingsArgs
|
||||
reviewedVerifications?: boolean | UserCountOutputTypeCountReviewedVerificationsArgs
|
||||
reviewedRefunds?: boolean | UserCountOutputTypeCountReviewedRefundsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1458,6 +1615,13 @@ export type UserCountOutputTypeCountReviewedVerificationsArgs<ExtArgs extends ru
|
||||
where?: Prisma.OrganizerVerificationWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* UserCountOutputType without action
|
||||
*/
|
||||
export type UserCountOutputTypeCountReviewedRefundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.RefundWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -1477,6 +1641,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
bookings?: boolean | Prisma.User$bookingsArgs<ExtArgs>
|
||||
organizerVerification?: boolean | Prisma.User$organizerVerificationArgs<ExtArgs>
|
||||
reviewedVerifications?: boolean | Prisma.User$reviewedVerificationsArgs<ExtArgs>
|
||||
reviewedRefunds?: boolean | Prisma.User$reviewedRefundsArgs<ExtArgs>
|
||||
profile?: boolean | Prisma.User$profileArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
@@ -1529,6 +1694,7 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
bookings?: boolean | Prisma.User$bookingsArgs<ExtArgs>
|
||||
organizerVerification?: boolean | Prisma.User$organizerVerificationArgs<ExtArgs>
|
||||
reviewedVerifications?: boolean | Prisma.User$reviewedVerificationsArgs<ExtArgs>
|
||||
reviewedRefunds?: boolean | Prisma.User$reviewedRefundsArgs<ExtArgs>
|
||||
profile?: boolean | Prisma.User$profileArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
@@ -1545,6 +1711,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
bookings: Prisma.$BookingPayload<ExtArgs>[]
|
||||
organizerVerification: Prisma.$OrganizerVerificationPayload<ExtArgs> | null
|
||||
reviewedVerifications: Prisma.$OrganizerVerificationPayload<ExtArgs>[]
|
||||
reviewedRefunds: Prisma.$RefundPayload<ExtArgs>[]
|
||||
profile: Prisma.$UserProfilePayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
@@ -1971,6 +2138,7 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
|
||||
bookings<T extends Prisma.User$bookingsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$bookingsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BookingPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
organizerVerification<T extends Prisma.User$organizerVerificationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$organizerVerificationArgs<ExtArgs>>): Prisma.Prisma__OrganizerVerificationClient<runtime.Types.Result.GetResult<Prisma.$OrganizerVerificationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
reviewedVerifications<T extends Prisma.User$reviewedVerificationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$reviewedVerificationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrganizerVerificationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
reviewedRefunds<T extends Prisma.User$reviewedRefundsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$reviewedRefundsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$RefundPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
profile<T extends Prisma.User$profileArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$profileArgs<ExtArgs>>): Prisma.Prisma__UserProfileClient<runtime.Types.Result.GetResult<Prisma.$UserProfilePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
@@ -2566,6 +2734,30 @@ export type User$reviewedVerificationsArgs<ExtArgs extends runtime.Types.Extensi
|
||||
distinct?: Prisma.OrganizerVerificationScalarFieldEnum | Prisma.OrganizerVerificationScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User.reviewedRefunds
|
||||
*/
|
||||
export type User$reviewedRefundsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Refund
|
||||
*/
|
||||
select?: Prisma.RefundSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Refund
|
||||
*/
|
||||
omit?: Prisma.RefundOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.RefundInclude<ExtArgs> | null
|
||||
where?: Prisma.RefundWhereInput
|
||||
orderBy?: Prisma.RefundOrderByWithRelationInput | Prisma.RefundOrderByWithRelationInput[]
|
||||
cursor?: Prisma.RefundWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.RefundScalarFieldEnum | Prisma.RefundScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User.profile
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user