
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck 
/*
 * This file exports the `BillingWebhookEvent` 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 BillingWebhookEvent
 * 
 */
export type BillingWebhookEventModel = runtime.Types.Result.DefaultSelection<Prisma.$BillingWebhookEventPayload>

export type AggregateBillingWebhookEvent = {
  _count: BillingWebhookEventCountAggregateOutputType | null
  _min: BillingWebhookEventMinAggregateOutputType | null
  _max: BillingWebhookEventMaxAggregateOutputType | null
}

export type BillingWebhookEventMinAggregateOutputType = {
  id: string | null
  provider: $Enums.BillingProvider | null
  externalId: string | null
  eventType: string | null
  processedAt: Date | null
}

export type BillingWebhookEventMaxAggregateOutputType = {
  id: string | null
  provider: $Enums.BillingProvider | null
  externalId: string | null
  eventType: string | null
  processedAt: Date | null
}

export type BillingWebhookEventCountAggregateOutputType = {
  id: number
  provider: number
  externalId: number
  eventType: number
  payload: number
  processedAt: number
  _all: number
}


export type BillingWebhookEventMinAggregateInputType = {
  id?: true
  provider?: true
  externalId?: true
  eventType?: true
  processedAt?: true
}

export type BillingWebhookEventMaxAggregateInputType = {
  id?: true
  provider?: true
  externalId?: true
  eventType?: true
  processedAt?: true
}

export type BillingWebhookEventCountAggregateInputType = {
  id?: true
  provider?: true
  externalId?: true
  eventType?: true
  payload?: true
  processedAt?: true
  _all?: true
}

export type BillingWebhookEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which BillingWebhookEvent to aggregate.
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of BillingWebhookEvents to fetch.
   */
  orderBy?: Prisma.BillingWebhookEventOrderByWithRelationInput | Prisma.BillingWebhookEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the start position
   */
  cursor?: Prisma.BillingWebhookEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` BillingWebhookEvents 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` BillingWebhookEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Count returned BillingWebhookEvents
  **/
  _count?: true | BillingWebhookEventCountAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the minimum value
  **/
  _min?: BillingWebhookEventMinAggregateInputType
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
   * 
   * Select which fields to find the maximum value
  **/
  _max?: BillingWebhookEventMaxAggregateInputType
}

export type GetBillingWebhookEventAggregateType<T extends BillingWebhookEventAggregateArgs> = {
      [P in keyof T & keyof AggregateBillingWebhookEvent]: P extends '_count' | 'count'
    ? T[P] extends true
      ? number
      : Prisma.GetScalarType<T[P], AggregateBillingWebhookEvent[P]>
    : Prisma.GetScalarType<T[P], AggregateBillingWebhookEvent[P]>
}




export type BillingWebhookEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  where?: Prisma.BillingWebhookEventWhereInput
  orderBy?: Prisma.BillingWebhookEventOrderByWithAggregationInput | Prisma.BillingWebhookEventOrderByWithAggregationInput[]
  by: Prisma.BillingWebhookEventScalarFieldEnum[] | Prisma.BillingWebhookEventScalarFieldEnum
  having?: Prisma.BillingWebhookEventScalarWhereWithAggregatesInput
  take?: number
  skip?: number
  _count?: BillingWebhookEventCountAggregateInputType | true
  _min?: BillingWebhookEventMinAggregateInputType
  _max?: BillingWebhookEventMaxAggregateInputType
}

export type BillingWebhookEventGroupByOutputType = {
  id: string
  provider: $Enums.BillingProvider
  externalId: string
  eventType: string
  payload: runtime.JsonValue
  processedAt: Date
  _count: BillingWebhookEventCountAggregateOutputType | null
  _min: BillingWebhookEventMinAggregateOutputType | null
  _max: BillingWebhookEventMaxAggregateOutputType | null
}

export type GetBillingWebhookEventGroupByPayload<T extends BillingWebhookEventGroupByArgs> = Prisma.PrismaPromise<
  Array<
    Prisma.PickEnumerable<BillingWebhookEventGroupByOutputType, T['by']> &
      {
        [P in ((keyof T) & (keyof BillingWebhookEventGroupByOutputType))]: P extends '_count'
          ? T[P] extends boolean
            ? number
            : Prisma.GetScalarType<T[P], BillingWebhookEventGroupByOutputType[P]>
          : Prisma.GetScalarType<T[P], BillingWebhookEventGroupByOutputType[P]>
      }
    >
  >



export type BillingWebhookEventWhereInput = {
  AND?: Prisma.BillingWebhookEventWhereInput | Prisma.BillingWebhookEventWhereInput[]
  OR?: Prisma.BillingWebhookEventWhereInput[]
  NOT?: Prisma.BillingWebhookEventWhereInput | Prisma.BillingWebhookEventWhereInput[]
  id?: Prisma.StringFilter<"BillingWebhookEvent"> | string
  provider?: Prisma.EnumBillingProviderFilter<"BillingWebhookEvent"> | $Enums.BillingProvider
  externalId?: Prisma.StringFilter<"BillingWebhookEvent"> | string
  eventType?: Prisma.StringFilter<"BillingWebhookEvent"> | string
  payload?: Prisma.JsonFilter<"BillingWebhookEvent">
  processedAt?: Prisma.DateTimeFilter<"BillingWebhookEvent"> | Date | string
}

export type BillingWebhookEventOrderByWithRelationInput = {
  id?: Prisma.SortOrder
  provider?: Prisma.SortOrder
  externalId?: Prisma.SortOrder
  eventType?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  processedAt?: Prisma.SortOrder
}

export type BillingWebhookEventWhereUniqueInput = Prisma.AtLeast<{
  id?: string
  provider_externalId?: Prisma.BillingWebhookEventProviderExternalIdCompoundUniqueInput
  AND?: Prisma.BillingWebhookEventWhereInput | Prisma.BillingWebhookEventWhereInput[]
  OR?: Prisma.BillingWebhookEventWhereInput[]
  NOT?: Prisma.BillingWebhookEventWhereInput | Prisma.BillingWebhookEventWhereInput[]
  provider?: Prisma.EnumBillingProviderFilter<"BillingWebhookEvent"> | $Enums.BillingProvider
  externalId?: Prisma.StringFilter<"BillingWebhookEvent"> | string
  eventType?: Prisma.StringFilter<"BillingWebhookEvent"> | string
  payload?: Prisma.JsonFilter<"BillingWebhookEvent">
  processedAt?: Prisma.DateTimeFilter<"BillingWebhookEvent"> | Date | string
}, "id" | "provider_externalId">

export type BillingWebhookEventOrderByWithAggregationInput = {
  id?: Prisma.SortOrder
  provider?: Prisma.SortOrder
  externalId?: Prisma.SortOrder
  eventType?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  processedAt?: Prisma.SortOrder
  _count?: Prisma.BillingWebhookEventCountOrderByAggregateInput
  _max?: Prisma.BillingWebhookEventMaxOrderByAggregateInput
  _min?: Prisma.BillingWebhookEventMinOrderByAggregateInput
}

export type BillingWebhookEventScalarWhereWithAggregatesInput = {
  AND?: Prisma.BillingWebhookEventScalarWhereWithAggregatesInput | Prisma.BillingWebhookEventScalarWhereWithAggregatesInput[]
  OR?: Prisma.BillingWebhookEventScalarWhereWithAggregatesInput[]
  NOT?: Prisma.BillingWebhookEventScalarWhereWithAggregatesInput | Prisma.BillingWebhookEventScalarWhereWithAggregatesInput[]
  id?: Prisma.StringWithAggregatesFilter<"BillingWebhookEvent"> | string
  provider?: Prisma.EnumBillingProviderWithAggregatesFilter<"BillingWebhookEvent"> | $Enums.BillingProvider
  externalId?: Prisma.StringWithAggregatesFilter<"BillingWebhookEvent"> | string
  eventType?: Prisma.StringWithAggregatesFilter<"BillingWebhookEvent"> | string
  payload?: Prisma.JsonWithAggregatesFilter<"BillingWebhookEvent">
  processedAt?: Prisma.DateTimeWithAggregatesFilter<"BillingWebhookEvent"> | Date | string
}

export type BillingWebhookEventCreateInput = {
  id?: string
  provider: $Enums.BillingProvider
  externalId: string
  eventType: string
  payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Date | string
}

export type BillingWebhookEventUncheckedCreateInput = {
  id?: string
  provider: $Enums.BillingProvider
  externalId: string
  eventType: string
  payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Date | string
}

export type BillingWebhookEventUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  provider?: Prisma.EnumBillingProviderFieldUpdateOperationsInput | $Enums.BillingProvider
  externalId?: Prisma.StringFieldUpdateOperationsInput | string
  eventType?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BillingWebhookEventUncheckedUpdateInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  provider?: Prisma.EnumBillingProviderFieldUpdateOperationsInput | $Enums.BillingProvider
  externalId?: Prisma.StringFieldUpdateOperationsInput | string
  eventType?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BillingWebhookEventCreateManyInput = {
  id?: string
  provider: $Enums.BillingProvider
  externalId: string
  eventType: string
  payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Date | string
}

export type BillingWebhookEventUpdateManyMutationInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  provider?: Prisma.EnumBillingProviderFieldUpdateOperationsInput | $Enums.BillingProvider
  externalId?: Prisma.StringFieldUpdateOperationsInput | string
  eventType?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BillingWebhookEventUncheckedUpdateManyInput = {
  id?: Prisma.StringFieldUpdateOperationsInput | string
  provider?: Prisma.EnumBillingProviderFieldUpdateOperationsInput | $Enums.BillingProvider
  externalId?: Prisma.StringFieldUpdateOperationsInput | string
  eventType?: Prisma.StringFieldUpdateOperationsInput | string
  payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
  processedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}

export type BillingWebhookEventProviderExternalIdCompoundUniqueInput = {
  provider: $Enums.BillingProvider
  externalId: string
}

export type BillingWebhookEventCountOrderByAggregateInput = {
  id?: Prisma.SortOrder
  provider?: Prisma.SortOrder
  externalId?: Prisma.SortOrder
  eventType?: Prisma.SortOrder
  payload?: Prisma.SortOrder
  processedAt?: Prisma.SortOrder
}

export type BillingWebhookEventMaxOrderByAggregateInput = {
  id?: Prisma.SortOrder
  provider?: Prisma.SortOrder
  externalId?: Prisma.SortOrder
  eventType?: Prisma.SortOrder
  processedAt?: Prisma.SortOrder
}

export type BillingWebhookEventMinOrderByAggregateInput = {
  id?: Prisma.SortOrder
  provider?: Prisma.SortOrder
  externalId?: Prisma.SortOrder
  eventType?: Prisma.SortOrder
  processedAt?: Prisma.SortOrder
}



export type BillingWebhookEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  provider?: boolean
  externalId?: boolean
  eventType?: boolean
  payload?: boolean
  processedAt?: boolean
}, ExtArgs["result"]["billingWebhookEvent"]>

export type BillingWebhookEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  provider?: boolean
  externalId?: boolean
  eventType?: boolean
  payload?: boolean
  processedAt?: boolean
}, ExtArgs["result"]["billingWebhookEvent"]>

export type BillingWebhookEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
  id?: boolean
  provider?: boolean
  externalId?: boolean
  eventType?: boolean
  payload?: boolean
  processedAt?: boolean
}, ExtArgs["result"]["billingWebhookEvent"]>

export type BillingWebhookEventSelectScalar = {
  id?: boolean
  provider?: boolean
  externalId?: boolean
  eventType?: boolean
  payload?: boolean
  processedAt?: boolean
}

export type BillingWebhookEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "provider" | "externalId" | "eventType" | "payload" | "processedAt", ExtArgs["result"]["billingWebhookEvent"]>

export type $BillingWebhookEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  name: "BillingWebhookEvent"
  objects: {}
  scalars: runtime.Types.Extensions.GetPayloadResult<{
    id: string
    provider: $Enums.BillingProvider
    externalId: string
    eventType: string
    payload: runtime.JsonValue
    processedAt: Date
  }, ExtArgs["result"]["billingWebhookEvent"]>
  composites: {}
}

export type BillingWebhookEventGetPayload<S extends boolean | null | undefined | BillingWebhookEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload, S>

export type BillingWebhookEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
  Omit<BillingWebhookEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: BillingWebhookEventCountAggregateInputType | true
  }

export interface BillingWebhookEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['BillingWebhookEvent'], meta: { name: 'BillingWebhookEvent' } }
  /**
   * Find zero or one BillingWebhookEvent that matches the filter.
   * @param {BillingWebhookEventFindUniqueArgs} args - Arguments to find a BillingWebhookEvent
   * @example
   * // Get one BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.findUnique({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUnique<T extends BillingWebhookEventFindUniqueArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find one BillingWebhookEvent that matches the filter or throw an error with `error.code='P2025'`
   * if no matches were found.
   * @param {BillingWebhookEventFindUniqueOrThrowArgs} args - Arguments to find a BillingWebhookEvent
   * @example
   * // Get one BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.findUniqueOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findUniqueOrThrow<T extends BillingWebhookEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first BillingWebhookEvent 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 {BillingWebhookEventFindFirstArgs} args - Arguments to find a BillingWebhookEvent
   * @example
   * // Get one BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.findFirst({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirst<T extends BillingWebhookEventFindFirstArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>

  /**
   * Find the first BillingWebhookEvent 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 {BillingWebhookEventFindFirstOrThrowArgs} args - Arguments to find a BillingWebhookEvent
   * @example
   * // Get one BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.findFirstOrThrow({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   */
  findFirstOrThrow<T extends BillingWebhookEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Find zero or more BillingWebhookEvents 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 {BillingWebhookEventFindManyArgs} args - Arguments to filter and select certain fields only.
   * @example
   * // Get all BillingWebhookEvents
   * const billingWebhookEvents = await prisma.billingWebhookEvent.findMany()
   * 
   * // Get first 10 BillingWebhookEvents
   * const billingWebhookEvents = await prisma.billingWebhookEvent.findMany({ take: 10 })
   * 
   * // Only select the `id`
   * const billingWebhookEventWithIdOnly = await prisma.billingWebhookEvent.findMany({ select: { id: true } })
   * 
   */
  findMany<T extends BillingWebhookEventFindManyArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>

  /**
   * Create a BillingWebhookEvent.
   * @param {BillingWebhookEventCreateArgs} args - Arguments to create a BillingWebhookEvent.
   * @example
   * // Create one BillingWebhookEvent
   * const BillingWebhookEvent = await prisma.billingWebhookEvent.create({
   *   data: {
   *     // ... data to create a BillingWebhookEvent
   *   }
   * })
   * 
   */
  create<T extends BillingWebhookEventCreateArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventCreateArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Create many BillingWebhookEvents.
   * @param {BillingWebhookEventCreateManyArgs} args - Arguments to create many BillingWebhookEvents.
   * @example
   * // Create many BillingWebhookEvents
   * const billingWebhookEvent = await prisma.billingWebhookEvent.createMany({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   *     
   */
  createMany<T extends BillingWebhookEventCreateManyArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Create many BillingWebhookEvents and returns the data saved in the database.
   * @param {BillingWebhookEventCreateManyAndReturnArgs} args - Arguments to create many BillingWebhookEvents.
   * @example
   * // Create many BillingWebhookEvents
   * const billingWebhookEvent = await prisma.billingWebhookEvent.createManyAndReturn({
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Create many BillingWebhookEvents and only return the `id`
   * const billingWebhookEventWithIdOnly = await prisma.billingWebhookEvent.createManyAndReturn({
   *   select: { id: true },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  createManyAndReturn<T extends BillingWebhookEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>

  /**
   * Delete a BillingWebhookEvent.
   * @param {BillingWebhookEventDeleteArgs} args - Arguments to delete one BillingWebhookEvent.
   * @example
   * // Delete one BillingWebhookEvent
   * const BillingWebhookEvent = await prisma.billingWebhookEvent.delete({
   *   where: {
   *     // ... filter to delete one BillingWebhookEvent
   *   }
   * })
   * 
   */
  delete<T extends BillingWebhookEventDeleteArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventDeleteArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Update one BillingWebhookEvent.
   * @param {BillingWebhookEventUpdateArgs} args - Arguments to update one BillingWebhookEvent.
   * @example
   * // Update one BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.update({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  update<T extends BillingWebhookEventUpdateArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventUpdateArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>

  /**
   * Delete zero or more BillingWebhookEvents.
   * @param {BillingWebhookEventDeleteManyArgs} args - Arguments to filter BillingWebhookEvents to delete.
   * @example
   * // Delete a few BillingWebhookEvents
   * const { count } = await prisma.billingWebhookEvent.deleteMany({
   *   where: {
   *     // ... provide filter here
   *   }
   * })
   * 
   */
  deleteMany<T extends BillingWebhookEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, BillingWebhookEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more BillingWebhookEvents.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {BillingWebhookEventUpdateManyArgs} args - Arguments to update one or more rows.
   * @example
   * // Update many BillingWebhookEvents
   * const billingWebhookEvent = await prisma.billingWebhookEvent.updateMany({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: {
   *     // ... provide data here
   *   }
   * })
   * 
   */
  updateMany<T extends BillingWebhookEventUpdateManyArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>

  /**
   * Update zero or more BillingWebhookEvents and returns the data updated in the database.
   * @param {BillingWebhookEventUpdateManyAndReturnArgs} args - Arguments to update many BillingWebhookEvents.
   * @example
   * // Update many BillingWebhookEvents
   * const billingWebhookEvent = await prisma.billingWebhookEvent.updateManyAndReturn({
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * 
   * // Update zero or more BillingWebhookEvents and only return the `id`
   * const billingWebhookEventWithIdOnly = await prisma.billingWebhookEvent.updateManyAndReturn({
   *   select: { id: true },
   *   where: {
   *     // ... provide filter here
   *   },
   *   data: [
   *     // ... provide data here
   *   ]
   * })
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * 
   */
  updateManyAndReturn<T extends BillingWebhookEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>

  /**
   * Create or update one BillingWebhookEvent.
   * @param {BillingWebhookEventUpsertArgs} args - Arguments to update or create a BillingWebhookEvent.
   * @example
   * // Update or create a BillingWebhookEvent
   * const billingWebhookEvent = await prisma.billingWebhookEvent.upsert({
   *   create: {
   *     // ... data to create a BillingWebhookEvent
   *   },
   *   update: {
   *     // ... in case it already exists, update
   *   },
   *   where: {
   *     // ... the filter for the BillingWebhookEvent we want to update
   *   }
   * })
   */
  upsert<T extends BillingWebhookEventUpsertArgs>(args: Prisma.SelectSubset<T, BillingWebhookEventUpsertArgs<ExtArgs>>): Prisma.Prisma__BillingWebhookEventClient<runtime.Types.Result.GetResult<Prisma.$BillingWebhookEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>


  /**
   * Count the number of BillingWebhookEvents.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {BillingWebhookEventCountArgs} args - Arguments to filter BillingWebhookEvents to count.
   * @example
   * // Count the number of BillingWebhookEvents
   * const count = await prisma.billingWebhookEvent.count({
   *   where: {
   *     // ... the filter for the BillingWebhookEvents we want to count
   *   }
   * })
  **/
  count<T extends BillingWebhookEventCountArgs>(
    args?: Prisma.Subset<T, BillingWebhookEventCountArgs>,
  ): Prisma.PrismaPromise<
    T extends runtime.Types.Utils.Record<'select', any>
      ? T['select'] extends true
        ? number
        : Prisma.GetScalarType<T['select'], BillingWebhookEventCountAggregateOutputType>
      : number
  >

  /**
   * Allows you to perform aggregations operations on a BillingWebhookEvent.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {BillingWebhookEventAggregateArgs} 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 BillingWebhookEventAggregateArgs>(args: Prisma.Subset<T, BillingWebhookEventAggregateArgs>): Prisma.PrismaPromise<GetBillingWebhookEventAggregateType<T>>

  /**
   * Group by BillingWebhookEvent.
   * Note, that providing `undefined` is treated as the value not being there.
   * Read more here: https://pris.ly/d/null-undefined
   * @param {BillingWebhookEventGroupByArgs} 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 BillingWebhookEventGroupByArgs,
    HasSelectOrTake extends Prisma.Or<
      Prisma.Extends<'skip', Prisma.Keys<T>>,
      Prisma.Extends<'take', Prisma.Keys<T>>
    >,
    OrderByArg extends Prisma.True extends HasSelectOrTake
      ? { orderBy: BillingWebhookEventGroupByArgs['orderBy'] }
      : { orderBy?: BillingWebhookEventGroupByArgs['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, BillingWebhookEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBillingWebhookEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
 * Fields of the BillingWebhookEvent model
 */
readonly fields: BillingWebhookEventFieldRefs;
}

/**
 * The delegate class that acts as a "Promise-like" for BillingWebhookEvent.
 * 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__BillingWebhookEventClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  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<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 BillingWebhookEvent model
 */
export interface BillingWebhookEventFieldRefs {
  readonly id: Prisma.FieldRef<"BillingWebhookEvent", 'String'>
  readonly provider: Prisma.FieldRef<"BillingWebhookEvent", 'BillingProvider'>
  readonly externalId: Prisma.FieldRef<"BillingWebhookEvent", 'String'>
  readonly eventType: Prisma.FieldRef<"BillingWebhookEvent", 'String'>
  readonly payload: Prisma.FieldRef<"BillingWebhookEvent", 'Json'>
  readonly processedAt: Prisma.FieldRef<"BillingWebhookEvent", 'DateTime'>
}
    

// Custom InputTypes
/**
 * BillingWebhookEvent findUnique
 */
export type BillingWebhookEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter, which BillingWebhookEvent to fetch.
   */
  where: Prisma.BillingWebhookEventWhereUniqueInput
}

/**
 * BillingWebhookEvent findUniqueOrThrow
 */
export type BillingWebhookEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter, which BillingWebhookEvent to fetch.
   */
  where: Prisma.BillingWebhookEventWhereUniqueInput
}

/**
 * BillingWebhookEvent findFirst
 */
export type BillingWebhookEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter, which BillingWebhookEvent to fetch.
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of BillingWebhookEvents to fetch.
   */
  orderBy?: Prisma.BillingWebhookEventOrderByWithRelationInput | Prisma.BillingWebhookEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for BillingWebhookEvents.
   */
  cursor?: Prisma.BillingWebhookEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` BillingWebhookEvents 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` BillingWebhookEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of BillingWebhookEvents.
   */
  distinct?: Prisma.BillingWebhookEventScalarFieldEnum | Prisma.BillingWebhookEventScalarFieldEnum[]
}

/**
 * BillingWebhookEvent findFirstOrThrow
 */
export type BillingWebhookEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter, which BillingWebhookEvent to fetch.
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of BillingWebhookEvents to fetch.
   */
  orderBy?: Prisma.BillingWebhookEventOrderByWithRelationInput | Prisma.BillingWebhookEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for searching for BillingWebhookEvents.
   */
  cursor?: Prisma.BillingWebhookEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` BillingWebhookEvents 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` BillingWebhookEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of BillingWebhookEvents.
   */
  distinct?: Prisma.BillingWebhookEventScalarFieldEnum | Prisma.BillingWebhookEventScalarFieldEnum[]
}

/**
 * BillingWebhookEvent findMany
 */
export type BillingWebhookEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter, which BillingWebhookEvents to fetch.
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
   * 
   * Determine the order of BillingWebhookEvents to fetch.
   */
  orderBy?: Prisma.BillingWebhookEventOrderByWithRelationInput | Prisma.BillingWebhookEventOrderByWithRelationInput[]
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
   * 
   * Sets the position for listing BillingWebhookEvents.
   */
  cursor?: Prisma.BillingWebhookEventWhereUniqueInput
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
   * 
   * Take `±n` BillingWebhookEvents 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` BillingWebhookEvents.
   */
  skip?: number
  /**
   * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
   * 
   * Filter by unique combinations of BillingWebhookEvents.
   */
  distinct?: Prisma.BillingWebhookEventScalarFieldEnum | Prisma.BillingWebhookEventScalarFieldEnum[]
}

/**
 * BillingWebhookEvent create
 */
export type BillingWebhookEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * The data needed to create a BillingWebhookEvent.
   */
  data: Prisma.XOR<Prisma.BillingWebhookEventCreateInput, Prisma.BillingWebhookEventUncheckedCreateInput>
}

/**
 * BillingWebhookEvent createMany
 */
export type BillingWebhookEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to create many BillingWebhookEvents.
   */
  data: Prisma.BillingWebhookEventCreateManyInput | Prisma.BillingWebhookEventCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * BillingWebhookEvent createManyAndReturn
 */
export type BillingWebhookEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelectCreateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * The data used to create many BillingWebhookEvents.
   */
  data: Prisma.BillingWebhookEventCreateManyInput | Prisma.BillingWebhookEventCreateManyInput[]
  skipDuplicates?: boolean
}

/**
 * BillingWebhookEvent update
 */
export type BillingWebhookEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * The data needed to update a BillingWebhookEvent.
   */
  data: Prisma.XOR<Prisma.BillingWebhookEventUpdateInput, Prisma.BillingWebhookEventUncheckedUpdateInput>
  /**
   * Choose, which BillingWebhookEvent to update.
   */
  where: Prisma.BillingWebhookEventWhereUniqueInput
}

/**
 * BillingWebhookEvent updateMany
 */
export type BillingWebhookEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * The data used to update BillingWebhookEvents.
   */
  data: Prisma.XOR<Prisma.BillingWebhookEventUpdateManyMutationInput, Prisma.BillingWebhookEventUncheckedUpdateManyInput>
  /**
   * Filter which BillingWebhookEvents to update
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * Limit how many BillingWebhookEvents to update.
   */
  limit?: number
}

/**
 * BillingWebhookEvent updateManyAndReturn
 */
export type BillingWebhookEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelectUpdateManyAndReturn<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * The data used to update BillingWebhookEvents.
   */
  data: Prisma.XOR<Prisma.BillingWebhookEventUpdateManyMutationInput, Prisma.BillingWebhookEventUncheckedUpdateManyInput>
  /**
   * Filter which BillingWebhookEvents to update
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * Limit how many BillingWebhookEvents to update.
   */
  limit?: number
}

/**
 * BillingWebhookEvent upsert
 */
export type BillingWebhookEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * The filter to search for the BillingWebhookEvent to update in case it exists.
   */
  where: Prisma.BillingWebhookEventWhereUniqueInput
  /**
   * In case the BillingWebhookEvent found by the `where` argument doesn't exist, create a new BillingWebhookEvent with this data.
   */
  create: Prisma.XOR<Prisma.BillingWebhookEventCreateInput, Prisma.BillingWebhookEventUncheckedCreateInput>
  /**
   * In case the BillingWebhookEvent was found with the provided `where` argument, update it with this data.
   */
  update: Prisma.XOR<Prisma.BillingWebhookEventUpdateInput, Prisma.BillingWebhookEventUncheckedUpdateInput>
}

/**
 * BillingWebhookEvent delete
 */
export type BillingWebhookEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
  /**
   * Filter which BillingWebhookEvent to delete.
   */
  where: Prisma.BillingWebhookEventWhereUniqueInput
}

/**
 * BillingWebhookEvent deleteMany
 */
export type BillingWebhookEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Filter which BillingWebhookEvents to delete
   */
  where?: Prisma.BillingWebhookEventWhereInput
  /**
   * Limit how many BillingWebhookEvents to delete.
   */
  limit?: number
}

/**
 * BillingWebhookEvent without action
 */
export type BillingWebhookEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
  /**
   * Select specific fields to fetch from the BillingWebhookEvent
   */
  select?: Prisma.BillingWebhookEventSelect<ExtArgs> | null
  /**
   * Omit specific fields from the BillingWebhookEvent
   */
  omit?: Prisma.BillingWebhookEventOmit<ExtArgs> | null
}
