import { Ops } from './const.js'; import fetch from 'node-fetch'; import WebSocket from 'ws'; export declare const HOST = "http://localhost:8080/"; export declare const HEADERS: {}; export declare const apiSubscription: (options: chainOptions) => (query: string) => { ws: WebSocket; on: (e: (args: any) => void) => void; off: (e: (args: any) => void) => void; error: (e: (args: any) => void) => void; open: (e: () => void) => void; }; export declare const apiFetch: (options: [url: URL | import("node-fetch").RequestInfo, init?: import("node-fetch").RequestInit | undefined]) => (query: string, variables?: Record) => Promise | undefined>; export declare const InternalsBuildQuery: ({ ops, props, returns, options, scalars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; options?: OperationOptions | undefined; scalars?: ScalarDefinition | undefined; }) => (k: string, o: InputValueType | VType, p?: string, root?: boolean, vars?: Array<{ name: string; graphQLType: string; }>) => string; export declare const Thunder: (fn: FetchFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const Chain: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const SubscriptionThunder: (fn: SubscriptionFunction) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Subscription: (...options: chainOptions) => >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: (OperationOptions & { variables?: ExtractVariables | undefined; }) | undefined) => SubscriptionToGraphQL; export declare const Zeus: >(operation: O, o: Z | ValueTypes[R], ops?: { operationOptions?: OperationOptions; scalars?: ScalarDefinition; }) => string; export declare const ZeusSelect: () => SelectionFunction; export declare const Selector: (key: T) => SelectionFunction; export declare const TypeFromSelector: (key: T) => SelectionFunction; export declare const Gql: >(operation: O, graphqlOptions?: ThunderGraphQLOptions | undefined) => (o: Z | ValueTypes[R], ops?: OperationOptions & { variables?: Record; }) => Promise>; export declare const ZeusScalars: SelectionFunction; export declare const decodeScalarsInResponse: ({ response, scalars, returns, ops, initialZeusQuery, initialOp, }: { ops: O; response: any; returns: ReturnTypesType; scalars?: Record | undefined; initialOp: keyof O; initialZeusQuery: InputValueType | VType; }) => any; export declare const traverseResponse: ({ resolvers, scalarPaths, }: { scalarPaths: { [x: string]: `scalar.${string}`; }; resolvers: { [x: string]: ScalarResolver | undefined; }; }) => (k: string, o: InputValueType | VType, p?: string[]) => unknown; export type AllTypesPropsType = { [x: string]: undefined | `scalar.${string}` | 'enum' | { [x: string]: undefined | string | { [x: string]: string | undefined; }; }; }; export type ReturnTypesType = { [x: string]: { [x: string]: string | undefined; } | `scalar.${string}` | undefined; }; export type InputValueType = { [x: string]: undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; }; export type VType = undefined | boolean | string | number | [any, undefined | boolean | InputValueType] | InputValueType; export type PlainType = boolean | number | string | null | undefined; export type ZeusArgsType = PlainType | { [x: string]: ZeusArgsType; } | Array; export type Operations = Record; export type VariableDefinition = { [x: string]: unknown; }; export declare const SEPARATOR = "|"; export type fetchOptions = Parameters; type websocketOptions = typeof WebSocket extends new (...args: infer R) => WebSocket ? R : never; export type chainOptions = [fetchOptions[0], fetchOptions[1] & { websocket?: websocketOptions; }] | [fetchOptions[0]]; export type FetchFunction = (query: string, variables?: Record) => Promise; export type SubscriptionFunction = (query: string) => any; type NotUndefined = T extends undefined ? never : T; export type ResolverType = NotUndefined; export type OperationOptions = { operationName?: string; }; export type ScalarCoder = Record string>; export interface GraphQLResponse { data?: Record; errors?: Array<{ message: string; }>; } export declare class GraphQLError extends Error { response: GraphQLResponse; constructor(response: GraphQLResponse); toString(): string; } export type GenericOperation = O extends keyof typeof Ops ? typeof Ops[O] : never; export type ThunderGraphQLOptions = { scalars?: SCLR | ScalarCoders; }; export declare const PrepareScalarPaths: ({ ops, returns }: { returns: ReturnTypesType; ops: Operations; }) => (k: string, originalKey: string, o: InputValueType | VType, p?: string[], pOriginals?: string[], root?: boolean) => { [x: string]: `scalar.${string}`; } | undefined; export declare const purifyGraphQLKey: (k: string) => string; export declare const ResolveFromPath: (props: AllTypesPropsType, returns: ReturnTypesType, ops: Operations) => (path: string) => 'enum' | 'not' | `scalar.${string}`; export declare const InternalArgsBuilt: ({ props, ops, returns, scalars, vars, }: { props: AllTypesPropsType; returns: ReturnTypesType; ops: Operations; scalars?: ScalarDefinition | undefined; vars: Array<{ name: string; graphQLType: string; }>; }) => (a: ZeusArgsType, p?: string, root?: boolean) => string; export declare const resolverFor: (type: T, field: Z, fn: (args: Required[Z] extends [infer Input, any] ? Input : any, source: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never) => (args?: any, source?: any) => Z extends keyof ModelTypes[T] ? X | ModelTypes[T][Z] | Promise : never; export type UnwrapPromise = T extends Promise ? R : T; export type ZeusState Promise> = NonNullable>>; export type ZeusHook Record Promise>, N extends keyof ReturnType> = ZeusState[N]>; export type WithTypeNameValue = T & { __typename?: boolean; __directives?: string; }; export type AliasType = WithTypeNameValue & { __alias?: Record>; }; type DeepAnify = { [P in keyof T]?: any; }; type IsPayLoad = T extends [any, infer PayLoad] ? PayLoad : T; export type ScalarDefinition = Record; type IsScalar = S extends 'scalar' & { name: infer T; } ? T extends keyof SCLR ? SCLR[T]['decode'] extends (s: unknown) => unknown ? ReturnType : unknown : unknown : S; type IsArray = T extends Array ? InputType[] : InputType; type FlattenArray = T extends Array ? R : T; type BaseZeusResolver = boolean | 1 | string | Variable; type IsInterfaced, DST, SCLR extends ScalarDefinition> = FlattenArray extends ZEUS_INTERFACES | ZEUS_UNIONS ? { [P in keyof SRC]: SRC[P] extends '__union' & infer R ? P extends keyof DST ? IsArray : IsArray : never; }[keyof SRC] & { [P in keyof Omit, '__typename'>]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; } : { [P in keyof Pick]: IsPayLoad extends BaseZeusResolver ? IsScalar : IsArray; }; export type MapType = SRC extends DeepAnify ? IsInterfaced : never; export type InputType = IsPayLoad extends { __alias: infer R; } ? { [P in keyof R]: MapType[keyof MapType]; } & MapType, '__alias'>, SCLR> : MapType, SCLR>; export type SubscriptionToGraphQL = { ws: WebSocket; on: (fn: (args: InputType) => void) => void; off: (fn: (e: { data?: InputType; code?: number; reason?: string; message?: string; }) => void) => void; error: (fn: (e: { data?: InputType; errors?: string[]; }) => void) => void; open: () => void; }; export type FromSelector = InputType; export type ScalarResolver = { encode?: (s: unknown) => string; decode?: (s: unknown) => unknown; }; export type SelectionFunction = (t: T | V) => T; type BuiltInVariableTypes = { ['String']: string; ['Int']: number; ['Float']: number; ['ID']: unknown; ['Boolean']: boolean; }; type AllVariableTypes = keyof BuiltInVariableTypes | keyof ZEUS_VARIABLES; type VariableRequired = `${T}!` | T | `[${T}]` | `[${T}]!` | `[${T}!]` | `[${T}!]!`; type VR = VariableRequired>; export type GraphQLVariableType = VR; type ExtractVariableTypeString = T extends VR ? R1 extends VR ? R2 extends VR ? R3 extends VR ? R4 extends VR ? R5 : R4 : R3 : R2 : R1 : T; type DecomposeType = T extends `[${infer R}]` ? Array> | undefined : T extends `${infer R}!` ? NonNullable> : Type | undefined; type ExtractTypeFromGraphQLType = T extends keyof ZEUS_VARIABLES ? ZEUS_VARIABLES[T] : T extends keyof BuiltInVariableTypes ? BuiltInVariableTypes[T] : any; export type GetVariableType = DecomposeType>>; type UndefinedKeys = { [K in keyof T]-?: T[K] extends NonNullable ? never : K; }[keyof T]; type WithNullableKeys = Pick>; type WithNonNullableKeys = Omit>; type OptionalKeys = { [P in keyof T]?: T[P]; }; export type WithOptionalNullables = OptionalKeys> & WithNonNullableKeys; export type Variable = { ' __zeus_name': Name; ' __zeus_type': T; }; export type ExtractVariables = Query extends Variable ? { [key in VName]: GetVariableType; } : Query extends [infer Inputs, infer Outputs] ? ExtractVariables & ExtractVariables : Query extends string | number | boolean ? {} : UnionToIntersection<{ [K in keyof Query]: WithOptionalNullables>; }[keyof Query]>; type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export declare const START_VAR_NAME = "$ZEUS_VAR"; export declare const GRAPHQL_TYPE_SEPARATOR = "__$GRAPHQL__"; export declare const $: (name: Name, graphqlType: Type_1) => Variable; type ZEUS_INTERFACES = never; export type ScalarCoders = { Timestamp?: ScalarResolver; AnyObject?: ScalarResolver; }; type ZEUS_UNIONS = never; export type ValueTypes = { ["Query"]: AliasType<{ products?: [{ filter?: ValueTypes["ProductFilter"] | undefined | null | Variable; }, ValueTypes["ProductsPage"]]; subscriptions?: [{ filter?: ValueTypes["SubscriptionFilter"] | undefined | null | Variable; }, ValueTypes["Subscription"]]; paymentIntents?: [{ filter: ValueTypes["PaymentIntentFilter"] | Variable; }, ValueTypes["PaymentIntent"]]; invoices?: [{ filter: ValueTypes["InvoiceFilter"] | Variable; }, ValueTypes["Invoice"]]; customer?: [{ customerId: string | Variable; }, ValueTypes["Customer"]]; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ createPaymentSession?: [{ payload: ValueTypes["CreatePaymentSessionInput"] | Variable; }, boolean | `@${string}`]; initStripeCustomer?: [{ initStripeCustomerInput: ValueTypes["InitStripeCustomerInput"] | Variable; }, boolean | `@${string}`]; createCheckoutSession?: [{ payload: ValueTypes["CreateCheckoutSessionInput"] | Variable; }, boolean | `@${string}`]; createNewUserCheckoutSession?: [{ payload: ValueTypes["CreateNewUserCheckoutSessionInput"] | Variable; }, boolean | `@${string}`]; createCustomerPortal?: [{ payload: ValueTypes["CreateCustomerPortalInput"] | Variable; }, boolean | `@${string}`]; createConnectAccount?: [{ payload: ValueTypes["CreateConnectAccountInput"] | Variable; }, boolean | `@${string}`]; attachPaymentMethod?: [{ payload: ValueTypes["AttachPaymentMethodInput"] | Variable; }, boolean | `@${string}`]; setDefaultPaymentMethod?: [{ payload: ValueTypes["setDefaultPaymentMethodInput"] | Variable; }, boolean | `@${string}`]; createPayoutForConnectedAccount?: [{ payload: ValueTypes["createPayoutForConnectedAccountInput"] | Variable; }, boolean | `@${string}`]; /** entry point for Weebhooks. */ webhook?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CreatePaymentSessionInput"]: { amount: number | Variable; currency: string | Variable; successUrl: string | Variable; cancelUrl: string | Variable; }; ["createPayoutForConnectedAccountInput"]: { /** If accountId is not specified, the default connected account is used. */ accountId?: string | undefined | null | Variable; amount: number | Variable; currency: string | Variable; }; ["PaymentIntentStatus"]: PaymentIntentStatus; ["Invoice"]: AliasType<{ id?: boolean | `@${string}`; account_country?: boolean | `@${string}`; account_name?: boolean | `@${string}`; account_tax_id?: boolean | `@${string}`; amount_due?: boolean | `@${string}`; amount_paid?: boolean | `@${string}`; amount_remaining?: boolean | `@${string}`; amount_shipping?: boolean | `@${string}`; application_fee_amount?: boolean | `@${string}`; attempt_count?: boolean | `@${string}`; attempted?: boolean | `@${string}`; auto_advance?: boolean | `@${string}`; billing_reason?: boolean | `@${string}`; /** ID of the latest charge generated for this invoice */ charge?: boolean | `@${string}`; collection_method?: boolean | `@${string}`; created?: boolean | `@${string}`; /** ISO 4217 Currency codes */ currency?: boolean | `@${string}`; customer?: boolean | `@${string}`; customer_address?: ValueTypes["Address"]; customer_email?: boolean | `@${string}`; customer_name?: boolean | `@${string}`; description?: boolean | `@${string}`; hosted_invoice_url?: boolean | `@${string}`; period_end?: boolean | `@${string}`; period_start?: boolean | `@${string}`; status?: boolean | `@${string}`; subscription?: boolean | `@${string}`; total?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["InvoiceStatus"]: InvoiceStatus; ["InvoiceCollectionMethod"]: InvoiceCollectionMethod; ["PaymentIntent"]: AliasType<{ id?: boolean | `@${string}`; client_secret?: boolean | `@${string}`; /** A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). */ amount?: boolean | `@${string}`; amount_capturable?: boolean | `@${string}`; amount_received?: boolean | `@${string}`; application_fee_amount?: boolean | `@${string}`; capture_method?: boolean | `@${string}`; confirmation_method?: boolean | `@${string}`; created?: boolean | `@${string}`; /** Three-letter ISO currency code, in lowercase. Must be a supported currency. */ currency?: boolean | `@${string}`; /** ID of the Customer this PaymentIntent belongs to */ customer?: boolean | `@${string}`; /** An arbitrary string attached to the object. Often useful for displaying to users. */ description?: boolean | `@${string}`; /** ID of the invoice that created this PaymentIntent, if it exists. */ invoice?: boolean | `@${string}`; latest_charge?: boolean | `@${string}`; livemode?: boolean | `@${string}`; payment_method?: boolean | `@${string}`; setup_future_usage?: boolean | `@${string}`; status?: boolean | `@${string}`; /** A string that identifies the resulting payment as part of a group (for connected accounts). */ transfer_group?: boolean | `@${string}`; /** The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason. */ last_payment_error?: ValueTypes["PaymentIntentLastPaymentError"]; /** The account (if any) for which the funds of the PaymentIntent are intended. */ on_behalf_of?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentIntentLastPaymentError"]: AliasType<{ type?: boolean | `@${string}`; /** For card errors, the ID of the failed charge. */ charge?: boolean | `@${string}`; /** For some errors that could be handled programmatically, a short string indicating the error code reported (https://stripe.com/docs/error-codes). */ code?: boolean | `@${string}`; decline_code?: boolean | `@${string}`; doc_url?: boolean | `@${string}`; message?: boolean | `@${string}`; param?: boolean | `@${string}`; payment_method_type?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentIntentSetupFutureUsage"]: PaymentIntentSetupFutureUsage; ["InvoiceFilter"]: { customerId: string | Variable; status?: ValueTypes["InvoiceStatus"] | undefined | null | Variable; }; ["PaymentIntentFilter"]: { customerId: string | Variable; status?: ValueTypes["PaymentIntentStatus"] | undefined | null | Variable; }; ["setDefaultPaymentMethodInput"]: { attachedPaymentMethodId: string | Variable; customerId: string | Variable; }; ["AttachPaymentMethodInput"]: { paymentMethodId: string | Variable; customerId: string | Variable; }; ["CreateConnectAccountInput"]: { type: ValueTypes["ConnectAccountType"] | Variable; country: string | Variable; email: string | Variable; business_type: ValueTypes["ConnectAccountBusinessType"] | Variable; bankAccount: ValueTypes["BankAccountInput"] | Variable; }; ["ConnectAccountBusinessType"]: ConnectAccountBusinessType; ["ConnectAccountType"]: ConnectAccountType; ["BankAccountInput"]: { country: string | Variable; /** Required supported currency for the country https://stripe.com/docs/payouts */ currency: string | Variable; /** IBAN account number */ account_number: string | Variable; /** Required when attaching the bank account to a Customer */ account_holder_name: string | Variable; account_holder_type: ValueTypes["BankAccountHolderType"] | Variable; }; ["BankAccountHolderType"]: BankAccountHolderType; ["SubscriptionFilter"]: { id?: string | undefined | null | Variable; cancel_at_period_end?: boolean | undefined | null | Variable; current_period_end?: ValueTypes["TimestampFilter"] | undefined | null | Variable; current_period_start?: ValueTypes["TimestampFilter"] | undefined | null | Variable; customer?: string | undefined | null | Variable; description?: string | undefined | null | Variable; items?: Array | undefined | null | Variable; quantity?: number | undefined | null | Variable; status?: ValueTypes["SubStatus"] | undefined | null | Variable; }; ["Subscription"]: AliasType<{ id?: boolean | `@${string}`; cancel_at_period_end?: boolean | `@${string}`; current_period_end?: boolean | `@${string}`; current_period_start?: boolean | `@${string}`; customer?: boolean | `@${string}`; description?: boolean | `@${string}`; items?: ValueTypes["SubscriptionItems"]; quantity?: boolean | `@${string}`; status?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["SubStatus"]: SubStatus; ["SubscriptionItems"]: AliasType<{ data?: ValueTypes["Item"]; has_more?: boolean | `@${string}`; total_count?: boolean | `@${string}`; url?: boolean | `@${string}`; object?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Item"]: AliasType<{ id?: boolean | `@${string}`; created?: boolean | `@${string}`; metadata?: boolean | `@${string}`; price?: ValueTypes["Price"]; quantity?: boolean | `@${string}`; subscription?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["User"]: AliasType<{ stripeId?: boolean | `@${string}`; email?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["InitStripeCustomerInput"]: { email: string | Variable; name?: string | undefined | null | Variable; phone?: string | undefined | null | Variable; address?: ValueTypes["AddressInput"] | undefined | null | Variable; }; ["CreateNewUserCheckoutSessionInput"]: { /** Return url after successful transaction */ successUrl: string | Variable; cancelUrl: string | Variable; products: Array | Variable; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ValueTypes["ApplicationFeeInput"] | undefined | null | Variable; }; ["CreateCheckoutSessionInput"]: { username: string | Variable; /** Return url after successful transaction */ successUrl: string | Variable; cancelUrl: string | Variable; products: Array | Variable; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ValueTypes["ApplicationFeeInput"] | undefined | null | Variable; }; ["ApplicationFeeInput"]: { /** Value from 0-100 */ feePercentage: number | Variable; /** Connect Account (not stripe customer) id */ connectAccountId: string | Variable; }; ["ProductInput"]: { productId: string | Variable; quantity: number | Variable; }; ["CreateCustomerPortalInput"]: { username: string | Variable; returnUrl: string | Variable; }; ["AddressInput"]: { /** City, district, suburb, town, village, or ward. */ city: string | Variable; /** Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ country: string | Variable; /** Address line 1 (e.g., street, block, PO Box, or company name). */ line1: string | Variable; /** Address line 2 (e.g., apartment, suite, unit, or building). */ line2: string | Variable; /** ZIP or postal code. */ postal_code: string | Variable; /** State, county, province, prefecture, or region. */ state: string | Variable; }; ["Customer"]: AliasType<{ id?: boolean | `@${string}`; email?: boolean | `@${string}`; name?: boolean | `@${string}`; address?: ValueTypes["Address"]; phone?: boolean | `@${string}`; created?: boolean | `@${string}`; invoicePrefix?: boolean | `@${string}`; paymentMethods?: ValueTypes["PaymentMethod"]; __typename?: boolean | `@${string}`; }>; /** https://stripe.com/docs/api/payment_methods/object */ ["PaymentMethod"]: AliasType<{ id?: boolean | `@${string}`; billing_details?: ValueTypes["PaymentBillingDetails"]; customer?: boolean | `@${string}`; metadata?: boolean | `@${string}`; type?: boolean | `@${string}`; created?: boolean | `@${string}`; livemode?: boolean | `@${string}`; card?: ValueTypes["Card"]; __typename?: boolean | `@${string}`; }>; ["Card"]: AliasType<{ brand?: ValueTypes["Card"]; checks?: ValueTypes["CardChecks"]; country?: boolean | `@${string}`; exp_month?: boolean | `@${string}`; exp_year?: boolean | `@${string}`; fingerprint?: boolean | `@${string}`; funding?: boolean | `@${string}`; last4?: boolean | `@${string}`; networks?: ValueTypes["CardNetworks"]; three_d_secure_usage?: ValueTypes["CardThreeDSecureUsage"]; __typename?: boolean | `@${string}`; }>; ["CardThreeDSecureUsage"]: AliasType<{ supported?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CardNetworks"]: AliasType<{ preferred?: boolean | `@${string}`; available?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CardChecks"]: AliasType<{ address_line1_check?: boolean | `@${string}`; address_postal_code_check?: boolean | `@${string}`; cvc_check?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentMethodType"]: PaymentMethodType; ["PaymentBillingDetails"]: AliasType<{ address?: ValueTypes["Address"]; email?: boolean | `@${string}`; name?: boolean | `@${string}`; phone?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Address"]: AliasType<{ city?: boolean | `@${string}`; country?: boolean | `@${string}`; line1?: boolean | `@${string}`; line2?: boolean | `@${string}`; postal_code?: boolean | `@${string}`; state?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ProductFilter"]: { active?: boolean | undefined | null | Variable; created?: ValueTypes["TimestampFilter"] | undefined | null | Variable; limit?: number | undefined | null | Variable; shippable?: boolean | undefined | null | Variable; ids?: Array | undefined | null | Variable; starting_after?: string | undefined | null | Variable; ending_before?: string | undefined | null | Variable; url?: string | undefined | null | Variable; }; ["RecurringFilter"]: { interval?: ValueTypes["Interval"] | undefined | null | Variable; usageType?: ValueTypes["UsageType"] | undefined | null | Variable; }; ["PriceFilter"]: { active?: boolean | undefined | null | Variable; currency?: string | undefined | null | Variable; product?: string | undefined | null | Variable; type?: ValueTypes["Type"] | undefined | null | Variable; created?: ValueTypes["TimestampFilter"] | undefined | null | Variable; limit?: number | undefined | null | Variable; starting_after?: string | undefined | null | Variable; ending_before?: string | undefined | null | Variable; recurring?: ValueTypes["RecurringFilter"] | undefined | null | Variable; }; ["Dimensions"]: AliasType<{ height?: boolean | `@${string}`; length?: boolean | `@${string}`; weight?: boolean | `@${string}`; width?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Product"]: AliasType<{ id?: boolean | `@${string}`; active?: boolean | `@${string}`; created?: boolean | `@${string}`; default_price?: ValueTypes["Price"]; description?: boolean | `@${string}`; images?: boolean | `@${string}`; livemode?: boolean | `@${string}`; metadata?: boolean | `@${string}`; name?: boolean | `@${string}`; package_dimensions?: ValueTypes["Dimensions"]; shippable?: boolean | `@${string}`; statement_descriptor?: boolean | `@${string}`; tax_code?: boolean | `@${string}`; unitLabel?: boolean | `@${string}`; updated?: boolean | `@${string}`; url?: boolean | `@${string}`; prices?: ValueTypes["Price"]; __typename?: boolean | `@${string}`; }>; ["BillingScheme"]: BillingScheme; /** Offset measured in seconds since Unix epoch. */ ["Timestamp"]: unknown; ["TimestampFilter"]: { Gt?: ValueTypes["Timestamp"] | undefined | null | Variable; Gte?: ValueTypes["Timestamp"] | undefined | null | Variable; Lt?: ValueTypes["Timestamp"] | undefined | null | Variable; Lte?: ValueTypes["Timestamp"] | undefined | null | Variable; }; ["CustomUnitAmount"]: AliasType<{ maximum?: boolean | `@${string}`; minimum?: boolean | `@${string}`; preset?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Any value that can be represented as JSON object */ ["AnyObject"]: unknown; ["AggregateUsage"]: AggregateUsage; ["Interval"]: Interval; ["UsageType"]: UsageType; ["PriceRecurring"]: AliasType<{ aggregate_usage?: boolean | `@${string}`; interval?: boolean | `@${string}`; interval_count?: boolean | `@${string}`; usage_type?: boolean | `@${string}`; trial_period_days?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["TaxBehaviour"]: TaxBehaviour; ["TiersMode"]: TiersMode; ["Round"]: Round; ["TransformQuantity"]: AliasType<{ divideBy?: boolean | `@${string}`; round?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Type"]: Type; ["Price"]: AliasType<{ id?: boolean | `@${string}`; active?: boolean | `@${string}`; billing_scheme?: boolean | `@${string}`; created?: boolean | `@${string}`; currency?: boolean | `@${string}`; custom_unit_amount?: ValueTypes["CustomUnitAmount"]; livemode?: boolean | `@${string}`; lookup_key?: boolean | `@${string}`; metadata?: boolean | `@${string}`; nickname?: boolean | `@${string}`; product?: ValueTypes["Product"]; recurring?: ValueTypes["PriceRecurring"]; tax_behavior?: boolean | `@${string}`; tiers_mode?: boolean | `@${string}`; transform_quantity?: ValueTypes["TransformQuantity"]; type?: boolean | `@${string}`; unit_amount?: boolean | `@${string}`; unit_amount_decimal?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ProductsPage"]: AliasType<{ products?: ValueTypes["Product"]; startingAfter?: boolean | `@${string}`; endingBefore?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; }; export type ResolverInputTypes = { ["Query"]: AliasType<{ products?: [{ filter?: ResolverInputTypes["ProductFilter"] | undefined | null; }, ResolverInputTypes["ProductsPage"]]; subscriptions?: [{ filter?: ResolverInputTypes["SubscriptionFilter"] | undefined | null; }, ResolverInputTypes["Subscription"]]; paymentIntents?: [{ filter: ResolverInputTypes["PaymentIntentFilter"]; }, ResolverInputTypes["PaymentIntent"]]; invoices?: [{ filter: ResolverInputTypes["InvoiceFilter"]; }, ResolverInputTypes["Invoice"]]; customer?: [{ customerId: string; }, ResolverInputTypes["Customer"]]; __typename?: boolean | `@${string}`; }>; ["Mutation"]: AliasType<{ createPaymentSession?: [{ payload: ResolverInputTypes["CreatePaymentSessionInput"]; }, boolean | `@${string}`]; initStripeCustomer?: [{ initStripeCustomerInput: ResolverInputTypes["InitStripeCustomerInput"]; }, boolean | `@${string}`]; createCheckoutSession?: [{ payload: ResolverInputTypes["CreateCheckoutSessionInput"]; }, boolean | `@${string}`]; createNewUserCheckoutSession?: [{ payload: ResolverInputTypes["CreateNewUserCheckoutSessionInput"]; }, boolean | `@${string}`]; createCustomerPortal?: [{ payload: ResolverInputTypes["CreateCustomerPortalInput"]; }, boolean | `@${string}`]; createConnectAccount?: [{ payload: ResolverInputTypes["CreateConnectAccountInput"]; }, boolean | `@${string}`]; attachPaymentMethod?: [{ payload: ResolverInputTypes["AttachPaymentMethodInput"]; }, boolean | `@${string}`]; setDefaultPaymentMethod?: [{ payload: ResolverInputTypes["setDefaultPaymentMethodInput"]; }, boolean | `@${string}`]; createPayoutForConnectedAccount?: [{ payload: ResolverInputTypes["createPayoutForConnectedAccountInput"]; }, boolean | `@${string}`]; /** entry point for Weebhooks. */ webhook?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CreatePaymentSessionInput"]: { amount: number; currency: string; successUrl: string; cancelUrl: string; }; ["createPayoutForConnectedAccountInput"]: { /** If accountId is not specified, the default connected account is used. */ accountId?: string | undefined | null; amount: number; currency: string; }; ["PaymentIntentStatus"]: PaymentIntentStatus; ["Invoice"]: AliasType<{ id?: boolean | `@${string}`; account_country?: boolean | `@${string}`; account_name?: boolean | `@${string}`; account_tax_id?: boolean | `@${string}`; amount_due?: boolean | `@${string}`; amount_paid?: boolean | `@${string}`; amount_remaining?: boolean | `@${string}`; amount_shipping?: boolean | `@${string}`; application_fee_amount?: boolean | `@${string}`; attempt_count?: boolean | `@${string}`; attempted?: boolean | `@${string}`; auto_advance?: boolean | `@${string}`; billing_reason?: boolean | `@${string}`; /** ID of the latest charge generated for this invoice */ charge?: boolean | `@${string}`; collection_method?: boolean | `@${string}`; created?: boolean | `@${string}`; /** ISO 4217 Currency codes */ currency?: boolean | `@${string}`; customer?: boolean | `@${string}`; customer_address?: ResolverInputTypes["Address"]; customer_email?: boolean | `@${string}`; customer_name?: boolean | `@${string}`; description?: boolean | `@${string}`; hosted_invoice_url?: boolean | `@${string}`; period_end?: boolean | `@${string}`; period_start?: boolean | `@${string}`; status?: boolean | `@${string}`; subscription?: boolean | `@${string}`; total?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["InvoiceStatus"]: InvoiceStatus; ["InvoiceCollectionMethod"]: InvoiceCollectionMethod; ["PaymentIntent"]: AliasType<{ id?: boolean | `@${string}`; client_secret?: boolean | `@${string}`; /** A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). */ amount?: boolean | `@${string}`; amount_capturable?: boolean | `@${string}`; amount_received?: boolean | `@${string}`; application_fee_amount?: boolean | `@${string}`; capture_method?: boolean | `@${string}`; confirmation_method?: boolean | `@${string}`; created?: boolean | `@${string}`; /** Three-letter ISO currency code, in lowercase. Must be a supported currency. */ currency?: boolean | `@${string}`; /** ID of the Customer this PaymentIntent belongs to */ customer?: boolean | `@${string}`; /** An arbitrary string attached to the object. Often useful for displaying to users. */ description?: boolean | `@${string}`; /** ID of the invoice that created this PaymentIntent, if it exists. */ invoice?: boolean | `@${string}`; latest_charge?: boolean | `@${string}`; livemode?: boolean | `@${string}`; payment_method?: boolean | `@${string}`; setup_future_usage?: boolean | `@${string}`; status?: boolean | `@${string}`; /** A string that identifies the resulting payment as part of a group (for connected accounts). */ transfer_group?: boolean | `@${string}`; /** The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason. */ last_payment_error?: ResolverInputTypes["PaymentIntentLastPaymentError"]; /** The account (if any) for which the funds of the PaymentIntent are intended. */ on_behalf_of?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentIntentLastPaymentError"]: AliasType<{ type?: boolean | `@${string}`; /** For card errors, the ID of the failed charge. */ charge?: boolean | `@${string}`; /** For some errors that could be handled programmatically, a short string indicating the error code reported (https://stripe.com/docs/error-codes). */ code?: boolean | `@${string}`; decline_code?: boolean | `@${string}`; doc_url?: boolean | `@${string}`; message?: boolean | `@${string}`; param?: boolean | `@${string}`; payment_method_type?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentIntentSetupFutureUsage"]: PaymentIntentSetupFutureUsage; ["InvoiceFilter"]: { customerId: string; status?: ResolverInputTypes["InvoiceStatus"] | undefined | null; }; ["PaymentIntentFilter"]: { customerId: string; status?: ResolverInputTypes["PaymentIntentStatus"] | undefined | null; }; ["setDefaultPaymentMethodInput"]: { attachedPaymentMethodId: string; customerId: string; }; ["AttachPaymentMethodInput"]: { paymentMethodId: string; customerId: string; }; ["CreateConnectAccountInput"]: { type: ResolverInputTypes["ConnectAccountType"]; country: string; email: string; business_type: ResolverInputTypes["ConnectAccountBusinessType"]; bankAccount: ResolverInputTypes["BankAccountInput"]; }; ["ConnectAccountBusinessType"]: ConnectAccountBusinessType; ["ConnectAccountType"]: ConnectAccountType; ["BankAccountInput"]: { country: string; /** Required supported currency for the country https://stripe.com/docs/payouts */ currency: string; /** IBAN account number */ account_number: string; /** Required when attaching the bank account to a Customer */ account_holder_name: string; account_holder_type: ResolverInputTypes["BankAccountHolderType"]; }; ["BankAccountHolderType"]: BankAccountHolderType; ["SubscriptionFilter"]: { id?: string | undefined | null; cancel_at_period_end?: boolean | undefined | null; current_period_end?: ResolverInputTypes["TimestampFilter"] | undefined | null; current_period_start?: ResolverInputTypes["TimestampFilter"] | undefined | null; customer?: string | undefined | null; description?: string | undefined | null; items?: Array | undefined | null; quantity?: number | undefined | null; status?: ResolverInputTypes["SubStatus"] | undefined | null; }; ["Subscription"]: AliasType<{ id?: boolean | `@${string}`; cancel_at_period_end?: boolean | `@${string}`; current_period_end?: boolean | `@${string}`; current_period_start?: boolean | `@${string}`; customer?: boolean | `@${string}`; description?: boolean | `@${string}`; items?: ResolverInputTypes["SubscriptionItems"]; quantity?: boolean | `@${string}`; status?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["SubStatus"]: SubStatus; ["SubscriptionItems"]: AliasType<{ data?: ResolverInputTypes["Item"]; has_more?: boolean | `@${string}`; total_count?: boolean | `@${string}`; url?: boolean | `@${string}`; object?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Item"]: AliasType<{ id?: boolean | `@${string}`; created?: boolean | `@${string}`; metadata?: boolean | `@${string}`; price?: ResolverInputTypes["Price"]; quantity?: boolean | `@${string}`; subscription?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["User"]: AliasType<{ stripeId?: boolean | `@${string}`; email?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["InitStripeCustomerInput"]: { email: string; name?: string | undefined | null; phone?: string | undefined | null; address?: ResolverInputTypes["AddressInput"] | undefined | null; }; ["CreateNewUserCheckoutSessionInput"]: { /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ResolverInputTypes["ApplicationFeeInput"] | undefined | null; }; ["CreateCheckoutSessionInput"]: { username: string; /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ResolverInputTypes["ApplicationFeeInput"] | undefined | null; }; ["ApplicationFeeInput"]: { /** Value from 0-100 */ feePercentage: number; /** Connect Account (not stripe customer) id */ connectAccountId: string; }; ["ProductInput"]: { productId: string; quantity: number; }; ["CreateCustomerPortalInput"]: { username: string; returnUrl: string; }; ["AddressInput"]: { /** City, district, suburb, town, village, or ward. */ city: string; /** Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ country: string; /** Address line 1 (e.g., street, block, PO Box, or company name). */ line1: string; /** Address line 2 (e.g., apartment, suite, unit, or building). */ line2: string; /** ZIP or postal code. */ postal_code: string; /** State, county, province, prefecture, or region. */ state: string; }; ["Customer"]: AliasType<{ id?: boolean | `@${string}`; email?: boolean | `@${string}`; name?: boolean | `@${string}`; address?: ResolverInputTypes["Address"]; phone?: boolean | `@${string}`; created?: boolean | `@${string}`; invoicePrefix?: boolean | `@${string}`; paymentMethods?: ResolverInputTypes["PaymentMethod"]; __typename?: boolean | `@${string}`; }>; /** https://stripe.com/docs/api/payment_methods/object */ ["PaymentMethod"]: AliasType<{ id?: boolean | `@${string}`; billing_details?: ResolverInputTypes["PaymentBillingDetails"]; customer?: boolean | `@${string}`; metadata?: boolean | `@${string}`; type?: boolean | `@${string}`; created?: boolean | `@${string}`; livemode?: boolean | `@${string}`; card?: ResolverInputTypes["Card"]; __typename?: boolean | `@${string}`; }>; ["Card"]: AliasType<{ brand?: ResolverInputTypes["Card"]; checks?: ResolverInputTypes["CardChecks"]; country?: boolean | `@${string}`; exp_month?: boolean | `@${string}`; exp_year?: boolean | `@${string}`; fingerprint?: boolean | `@${string}`; funding?: boolean | `@${string}`; last4?: boolean | `@${string}`; networks?: ResolverInputTypes["CardNetworks"]; three_d_secure_usage?: ResolverInputTypes["CardThreeDSecureUsage"]; __typename?: boolean | `@${string}`; }>; ["CardThreeDSecureUsage"]: AliasType<{ supported?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CardNetworks"]: AliasType<{ preferred?: boolean | `@${string}`; available?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["CardChecks"]: AliasType<{ address_line1_check?: boolean | `@${string}`; address_postal_code_check?: boolean | `@${string}`; cvc_check?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["PaymentMethodType"]: PaymentMethodType; ["PaymentBillingDetails"]: AliasType<{ address?: ResolverInputTypes["Address"]; email?: boolean | `@${string}`; name?: boolean | `@${string}`; phone?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Address"]: AliasType<{ city?: boolean | `@${string}`; country?: boolean | `@${string}`; line1?: boolean | `@${string}`; line2?: boolean | `@${string}`; postal_code?: boolean | `@${string}`; state?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ProductFilter"]: { active?: boolean | undefined | null; created?: ResolverInputTypes["TimestampFilter"] | undefined | null; limit?: number | undefined | null; shippable?: boolean | undefined | null; ids?: Array | undefined | null; starting_after?: string | undefined | null; ending_before?: string | undefined | null; url?: string | undefined | null; }; ["RecurringFilter"]: { interval?: ResolverInputTypes["Interval"] | undefined | null; usageType?: ResolverInputTypes["UsageType"] | undefined | null; }; ["PriceFilter"]: { active?: boolean | undefined | null; currency?: string | undefined | null; product?: string | undefined | null; type?: ResolverInputTypes["Type"] | undefined | null; created?: ResolverInputTypes["TimestampFilter"] | undefined | null; limit?: number | undefined | null; starting_after?: string | undefined | null; ending_before?: string | undefined | null; recurring?: ResolverInputTypes["RecurringFilter"] | undefined | null; }; ["Dimensions"]: AliasType<{ height?: boolean | `@${string}`; length?: boolean | `@${string}`; weight?: boolean | `@${string}`; width?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Product"]: AliasType<{ id?: boolean | `@${string}`; active?: boolean | `@${string}`; created?: boolean | `@${string}`; default_price?: ResolverInputTypes["Price"]; description?: boolean | `@${string}`; images?: boolean | `@${string}`; livemode?: boolean | `@${string}`; metadata?: boolean | `@${string}`; name?: boolean | `@${string}`; package_dimensions?: ResolverInputTypes["Dimensions"]; shippable?: boolean | `@${string}`; statement_descriptor?: boolean | `@${string}`; tax_code?: boolean | `@${string}`; unitLabel?: boolean | `@${string}`; updated?: boolean | `@${string}`; url?: boolean | `@${string}`; prices?: ResolverInputTypes["Price"]; __typename?: boolean | `@${string}`; }>; ["BillingScheme"]: BillingScheme; /** Offset measured in seconds since Unix epoch. */ ["Timestamp"]: unknown; ["TimestampFilter"]: { Gt?: ResolverInputTypes["Timestamp"] | undefined | null; Gte?: ResolverInputTypes["Timestamp"] | undefined | null; Lt?: ResolverInputTypes["Timestamp"] | undefined | null; Lte?: ResolverInputTypes["Timestamp"] | undefined | null; }; ["CustomUnitAmount"]: AliasType<{ maximum?: boolean | `@${string}`; minimum?: boolean | `@${string}`; preset?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; /** Any value that can be represented as JSON object */ ["AnyObject"]: unknown; ["AggregateUsage"]: AggregateUsage; ["Interval"]: Interval; ["UsageType"]: UsageType; ["PriceRecurring"]: AliasType<{ aggregate_usage?: boolean | `@${string}`; interval?: boolean | `@${string}`; interval_count?: boolean | `@${string}`; usage_type?: boolean | `@${string}`; trial_period_days?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["TaxBehaviour"]: TaxBehaviour; ["TiersMode"]: TiersMode; ["Round"]: Round; ["TransformQuantity"]: AliasType<{ divideBy?: boolean | `@${string}`; round?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["Type"]: Type; ["Price"]: AliasType<{ id?: boolean | `@${string}`; active?: boolean | `@${string}`; billing_scheme?: boolean | `@${string}`; created?: boolean | `@${string}`; currency?: boolean | `@${string}`; custom_unit_amount?: ResolverInputTypes["CustomUnitAmount"]; livemode?: boolean | `@${string}`; lookup_key?: boolean | `@${string}`; metadata?: boolean | `@${string}`; nickname?: boolean | `@${string}`; product?: ResolverInputTypes["Product"]; recurring?: ResolverInputTypes["PriceRecurring"]; tax_behavior?: boolean | `@${string}`; tiers_mode?: boolean | `@${string}`; transform_quantity?: ResolverInputTypes["TransformQuantity"]; type?: boolean | `@${string}`; unit_amount?: boolean | `@${string}`; unit_amount_decimal?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["ProductsPage"]: AliasType<{ products?: ResolverInputTypes["Product"]; startingAfter?: boolean | `@${string}`; endingBefore?: boolean | `@${string}`; __typename?: boolean | `@${string}`; }>; ["schema"]: AliasType<{ mutation?: ResolverInputTypes["Mutation"]; query?: ResolverInputTypes["Query"]; __typename?: boolean | `@${string}`; }>; }; export type ModelTypes = { ["Query"]: { products?: ModelTypes["ProductsPage"] | undefined; subscriptions?: Array | undefined; paymentIntents?: Array | undefined; invoices?: Array | undefined; customer?: ModelTypes["Customer"] | undefined; }; ["Mutation"]: { /** create session for simply payment */ createPaymentSession: string; /** Creates stripe customer for further purchases, links with user "email" field in UserCollection */ initStripeCustomer: boolean; /** Creates checkout for existing user (returns checkout url) */ createCheckoutSession: string; /** Creates checkout without providing user data - it will be filled during payment */ createNewUserCheckoutSession: string; /** Creates stripe customer portal (returns portal url) */ createCustomerPortal: string; /** Create stripe connect external account for further transactions directly with banking account */ createConnectAccount: boolean; /** Gather payment method id using Stripe.js or a pre-built solution like Stripe Elements */ attachPaymentMethod: boolean; setDefaultPaymentMethod: boolean; /** Payment from stripe account to connected bank account */ createPayoutForConnectedAccount: boolean; /** entry point for Weebhooks. */ webhook?: string | undefined; }; ["CreatePaymentSessionInput"]: { amount: number; currency: string; successUrl: string; cancelUrl: string; }; ["createPayoutForConnectedAccountInput"]: { /** If accountId is not specified, the default connected account is used. */ accountId?: string | undefined; amount: number; currency: string; }; ["PaymentIntentStatus"]: PaymentIntentStatus; ["Invoice"]: { id: string; account_country: string; account_name: string; account_tax_id?: string | undefined; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application_fee_amount: number; attempt_count: number; attempted: boolean; auto_advance: boolean; billing_reason: string; /** ID of the latest charge generated for this invoice */ charge?: string | undefined; collection_method: ModelTypes["InvoiceCollectionMethod"]; created: ModelTypes["Timestamp"]; /** ISO 4217 Currency codes */ currency: string; customer: string; customer_address?: ModelTypes["Address"] | undefined; customer_email: string; customer_name: string; description?: string | undefined; hosted_invoice_url: string; period_end: ModelTypes["Timestamp"]; period_start: ModelTypes["Timestamp"]; status: ModelTypes["InvoiceStatus"]; subscription?: string | undefined; total: number; }; ["InvoiceStatus"]: InvoiceStatus; ["InvoiceCollectionMethod"]: InvoiceCollectionMethod; ["PaymentIntent"]: { id: string; client_secret: string; /** A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). */ amount: number; amount_capturable: number; amount_received: number; application_fee_amount: number; capture_method: string; confirmation_method: string; created: ModelTypes["Timestamp"]; /** Three-letter ISO currency code, in lowercase. Must be a supported currency. */ currency: string; /** ID of the Customer this PaymentIntent belongs to */ customer: string; /** An arbitrary string attached to the object. Often useful for displaying to users. */ description: string; /** ID of the invoice that created this PaymentIntent, if it exists. */ invoice?: string | undefined; latest_charge: string; livemode: boolean; payment_method: string; setup_future_usage: string; status: ModelTypes["PaymentIntentStatus"]; /** A string that identifies the resulting payment as part of a group (for connected accounts). */ transfer_group: string; /** The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason. */ last_payment_error?: ModelTypes["PaymentIntentLastPaymentError"] | undefined; /** The account (if any) for which the funds of the PaymentIntent are intended. */ on_behalf_of?: string | undefined; }; ["PaymentIntentLastPaymentError"]: { type: string; /** For card errors, the ID of the failed charge. */ charge?: string | undefined; /** For some errors that could be handled programmatically, a short string indicating the error code reported (https://stripe.com/docs/error-codes). */ code?: string | undefined; decline_code?: string | undefined; doc_url?: string | undefined; message: string; param?: string | undefined; payment_method_type?: string | undefined; }; ["PaymentIntentSetupFutureUsage"]: PaymentIntentSetupFutureUsage; ["InvoiceFilter"]: { customerId: string; status?: ModelTypes["InvoiceStatus"] | undefined; }; ["PaymentIntentFilter"]: { customerId: string; status?: ModelTypes["PaymentIntentStatus"] | undefined; }; ["setDefaultPaymentMethodInput"]: { attachedPaymentMethodId: string; customerId: string; }; ["AttachPaymentMethodInput"]: { paymentMethodId: string; customerId: string; }; ["CreateConnectAccountInput"]: { type: ModelTypes["ConnectAccountType"]; country: string; email: string; business_type: ModelTypes["ConnectAccountBusinessType"]; bankAccount: ModelTypes["BankAccountInput"]; }; ["ConnectAccountBusinessType"]: ConnectAccountBusinessType; ["ConnectAccountType"]: ConnectAccountType; ["BankAccountInput"]: { country: string; /** Required supported currency for the country https://stripe.com/docs/payouts */ currency: string; /** IBAN account number */ account_number: string; /** Required when attaching the bank account to a Customer */ account_holder_name: string; account_holder_type: ModelTypes["BankAccountHolderType"]; }; ["BankAccountHolderType"]: BankAccountHolderType; ["SubscriptionFilter"]: { id?: string | undefined; cancel_at_period_end?: boolean | undefined; current_period_end?: ModelTypes["TimestampFilter"] | undefined; current_period_start?: ModelTypes["TimestampFilter"] | undefined; customer?: string | undefined; description?: string | undefined; items?: Array | undefined; quantity?: number | undefined; status?: ModelTypes["SubStatus"] | undefined; }; ["Subscription"]: { id: string; cancel_at_period_end: boolean; current_period_end: ModelTypes["Timestamp"]; current_period_start: ModelTypes["Timestamp"]; customer: string; description?: string | undefined; items: ModelTypes["SubscriptionItems"]; quantity: number; status: ModelTypes["SubStatus"]; }; ["SubStatus"]: SubStatus; ["SubscriptionItems"]: { data: Array; has_more: boolean; total_count: number; url: string; object: string; }; ["Item"]: { id: string; created: ModelTypes["Timestamp"]; metadata?: ModelTypes["AnyObject"] | undefined; price: ModelTypes["Price"]; quantity: number; subscription: string; }; ["User"]: { stripeId?: string | undefined; email: string; }; ["InitStripeCustomerInput"]: { email: string; name?: string | undefined; phone?: string | undefined; address?: ModelTypes["AddressInput"] | undefined; }; ["CreateNewUserCheckoutSessionInput"]: { /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ModelTypes["ApplicationFeeInput"] | undefined; }; ["CreateCheckoutSessionInput"]: { username: string; /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: ModelTypes["ApplicationFeeInput"] | undefined; }; ["ApplicationFeeInput"]: { /** Value from 0-100 */ feePercentage: number; /** Connect Account (not stripe customer) id */ connectAccountId: string; }; ["ProductInput"]: { productId: string; quantity: number; }; ["CreateCustomerPortalInput"]: { username: string; returnUrl: string; }; ["AddressInput"]: { /** City, district, suburb, town, village, or ward. */ city: string; /** Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ country: string; /** Address line 1 (e.g., street, block, PO Box, or company name). */ line1: string; /** Address line 2 (e.g., apartment, suite, unit, or building). */ line2: string; /** ZIP or postal code. */ postal_code: string; /** State, county, province, prefecture, or region. */ state: string; }; ["Customer"]: { id: string; email: string; name?: string | undefined; address?: ModelTypes["Address"] | undefined; phone?: string | undefined; created: ModelTypes["Timestamp"]; invoicePrefix?: string | undefined; paymentMethods?: Array | undefined; }; /** https://stripe.com/docs/api/payment_methods/object */ ["PaymentMethod"]: { id: string; billing_details: ModelTypes["PaymentBillingDetails"]; customer: string; metadata: ModelTypes["AnyObject"]; type: ModelTypes["PaymentMethodType"]; created: ModelTypes["Timestamp"]; livemode: boolean; card?: ModelTypes["Card"] | undefined; }; ["Card"]: { brand: ModelTypes["Card"]; checks: ModelTypes["CardChecks"]; country: string; exp_month: number; exp_year: number; fingerprint: string; funding: string; last4: string; networks: ModelTypes["CardNetworks"]; three_d_secure_usage: ModelTypes["CardThreeDSecureUsage"]; }; ["CardThreeDSecureUsage"]: { supported: boolean; }; ["CardNetworks"]: { preferred?: string | undefined; available?: Array | undefined; }; ["CardChecks"]: { address_line1_check: string; address_postal_code_check: string; cvc_check: string; }; ["PaymentMethodType"]: PaymentMethodType; ["PaymentBillingDetails"]: { address?: ModelTypes["Address"] | undefined; email: string; name: string; phone?: string | undefined; }; ["Address"]: { city?: string | undefined; country?: string | undefined; line1?: string | undefined; line2?: string | undefined; postal_code?: string | undefined; state?: string | undefined; }; ["ProductFilter"]: { active?: boolean | undefined; created?: ModelTypes["TimestampFilter"] | undefined; limit?: number | undefined; shippable?: boolean | undefined; ids?: Array | undefined; starting_after?: string | undefined; ending_before?: string | undefined; url?: string | undefined; }; ["RecurringFilter"]: { interval?: ModelTypes["Interval"] | undefined; usageType?: ModelTypes["UsageType"] | undefined; }; ["PriceFilter"]: { active?: boolean | undefined; currency?: string | undefined; product?: string | undefined; type?: ModelTypes["Type"] | undefined; created?: ModelTypes["TimestampFilter"] | undefined; limit?: number | undefined; starting_after?: string | undefined; ending_before?: string | undefined; recurring?: ModelTypes["RecurringFilter"] | undefined; }; ["Dimensions"]: { height?: number | undefined; length?: number | undefined; weight?: number | undefined; width?: number | undefined; }; ["Product"]: { id: string; active: boolean; created?: ModelTypes["Timestamp"] | undefined; default_price?: ModelTypes["Price"] | undefined; description?: string | undefined; images?: Array | undefined; livemode?: boolean | undefined; metadata?: ModelTypes["AnyObject"] | undefined; name?: string | undefined; package_dimensions?: ModelTypes["Dimensions"] | undefined; shippable?: boolean | undefined; statement_descriptor?: string | undefined; tax_code?: string | undefined; unitLabel?: string | undefined; updated?: ModelTypes["Timestamp"] | undefined; url?: string | undefined; prices?: Array | undefined; }; ["BillingScheme"]: BillingScheme; /** Offset measured in seconds since Unix epoch. */ ["Timestamp"]: any; ["TimestampFilter"]: { Gt?: ModelTypes["Timestamp"] | undefined; Gte?: ModelTypes["Timestamp"] | undefined; Lt?: ModelTypes["Timestamp"] | undefined; Lte?: ModelTypes["Timestamp"] | undefined; }; ["CustomUnitAmount"]: { maximum?: number | undefined; minimum?: number | undefined; preset?: number | undefined; }; /** Any value that can be represented as JSON object */ ["AnyObject"]: any; ["AggregateUsage"]: AggregateUsage; ["Interval"]: Interval; ["UsageType"]: UsageType; ["PriceRecurring"]: { aggregate_usage?: ModelTypes["AggregateUsage"] | undefined; interval?: ModelTypes["Interval"] | undefined; interval_count?: number | undefined; usage_type?: ModelTypes["UsageType"] | undefined; trial_period_days?: number | undefined; }; ["TaxBehaviour"]: TaxBehaviour; ["TiersMode"]: TiersMode; ["Round"]: Round; ["TransformQuantity"]: { divideBy?: number | undefined; round?: ModelTypes["Round"] | undefined; }; ["Type"]: Type; ["Price"]: { id: string; active?: boolean | undefined; billing_scheme?: ModelTypes["BillingScheme"] | undefined; created?: ModelTypes["Timestamp"] | undefined; currency?: string | undefined; custom_unit_amount?: ModelTypes["CustomUnitAmount"] | undefined; livemode?: boolean | undefined; lookup_key?: string | undefined; metadata?: ModelTypes["AnyObject"] | undefined; nickname?: string | undefined; product?: ModelTypes["Product"] | undefined; recurring?: ModelTypes["PriceRecurring"] | undefined; tax_behavior?: ModelTypes["TaxBehaviour"] | undefined; tiers_mode?: ModelTypes["TiersMode"] | undefined; transform_quantity?: ModelTypes["TransformQuantity"] | undefined; type?: ModelTypes["Type"] | undefined; unit_amount?: number | undefined; unit_amount_decimal?: string | undefined; }; ["ProductsPage"]: { products?: Array | undefined; startingAfter?: string | undefined; endingBefore?: string | undefined; }; ["schema"]: { mutation?: ModelTypes["Mutation"] | undefined; query?: ModelTypes["Query"] | undefined; }; }; export type GraphQLTypes = { ["Query"]: { __typename: "Query"; products?: GraphQLTypes["ProductsPage"] | undefined; subscriptions?: Array | undefined; paymentIntents?: Array | undefined; invoices?: Array | undefined; customer?: GraphQLTypes["Customer"] | undefined; }; ["Mutation"]: { __typename: "Mutation"; /** create session for simply payment */ createPaymentSession: string; /** Creates stripe customer for further purchases, links with user "email" field in UserCollection */ initStripeCustomer: boolean; /** Creates checkout for existing user (returns checkout url) */ createCheckoutSession: string; /** Creates checkout without providing user data - it will be filled during payment */ createNewUserCheckoutSession: string; /** Creates stripe customer portal (returns portal url) */ createCustomerPortal: string; /** Create stripe connect external account for further transactions directly with banking account */ createConnectAccount: boolean; /** Gather payment method id using Stripe.js or a pre-built solution like Stripe Elements */ attachPaymentMethod: boolean; setDefaultPaymentMethod: boolean; /** Payment from stripe account to connected bank account */ createPayoutForConnectedAccount: boolean; /** entry point for Weebhooks. */ webhook?: string | undefined; }; ["CreatePaymentSessionInput"]: { amount: number; currency: string; successUrl: string; cancelUrl: string; }; ["createPayoutForConnectedAccountInput"]: { /** If accountId is not specified, the default connected account is used. */ accountId?: string | undefined; amount: number; currency: string; }; ["PaymentIntentStatus"]: PaymentIntentStatus; ["Invoice"]: { __typename: "Invoice"; id: string; account_country: string; account_name: string; account_tax_id?: string | undefined; amount_due: number; amount_paid: number; amount_remaining: number; amount_shipping: number; application_fee_amount: number; attempt_count: number; attempted: boolean; auto_advance: boolean; billing_reason: string; /** ID of the latest charge generated for this invoice */ charge?: string | undefined; collection_method: GraphQLTypes["InvoiceCollectionMethod"]; created: GraphQLTypes["Timestamp"]; /** ISO 4217 Currency codes */ currency: string; customer: string; customer_address?: GraphQLTypes["Address"] | undefined; customer_email: string; customer_name: string; description?: string | undefined; hosted_invoice_url: string; period_end: GraphQLTypes["Timestamp"]; period_start: GraphQLTypes["Timestamp"]; status: GraphQLTypes["InvoiceStatus"]; subscription?: string | undefined; total: number; }; ["InvoiceStatus"]: InvoiceStatus; ["InvoiceCollectionMethod"]: InvoiceCollectionMethod; ["PaymentIntent"]: { __typename: "PaymentIntent"; id: string; client_secret: string; /** A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). */ amount: number; amount_capturable: number; amount_received: number; application_fee_amount: number; capture_method: string; confirmation_method: string; created: GraphQLTypes["Timestamp"]; /** Three-letter ISO currency code, in lowercase. Must be a supported currency. */ currency: string; /** ID of the Customer this PaymentIntent belongs to */ customer: string; /** An arbitrary string attached to the object. Often useful for displaying to users. */ description: string; /** ID of the invoice that created this PaymentIntent, if it exists. */ invoice?: string | undefined; latest_charge: string; livemode: boolean; payment_method: string; setup_future_usage: string; status: GraphQLTypes["PaymentIntentStatus"]; /** A string that identifies the resulting payment as part of a group (for connected accounts). */ transfer_group: string; /** The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason. */ last_payment_error?: GraphQLTypes["PaymentIntentLastPaymentError"] | undefined; /** The account (if any) for which the funds of the PaymentIntent are intended. */ on_behalf_of?: string | undefined; }; ["PaymentIntentLastPaymentError"]: { __typename: "PaymentIntentLastPaymentError"; type: string; /** For card errors, the ID of the failed charge. */ charge?: string | undefined; /** For some errors that could be handled programmatically, a short string indicating the error code reported (https://stripe.com/docs/error-codes). */ code?: string | undefined; decline_code?: string | undefined; doc_url?: string | undefined; message: string; param?: string | undefined; payment_method_type?: string | undefined; }; ["PaymentIntentSetupFutureUsage"]: PaymentIntentSetupFutureUsage; ["InvoiceFilter"]: { customerId: string; status?: GraphQLTypes["InvoiceStatus"] | undefined; }; ["PaymentIntentFilter"]: { customerId: string; status?: GraphQLTypes["PaymentIntentStatus"] | undefined; }; ["setDefaultPaymentMethodInput"]: { attachedPaymentMethodId: string; customerId: string; }; ["AttachPaymentMethodInput"]: { paymentMethodId: string; customerId: string; }; ["CreateConnectAccountInput"]: { type: GraphQLTypes["ConnectAccountType"]; country: string; email: string; business_type: GraphQLTypes["ConnectAccountBusinessType"]; bankAccount: GraphQLTypes["BankAccountInput"]; }; ["ConnectAccountBusinessType"]: ConnectAccountBusinessType; ["ConnectAccountType"]: ConnectAccountType; ["BankAccountInput"]: { country: string; /** Required supported currency for the country https://stripe.com/docs/payouts */ currency: string; /** IBAN account number */ account_number: string; /** Required when attaching the bank account to a Customer */ account_holder_name: string; account_holder_type: GraphQLTypes["BankAccountHolderType"]; }; ["BankAccountHolderType"]: BankAccountHolderType; ["SubscriptionFilter"]: { id?: string | undefined; cancel_at_period_end?: boolean | undefined; current_period_end?: GraphQLTypes["TimestampFilter"] | undefined; current_period_start?: GraphQLTypes["TimestampFilter"] | undefined; customer?: string | undefined; description?: string | undefined; items?: Array | undefined; quantity?: number | undefined; status?: GraphQLTypes["SubStatus"] | undefined; }; ["Subscription"]: { __typename: "Subscription"; id: string; cancel_at_period_end: boolean; current_period_end: GraphQLTypes["Timestamp"]; current_period_start: GraphQLTypes["Timestamp"]; customer: string; description?: string | undefined; items: GraphQLTypes["SubscriptionItems"]; quantity: number; status: GraphQLTypes["SubStatus"]; }; ["SubStatus"]: SubStatus; ["SubscriptionItems"]: { __typename: "SubscriptionItems"; data: Array; has_more: boolean; total_count: number; url: string; object: string; }; ["Item"]: { __typename: "Item"; id: string; created: GraphQLTypes["Timestamp"]; metadata?: GraphQLTypes["AnyObject"] | undefined; price: GraphQLTypes["Price"]; quantity: number; subscription: string; }; ["User"]: { __typename: "User"; stripeId?: string | undefined; email: string; }; ["InitStripeCustomerInput"]: { email: string; name?: string | undefined; phone?: string | undefined; address?: GraphQLTypes["AddressInput"] | undefined; }; ["CreateNewUserCheckoutSessionInput"]: { /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: GraphQLTypes["ApplicationFeeInput"] | undefined; }; ["CreateCheckoutSessionInput"]: { username: string; /** Return url after successful transaction */ successUrl: string; cancelUrl: string; products: Array; /** Define amount to transfer into stripe connect account and set the rest for application fees */ applicationFee?: GraphQLTypes["ApplicationFeeInput"] | undefined; }; ["ApplicationFeeInput"]: { /** Value from 0-100 */ feePercentage: number; /** Connect Account (not stripe customer) id */ connectAccountId: string; }; ["ProductInput"]: { productId: string; quantity: number; }; ["CreateCustomerPortalInput"]: { username: string; returnUrl: string; }; ["AddressInput"]: { /** City, district, suburb, town, village, or ward. */ city: string; /** Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ country: string; /** Address line 1 (e.g., street, block, PO Box, or company name). */ line1: string; /** Address line 2 (e.g., apartment, suite, unit, or building). */ line2: string; /** ZIP or postal code. */ postal_code: string; /** State, county, province, prefecture, or region. */ state: string; }; ["Customer"]: { __typename: "Customer"; id: string; email: string; name?: string | undefined; address?: GraphQLTypes["Address"] | undefined; phone?: string | undefined; created: GraphQLTypes["Timestamp"]; invoicePrefix?: string | undefined; paymentMethods?: Array | undefined; }; /** https://stripe.com/docs/api/payment_methods/object */ ["PaymentMethod"]: { __typename: "PaymentMethod"; id: string; billing_details: GraphQLTypes["PaymentBillingDetails"]; customer: string; metadata: GraphQLTypes["AnyObject"]; type: GraphQLTypes["PaymentMethodType"]; created: GraphQLTypes["Timestamp"]; livemode: boolean; card?: GraphQLTypes["Card"] | undefined; }; ["Card"]: { __typename: "Card"; brand: GraphQLTypes["Card"]; checks: GraphQLTypes["CardChecks"]; country: string; exp_month: number; exp_year: number; fingerprint: string; funding: string; last4: string; networks: GraphQLTypes["CardNetworks"]; three_d_secure_usage: GraphQLTypes["CardThreeDSecureUsage"]; }; ["CardThreeDSecureUsage"]: { __typename: "CardThreeDSecureUsage"; supported: boolean; }; ["CardNetworks"]: { __typename: "CardNetworks"; preferred?: string | undefined; available?: Array | undefined; }; ["CardChecks"]: { __typename: "CardChecks"; address_line1_check: string; address_postal_code_check: string; cvc_check: string; }; ["PaymentMethodType"]: PaymentMethodType; ["PaymentBillingDetails"]: { __typename: "PaymentBillingDetails"; address?: GraphQLTypes["Address"] | undefined; email: string; name: string; phone?: string | undefined; }; ["Address"]: { __typename: "Address"; city?: string | undefined; country?: string | undefined; line1?: string | undefined; line2?: string | undefined; postal_code?: string | undefined; state?: string | undefined; }; ["ProductFilter"]: { active?: boolean | undefined; created?: GraphQLTypes["TimestampFilter"] | undefined; limit?: number | undefined; shippable?: boolean | undefined; ids?: Array | undefined; starting_after?: string | undefined; ending_before?: string | undefined; url?: string | undefined; }; ["RecurringFilter"]: { interval?: GraphQLTypes["Interval"] | undefined; usageType?: GraphQLTypes["UsageType"] | undefined; }; ["PriceFilter"]: { active?: boolean | undefined; currency?: string | undefined; product?: string | undefined; type?: GraphQLTypes["Type"] | undefined; created?: GraphQLTypes["TimestampFilter"] | undefined; limit?: number | undefined; starting_after?: string | undefined; ending_before?: string | undefined; recurring?: GraphQLTypes["RecurringFilter"] | undefined; }; ["Dimensions"]: { __typename: "Dimensions"; height?: number | undefined; length?: number | undefined; weight?: number | undefined; width?: number | undefined; }; ["Product"]: { __typename: "Product"; id: string; active: boolean; created?: GraphQLTypes["Timestamp"] | undefined; default_price?: GraphQLTypes["Price"] | undefined; description?: string | undefined; images?: Array | undefined; livemode?: boolean | undefined; metadata?: GraphQLTypes["AnyObject"] | undefined; name?: string | undefined; package_dimensions?: GraphQLTypes["Dimensions"] | undefined; shippable?: boolean | undefined; statement_descriptor?: string | undefined; tax_code?: string | undefined; unitLabel?: string | undefined; updated?: GraphQLTypes["Timestamp"] | undefined; url?: string | undefined; prices?: Array | undefined; }; ["BillingScheme"]: BillingScheme; /** Offset measured in seconds since Unix epoch. */ ["Timestamp"]: "scalar" & { name: "Timestamp"; }; ["TimestampFilter"]: { Gt?: GraphQLTypes["Timestamp"] | undefined; Gte?: GraphQLTypes["Timestamp"] | undefined; Lt?: GraphQLTypes["Timestamp"] | undefined; Lte?: GraphQLTypes["Timestamp"] | undefined; }; ["CustomUnitAmount"]: { __typename: "CustomUnitAmount"; maximum?: number | undefined; minimum?: number | undefined; preset?: number | undefined; }; /** Any value that can be represented as JSON object */ ["AnyObject"]: "scalar" & { name: "AnyObject"; }; ["AggregateUsage"]: AggregateUsage; ["Interval"]: Interval; ["UsageType"]: UsageType; ["PriceRecurring"]: { __typename: "PriceRecurring"; aggregate_usage?: GraphQLTypes["AggregateUsage"] | undefined; interval?: GraphQLTypes["Interval"] | undefined; interval_count?: number | undefined; usage_type?: GraphQLTypes["UsageType"] | undefined; trial_period_days?: number | undefined; }; ["TaxBehaviour"]: TaxBehaviour; ["TiersMode"]: TiersMode; ["Round"]: Round; ["TransformQuantity"]: { __typename: "TransformQuantity"; divideBy?: number | undefined; round?: GraphQLTypes["Round"] | undefined; }; ["Type"]: Type; ["Price"]: { __typename: "Price"; id: string; active?: boolean | undefined; billing_scheme?: GraphQLTypes["BillingScheme"] | undefined; created?: GraphQLTypes["Timestamp"] | undefined; currency?: string | undefined; custom_unit_amount?: GraphQLTypes["CustomUnitAmount"] | undefined; livemode?: boolean | undefined; lookup_key?: string | undefined; metadata?: GraphQLTypes["AnyObject"] | undefined; nickname?: string | undefined; product?: GraphQLTypes["Product"] | undefined; recurring?: GraphQLTypes["PriceRecurring"] | undefined; tax_behavior?: GraphQLTypes["TaxBehaviour"] | undefined; tiers_mode?: GraphQLTypes["TiersMode"] | undefined; transform_quantity?: GraphQLTypes["TransformQuantity"] | undefined; type?: GraphQLTypes["Type"] | undefined; unit_amount?: number | undefined; unit_amount_decimal?: string | undefined; }; ["ProductsPage"]: { __typename: "ProductsPage"; products?: Array | undefined; startingAfter?: string | undefined; endingBefore?: string | undefined; }; }; export declare const enum PaymentIntentStatus { requires_payment_method = "requires_payment_method", requires_confirmation = "requires_confirmation", requires_action = "requires_action", processing = "processing", requires_capture = "requires_capture", canceled = "canceled", succeeded = "succeeded" } export declare const enum InvoiceStatus { draft = "draft", open = "open", paid = "paid", uncollectible = "uncollectible", void = "void" } export declare const enum InvoiceCollectionMethod { charge_automatically = "charge_automatically", send_invoice = "send_invoice" } export declare const enum PaymentIntentSetupFutureUsage { on_session = "on_session", off_session = "off_session" } export declare const enum ConnectAccountBusinessType { company = "company", government_entity = "government_entity", individual = "individual", non_profit = "non_profit" } export declare const enum ConnectAccountType { standard = "standard", express = "express", custom = "custom" } export declare const enum BankAccountHolderType { individual = "individual", company = "company" } export declare const enum SubStatus { incomplete = "incomplete", incomplete_expired = "incomplete_expired", trialing = "trialing", active = "active", past_due = "past_due", canceled = "canceled", unpaid = "unpaid" } export declare const enum PaymentMethodType { acss_debit = "acss_debit", affirm = "affirm", afterpay_clearpay = "afterpay_clearpay", alipay = "alipay", au_becs_debit = "au_becs_debit", bacs_debit = "bacs_debit", bancontact = "bancontact", blik = "blik", boleto = "boleto", card = "card", card_present = "card_present", cashapp = "cashapp", customer_balance = "customer_balance", eps = "eps", fpx = "fpx", giropay = "giropay", grabpay = "grabpay", ideal = "ideal", interac_present = "interac_present", klarna = "klarna", konbini = "konbini", link = "link", oxxo = "oxxo", p24 = "p24", paynow = "paynow", paypal = "paypal", pix = "pix", promptpay = "promptpay", sepa_debit = "sepa_debit", sofort = "sofort", us_bank_account = "us_bank_account", wechat_pay = "wechat_pay", zip = "zip" } export declare const enum BillingScheme { PER_UNIT = "PER_UNIT", TIERED = "TIERED" } export declare const enum AggregateUsage { SUM = "SUM", LAST_DURING_PERIOD = "LAST_DURING_PERIOD", LAST_EVER = "LAST_EVER", MAX = "MAX" } export declare const enum Interval { MONTH = "MONTH", YEAR = "YEAR", WEEK = "WEEK", DAY = "DAY" } export declare const enum UsageType { METERED = "METERED", LICENSED = "LICENSED" } export declare const enum TaxBehaviour { INCLUSIVE = "INCLUSIVE", EXCLUSIVE = "EXCLUSIVE", UNSPECIFIED = "UNSPECIFIED" } export declare const enum TiersMode { GRADUATED = "GRADUATED", VOLUME = "VOLUME" } export declare const enum Round { UP = "UP", DOWN = "DOWN" } export declare const enum Type { RECURRING = "RECURRING", ONE_TIME = "ONE_TIME" } type ZEUS_VARIABLES = { ["CreatePaymentSessionInput"]: ValueTypes["CreatePaymentSessionInput"]; ["createPayoutForConnectedAccountInput"]: ValueTypes["createPayoutForConnectedAccountInput"]; ["PaymentIntentStatus"]: ValueTypes["PaymentIntentStatus"]; ["InvoiceStatus"]: ValueTypes["InvoiceStatus"]; ["InvoiceCollectionMethod"]: ValueTypes["InvoiceCollectionMethod"]; ["PaymentIntentSetupFutureUsage"]: ValueTypes["PaymentIntentSetupFutureUsage"]; ["InvoiceFilter"]: ValueTypes["InvoiceFilter"]; ["PaymentIntentFilter"]: ValueTypes["PaymentIntentFilter"]; ["setDefaultPaymentMethodInput"]: ValueTypes["setDefaultPaymentMethodInput"]; ["AttachPaymentMethodInput"]: ValueTypes["AttachPaymentMethodInput"]; ["CreateConnectAccountInput"]: ValueTypes["CreateConnectAccountInput"]; ["ConnectAccountBusinessType"]: ValueTypes["ConnectAccountBusinessType"]; ["ConnectAccountType"]: ValueTypes["ConnectAccountType"]; ["BankAccountInput"]: ValueTypes["BankAccountInput"]; ["BankAccountHolderType"]: ValueTypes["BankAccountHolderType"]; ["SubscriptionFilter"]: ValueTypes["SubscriptionFilter"]; ["SubStatus"]: ValueTypes["SubStatus"]; ["InitStripeCustomerInput"]: ValueTypes["InitStripeCustomerInput"]; ["CreateNewUserCheckoutSessionInput"]: ValueTypes["CreateNewUserCheckoutSessionInput"]; ["CreateCheckoutSessionInput"]: ValueTypes["CreateCheckoutSessionInput"]; ["ApplicationFeeInput"]: ValueTypes["ApplicationFeeInput"]; ["ProductInput"]: ValueTypes["ProductInput"]; ["CreateCustomerPortalInput"]: ValueTypes["CreateCustomerPortalInput"]; ["AddressInput"]: ValueTypes["AddressInput"]; ["PaymentMethodType"]: ValueTypes["PaymentMethodType"]; ["ProductFilter"]: ValueTypes["ProductFilter"]; ["RecurringFilter"]: ValueTypes["RecurringFilter"]; ["PriceFilter"]: ValueTypes["PriceFilter"]; ["BillingScheme"]: ValueTypes["BillingScheme"]; ["Timestamp"]: ValueTypes["Timestamp"]; ["TimestampFilter"]: ValueTypes["TimestampFilter"]; ["AnyObject"]: ValueTypes["AnyObject"]; ["AggregateUsage"]: ValueTypes["AggregateUsage"]; ["Interval"]: ValueTypes["Interval"]; ["UsageType"]: ValueTypes["UsageType"]; ["TaxBehaviour"]: ValueTypes["TaxBehaviour"]; ["TiersMode"]: ValueTypes["TiersMode"]; ["Round"]: ValueTypes["Round"]; ["Type"]: ValueTypes["Type"]; }; export {};