1410 lines
60 KiB
TypeScript
1410 lines
60 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `SalesInvoicePayment` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.js"
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
/**
|
|
* Model SalesInvoicePayment
|
|
*
|
|
*/
|
|
export type SalesInvoicePaymentModel = runtime.Types.Result.DefaultSelection<Prisma.$SalesInvoicePaymentPayload>
|
|
|
|
export type AggregateSalesInvoicePayment = {
|
|
_count: SalesInvoicePaymentCountAggregateOutputType | null
|
|
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
|
|
_sum: SalesInvoicePaymentSumAggregateOutputType | null
|
|
_min: SalesInvoicePaymentMinAggregateOutputType | null
|
|
_max: SalesInvoicePaymentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SalesInvoicePaymentAvgAggregateOutputType = {
|
|
amount: runtime.Decimal | null
|
|
}
|
|
|
|
export type SalesInvoicePaymentSumAggregateOutputType = {
|
|
amount: runtime.Decimal | null
|
|
}
|
|
|
|
export type SalesInvoicePaymentMinAggregateOutputType = {
|
|
id: string | null
|
|
amount: runtime.Decimal | null
|
|
payment_method: $Enums.PaymentMethodType | null
|
|
paid_at: Date | null
|
|
created_at: Date | null
|
|
invoice_id: string | null
|
|
}
|
|
|
|
export type SalesInvoicePaymentMaxAggregateOutputType = {
|
|
id: string | null
|
|
amount: runtime.Decimal | null
|
|
payment_method: $Enums.PaymentMethodType | null
|
|
paid_at: Date | null
|
|
created_at: Date | null
|
|
invoice_id: string | null
|
|
}
|
|
|
|
export type SalesInvoicePaymentCountAggregateOutputType = {
|
|
id: number
|
|
amount: number
|
|
payment_method: number
|
|
paid_at: number
|
|
created_at: number
|
|
invoice_id: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SalesInvoicePaymentAvgAggregateInputType = {
|
|
amount?: true
|
|
}
|
|
|
|
export type SalesInvoicePaymentSumAggregateInputType = {
|
|
amount?: true
|
|
}
|
|
|
|
export type SalesInvoicePaymentMinAggregateInputType = {
|
|
id?: true
|
|
amount?: true
|
|
payment_method?: true
|
|
paid_at?: true
|
|
created_at?: true
|
|
invoice_id?: true
|
|
}
|
|
|
|
export type SalesInvoicePaymentMaxAggregateInputType = {
|
|
id?: true
|
|
amount?: true
|
|
payment_method?: true
|
|
paid_at?: true
|
|
created_at?: true
|
|
invoice_id?: true
|
|
}
|
|
|
|
export type SalesInvoicePaymentCountAggregateInputType = {
|
|
id?: true
|
|
amount?: true
|
|
payment_method?: true
|
|
paid_at?: true
|
|
created_at?: true
|
|
invoice_id?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SalesInvoicePaymentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SalesInvoicePayment to aggregate.
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesInvoicePayments to fetch.
|
|
*/
|
|
orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesInvoicePayments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesInvoicePayments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned SalesInvoicePayments
|
|
**/
|
|
_count?: true | SalesInvoicePaymentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: SalesInvoicePaymentAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: SalesInvoicePaymentSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SalesInvoicePaymentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SalesInvoicePaymentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSalesInvoicePaymentAggregateType<T extends SalesInvoicePaymentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSalesInvoicePayment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSalesInvoicePayment[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSalesInvoicePayment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoicePaymentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
orderBy?: Prisma.SalesInvoicePaymentOrderByWithAggregationInput | Prisma.SalesInvoicePaymentOrderByWithAggregationInput[]
|
|
by: Prisma.SalesInvoicePaymentScalarFieldEnum[] | Prisma.SalesInvoicePaymentScalarFieldEnum
|
|
having?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SalesInvoicePaymentCountAggregateInputType | true
|
|
_avg?: SalesInvoicePaymentAvgAggregateInputType
|
|
_sum?: SalesInvoicePaymentSumAggregateInputType
|
|
_min?: SalesInvoicePaymentMinAggregateInputType
|
|
_max?: SalesInvoicePaymentMaxAggregateInputType
|
|
}
|
|
|
|
export type SalesInvoicePaymentGroupByOutputType = {
|
|
id: string
|
|
amount: runtime.Decimal
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date
|
|
created_at: Date
|
|
invoice_id: string
|
|
_count: SalesInvoicePaymentCountAggregateOutputType | null
|
|
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
|
|
_sum: SalesInvoicePaymentSumAggregateOutputType | null
|
|
_min: SalesInvoicePaymentMinAggregateOutputType | null
|
|
_max: SalesInvoicePaymentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetSalesInvoicePaymentGroupByPayload<T extends SalesInvoicePaymentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SalesInvoicePaymentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SalesInvoicePaymentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SalesInvoicePaymentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SalesInvoicePaymentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SalesInvoicePaymentWhereInput = {
|
|
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
|
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
|
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
|
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
terminal_info?: Prisma.XOR<Prisma.SalesInvoicePaymentTerminalInfoNullableScalarRelationFilter, Prisma.SalesInvoicePaymentTerminalInfoWhereInput> | null
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
amount?: Prisma.SortOrder
|
|
payment_method?: Prisma.SortOrder
|
|
paid_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoOrderByWithRelationInput
|
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
|
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
|
OR?: Prisma.SalesInvoicePaymentWhereInput[]
|
|
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
|
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
terminal_info?: Prisma.XOR<Prisma.SalesInvoicePaymentTerminalInfoNullableScalarRelationFilter, Prisma.SalesInvoicePaymentTerminalInfoWhereInput> | null
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
}, "id">
|
|
|
|
export type SalesInvoicePaymentOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
amount?: Prisma.SortOrder
|
|
payment_method?: Prisma.SortOrder
|
|
paid_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
_count?: Prisma.SalesInvoicePaymentCountOrderByAggregateInput
|
|
_avg?: Prisma.SalesInvoicePaymentAvgOrderByAggregateInput
|
|
_max?: Prisma.SalesInvoicePaymentMaxOrderByAggregateInput
|
|
_min?: Prisma.SalesInvoicePaymentMinOrderByAggregateInput
|
|
_sum?: Prisma.SalesInvoicePaymentSumOrderByAggregateInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
|
amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
|
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoCreateNestedOneWithoutPaymentInput
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutPaymentsInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedCreateInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
invoice_id: string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedCreateNestedOneWithoutPaymentInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUpdateOneWithoutPaymentNestedInput
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedUpdateOneWithoutPaymentNestedInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateManyInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
invoice_id: string
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentListRelationFilter = {
|
|
every?: Prisma.SalesInvoicePaymentWhereInput
|
|
some?: Prisma.SalesInvoicePaymentWhereInput
|
|
none?: Prisma.SalesInvoicePaymentWhereInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentOrderByRelevanceInput = {
|
|
fields: Prisma.SalesInvoicePaymentOrderByRelevanceFieldEnum | Prisma.SalesInvoicePaymentOrderByRelevanceFieldEnum[]
|
|
sort: Prisma.SortOrder
|
|
search: string
|
|
}
|
|
|
|
export type SalesInvoicePaymentCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
amount?: Prisma.SortOrder
|
|
payment_method?: Prisma.SortOrder
|
|
paid_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentAvgOrderByAggregateInput = {
|
|
amount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
amount?: Prisma.SortOrder
|
|
payment_method?: Prisma.SortOrder
|
|
paid_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
amount?: Prisma.SortOrder
|
|
payment_method?: Prisma.SortOrder
|
|
paid_at?: Prisma.SortOrder
|
|
created_at?: Prisma.SortOrder
|
|
invoice_id?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentSumOrderByAggregateInput = {
|
|
amount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SalesInvoicePaymentScalarRelationFilter = {
|
|
is?: Prisma.SalesInvoicePaymentWhereInput
|
|
isNot?: Prisma.SalesInvoicePaymentWhereInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput[] | Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput[]
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput[]
|
|
createMany?: Prisma.SalesInvoicePaymentCreateManyInvoiceInputEnvelope
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput[] | Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput[]
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput[]
|
|
createMany?: Prisma.SalesInvoicePaymentCreateManyInvoiceInputEnvelope
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput[] | Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput[]
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput[]
|
|
upsert?: Prisma.SalesInvoicePaymentUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpsertWithWhereUniqueWithoutInvoiceInput[]
|
|
createMany?: Prisma.SalesInvoicePaymentCreateManyInvoiceInputEnvelope
|
|
set?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
disconnect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
delete?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
update?: Prisma.SalesInvoicePaymentUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpdateWithWhereUniqueWithoutInvoiceInput[]
|
|
updateMany?: Prisma.SalesInvoicePaymentUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpdateManyWithWhereWithoutInvoiceInput[]
|
|
deleteMany?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput[] | Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput[]
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput[]
|
|
upsert?: Prisma.SalesInvoicePaymentUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpsertWithWhereUniqueWithoutInvoiceInput[]
|
|
createMany?: Prisma.SalesInvoicePaymentCreateManyInvoiceInputEnvelope
|
|
set?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
disconnect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
delete?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput | Prisma.SalesInvoicePaymentWhereUniqueInput[]
|
|
update?: Prisma.SalesInvoicePaymentUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpdateWithWhereUniqueWithoutInvoiceInput[]
|
|
updateMany?: Prisma.SalesInvoicePaymentUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoicePaymentUpdateManyWithWhereWithoutInvoiceInput[]
|
|
deleteMany?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.PaymentMethodType
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateNestedOneWithoutTerminal_infoInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateOneRequiredWithoutTerminal_infoNestedInput = {
|
|
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
|
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput
|
|
upsert?: Prisma.SalesInvoicePaymentUpsertWithoutTerminal_infoInput
|
|
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoicePaymentUpdateToOneWithWhereWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput>, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateWithoutInvoiceInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoCreateNestedOneWithoutPaymentInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedCreateNestedOneWithoutPaymentInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput = {
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateManyInvoiceInputEnvelope = {
|
|
data: Prisma.SalesInvoicePaymentCreateManyInvoiceInput | Prisma.SalesInvoicePaymentCreateManyInvoiceInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpsertWithWhereUniqueWithoutInvoiceInput = {
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput>
|
|
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateWithWhereUniqueWithoutInvoiceInput = {
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateManyWithWhereWithoutInvoiceInput = {
|
|
where: Prisma.SalesInvoicePaymentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateManyMutationInput, Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentScalarWhereInput = {
|
|
AND?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
|
OR?: Prisma.SalesInvoicePaymentScalarWhereInput[]
|
|
NOT?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateWithoutTerminal_infoInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutPaymentsInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
invoice_id: string
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput = {
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpsertWithoutTerminal_infoInput = {
|
|
update: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
|
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateToOneWithWhereWithoutTerminal_infoInput = {
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateWithoutTerminal_infoInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentCreateManyInvoiceInput = {
|
|
id?: string
|
|
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date | string
|
|
created_at?: Date | string
|
|
}
|
|
|
|
export type SalesInvoicePaymentUpdateWithoutInvoiceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUpdateOneWithoutPaymentNestedInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedUpdateOneWithoutPaymentNestedInput
|
|
}
|
|
|
|
export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
|
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
amount?: boolean
|
|
payment_method?: boolean
|
|
paid_at?: boolean
|
|
created_at?: boolean
|
|
invoice_id?: boolean
|
|
terminal_info?: boolean | Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["salesInvoicePayment"]>
|
|
|
|
|
|
|
|
export type SalesInvoicePaymentSelectScalar = {
|
|
id?: boolean
|
|
amount?: boolean
|
|
payment_method?: boolean
|
|
paid_at?: boolean
|
|
created_at?: boolean
|
|
invoice_id?: boolean
|
|
}
|
|
|
|
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "amount" | "payment_method" | "paid_at" | "created_at" | "invoice_id", ExtArgs["result"]["salesInvoicePayment"]>
|
|
export type SalesInvoicePaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
terminal_info?: boolean | Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $SalesInvoicePaymentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "SalesInvoicePayment"
|
|
objects: {
|
|
terminal_info: Prisma.$SalesInvoicePaymentTerminalInfoPayload<ExtArgs> | null
|
|
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
amount: runtime.Decimal
|
|
payment_method: $Enums.PaymentMethodType
|
|
paid_at: Date
|
|
created_at: Date
|
|
invoice_id: string
|
|
}, ExtArgs["result"]["salesInvoicePayment"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SalesInvoicePaymentGetPayload<S extends boolean | null | undefined | SalesInvoicePaymentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload, S>
|
|
|
|
export type SalesInvoicePaymentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SalesInvoicePaymentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SalesInvoicePaymentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SalesInvoicePaymentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SalesInvoicePayment'], meta: { name: 'SalesInvoicePayment' } }
|
|
/**
|
|
* Find zero or one SalesInvoicePayment that matches the filter.
|
|
* @param {SalesInvoicePaymentFindUniqueArgs} args - Arguments to find a SalesInvoicePayment
|
|
* @example
|
|
* // Get one SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SalesInvoicePaymentFindUniqueArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one SalesInvoicePayment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SalesInvoicePaymentFindUniqueOrThrowArgs} args - Arguments to find a SalesInvoicePayment
|
|
* @example
|
|
* // Get one SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SalesInvoicePaymentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SalesInvoicePayment that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentFindFirstArgs} args - Arguments to find a SalesInvoicePayment
|
|
* @example
|
|
* // Get one SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SalesInvoicePaymentFindFirstArgs>(args?: Prisma.SelectSubset<T, SalesInvoicePaymentFindFirstArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first SalesInvoicePayment that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentFindFirstOrThrowArgs} args - Arguments to find a SalesInvoicePayment
|
|
* @example
|
|
* // Get one SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SalesInvoicePaymentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SalesInvoicePaymentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more SalesInvoicePayments that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all SalesInvoicePayments
|
|
* const salesInvoicePayments = await prisma.salesInvoicePayment.findMany()
|
|
*
|
|
* // Get first 10 SalesInvoicePayments
|
|
* const salesInvoicePayments = await prisma.salesInvoicePayment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const salesInvoicePaymentWithIdOnly = await prisma.salesInvoicePayment.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SalesInvoicePaymentFindManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoicePaymentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a SalesInvoicePayment.
|
|
* @param {SalesInvoicePaymentCreateArgs} args - Arguments to create a SalesInvoicePayment.
|
|
* @example
|
|
* // Create one SalesInvoicePayment
|
|
* const SalesInvoicePayment = await prisma.salesInvoicePayment.create({
|
|
* data: {
|
|
* // ... data to create a SalesInvoicePayment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SalesInvoicePaymentCreateArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentCreateArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many SalesInvoicePayments.
|
|
* @param {SalesInvoicePaymentCreateManyArgs} args - Arguments to create many SalesInvoicePayments.
|
|
* @example
|
|
* // Create many SalesInvoicePayments
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SalesInvoicePaymentCreateManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoicePaymentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Delete a SalesInvoicePayment.
|
|
* @param {SalesInvoicePaymentDeleteArgs} args - Arguments to delete one SalesInvoicePayment.
|
|
* @example
|
|
* // Delete one SalesInvoicePayment
|
|
* const SalesInvoicePayment = await prisma.salesInvoicePayment.delete({
|
|
* where: {
|
|
* // ... filter to delete one SalesInvoicePayment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SalesInvoicePaymentDeleteArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentDeleteArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one SalesInvoicePayment.
|
|
* @param {SalesInvoicePaymentUpdateArgs} args - Arguments to update one SalesInvoicePayment.
|
|
* @example
|
|
* // Update one SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SalesInvoicePaymentUpdateArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentUpdateArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more SalesInvoicePayments.
|
|
* @param {SalesInvoicePaymentDeleteManyArgs} args - Arguments to filter SalesInvoicePayments to delete.
|
|
* @example
|
|
* // Delete a few SalesInvoicePayments
|
|
* const { count } = await prisma.salesInvoicePayment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SalesInvoicePaymentDeleteManyArgs>(args?: Prisma.SelectSubset<T, SalesInvoicePaymentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more SalesInvoicePayments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many SalesInvoicePayments
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SalesInvoicePaymentUpdateManyArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create or update one SalesInvoicePayment.
|
|
* @param {SalesInvoicePaymentUpsertArgs} args - Arguments to update or create a SalesInvoicePayment.
|
|
* @example
|
|
* // Update or create a SalesInvoicePayment
|
|
* const salesInvoicePayment = await prisma.salesInvoicePayment.upsert({
|
|
* create: {
|
|
* // ... data to create a SalesInvoicePayment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the SalesInvoicePayment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SalesInvoicePaymentUpsertArgs>(args: Prisma.SelectSubset<T, SalesInvoicePaymentUpsertArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of SalesInvoicePayments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentCountArgs} args - Arguments to filter SalesInvoicePayments to count.
|
|
* @example
|
|
* // Count the number of SalesInvoicePayments
|
|
* const count = await prisma.salesInvoicePayment.count({
|
|
* where: {
|
|
* // ... the filter for the SalesInvoicePayments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SalesInvoicePaymentCountArgs>(
|
|
args?: Prisma.Subset<T, SalesInvoicePaymentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SalesInvoicePaymentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a SalesInvoicePayment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends SalesInvoicePaymentAggregateArgs>(args: Prisma.Subset<T, SalesInvoicePaymentAggregateArgs>): Prisma.PrismaPromise<GetSalesInvoicePaymentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by SalesInvoicePayment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SalesInvoicePaymentGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends SalesInvoicePaymentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SalesInvoicePaymentGroupByArgs['orderBy'] }
|
|
: { orderBy?: SalesInvoicePaymentGroupByArgs['orderBy'] },
|
|
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
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[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
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, SalesInvoicePaymentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSalesInvoicePaymentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the SalesInvoicePayment model
|
|
*/
|
|
readonly fields: SalesInvoicePaymentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for SalesInvoicePayment.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__SalesInvoicePaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
terminal_info<T extends Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentTerminalInfoClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
invoice<T extends Prisma.SalesInvoiceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceDefaultArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
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>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the SalesInvoicePayment model
|
|
*/
|
|
export interface SalesInvoicePaymentFieldRefs {
|
|
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
|
readonly amount: Prisma.FieldRef<"SalesInvoicePayment", 'Decimal'>
|
|
readonly payment_method: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
|
|
readonly paid_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
|
readonly created_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
|
|
readonly invoice_id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* SalesInvoicePayment findUnique
|
|
*/
|
|
export type SalesInvoicePaymentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesInvoicePayment to fetch.
|
|
*/
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment findUniqueOrThrow
|
|
*/
|
|
export type SalesInvoicePaymentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesInvoicePayment to fetch.
|
|
*/
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment findFirst
|
|
*/
|
|
export type SalesInvoicePaymentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesInvoicePayment to fetch.
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesInvoicePayments to fetch.
|
|
*/
|
|
orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SalesInvoicePayments.
|
|
*/
|
|
cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesInvoicePayments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesInvoicePayments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SalesInvoicePayments.
|
|
*/
|
|
distinct?: Prisma.SalesInvoicePaymentScalarFieldEnum | Prisma.SalesInvoicePaymentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment findFirstOrThrow
|
|
*/
|
|
export type SalesInvoicePaymentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesInvoicePayment to fetch.
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesInvoicePayments to fetch.
|
|
*/
|
|
orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for SalesInvoicePayments.
|
|
*/
|
|
cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesInvoicePayments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesInvoicePayments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SalesInvoicePayments.
|
|
*/
|
|
distinct?: Prisma.SalesInvoicePaymentScalarFieldEnum | Prisma.SalesInvoicePaymentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment findMany
|
|
*/
|
|
export type SalesInvoicePaymentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which SalesInvoicePayments to fetch.
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of SalesInvoicePayments to fetch.
|
|
*/
|
|
orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing SalesInvoicePayments.
|
|
*/
|
|
cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` SalesInvoicePayments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` SalesInvoicePayments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of SalesInvoicePayments.
|
|
*/
|
|
distinct?: Prisma.SalesInvoicePaymentScalarFieldEnum | Prisma.SalesInvoicePaymentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment create
|
|
*/
|
|
export type SalesInvoicePaymentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a SalesInvoicePayment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentCreateInput, Prisma.SalesInvoicePaymentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment createMany
|
|
*/
|
|
export type SalesInvoicePaymentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many SalesInvoicePayments.
|
|
*/
|
|
data: Prisma.SalesInvoicePaymentCreateManyInput | Prisma.SalesInvoicePaymentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment update
|
|
*/
|
|
export type SalesInvoicePaymentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a SalesInvoicePayment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateInput, Prisma.SalesInvoicePaymentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which SalesInvoicePayment to update.
|
|
*/
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment updateMany
|
|
*/
|
|
export type SalesInvoicePaymentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update SalesInvoicePayments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateManyMutationInput, Prisma.SalesInvoicePaymentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which SalesInvoicePayments to update
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* Limit how many SalesInvoicePayments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment upsert
|
|
*/
|
|
export type SalesInvoicePaymentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the SalesInvoicePayment to update in case it exists.
|
|
*/
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
/**
|
|
* In case the SalesInvoicePayment found by the `where` argument doesn't exist, create a new SalesInvoicePayment with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateInput, Prisma.SalesInvoicePaymentUncheckedCreateInput>
|
|
/**
|
|
* In case the SalesInvoicePayment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateInput, Prisma.SalesInvoicePaymentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment delete
|
|
*/
|
|
export type SalesInvoicePaymentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which SalesInvoicePayment to delete.
|
|
*/
|
|
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment deleteMany
|
|
*/
|
|
export type SalesInvoicePaymentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which SalesInvoicePayments to delete
|
|
*/
|
|
where?: Prisma.SalesInvoicePaymentWhereInput
|
|
/**
|
|
* Limit how many SalesInvoicePayments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment.terminal_info
|
|
*/
|
|
export type SalesInvoicePayment$terminal_infoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePaymentTerminalInfo
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentTerminalInfoSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePaymentTerminalInfo
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentTerminalInfoOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentTerminalInfoInclude<ExtArgs> | null
|
|
where?: Prisma.SalesInvoicePaymentTerminalInfoWhereInput
|
|
}
|
|
|
|
/**
|
|
* SalesInvoicePayment without action
|
|
*/
|
|
export type SalesInvoicePaymentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the SalesInvoicePayment
|
|
*/
|
|
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the SalesInvoicePayment
|
|
*/
|
|
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
|
|
}
|