/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `payment` 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" import type * as Prisma from "../internal/prismaNamespace" /** * Model payment * */ export type paymentModel = runtime.Types.Result.DefaultSelection export type AggregatePayment = { _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } export type PaymentAvgAggregateOutputType = { id: number | null account_id: number | null date_orig: number | null amount: number | null applied_amt: number | null excedent: number | null correction: number | null cr: number | null } export type PaymentSumAggregateOutputType = { id: bigint | null account_id: bigint | null date_orig: bigint | null amount: number | null applied_amt: number | null excedent: number | null correction: number | null cr: number | null } export type PaymentMinAggregateOutputType = { id: bigint | null account_id: bigint | null date_orig: bigint | null amount: number | null applied_amt: number | null type: string | null memo: string | null reference: string | null excedent: number | null correction: number | null cr: number | null uniqsess: string | null } export type PaymentMaxAggregateOutputType = { id: bigint | null account_id: bigint | null date_orig: bigint | null amount: number | null applied_amt: number | null type: string | null memo: string | null reference: string | null excedent: number | null correction: number | null cr: number | null uniqsess: string | null } export type PaymentCountAggregateOutputType = { id: number account_id: number date_orig: number amount: number applied_amt: number type: number memo: number reference: number excedent: number correction: number cr: number uniqsess: number _all: number } export type PaymentAvgAggregateInputType = { id?: true account_id?: true date_orig?: true amount?: true applied_amt?: true excedent?: true correction?: true cr?: true } export type PaymentSumAggregateInputType = { id?: true account_id?: true date_orig?: true amount?: true applied_amt?: true excedent?: true correction?: true cr?: true } export type PaymentMinAggregateInputType = { id?: true account_id?: true date_orig?: true amount?: true applied_amt?: true type?: true memo?: true reference?: true excedent?: true correction?: true cr?: true uniqsess?: true } export type PaymentMaxAggregateInputType = { id?: true account_id?: true date_orig?: true amount?: true applied_amt?: true type?: true memo?: true reference?: true excedent?: true correction?: true cr?: true uniqsess?: true } export type PaymentCountAggregateInputType = { id?: true account_id?: true date_orig?: true amount?: true applied_amt?: true type?: true memo?: true reference?: true excedent?: true correction?: true cr?: true uniqsess?: true _all?: true } export type PaymentAggregateArgs = { /** * Filter which payment to aggregate. */ where?: Prisma.paymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payments to fetch. */ orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.paymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payments 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` payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned payments **/ _count?: true | PaymentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: PaymentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: PaymentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PaymentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PaymentMaxAggregateInputType } export type GetPaymentAggregateType = { [P in keyof T & keyof AggregatePayment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type paymentGroupByArgs = { where?: Prisma.paymentWhereInput orderBy?: Prisma.paymentOrderByWithAggregationInput | Prisma.paymentOrderByWithAggregationInput[] by: Prisma.PaymentScalarFieldEnum[] | Prisma.PaymentScalarFieldEnum having?: Prisma.paymentScalarWhereWithAggregatesInput take?: number skip?: number _count?: PaymentCountAggregateInputType | true _avg?: PaymentAvgAggregateInputType _sum?: PaymentSumAggregateInputType _min?: PaymentMinAggregateInputType _max?: PaymentMaxAggregateInputType } export type PaymentGroupByOutputType = { id: bigint account_id: bigint | null date_orig: bigint | null amount: number | null applied_amt: number | null type: string | null memo: string | null reference: string | null excedent: number correction: number cr: number uniqsess: string | null _count: PaymentCountAggregateOutputType | null _avg: PaymentAvgAggregateOutputType | null _sum: PaymentSumAggregateOutputType | null _min: PaymentMinAggregateOutputType | null _max: PaymentMaxAggregateOutputType | null } type GetPaymentGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PaymentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type paymentWhereInput = { AND?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] OR?: Prisma.paymentWhereInput[] NOT?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] id?: Prisma.BigIntFilter<"payment"> | bigint | number account_id?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null date_orig?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null amount?: Prisma.FloatNullableFilter<"payment"> | number | null applied_amt?: Prisma.FloatNullableFilter<"payment"> | number | null type?: Prisma.StringNullableFilter<"payment"> | string | null memo?: Prisma.StringNullableFilter<"payment"> | string | null reference?: Prisma.StringNullableFilter<"payment"> | string | null excedent?: Prisma.IntFilter<"payment"> | number correction?: Prisma.IntFilter<"payment"> | number cr?: Prisma.IntFilter<"payment"> | number uniqsess?: Prisma.StringNullableFilter<"payment"> | string | null } export type paymentOrderByWithRelationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder applied_amt?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder memo?: Prisma.SortOrderInput | Prisma.SortOrder reference?: Prisma.SortOrderInput | Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder uniqsess?: Prisma.SortOrderInput | Prisma.SortOrder _relevance?: Prisma.paymentOrderByRelevanceInput } export type paymentWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] OR?: Prisma.paymentWhereInput[] NOT?: Prisma.paymentWhereInput | Prisma.paymentWhereInput[] account_id?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null date_orig?: Prisma.BigIntNullableFilter<"payment"> | bigint | number | null amount?: Prisma.FloatNullableFilter<"payment"> | number | null applied_amt?: Prisma.FloatNullableFilter<"payment"> | number | null type?: Prisma.StringNullableFilter<"payment"> | string | null memo?: Prisma.StringNullableFilter<"payment"> | string | null reference?: Prisma.StringNullableFilter<"payment"> | string | null excedent?: Prisma.IntFilter<"payment"> | number correction?: Prisma.IntFilter<"payment"> | number cr?: Prisma.IntFilter<"payment"> | number uniqsess?: Prisma.StringNullableFilter<"payment"> | string | null }, "id"> export type paymentOrderByWithAggregationInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder applied_amt?: Prisma.SortOrderInput | Prisma.SortOrder type?: Prisma.SortOrderInput | Prisma.SortOrder memo?: Prisma.SortOrderInput | Prisma.SortOrder reference?: Prisma.SortOrderInput | Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder uniqsess?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.paymentCountOrderByAggregateInput _avg?: Prisma.paymentAvgOrderByAggregateInput _max?: Prisma.paymentMaxOrderByAggregateInput _min?: Prisma.paymentMinOrderByAggregateInput _sum?: Prisma.paymentSumOrderByAggregateInput } export type paymentScalarWhereWithAggregatesInput = { AND?: Prisma.paymentScalarWhereWithAggregatesInput | Prisma.paymentScalarWhereWithAggregatesInput[] OR?: Prisma.paymentScalarWhereWithAggregatesInput[] NOT?: Prisma.paymentScalarWhereWithAggregatesInput | Prisma.paymentScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"payment"> | bigint | number account_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment"> | bigint | number | null date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"payment"> | bigint | number | null amount?: Prisma.FloatNullableWithAggregatesFilter<"payment"> | number | null applied_amt?: Prisma.FloatNullableWithAggregatesFilter<"payment"> | number | null type?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null memo?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null reference?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null excedent?: Prisma.IntWithAggregatesFilter<"payment"> | number correction?: Prisma.IntWithAggregatesFilter<"payment"> | number cr?: Prisma.IntWithAggregatesFilter<"payment"> | number uniqsess?: Prisma.StringNullableWithAggregatesFilter<"payment"> | string | null } export type paymentCreateInput = { id?: bigint | number account_id?: bigint | number | null date_orig?: bigint | number | null amount?: number | null applied_amt?: number | null type?: string | null memo?: string | null reference?: string | null excedent?: number correction?: number cr?: number uniqsess?: string | null } export type paymentUncheckedCreateInput = { id?: bigint | number account_id?: bigint | number | null date_orig?: bigint | number | null amount?: number | null applied_amt?: number | null type?: string | null memo?: string | null reference?: string | null excedent?: number correction?: number cr?: number uniqsess?: string | null } export type paymentUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null excedent?: Prisma.IntFieldUpdateOperationsInput | number correction?: Prisma.IntFieldUpdateOperationsInput | number cr?: Prisma.IntFieldUpdateOperationsInput | number uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type paymentUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null excedent?: Prisma.IntFieldUpdateOperationsInput | number correction?: Prisma.IntFieldUpdateOperationsInput | number cr?: Prisma.IntFieldUpdateOperationsInput | number uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type paymentCreateManyInput = { id?: bigint | number account_id?: bigint | number | null date_orig?: bigint | number | null amount?: number | null applied_amt?: number | null type?: string | null memo?: string | null reference?: string | null excedent?: number correction?: number cr?: number uniqsess?: string | null } export type paymentUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null excedent?: Prisma.IntFieldUpdateOperationsInput | number correction?: Prisma.IntFieldUpdateOperationsInput | number cr?: Prisma.IntFieldUpdateOperationsInput | number uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type paymentUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number account_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null applied_amt?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null memo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reference?: Prisma.NullableStringFieldUpdateOperationsInput | string | null excedent?: Prisma.IntFieldUpdateOperationsInput | number correction?: Prisma.IntFieldUpdateOperationsInput | number cr?: Prisma.IntFieldUpdateOperationsInput | number uniqsess?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type paymentOrderByRelevanceInput = { fields: Prisma.paymentOrderByRelevanceFieldEnum | Prisma.paymentOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type paymentCountOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder amount?: Prisma.SortOrder applied_amt?: Prisma.SortOrder type?: Prisma.SortOrder memo?: Prisma.SortOrder reference?: Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder uniqsess?: Prisma.SortOrder } export type paymentAvgOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder amount?: Prisma.SortOrder applied_amt?: Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder } export type paymentMaxOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder amount?: Prisma.SortOrder applied_amt?: Prisma.SortOrder type?: Prisma.SortOrder memo?: Prisma.SortOrder reference?: Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder uniqsess?: Prisma.SortOrder } export type paymentMinOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder amount?: Prisma.SortOrder applied_amt?: Prisma.SortOrder type?: Prisma.SortOrder memo?: Prisma.SortOrder reference?: Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder uniqsess?: Prisma.SortOrder } export type paymentSumOrderByAggregateInput = { id?: Prisma.SortOrder account_id?: Prisma.SortOrder date_orig?: Prisma.SortOrder amount?: Prisma.SortOrder applied_amt?: Prisma.SortOrder excedent?: Prisma.SortOrder correction?: Prisma.SortOrder cr?: Prisma.SortOrder } export type paymentSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean account_id?: boolean date_orig?: boolean amount?: boolean applied_amt?: boolean type?: boolean memo?: boolean reference?: boolean excedent?: boolean correction?: boolean cr?: boolean uniqsess?: boolean }, ExtArgs["result"]["payment"]> export type paymentSelectScalar = { id?: boolean account_id?: boolean date_orig?: boolean amount?: boolean applied_amt?: boolean type?: boolean memo?: boolean reference?: boolean excedent?: boolean correction?: boolean cr?: boolean uniqsess?: boolean } export type paymentOmit = runtime.Types.Extensions.GetOmit<"id" | "account_id" | "date_orig" | "amount" | "applied_amt" | "type" | "memo" | "reference" | "excedent" | "correction" | "cr" | "uniqsess", ExtArgs["result"]["payment"]> export type $paymentPayload = { name: "payment" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint account_id: bigint | null date_orig: bigint | null amount: number | null applied_amt: number | null type: string | null memo: string | null reference: string | null excedent: number correction: number cr: number uniqsess: string | null }, ExtArgs["result"]["payment"]> composites: {} } export type paymentGetPayload = runtime.Types.Result.GetResult export type paymentCountArgs = Omit & { select?: PaymentCountAggregateInputType | true } export interface paymentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['payment'], meta: { name: 'payment' } } /** * Find zero or one Payment that matches the filter. * @param {paymentFindUniqueArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Payment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {paymentFindUniqueOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {paymentFindFirstArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Payment 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 {paymentFindFirstOrThrowArgs} args - Arguments to find a Payment * @example * // Get one Payment * const payment = await prisma.payment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Payments 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 {paymentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Payments * const payments = await prisma.payment.findMany() * * // Get first 10 Payments * const payments = await prisma.payment.findMany({ take: 10 }) * * // Only select the `id` * const paymentWithIdOnly = await prisma.payment.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Payment. * @param {paymentCreateArgs} args - Arguments to create a Payment. * @example * // Create one Payment * const Payment = await prisma.payment.create({ * data: { * // ... data to create a Payment * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Payments. * @param {paymentCreateManyArgs} args - Arguments to create many Payments. * @example * // Create many Payments * const payment = await prisma.payment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Payment. * @param {paymentDeleteArgs} args - Arguments to delete one Payment. * @example * // Delete one Payment * const Payment = await prisma.payment.delete({ * where: { * // ... filter to delete one Payment * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Payment. * @param {paymentUpdateArgs} args - Arguments to update one Payment. * @example * // Update one Payment * const payment = await prisma.payment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Payments. * @param {paymentDeleteManyArgs} args - Arguments to filter Payments to delete. * @example * // Delete a few Payments * const { count } = await prisma.payment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {paymentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Payments * const payment = await prisma.payment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Payment. * @param {paymentUpsertArgs} args - Arguments to update or create a Payment. * @example * // Update or create a Payment * const payment = await prisma.payment.upsert({ * create: { * // ... data to create a Payment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Payment we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__paymentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Payments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {paymentCountArgs} args - Arguments to filter Payments to count. * @example * // Count the number of Payments * const count = await prisma.payment.count({ * where: { * // ... the filter for the Payments we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PaymentAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Payment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {paymentGroupByArgs} 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 paymentGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: paymentGroupByArgs['orderBy'] } : { orderBy?: paymentGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetPaymentGroupByPayload : Prisma.PrismaPromise /** * Fields of the payment model */ readonly fields: paymentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for payment. * 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__paymentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" /** * 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the payment model */ export interface paymentFieldRefs { readonly id: Prisma.FieldRef<"payment", 'BigInt'> readonly account_id: Prisma.FieldRef<"payment", 'BigInt'> readonly date_orig: Prisma.FieldRef<"payment", 'BigInt'> readonly amount: Prisma.FieldRef<"payment", 'Float'> readonly applied_amt: Prisma.FieldRef<"payment", 'Float'> readonly type: Prisma.FieldRef<"payment", 'String'> readonly memo: Prisma.FieldRef<"payment", 'String'> readonly reference: Prisma.FieldRef<"payment", 'String'> readonly excedent: Prisma.FieldRef<"payment", 'Int'> readonly correction: Prisma.FieldRef<"payment", 'Int'> readonly cr: Prisma.FieldRef<"payment", 'Int'> readonly uniqsess: Prisma.FieldRef<"payment", 'String'> } // Custom InputTypes /** * payment findUnique */ export type paymentFindUniqueArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter, which payment to fetch. */ where: Prisma.paymentWhereUniqueInput } /** * payment findUniqueOrThrow */ export type paymentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter, which payment to fetch. */ where: Prisma.paymentWhereUniqueInput } /** * payment findFirst */ export type paymentFindFirstArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter, which payment to fetch. */ where?: Prisma.paymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payments to fetch. */ orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for payments. */ cursor?: Prisma.paymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payments 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` payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of payments. */ distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] } /** * payment findFirstOrThrow */ export type paymentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter, which payment to fetch. */ where?: Prisma.paymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payments to fetch. */ orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for payments. */ cursor?: Prisma.paymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payments 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` payments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of payments. */ distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] } /** * payment findMany */ export type paymentFindManyArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter, which payments to fetch. */ where?: Prisma.paymentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payments to fetch. */ orderBy?: Prisma.paymentOrderByWithRelationInput | Prisma.paymentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing payments. */ cursor?: Prisma.paymentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payments 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` payments. */ skip?: number distinct?: Prisma.PaymentScalarFieldEnum | Prisma.PaymentScalarFieldEnum[] } /** * payment create */ export type paymentCreateArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * The data needed to create a payment. */ data?: Prisma.XOR } /** * payment createMany */ export type paymentCreateManyArgs = { /** * The data used to create many payments. */ data: Prisma.paymentCreateManyInput | Prisma.paymentCreateManyInput[] skipDuplicates?: boolean } /** * payment update */ export type paymentUpdateArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * The data needed to update a payment. */ data: Prisma.XOR /** * Choose, which payment to update. */ where: Prisma.paymentWhereUniqueInput } /** * payment updateMany */ export type paymentUpdateManyArgs = { /** * The data used to update payments. */ data: Prisma.XOR /** * Filter which payments to update */ where?: Prisma.paymentWhereInput /** * Limit how many payments to update. */ limit?: number } /** * payment upsert */ export type paymentUpsertArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * The filter to search for the payment to update in case it exists. */ where: Prisma.paymentWhereUniqueInput /** * In case the payment found by the `where` argument doesn't exist, create a new payment with this data. */ create: Prisma.XOR /** * In case the payment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * payment delete */ export type paymentDeleteArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null /** * Filter which payment to delete. */ where: Prisma.paymentWhereUniqueInput } /** * payment deleteMany */ export type paymentDeleteManyArgs = { /** * Filter which payments to delete */ where?: Prisma.paymentWhereInput /** * Limit how many payments to delete. */ limit?: number } /** * payment without action */ export type paymentDefaultArgs = { /** * Select specific fields to fetch from the payment */ select?: Prisma.paymentSelect | null /** * Omit specific fields from the payment */ omit?: Prisma.paymentOmit | null }