/* !!! 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_item` 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_item * */ export type payment_itemModel = runtime.Types.Result.DefaultSelection export type AggregatePayment_item = { _count: Payment_itemCountAggregateOutputType | null _avg: Payment_itemAvgAggregateOutputType | null _sum: Payment_itemSumAggregateOutputType | null _min: Payment_itemMinAggregateOutputType | null _max: Payment_itemMaxAggregateOutputType | null } export type Payment_itemAvgAggregateOutputType = { id: number | null payment_id: number | null invoice_id: number | null amount: number | null date_orig: number | null } export type Payment_itemSumAggregateOutputType = { id: bigint | null payment_id: bigint | null invoice_id: bigint | null amount: number | null date_orig: bigint | null } export type Payment_itemMinAggregateOutputType = { id: bigint | null payment_id: bigint | null invoice_id: bigint | null amount: number | null date_orig: bigint | null } export type Payment_itemMaxAggregateOutputType = { id: bigint | null payment_id: bigint | null invoice_id: bigint | null amount: number | null date_orig: bigint | null } export type Payment_itemCountAggregateOutputType = { id: number payment_id: number invoice_id: number amount: number date_orig: number _all: number } export type Payment_itemAvgAggregateInputType = { id?: true payment_id?: true invoice_id?: true amount?: true date_orig?: true } export type Payment_itemSumAggregateInputType = { id?: true payment_id?: true invoice_id?: true amount?: true date_orig?: true } export type Payment_itemMinAggregateInputType = { id?: true payment_id?: true invoice_id?: true amount?: true date_orig?: true } export type Payment_itemMaxAggregateInputType = { id?: true payment_id?: true invoice_id?: true amount?: true date_orig?: true } export type Payment_itemCountAggregateInputType = { id?: true payment_id?: true invoice_id?: true amount?: true date_orig?: true _all?: true } export type Payment_itemAggregateArgs = { /** * Filter which payment_item to aggregate. */ where?: Prisma.payment_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payment_items to fetch. */ orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.payment_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payment_items 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` payment_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned payment_items **/ _count?: true | Payment_itemCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: Payment_itemAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: Payment_itemSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: Payment_itemMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: Payment_itemMaxAggregateInputType } export type GetPayment_itemAggregateType = { [P in keyof T & keyof AggregatePayment_item]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type payment_itemGroupByArgs = { where?: Prisma.payment_itemWhereInput orderBy?: Prisma.payment_itemOrderByWithAggregationInput | Prisma.payment_itemOrderByWithAggregationInput[] by: Prisma.Payment_itemScalarFieldEnum[] | Prisma.Payment_itemScalarFieldEnum having?: Prisma.payment_itemScalarWhereWithAggregatesInput take?: number skip?: number _count?: Payment_itemCountAggregateInputType | true _avg?: Payment_itemAvgAggregateInputType _sum?: Payment_itemSumAggregateInputType _min?: Payment_itemMinAggregateInputType _max?: Payment_itemMaxAggregateInputType } export type Payment_itemGroupByOutputType = { id: bigint payment_id: bigint | null invoice_id: bigint | null amount: number | null date_orig: bigint | null _count: Payment_itemCountAggregateOutputType | null _avg: Payment_itemAvgAggregateOutputType | null _sum: Payment_itemSumAggregateOutputType | null _min: Payment_itemMinAggregateOutputType | null _max: Payment_itemMaxAggregateOutputType | null } type GetPayment_itemGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof Payment_itemGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type payment_itemWhereInput = { AND?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] OR?: Prisma.payment_itemWhereInput[] NOT?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] id?: Prisma.BigIntFilter<"payment_item"> | bigint | number payment_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null amount?: Prisma.FloatNullableFilter<"payment_item"> | number | null date_orig?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null } export type payment_itemOrderByWithRelationInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder } export type payment_itemWhereUniqueInput = Prisma.AtLeast<{ id?: bigint | number AND?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] OR?: Prisma.payment_itemWhereInput[] NOT?: Prisma.payment_itemWhereInput | Prisma.payment_itemWhereInput[] payment_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null amount?: Prisma.FloatNullableFilter<"payment_item"> | number | null date_orig?: Prisma.BigIntNullableFilter<"payment_item"> | bigint | number | null }, "id"> export type payment_itemOrderByWithAggregationInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrderInput | Prisma.SortOrder invoice_id?: Prisma.SortOrderInput | Prisma.SortOrder amount?: Prisma.SortOrderInput | Prisma.SortOrder date_orig?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.payment_itemCountOrderByAggregateInput _avg?: Prisma.payment_itemAvgOrderByAggregateInput _max?: Prisma.payment_itemMaxOrderByAggregateInput _min?: Prisma.payment_itemMinOrderByAggregateInput _sum?: Prisma.payment_itemSumOrderByAggregateInput } export type payment_itemScalarWhereWithAggregatesInput = { AND?: Prisma.payment_itemScalarWhereWithAggregatesInput | Prisma.payment_itemScalarWhereWithAggregatesInput[] OR?: Prisma.payment_itemScalarWhereWithAggregatesInput[] NOT?: Prisma.payment_itemScalarWhereWithAggregatesInput | Prisma.payment_itemScalarWhereWithAggregatesInput[] id?: Prisma.BigIntWithAggregatesFilter<"payment_item"> | bigint | number payment_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null invoice_id?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null amount?: Prisma.FloatNullableWithAggregatesFilter<"payment_item"> | number | null date_orig?: Prisma.BigIntNullableWithAggregatesFilter<"payment_item"> | bigint | number | null } export type payment_itemCreateInput = { id?: bigint | number payment_id?: bigint | number | null invoice_id?: bigint | number | null amount?: number | null date_orig?: bigint | number | null } export type payment_itemUncheckedCreateInput = { id?: bigint | number payment_id?: bigint | number | null invoice_id?: bigint | number | null amount?: number | null date_orig?: bigint | number | null } export type payment_itemUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type payment_itemUncheckedUpdateInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type payment_itemCreateManyInput = { id?: bigint | number payment_id?: bigint | number | null invoice_id?: bigint | number | null amount?: number | null date_orig?: bigint | number | null } export type payment_itemUpdateManyMutationInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type payment_itemUncheckedUpdateManyInput = { id?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number payment_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null invoice_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null amount?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null date_orig?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null } export type payment_itemCountOrderByAggregateInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder amount?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type payment_itemAvgOrderByAggregateInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder amount?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type payment_itemMaxOrderByAggregateInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder amount?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type payment_itemMinOrderByAggregateInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder amount?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type payment_itemSumOrderByAggregateInput = { id?: Prisma.SortOrder payment_id?: Prisma.SortOrder invoice_id?: Prisma.SortOrder amount?: Prisma.SortOrder date_orig?: Prisma.SortOrder } export type payment_itemSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean payment_id?: boolean invoice_id?: boolean amount?: boolean date_orig?: boolean }, ExtArgs["result"]["payment_item"]> export type payment_itemSelectScalar = { id?: boolean payment_id?: boolean invoice_id?: boolean amount?: boolean date_orig?: boolean } export type payment_itemOmit = runtime.Types.Extensions.GetOmit<"id" | "payment_id" | "invoice_id" | "amount" | "date_orig", ExtArgs["result"]["payment_item"]> export type $payment_itemPayload = { name: "payment_item" objects: {} scalars: runtime.Types.Extensions.GetPayloadResult<{ id: bigint payment_id: bigint | null invoice_id: bigint | null amount: number | null date_orig: bigint | null }, ExtArgs["result"]["payment_item"]> composites: {} } export type payment_itemGetPayload = runtime.Types.Result.GetResult export type payment_itemCountArgs = Omit & { select?: Payment_itemCountAggregateInputType | true } export interface payment_itemDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['payment_item'], meta: { name: 'payment_item' } } /** * Find zero or one Payment_item that matches the filter. * @param {payment_itemFindUniqueArgs} args - Arguments to find a Payment_item * @example * // Get one Payment_item * const payment_item = await prisma.payment_item.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Payment_item that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {payment_itemFindUniqueOrThrowArgs} args - Arguments to find a Payment_item * @example * // Get one Payment_item * const payment_item = await prisma.payment_item.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Payment_item 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 {payment_itemFindFirstArgs} args - Arguments to find a Payment_item * @example * // Get one Payment_item * const payment_item = await prisma.payment_item.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Payment_item 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 {payment_itemFindFirstOrThrowArgs} args - Arguments to find a Payment_item * @example * // Get one Payment_item * const payment_item = await prisma.payment_item.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Payment_items 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 {payment_itemFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Payment_items * const payment_items = await prisma.payment_item.findMany() * * // Get first 10 Payment_items * const payment_items = await prisma.payment_item.findMany({ take: 10 }) * * // Only select the `id` * const payment_itemWithIdOnly = await prisma.payment_item.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Payment_item. * @param {payment_itemCreateArgs} args - Arguments to create a Payment_item. * @example * // Create one Payment_item * const Payment_item = await prisma.payment_item.create({ * data: { * // ... data to create a Payment_item * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Payment_items. * @param {payment_itemCreateManyArgs} args - Arguments to create many Payment_items. * @example * // Create many Payment_items * const payment_item = await prisma.payment_item.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a Payment_item. * @param {payment_itemDeleteArgs} args - Arguments to delete one Payment_item. * @example * // Delete one Payment_item * const Payment_item = await prisma.payment_item.delete({ * where: { * // ... filter to delete one Payment_item * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Payment_item. * @param {payment_itemUpdateArgs} args - Arguments to update one Payment_item. * @example * // Update one Payment_item * const payment_item = await prisma.payment_item.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Payment_items. * @param {payment_itemDeleteManyArgs} args - Arguments to filter Payment_items to delete. * @example * // Delete a few Payment_items * const { count } = await prisma.payment_item.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Payment_items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {payment_itemUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Payment_items * const payment_item = await prisma.payment_item.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one Payment_item. * @param {payment_itemUpsertArgs} args - Arguments to update or create a Payment_item. * @example * // Update or create a Payment_item * const payment_item = await prisma.payment_item.upsert({ * create: { * // ... data to create a Payment_item * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Payment_item we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__payment_itemClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Payment_items. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {payment_itemCountArgs} args - Arguments to filter Payment_items to count. * @example * // Count the number of Payment_items * const count = await prisma.payment_item.count({ * where: { * // ... the filter for the Payment_items 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_item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {Payment_itemAggregateArgs} 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_item. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {payment_itemGroupByArgs} 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 payment_itemGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: payment_itemGroupByArgs['orderBy'] } : { orderBy?: payment_itemGroupByArgs['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 ? GetPayment_itemGroupByPayload : Prisma.PrismaPromise /** * Fields of the payment_item model */ readonly fields: payment_itemFieldRefs; } /** * The delegate class that acts as a "Promise-like" for payment_item. * 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__payment_itemClient 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_item model */ export interface payment_itemFieldRefs { readonly id: Prisma.FieldRef<"payment_item", 'BigInt'> readonly payment_id: Prisma.FieldRef<"payment_item", 'BigInt'> readonly invoice_id: Prisma.FieldRef<"payment_item", 'BigInt'> readonly amount: Prisma.FieldRef<"payment_item", 'Float'> readonly date_orig: Prisma.FieldRef<"payment_item", 'BigInt'> } // Custom InputTypes /** * payment_item findUnique */ export type payment_itemFindUniqueArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter, which payment_item to fetch. */ where: Prisma.payment_itemWhereUniqueInput } /** * payment_item findUniqueOrThrow */ export type payment_itemFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter, which payment_item to fetch. */ where: Prisma.payment_itemWhereUniqueInput } /** * payment_item findFirst */ export type payment_itemFindFirstArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter, which payment_item to fetch. */ where?: Prisma.payment_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payment_items to fetch. */ orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for payment_items. */ cursor?: Prisma.payment_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payment_items 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` payment_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of payment_items. */ distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] } /** * payment_item findFirstOrThrow */ export type payment_itemFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter, which payment_item to fetch. */ where?: Prisma.payment_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payment_items to fetch. */ orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for payment_items. */ cursor?: Prisma.payment_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payment_items 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` payment_items. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of payment_items. */ distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] } /** * payment_item findMany */ export type payment_itemFindManyArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter, which payment_items to fetch. */ where?: Prisma.payment_itemWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of payment_items to fetch. */ orderBy?: Prisma.payment_itemOrderByWithRelationInput | Prisma.payment_itemOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing payment_items. */ cursor?: Prisma.payment_itemWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` payment_items 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` payment_items. */ skip?: number distinct?: Prisma.Payment_itemScalarFieldEnum | Prisma.Payment_itemScalarFieldEnum[] } /** * payment_item create */ export type payment_itemCreateArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * The data needed to create a payment_item. */ data?: Prisma.XOR } /** * payment_item createMany */ export type payment_itemCreateManyArgs = { /** * The data used to create many payment_items. */ data: Prisma.payment_itemCreateManyInput | Prisma.payment_itemCreateManyInput[] skipDuplicates?: boolean } /** * payment_item update */ export type payment_itemUpdateArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * The data needed to update a payment_item. */ data: Prisma.XOR /** * Choose, which payment_item to update. */ where: Prisma.payment_itemWhereUniqueInput } /** * payment_item updateMany */ export type payment_itemUpdateManyArgs = { /** * The data used to update payment_items. */ data: Prisma.XOR /** * Filter which payment_items to update */ where?: Prisma.payment_itemWhereInput /** * Limit how many payment_items to update. */ limit?: number } /** * payment_item upsert */ export type payment_itemUpsertArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * The filter to search for the payment_item to update in case it exists. */ where: Prisma.payment_itemWhereUniqueInput /** * In case the payment_item found by the `where` argument doesn't exist, create a new payment_item with this data. */ create: Prisma.XOR /** * In case the payment_item was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * payment_item delete */ export type payment_itemDeleteArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null /** * Filter which payment_item to delete. */ where: Prisma.payment_itemWhereUniqueInput } /** * payment_item deleteMany */ export type payment_itemDeleteManyArgs = { /** * Filter which payment_items to delete */ where?: Prisma.payment_itemWhereInput /** * Limit how many payment_items to delete. */ limit?: number } /** * payment_item without action */ export type payment_itemDefaultArgs = { /** * Select specific fields to fetch from the payment_item */ select?: Prisma.payment_itemSelect | null /** * Omit specific fields from the payment_item */ omit?: Prisma.payment_itemOmit | null }