import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends {
    [key: string]: unknown;
}> = {
    [K in keyof T]: T[K];
};
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
    [SubKey in K]?: Maybe<T[SubKey]>;
};
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
    [SubKey in K]: Maybe<T[SubKey]>;
};
export type Scalars = {
    ID: string;
    String: string;
    Boolean: boolean;
    Int: number;
    Float: number;
    Any: any;
    Currency: any;
    Date: any;
    JSON: any;
    Void: any;
};
export type AcceptMemberInviteInput = {
    accountId: Scalars['ID'];
    userId: Scalars['ID'];
};
export type Account = {
    __typename?: 'Account';
    billing?: Maybe<Billing>;
    capabilities: AccountCapabilities;
    createdAt?: Maybe<Scalars['Date']>;
    id: Scalars['ID'];
    isProduction?: Maybe<Scalars['Boolean']>;
    metadata?: Maybe<Scalars['JSON']>;
    name: Scalars['String'];
    settings: AccountSettings;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type AccountAnalyticsSettings = {
    __typename?: 'AccountAnalyticsSettings';
    dashboardId?: Maybe<Scalars['String']>;
    isAvailableInGlobalDashboard?: Maybe<Scalars['Boolean']>;
};
export type AccountBillingSettings = {
    __typename?: 'AccountBillingSettings';
    customTaxRate?: Maybe<CustomTaxRate>;
    footerText?: Maybe<Scalars['String']>;
    invoiceFormat?: Maybe<AccountBillingSettingsInvoiceFormat>;
    logoUrl?: Maybe<Scalars['String']>;
    numberingFormat?: Maybe<AccountBillingSettingsNumberingFormat>;
    taxSchemes?: Maybe<Array<Scalars['String']>>;
};
export type AccountBillingSettingsInput = {
    customTaxRate?: InputMaybe<CustomTaxRateInput>;
    footerText?: InputMaybe<Scalars['String']>;
    invoiceFormat?: InputMaybe<AccountBillingSettingsInvoiceFormatInput>;
    logoUrl?: InputMaybe<Scalars['String']>;
    numberingFormat?: InputMaybe<AccountBillingSettingsNumberingFormatInput>;
    taxSchemes?: InputMaybe<Array<Scalars['String']>>;
};
export type AccountBillingSettingsInvoiceFormat = {
    __typename?: 'AccountBillingSettingsInvoiceFormat';
    default: InvoiceFormat;
    rules?: Maybe<Array<AccountBillingSettingsInvoiceFormatCountryRule>>;
};
export type AccountBillingSettingsInvoiceFormatCountryRule = {
    __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
    countryCode: Scalars['String'];
    format: InvoiceFormat;
};
export type AccountBillingSettingsInvoiceFormatCountryRuleInput = {
    countryCode: Scalars['String'];
    format: InvoiceFormat;
};
export type AccountBillingSettingsInvoiceFormatInput = {
    default: InvoiceFormat;
    rules?: InputMaybe<Array<AccountBillingSettingsInvoiceFormatCountryRuleInput>>;
};
export type AccountBillingSettingsNumberingFormat = {
    __typename?: 'AccountBillingSettingsNumberingFormat';
    creditNote?: Maybe<Scalars['String']>;
    invoice?: Maybe<Scalars['String']>;
};
export type AccountBillingSettingsNumberingFormatInput = {
    creditNote?: InputMaybe<Scalars['String']>;
    invoice?: InputMaybe<Scalars['String']>;
};
export type AccountCapabilities = {
    __typename?: 'AccountCapabilities';
    canBill?: Maybe<Scalars['Boolean']>;
    canCreateApps?: Maybe<Scalars['Boolean']>;
    canCreateCustomDomains?: Maybe<Scalars['Boolean']>;
    canCustomizeFields?: Maybe<Scalars['Boolean']>;
    canInviteMembers?: Maybe<Scalars['Boolean']>;
    canManageLicenses?: Maybe<Scalars['Boolean']>;
    hasAnalytics?: Maybe<Scalars['Boolean']>;
    hasCancellationNotice?: Maybe<Scalars['Boolean']>;
    hasCheckout?: Maybe<Scalars['Boolean']>;
    hasCustomerPortal?: Maybe<Scalars['Boolean']>;
    hasIntegrations?: Maybe<Scalars['Boolean']>;
};
export type AccountDomainConfigSettings = {
    __typename?: 'AccountDomainConfigSettings';
    hostname: Scalars['String'];
    isVerified: Scalars['Boolean'];
    verificationRecord: AccountDomainConfigVerificationSettings;
};
export type AccountDomainConfigVerificationSettings = {
    __typename?: 'AccountDomainConfigVerificationSettings';
    name: Scalars['String'];
    type: Scalars['String'];
    value: Scalars['String'];
};
export type AccountDomainSettings = {
    __typename?: 'AccountDomainSettings';
    config?: Maybe<AccountDomainConfigSettings>;
    name: Scalars['String'];
};
export type AccountList = {
    __typename?: 'AccountList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Maybe<Account>>;
    total: Scalars['Int'];
};
export type AccountMetadataField = {
    __typename?: 'AccountMetadataField';
    default?: Maybe<Scalars['String']>;
    description: Scalars['String'];
    displayInCheckoutStep?: Maybe<Scalars['String']>;
    displayInInvoices?: Maybe<Scalars['Boolean']>;
    format?: Maybe<Scalars['String']>;
    isPersonalInformation?: Maybe<Scalars['Boolean']>;
    label?: Maybe<Scalars['String']>;
    name: Scalars['String'];
    options?: Maybe<Array<AccountMetadataOptionField>>;
    required: Scalars['Boolean'];
    type: Scalars['String'];
};
export type AccountMetadataFieldInput = {
    default?: InputMaybe<Scalars['String']>;
    description: Scalars['String'];
    displayInCheckoutStep?: InputMaybe<Scalars['String']>;
    displayInInvoices?: InputMaybe<Scalars['Boolean']>;
    format?: InputMaybe<Scalars['String']>;
    isPersonalInformation?: InputMaybe<Scalars['Boolean']>;
    label?: InputMaybe<Scalars['String']>;
    name: Scalars['String'];
    options?: InputMaybe<Array<AccountMetadataOptionFieldInput>>;
    required: Scalars['Boolean'];
    type: Scalars['String'];
};
export type AccountMetadataOptionField = {
    __typename?: 'AccountMetadataOptionField';
    label: Scalars['String'];
    value: Scalars['String'];
};
export type AccountMetadataOptionFieldInput = {
    label: Scalars['String'];
    value: Scalars['String'];
};
export type AccountMetadataSettings = {
    __typename?: 'AccountMetadataSettings';
    billingProfile?: Maybe<Array<AccountMetadataField>>;
    creditNote?: Maybe<Array<AccountMetadataField>>;
    customer?: Maybe<Array<AccountMetadataField>>;
    invoice?: Maybe<Array<AccountMetadataField>>;
    license?: Maybe<Array<AccountMetadataField>>;
    licenseUser?: Maybe<Array<AccountMetadataField>>;
    person?: Maybe<Array<AccountMetadataField>>;
    product?: Maybe<Array<AccountMetadataField>>;
    subscription?: Maybe<Array<AccountMetadataField>>;
    transaction?: Maybe<Array<AccountMetadataField>>;
};
export type AccountMetadataSettingsInput = {
    billingProfile?: InputMaybe<Array<AccountMetadataFieldInput>>;
    creditNote?: InputMaybe<Array<AccountMetadataFieldInput>>;
    customer?: InputMaybe<Array<AccountMetadataFieldInput>>;
    invoice?: InputMaybe<Array<AccountMetadataFieldInput>>;
    license?: InputMaybe<Array<AccountMetadataFieldInput>>;
    licenseUser?: InputMaybe<Array<AccountMetadataFieldInput>>;
    person?: InputMaybe<Array<AccountMetadataFieldInput>>;
    product?: InputMaybe<Array<AccountMetadataFieldInput>>;
    subscription?: InputMaybe<Array<AccountMetadataFieldInput>>;
    transaction?: InputMaybe<Array<AccountMetadataFieldInput>>;
};
export type AccountPaymentMethodSettings = {
    __typename?: 'AccountPaymentMethodSettings';
    isActive: Scalars['Boolean'];
    providerName: PaymentProviderName;
    type: PaymentMethodType;
};
export type AccountPaymentMethodSettingsInput = {
    isActive?: InputMaybe<Scalars['Boolean']>;
    providerName: PaymentProviderName;
    type: PaymentMethodType;
};
export type AccountPaymentSettings = {
    __typename?: 'AccountPaymentSettings';
    paymentMethods?: Maybe<Array<AccountPaymentMethodSettings>>;
    providers?: Maybe<Array<PaymentProvider>>;
};
export type AccountPaymentSettingsInput = {
    paymentMethods?: InputMaybe<Array<AccountPaymentMethodSettingsInput>>;
};
export type AccountSettings = {
    __typename?: 'AccountSettings';
    analytics?: Maybe<AccountAnalyticsSettings>;
    billing: AccountBillingSettings;
    capabilities?: Maybe<Array<ProductCapabilitySettings>>;
    domain: AccountDomainSettings;
    metadata?: Maybe<AccountMetadataSettings>;
    payments?: Maybe<AccountPaymentSettings>;
    theme?: Maybe<AccountThemeSettings>;
};
export type AccountSettingsInput = {
    billing?: InputMaybe<AccountBillingSettingsInput>;
    capabilities?: InputMaybe<Array<ProductCapabilitySettingsInput>>;
    metadata?: InputMaybe<AccountMetadataSettingsInput>;
    payments?: InputMaybe<AccountPaymentSettingsInput>;
    theme?: InputMaybe<AccountThemeSettingsInput>;
};
export type AccountTheme = {
    __typename?: 'AccountTheme';
    logoUrl?: Maybe<Scalars['String']>;
};
export type AccountThemeSettings = {
    __typename?: 'AccountThemeSettings';
    dark?: Maybe<AccountTheme>;
    light?: Maybe<AccountTheme>;
};
export type AccountThemeSettingsInput = {
    dark?: InputMaybe<AccountThemesInput>;
    light?: InputMaybe<AccountThemesInput>;
};
export type AccountThemesInput = {
    logoUrl?: InputMaybe<Scalars['String']>;
};
export type ActivateLicenseInput = {
    code: Scalars['String'];
    metadata?: InputMaybe<Scalars['JSON']>;
    subscriptionId?: InputMaybe<Scalars['ID']>;
};
export type AddAccountDomainInput = {
    name: Scalars['String'];
};
export type AddDiscountCouponInput = {
    amount?: InputMaybe<Scalars['Int']>;
    codeLength?: InputMaybe<Scalars['Int']>;
    discountId: Scalars['ID'];
    prefix?: InputMaybe<Scalars['String']>;
};
export type AddPaymentMethodInput = {
    customerId: Scalars['ID'];
    externalId?: InputMaybe<Scalars['String']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    providerName?: InputMaybe<PaymentProviderName>;
    type: PaymentMethodType;
};
export type AnalyticsSessionToken = {
    __typename?: 'AnalyticsSessionToken';
    dashboardId: Scalars['String'];
    token: Scalars['String'];
};
export type ApiClient = {
    __typename?: 'ApiClient';
    id: Scalars['ID'];
    redirectUrls?: Maybe<Array<Scalars['String']>>;
    scopes?: Maybe<Array<Scope>>;
    secret?: Maybe<Scalars['String']>;
    type: Scalars['String'];
};
export type App = {
    __typename?: 'App';
    accountIds?: Maybe<Array<Scalars['String']>>;
    apiClients: Array<ApiClient>;
    categories?: Maybe<Array<Scalars['String']>>;
    contactEmail?: Maybe<Scalars['String']>;
    createdAt?: Maybe<Scalars['Date']>;
    description?: Maybe<Scalars['String']>;
    id: Scalars['ID'];
    instances?: Maybe<AppInstanceList>;
    isInstalled: Scalars['Boolean'];
    isPublic: Scalars['Boolean'];
    logoUrl?: Maybe<Scalars['String']>;
    name: Scalars['String'];
    pageContent?: Maybe<Scalars['String']>;
    privacyUrl?: Maybe<Scalars['String']>;
    tosUrl?: Maybe<Scalars['String']>;
    updatedAt?: Maybe<Scalars['Date']>;
    webhooks: Webhook;
};
export type AppInstance = {
    __typename?: 'AppInstance';
    account: Account;
    app: PublicApp;
    createdAt: Scalars['Date'];
    id: Scalars['ID'];
};
export type AppInstanceList = {
    __typename?: 'AppInstanceList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<AppInstance>;
    total: Scalars['Int'];
};
export type AppList = {
    __typename?: 'AppList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<App>;
    total: Scalars['Int'];
};
export type Bank = {
    __typename?: 'Bank';
    id: Scalars['String'];
    logo: Scalars['String'];
    name: Scalars['String'];
};
export type BankAccount = {
    __typename?: 'BankAccount';
    currency: Scalars['String'];
    iban: Scalars['String'];
    name?: Maybe<Scalars['String']>;
    ownerName: Scalars['String'];
    transactions: Array<BankTransaction>;
};
export type BankAccountList = {
    __typename?: 'BankAccountList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<BankAccount>;
    total: Scalars['Int'];
};
export type BankList = {
    __typename?: 'BankList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Bank>;
    total: Scalars['Int'];
};
export type BankTransaction = {
    __typename?: 'BankTransaction';
    account: BankAccount;
    amount: Scalars['String'];
    bookedAt: Scalars['String'];
    currency: Scalars['String'];
    debtor: Scalars['String'];
    description: Scalars['String'];
    iban?: Maybe<Scalars['String']>;
    id: Scalars['String'];
    ignoreDebtor?: Maybe<Scalars['Boolean']>;
    status: BankTransactionStatus;
    transaction?: Maybe<Transaction>;
};
export type BankTransactionList = {
    __typename?: 'BankTransactionList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<BankTransaction>;
    total: Scalars['Int'];
};
export declare enum BankTransactionStatus {
    Ignored = "IGNORED",
    Matched = "MATCHED",
    NotMatched = "NOT_MATCHED"
}
export type BankTransactionSync = {
    __typename?: 'BankTransactionSync';
    status: Scalars['String'];
};
export type Billing = {
    __typename?: 'Billing';
    address: Scalars['String'];
    address2?: Maybe<Scalars['String']>;
    city: Scalars['String'];
    companyName?: Maybe<Scalars['String']>;
    contactPerson?: Maybe<Person>;
    countryCode: Scalars['String'];
    invoiceFormat?: Maybe<InvoiceFormat>;
    metadata?: Maybe<Scalars['JSON']>;
    postalCode: Scalars['String'];
    street?: Maybe<Scalars['String']>;
    streetNumber?: Maybe<Scalars['String']>;
    taxIds?: Maybe<Array<TaxId>>;
};
export type BillingInput = {
    address?: InputMaybe<Scalars['String']>;
    address2?: InputMaybe<Scalars['String']>;
    city: Scalars['String'];
    companyName?: InputMaybe<Scalars['String']>;
    contactPerson?: InputMaybe<PersonInput>;
    countryCode: Scalars['String'];
    invoiceFormat?: InputMaybe<InvoiceFormat>;
    metadata?: InputMaybe<Scalars['JSON']>;
    postalCode: Scalars['String'];
    street?: InputMaybe<Scalars['String']>;
    streetNumber?: InputMaybe<Scalars['String']>;
    taxIds?: InputMaybe<Array<TaxIdInput>>;
};
export declare enum BillingTerms {
    EndOfPeriod = "END_OF_PERIOD",
    StartOfPeriod = "START_OF_PERIOD"
}
export type CancelSubscriptionInput = {
    applyCancellationNow?: InputMaybe<Scalars['Boolean']>;
};
export type CreateAccountInput = {
    billing?: InputMaybe<BillingInput>;
    isProduction?: InputMaybe<Scalars['Boolean']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
    settings?: InputMaybe<AccountSettingsInput>;
};
export type CreateApiClientInput = {
    redirectUrls?: InputMaybe<Array<Scalars['String']>>;
    scopes?: InputMaybe<Array<Scope>>;
    type: Scalars['String'];
};
export type CreateAppInput = {
    name: Scalars['String'];
};
export type CreateCreditNoteInput = {
    amount: Scalars['Float'];
    applyRefund?: InputMaybe<Scalars['Boolean']>;
    customerId: Scalars['ID'];
    description: Scalars['String'];
    invoiceId: Scalars['ID'];
    metadata?: InputMaybe<Scalars['JSON']>;
};
export type CreateCustomerInput = {
    billing?: InputMaybe<BillingInput>;
    currency?: InputMaybe<Scalars['Currency']>;
    locale?: InputMaybe<Scalars['String']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
    paymentMethod?: InputMaybe<UpdatePaymentMethodInput>;
    people?: InputMaybe<Array<PersonInput>>;
};
export type CreateCustomerSessionInput = {
    couponCode?: InputMaybe<Scalars['String']>;
    customer?: InputMaybe<CreateCustomerInput>;
    customerId?: InputMaybe<Scalars['ID']>;
    productId?: InputMaybe<Scalars['ID']>;
    subscriptionId?: InputMaybe<Scalars['ID']>;
    usage?: InputMaybe<Array<SubscriptionUsageInput>>;
};
export type CreateDiscountInput = {
    amount: Scalars['Float'];
    currency?: InputMaybe<Scalars['Currency']>;
    expirationDate?: InputMaybe<Scalars['Date']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    maxPeriods?: InputMaybe<Scalars['Int']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
    type: DiscountType;
};
export type CreateInvoiceInput = {
    autoCollectPayment?: InputMaybe<Scalars['Boolean']>;
    billingPeriodEnd: Scalars['Date'];
    billingPeriodStart: Scalars['Date'];
    currency?: InputMaybe<Scalars['Currency']>;
    customerId: Scalars['ID'];
    discountCode?: InputMaybe<Scalars['String']>;
    dueDate: Scalars['Date'];
    items: Array<InvoiceItemInput>;
    locale?: InputMaybe<Scalars['String']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    paymentTermDays?: InputMaybe<Scalars['Int']>;
};
export type CreateLicenseInput = {
    licenseUserId?: InputMaybe<Scalars['ID']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    status?: InputMaybe<LicenseStatusInput>;
    subscriptionId: Scalars['ID'];
    units?: InputMaybe<Array<Scalars['String']>>;
};
export type CreateLicenseUserInput = {
    customerId: Scalars['ID'];
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
};
export type CreateProductInput = {
    addons?: InputMaybe<Array<Scalars['String']>>;
    canDowngradeTo?: InputMaybe<Array<Scalars['String']>>;
    canUpgradeTo?: InputMaybe<Array<Scalars['String']>>;
    capabilities?: InputMaybe<Array<ProductCapabilityInput>>;
    currency?: InputMaybe<Scalars['Currency']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    licensing?: InputMaybe<LicensingInput>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
    nextProductId?: InputMaybe<Scalars['String']>;
    plan?: InputMaybe<PlanInput>;
    pricing?: InputMaybe<Array<PricingInput>>;
    sku: Scalars['String'];
    taxRateCode?: InputMaybe<TaxRateCode>;
};
export type CreateSubscriptionInput = {
    couponCode?: InputMaybe<Scalars['String']>;
    customerId: Scalars['ID'];
    endDate?: InputMaybe<Scalars['Date']>;
    freeTrialEndDate?: InputMaybe<Scalars['Date']>;
    freeTrialStartDate?: InputMaybe<Scalars['Date']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    productId: Scalars['ID'];
    startDate?: InputMaybe<Scalars['Date']>;
    usage?: InputMaybe<Array<SubscriptionUsageInput>>;
};
export type CreateTransactionInput = {
    amount: Scalars['Float'];
    creditNoteId?: InputMaybe<Scalars['ID']>;
    currency: Scalars['Currency'];
    invoiceId?: InputMaybe<Scalars['ID']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    paymentMethodType: PaymentMethodType;
    reference?: InputMaybe<Scalars['String']>;
    type: TransactionType;
};
export type CreateWebhookInput = {
    endpoint: Scalars['String'];
    events: Array<Scalars['String']>;
    headers?: InputMaybe<Scalars['JSON']>;
};
export type CreditNote = {
    __typename?: 'CreditNote';
    createdAt?: Maybe<Scalars['Date']>;
    customer: Customer;
    file: Scalars['String'];
    fileFormat: InvoiceFormat;
    id: Scalars['ID'];
    invoice: InvoiceListItem;
    items: Array<CreditNoteItem>;
    metadata?: Maybe<Scalars['JSON']>;
    number: Scalars['String'];
    pdfFile?: Maybe<Scalars['String']>;
    subtotal: Scalars['Float'];
    taxes?: Maybe<Array<CreditNoteTaxItem>>;
    total: Scalars['Float'];
    transactions: TransactionList;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type CreditNoteDiscount = {
    __typename?: 'CreditNoteDiscount';
    amount: Scalars['Float'];
    description: Scalars['String'];
};
export type CreditNoteExport = {
    __typename?: 'CreditNoteExport';
    content: Scalars['String'];
};
export type CreditNoteExportInput = {
    ids: Array<Scalars['ID']>;
};
export type CreditNoteItem = {
    __typename?: 'CreditNoteItem';
    description: Scalars['String'];
    price: Scalars['Float'];
    quantity: Scalars['Float'];
    unitPrice: Scalars['Float'];
};
export type CreditNoteList = {
    __typename?: 'CreditNoteList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<CreditNoteListItem>;
    total: Scalars['Int'];
};
export type CreditNoteListItem = {
    __typename?: 'CreditNoteListItem';
    createdAt?: Maybe<Scalars['Date']>;
    customer: Customer;
    id: Scalars['ID'];
    invoice: InvoiceListItem;
    items: Array<CreditNoteItem>;
    metadata?: Maybe<Scalars['JSON']>;
    number: Scalars['String'];
    subtotal: Scalars['Float'];
    taxes?: Maybe<Array<CreditNoteTaxItem>>;
    total: Scalars['Float'];
    transactions: TransactionList;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type CreditNotePreview = {
    __typename?: 'CreditNotePreview';
    content: Scalars['String'];
};
export type CreditNoteTaxItem = {
    __typename?: 'CreditNoteTaxItem';
    amount: Scalars['Float'];
    description: Scalars['String'];
    rate: Scalars['Float'];
};
export type CustomTaxRate = {
    __typename?: 'CustomTaxRate';
    code: Scalars['String'];
    description: Scalars['String'];
    rate: Scalars['Float'];
};
export type CustomTaxRateInput = {
    code: Scalars['String'];
    description: Scalars['String'];
    rate: Scalars['Float'];
};
export type Customer = {
    __typename?: 'Customer';
    billing?: Maybe<Billing>;
    capabilities?: Maybe<Array<ProductCapability>>;
    createdAt?: Maybe<Scalars['Date']>;
    creditNotes: CreditNoteList;
    currency?: Maybe<Scalars['Currency']>;
    discountCoupons: DiscountCouponList;
    id: Scalars['ID'];
    invoices: InvoiceList;
    licenseUsers: LicenseUserList;
    locale?: Maybe<Scalars['String']>;
    metadata?: Maybe<Scalars['JSON']>;
    name: Scalars['String'];
    paymentMethod?: Maybe<PaymentMethod>;
    people?: Maybe<Array<Person>>;
    subscriptions: SubscriptionList;
    transactions: TransactionList;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type CustomerCreditNotesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerDiscountCouponsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerInvoicesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerLicenseUsersArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerSubscriptionsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerTransactionsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type CustomerList = {
    __typename?: 'CustomerList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Customer>;
    total: Scalars['Int'];
};
export type CustomerSession = {
    __typename?: 'CustomerSession';
    customer?: Maybe<Customer>;
    estimation?: Maybe<PriceEstimation>;
    fields?: Maybe<Array<AccountMetadataField>>;
    id: Scalars['ID'];
    payment?: Maybe<PaymentSession>;
    product?: Maybe<Product>;
    subscription?: Maybe<Subscription>;
};
export type CustomerSessionProduct = {
    __typename?: 'CustomerSessionProduct';
    canDowngradeTo: CustomerSessionProductList;
    canUpgradeTo: CustomerSessionProductList;
    currency: Scalars['Currency'];
    id: Scalars['ID'];
    name: Scalars['String'];
    nextProduct?: Maybe<CustomerSessionProduct>;
    plan: Plan;
    pricing: Array<Pricing>;
    sku: Scalars['String'];
};
export type CustomerSessionProductList = {
    __typename?: 'CustomerSessionProductList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<CustomerSessionProduct>;
    total: Scalars['Int'];
};
export type Discount = {
    __typename?: 'Discount';
    amount: Scalars['Float'];
    coupons: DiscountCouponList;
    createdAt?: Maybe<Scalars['Date']>;
    currency?: Maybe<Scalars['Currency']>;
    expirationDate?: Maybe<Scalars['Date']>;
    id: Scalars['ID'];
    isActive?: Maybe<Scalars['Boolean']>;
    maxPeriods?: Maybe<Scalars['Int']>;
    metadata?: Maybe<Scalars['JSON']>;
    name: Scalars['String'];
    type: DiscountType;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type DiscountCoupon = {
    __typename?: 'DiscountCoupon';
    code: Scalars['String'];
    createdAt?: Maybe<Scalars['Date']>;
    discount: Discount;
    id: Scalars['ID'];
    periodsLeft?: Maybe<Scalars['Int']>;
    redemptionDate?: Maybe<Scalars['Date']>;
    subscription?: Maybe<Subscription>;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type DiscountCouponList = {
    __typename?: 'DiscountCouponList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<DiscountCoupon>;
    total: Scalars['Int'];
};
export type DiscountList = {
    __typename?: 'DiscountList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Discount>;
    total: Scalars['Int'];
};
export declare enum DiscountType {
    Fixed = "FIXED",
    Percentage = "PERCENTAGE"
}
export type DowngradeSubscriptionInput = {
    applyProratedChargesNow?: InputMaybe<Scalars['Boolean']>;
    productId: Scalars['ID'];
};
export declare enum EndReason {
    Cancelled = "CANCELLED",
    Downgraded = "DOWNGRADED",
    Expired = "EXPIRED",
    Upgraded = "UPGRADED"
}
export type Event = {
    __typename?: 'Event';
    content?: Maybe<Scalars['JSON']>;
    createdAt?: Maybe<Scalars['Date']>;
    eventName: Scalars['String'];
    eventSource: Scalars['String'];
    expiresAt?: Maybe<Scalars['Date']>;
    id: Scalars['ID'];
    previousContent?: Maybe<Scalars['JSON']>;
};
export type EventList = {
    __typename?: 'EventList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Event>;
    total: Scalars['Int'];
};
export type FilterInput = {
    cursor?: InputMaybe<Scalars['String']>;
    filters?: InputMaybe<Scalars['JSON']>;
    keywords?: InputMaybe<Scalars['String']>;
    limit?: InputMaybe<Scalars['Int']>;
    sort?: InputMaybe<SortOrder>;
};
export type GetUploadUrlInput = {
    fileName: Scalars['String'];
    metadata?: InputMaybe<Scalars['JSON']>;
    type: UploadType;
};
export type InstallAppInput = {
    config?: InputMaybe<Scalars['JSON']>;
};
export type InviteMemberInput = {
    customerId?: InputMaybe<Scalars['ID']>;
    email: Scalars['String'];
    role: MemberRole;
};
export type Invoice = {
    __typename?: 'Invoice';
    billingPeriodEnd: Scalars['Date'];
    billingPeriodStart: Scalars['Date'];
    buyer: Billing;
    createdAt?: Maybe<Scalars['Date']>;
    creditNotes: CreditNoteList;
    currency: Scalars['Currency'];
    customer: Customer;
    discount?: Maybe<InvoiceDiscount>;
    dueDate: Scalars['Date'];
    file: Scalars['String'];
    fileFormat: InvoiceFormat;
    id: Scalars['ID'];
    items: Array<InvoiceItem>;
    locale?: Maybe<Scalars['String']>;
    metadata?: Maybe<Scalars['JSON']>;
    number: Scalars['String'];
    paymentDate?: Maybe<Scalars['Date']>;
    paymentTermDays?: Maybe<Scalars['Int']>;
    pdfFile?: Maybe<Scalars['String']>;
    seller: Billing;
    subscription?: Maybe<Subscription>;
    subtotal: Scalars['Float'];
    taxes?: Maybe<Array<InvoiceTaxItem>>;
    total: Scalars['Float'];
    transactions: TransactionList;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type InvoiceDiscount = {
    __typename?: 'InvoiceDiscount';
    amount: Scalars['Float'];
    description: Scalars['String'];
};
export type InvoiceExport = {
    __typename?: 'InvoiceExport';
    content: Scalars['String'];
};
export type InvoiceExportInput = {
    ids: Array<Scalars['ID']>;
};
export declare enum InvoiceFormat {
    Pdf = "PDF",
    Xrechnung = "XRECHNUNG",
    Zugferd = "ZUGFERD"
}
export type InvoiceItem = {
    __typename?: 'InvoiceItem';
    description: Scalars['String'];
    price: Scalars['Float'];
    quantity: Scalars['Float'];
    unitPrice: Scalars['Float'];
};
export type InvoiceItemInput = {
    description: Scalars['String'];
    price: Scalars['Float'];
    quantity: Scalars['Float'];
    unitPrice: Scalars['Float'];
};
export type InvoiceList = {
    __typename?: 'InvoiceList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<InvoiceListItem>;
    total: Scalars['Int'];
};
export type InvoiceListItem = {
    __typename?: 'InvoiceListItem';
    billingPeriodEnd: Scalars['Date'];
    billingPeriodStart: Scalars['Date'];
    buyer: Billing;
    createdAt?: Maybe<Scalars['Date']>;
    creditNotes: CreditNoteList;
    currency: Scalars['Currency'];
    customer: Customer;
    discount?: Maybe<InvoiceDiscount>;
    dueDate: Scalars['Date'];
    fileFormat: InvoiceFormat;
    id: Scalars['ID'];
    items: Array<InvoiceItem>;
    locale?: Maybe<Scalars['String']>;
    metadata?: Maybe<Scalars['JSON']>;
    number: Scalars['String'];
    paymentDate?: Maybe<Scalars['Date']>;
    paymentTermDays?: Maybe<Scalars['Int']>;
    seller: Billing;
    subscription?: Maybe<Subscription>;
    subtotal: Scalars['Float'];
    taxes?: Maybe<Array<InvoiceTaxItem>>;
    total: Scalars['Float'];
    transactions: TransactionList;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type InvoicePreview = {
    __typename?: 'InvoicePreview';
    content: Scalars['String'];
};
export type InvoiceTaxItem = {
    __typename?: 'InvoiceTaxItem';
    amount: Scalars['Float'];
    description: Scalars['String'];
    rate: Scalars['Float'];
};
export type InvoiceTaxItemInput = {
    amount: Scalars['Float'];
    description: Scalars['String'];
    rate: Scalars['Float'];
};
export type License = {
    __typename?: 'License';
    activations?: Maybe<Scalars['Int']>;
    activationsLeft?: Maybe<Scalars['Int']>;
    code?: Maybe<Scalars['String']>;
    createdAt?: Maybe<Scalars['Date']>;
    customer: Customer;
    expirationDate?: Maybe<Scalars['Date']>;
    id: Scalars['ID'];
    licenseUser?: Maybe<LicenseUser>;
    metadata?: Maybe<Scalars['JSON']>;
    status: LicenseStatus;
    subscription: Subscription;
    units?: Maybe<Array<Scalars['String']>>;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type LicenseList = {
    __typename?: 'LicenseList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<License>;
    total: Scalars['Int'];
};
export declare enum LicenseStatus {
    Active = "ACTIVE",
    Completed = "COMPLETED",
    Expired = "EXPIRED",
    Inactive = "INACTIVE",
    PendingCode = "PENDING_CODE",
    Unassigned = "UNASSIGNED"
}
export declare enum LicenseStatusInput {
    Active = "ACTIVE",
    Completed = "COMPLETED",
    Inactive = "INACTIVE"
}
export type LicenseUser = {
    __typename?: 'LicenseUser';
    createdAt?: Maybe<Scalars['Date']>;
    customer: Customer;
    id: Scalars['ID'];
    licenses: LicenseList;
    metadata?: Maybe<Scalars['JSON']>;
    name: Scalars['String'];
    updatedAt?: Maybe<Scalars['Date']>;
};
export type LicenseUserList = {
    __typename?: 'LicenseUserList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<LicenseUser>;
    total: Scalars['Int'];
};
export type Licensing = {
    __typename?: 'Licensing';
    codeLength?: Maybe<Scalars['Int']>;
    codeStrategy: LicensingCodeStrategy;
    expirationDate?: Maybe<Scalars['Date']>;
    isActive?: Maybe<Scalars['Boolean']>;
    maxActivations?: Maybe<Scalars['Int']>;
    maxDuration?: Maybe<Timeframe>;
};
export declare enum LicensingCodeStrategy {
    Alphanumeric = "ALPHANUMERIC",
    None = "NONE",
    Numeric = "NUMERIC"
}
export type LicensingInput = {
    codeLength?: InputMaybe<Scalars['Int']>;
    codeStrategy: LicensingCodeStrategy;
    expirationDate?: InputMaybe<Scalars['Date']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    maxActivations?: InputMaybe<Scalars['Int']>;
    maxDuration?: InputMaybe<TimeframeInput>;
};
export type Member = {
    __typename?: 'Member';
    account: Account;
    customer?: Maybe<Customer>;
    email?: Maybe<Scalars['String']>;
    id: Scalars['ID'];
    name: Scalars['String'];
    role: MemberRole;
};
export type MemberInvite = {
    __typename?: 'MemberInvite';
    customer?: Maybe<Customer>;
    email: Scalars['String'];
    role: MemberRole;
};
export type MemberInviteList = {
    __typename?: 'MemberInviteList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<MemberInvite>;
    total: Scalars['Int'];
};
export type MemberList = {
    __typename?: 'MemberList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Member>;
    total: Scalars['Int'];
};
export declare enum MemberRole {
    Admin = "ADMIN",
    Customer = "CUSTOMER"
}
export type Mutation = {
    __typename?: 'Mutation';
    acceptMemberInvite: Member;
    activateLicense: License;
    addAccountDomain: AccountDomainSettings;
    addDiscountCoupon: Discount;
    addPaymentMethod: PaymentMethod;
    addPaymentProvider: PaymentProvider;
    cancelSubscription: Subscription;
    createAccount: Account;
    createAnalyticsSessionToken: AnalyticsSessionToken;
    createApp: App;
    createCreditNote: CreditNote;
    createCustomer: Customer;
    createCustomerSession: CustomerSession;
    createDiscount: Discount;
    createInvoice: Invoice;
    createLicense: License;
    createLicenseUser: LicenseUser;
    createProduct: Product;
    createSubscription: Subscription;
    createTransaction: Transaction;
    downgradeSubscription: Subscription;
    exportCreditNotes: CreditNoteExport;
    exportInvoices: InvoiceExport;
    getUploadUrl: UploadUrl;
    installApp: AppInstance;
    inviteMember: MemberInvite;
    redeemDiscountCoupon: Discount;
    removeAccountDomain: AccountDomainSettings;
    removeDiscountCoupon: Discount;
    removeLicenseUser: LicenseUser;
    removeMember: Member;
    removePaymentMethod: PaymentMethod;
    removePaymentProvider: PaymentProvider;
    removeTransaction: Transaction;
    requestBankTransactionSync: BankTransactionSync;
    uninstallApp: AppInstance;
    updateAccount: Account;
    updateApp: App;
    updateBankTransaction: BankTransaction;
    updateCreditNote: CreditNote;
    updateCustomer: Customer;
    updateCustomerSession: CustomerSession;
    updateDiscount: Discount;
    updateInvoice: Invoice;
    updateLicense: License;
    updateLicenseUser: LicenseUser;
    updatePaymentProvider: PaymentProvider;
    updateProduct: Product;
    updateSubscription: Subscription;
    updateUser: User;
    upgradeSubscription: Subscription;
};
export type MutationAcceptMemberInviteArgs = {
    id: Scalars['ID'];
    input: AcceptMemberInviteInput;
};
export type MutationActivateLicenseArgs = {
    input: ActivateLicenseInput;
};
export type MutationAddAccountDomainArgs = {
    input?: InputMaybe<AddAccountDomainInput>;
};
export type MutationAddDiscountCouponArgs = {
    input: AddDiscountCouponInput;
};
export type MutationAddPaymentMethodArgs = {
    input: AddPaymentMethodInput;
};
export type MutationAddPaymentProviderArgs = {
    input: PaymentProviderInput;
};
export type MutationCancelSubscriptionArgs = {
    id: Scalars['ID'];
    input: CancelSubscriptionInput;
};
export type MutationCreateAccountArgs = {
    input: CreateAccountInput;
};
export type MutationCreateAppArgs = {
    input: CreateAppInput;
};
export type MutationCreateCreditNoteArgs = {
    input: CreateCreditNoteInput;
};
export type MutationCreateCustomerArgs = {
    input: CreateCustomerInput;
};
export type MutationCreateCustomerSessionArgs = {
    input?: InputMaybe<CreateCustomerSessionInput>;
};
export type MutationCreateDiscountArgs = {
    input: CreateDiscountInput;
};
export type MutationCreateInvoiceArgs = {
    input: CreateInvoiceInput;
};
export type MutationCreateLicenseArgs = {
    input: CreateLicenseInput;
};
export type MutationCreateLicenseUserArgs = {
    input: CreateLicenseUserInput;
};
export type MutationCreateProductArgs = {
    input: CreateProductInput;
};
export type MutationCreateSubscriptionArgs = {
    input: CreateSubscriptionInput;
};
export type MutationCreateTransactionArgs = {
    input: CreateTransactionInput;
};
export type MutationDowngradeSubscriptionArgs = {
    id: Scalars['ID'];
    input: DowngradeSubscriptionInput;
};
export type MutationExportCreditNotesArgs = {
    input?: InputMaybe<CreditNoteExportInput>;
};
export type MutationExportInvoicesArgs = {
    input?: InputMaybe<InvoiceExportInput>;
};
export type MutationGetUploadUrlArgs = {
    input: GetUploadUrlInput;
};
export type MutationInstallAppArgs = {
    id: Scalars['ID'];
    input?: InputMaybe<InstallAppInput>;
};
export type MutationInviteMemberArgs = {
    input: InviteMemberInput;
};
export type MutationRedeemDiscountCouponArgs = {
    input: RedeemDiscountCouponInput;
};
export type MutationRemoveDiscountCouponArgs = {
    id: Scalars['ID'];
};
export type MutationRemoveLicenseUserArgs = {
    id: Scalars['ID'];
};
export type MutationRemoveMemberArgs = {
    id: Scalars['ID'];
};
export type MutationRemovePaymentMethodArgs = {
    input: RemovePaymentMethodInput;
};
export type MutationRemovePaymentProviderArgs = {
    name: PaymentProviderName;
};
export type MutationRemoveTransactionArgs = {
    id: Scalars['ID'];
};
export type MutationUninstallAppArgs = {
    id: Scalars['ID'];
};
export type MutationUpdateAccountArgs = {
    input: UpdateAccountInput;
};
export type MutationUpdateAppArgs = {
    id: Scalars['ID'];
    input: UpdateAppInput;
};
export type MutationUpdateBankTransactionArgs = {
    id: Scalars['ID'];
    input: UpdateBankTransactionInput;
};
export type MutationUpdateCreditNoteArgs = {
    id: Scalars['ID'];
    input: UpdateCreditNoteInput;
};
export type MutationUpdateCustomerArgs = {
    id: Scalars['ID'];
    input: UpdateCustomerInput;
};
export type MutationUpdateCustomerSessionArgs = {
    id: Scalars['ID'];
    input?: InputMaybe<UpdateCustomerSessionInput>;
};
export type MutationUpdateDiscountArgs = {
    id: Scalars['ID'];
    input: UpdateDiscountInput;
};
export type MutationUpdateInvoiceArgs = {
    id: Scalars['ID'];
    input: UpdateInvoiceInput;
};
export type MutationUpdateLicenseArgs = {
    id: Scalars['ID'];
    input: UpdateLicenseInput;
};
export type MutationUpdateLicenseUserArgs = {
    id: Scalars['ID'];
    input: UpdateLicenseUserInput;
};
export type MutationUpdatePaymentProviderArgs = {
    input: PaymentProviderInput;
};
export type MutationUpdateProductArgs = {
    id: Scalars['ID'];
    input: UpdateProductInput;
};
export type MutationUpdateSubscriptionArgs = {
    id: Scalars['ID'];
    input: UpdateSubscriptionInput;
};
export type MutationUpdateUserArgs = {
    input: UpdateUserInput;
};
export type MutationUpgradeSubscriptionArgs = {
    id: Scalars['ID'];
    input: UpgradeSubscriptionInput;
};
export type PaymentMethod = {
    __typename?: 'PaymentMethod';
    externalId?: Maybe<Scalars['String']>;
    lastDigits?: Maybe<Scalars['String']>;
    metadata?: Maybe<Scalars['JSON']>;
    providerName?: Maybe<PaymentProviderName>;
    type: PaymentMethodType;
};
export declare enum PaymentMethodType {
    Card = "CARD",
    Cash = "CASH",
    SepaMandate = "SEPA_MANDATE",
    WireTransfer = "WIRE_TRANSFER"
}
export type PaymentProvider = {
    __typename?: 'PaymentProvider';
    config?: Maybe<Scalars['JSON']>;
    name: PaymentProviderName;
};
export type PaymentProviderInput = {
    config?: InputMaybe<Scalars['JSON']>;
    name: PaymentProviderName;
};
export declare enum PaymentProviderName {
    Banking = "BANKING",
    Manual = "MANUAL",
    Stripe = "STRIPE"
}
export type PaymentSession = {
    __typename?: 'PaymentSession';
    stripe?: Maybe<StripePaymentSession>;
};
export type Person = {
    __typename?: 'Person';
    email: Scalars['String'];
    firstName: Scalars['String'];
    lastName: Scalars['String'];
    metadata?: Maybe<Scalars['JSON']>;
    phoneNumber?: Maybe<Scalars['String']>;
    settings?: Maybe<PersonSettings>;
};
export type PersonCustomerPortalSettings = {
    __typename?: 'PersonCustomerPortalSettings';
    isActive?: Maybe<Scalars['Boolean']>;
};
export type PersonCustomerPortalSettingsInput = {
    isActive?: InputMaybe<Scalars['Boolean']>;
};
export type PersonEmailSettings = {
    __typename?: 'PersonEmailSettings';
    invoices?: Maybe<Scalars['Boolean']>;
    payments?: Maybe<Scalars['Boolean']>;
};
export type PersonEmailSettingsInput = {
    invoices?: InputMaybe<Scalars['Boolean']>;
    payments?: InputMaybe<Scalars['Boolean']>;
};
export type PersonInput = {
    email: Scalars['String'];
    firstName: Scalars['String'];
    lastName: Scalars['String'];
    metadata?: InputMaybe<Scalars['JSON']>;
    phoneNumber?: InputMaybe<Scalars['String']>;
    settings?: InputMaybe<PersonSettingsInput>;
};
export type PersonSettings = {
    __typename?: 'PersonSettings';
    customerPortal?: Maybe<PersonCustomerPortalSettings>;
    email?: Maybe<PersonEmailSettings>;
};
export type PersonSettingsInput = {
    customerPortal?: InputMaybe<PersonCustomerPortalSettingsInput>;
    email?: InputMaybe<PersonEmailSettingsInput>;
};
export type Plan = {
    __typename?: 'Plan';
    billingDay?: Maybe<Scalars['Int']>;
    billingTerms?: Maybe<BillingTerms>;
    cancellationNotice?: Maybe<Timeframe>;
    freeTrial?: Maybe<Timeframe>;
    maxDuration?: Maybe<Timeframe>;
    paymentTerms?: Maybe<Timeframe>;
    recurrency: Timeframe;
};
export type PlanInput = {
    billingDay?: InputMaybe<Scalars['Int']>;
    billingTerms?: InputMaybe<BillingTerms>;
    cancellationNotice?: InputMaybe<TimeframeInput>;
    endDate?: InputMaybe<Scalars['Date']>;
    freeTrial?: InputMaybe<TimeframeInput>;
    maxDuration?: InputMaybe<TimeframeInput>;
    paymentTerms?: InputMaybe<TimeframeInput>;
    recurrency?: InputMaybe<TimeframeInput>;
    startDate?: InputMaybe<Scalars['Date']>;
};
export type PriceEstimation = {
    __typename?: 'PriceEstimation';
    couponCode?: Maybe<Scalars['String']>;
    currency: Scalars['Currency'];
    discountAmount: Scalars['Float'];
    subtotalAmount: Scalars['Float'];
    taxAmount: Scalars['Float'];
    totalAmount: Scalars['Float'];
};
export type PriceEstimationInput = {
    applyProratedChargesNow?: InputMaybe<Scalars['Boolean']>;
    couponCode?: InputMaybe<Scalars['String']>;
    customerId: Scalars['ID'];
    productId?: InputMaybe<Scalars['ID']>;
    subscriptionId?: InputMaybe<Scalars['ID']>;
    usage?: InputMaybe<Array<SubscriptionUsageInput>>;
};
export type Pricing = {
    __typename?: 'Pricing';
    chargeOnce?: Maybe<Scalars['Boolean']>;
    description?: Maybe<Scalars['String']>;
    price?: Maybe<Scalars['Float']>;
    strategy: PricingStrategy;
    tiers: Array<PricingTier>;
    type: PricingType;
    unit?: Maybe<Scalars['String']>;
};
export type PricingInput = {
    chargeOnce?: InputMaybe<Scalars['Boolean']>;
    description?: InputMaybe<Scalars['String']>;
    price?: InputMaybe<Scalars['Float']>;
    strategy?: InputMaybe<PricingStrategy>;
    tiers?: InputMaybe<Array<TierInput>>;
    type: PricingType;
    unit?: InputMaybe<Scalars['String']>;
};
export declare enum PricingStrategy {
    Gradual = "GRADUAL",
    Simple = "SIMPLE",
    Volume = "VOLUME"
}
export type PricingTier = {
    __typename?: 'PricingTier';
    from: Scalars['Float'];
    price: Scalars['Float'];
    to?: Maybe<Scalars['Int']>;
};
export declare enum PricingType {
    Fixed = "FIXED",
    Usage = "USAGE"
}
export type Product = {
    __typename?: 'Product';
    addons: ProductList;
    canDowngradeTo: ProductList;
    canUpgradeTo: ProductList;
    capabilities?: Maybe<Array<ProductCapability>>;
    createdAt?: Maybe<Scalars['Date']>;
    currency: Scalars['Currency'];
    id: Scalars['ID'];
    isActive: Scalars['Boolean'];
    licensing?: Maybe<Licensing>;
    metadata?: Maybe<Scalars['JSON']>;
    name: Scalars['String'];
    nextProduct?: Maybe<Product>;
    plan: Plan;
    pricing: Array<Pricing>;
    sku: Scalars['String'];
    subscriptions: SubscriptionList;
    taxRateCode?: Maybe<TaxRateCode>;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type ProductCapability = {
    __typename?: 'ProductCapability';
    isActive: Scalars['Boolean'];
    name: Scalars['String'];
    usageLimit?: Maybe<Array<Maybe<SubscriptionUsage>>>;
};
export type ProductCapabilityInput = {
    isActive: Scalars['Boolean'];
    name: Scalars['String'];
    usageLimit?: InputMaybe<Array<InputMaybe<SubscriptionUsageInput>>>;
};
export type ProductCapabilitySettings = {
    __typename?: 'ProductCapabilitySettings';
    description: Scalars['String'];
    name: Scalars['String'];
    type: Scalars['String'];
};
export type ProductCapabilitySettingsInput = {
    description: Scalars['String'];
    name: Scalars['String'];
    type: Scalars['String'];
};
export type ProductList = {
    __typename?: 'ProductList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Product>;
    total: Scalars['Int'];
};
export type PublicApp = {
    __typename?: 'PublicApp';
    categories?: Maybe<Array<Scalars['String']>>;
    createdAt?: Maybe<Scalars['Date']>;
    description?: Maybe<Scalars['String']>;
    events?: Maybe<Array<Scalars['String']>>;
    id: Scalars['ID'];
    isInstalled: Scalars['Boolean'];
    logoUrl?: Maybe<Scalars['String']>;
    name: Scalars['String'];
    pageContent?: Maybe<Scalars['String']>;
    privacyUrl?: Maybe<Scalars['String']>;
    scopes?: Maybe<Array<Scope>>;
    tosUrl?: Maybe<Scalars['String']>;
};
export type PublicAppList = {
    __typename?: 'PublicAppList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<PublicApp>;
    total: Scalars['Int'];
};
export type Query = {
    __typename?: 'Query';
    account: Account;
    app: App;
    apps: AppList;
    bankAccounts: BankAccountList;
    bankTransactions: BankTransactionList;
    banks: BankList;
    creditNote: CreditNote;
    creditNotePreview: CreditNotePreview;
    creditNotes: CreditNoteList;
    customer: Customer;
    customers: CustomerList;
    discount: Discount;
    discounts: DiscountList;
    estimatePrice: PriceEstimation;
    events: EventList;
    installedApps: AppInstanceList;
    invoice: Invoice;
    invoicePreview: InvoicePreview;
    invoices: InvoiceList;
    license: License;
    licenseUser: LicenseUser;
    licenseUsers: LicenseUserList;
    licenses: LicenseList;
    memberInvites: MemberInviteList;
    members: MemberList;
    product: Product;
    products: ProductList;
    publicApp: PublicApp;
    publicApps: PublicAppList;
    subscription: Subscription;
    subscriptions: SubscriptionList;
    transaction: Transaction;
    transactions: TransactionList;
    user: User;
};
export type QueryAppArgs = {
    id?: InputMaybe<Scalars['ID']>;
};
export type QueryAppsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryBankTransactionsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryBanksArgs = {
    countryCode: Scalars['String'];
};
export type QueryCreditNoteArgs = {
    id: Scalars['ID'];
};
export type QueryCreditNotePreviewArgs = {
    id: Scalars['ID'];
};
export type QueryCreditNotesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryCustomerArgs = {
    id: Scalars['ID'];
};
export type QueryCustomersArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryDiscountArgs = {
    id: Scalars['ID'];
};
export type QueryDiscountsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryEstimatePriceArgs = {
    input?: InputMaybe<PriceEstimationInput>;
};
export type QueryEventsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryInstalledAppsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryInvoiceArgs = {
    id: Scalars['ID'];
};
export type QueryInvoicePreviewArgs = {
    id: Scalars['ID'];
};
export type QueryInvoicesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryLicenseArgs = {
    id: Scalars['ID'];
};
export type QueryLicenseUserArgs = {
    id: Scalars['ID'];
};
export type QueryLicenseUsersArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryLicensesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryMemberInvitesArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryMembersArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryProductArgs = {
    id: Scalars['ID'];
};
export type QueryProductsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryPublicAppArgs = {
    id: Scalars['ID'];
};
export type QueryPublicAppsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QuerySubscriptionArgs = {
    id: Scalars['ID'];
};
export type QuerySubscriptionsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type QueryTransactionArgs = {
    id: Scalars['ID'];
};
export type QueryTransactionsArgs = {
    filters?: InputMaybe<FilterInput>;
};
export type RedeemDiscountCouponInput = {
    code: Scalars['String'];
    subscriptionId: Scalars['ID'];
};
export type RemovePaymentMethodInput = {
    customerId: Scalars['ID'];
};
export declare enum Scope {
    BankingRead = "BANKING_READ",
    BankingWrite = "BANKING_WRITE",
    CustomerRead = "CUSTOMER_READ",
    CustomerWrite = "CUSTOMER_WRITE",
    DiscountRead = "DISCOUNT_READ",
    DiscountWrite = "DISCOUNT_WRITE",
    FullAccess = "FULL_ACCESS",
    InvoicingRead = "INVOICING_READ",
    InvoicingWrite = "INVOICING_WRITE",
    LicenseActivate = "LICENSE_ACTIVATE",
    LicenseRead = "LICENSE_READ",
    LicenseUserRead = "LICENSE_USER_READ",
    LicenseUserWrite = "LICENSE_USER_WRITE",
    LicenseWrite = "LICENSE_WRITE",
    OfflineAccess = "OFFLINE_ACCESS",
    Openid = "OPENID",
    ProductRead = "PRODUCT_READ",
    ProductWrite = "PRODUCT_WRITE",
    Profile = "PROFILE",
    SubscriptionRead = "SUBSCRIPTION_READ",
    SubscriptionWrite = "SUBSCRIPTION_WRITE",
    TransactionRead = "TRANSACTION_READ",
    TransactionWrite = "TRANSACTION_WRITE"
}
export declare enum SortOrder {
    Ascending = "ASCENDING",
    Descending = "DESCENDING"
}
export type StripePaymentSession = {
    __typename?: 'StripePaymentSession';
    clientSecret: Scalars['String'];
    publishableKey: Scalars['String'];
    stripeAccountId: Scalars['String'];
    stripeCustomerId: Scalars['String'];
};
export type Subscription = {
    __typename?: 'Subscription';
    billing?: Maybe<Billing>;
    createdAt?: Maybe<Scalars['Date']>;
    customer: Customer;
    discountCoupon?: Maybe<DiscountCoupon>;
    endDate?: Maybe<Scalars['Date']>;
    endReason?: Maybe<EndReason>;
    freeTrialEndDate?: Maybe<Scalars['Date']>;
    freeTrialStartDate?: Maybe<Scalars['Date']>;
    id: Scalars['ID'];
    isActive: Scalars['Boolean'];
    lastCancellationDate?: Maybe<Scalars['Date']>;
    metadata?: Maybe<Scalars['JSON']>;
    nextCharge?: Maybe<Scalars['Float']>;
    paymentMethod?: Maybe<PaymentMethod>;
    product: Product;
    renewalDate?: Maybe<Scalars['Date']>;
    startDate?: Maybe<Scalars['Date']>;
    updatedAt?: Maybe<Scalars['Date']>;
    usage?: Maybe<Array<SubscriptionUsage>>;
};
export type SubscriptionList = {
    __typename?: 'SubscriptionList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Subscription>;
    total: Scalars['Int'];
};
export type SubscriptionUsage = {
    __typename?: 'SubscriptionUsage';
    amount: Scalars['Float'];
    unit: Scalars['String'];
};
export type SubscriptionUsageInput = {
    amount: Scalars['Float'];
    unit: Scalars['String'];
};
export type TaxId = {
    __typename?: 'TaxId';
    countryCode?: Maybe<Scalars['String']>;
    type: TaxIdType;
    value: Scalars['String'];
};
export type TaxIdInput = {
    countryCode?: InputMaybe<Scalars['String']>;
    type: TaxIdType;
    value: Scalars['String'];
};
export declare enum TaxIdType {
    ArCuit = "AR_CUIT",
    ChUid = "CH_UID",
    CoNit = "CO_NIT",
    EuVatId = "EU_VAT_ID",
    LiUid = "LI_UID",
    MxRfc = "MX_RFC",
    NoVat = "NO_VAT",
    OtherTaxId = "OTHER_TAX_ID",
    UkVatId = "UK_VAT_ID",
    UsEin = "US_EIN"
}
export declare enum TaxRateCode {
    EuVatEbook = "EU_VAT_EBOOK",
    EuVatEnews = "EU_VAT_ENEWS",
    EuVatEpub = "EU_VAT_EPUB",
    EuVatExempt = "EU_VAT_EXEMPT",
    EuVatReverseCharge = "EU_VAT_REVERSE_CHARGE",
    EuVatStandard = "EU_VAT_STANDARD",
    None = "NONE"
}
export type TierInput = {
    from: Scalars['Int'];
    price: Scalars['Float'];
    to?: InputMaybe<Scalars['Int']>;
};
export declare enum TimeUnit {
    Day = "DAY",
    Month = "MONTH",
    Once = "ONCE",
    Quarter = "QUARTER",
    Week = "WEEK",
    Year = "YEAR"
}
export type Timeframe = {
    __typename?: 'Timeframe';
    amount?: Maybe<Scalars['Float']>;
    unit?: Maybe<TimeUnit>;
};
export type TimeframeInput = {
    amount?: InputMaybe<Scalars['Float']>;
    unit?: InputMaybe<TimeUnit>;
};
export type Transaction = {
    __typename?: 'Transaction';
    amount: Scalars['Float'];
    createdAt: Scalars['Date'];
    creditNote?: Maybe<CreditNote>;
    currency: Scalars['Currency'];
    customer: Customer;
    id: Scalars['ID'];
    invoice?: Maybe<Invoice>;
    metadata?: Maybe<Scalars['JSON']>;
    paymentMethod: PaymentMethod;
    reference?: Maybe<Scalars['String']>;
    type: TransactionType;
    updatedAt?: Maybe<Scalars['Date']>;
};
export type TransactionList = {
    __typename?: 'TransactionList';
    count: Scalars['Int'];
    cursor?: Maybe<Scalars['String']>;
    items: Array<Transaction>;
    total: Scalars['Int'];
};
export declare enum TransactionType {
    Payment = "PAYMENT",
    Refund = "REFUND"
}
export type UpdateAccountInput = {
    billing?: InputMaybe<BillingInput>;
    isProduction?: InputMaybe<Scalars['Boolean']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name?: InputMaybe<Scalars['String']>;
    settings?: InputMaybe<AccountSettingsInput>;
};
export type UpdateApiClientInput = {
    redirectUrls?: InputMaybe<Array<Scalars['String']>>;
    scopes?: InputMaybe<Array<Scope>>;
    secret?: InputMaybe<Scalars['String']>;
};
export type UpdateAppInput = {
    accountIds?: InputMaybe<Array<Scalars['String']>>;
    apiClient?: InputMaybe<UpdateApiClientInput>;
    contactEmail?: InputMaybe<Scalars['String']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    logoUrl?: InputMaybe<Scalars['String']>;
    name?: InputMaybe<Scalars['String']>;
    privacyUrl?: InputMaybe<Scalars['String']>;
    tosUrl?: InputMaybe<Scalars['String']>;
    webhooks?: InputMaybe<UpdateWebhookInput>;
};
export type UpdateBankTransactionInput = {
    ignoreDebtor?: InputMaybe<Scalars['Boolean']>;
    invoiceId?: InputMaybe<Scalars['String']>;
    isIgnored?: InputMaybe<Scalars['Boolean']>;
};
export type UpdateCreditNoteInput = {
    metadata?: InputMaybe<Scalars['JSON']>;
};
export type UpdateCustomerInput = {
    billing?: InputMaybe<BillingInput>;
    currency?: InputMaybe<Scalars['Currency']>;
    locale?: InputMaybe<Scalars['String']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name?: InputMaybe<Scalars['String']>;
    paymentMethod?: InputMaybe<UpdatePaymentMethodInput>;
    people?: InputMaybe<Array<PersonInput>>;
};
export type UpdateCustomerSessionInput = {
    couponCode?: InputMaybe<Scalars['String']>;
    customer?: InputMaybe<UpdateCustomerInput>;
    isConfirmed?: InputMaybe<Scalars['Boolean']>;
    productId?: InputMaybe<Scalars['ID']>;
    subscriptionId?: InputMaybe<Scalars['ID']>;
    usage?: InputMaybe<Array<SubscriptionUsageInput>>;
};
export type UpdateDiscountInput = {
    isActive?: InputMaybe<Scalars['Boolean']>;
    metadata?: InputMaybe<Scalars['JSON']>;
};
export type UpdateInvoiceInput = {
    metadata?: InputMaybe<Scalars['JSON']>;
};
export type UpdateLicenseInput = {
    code?: InputMaybe<Scalars['String']>;
    licenseUserId?: InputMaybe<Scalars['ID']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    status?: InputMaybe<LicenseStatusInput>;
};
export type UpdateLicenseUserInput = {
    metadata?: InputMaybe<Scalars['JSON']>;
    name: Scalars['String'];
};
export type UpdatePaymentMethodInput = {
    externalId?: InputMaybe<Scalars['String']>;
    lastDigits?: InputMaybe<Scalars['String']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    providerName?: InputMaybe<PaymentProviderName>;
    type: PaymentMethodType;
};
export type UpdateProductInput = {
    addons?: InputMaybe<Array<Scalars['String']>>;
    applyToAllSubscriptions?: InputMaybe<Scalars['Boolean']>;
    canDowngradeTo?: InputMaybe<Array<Scalars['String']>>;
    canUpgradeTo?: InputMaybe<Array<Scalars['String']>>;
    capabilities?: InputMaybe<Array<ProductCapabilityInput>>;
    currency?: InputMaybe<Scalars['Currency']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
    licensing?: InputMaybe<LicensingInput>;
    metadata?: InputMaybe<Scalars['JSON']>;
    name?: InputMaybe<Scalars['String']>;
    nextProductId?: InputMaybe<Scalars['String']>;
    plan?: InputMaybe<PlanInput>;
    pricing?: InputMaybe<Array<PricingInput>>;
    sku?: InputMaybe<Scalars['String']>;
    taxRateCode?: InputMaybe<TaxRateCode>;
};
export type UpdateSubscriptionInput = {
    applyProratedChargesNow?: InputMaybe<Scalars['Boolean']>;
    couponCode?: InputMaybe<Scalars['String']>;
    endDate?: InputMaybe<Scalars['Date']>;
    freeTrialEndDate?: InputMaybe<Scalars['Date']>;
    freeTrialStartDate?: InputMaybe<Scalars['Date']>;
    metadata?: InputMaybe<Scalars['JSON']>;
    product?: InputMaybe<UpdateSubscriptionProductInput>;
    startDate?: InputMaybe<Scalars['Date']>;
    usage?: InputMaybe<Array<SubscriptionUsageInput>>;
};
export type UpdateSubscriptionProductInput = {
    addons?: InputMaybe<Array<Scalars['String']>>;
    canDowngradeTo?: InputMaybe<Array<Scalars['String']>>;
    canUpgradeTo?: InputMaybe<Array<Scalars['String']>>;
    capabilities?: InputMaybe<Array<ProductCapabilityInput>>;
    currency?: InputMaybe<Scalars['Currency']>;
    licensing?: InputMaybe<LicensingInput>;
    nextProductId?: InputMaybe<Scalars['String']>;
    plan?: InputMaybe<PlanInput>;
    pricing?: InputMaybe<Array<PricingInput>>;
};
export type UpdateUserInput = {
    currency?: InputMaybe<Scalars['Currency']>;
    email?: InputMaybe<Scalars['String']>;
    firstName?: InputMaybe<Scalars['String']>;
    lastName?: InputMaybe<Scalars['String']>;
    locale?: InputMaybe<Scalars['String']>;
    theme?: InputMaybe<Scalars['String']>;
};
export type UpdateWebhookInput = {
    endpoint?: InputMaybe<Scalars['String']>;
    events?: InputMaybe<Array<Scalars['String']>>;
    headers?: InputMaybe<Scalars['JSON']>;
    isActive?: InputMaybe<Scalars['Boolean']>;
};
export type UpgradeSubscriptionInput = {
    applyProratedChargesNow?: InputMaybe<Scalars['Boolean']>;
    productId: Scalars['ID'];
};
export declare enum UploadType {
    Image = "IMAGE",
    Import = "IMPORT"
}
export type UploadUrl = {
    __typename?: 'UploadUrl';
    fields?: Maybe<Scalars['JSON']>;
    file: Scalars['String'];
    uploadUrl: Scalars['String'];
};
export type User = {
    __typename?: 'User';
    currency?: Maybe<Scalars['Currency']>;
    email: Scalars['String'];
    firstName?: Maybe<Scalars['String']>;
    id: Scalars['ID'];
    lastName?: Maybe<Scalars['String']>;
    locale?: Maybe<Scalars['String']>;
    memberships: Array<Member>;
    theme?: Maybe<Scalars['String']>;
};
export type Webhook = {
    __typename?: 'Webhook';
    endpoint: Scalars['String'];
    events: Array<Scalars['String']>;
    headers?: Maybe<Scalars['JSON']>;
    isActive?: Maybe<Scalars['Boolean']>;
};
export type _ = {
    _?: InputMaybe<Scalars['Boolean']>;
};
export type AccountMetadataFieldFragmentFragment = {
    __typename?: 'AccountMetadataField';
    name: string;
    type: string;
    description: string;
    label?: string | null;
    required: boolean;
    format?: string | null;
    default?: string | null;
    isPersonalInformation?: boolean | null;
    displayInInvoices?: boolean | null;
    displayInCheckoutStep?: string | null;
    options?: Array<{
        __typename?: 'AccountMetadataOptionField';
        label: string;
        value: string;
    }> | null;
};
export type AccountFragmentFragment = {
    __typename?: 'Account';
    id: string;
    name: string;
    isProduction?: boolean | null;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    billing?: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    } | null;
    settings: {
        __typename?: 'AccountSettings';
        domain: {
            __typename?: 'AccountDomainSettings';
            name: string;
            config?: {
                __typename?: 'AccountDomainConfigSettings';
                hostname: string;
                isVerified: boolean;
                verificationRecord: {
                    __typename?: 'AccountDomainConfigVerificationSettings';
                    name: string;
                    value: string;
                };
            } | null;
        };
        analytics?: {
            __typename?: 'AccountAnalyticsSettings';
            dashboardId?: string | null;
            isAvailableInGlobalDashboard?: boolean | null;
        } | null;
        theme?: {
            __typename?: 'AccountThemeSettings';
            light?: {
                __typename?: 'AccountTheme';
                logoUrl?: string | null;
            } | null;
            dark?: {
                __typename?: 'AccountTheme';
                logoUrl?: string | null;
            } | null;
        } | null;
        billing: {
            __typename?: 'AccountBillingSettings';
            taxSchemes?: Array<string> | null;
            logoUrl?: string | null;
            footerText?: string | null;
            customTaxRate?: {
                __typename?: 'CustomTaxRate';
                description: string;
                rate: number;
                code: string;
            } | null;
            numberingFormat?: {
                __typename?: 'AccountBillingSettingsNumberingFormat';
                invoice?: string | null;
                creditNote?: string | null;
            } | null;
            invoiceFormat?: {
                __typename?: 'AccountBillingSettingsInvoiceFormat';
                default: InvoiceFormat;
                rules?: Array<{
                    __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                    countryCode: string;
                    format: InvoiceFormat;
                }> | null;
            } | null;
        };
        payments?: {
            __typename?: 'AccountPaymentSettings';
            paymentMethods?: Array<{
                __typename?: 'AccountPaymentMethodSettings';
                type: PaymentMethodType;
                providerName: PaymentProviderName;
                isActive: boolean;
            }> | null;
            providers?: Array<{
                __typename?: 'PaymentProvider';
                name: PaymentProviderName;
                config?: any | null;
            }> | null;
        } | null;
        metadata?: {
            __typename?: 'AccountMetadataSettings';
            customer?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            invoice?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            creditNote?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            licenseUser?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            license?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            product?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            subscription?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            transaction?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            billingProfile?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
            person?: Array<{
                __typename?: 'AccountMetadataField';
                name: string;
                type: string;
                description: string;
                label?: string | null;
                required: boolean;
                format?: string | null;
                default?: string | null;
                isPersonalInformation?: boolean | null;
                displayInInvoices?: boolean | null;
                displayInCheckoutStep?: string | null;
                options?: Array<{
                    __typename?: 'AccountMetadataOptionField';
                    label: string;
                    value: string;
                }> | null;
            }> | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapabilitySettings';
            name: string;
            type: string;
            description: string;
        }> | null;
    };
    capabilities: {
        __typename?: 'AccountCapabilities';
        canManageLicenses?: boolean | null;
        canBill?: boolean | null;
        canCreateApps?: boolean | null;
        hasCustomerPortal?: boolean | null;
        hasCheckout?: boolean | null;
        canCreateCustomDomains?: boolean | null;
        canInviteMembers?: boolean | null;
        canCustomizeFields?: boolean | null;
        hasCancellationNotice?: boolean | null;
        hasAnalytics?: boolean | null;
        hasIntegrations?: boolean | null;
    };
};
export type MemberFragmentFragment = {
    __typename?: 'Member';
    id: string;
    name: string;
    role: MemberRole;
    email?: string | null;
    account: {
        __typename?: 'Account';
        id: string;
        name: string;
        isProduction?: boolean | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        settings: {
            __typename?: 'AccountSettings';
            domain: {
                __typename?: 'AccountDomainSettings';
                name: string;
                config?: {
                    __typename?: 'AccountDomainConfigSettings';
                    hostname: string;
                    isVerified: boolean;
                    verificationRecord: {
                        __typename?: 'AccountDomainConfigVerificationSettings';
                        name: string;
                        value: string;
                    };
                } | null;
            };
            analytics?: {
                __typename?: 'AccountAnalyticsSettings';
                dashboardId?: string | null;
                isAvailableInGlobalDashboard?: boolean | null;
            } | null;
            theme?: {
                __typename?: 'AccountThemeSettings';
                light?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
                dark?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
            } | null;
            billing: {
                __typename?: 'AccountBillingSettings';
                taxSchemes?: Array<string> | null;
                logoUrl?: string | null;
                footerText?: string | null;
                customTaxRate?: {
                    __typename?: 'CustomTaxRate';
                    description: string;
                    rate: number;
                    code: string;
                } | null;
                numberingFormat?: {
                    __typename?: 'AccountBillingSettingsNumberingFormat';
                    invoice?: string | null;
                    creditNote?: string | null;
                } | null;
                invoiceFormat?: {
                    __typename?: 'AccountBillingSettingsInvoiceFormat';
                    default: InvoiceFormat;
                    rules?: Array<{
                        __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                        countryCode: string;
                        format: InvoiceFormat;
                    }> | null;
                } | null;
            };
            payments?: {
                __typename?: 'AccountPaymentSettings';
                paymentMethods?: Array<{
                    __typename?: 'AccountPaymentMethodSettings';
                    type: PaymentMethodType;
                    providerName: PaymentProviderName;
                    isActive: boolean;
                }> | null;
                providers?: Array<{
                    __typename?: 'PaymentProvider';
                    name: PaymentProviderName;
                    config?: any | null;
                }> | null;
            } | null;
            metadata?: {
                __typename?: 'AccountMetadataSettings';
                customer?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                invoice?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                creditNote?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                licenseUser?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                license?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                product?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                subscription?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                transaction?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                billingProfile?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                person?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapabilitySettings';
                name: string;
                type: string;
                description: string;
            }> | null;
        };
        capabilities: {
            __typename?: 'AccountCapabilities';
            canManageLicenses?: boolean | null;
            canBill?: boolean | null;
            canCreateApps?: boolean | null;
            hasCustomerPortal?: boolean | null;
            hasCheckout?: boolean | null;
            canCreateCustomDomains?: boolean | null;
            canInviteMembers?: boolean | null;
            canCustomizeFields?: boolean | null;
            hasCancellationNotice?: boolean | null;
            hasAnalytics?: boolean | null;
            hasIntegrations?: boolean | null;
        };
    };
    customer?: {
        __typename?: 'Customer';
        id: string;
        name: string;
    } | null;
};
export type MemberInviteFragmentFragment = {
    __typename?: 'MemberInvite';
    email: string;
    role: MemberRole;
    customer?: {
        __typename?: 'Customer';
        id: string;
        name: string;
    } | null;
};
export type CreateAccountMutationVariables = Exact<{
    input: CreateAccountInput;
}>;
export type CreateAccountMutation = {
    __typename?: 'Mutation';
    createAccount: {
        __typename?: 'Account';
        id: string;
        name: string;
        isProduction?: boolean | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        settings: {
            __typename?: 'AccountSettings';
            domain: {
                __typename?: 'AccountDomainSettings';
                name: string;
                config?: {
                    __typename?: 'AccountDomainConfigSettings';
                    hostname: string;
                    isVerified: boolean;
                    verificationRecord: {
                        __typename?: 'AccountDomainConfigVerificationSettings';
                        name: string;
                        value: string;
                    };
                } | null;
            };
            analytics?: {
                __typename?: 'AccountAnalyticsSettings';
                dashboardId?: string | null;
                isAvailableInGlobalDashboard?: boolean | null;
            } | null;
            theme?: {
                __typename?: 'AccountThemeSettings';
                light?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
                dark?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
            } | null;
            billing: {
                __typename?: 'AccountBillingSettings';
                taxSchemes?: Array<string> | null;
                logoUrl?: string | null;
                footerText?: string | null;
                customTaxRate?: {
                    __typename?: 'CustomTaxRate';
                    description: string;
                    rate: number;
                    code: string;
                } | null;
                numberingFormat?: {
                    __typename?: 'AccountBillingSettingsNumberingFormat';
                    invoice?: string | null;
                    creditNote?: string | null;
                } | null;
                invoiceFormat?: {
                    __typename?: 'AccountBillingSettingsInvoiceFormat';
                    default: InvoiceFormat;
                    rules?: Array<{
                        __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                        countryCode: string;
                        format: InvoiceFormat;
                    }> | null;
                } | null;
            };
            payments?: {
                __typename?: 'AccountPaymentSettings';
                paymentMethods?: Array<{
                    __typename?: 'AccountPaymentMethodSettings';
                    type: PaymentMethodType;
                    providerName: PaymentProviderName;
                    isActive: boolean;
                }> | null;
                providers?: Array<{
                    __typename?: 'PaymentProvider';
                    name: PaymentProviderName;
                    config?: any | null;
                }> | null;
            } | null;
            metadata?: {
                __typename?: 'AccountMetadataSettings';
                customer?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                invoice?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                creditNote?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                licenseUser?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                license?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                product?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                subscription?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                transaction?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                billingProfile?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                person?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapabilitySettings';
                name: string;
                type: string;
                description: string;
            }> | null;
        };
        capabilities: {
            __typename?: 'AccountCapabilities';
            canManageLicenses?: boolean | null;
            canBill?: boolean | null;
            canCreateApps?: boolean | null;
            hasCustomerPortal?: boolean | null;
            hasCheckout?: boolean | null;
            canCreateCustomDomains?: boolean | null;
            canInviteMembers?: boolean | null;
            canCustomizeFields?: boolean | null;
            hasCancellationNotice?: boolean | null;
            hasAnalytics?: boolean | null;
            hasIntegrations?: boolean | null;
        };
    };
};
export type UpdateAccountMutationVariables = Exact<{
    input: UpdateAccountInput;
}>;
export type UpdateAccountMutation = {
    __typename?: 'Mutation';
    updateAccount: {
        __typename?: 'Account';
        id: string;
        name: string;
        isProduction?: boolean | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        settings: {
            __typename?: 'AccountSettings';
            domain: {
                __typename?: 'AccountDomainSettings';
                name: string;
                config?: {
                    __typename?: 'AccountDomainConfigSettings';
                    hostname: string;
                    isVerified: boolean;
                    verificationRecord: {
                        __typename?: 'AccountDomainConfigVerificationSettings';
                        name: string;
                        value: string;
                    };
                } | null;
            };
            analytics?: {
                __typename?: 'AccountAnalyticsSettings';
                dashboardId?: string | null;
                isAvailableInGlobalDashboard?: boolean | null;
            } | null;
            theme?: {
                __typename?: 'AccountThemeSettings';
                light?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
                dark?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
            } | null;
            billing: {
                __typename?: 'AccountBillingSettings';
                taxSchemes?: Array<string> | null;
                logoUrl?: string | null;
                footerText?: string | null;
                customTaxRate?: {
                    __typename?: 'CustomTaxRate';
                    description: string;
                    rate: number;
                    code: string;
                } | null;
                numberingFormat?: {
                    __typename?: 'AccountBillingSettingsNumberingFormat';
                    invoice?: string | null;
                    creditNote?: string | null;
                } | null;
                invoiceFormat?: {
                    __typename?: 'AccountBillingSettingsInvoiceFormat';
                    default: InvoiceFormat;
                    rules?: Array<{
                        __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                        countryCode: string;
                        format: InvoiceFormat;
                    }> | null;
                } | null;
            };
            payments?: {
                __typename?: 'AccountPaymentSettings';
                paymentMethods?: Array<{
                    __typename?: 'AccountPaymentMethodSettings';
                    type: PaymentMethodType;
                    providerName: PaymentProviderName;
                    isActive: boolean;
                }> | null;
                providers?: Array<{
                    __typename?: 'PaymentProvider';
                    name: PaymentProviderName;
                    config?: any | null;
                }> | null;
            } | null;
            metadata?: {
                __typename?: 'AccountMetadataSettings';
                customer?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                invoice?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                creditNote?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                licenseUser?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                license?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                product?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                subscription?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                transaction?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                billingProfile?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                person?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapabilitySettings';
                name: string;
                type: string;
                description: string;
            }> | null;
        };
        capabilities: {
            __typename?: 'AccountCapabilities';
            canManageLicenses?: boolean | null;
            canBill?: boolean | null;
            canCreateApps?: boolean | null;
            hasCustomerPortal?: boolean | null;
            hasCheckout?: boolean | null;
            canCreateCustomDomains?: boolean | null;
            canInviteMembers?: boolean | null;
            canCustomizeFields?: boolean | null;
            hasCancellationNotice?: boolean | null;
            hasAnalytics?: boolean | null;
            hasIntegrations?: boolean | null;
        };
    };
};
export type GetAccountQueryVariables = Exact<{
    [key: string]: never;
}>;
export type GetAccountQuery = {
    __typename?: 'Query';
    account: {
        __typename?: 'Account';
        id: string;
        name: string;
        isProduction?: boolean | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        settings: {
            __typename?: 'AccountSettings';
            domain: {
                __typename?: 'AccountDomainSettings';
                name: string;
                config?: {
                    __typename?: 'AccountDomainConfigSettings';
                    hostname: string;
                    isVerified: boolean;
                    verificationRecord: {
                        __typename?: 'AccountDomainConfigVerificationSettings';
                        name: string;
                        value: string;
                    };
                } | null;
            };
            analytics?: {
                __typename?: 'AccountAnalyticsSettings';
                dashboardId?: string | null;
                isAvailableInGlobalDashboard?: boolean | null;
            } | null;
            theme?: {
                __typename?: 'AccountThemeSettings';
                light?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
                dark?: {
                    __typename?: 'AccountTheme';
                    logoUrl?: string | null;
                } | null;
            } | null;
            billing: {
                __typename?: 'AccountBillingSettings';
                taxSchemes?: Array<string> | null;
                logoUrl?: string | null;
                footerText?: string | null;
                customTaxRate?: {
                    __typename?: 'CustomTaxRate';
                    description: string;
                    rate: number;
                    code: string;
                } | null;
                numberingFormat?: {
                    __typename?: 'AccountBillingSettingsNumberingFormat';
                    invoice?: string | null;
                    creditNote?: string | null;
                } | null;
                invoiceFormat?: {
                    __typename?: 'AccountBillingSettingsInvoiceFormat';
                    default: InvoiceFormat;
                    rules?: Array<{
                        __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                        countryCode: string;
                        format: InvoiceFormat;
                    }> | null;
                } | null;
            };
            payments?: {
                __typename?: 'AccountPaymentSettings';
                paymentMethods?: Array<{
                    __typename?: 'AccountPaymentMethodSettings';
                    type: PaymentMethodType;
                    providerName: PaymentProviderName;
                    isActive: boolean;
                }> | null;
                providers?: Array<{
                    __typename?: 'PaymentProvider';
                    name: PaymentProviderName;
                    config?: any | null;
                }> | null;
            } | null;
            metadata?: {
                __typename?: 'AccountMetadataSettings';
                customer?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                invoice?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                creditNote?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                licenseUser?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                license?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                product?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                subscription?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                transaction?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                billingProfile?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
                person?: Array<{
                    __typename?: 'AccountMetadataField';
                    name: string;
                    type: string;
                    description: string;
                    label?: string | null;
                    required: boolean;
                    format?: string | null;
                    default?: string | null;
                    isPersonalInformation?: boolean | null;
                    displayInInvoices?: boolean | null;
                    displayInCheckoutStep?: string | null;
                    options?: Array<{
                        __typename?: 'AccountMetadataOptionField';
                        label: string;
                        value: string;
                    }> | null;
                }> | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapabilitySettings';
                name: string;
                type: string;
                description: string;
            }> | null;
        };
        capabilities: {
            __typename?: 'AccountCapabilities';
            canManageLicenses?: boolean | null;
            canBill?: boolean | null;
            canCreateApps?: boolean | null;
            hasCustomerPortal?: boolean | null;
            hasCheckout?: boolean | null;
            canCreateCustomDomains?: boolean | null;
            canInviteMembers?: boolean | null;
            canCustomizeFields?: boolean | null;
            hasCancellationNotice?: boolean | null;
            hasAnalytics?: boolean | null;
            hasIntegrations?: boolean | null;
        };
    };
};
export type InviteMemberMutationVariables = Exact<{
    input: InviteMemberInput;
}>;
export type InviteMemberMutation = {
    __typename?: 'Mutation';
    inviteMember: {
        __typename?: 'MemberInvite';
        email: string;
        role: MemberRole;
    };
};
export type AcceptMemberInviteMutationVariables = Exact<{
    id: Scalars['ID'];
    input: AcceptMemberInviteInput;
}>;
export type AcceptMemberInviteMutation = {
    __typename?: 'Mutation';
    acceptMemberInvite: {
        __typename?: 'Member';
        name: string;
        role: MemberRole;
    };
};
export type RemoveMemberMutationVariables = Exact<{
    id: Scalars['ID'];
}>;
export type RemoveMemberMutation = {
    __typename?: 'Mutation';
    removeMember: {
        __typename?: 'Member';
        name: string;
        role: MemberRole;
    };
};
export type ListMembersQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListMembersQuery = {
    __typename?: 'Query';
    members: {
        __typename?: 'MemberList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Member';
            id: string;
            name: string;
            role: MemberRole;
            email?: string | null;
            account: {
                __typename?: 'Account';
                id: string;
                name: string;
                isProduction?: boolean | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                settings: {
                    __typename?: 'AccountSettings';
                    domain: {
                        __typename?: 'AccountDomainSettings';
                        name: string;
                        config?: {
                            __typename?: 'AccountDomainConfigSettings';
                            hostname: string;
                            isVerified: boolean;
                            verificationRecord: {
                                __typename?: 'AccountDomainConfigVerificationSettings';
                                name: string;
                                value: string;
                            };
                        } | null;
                    };
                    analytics?: {
                        __typename?: 'AccountAnalyticsSettings';
                        dashboardId?: string | null;
                        isAvailableInGlobalDashboard?: boolean | null;
                    } | null;
                    theme?: {
                        __typename?: 'AccountThemeSettings';
                        light?: {
                            __typename?: 'AccountTheme';
                            logoUrl?: string | null;
                        } | null;
                        dark?: {
                            __typename?: 'AccountTheme';
                            logoUrl?: string | null;
                        } | null;
                    } | null;
                    billing: {
                        __typename?: 'AccountBillingSettings';
                        taxSchemes?: Array<string> | null;
                        logoUrl?: string | null;
                        footerText?: string | null;
                        customTaxRate?: {
                            __typename?: 'CustomTaxRate';
                            description: string;
                            rate: number;
                            code: string;
                        } | null;
                        numberingFormat?: {
                            __typename?: 'AccountBillingSettingsNumberingFormat';
                            invoice?: string | null;
                            creditNote?: string | null;
                        } | null;
                        invoiceFormat?: {
                            __typename?: 'AccountBillingSettingsInvoiceFormat';
                            default: InvoiceFormat;
                            rules?: Array<{
                                __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                                countryCode: string;
                                format: InvoiceFormat;
                            }> | null;
                        } | null;
                    };
                    payments?: {
                        __typename?: 'AccountPaymentSettings';
                        paymentMethods?: Array<{
                            __typename?: 'AccountPaymentMethodSettings';
                            type: PaymentMethodType;
                            providerName: PaymentProviderName;
                            isActive: boolean;
                        }> | null;
                        providers?: Array<{
                            __typename?: 'PaymentProvider';
                            name: PaymentProviderName;
                            config?: any | null;
                        }> | null;
                    } | null;
                    metadata?: {
                        __typename?: 'AccountMetadataSettings';
                        customer?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        invoice?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        creditNote?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        licenseUser?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        license?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        product?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        subscription?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        transaction?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        billingProfile?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        person?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapabilitySettings';
                        name: string;
                        type: string;
                        description: string;
                    }> | null;
                };
                capabilities: {
                    __typename?: 'AccountCapabilities';
                    canManageLicenses?: boolean | null;
                    canBill?: boolean | null;
                    canCreateApps?: boolean | null;
                    hasCustomerPortal?: boolean | null;
                    hasCheckout?: boolean | null;
                    canCreateCustomDomains?: boolean | null;
                    canInviteMembers?: boolean | null;
                    canCustomizeFields?: boolean | null;
                    hasCancellationNotice?: boolean | null;
                    hasAnalytics?: boolean | null;
                    hasIntegrations?: boolean | null;
                };
            };
            customer?: {
                __typename?: 'Customer';
                id: string;
                name: string;
            } | null;
        }>;
    };
};
export type ListMemberInvitesQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListMemberInvitesQuery = {
    __typename?: 'Query';
    memberInvites: {
        __typename?: 'MemberInviteList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'MemberInvite';
            email: string;
            role: MemberRole;
            customer?: {
                __typename?: 'Customer';
                id: string;
                name: string;
            } | null;
        }>;
    };
};
export type AddAccountDomainMutationVariables = Exact<{
    input: AddAccountDomainInput;
}>;
export type AddAccountDomainMutation = {
    __typename?: 'Mutation';
    addAccountDomain: {
        __typename?: 'AccountDomainSettings';
        name: string;
    };
};
export type RemoveAccountDomainMutationVariables = Exact<{
    [key: string]: never;
}>;
export type RemoveAccountDomainMutation = {
    __typename?: 'Mutation';
    removeAccountDomain: {
        __typename?: 'AccountDomainSettings';
        name: string;
    };
};
export type AddPaymentProviderMutationVariables = Exact<{
    input: PaymentProviderInput;
}>;
export type AddPaymentProviderMutation = {
    __typename?: 'Mutation';
    addPaymentProvider: {
        __typename?: 'PaymentProvider';
        name: PaymentProviderName;
        config?: any | null;
    };
};
export type UpdatePaymentProviderMutationVariables = Exact<{
    input: PaymentProviderInput;
}>;
export type UpdatePaymentProviderMutation = {
    __typename?: 'Mutation';
    updatePaymentProvider: {
        __typename?: 'PaymentProvider';
        name: PaymentProviderName;
        config?: any | null;
    };
};
export type RemovePaymentProviderMutationVariables = Exact<{
    name: PaymentProviderName;
}>;
export type RemovePaymentProviderMutation = {
    __typename?: 'Mutation';
    removePaymentProvider: {
        __typename?: 'PaymentProvider';
        name: PaymentProviderName;
    };
};
export type GetUploadUrlMutationVariables = Exact<{
    input: GetUploadUrlInput;
}>;
export type GetUploadUrlMutation = {
    __typename?: 'Mutation';
    getUploadUrl: {
        __typename?: 'UploadUrl';
        uploadUrl: string;
        file: string;
        fields?: any | null;
    };
};
export type CreateAnalyticsSessionTokenMutationVariables = Exact<{
    [key: string]: never;
}>;
export type CreateAnalyticsSessionTokenMutation = {
    __typename?: 'Mutation';
    createAnalyticsSessionToken: {
        __typename?: 'AnalyticsSessionToken';
        token: string;
        dashboardId: string;
    };
};
export type AppFragmentFragment = {
    __typename?: 'App';
    id: string;
    name: string;
    description?: string | null;
    contactEmail?: string | null;
    pageContent?: string | null;
    isInstalled: boolean;
    isPublic: boolean;
    logoUrl?: string | null;
    privacyUrl?: string | null;
    tosUrl?: string | null;
    accountIds?: Array<string> | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    apiClients: Array<{
        __typename?: 'ApiClient';
        id: string;
        type: string;
        secret?: string | null;
        redirectUrls?: Array<string> | null;
        scopes?: Array<Scope> | null;
    }>;
    webhooks: {
        __typename?: 'Webhook';
        events: Array<string>;
        endpoint: string;
        headers?: any | null;
        isActive?: boolean | null;
    };
    instances?: {
        __typename?: 'AppInstanceList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'AppInstance';
            id: string;
            account: {
                __typename?: 'Account';
                id: string;
                name: string;
            };
        }>;
    } | null;
};
export type PublicAppFragmentFragment = {
    __typename?: 'PublicApp';
    id: string;
    name: string;
    description?: string | null;
    pageContent?: string | null;
    isInstalled: boolean;
    events?: Array<string> | null;
    scopes?: Array<Scope> | null;
    logoUrl?: string | null;
    privacyUrl?: string | null;
    tosUrl?: string | null;
    createdAt?: any | null;
};
export type AppInstanceFragmentFragment = {
    __typename?: 'AppInstance';
    id: string;
    app: {
        __typename?: 'PublicApp';
        id: string;
        name: string;
    };
    account: {
        __typename?: 'Account';
        id: string;
        name: string;
    };
};
export type CreateAppMutationVariables = Exact<{
    input: CreateAppInput;
}>;
export type CreateAppMutation = {
    __typename?: 'Mutation';
    createApp: {
        __typename?: 'App';
        id: string;
        name: string;
        description?: string | null;
        contactEmail?: string | null;
        pageContent?: string | null;
        isInstalled: boolean;
        isPublic: boolean;
        logoUrl?: string | null;
        privacyUrl?: string | null;
        tosUrl?: string | null;
        accountIds?: Array<string> | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        apiClients: Array<{
            __typename?: 'ApiClient';
            id: string;
            type: string;
            secret?: string | null;
            redirectUrls?: Array<string> | null;
            scopes?: Array<Scope> | null;
        }>;
        webhooks: {
            __typename?: 'Webhook';
            events: Array<string>;
            endpoint: string;
            headers?: any | null;
            isActive?: boolean | null;
        };
        instances?: {
            __typename?: 'AppInstanceList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'AppInstance';
                id: string;
                account: {
                    __typename?: 'Account';
                    id: string;
                    name: string;
                };
            }>;
        } | null;
    };
};
export type UpdateAppMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateAppInput;
}>;
export type UpdateAppMutation = {
    __typename?: 'Mutation';
    updateApp: {
        __typename?: 'App';
        id: string;
        name: string;
        description?: string | null;
        contactEmail?: string | null;
        pageContent?: string | null;
        isInstalled: boolean;
        isPublic: boolean;
        logoUrl?: string | null;
        privacyUrl?: string | null;
        tosUrl?: string | null;
        accountIds?: Array<string> | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        apiClients: Array<{
            __typename?: 'ApiClient';
            id: string;
            type: string;
            secret?: string | null;
            redirectUrls?: Array<string> | null;
            scopes?: Array<Scope> | null;
        }>;
        webhooks: {
            __typename?: 'Webhook';
            events: Array<string>;
            endpoint: string;
            headers?: any | null;
            isActive?: boolean | null;
        };
        instances?: {
            __typename?: 'AppInstanceList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'AppInstance';
                id: string;
                account: {
                    __typename?: 'Account';
                    id: string;
                    name: string;
                };
            }>;
        } | null;
    };
};
export type InstallAppMutationVariables = Exact<{
    id: Scalars['ID'];
    input?: InputMaybe<InstallAppInput>;
}>;
export type InstallAppMutation = {
    __typename?: 'Mutation';
    installApp: {
        __typename?: 'AppInstance';
        id: string;
        app: {
            __typename?: 'PublicApp';
            id: string;
            name: string;
        };
        account: {
            __typename?: 'Account';
            id: string;
            name: string;
        };
    };
};
export type UninstallAppMutationVariables = Exact<{
    id: Scalars['ID'];
}>;
export type UninstallAppMutation = {
    __typename?: 'Mutation';
    uninstallApp: {
        __typename?: 'AppInstance';
        id: string;
        app: {
            __typename?: 'PublicApp';
            id: string;
            name: string;
        };
        account: {
            __typename?: 'Account';
            id: string;
            name: string;
        };
    };
};
export type GetAppQueryVariables = Exact<{
    id?: InputMaybe<Scalars['ID']>;
}>;
export type GetAppQuery = {
    __typename?: 'Query';
    app: {
        __typename?: 'App';
        id: string;
        name: string;
        description?: string | null;
        contactEmail?: string | null;
        pageContent?: string | null;
        isInstalled: boolean;
        isPublic: boolean;
        logoUrl?: string | null;
        privacyUrl?: string | null;
        tosUrl?: string | null;
        accountIds?: Array<string> | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        apiClients: Array<{
            __typename?: 'ApiClient';
            id: string;
            type: string;
            secret?: string | null;
            redirectUrls?: Array<string> | null;
            scopes?: Array<Scope> | null;
        }>;
        webhooks: {
            __typename?: 'Webhook';
            events: Array<string>;
            endpoint: string;
            headers?: any | null;
            isActive?: boolean | null;
        };
        instances?: {
            __typename?: 'AppInstanceList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'AppInstance';
                id: string;
                account: {
                    __typename?: 'Account';
                    id: string;
                    name: string;
                };
            }>;
        } | null;
    };
};
export type GetPublicAppQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetPublicAppQuery = {
    __typename?: 'Query';
    publicApp: {
        __typename?: 'PublicApp';
        id: string;
        name: string;
        description?: string | null;
        pageContent?: string | null;
        isInstalled: boolean;
        events?: Array<string> | null;
        scopes?: Array<Scope> | null;
        logoUrl?: string | null;
        privacyUrl?: string | null;
        tosUrl?: string | null;
        createdAt?: any | null;
    };
};
export type ListAppsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListAppsQuery = {
    __typename?: 'Query';
    apps: {
        __typename?: 'AppList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'App';
            id: string;
            name: string;
            description?: string | null;
            contactEmail?: string | null;
            pageContent?: string | null;
            isInstalled: boolean;
            isPublic: boolean;
            logoUrl?: string | null;
            privacyUrl?: string | null;
            tosUrl?: string | null;
            accountIds?: Array<string> | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            apiClients: Array<{
                __typename?: 'ApiClient';
                id: string;
                type: string;
                secret?: string | null;
                redirectUrls?: Array<string> | null;
                scopes?: Array<Scope> | null;
            }>;
            webhooks: {
                __typename?: 'Webhook';
                events: Array<string>;
                endpoint: string;
                headers?: any | null;
                isActive?: boolean | null;
            };
            instances?: {
                __typename?: 'AppInstanceList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'AppInstance';
                    id: string;
                    account: {
                        __typename?: 'Account';
                        id: string;
                        name: string;
                    };
                }>;
            } | null;
        }>;
    };
};
export type ListPublicAppsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListPublicAppsQuery = {
    __typename?: 'Query';
    publicApps: {
        __typename?: 'PublicAppList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'PublicApp';
            id: string;
            name: string;
            description?: string | null;
            pageContent?: string | null;
            isInstalled: boolean;
            events?: Array<string> | null;
            scopes?: Array<Scope> | null;
            logoUrl?: string | null;
            privacyUrl?: string | null;
            tosUrl?: string | null;
            createdAt?: any | null;
        }>;
    };
};
export type ListInstalledAppsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListInstalledAppsQuery = {
    __typename?: 'Query';
    installedApps: {
        __typename?: 'AppInstanceList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'AppInstance';
            id: string;
            app: {
                __typename?: 'PublicApp';
                id: string;
                name: string;
            };
            account: {
                __typename?: 'Account';
                id: string;
                name: string;
            };
        }>;
    };
};
export type ListEventsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListEventsQuery = {
    __typename?: 'Query';
    events: {
        __typename?: 'EventList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Event';
            id: string;
            eventName: string;
            eventSource: string;
            content?: any | null;
            previousContent?: any | null;
            createdAt?: any | null;
            expiresAt?: any | null;
        }>;
    };
};
export type CreditNoteFragmentFragment = {
    __typename?: 'CreditNote';
    id: string;
    number: string;
    file: string;
    fileFormat: InvoiceFormat;
    subtotal: number;
    total: number;
    createdAt?: any | null;
    updatedAt?: any | null;
    metadata?: any | null;
    items: Array<{
        __typename?: 'CreditNoteItem';
        description: string;
        quantity: number;
        unitPrice: number;
        price: number;
    }>;
    taxes?: Array<{
        __typename?: 'CreditNoteTaxItem';
        description: string;
        rate: number;
        amount: number;
    }> | null;
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
    };
    invoice: {
        __typename?: 'InvoiceListItem';
        id: string;
        number: string;
        currency: any;
        locale?: string | null;
        paymentTermDays?: number | null;
        billingPeriodStart: any;
        billingPeriodEnd: any;
        dueDate: any;
        paymentDate?: any | null;
        subtotal: number;
        total: number;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        seller: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        buyer: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        items: Array<{
            __typename?: 'InvoiceItem';
            description: string;
            price: number;
        }>;
        discount?: {
            __typename?: 'InvoiceDiscount';
            description: string;
            amount: number;
        } | null;
        taxes?: Array<{
            __typename?: 'InvoiceTaxItem';
            description: string;
            amount: number;
            rate: number;
        }> | null;
        creditNotes: {
            __typename?: 'CreditNoteList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'CreditNoteListItem';
                id: string;
                number: string;
                total: number;
                createdAt?: any | null;
                invoice: {
                    __typename?: 'InvoiceListItem';
                    id: string;
                    number: string;
                    currency: any;
                };
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                    }>;
                };
            }>;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                invoice?: {
                    __typename?: 'Invoice';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
        subscription?: {
            __typename?: 'Subscription';
            id: string;
            isActive: boolean;
            product: {
                __typename?: 'Product';
                id: string;
                name: string;
            };
        } | null;
    };
    transactions: {
        __typename?: 'TransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Transaction';
            id: string;
            type: TransactionType;
            amount: number;
            currency: any;
            reference?: string | null;
            metadata?: any | null;
            createdAt: any;
            updatedAt?: any | null;
            paymentMethod: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                metadata?: any | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            creditNote?: {
                __typename?: 'CreditNote';
                id: string;
                number: string;
            } | null;
        }>;
    };
};
export type CreditNoteListItemFragmentFragment = {
    __typename?: 'CreditNoteListItem';
    id: string;
    number: string;
    subtotal: number;
    total: number;
    createdAt?: any | null;
    updatedAt?: any | null;
    metadata?: any | null;
    items: Array<{
        __typename?: 'CreditNoteItem';
        description: string;
        quantity: number;
        unitPrice: number;
        price: number;
    }>;
    taxes?: Array<{
        __typename?: 'CreditNoteTaxItem';
        description: string;
        rate: number;
        amount: number;
    }> | null;
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
    };
    invoice: {
        __typename?: 'InvoiceListItem';
        id: string;
        number: string;
        currency: any;
        locale?: string | null;
        paymentTermDays?: number | null;
        billingPeriodStart: any;
        billingPeriodEnd: any;
        dueDate: any;
        paymentDate?: any | null;
        subtotal: number;
        total: number;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        seller: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        buyer: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        items: Array<{
            __typename?: 'InvoiceItem';
            description: string;
            price: number;
        }>;
        discount?: {
            __typename?: 'InvoiceDiscount';
            description: string;
            amount: number;
        } | null;
        taxes?: Array<{
            __typename?: 'InvoiceTaxItem';
            description: string;
            amount: number;
            rate: number;
        }> | null;
        creditNotes: {
            __typename?: 'CreditNoteList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'CreditNoteListItem';
                id: string;
                number: string;
                total: number;
                createdAt?: any | null;
                invoice: {
                    __typename?: 'InvoiceListItem';
                    id: string;
                    number: string;
                    currency: any;
                };
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                    }>;
                };
            }>;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                invoice?: {
                    __typename?: 'Invoice';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
        subscription?: {
            __typename?: 'Subscription';
            id: string;
            isActive: boolean;
            product: {
                __typename?: 'Product';
                id: string;
                name: string;
            };
        } | null;
    };
    transactions: {
        __typename?: 'TransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Transaction';
            id: string;
            type: TransactionType;
            amount: number;
            currency: any;
            reference?: string | null;
            metadata?: any | null;
            createdAt: any;
            updatedAt?: any | null;
            paymentMethod: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                metadata?: any | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            creditNote?: {
                __typename?: 'CreditNote';
                id: string;
                number: string;
            } | null;
        }>;
    };
};
export type CreateCreditNoteMutationVariables = Exact<{
    input: CreateCreditNoteInput;
}>;
export type CreateCreditNoteMutation = {
    __typename?: 'Mutation';
    createCreditNote: {
        __typename?: 'CreditNote';
        id: string;
        number: string;
        file: string;
        fileFormat: InvoiceFormat;
        subtotal: number;
        total: number;
        createdAt?: any | null;
        updatedAt?: any | null;
        metadata?: any | null;
        items: Array<{
            __typename?: 'CreditNoteItem';
            description: string;
            quantity: number;
            unitPrice: number;
            price: number;
        }>;
        taxes?: Array<{
            __typename?: 'CreditNoteTaxItem';
            description: string;
            rate: number;
            amount: number;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
        };
        invoice: {
            __typename?: 'InvoiceListItem';
            id: string;
            number: string;
            currency: any;
            locale?: string | null;
            paymentTermDays?: number | null;
            billingPeriodStart: any;
            billingPeriodEnd: any;
            dueDate: any;
            paymentDate?: any | null;
            subtotal: number;
            total: number;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            seller: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            buyer: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            items: Array<{
                __typename?: 'InvoiceItem';
                description: string;
                price: number;
            }>;
            discount?: {
                __typename?: 'InvoiceDiscount';
                description: string;
                amount: number;
            } | null;
            taxes?: Array<{
                __typename?: 'InvoiceTaxItem';
                description: string;
                amount: number;
                rate: number;
            }> | null;
            creditNotes: {
                __typename?: 'CreditNoteList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'CreditNoteListItem';
                    id: string;
                    number: string;
                    total: number;
                    createdAt?: any | null;
                    invoice: {
                        __typename?: 'InvoiceListItem';
                        id: string;
                        number: string;
                        currency: any;
                    };
                    transactions: {
                        __typename?: 'TransactionList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Transaction';
                            id: string;
                            type: TransactionType;
                            amount: number;
                        }>;
                    };
                }>;
            };
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                    currency: any;
                    reference?: string | null;
                    metadata?: any | null;
                    createdAt: any;
                    updatedAt?: any | null;
                    paymentMethod: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        metadata?: any | null;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    invoice?: {
                        __typename?: 'Invoice';
                        id: string;
                        number: string;
                    } | null;
                }>;
            };
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                isActive: boolean;
                product: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                };
            } | null;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                creditNote?: {
                    __typename?: 'CreditNote';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
    };
};
export type GetCreditNoteQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetCreditNoteQuery = {
    __typename?: 'Query';
    creditNote: {
        __typename?: 'CreditNote';
        id: string;
        number: string;
        file: string;
        fileFormat: InvoiceFormat;
        subtotal: number;
        total: number;
        createdAt?: any | null;
        updatedAt?: any | null;
        metadata?: any | null;
        items: Array<{
            __typename?: 'CreditNoteItem';
            description: string;
            quantity: number;
            unitPrice: number;
            price: number;
        }>;
        taxes?: Array<{
            __typename?: 'CreditNoteTaxItem';
            description: string;
            rate: number;
            amount: number;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
        };
        invoice: {
            __typename?: 'InvoiceListItem';
            id: string;
            number: string;
            currency: any;
            locale?: string | null;
            paymentTermDays?: number | null;
            billingPeriodStart: any;
            billingPeriodEnd: any;
            dueDate: any;
            paymentDate?: any | null;
            subtotal: number;
            total: number;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            seller: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            buyer: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            items: Array<{
                __typename?: 'InvoiceItem';
                description: string;
                price: number;
            }>;
            discount?: {
                __typename?: 'InvoiceDiscount';
                description: string;
                amount: number;
            } | null;
            taxes?: Array<{
                __typename?: 'InvoiceTaxItem';
                description: string;
                amount: number;
                rate: number;
            }> | null;
            creditNotes: {
                __typename?: 'CreditNoteList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'CreditNoteListItem';
                    id: string;
                    number: string;
                    total: number;
                    createdAt?: any | null;
                    invoice: {
                        __typename?: 'InvoiceListItem';
                        id: string;
                        number: string;
                        currency: any;
                    };
                    transactions: {
                        __typename?: 'TransactionList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Transaction';
                            id: string;
                            type: TransactionType;
                            amount: number;
                        }>;
                    };
                }>;
            };
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                    currency: any;
                    reference?: string | null;
                    metadata?: any | null;
                    createdAt: any;
                    updatedAt?: any | null;
                    paymentMethod: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        metadata?: any | null;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    invoice?: {
                        __typename?: 'Invoice';
                        id: string;
                        number: string;
                    } | null;
                }>;
            };
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                isActive: boolean;
                product: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                };
            } | null;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                creditNote?: {
                    __typename?: 'CreditNote';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
    };
};
export type GetCreditNotePreviewQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetCreditNotePreviewQuery = {
    __typename?: 'Query';
    creditNotePreview: {
        __typename?: 'CreditNotePreview';
        content: string;
    };
};
export type ListCreditNotesQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListCreditNotesQuery = {
    __typename?: 'Query';
    creditNotes: {
        __typename?: 'CreditNoteList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'CreditNoteListItem';
            id: string;
            number: string;
            subtotal: number;
            total: number;
            createdAt?: any | null;
            updatedAt?: any | null;
            metadata?: any | null;
            items: Array<{
                __typename?: 'CreditNoteItem';
                description: string;
                quantity: number;
                unitPrice: number;
                price: number;
            }>;
            taxes?: Array<{
                __typename?: 'CreditNoteTaxItem';
                description: string;
                rate: number;
                amount: number;
            }> | null;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
            };
            invoice: {
                __typename?: 'InvoiceListItem';
                id: string;
                number: string;
                currency: any;
                locale?: string | null;
                paymentTermDays?: number | null;
                billingPeriodStart: any;
                billingPeriodEnd: any;
                dueDate: any;
                paymentDate?: any | null;
                subtotal: number;
                total: number;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                seller: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                };
                buyer: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                    currency?: any | null;
                    locale?: string | null;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    billing?: {
                        __typename?: 'Billing';
                        companyName?: string | null;
                        address: string;
                        address2?: string | null;
                        street?: string | null;
                        streetNumber?: string | null;
                        postalCode: string;
                        city: string;
                        countryCode: string;
                        invoiceFormat?: InvoiceFormat | null;
                        metadata?: any | null;
                        taxIds?: Array<{
                            __typename?: 'TaxId';
                            type: TaxIdType;
                            countryCode?: string | null;
                            value: string;
                        }> | null;
                        contactPerson?: {
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            phoneNumber?: string | null;
                        } | null;
                    } | null;
                    people?: Array<{
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        metadata?: any | null;
                        settings?: {
                            __typename?: 'PersonSettings';
                            email?: {
                                __typename?: 'PersonEmailSettings';
                                invoices?: boolean | null;
                                payments?: boolean | null;
                            } | null;
                            customerPortal?: {
                                __typename?: 'PersonCustomerPortalSettings';
                                isActive?: boolean | null;
                            } | null;
                        } | null;
                    }> | null;
                    paymentMethod?: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        providerName?: PaymentProviderName | null;
                        lastDigits?: string | null;
                        externalId?: string | null;
                        metadata?: any | null;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapability';
                        name: string;
                        isActive: boolean;
                        usageLimit?: Array<{
                            __typename?: 'SubscriptionUsage';
                            unit: string;
                            amount: number;
                        } | null> | null;
                    }> | null;
                };
                items: Array<{
                    __typename?: 'InvoiceItem';
                    description: string;
                    price: number;
                }>;
                discount?: {
                    __typename?: 'InvoiceDiscount';
                    description: string;
                    amount: number;
                } | null;
                taxes?: Array<{
                    __typename?: 'InvoiceTaxItem';
                    description: string;
                    amount: number;
                    rate: number;
                }> | null;
                creditNotes: {
                    __typename?: 'CreditNoteList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'CreditNoteListItem';
                        id: string;
                        number: string;
                        total: number;
                        createdAt?: any | null;
                        invoice: {
                            __typename?: 'InvoiceListItem';
                            id: string;
                            number: string;
                            currency: any;
                        };
                        transactions: {
                            __typename?: 'TransactionList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Transaction';
                                id: string;
                                type: TransactionType;
                                amount: number;
                            }>;
                        };
                    }>;
                };
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                        currency: any;
                        reference?: string | null;
                        metadata?: any | null;
                        createdAt: any;
                        updatedAt?: any | null;
                        paymentMethod: {
                            __typename?: 'PaymentMethod';
                            type: PaymentMethodType;
                            metadata?: any | null;
                        };
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                        invoice?: {
                            __typename?: 'Invoice';
                            id: string;
                            number: string;
                        } | null;
                    }>;
                };
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    isActive: boolean;
                    product: {
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    };
                } | null;
            };
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                    currency: any;
                    reference?: string | null;
                    metadata?: any | null;
                    createdAt: any;
                    updatedAt?: any | null;
                    paymentMethod: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        metadata?: any | null;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    creditNote?: {
                        __typename?: 'CreditNote';
                        id: string;
                        number: string;
                    } | null;
                }>;
            };
        }>;
    };
};
export type ExportCreditNotesMutationVariables = Exact<{
    input: CreditNoteExportInput;
}>;
export type ExportCreditNotesMutation = {
    __typename?: 'Mutation';
    exportCreditNotes: {
        __typename?: 'CreditNoteExport';
        content: string;
    };
};
export type TaxIdFragmentFragment = {
    __typename?: 'TaxId';
    type: TaxIdType;
    countryCode?: string | null;
    value: string;
};
export type BillingFragmentFragment = {
    __typename?: 'Billing';
    companyName?: string | null;
    address: string;
    address2?: string | null;
    street?: string | null;
    streetNumber?: string | null;
    postalCode: string;
    city: string;
    countryCode: string;
    invoiceFormat?: InvoiceFormat | null;
    metadata?: any | null;
    taxIds?: Array<{
        __typename?: 'TaxId';
        type: TaxIdType;
        countryCode?: string | null;
        value: string;
    }> | null;
    contactPerson?: {
        __typename?: 'Person';
        firstName: string;
        lastName: string;
        email: string;
        phoneNumber?: string | null;
    } | null;
};
export type PersonFragmentFragment = {
    __typename?: 'Person';
    firstName: string;
    lastName: string;
    email: string;
    metadata?: any | null;
    settings?: {
        __typename?: 'PersonSettings';
        email?: {
            __typename?: 'PersonEmailSettings';
            invoices?: boolean | null;
            payments?: boolean | null;
        } | null;
        customerPortal?: {
            __typename?: 'PersonCustomerPortalSettings';
            isActive?: boolean | null;
        } | null;
    } | null;
};
export type CustomerFragmentFragment = {
    __typename?: 'Customer';
    id: string;
    name: string;
    currency?: any | null;
    locale?: string | null;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    billing?: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    } | null;
    people?: Array<{
        __typename?: 'Person';
        firstName: string;
        lastName: string;
        email: string;
        metadata?: any | null;
        settings?: {
            __typename?: 'PersonSettings';
            email?: {
                __typename?: 'PersonEmailSettings';
                invoices?: boolean | null;
                payments?: boolean | null;
            } | null;
            customerPortal?: {
                __typename?: 'PersonCustomerPortalSettings';
                isActive?: boolean | null;
            } | null;
        } | null;
    }> | null;
    paymentMethod?: {
        __typename?: 'PaymentMethod';
        type: PaymentMethodType;
        providerName?: PaymentProviderName | null;
        lastDigits?: string | null;
        externalId?: string | null;
        metadata?: any | null;
    } | null;
    capabilities?: Array<{
        __typename?: 'ProductCapability';
        name: string;
        isActive: boolean;
        usageLimit?: Array<{
            __typename?: 'SubscriptionUsage';
            unit: string;
            amount: number;
        } | null> | null;
    }> | null;
};
export type CreateCustomerMutationVariables = Exact<{
    input: CreateCustomerInput;
}>;
export type CreateCustomerMutation = {
    __typename?: 'Mutation';
    createCustomer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type UpdateCustomerMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateCustomerInput;
}>;
export type UpdateCustomerMutation = {
    __typename?: 'Mutation';
    updateCustomer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type GetCustomerQueryVariables = Exact<{
    id: Scalars['ID'];
    subscriptionFilters?: InputMaybe<FilterInput>;
    transactionFilters?: InputMaybe<FilterInput>;
    invoiceFilters?: InputMaybe<FilterInput>;
    creditNoteFilters?: InputMaybe<FilterInput>;
    licenseUserFilters?: InputMaybe<FilterInput>;
}>;
export type GetCustomerQuery = {
    __typename?: 'Query';
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        subscriptions: {
            __typename?: 'SubscriptionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Subscription';
                id: string;
                isActive: boolean;
                endReason?: EndReason | null;
                startDate?: any | null;
                endDate?: any | null;
                freeTrialStartDate?: any | null;
                freeTrialEndDate?: any | null;
                renewalDate?: any | null;
                lastCancellationDate?: any | null;
                nextCharge?: number | null;
                createdAt?: any | null;
                metadata?: any | null;
                usage?: Array<{
                    __typename?: 'SubscriptionUsage';
                    amount: number;
                    unit: string;
                }> | null;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                    currency?: any | null;
                    locale?: string | null;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    billing?: {
                        __typename?: 'Billing';
                        companyName?: string | null;
                        address: string;
                        address2?: string | null;
                        street?: string | null;
                        streetNumber?: string | null;
                        postalCode: string;
                        city: string;
                        countryCode: string;
                        invoiceFormat?: InvoiceFormat | null;
                        metadata?: any | null;
                        taxIds?: Array<{
                            __typename?: 'TaxId';
                            type: TaxIdType;
                            countryCode?: string | null;
                            value: string;
                        }> | null;
                        contactPerson?: {
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            phoneNumber?: string | null;
                        } | null;
                    } | null;
                    people?: Array<{
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        metadata?: any | null;
                        settings?: {
                            __typename?: 'PersonSettings';
                            email?: {
                                __typename?: 'PersonEmailSettings';
                                invoices?: boolean | null;
                                payments?: boolean | null;
                            } | null;
                            customerPortal?: {
                                __typename?: 'PersonCustomerPortalSettings';
                                isActive?: boolean | null;
                            } | null;
                        } | null;
                    }> | null;
                    paymentMethod?: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        providerName?: PaymentProviderName | null;
                        lastDigits?: string | null;
                        externalId?: string | null;
                        metadata?: any | null;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapability';
                        name: string;
                        isActive: boolean;
                        usageLimit?: Array<{
                            __typename?: 'SubscriptionUsage';
                            unit: string;
                            amount: number;
                        } | null> | null;
                    }> | null;
                };
                product: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                    sku: string;
                    currency: any;
                    taxRateCode?: TaxRateCode | null;
                    metadata?: any | null;
                    createdAt?: any | null;
                    isActive: boolean;
                    plan: {
                        __typename?: 'Plan';
                        billingDay?: number | null;
                        billingTerms?: BillingTerms | null;
                        recurrency: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        };
                        paymentTerms?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        cancellationNotice?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        freeTrial?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                    };
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                    licensing?: {
                        __typename?: 'Licensing';
                        isActive?: boolean | null;
                        maxActivations?: number | null;
                        expirationDate?: any | null;
                        codeStrategy: LicensingCodeStrategy;
                        codeLength?: number | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            unit?: TimeUnit | null;
                            amount?: number | null;
                        } | null;
                    } | null;
                    subscriptions: {
                        __typename?: 'SubscriptionList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Subscription';
                            id: string;
                            product: {
                                __typename?: 'Product';
                                name: string;
                            };
                        }>;
                    };
                    addons: {
                        __typename?: 'ProductList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Product';
                            id: string;
                            name: string;
                        }>;
                    };
                    canUpgradeTo: {
                        __typename?: 'ProductList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Product';
                            id: string;
                            name: string;
                        }>;
                    };
                    canDowngradeTo: {
                        __typename?: 'ProductList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Product';
                            id: string;
                            name: string;
                        }>;
                    };
                    nextProduct?: {
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapability';
                        name: string;
                        isActive: boolean;
                        usageLimit?: Array<{
                            __typename?: 'SubscriptionUsage';
                            unit: string;
                            amount: number;
                        } | null> | null;
                    }> | null;
                };
                discountCoupon?: {
                    __typename?: 'DiscountCoupon';
                    id: string;
                    code: string;
                    redemptionDate?: any | null;
                    periodsLeft?: number | null;
                    subscription?: {
                        __typename?: 'Subscription';
                        id: string;
                        product: {
                            __typename?: 'Product';
                            name: string;
                        };
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                    } | null;
                    discount: {
                        __typename?: 'Discount';
                        id: string;
                        name: string;
                        isActive?: boolean | null;
                    };
                } | null;
            }>;
        };
        invoices: {
            __typename?: 'InvoiceList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'InvoiceListItem';
                id: string;
                number: string;
                currency: any;
                locale?: string | null;
                paymentTermDays?: number | null;
                billingPeriodStart: any;
                billingPeriodEnd: any;
                dueDate: any;
                paymentDate?: any | null;
                subtotal: number;
                total: number;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                seller: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                };
                buyer: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                    currency?: any | null;
                    locale?: string | null;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    billing?: {
                        __typename?: 'Billing';
                        companyName?: string | null;
                        address: string;
                        address2?: string | null;
                        street?: string | null;
                        streetNumber?: string | null;
                        postalCode: string;
                        city: string;
                        countryCode: string;
                        invoiceFormat?: InvoiceFormat | null;
                        metadata?: any | null;
                        taxIds?: Array<{
                            __typename?: 'TaxId';
                            type: TaxIdType;
                            countryCode?: string | null;
                            value: string;
                        }> | null;
                        contactPerson?: {
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            phoneNumber?: string | null;
                        } | null;
                    } | null;
                    people?: Array<{
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        metadata?: any | null;
                        settings?: {
                            __typename?: 'PersonSettings';
                            email?: {
                                __typename?: 'PersonEmailSettings';
                                invoices?: boolean | null;
                                payments?: boolean | null;
                            } | null;
                            customerPortal?: {
                                __typename?: 'PersonCustomerPortalSettings';
                                isActive?: boolean | null;
                            } | null;
                        } | null;
                    }> | null;
                    paymentMethod?: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        providerName?: PaymentProviderName | null;
                        lastDigits?: string | null;
                        externalId?: string | null;
                        metadata?: any | null;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapability';
                        name: string;
                        isActive: boolean;
                        usageLimit?: Array<{
                            __typename?: 'SubscriptionUsage';
                            unit: string;
                            amount: number;
                        } | null> | null;
                    }> | null;
                };
                items: Array<{
                    __typename?: 'InvoiceItem';
                    description: string;
                    price: number;
                }>;
                discount?: {
                    __typename?: 'InvoiceDiscount';
                    description: string;
                    amount: number;
                } | null;
                taxes?: Array<{
                    __typename?: 'InvoiceTaxItem';
                    description: string;
                    amount: number;
                    rate: number;
                }> | null;
                creditNotes: {
                    __typename?: 'CreditNoteList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'CreditNoteListItem';
                        id: string;
                        number: string;
                        total: number;
                        createdAt?: any | null;
                        invoice: {
                            __typename?: 'InvoiceListItem';
                            id: string;
                            number: string;
                            currency: any;
                        };
                        transactions: {
                            __typename?: 'TransactionList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Transaction';
                                id: string;
                                type: TransactionType;
                                amount: number;
                            }>;
                        };
                    }>;
                };
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                        currency: any;
                        reference?: string | null;
                        metadata?: any | null;
                        createdAt: any;
                        updatedAt?: any | null;
                        paymentMethod: {
                            __typename?: 'PaymentMethod';
                            type: PaymentMethodType;
                            metadata?: any | null;
                        };
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                        invoice?: {
                            __typename?: 'Invoice';
                            id: string;
                            number: string;
                        } | null;
                    }>;
                };
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    isActive: boolean;
                    product: {
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    };
                } | null;
            }>;
        };
        creditNotes: {
            __typename?: 'CreditNoteList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'CreditNoteListItem';
                id: string;
                number: string;
                subtotal: number;
                total: number;
                createdAt?: any | null;
                updatedAt?: any | null;
                metadata?: any | null;
                items: Array<{
                    __typename?: 'CreditNoteItem';
                    description: string;
                    quantity: number;
                    unitPrice: number;
                    price: number;
                }>;
                taxes?: Array<{
                    __typename?: 'CreditNoteTaxItem';
                    description: string;
                    rate: number;
                    amount: number;
                }> | null;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                    paymentMethod?: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        providerName?: PaymentProviderName | null;
                        lastDigits?: string | null;
                        externalId?: string | null;
                        metadata?: any | null;
                    } | null;
                };
                invoice: {
                    __typename?: 'InvoiceListItem';
                    id: string;
                    number: string;
                    currency: any;
                    locale?: string | null;
                    paymentTermDays?: number | null;
                    billingPeriodStart: any;
                    billingPeriodEnd: any;
                    dueDate: any;
                    paymentDate?: any | null;
                    subtotal: number;
                    total: number;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    seller: {
                        __typename?: 'Billing';
                        companyName?: string | null;
                        address: string;
                        address2?: string | null;
                        street?: string | null;
                        streetNumber?: string | null;
                        postalCode: string;
                        city: string;
                        countryCode: string;
                        invoiceFormat?: InvoiceFormat | null;
                        metadata?: any | null;
                        taxIds?: Array<{
                            __typename?: 'TaxId';
                            type: TaxIdType;
                            countryCode?: string | null;
                            value: string;
                        }> | null;
                        contactPerson?: {
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            phoneNumber?: string | null;
                        } | null;
                    };
                    buyer: {
                        __typename?: 'Billing';
                        companyName?: string | null;
                        address: string;
                        address2?: string | null;
                        street?: string | null;
                        streetNumber?: string | null;
                        postalCode: string;
                        city: string;
                        countryCode: string;
                        invoiceFormat?: InvoiceFormat | null;
                        metadata?: any | null;
                        taxIds?: Array<{
                            __typename?: 'TaxId';
                            type: TaxIdType;
                            countryCode?: string | null;
                            value: string;
                        }> | null;
                        contactPerson?: {
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            phoneNumber?: string | null;
                        } | null;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                        currency?: any | null;
                        locale?: string | null;
                        metadata?: any | null;
                        createdAt?: any | null;
                        updatedAt?: any | null;
                        billing?: {
                            __typename?: 'Billing';
                            companyName?: string | null;
                            address: string;
                            address2?: string | null;
                            street?: string | null;
                            streetNumber?: string | null;
                            postalCode: string;
                            city: string;
                            countryCode: string;
                            invoiceFormat?: InvoiceFormat | null;
                            metadata?: any | null;
                            taxIds?: Array<{
                                __typename?: 'TaxId';
                                type: TaxIdType;
                                countryCode?: string | null;
                                value: string;
                            }> | null;
                            contactPerson?: {
                                __typename?: 'Person';
                                firstName: string;
                                lastName: string;
                                email: string;
                                phoneNumber?: string | null;
                            } | null;
                        } | null;
                        people?: Array<{
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            metadata?: any | null;
                            settings?: {
                                __typename?: 'PersonSettings';
                                email?: {
                                    __typename?: 'PersonEmailSettings';
                                    invoices?: boolean | null;
                                    payments?: boolean | null;
                                } | null;
                                customerPortal?: {
                                    __typename?: 'PersonCustomerPortalSettings';
                                    isActive?: boolean | null;
                                } | null;
                            } | null;
                        }> | null;
                        paymentMethod?: {
                            __typename?: 'PaymentMethod';
                            type: PaymentMethodType;
                            providerName?: PaymentProviderName | null;
                            lastDigits?: string | null;
                            externalId?: string | null;
                            metadata?: any | null;
                        } | null;
                        capabilities?: Array<{
                            __typename?: 'ProductCapability';
                            name: string;
                            isActive: boolean;
                            usageLimit?: Array<{
                                __typename?: 'SubscriptionUsage';
                                unit: string;
                                amount: number;
                            } | null> | null;
                        }> | null;
                    };
                    items: Array<{
                        __typename?: 'InvoiceItem';
                        description: string;
                        price: number;
                    }>;
                    discount?: {
                        __typename?: 'InvoiceDiscount';
                        description: string;
                        amount: number;
                    } | null;
                    taxes?: Array<{
                        __typename?: 'InvoiceTaxItem';
                        description: string;
                        amount: number;
                        rate: number;
                    }> | null;
                    creditNotes: {
                        __typename?: 'CreditNoteList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'CreditNoteListItem';
                            id: string;
                            number: string;
                            total: number;
                            createdAt?: any | null;
                            invoice: {
                                __typename?: 'InvoiceListItem';
                                id: string;
                                number: string;
                                currency: any;
                            };
                            transactions: {
                                __typename?: 'TransactionList';
                                count: number;
                                total: number;
                                cursor?: string | null;
                                items: Array<{
                                    __typename?: 'Transaction';
                                    id: string;
                                    type: TransactionType;
                                    amount: number;
                                }>;
                            };
                        }>;
                    };
                    transactions: {
                        __typename?: 'TransactionList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Transaction';
                            id: string;
                            type: TransactionType;
                            amount: number;
                            currency: any;
                            reference?: string | null;
                            metadata?: any | null;
                            createdAt: any;
                            updatedAt?: any | null;
                            paymentMethod: {
                                __typename?: 'PaymentMethod';
                                type: PaymentMethodType;
                                metadata?: any | null;
                            };
                            customer: {
                                __typename?: 'Customer';
                                id: string;
                                name: string;
                            };
                            invoice?: {
                                __typename?: 'Invoice';
                                id: string;
                                number: string;
                            } | null;
                        }>;
                    };
                    subscription?: {
                        __typename?: 'Subscription';
                        id: string;
                        isActive: boolean;
                        product: {
                            __typename?: 'Product';
                            id: string;
                            name: string;
                        };
                    } | null;
                };
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                        currency: any;
                        reference?: string | null;
                        metadata?: any | null;
                        createdAt: any;
                        updatedAt?: any | null;
                        paymentMethod: {
                            __typename?: 'PaymentMethod';
                            type: PaymentMethodType;
                            metadata?: any | null;
                        };
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                        creditNote?: {
                            __typename?: 'CreditNote';
                            id: string;
                            number: string;
                        } | null;
                    }>;
                };
            }>;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                invoice?: {
                    __typename?: 'Invoice';
                    id: string;
                    number: string;
                } | null;
                creditNote?: {
                    __typename?: 'CreditNote';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
        licenseUsers: {
            __typename?: 'LicenseUserList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'LicenseUser';
                id: string;
                name: string;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                licenses: {
                    __typename?: 'LicenseList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'License';
                        id: string;
                        status: LicenseStatus;
                        code?: string | null;
                        activations?: number | null;
                        activationsLeft?: number | null;
                        expirationDate?: any | null;
                        units?: Array<string> | null;
                        metadata?: any | null;
                        createdAt?: any | null;
                        updatedAt?: any | null;
                        subscription: {
                            __typename?: 'Subscription';
                            id: string;
                            customer: {
                                __typename?: 'Customer';
                                id: string;
                                name: string;
                            };
                            product: {
                                __typename?: 'Product';
                                name: string;
                                pricing: Array<{
                                    __typename?: 'Pricing';
                                    description?: string | null;
                                    type: PricingType;
                                    price?: number | null;
                                    unit?: string | null;
                                    strategy: PricingStrategy;
                                    chargeOnce?: boolean | null;
                                    tiers: Array<{
                                        __typename?: 'PricingTier';
                                        from: number;
                                        to?: number | null;
                                        price: number;
                                    }>;
                                }>;
                            };
                        };
                        licenseUser?: {
                            __typename?: 'LicenseUser';
                            id: string;
                            name: string;
                        } | null;
                    }>;
                };
            }>;
        };
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type ListCustomersQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
    subscriptionFilters?: InputMaybe<FilterInput>;
}>;
export type ListCustomersQuery = {
    __typename?: 'Query';
    customers: {
        __typename?: 'CustomerList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    isActive: boolean;
                    endReason?: EndReason | null;
                    startDate?: any | null;
                    endDate?: any | null;
                    freeTrialStartDate?: any | null;
                    freeTrialEndDate?: any | null;
                    renewalDate?: any | null;
                    lastCancellationDate?: any | null;
                    nextCharge?: number | null;
                    createdAt?: any | null;
                    metadata?: any | null;
                    usage?: Array<{
                        __typename?: 'SubscriptionUsage';
                        amount: number;
                        unit: string;
                    }> | null;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                        currency?: any | null;
                        locale?: string | null;
                        metadata?: any | null;
                        createdAt?: any | null;
                        updatedAt?: any | null;
                        billing?: {
                            __typename?: 'Billing';
                            companyName?: string | null;
                            address: string;
                            address2?: string | null;
                            street?: string | null;
                            streetNumber?: string | null;
                            postalCode: string;
                            city: string;
                            countryCode: string;
                            invoiceFormat?: InvoiceFormat | null;
                            metadata?: any | null;
                            taxIds?: Array<{
                                __typename?: 'TaxId';
                                type: TaxIdType;
                                countryCode?: string | null;
                                value: string;
                            }> | null;
                            contactPerson?: {
                                __typename?: 'Person';
                                firstName: string;
                                lastName: string;
                                email: string;
                                phoneNumber?: string | null;
                            } | null;
                        } | null;
                        people?: Array<{
                            __typename?: 'Person';
                            firstName: string;
                            lastName: string;
                            email: string;
                            metadata?: any | null;
                            settings?: {
                                __typename?: 'PersonSettings';
                                email?: {
                                    __typename?: 'PersonEmailSettings';
                                    invoices?: boolean | null;
                                    payments?: boolean | null;
                                } | null;
                                customerPortal?: {
                                    __typename?: 'PersonCustomerPortalSettings';
                                    isActive?: boolean | null;
                                } | null;
                            } | null;
                        }> | null;
                        paymentMethod?: {
                            __typename?: 'PaymentMethod';
                            type: PaymentMethodType;
                            providerName?: PaymentProviderName | null;
                            lastDigits?: string | null;
                            externalId?: string | null;
                            metadata?: any | null;
                        } | null;
                        capabilities?: Array<{
                            __typename?: 'ProductCapability';
                            name: string;
                            isActive: boolean;
                            usageLimit?: Array<{
                                __typename?: 'SubscriptionUsage';
                                unit: string;
                                amount: number;
                            } | null> | null;
                        }> | null;
                    };
                    product: {
                        __typename?: 'Product';
                        id: string;
                        name: string;
                        sku: string;
                        currency: any;
                        taxRateCode?: TaxRateCode | null;
                        metadata?: any | null;
                        createdAt?: any | null;
                        isActive: boolean;
                        plan: {
                            __typename?: 'Plan';
                            billingDay?: number | null;
                            billingTerms?: BillingTerms | null;
                            recurrency: {
                                __typename?: 'Timeframe';
                                amount?: number | null;
                                unit?: TimeUnit | null;
                            };
                            paymentTerms?: {
                                __typename?: 'Timeframe';
                                amount?: number | null;
                                unit?: TimeUnit | null;
                            } | null;
                            cancellationNotice?: {
                                __typename?: 'Timeframe';
                                amount?: number | null;
                                unit?: TimeUnit | null;
                            } | null;
                            maxDuration?: {
                                __typename?: 'Timeframe';
                                amount?: number | null;
                                unit?: TimeUnit | null;
                            } | null;
                            freeTrial?: {
                                __typename?: 'Timeframe';
                                amount?: number | null;
                                unit?: TimeUnit | null;
                            } | null;
                        };
                        pricing: Array<{
                            __typename?: 'Pricing';
                            description?: string | null;
                            type: PricingType;
                            price?: number | null;
                            unit?: string | null;
                            strategy: PricingStrategy;
                            chargeOnce?: boolean | null;
                            tiers: Array<{
                                __typename?: 'PricingTier';
                                from: number;
                                to?: number | null;
                                price: number;
                            }>;
                        }>;
                        licensing?: {
                            __typename?: 'Licensing';
                            isActive?: boolean | null;
                            maxActivations?: number | null;
                            expirationDate?: any | null;
                            codeStrategy: LicensingCodeStrategy;
                            codeLength?: number | null;
                            maxDuration?: {
                                __typename?: 'Timeframe';
                                unit?: TimeUnit | null;
                                amount?: number | null;
                            } | null;
                        } | null;
                        subscriptions: {
                            __typename?: 'SubscriptionList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Subscription';
                                id: string;
                                product: {
                                    __typename?: 'Product';
                                    name: string;
                                };
                            }>;
                        };
                        addons: {
                            __typename?: 'ProductList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Product';
                                id: string;
                                name: string;
                            }>;
                        };
                        canUpgradeTo: {
                            __typename?: 'ProductList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Product';
                                id: string;
                                name: string;
                            }>;
                        };
                        canDowngradeTo: {
                            __typename?: 'ProductList';
                            count: number;
                            total: number;
                            cursor?: string | null;
                            items: Array<{
                                __typename?: 'Product';
                                id: string;
                                name: string;
                            }>;
                        };
                        nextProduct?: {
                            __typename?: 'Product';
                            id: string;
                            name: string;
                        } | null;
                        capabilities?: Array<{
                            __typename?: 'ProductCapability';
                            name: string;
                            isActive: boolean;
                            usageLimit?: Array<{
                                __typename?: 'SubscriptionUsage';
                                unit: string;
                                amount: number;
                            } | null> | null;
                        }> | null;
                    };
                    discountCoupon?: {
                        __typename?: 'DiscountCoupon';
                        id: string;
                        code: string;
                        redemptionDate?: any | null;
                        periodsLeft?: number | null;
                        subscription?: {
                            __typename?: 'Subscription';
                            id: string;
                            product: {
                                __typename?: 'Product';
                                name: string;
                            };
                            customer: {
                                __typename?: 'Customer';
                                id: string;
                                name: string;
                            };
                        } | null;
                        discount: {
                            __typename?: 'Discount';
                            id: string;
                            name: string;
                            isActive?: boolean | null;
                        };
                    } | null;
                }>;
            };
            licenseUsers: {
                __typename?: 'LicenseUserList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'LicenseUser';
                    id: string;
                    name: string;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    licenses: {
                        __typename?: 'LicenseList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'License';
                            id: string;
                            status: LicenseStatus;
                            code?: string | null;
                            activations?: number | null;
                            activationsLeft?: number | null;
                            expirationDate?: any | null;
                            units?: Array<string> | null;
                            metadata?: any | null;
                            createdAt?: any | null;
                            updatedAt?: any | null;
                            subscription: {
                                __typename?: 'Subscription';
                                id: string;
                                customer: {
                                    __typename?: 'Customer';
                                    id: string;
                                    name: string;
                                };
                                product: {
                                    __typename?: 'Product';
                                    name: string;
                                    pricing: Array<{
                                        __typename?: 'Pricing';
                                        description?: string | null;
                                        type: PricingType;
                                        price?: number | null;
                                        unit?: string | null;
                                        strategy: PricingStrategy;
                                        chargeOnce?: boolean | null;
                                        tiers: Array<{
                                            __typename?: 'PricingTier';
                                            from: number;
                                            to?: number | null;
                                            price: number;
                                        }>;
                                    }>;
                                };
                            };
                            licenseUser?: {
                                __typename?: 'LicenseUser';
                                id: string;
                                name: string;
                            } | null;
                        }>;
                    };
                }>;
            };
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        }>;
    };
};
export type CreateCustomerSessionMutationVariables = Exact<{
    input?: InputMaybe<CreateCustomerSessionInput>;
}>;
export type CreateCustomerSessionMutation = {
    __typename?: 'Mutation';
    createCustomerSession: {
        __typename?: 'CustomerSession';
        id: string;
        customer?: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        } | null;
        product?: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                    sku: string;
                    currency: any;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                    plan: {
                        __typename?: 'Plan';
                        billingDay?: number | null;
                        billingTerms?: BillingTerms | null;
                        recurrency: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        };
                        paymentTerms?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        cancellationNotice?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        freeTrial?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                    };
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                    sku: string;
                    currency: any;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                    plan: {
                        __typename?: 'Plan';
                        billingDay?: number | null;
                        billingTerms?: BillingTerms | null;
                        recurrency: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        };
                        paymentTerms?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        cancellationNotice?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        freeTrial?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                    };
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
                sku: string;
                currency: any;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
                plan: {
                    __typename?: 'Plan';
                    billingDay?: number | null;
                    billingTerms?: BillingTerms | null;
                    recurrency: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    };
                    paymentTerms?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    cancellationNotice?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    freeTrial?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                };
            } | null;
        } | null;
        payment?: {
            __typename?: 'PaymentSession';
            stripe?: {
                __typename?: 'StripePaymentSession';
                publishableKey: string;
                clientSecret: string;
                stripeAccountId: string;
                stripeCustomerId: string;
            } | null;
        } | null;
        estimation?: {
            __typename?: 'PriceEstimation';
            currency: any;
            subtotalAmount: number;
            discountAmount: number;
            taxAmount: number;
            totalAmount: number;
            couponCode?: string | null;
        } | null;
        fields?: Array<{
            __typename?: 'AccountMetadataField';
            name: string;
            type: string;
            description: string;
            label?: string | null;
            required: boolean;
            format?: string | null;
            default?: string | null;
            isPersonalInformation?: boolean | null;
            displayInInvoices?: boolean | null;
            displayInCheckoutStep?: string | null;
            options?: Array<{
                __typename?: 'AccountMetadataOptionField';
                label: string;
                value: string;
            }> | null;
        }> | null;
    };
};
export type UpdateCustomerSessionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateCustomerSessionInput;
}>;
export type UpdateCustomerSessionMutation = {
    __typename?: 'Mutation';
    updateCustomerSession: {
        __typename?: 'CustomerSession';
        id: string;
        customer?: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        } | null;
        payment?: {
            __typename?: 'PaymentSession';
            stripe?: {
                __typename?: 'StripePaymentSession';
                publishableKey: string;
                clientSecret: string;
                stripeAccountId: string;
                stripeCustomerId: string;
            } | null;
        } | null;
        product?: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                    sku: string;
                    currency: any;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                    plan: {
                        __typename?: 'Plan';
                        billingDay?: number | null;
                        billingTerms?: BillingTerms | null;
                        recurrency: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        };
                        paymentTerms?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        cancellationNotice?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        freeTrial?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                    };
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                    sku: string;
                    currency: any;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                    plan: {
                        __typename?: 'Plan';
                        billingDay?: number | null;
                        billingTerms?: BillingTerms | null;
                        recurrency: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        };
                        paymentTerms?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        cancellationNotice?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        maxDuration?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                        freeTrial?: {
                            __typename?: 'Timeframe';
                            amount?: number | null;
                            unit?: TimeUnit | null;
                        } | null;
                    };
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
                sku: string;
                currency: any;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
                plan: {
                    __typename?: 'Plan';
                    billingDay?: number | null;
                    billingTerms?: BillingTerms | null;
                    recurrency: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    };
                    paymentTerms?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    cancellationNotice?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    freeTrial?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                };
            } | null;
        } | null;
        estimation?: {
            __typename?: 'PriceEstimation';
            currency: any;
            subtotalAmount: number;
            discountAmount: number;
            taxAmount: number;
            totalAmount: number;
            couponCode?: string | null;
        } | null;
        fields?: Array<{
            __typename?: 'AccountMetadataField';
            name: string;
            type: string;
            description: string;
            label?: string | null;
            required: boolean;
            format?: string | null;
            default?: string | null;
            isPersonalInformation?: boolean | null;
            displayInInvoices?: boolean | null;
            displayInCheckoutStep?: string | null;
            options?: Array<{
                __typename?: 'AccountMetadataOptionField';
                label: string;
                value: string;
            }> | null;
        }> | null;
    };
};
export type DiscountFragmentFragment = {
    __typename?: 'Discount';
    id: string;
    isActive?: boolean | null;
    name: string;
    type: DiscountType;
    amount: number;
    currency?: any | null;
    maxPeriods?: number | null;
    expirationDate?: any | null;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    coupons: {
        __typename?: 'DiscountCouponList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        }>;
    };
};
export type DiscountCouponFragmentFragment = {
    __typename?: 'DiscountCoupon';
    id: string;
    code: string;
    redemptionDate?: any | null;
    periodsLeft?: number | null;
    subscription?: {
        __typename?: 'Subscription';
        id: string;
        product: {
            __typename?: 'Product';
            name: string;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
    } | null;
    discount: {
        __typename?: 'Discount';
        id: string;
        name: string;
        isActive?: boolean | null;
    };
};
export type CreateDiscountMutationVariables = Exact<{
    input: CreateDiscountInput;
}>;
export type CreateDiscountMutation = {
    __typename?: 'Mutation';
    createDiscount: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type UpdateDiscountMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateDiscountInput;
}>;
export type UpdateDiscountMutation = {
    __typename?: 'Mutation';
    updateDiscount: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type AddDiscountCouponMutationVariables = Exact<{
    input: AddDiscountCouponInput;
}>;
export type AddDiscountCouponMutation = {
    __typename?: 'Mutation';
    addDiscountCoupon: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type RedeemDiscountCouponMutationVariables = Exact<{
    input: RedeemDiscountCouponInput;
}>;
export type RedeemDiscountCouponMutation = {
    __typename?: 'Mutation';
    redeemDiscountCoupon: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type RemoveDiscountCouponMutationVariables = Exact<{
    id: Scalars['ID'];
}>;
export type RemoveDiscountCouponMutation = {
    __typename?: 'Mutation';
    removeDiscountCoupon: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type GetDiscountQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetDiscountQuery = {
    __typename?: 'Query';
    discount: {
        __typename?: 'Discount';
        id: string;
        isActive?: boolean | null;
        name: string;
        type: DiscountType;
        amount: number;
        currency?: any | null;
        maxPeriods?: number | null;
        expirationDate?: any | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        coupons: {
            __typename?: 'DiscountCouponList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            }>;
        };
    };
};
export type ListDiscountsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListDiscountsQuery = {
    __typename?: 'Query';
    discounts: {
        __typename?: 'DiscountList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Discount';
            id: string;
            isActive?: boolean | null;
            name: string;
            type: DiscountType;
            amount: number;
            currency?: any | null;
            maxPeriods?: number | null;
            expirationDate?: any | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            coupons: {
                __typename?: 'DiscountCouponList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'DiscountCoupon';
                    id: string;
                    code: string;
                    redemptionDate?: any | null;
                    periodsLeft?: number | null;
                    subscription?: {
                        __typename?: 'Subscription';
                        id: string;
                        product: {
                            __typename?: 'Product';
                            name: string;
                        };
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                    } | null;
                    discount: {
                        __typename?: 'Discount';
                        id: string;
                        name: string;
                        isActive?: boolean | null;
                    };
                }>;
            };
        }>;
    };
};
export type InvoiceListItemFragmentFragment = {
    __typename?: 'InvoiceListItem';
    id: string;
    number: string;
    currency: any;
    locale?: string | null;
    paymentTermDays?: number | null;
    billingPeriodStart: any;
    billingPeriodEnd: any;
    dueDate: any;
    paymentDate?: any | null;
    subtotal: number;
    total: number;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    seller: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    };
    buyer: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    };
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
    items: Array<{
        __typename?: 'InvoiceItem';
        description: string;
        price: number;
    }>;
    discount?: {
        __typename?: 'InvoiceDiscount';
        description: string;
        amount: number;
    } | null;
    taxes?: Array<{
        __typename?: 'InvoiceTaxItem';
        description: string;
        amount: number;
        rate: number;
    }> | null;
    creditNotes: {
        __typename?: 'CreditNoteList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'CreditNoteListItem';
            id: string;
            number: string;
            total: number;
            createdAt?: any | null;
            invoice: {
                __typename?: 'InvoiceListItem';
                id: string;
                number: string;
                currency: any;
            };
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                }>;
            };
        }>;
    };
    transactions: {
        __typename?: 'TransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Transaction';
            id: string;
            type: TransactionType;
            amount: number;
            currency: any;
            reference?: string | null;
            metadata?: any | null;
            createdAt: any;
            updatedAt?: any | null;
            paymentMethod: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                metadata?: any | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            invoice?: {
                __typename?: 'Invoice';
                id: string;
                number: string;
            } | null;
        }>;
    };
    subscription?: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
        };
    } | null;
};
export type InvoiceFragmentFragment = {
    __typename?: 'Invoice';
    file: string;
    fileFormat: InvoiceFormat;
    id: string;
    number: string;
    currency: any;
    locale?: string | null;
    paymentTermDays?: number | null;
    billingPeriodStart: any;
    billingPeriodEnd: any;
    dueDate: any;
    paymentDate?: any | null;
    subtotal: number;
    total: number;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    seller: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    };
    buyer: {
        __typename?: 'Billing';
        companyName?: string | null;
        address: string;
        address2?: string | null;
        street?: string | null;
        streetNumber?: string | null;
        postalCode: string;
        city: string;
        countryCode: string;
        invoiceFormat?: InvoiceFormat | null;
        metadata?: any | null;
        taxIds?: Array<{
            __typename?: 'TaxId';
            type: TaxIdType;
            countryCode?: string | null;
            value: string;
        }> | null;
        contactPerson?: {
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            phoneNumber?: string | null;
        } | null;
    };
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
    items: Array<{
        __typename?: 'InvoiceItem';
        description: string;
        price: number;
    }>;
    discount?: {
        __typename?: 'InvoiceDiscount';
        description: string;
        amount: number;
    } | null;
    taxes?: Array<{
        __typename?: 'InvoiceTaxItem';
        description: string;
        amount: number;
        rate: number;
    }> | null;
    creditNotes: {
        __typename?: 'CreditNoteList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'CreditNoteListItem';
            id: string;
            number: string;
            total: number;
            createdAt?: any | null;
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                }>;
            };
            invoice: {
                __typename?: 'InvoiceListItem';
                id: string;
                number: string;
                currency: any;
            };
        }>;
    };
    transactions: {
        __typename?: 'TransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Transaction';
            id: string;
            type: TransactionType;
            amount: number;
            currency: any;
            reference?: string | null;
            metadata?: any | null;
            createdAt: any;
            updatedAt?: any | null;
            paymentMethod: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                metadata?: any | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            invoice?: {
                __typename?: 'Invoice';
                id: string;
                number: string;
            } | null;
        }>;
    };
    subscription?: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    } | null;
};
export type CreateInvoiceMutationVariables = Exact<{
    input: CreateInvoiceInput;
}>;
export type CreateInvoiceMutation = {
    __typename?: 'Mutation';
    createInvoice: {
        __typename?: 'Invoice';
        file: string;
        fileFormat: InvoiceFormat;
        id: string;
        number: string;
        currency: any;
        locale?: string | null;
        paymentTermDays?: number | null;
        billingPeriodStart: any;
        billingPeriodEnd: any;
        dueDate: any;
        paymentDate?: any | null;
        subtotal: number;
        total: number;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        seller: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        buyer: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        items: Array<{
            __typename?: 'InvoiceItem';
            description: string;
            price: number;
        }>;
        discount?: {
            __typename?: 'InvoiceDiscount';
            description: string;
            amount: number;
        } | null;
        taxes?: Array<{
            __typename?: 'InvoiceTaxItem';
            description: string;
            amount: number;
            rate: number;
        }> | null;
        creditNotes: {
            __typename?: 'CreditNoteList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'CreditNoteListItem';
                id: string;
                number: string;
                total: number;
                createdAt?: any | null;
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                    }>;
                };
                invoice: {
                    __typename?: 'InvoiceListItem';
                    id: string;
                    number: string;
                    currency: any;
                };
            }>;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                invoice?: {
                    __typename?: 'Invoice';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
        subscription?: {
            __typename?: 'Subscription';
            id: string;
            isActive: boolean;
            endReason?: EndReason | null;
            startDate?: any | null;
            endDate?: any | null;
            freeTrialStartDate?: any | null;
            freeTrialEndDate?: any | null;
            renewalDate?: any | null;
            lastCancellationDate?: any | null;
            nextCharge?: number | null;
            createdAt?: any | null;
            metadata?: any | null;
            usage?: Array<{
                __typename?: 'SubscriptionUsage';
                amount: number;
                unit: string;
            }> | null;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            product: {
                __typename?: 'Product';
                id: string;
                name: string;
                sku: string;
                currency: any;
                taxRateCode?: TaxRateCode | null;
                metadata?: any | null;
                createdAt?: any | null;
                isActive: boolean;
                plan: {
                    __typename?: 'Plan';
                    billingDay?: number | null;
                    billingTerms?: BillingTerms | null;
                    recurrency: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    };
                    paymentTerms?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    cancellationNotice?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    freeTrial?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                };
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
                licensing?: {
                    __typename?: 'Licensing';
                    isActive?: boolean | null;
                    maxActivations?: number | null;
                    expirationDate?: any | null;
                    codeStrategy: LicensingCodeStrategy;
                    codeLength?: number | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        unit?: TimeUnit | null;
                        amount?: number | null;
                    } | null;
                } | null;
                subscriptions: {
                    __typename?: 'SubscriptionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Subscription';
                        id: string;
                        product: {
                            __typename?: 'Product';
                            name: string;
                        };
                    }>;
                };
                addons: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canUpgradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canDowngradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                nextProduct?: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            discountCoupon?: {
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            } | null;
        } | null;
    };
};
export type GetInvoiceQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetInvoiceQuery = {
    __typename?: 'Query';
    invoice: {
        __typename?: 'Invoice';
        file: string;
        fileFormat: InvoiceFormat;
        id: string;
        number: string;
        currency: any;
        locale?: string | null;
        paymentTermDays?: number | null;
        billingPeriodStart: any;
        billingPeriodEnd: any;
        dueDate: any;
        paymentDate?: any | null;
        subtotal: number;
        total: number;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        seller: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        buyer: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        items: Array<{
            __typename?: 'InvoiceItem';
            description: string;
            price: number;
        }>;
        discount?: {
            __typename?: 'InvoiceDiscount';
            description: string;
            amount: number;
        } | null;
        taxes?: Array<{
            __typename?: 'InvoiceTaxItem';
            description: string;
            amount: number;
            rate: number;
        }> | null;
        creditNotes: {
            __typename?: 'CreditNoteList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'CreditNoteListItem';
                id: string;
                number: string;
                total: number;
                createdAt?: any | null;
                transactions: {
                    __typename?: 'TransactionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Transaction';
                        id: string;
                        type: TransactionType;
                        amount: number;
                    }>;
                };
                invoice: {
                    __typename?: 'InvoiceListItem';
                    id: string;
                    number: string;
                    currency: any;
                };
            }>;
        };
        transactions: {
            __typename?: 'TransactionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Transaction';
                id: string;
                type: TransactionType;
                amount: number;
                currency: any;
                reference?: string | null;
                metadata?: any | null;
                createdAt: any;
                updatedAt?: any | null;
                paymentMethod: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    metadata?: any | null;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                invoice?: {
                    __typename?: 'Invoice';
                    id: string;
                    number: string;
                } | null;
            }>;
        };
        subscription?: {
            __typename?: 'Subscription';
            id: string;
            isActive: boolean;
            endReason?: EndReason | null;
            startDate?: any | null;
            endDate?: any | null;
            freeTrialStartDate?: any | null;
            freeTrialEndDate?: any | null;
            renewalDate?: any | null;
            lastCancellationDate?: any | null;
            nextCharge?: number | null;
            createdAt?: any | null;
            metadata?: any | null;
            usage?: Array<{
                __typename?: 'SubscriptionUsage';
                amount: number;
                unit: string;
            }> | null;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            product: {
                __typename?: 'Product';
                id: string;
                name: string;
                sku: string;
                currency: any;
                taxRateCode?: TaxRateCode | null;
                metadata?: any | null;
                createdAt?: any | null;
                isActive: boolean;
                plan: {
                    __typename?: 'Plan';
                    billingDay?: number | null;
                    billingTerms?: BillingTerms | null;
                    recurrency: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    };
                    paymentTerms?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    cancellationNotice?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    freeTrial?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                };
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
                licensing?: {
                    __typename?: 'Licensing';
                    isActive?: boolean | null;
                    maxActivations?: number | null;
                    expirationDate?: any | null;
                    codeStrategy: LicensingCodeStrategy;
                    codeLength?: number | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        unit?: TimeUnit | null;
                        amount?: number | null;
                    } | null;
                } | null;
                subscriptions: {
                    __typename?: 'SubscriptionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Subscription';
                        id: string;
                        product: {
                            __typename?: 'Product';
                            name: string;
                        };
                    }>;
                };
                addons: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canUpgradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canDowngradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                nextProduct?: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            discountCoupon?: {
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            } | null;
        } | null;
    };
};
export type GetInvoicePreviewQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetInvoicePreviewQuery = {
    __typename?: 'Query';
    invoicePreview: {
        __typename?: 'InvoicePreview';
        content: string;
    };
};
export type ListInvoicesQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListInvoicesQuery = {
    __typename?: 'Query';
    invoices: {
        __typename?: 'InvoiceList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'InvoiceListItem';
            id: string;
            number: string;
            currency: any;
            locale?: string | null;
            paymentTermDays?: number | null;
            billingPeriodStart: any;
            billingPeriodEnd: any;
            dueDate: any;
            paymentDate?: any | null;
            subtotal: number;
            total: number;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            seller: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            buyer: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            items: Array<{
                __typename?: 'InvoiceItem';
                description: string;
                price: number;
            }>;
            discount?: {
                __typename?: 'InvoiceDiscount';
                description: string;
                amount: number;
            } | null;
            taxes?: Array<{
                __typename?: 'InvoiceTaxItem';
                description: string;
                amount: number;
                rate: number;
            }> | null;
            creditNotes: {
                __typename?: 'CreditNoteList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'CreditNoteListItem';
                    id: string;
                    number: string;
                    total: number;
                    createdAt?: any | null;
                    invoice: {
                        __typename?: 'InvoiceListItem';
                        id: string;
                        number: string;
                        currency: any;
                    };
                    transactions: {
                        __typename?: 'TransactionList';
                        count: number;
                        total: number;
                        cursor?: string | null;
                        items: Array<{
                            __typename?: 'Transaction';
                            id: string;
                            type: TransactionType;
                            amount: number;
                        }>;
                    };
                }>;
            };
            transactions: {
                __typename?: 'TransactionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Transaction';
                    id: string;
                    type: TransactionType;
                    amount: number;
                    currency: any;
                    reference?: string | null;
                    metadata?: any | null;
                    createdAt: any;
                    updatedAt?: any | null;
                    paymentMethod: {
                        __typename?: 'PaymentMethod';
                        type: PaymentMethodType;
                        metadata?: any | null;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    invoice?: {
                        __typename?: 'Invoice';
                        id: string;
                        number: string;
                    } | null;
                }>;
            };
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                isActive: boolean;
                product: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                };
            } | null;
        }>;
    };
};
export type ExportInvoicesMutationVariables = Exact<{
    input: InvoiceExportInput;
}>;
export type ExportInvoicesMutation = {
    __typename?: 'Mutation';
    exportInvoices: {
        __typename?: 'InvoiceExport';
        content: string;
    };
};
export type LicenseUserFragmentFragment = {
    __typename?: 'LicenseUser';
    id: string;
    name: string;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
    };
    licenses: {
        __typename?: 'LicenseList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'License';
            id: string;
            status: LicenseStatus;
            code?: string | null;
            activations?: number | null;
            activationsLeft?: number | null;
            expirationDate?: any | null;
            units?: Array<string> | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            subscription: {
                __typename?: 'Subscription';
                id: string;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                product: {
                    __typename?: 'Product';
                    name: string;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                };
            };
            licenseUser?: {
                __typename?: 'LicenseUser';
                id: string;
                name: string;
            } | null;
        }>;
    };
};
export type CreateLicenseUserMutationVariables = Exact<{
    input: CreateLicenseUserInput;
}>;
export type CreateLicenseUserMutation = {
    __typename?: 'Mutation';
    createLicenseUser: {
        __typename?: 'LicenseUser';
        id: string;
        name: string;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        licenses: {
            __typename?: 'LicenseList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'License';
                id: string;
                status: LicenseStatus;
                code?: string | null;
                activations?: number | null;
                activationsLeft?: number | null;
                expirationDate?: any | null;
                units?: Array<string> | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                subscription: {
                    __typename?: 'Subscription';
                    id: string;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    product: {
                        __typename?: 'Product';
                        name: string;
                        pricing: Array<{
                            __typename?: 'Pricing';
                            description?: string | null;
                            type: PricingType;
                            price?: number | null;
                            unit?: string | null;
                            strategy: PricingStrategy;
                            chargeOnce?: boolean | null;
                            tiers: Array<{
                                __typename?: 'PricingTier';
                                from: number;
                                to?: number | null;
                                price: number;
                            }>;
                        }>;
                    };
                };
                licenseUser?: {
                    __typename?: 'LicenseUser';
                    id: string;
                    name: string;
                } | null;
            }>;
        };
    };
};
export type UpdateLicenseUserMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateLicenseUserInput;
}>;
export type UpdateLicenseUserMutation = {
    __typename?: 'Mutation';
    updateLicenseUser: {
        __typename?: 'LicenseUser';
        id: string;
        name: string;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        licenses: {
            __typename?: 'LicenseList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'License';
                id: string;
                status: LicenseStatus;
                code?: string | null;
                activations?: number | null;
                activationsLeft?: number | null;
                expirationDate?: any | null;
                units?: Array<string> | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                subscription: {
                    __typename?: 'Subscription';
                    id: string;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    product: {
                        __typename?: 'Product';
                        name: string;
                        pricing: Array<{
                            __typename?: 'Pricing';
                            description?: string | null;
                            type: PricingType;
                            price?: number | null;
                            unit?: string | null;
                            strategy: PricingStrategy;
                            chargeOnce?: boolean | null;
                            tiers: Array<{
                                __typename?: 'PricingTier';
                                from: number;
                                to?: number | null;
                                price: number;
                            }>;
                        }>;
                    };
                };
                licenseUser?: {
                    __typename?: 'LicenseUser';
                    id: string;
                    name: string;
                } | null;
            }>;
        };
    };
};
export type RemoveLicenseUserMutationVariables = Exact<{
    id: Scalars['ID'];
}>;
export type RemoveLicenseUserMutation = {
    __typename?: 'Mutation';
    removeLicenseUser: {
        __typename?: 'LicenseUser';
        id: string;
        name: string;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        licenses: {
            __typename?: 'LicenseList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'License';
                id: string;
                status: LicenseStatus;
                code?: string | null;
                activations?: number | null;
                activationsLeft?: number | null;
                expirationDate?: any | null;
                units?: Array<string> | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                subscription: {
                    __typename?: 'Subscription';
                    id: string;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    product: {
                        __typename?: 'Product';
                        name: string;
                        pricing: Array<{
                            __typename?: 'Pricing';
                            description?: string | null;
                            type: PricingType;
                            price?: number | null;
                            unit?: string | null;
                            strategy: PricingStrategy;
                            chargeOnce?: boolean | null;
                            tiers: Array<{
                                __typename?: 'PricingTier';
                                from: number;
                                to?: number | null;
                                price: number;
                            }>;
                        }>;
                    };
                };
                licenseUser?: {
                    __typename?: 'LicenseUser';
                    id: string;
                    name: string;
                } | null;
            }>;
        };
    };
};
export type GetLicenseUserQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetLicenseUserQuery = {
    __typename?: 'Query';
    licenseUser: {
        __typename?: 'LicenseUser';
        id: string;
        name: string;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        licenses: {
            __typename?: 'LicenseList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'License';
                id: string;
                status: LicenseStatus;
                code?: string | null;
                activations?: number | null;
                activationsLeft?: number | null;
                expirationDate?: any | null;
                units?: Array<string> | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                subscription: {
                    __typename?: 'Subscription';
                    id: string;
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                    product: {
                        __typename?: 'Product';
                        name: string;
                        pricing: Array<{
                            __typename?: 'Pricing';
                            description?: string | null;
                            type: PricingType;
                            price?: number | null;
                            unit?: string | null;
                            strategy: PricingStrategy;
                            chargeOnce?: boolean | null;
                            tiers: Array<{
                                __typename?: 'PricingTier';
                                from: number;
                                to?: number | null;
                                price: number;
                            }>;
                        }>;
                    };
                };
                licenseUser?: {
                    __typename?: 'LicenseUser';
                    id: string;
                    name: string;
                } | null;
            }>;
        };
    };
};
export type ListLicenseUsersQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListLicenseUsersQuery = {
    __typename?: 'Query';
    licenseUsers: {
        __typename?: 'LicenseUserList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'LicenseUser';
            id: string;
            name: string;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            licenses: {
                __typename?: 'LicenseList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'License';
                    id: string;
                    status: LicenseStatus;
                    code?: string | null;
                    activations?: number | null;
                    activationsLeft?: number | null;
                    expirationDate?: any | null;
                    units?: Array<string> | null;
                    metadata?: any | null;
                    createdAt?: any | null;
                    updatedAt?: any | null;
                    subscription: {
                        __typename?: 'Subscription';
                        id: string;
                        customer: {
                            __typename?: 'Customer';
                            id: string;
                            name: string;
                        };
                        product: {
                            __typename?: 'Product';
                            name: string;
                            pricing: Array<{
                                __typename?: 'Pricing';
                                description?: string | null;
                                type: PricingType;
                                price?: number | null;
                                unit?: string | null;
                                strategy: PricingStrategy;
                                chargeOnce?: boolean | null;
                                tiers: Array<{
                                    __typename?: 'PricingTier';
                                    from: number;
                                    to?: number | null;
                                    price: number;
                                }>;
                            }>;
                        };
                    };
                    licenseUser?: {
                        __typename?: 'LicenseUser';
                        id: string;
                        name: string;
                    } | null;
                }>;
            };
        }>;
    };
};
export type LicenseFragmentFragment = {
    __typename?: 'License';
    id: string;
    status: LicenseStatus;
    code?: string | null;
    activations?: number | null;
    activationsLeft?: number | null;
    expirationDate?: any | null;
    units?: Array<string> | null;
    metadata?: any | null;
    createdAt?: any | null;
    updatedAt?: any | null;
    subscription: {
        __typename?: 'Subscription';
        id: string;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        product: {
            __typename?: 'Product';
            name: string;
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
        };
    };
    licenseUser?: {
        __typename?: 'LicenseUser';
        id: string;
        name: string;
    } | null;
};
export type CreateLicenseMutationVariables = Exact<{
    input: CreateLicenseInput;
}>;
export type CreateLicenseMutation = {
    __typename?: 'Mutation';
    createLicense: {
        __typename?: 'License';
        id: string;
        status: LicenseStatus;
        code?: string | null;
        activations?: number | null;
        activationsLeft?: number | null;
        expirationDate?: any | null;
        units?: Array<string> | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        subscription: {
            __typename?: 'Subscription';
            id: string;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            product: {
                __typename?: 'Product';
                name: string;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
            };
        };
        licenseUser?: {
            __typename?: 'LicenseUser';
            id: string;
            name: string;
        } | null;
    };
};
export type UpdateLicenseMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateLicenseInput;
}>;
export type UpdateLicenseMutation = {
    __typename?: 'Mutation';
    updateLicense: {
        __typename?: 'License';
        id: string;
        status: LicenseStatus;
        code?: string | null;
        activations?: number | null;
        activationsLeft?: number | null;
        expirationDate?: any | null;
        units?: Array<string> | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        subscription: {
            __typename?: 'Subscription';
            id: string;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            product: {
                __typename?: 'Product';
                name: string;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
            };
        };
        licenseUser?: {
            __typename?: 'LicenseUser';
            id: string;
            name: string;
        } | null;
    };
};
export type ActivateLicenseMutationVariables = Exact<{
    input: ActivateLicenseInput;
}>;
export type ActivateLicenseMutation = {
    __typename?: 'Mutation';
    activateLicense: {
        __typename?: 'License';
        id: string;
        status: LicenseStatus;
        code?: string | null;
        activations?: number | null;
        activationsLeft?: number | null;
        expirationDate?: any | null;
        units?: Array<string> | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        subscription: {
            __typename?: 'Subscription';
            id: string;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            product: {
                __typename?: 'Product';
                name: string;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
            };
        };
        licenseUser?: {
            __typename?: 'LicenseUser';
            id: string;
            name: string;
        } | null;
    };
};
export type GetLicenseQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetLicenseQuery = {
    __typename?: 'Query';
    license: {
        __typename?: 'License';
        id: string;
        status: LicenseStatus;
        code?: string | null;
        activations?: number | null;
        activationsLeft?: number | null;
        expirationDate?: any | null;
        units?: Array<string> | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        subscription: {
            __typename?: 'Subscription';
            id: string;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            product: {
                __typename?: 'Product';
                name: string;
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
            };
        };
        licenseUser?: {
            __typename?: 'LicenseUser';
            id: string;
            name: string;
        } | null;
    };
};
export type ListLicensesQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListLicensesQuery = {
    __typename?: 'Query';
    licenses: {
        __typename?: 'LicenseList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'License';
            id: string;
            status: LicenseStatus;
            code?: string | null;
            activations?: number | null;
            activationsLeft?: number | null;
            expirationDate?: any | null;
            units?: Array<string> | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            subscription: {
                __typename?: 'Subscription';
                id: string;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
                product: {
                    __typename?: 'Product';
                    name: string;
                    pricing: Array<{
                        __typename?: 'Pricing';
                        description?: string | null;
                        type: PricingType;
                        price?: number | null;
                        unit?: string | null;
                        strategy: PricingStrategy;
                        chargeOnce?: boolean | null;
                        tiers: Array<{
                            __typename?: 'PricingTier';
                            from: number;
                            to?: number | null;
                            price: number;
                        }>;
                    }>;
                };
            };
            licenseUser?: {
                __typename?: 'LicenseUser';
                id: string;
                name: string;
            } | null;
        }>;
    };
};
export type PaymentMethodFragmentFragment = {
    __typename?: 'PaymentMethod';
    type: PaymentMethodType;
    providerName?: PaymentProviderName | null;
    lastDigits?: string | null;
    externalId?: string | null;
    metadata?: any | null;
};
export type PaymentSessionFragmentFragment = {
    __typename?: 'PaymentSession';
    stripe?: {
        __typename?: 'StripePaymentSession';
        publishableKey: string;
        clientSecret: string;
        stripeAccountId: string;
        stripeCustomerId: string;
    } | null;
};
export type AddPaymentMethodMutationVariables = Exact<{
    input: AddPaymentMethodInput;
}>;
export type AddPaymentMethodMutation = {
    __typename?: 'Mutation';
    addPaymentMethod: {
        __typename?: 'PaymentMethod';
        type: PaymentMethodType;
        providerName?: PaymentProviderName | null;
        lastDigits?: string | null;
        externalId?: string | null;
        metadata?: any | null;
    };
};
export type RemovePaymentMethodMutationVariables = Exact<{
    input: RemovePaymentMethodInput;
}>;
export type RemovePaymentMethodMutation = {
    __typename?: 'Mutation';
    removePaymentMethod: {
        __typename?: 'PaymentMethod';
        type: PaymentMethodType;
        providerName?: PaymentProviderName | null;
        lastDigits?: string | null;
        externalId?: string | null;
        metadata?: any | null;
    };
};
export type ListBanksQueryVariables = Exact<{
    countryCode: Scalars['String'];
}>;
export type ListBanksQuery = {
    __typename?: 'Query';
    banks: {
        __typename?: 'BankList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Bank';
            id: string;
            name: string;
            logo: string;
        }>;
    };
};
export type ListBankAccountsQueryVariables = Exact<{
    [key: string]: never;
}>;
export type ListBankAccountsQuery = {
    __typename?: 'Query';
    bankAccounts: {
        __typename?: 'BankAccountList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'BankAccount';
            iban: string;
            currency: string;
            ownerName: string;
            name?: string | null;
            transactions: Array<{
                __typename?: 'BankTransaction';
                id: string;
                bookedAt: string;
                amount: string;
                currency: string;
                description: string;
                debtor: string;
                iban?: string | null;
            }>;
        }>;
    };
};
export type ListBankTransactionsQueryVariables = Exact<{
    filters: FilterInput;
}>;
export type ListBankTransactionsQuery = {
    __typename?: 'Query';
    bankTransactions: {
        __typename?: 'BankTransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'BankTransaction';
            id: string;
            status: BankTransactionStatus;
            bookedAt: string;
            amount: string;
            currency: string;
            description: string;
            debtor: string;
            ignoreDebtor?: boolean | null;
            iban?: string | null;
            account: {
                __typename?: 'BankAccount';
                iban: string;
                currency: string;
                ownerName: string;
                name?: string | null;
            };
            transaction?: {
                __typename?: 'Transaction';
                id: string;
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
        }>;
    };
};
export type UpdateBankTransactionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateBankTransactionInput;
}>;
export type UpdateBankTransactionMutation = {
    __typename?: 'Mutation';
    updateBankTransaction: {
        __typename?: 'BankTransaction';
        id: string;
        status: BankTransactionStatus;
        bookedAt: string;
        amount: string;
        currency: string;
        description: string;
        debtor: string;
        iban?: string | null;
        account: {
            __typename?: 'BankAccount';
            iban: string;
            currency: string;
            ownerName: string;
            name?: string | null;
        };
    };
};
export type RequestBankTransactionSyncMutationVariables = Exact<{
    [key: string]: never;
}>;
export type RequestBankTransactionSyncMutation = {
    __typename?: 'Mutation';
    requestBankTransactionSync: {
        __typename?: 'BankTransactionSync';
        status: string;
    };
};
export type PlanFragmentFragment = {
    __typename?: 'Plan';
    billingDay?: number | null;
    billingTerms?: BillingTerms | null;
    recurrency: {
        __typename?: 'Timeframe';
        amount?: number | null;
        unit?: TimeUnit | null;
    };
    paymentTerms?: {
        __typename?: 'Timeframe';
        amount?: number | null;
        unit?: TimeUnit | null;
    } | null;
    cancellationNotice?: {
        __typename?: 'Timeframe';
        amount?: number | null;
        unit?: TimeUnit | null;
    } | null;
    maxDuration?: {
        __typename?: 'Timeframe';
        amount?: number | null;
        unit?: TimeUnit | null;
    } | null;
    freeTrial?: {
        __typename?: 'Timeframe';
        amount?: number | null;
        unit?: TimeUnit | null;
    } | null;
};
export type PricingFragmentFragment = {
    __typename?: 'Pricing';
    description?: string | null;
    type: PricingType;
    price?: number | null;
    unit?: string | null;
    strategy: PricingStrategy;
    chargeOnce?: boolean | null;
    tiers: Array<{
        __typename?: 'PricingTier';
        from: number;
        to?: number | null;
        price: number;
    }>;
};
export type LicensingFragmentFragment = {
    __typename?: 'Licensing';
    isActive?: boolean | null;
    maxActivations?: number | null;
    expirationDate?: any | null;
    codeStrategy: LicensingCodeStrategy;
    codeLength?: number | null;
    maxDuration?: {
        __typename?: 'Timeframe';
        unit?: TimeUnit | null;
        amount?: number | null;
    } | null;
};
export type ProductFragmentFragment = {
    __typename?: 'Product';
    id: string;
    name: string;
    sku: string;
    currency: any;
    taxRateCode?: TaxRateCode | null;
    metadata?: any | null;
    createdAt?: any | null;
    isActive: boolean;
    plan: {
        __typename?: 'Plan';
        billingDay?: number | null;
        billingTerms?: BillingTerms | null;
        recurrency: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        };
        paymentTerms?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        cancellationNotice?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        maxDuration?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        freeTrial?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
    };
    pricing: Array<{
        __typename?: 'Pricing';
        description?: string | null;
        type: PricingType;
        price?: number | null;
        unit?: string | null;
        strategy: PricingStrategy;
        chargeOnce?: boolean | null;
        tiers: Array<{
            __typename?: 'PricingTier';
            from: number;
            to?: number | null;
            price: number;
        }>;
    }>;
    licensing?: {
        __typename?: 'Licensing';
        isActive?: boolean | null;
        maxActivations?: number | null;
        expirationDate?: any | null;
        codeStrategy: LicensingCodeStrategy;
        codeLength?: number | null;
        maxDuration?: {
            __typename?: 'Timeframe';
            unit?: TimeUnit | null;
            amount?: number | null;
        } | null;
    } | null;
    subscriptions: {
        __typename?: 'SubscriptionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Subscription';
            id: string;
            product: {
                __typename?: 'Product';
                name: string;
            };
        }>;
    };
    addons: {
        __typename?: 'ProductList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
        }>;
    };
    canUpgradeTo: {
        __typename?: 'ProductList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
        }>;
    };
    canDowngradeTo: {
        __typename?: 'ProductList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
        }>;
    };
    nextProduct?: {
        __typename?: 'Product';
        id: string;
        name: string;
    } | null;
    capabilities?: Array<{
        __typename?: 'ProductCapability';
        name: string;
        isActive: boolean;
        usageLimit?: Array<{
            __typename?: 'SubscriptionUsage';
            unit: string;
            amount: number;
        } | null> | null;
    }> | null;
};
export type CustomerSessionProductFragmentFragment = {
    __typename?: 'Product';
    id: string;
    name: string;
    sku: string;
    currency: any;
    pricing: Array<{
        __typename?: 'Pricing';
        description?: string | null;
        type: PricingType;
        price?: number | null;
        unit?: string | null;
        strategy: PricingStrategy;
        chargeOnce?: boolean | null;
        tiers: Array<{
            __typename?: 'PricingTier';
            from: number;
            to?: number | null;
            price: number;
        }>;
    }>;
    plan: {
        __typename?: 'Plan';
        billingDay?: number | null;
        billingTerms?: BillingTerms | null;
        recurrency: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        };
        paymentTerms?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        cancellationNotice?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        maxDuration?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
        freeTrial?: {
            __typename?: 'Timeframe';
            amount?: number | null;
            unit?: TimeUnit | null;
        } | null;
    };
    canUpgradeTo: {
        __typename?: 'ProductList';
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
        }>;
    };
    canDowngradeTo: {
        __typename?: 'ProductList';
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
        }>;
    };
    nextProduct?: {
        __typename?: 'Product';
        id: string;
        name: string;
        sku: string;
        currency: any;
        pricing: Array<{
            __typename?: 'Pricing';
            description?: string | null;
            type: PricingType;
            price?: number | null;
            unit?: string | null;
            strategy: PricingStrategy;
            chargeOnce?: boolean | null;
            tiers: Array<{
                __typename?: 'PricingTier';
                from: number;
                to?: number | null;
                price: number;
            }>;
        }>;
        plan: {
            __typename?: 'Plan';
            billingDay?: number | null;
            billingTerms?: BillingTerms | null;
            recurrency: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            };
            paymentTerms?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            cancellationNotice?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            freeTrial?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
        };
    } | null;
};
export type CreateProductMutationVariables = Exact<{
    input: CreateProductInput;
}>;
export type CreateProductMutation = {
    __typename?: 'Mutation';
    createProduct: {
        __typename?: 'Product';
        id: string;
        name: string;
        sku: string;
        currency: any;
        taxRateCode?: TaxRateCode | null;
        metadata?: any | null;
        createdAt?: any | null;
        isActive: boolean;
        plan: {
            __typename?: 'Plan';
            billingDay?: number | null;
            billingTerms?: BillingTerms | null;
            recurrency: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            };
            paymentTerms?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            cancellationNotice?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            freeTrial?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
        };
        pricing: Array<{
            __typename?: 'Pricing';
            description?: string | null;
            type: PricingType;
            price?: number | null;
            unit?: string | null;
            strategy: PricingStrategy;
            chargeOnce?: boolean | null;
            tiers: Array<{
                __typename?: 'PricingTier';
                from: number;
                to?: number | null;
                price: number;
            }>;
        }>;
        licensing?: {
            __typename?: 'Licensing';
            isActive?: boolean | null;
            maxActivations?: number | null;
            expirationDate?: any | null;
            codeStrategy: LicensingCodeStrategy;
            codeLength?: number | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                unit?: TimeUnit | null;
                amount?: number | null;
            } | null;
        } | null;
        subscriptions: {
            __typename?: 'SubscriptionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
            }>;
        };
        addons: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canUpgradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canDowngradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        nextProduct?: {
            __typename?: 'Product';
            id: string;
            name: string;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type UpdateProductMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateProductInput;
}>;
export type UpdateProductMutation = {
    __typename?: 'Mutation';
    updateProduct: {
        __typename?: 'Product';
        id: string;
        name: string;
        sku: string;
        currency: any;
        taxRateCode?: TaxRateCode | null;
        metadata?: any | null;
        createdAt?: any | null;
        isActive: boolean;
        plan: {
            __typename?: 'Plan';
            billingDay?: number | null;
            billingTerms?: BillingTerms | null;
            recurrency: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            };
            paymentTerms?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            cancellationNotice?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            freeTrial?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
        };
        pricing: Array<{
            __typename?: 'Pricing';
            description?: string | null;
            type: PricingType;
            price?: number | null;
            unit?: string | null;
            strategy: PricingStrategy;
            chargeOnce?: boolean | null;
            tiers: Array<{
                __typename?: 'PricingTier';
                from: number;
                to?: number | null;
                price: number;
            }>;
        }>;
        licensing?: {
            __typename?: 'Licensing';
            isActive?: boolean | null;
            maxActivations?: number | null;
            expirationDate?: any | null;
            codeStrategy: LicensingCodeStrategy;
            codeLength?: number | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                unit?: TimeUnit | null;
                amount?: number | null;
            } | null;
        } | null;
        subscriptions: {
            __typename?: 'SubscriptionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
            }>;
        };
        addons: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canUpgradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canDowngradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        nextProduct?: {
            __typename?: 'Product';
            id: string;
            name: string;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type GetProductQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetProductQuery = {
    __typename?: 'Query';
    product: {
        __typename?: 'Product';
        id: string;
        name: string;
        sku: string;
        currency: any;
        taxRateCode?: TaxRateCode | null;
        metadata?: any | null;
        createdAt?: any | null;
        isActive: boolean;
        plan: {
            __typename?: 'Plan';
            billingDay?: number | null;
            billingTerms?: BillingTerms | null;
            recurrency: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            };
            paymentTerms?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            cancellationNotice?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            freeTrial?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
        };
        pricing: Array<{
            __typename?: 'Pricing';
            description?: string | null;
            type: PricingType;
            price?: number | null;
            unit?: string | null;
            strategy: PricingStrategy;
            chargeOnce?: boolean | null;
            tiers: Array<{
                __typename?: 'PricingTier';
                from: number;
                to?: number | null;
                price: number;
            }>;
        }>;
        licensing?: {
            __typename?: 'Licensing';
            isActive?: boolean | null;
            maxActivations?: number | null;
            expirationDate?: any | null;
            codeStrategy: LicensingCodeStrategy;
            codeLength?: number | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                unit?: TimeUnit | null;
                amount?: number | null;
            } | null;
        } | null;
        subscriptions: {
            __typename?: 'SubscriptionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
            }>;
        };
        addons: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canUpgradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canDowngradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        nextProduct?: {
            __typename?: 'Product';
            id: string;
            name: string;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
};
export type GetPriceEstimationQueryVariables = Exact<{
    input?: InputMaybe<PriceEstimationInput>;
}>;
export type GetPriceEstimationQuery = {
    __typename?: 'Query';
    estimatePrice: {
        __typename?: 'PriceEstimation';
        currency: any;
        subtotalAmount: number;
        discountAmount: number;
        taxAmount: number;
        totalAmount: number;
        couponCode?: string | null;
    };
};
export type ListProductsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListProductsQuery = {
    __typename?: 'Query';
    products: {
        __typename?: 'ProductList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        }>;
    };
};
export type SubscriptionFragmentFragment = {
    __typename?: 'Subscription';
    id: string;
    isActive: boolean;
    endReason?: EndReason | null;
    startDate?: any | null;
    endDate?: any | null;
    freeTrialStartDate?: any | null;
    freeTrialEndDate?: any | null;
    renewalDate?: any | null;
    lastCancellationDate?: any | null;
    nextCharge?: number | null;
    createdAt?: any | null;
    metadata?: any | null;
    usage?: Array<{
        __typename?: 'SubscriptionUsage';
        amount: number;
        unit: string;
    }> | null;
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
        currency?: any | null;
        locale?: string | null;
        metadata?: any | null;
        createdAt?: any | null;
        updatedAt?: any | null;
        billing?: {
            __typename?: 'Billing';
            companyName?: string | null;
            address: string;
            address2?: string | null;
            street?: string | null;
            streetNumber?: string | null;
            postalCode: string;
            city: string;
            countryCode: string;
            invoiceFormat?: InvoiceFormat | null;
            metadata?: any | null;
            taxIds?: Array<{
                __typename?: 'TaxId';
                type: TaxIdType;
                countryCode?: string | null;
                value: string;
            }> | null;
            contactPerson?: {
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                phoneNumber?: string | null;
            } | null;
        } | null;
        people?: Array<{
            __typename?: 'Person';
            firstName: string;
            lastName: string;
            email: string;
            metadata?: any | null;
            settings?: {
                __typename?: 'PersonSettings';
                email?: {
                    __typename?: 'PersonEmailSettings';
                    invoices?: boolean | null;
                    payments?: boolean | null;
                } | null;
                customerPortal?: {
                    __typename?: 'PersonCustomerPortalSettings';
                    isActive?: boolean | null;
                } | null;
            } | null;
        }> | null;
        paymentMethod?: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            externalId?: string | null;
            metadata?: any | null;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
    product: {
        __typename?: 'Product';
        id: string;
        name: string;
        sku: string;
        currency: any;
        taxRateCode?: TaxRateCode | null;
        metadata?: any | null;
        createdAt?: any | null;
        isActive: boolean;
        plan: {
            __typename?: 'Plan';
            billingDay?: number | null;
            billingTerms?: BillingTerms | null;
            recurrency: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            };
            paymentTerms?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            cancellationNotice?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
            freeTrial?: {
                __typename?: 'Timeframe';
                amount?: number | null;
                unit?: TimeUnit | null;
            } | null;
        };
        pricing: Array<{
            __typename?: 'Pricing';
            description?: string | null;
            type: PricingType;
            price?: number | null;
            unit?: string | null;
            strategy: PricingStrategy;
            chargeOnce?: boolean | null;
            tiers: Array<{
                __typename?: 'PricingTier';
                from: number;
                to?: number | null;
                price: number;
            }>;
        }>;
        licensing?: {
            __typename?: 'Licensing';
            isActive?: boolean | null;
            maxActivations?: number | null;
            expirationDate?: any | null;
            codeStrategy: LicensingCodeStrategy;
            codeLength?: number | null;
            maxDuration?: {
                __typename?: 'Timeframe';
                unit?: TimeUnit | null;
                amount?: number | null;
            } | null;
        } | null;
        subscriptions: {
            __typename?: 'SubscriptionList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
            }>;
        };
        addons: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canUpgradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        canDowngradeTo: {
            __typename?: 'ProductList';
            count: number;
            total: number;
            cursor?: string | null;
            items: Array<{
                __typename?: 'Product';
                id: string;
                name: string;
            }>;
        };
        nextProduct?: {
            __typename?: 'Product';
            id: string;
            name: string;
        } | null;
        capabilities?: Array<{
            __typename?: 'ProductCapability';
            name: string;
            isActive: boolean;
            usageLimit?: Array<{
                __typename?: 'SubscriptionUsage';
                unit: string;
                amount: number;
            } | null> | null;
        }> | null;
    };
    discountCoupon?: {
        __typename?: 'DiscountCoupon';
        id: string;
        code: string;
        redemptionDate?: any | null;
        periodsLeft?: number | null;
        subscription?: {
            __typename?: 'Subscription';
            id: string;
            product: {
                __typename?: 'Product';
                name: string;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
        } | null;
        discount: {
            __typename?: 'Discount';
            id: string;
            name: string;
            isActive?: boolean | null;
        };
    } | null;
};
export type CreateSubscriptionMutationVariables = Exact<{
    input: CreateSubscriptionInput;
}>;
export type CreateSubscriptionMutation = {
    __typename?: 'Mutation';
    createSubscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type UpdateSubscriptionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpdateSubscriptionInput;
}>;
export type UpdateSubscriptionMutation = {
    __typename?: 'Mutation';
    updateSubscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type UpgradeSubscriptionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: UpgradeSubscriptionInput;
}>;
export type UpgradeSubscriptionMutation = {
    __typename?: 'Mutation';
    upgradeSubscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type DowngradeSubscriptionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: DowngradeSubscriptionInput;
}>;
export type DowngradeSubscriptionMutation = {
    __typename?: 'Mutation';
    downgradeSubscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type CancelSubscriptionMutationVariables = Exact<{
    id: Scalars['ID'];
    input: CancelSubscriptionInput;
}>;
export type CancelSubscriptionMutation = {
    __typename?: 'Mutation';
    cancelSubscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type GetSubscriptionQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetSubscriptionQuery = {
    __typename?: 'Query';
    subscription: {
        __typename?: 'Subscription';
        id: string;
        isActive: boolean;
        endReason?: EndReason | null;
        startDate?: any | null;
        endDate?: any | null;
        freeTrialStartDate?: any | null;
        freeTrialEndDate?: any | null;
        renewalDate?: any | null;
        lastCancellationDate?: any | null;
        nextCharge?: number | null;
        createdAt?: any | null;
        metadata?: any | null;
        usage?: Array<{
            __typename?: 'SubscriptionUsage';
            amount: number;
            unit: string;
        }> | null;
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
            currency?: any | null;
            locale?: string | null;
            metadata?: any | null;
            createdAt?: any | null;
            updatedAt?: any | null;
            billing?: {
                __typename?: 'Billing';
                companyName?: string | null;
                address: string;
                address2?: string | null;
                street?: string | null;
                streetNumber?: string | null;
                postalCode: string;
                city: string;
                countryCode: string;
                invoiceFormat?: InvoiceFormat | null;
                metadata?: any | null;
                taxIds?: Array<{
                    __typename?: 'TaxId';
                    type: TaxIdType;
                    countryCode?: string | null;
                    value: string;
                }> | null;
                contactPerson?: {
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    phoneNumber?: string | null;
                } | null;
            } | null;
            people?: Array<{
                __typename?: 'Person';
                firstName: string;
                lastName: string;
                email: string;
                metadata?: any | null;
                settings?: {
                    __typename?: 'PersonSettings';
                    email?: {
                        __typename?: 'PersonEmailSettings';
                        invoices?: boolean | null;
                        payments?: boolean | null;
                    } | null;
                    customerPortal?: {
                        __typename?: 'PersonCustomerPortalSettings';
                        isActive?: boolean | null;
                    } | null;
                } | null;
            }> | null;
            paymentMethod?: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                externalId?: string | null;
                metadata?: any | null;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        product: {
            __typename?: 'Product';
            id: string;
            name: string;
            sku: string;
            currency: any;
            taxRateCode?: TaxRateCode | null;
            metadata?: any | null;
            createdAt?: any | null;
            isActive: boolean;
            plan: {
                __typename?: 'Plan';
                billingDay?: number | null;
                billingTerms?: BillingTerms | null;
                recurrency: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                };
                paymentTerms?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                cancellationNotice?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
                freeTrial?: {
                    __typename?: 'Timeframe';
                    amount?: number | null;
                    unit?: TimeUnit | null;
                } | null;
            };
            pricing: Array<{
                __typename?: 'Pricing';
                description?: string | null;
                type: PricingType;
                price?: number | null;
                unit?: string | null;
                strategy: PricingStrategy;
                chargeOnce?: boolean | null;
                tiers: Array<{
                    __typename?: 'PricingTier';
                    from: number;
                    to?: number | null;
                    price: number;
                }>;
            }>;
            licensing?: {
                __typename?: 'Licensing';
                isActive?: boolean | null;
                maxActivations?: number | null;
                expirationDate?: any | null;
                codeStrategy: LicensingCodeStrategy;
                codeLength?: number | null;
                maxDuration?: {
                    __typename?: 'Timeframe';
                    unit?: TimeUnit | null;
                    amount?: number | null;
                } | null;
            } | null;
            subscriptions: {
                __typename?: 'SubscriptionList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                }>;
            };
            addons: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canUpgradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            canDowngradeTo: {
                __typename?: 'ProductList';
                count: number;
                total: number;
                cursor?: string | null;
                items: Array<{
                    __typename?: 'Product';
                    id: string;
                    name: string;
                }>;
            };
            nextProduct?: {
                __typename?: 'Product';
                id: string;
                name: string;
            } | null;
            capabilities?: Array<{
                __typename?: 'ProductCapability';
                name: string;
                isActive: boolean;
                usageLimit?: Array<{
                    __typename?: 'SubscriptionUsage';
                    unit: string;
                    amount: number;
                } | null> | null;
            }> | null;
        };
        discountCoupon?: {
            __typename?: 'DiscountCoupon';
            id: string;
            code: string;
            redemptionDate?: any | null;
            periodsLeft?: number | null;
            subscription?: {
                __typename?: 'Subscription';
                id: string;
                product: {
                    __typename?: 'Product';
                    name: string;
                };
                customer: {
                    __typename?: 'Customer';
                    id: string;
                    name: string;
                };
            } | null;
            discount: {
                __typename?: 'Discount';
                id: string;
                name: string;
                isActive?: boolean | null;
            };
        } | null;
    };
};
export type ListSubscriptionsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListSubscriptionsQuery = {
    __typename?: 'Query';
    subscriptions: {
        __typename?: 'SubscriptionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Subscription';
            id: string;
            isActive: boolean;
            endReason?: EndReason | null;
            startDate?: any | null;
            endDate?: any | null;
            freeTrialStartDate?: any | null;
            freeTrialEndDate?: any | null;
            renewalDate?: any | null;
            lastCancellationDate?: any | null;
            nextCharge?: number | null;
            createdAt?: any | null;
            metadata?: any | null;
            usage?: Array<{
                __typename?: 'SubscriptionUsage';
                amount: number;
                unit: string;
            }> | null;
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
                currency?: any | null;
                locale?: string | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                people?: Array<{
                    __typename?: 'Person';
                    firstName: string;
                    lastName: string;
                    email: string;
                    metadata?: any | null;
                    settings?: {
                        __typename?: 'PersonSettings';
                        email?: {
                            __typename?: 'PersonEmailSettings';
                            invoices?: boolean | null;
                            payments?: boolean | null;
                        } | null;
                        customerPortal?: {
                            __typename?: 'PersonCustomerPortalSettings';
                            isActive?: boolean | null;
                        } | null;
                    } | null;
                }> | null;
                paymentMethod?: {
                    __typename?: 'PaymentMethod';
                    type: PaymentMethodType;
                    providerName?: PaymentProviderName | null;
                    lastDigits?: string | null;
                    externalId?: string | null;
                    metadata?: any | null;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            product: {
                __typename?: 'Product';
                id: string;
                name: string;
                sku: string;
                currency: any;
                taxRateCode?: TaxRateCode | null;
                metadata?: any | null;
                createdAt?: any | null;
                isActive: boolean;
                plan: {
                    __typename?: 'Plan';
                    billingDay?: number | null;
                    billingTerms?: BillingTerms | null;
                    recurrency: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    };
                    paymentTerms?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    cancellationNotice?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                    freeTrial?: {
                        __typename?: 'Timeframe';
                        amount?: number | null;
                        unit?: TimeUnit | null;
                    } | null;
                };
                pricing: Array<{
                    __typename?: 'Pricing';
                    description?: string | null;
                    type: PricingType;
                    price?: number | null;
                    unit?: string | null;
                    strategy: PricingStrategy;
                    chargeOnce?: boolean | null;
                    tiers: Array<{
                        __typename?: 'PricingTier';
                        from: number;
                        to?: number | null;
                        price: number;
                    }>;
                }>;
                licensing?: {
                    __typename?: 'Licensing';
                    isActive?: boolean | null;
                    maxActivations?: number | null;
                    expirationDate?: any | null;
                    codeStrategy: LicensingCodeStrategy;
                    codeLength?: number | null;
                    maxDuration?: {
                        __typename?: 'Timeframe';
                        unit?: TimeUnit | null;
                        amount?: number | null;
                    } | null;
                } | null;
                subscriptions: {
                    __typename?: 'SubscriptionList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Subscription';
                        id: string;
                        product: {
                            __typename?: 'Product';
                            name: string;
                        };
                    }>;
                };
                addons: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canUpgradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                canDowngradeTo: {
                    __typename?: 'ProductList';
                    count: number;
                    total: number;
                    cursor?: string | null;
                    items: Array<{
                        __typename?: 'Product';
                        id: string;
                        name: string;
                    }>;
                };
                nextProduct?: {
                    __typename?: 'Product';
                    id: string;
                    name: string;
                } | null;
                capabilities?: Array<{
                    __typename?: 'ProductCapability';
                    name: string;
                    isActive: boolean;
                    usageLimit?: Array<{
                        __typename?: 'SubscriptionUsage';
                        unit: string;
                        amount: number;
                    } | null> | null;
                }> | null;
            };
            discountCoupon?: {
                __typename?: 'DiscountCoupon';
                id: string;
                code: string;
                redemptionDate?: any | null;
                periodsLeft?: number | null;
                subscription?: {
                    __typename?: 'Subscription';
                    id: string;
                    product: {
                        __typename?: 'Product';
                        name: string;
                    };
                    customer: {
                        __typename?: 'Customer';
                        id: string;
                        name: string;
                    };
                } | null;
                discount: {
                    __typename?: 'Discount';
                    id: string;
                    name: string;
                    isActive?: boolean | null;
                };
            } | null;
        }>;
    };
};
export type TransactionFragmentFragment = {
    __typename?: 'Transaction';
    id: string;
    type: TransactionType;
    amount: number;
    currency: any;
    reference?: string | null;
    metadata?: any | null;
    createdAt: any;
    updatedAt?: any | null;
    paymentMethod: {
        __typename?: 'PaymentMethod';
        type: PaymentMethodType;
        providerName?: PaymentProviderName | null;
        lastDigits?: string | null;
        metadata?: any | null;
    };
    customer: {
        __typename?: 'Customer';
        id: string;
        name: string;
    };
    invoice?: {
        __typename?: 'Invoice';
        id: string;
        number: string;
    } | null;
    creditNote?: {
        __typename?: 'CreditNote';
        id: string;
        number: string;
    } | null;
};
export type CreateTransactionMutationVariables = Exact<{
    input: CreateTransactionInput;
}>;
export type CreateTransactionMutation = {
    __typename?: 'Mutation';
    createTransaction: {
        __typename?: 'Transaction';
        id: string;
        type: TransactionType;
        amount: number;
        currency: any;
        reference?: string | null;
        metadata?: any | null;
        createdAt: any;
        updatedAt?: any | null;
        paymentMethod: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            metadata?: any | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        invoice?: {
            __typename?: 'Invoice';
            id: string;
            number: string;
        } | null;
        creditNote?: {
            __typename?: 'CreditNote';
            id: string;
            number: string;
        } | null;
    };
};
export type GetTransactionQueryVariables = Exact<{
    id: Scalars['ID'];
}>;
export type GetTransactionQuery = {
    __typename?: 'Query';
    transaction: {
        __typename?: 'Transaction';
        id: string;
        type: TransactionType;
        amount: number;
        currency: any;
        reference?: string | null;
        metadata?: any | null;
        createdAt: any;
        updatedAt?: any | null;
        paymentMethod: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            metadata?: any | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        invoice?: {
            __typename?: 'Invoice';
            id: string;
            number: string;
        } | null;
        creditNote?: {
            __typename?: 'CreditNote';
            id: string;
            number: string;
        } | null;
    };
};
export type ListTransactionsQueryVariables = Exact<{
    filters?: InputMaybe<FilterInput>;
}>;
export type ListTransactionsQuery = {
    __typename?: 'Query';
    transactions: {
        __typename?: 'TransactionList';
        count: number;
        total: number;
        cursor?: string | null;
        items: Array<{
            __typename?: 'Transaction';
            id: string;
            type: TransactionType;
            amount: number;
            currency: any;
            reference?: string | null;
            metadata?: any | null;
            createdAt: any;
            updatedAt?: any | null;
            paymentMethod: {
                __typename?: 'PaymentMethod';
                type: PaymentMethodType;
                providerName?: PaymentProviderName | null;
                lastDigits?: string | null;
                metadata?: any | null;
            };
            customer: {
                __typename?: 'Customer';
                id: string;
                name: string;
            };
            invoice?: {
                __typename?: 'Invoice';
                id: string;
                number: string;
            } | null;
            creditNote?: {
                __typename?: 'CreditNote';
                id: string;
                number: string;
            } | null;
        }>;
    };
};
export type RemoveTransactionMutationVariables = Exact<{
    id: Scalars['ID'];
}>;
export type RemoveTransactionMutation = {
    __typename?: 'Mutation';
    removeTransaction: {
        __typename?: 'Transaction';
        id: string;
        type: TransactionType;
        amount: number;
        currency: any;
        reference?: string | null;
        metadata?: any | null;
        createdAt: any;
        updatedAt?: any | null;
        paymentMethod: {
            __typename?: 'PaymentMethod';
            type: PaymentMethodType;
            providerName?: PaymentProviderName | null;
            lastDigits?: string | null;
            metadata?: any | null;
        };
        customer: {
            __typename?: 'Customer';
            id: string;
            name: string;
        };
        invoice?: {
            __typename?: 'Invoice';
            id: string;
            number: string;
        } | null;
        creditNote?: {
            __typename?: 'CreditNote';
            id: string;
            number: string;
        } | null;
    };
};
export type UserFragmentFragment = {
    __typename?: 'User';
    id: string;
    firstName?: string | null;
    lastName?: string | null;
    email: string;
    locale?: string | null;
    currency?: any | null;
    theme?: string | null;
};
export type GetUserQueryVariables = Exact<{
    [key: string]: never;
}>;
export type GetUserQuery = {
    __typename?: 'Query';
    user: {
        __typename?: 'User';
        id: string;
        firstName?: string | null;
        lastName?: string | null;
        email: string;
        locale?: string | null;
        currency?: any | null;
        theme?: string | null;
        memberships: Array<{
            __typename?: 'Member';
            id: string;
            name: string;
            role: MemberRole;
            email?: string | null;
            account: {
                __typename?: 'Account';
                id: string;
                name: string;
                isProduction?: boolean | null;
                metadata?: any | null;
                createdAt?: any | null;
                updatedAt?: any | null;
                billing?: {
                    __typename?: 'Billing';
                    companyName?: string | null;
                    address: string;
                    address2?: string | null;
                    street?: string | null;
                    streetNumber?: string | null;
                    postalCode: string;
                    city: string;
                    countryCode: string;
                    invoiceFormat?: InvoiceFormat | null;
                    metadata?: any | null;
                    taxIds?: Array<{
                        __typename?: 'TaxId';
                        type: TaxIdType;
                        countryCode?: string | null;
                        value: string;
                    }> | null;
                    contactPerson?: {
                        __typename?: 'Person';
                        firstName: string;
                        lastName: string;
                        email: string;
                        phoneNumber?: string | null;
                    } | null;
                } | null;
                settings: {
                    __typename?: 'AccountSettings';
                    domain: {
                        __typename?: 'AccountDomainSettings';
                        name: string;
                        config?: {
                            __typename?: 'AccountDomainConfigSettings';
                            hostname: string;
                            isVerified: boolean;
                            verificationRecord: {
                                __typename?: 'AccountDomainConfigVerificationSettings';
                                name: string;
                                value: string;
                            };
                        } | null;
                    };
                    analytics?: {
                        __typename?: 'AccountAnalyticsSettings';
                        dashboardId?: string | null;
                        isAvailableInGlobalDashboard?: boolean | null;
                    } | null;
                    theme?: {
                        __typename?: 'AccountThemeSettings';
                        light?: {
                            __typename?: 'AccountTheme';
                            logoUrl?: string | null;
                        } | null;
                        dark?: {
                            __typename?: 'AccountTheme';
                            logoUrl?: string | null;
                        } | null;
                    } | null;
                    billing: {
                        __typename?: 'AccountBillingSettings';
                        taxSchemes?: Array<string> | null;
                        logoUrl?: string | null;
                        footerText?: string | null;
                        customTaxRate?: {
                            __typename?: 'CustomTaxRate';
                            description: string;
                            rate: number;
                            code: string;
                        } | null;
                        numberingFormat?: {
                            __typename?: 'AccountBillingSettingsNumberingFormat';
                            invoice?: string | null;
                            creditNote?: string | null;
                        } | null;
                        invoiceFormat?: {
                            __typename?: 'AccountBillingSettingsInvoiceFormat';
                            default: InvoiceFormat;
                            rules?: Array<{
                                __typename?: 'AccountBillingSettingsInvoiceFormatCountryRule';
                                countryCode: string;
                                format: InvoiceFormat;
                            }> | null;
                        } | null;
                    };
                    payments?: {
                        __typename?: 'AccountPaymentSettings';
                        paymentMethods?: Array<{
                            __typename?: 'AccountPaymentMethodSettings';
                            type: PaymentMethodType;
                            providerName: PaymentProviderName;
                            isActive: boolean;
                        }> | null;
                        providers?: Array<{
                            __typename?: 'PaymentProvider';
                            name: PaymentProviderName;
                            config?: any | null;
                        }> | null;
                    } | null;
                    metadata?: {
                        __typename?: 'AccountMetadataSettings';
                        customer?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        invoice?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        creditNote?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        licenseUser?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        license?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        product?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        subscription?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        transaction?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        billingProfile?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                        person?: Array<{
                            __typename?: 'AccountMetadataField';
                            name: string;
                            type: string;
                            description: string;
                            label?: string | null;
                            required: boolean;
                            format?: string | null;
                            default?: string | null;
                            isPersonalInformation?: boolean | null;
                            displayInInvoices?: boolean | null;
                            displayInCheckoutStep?: string | null;
                            options?: Array<{
                                __typename?: 'AccountMetadataOptionField';
                                label: string;
                                value: string;
                            }> | null;
                        }> | null;
                    } | null;
                    capabilities?: Array<{
                        __typename?: 'ProductCapabilitySettings';
                        name: string;
                        type: string;
                        description: string;
                    }> | null;
                };
                capabilities: {
                    __typename?: 'AccountCapabilities';
                    canManageLicenses?: boolean | null;
                    canBill?: boolean | null;
                    canCreateApps?: boolean | null;
                    hasCustomerPortal?: boolean | null;
                    hasCheckout?: boolean | null;
                    canCreateCustomDomains?: boolean | null;
                    canInviteMembers?: boolean | null;
                    canCustomizeFields?: boolean | null;
                    hasCancellationNotice?: boolean | null;
                    hasAnalytics?: boolean | null;
                    hasIntegrations?: boolean | null;
                };
            };
            customer?: {
                __typename?: 'Customer';
                id: string;
                name: string;
            } | null;
        }>;
    };
};
export type UpdateUserMutationVariables = Exact<{
    input: UpdateUserInput;
}>;
export type UpdateUserMutation = {
    __typename?: 'Mutation';
    updateUser: {
        __typename?: 'User';
        id: string;
        firstName?: string | null;
        lastName?: string | null;
        email: string;
        locale?: string | null;
        currency?: any | null;
        theme?: string | null;
    };
};
export declare const TaxIdFragmentFragmentDoc: DocumentNode<TaxIdFragmentFragment, unknown>;
export declare const BillingFragmentFragmentDoc: DocumentNode<BillingFragmentFragment, unknown>;
export declare const AccountMetadataFieldFragmentFragmentDoc: DocumentNode<AccountMetadataFieldFragmentFragment, unknown>;
export declare const AccountFragmentFragmentDoc: DocumentNode<AccountFragmentFragment, unknown>;
export declare const MemberFragmentFragmentDoc: DocumentNode<MemberFragmentFragment, unknown>;
export declare const MemberInviteFragmentFragmentDoc: DocumentNode<MemberInviteFragmentFragment, unknown>;
export declare const AppFragmentFragmentDoc: DocumentNode<AppFragmentFragment, unknown>;
export declare const PublicAppFragmentFragmentDoc: DocumentNode<PublicAppFragmentFragment, unknown>;
export declare const AppInstanceFragmentFragmentDoc: DocumentNode<AppInstanceFragmentFragment, unknown>;
export declare const PaymentMethodFragmentFragmentDoc: DocumentNode<PaymentMethodFragmentFragment, unknown>;
export declare const PersonFragmentFragmentDoc: DocumentNode<PersonFragmentFragment, unknown>;
export declare const CustomerFragmentFragmentDoc: DocumentNode<CustomerFragmentFragment, unknown>;
export declare const InvoiceListItemFragmentFragmentDoc: DocumentNode<InvoiceListItemFragmentFragment, unknown>;
export declare const CreditNoteFragmentFragmentDoc: DocumentNode<CreditNoteFragmentFragment, unknown>;
export declare const CreditNoteListItemFragmentFragmentDoc: DocumentNode<CreditNoteListItemFragmentFragment, unknown>;
export declare const DiscountCouponFragmentFragmentDoc: DocumentNode<DiscountCouponFragmentFragment, unknown>;
export declare const DiscountFragmentFragmentDoc: DocumentNode<DiscountFragmentFragment, unknown>;
export declare const PlanFragmentFragmentDoc: DocumentNode<PlanFragmentFragment, unknown>;
export declare const PricingFragmentFragmentDoc: DocumentNode<PricingFragmentFragment, unknown>;
export declare const LicensingFragmentFragmentDoc: DocumentNode<LicensingFragmentFragment, unknown>;
export declare const ProductFragmentFragmentDoc: DocumentNode<ProductFragmentFragment, unknown>;
export declare const SubscriptionFragmentFragmentDoc: DocumentNode<SubscriptionFragmentFragment, unknown>;
export declare const InvoiceFragmentFragmentDoc: DocumentNode<InvoiceFragmentFragment, unknown>;
export declare const LicenseFragmentFragmentDoc: DocumentNode<LicenseFragmentFragment, unknown>;
export declare const LicenseUserFragmentFragmentDoc: DocumentNode<LicenseUserFragmentFragment, unknown>;
export declare const PaymentSessionFragmentFragmentDoc: DocumentNode<PaymentSessionFragmentFragment, unknown>;
export declare const CustomerSessionProductFragmentFragmentDoc: DocumentNode<CustomerSessionProductFragmentFragment, unknown>;
export declare const TransactionFragmentFragmentDoc: DocumentNode<TransactionFragmentFragment, unknown>;
export declare const UserFragmentFragmentDoc: DocumentNode<UserFragmentFragment, unknown>;
export declare const CreateAccountDocument: DocumentNode<CreateAccountMutation, Exact<{
    input: CreateAccountInput;
}>>;
export declare const UpdateAccountDocument: DocumentNode<UpdateAccountMutation, Exact<{
    input: UpdateAccountInput;
}>>;
export declare const GetAccountDocument: DocumentNode<GetAccountQuery, Exact<{
    [key: string]: never;
}>>;
export declare const InviteMemberDocument: DocumentNode<InviteMemberMutation, Exact<{
    input: InviteMemberInput;
}>>;
export declare const AcceptMemberInviteDocument: DocumentNode<AcceptMemberInviteMutation, Exact<{
    id: Scalars['ID'];
    input: AcceptMemberInviteInput;
}>>;
export declare const RemoveMemberDocument: DocumentNode<RemoveMemberMutation, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListMembersDocument: DocumentNode<ListMembersQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ListMemberInvitesDocument: DocumentNode<ListMemberInvitesQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const AddAccountDomainDocument: DocumentNode<AddAccountDomainMutation, Exact<{
    input: AddAccountDomainInput;
}>>;
export declare const RemoveAccountDomainDocument: DocumentNode<RemoveAccountDomainMutation, Exact<{
    [key: string]: never;
}>>;
export declare const AddPaymentProviderDocument: DocumentNode<AddPaymentProviderMutation, Exact<{
    input: PaymentProviderInput;
}>>;
export declare const UpdatePaymentProviderDocument: DocumentNode<UpdatePaymentProviderMutation, Exact<{
    input: PaymentProviderInput;
}>>;
export declare const RemovePaymentProviderDocument: DocumentNode<RemovePaymentProviderMutation, Exact<{
    name: PaymentProviderName;
}>>;
export declare const GetUploadUrlDocument: DocumentNode<GetUploadUrlMutation, Exact<{
    input: GetUploadUrlInput;
}>>;
export declare const CreateAnalyticsSessionTokenDocument: DocumentNode<CreateAnalyticsSessionTokenMutation, Exact<{
    [key: string]: never;
}>>;
export declare const CreateAppDocument: DocumentNode<CreateAppMutation, Exact<{
    input: CreateAppInput;
}>>;
export declare const UpdateAppDocument: DocumentNode<UpdateAppMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateAppInput;
}>>;
export declare const InstallAppDocument: DocumentNode<InstallAppMutation, Exact<{
    id: Scalars['ID'];
    input?: InputMaybe<InstallAppInput> | undefined;
}>>;
export declare const UninstallAppDocument: DocumentNode<UninstallAppMutation, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetAppDocument: DocumentNode<GetAppQuery, Exact<{
    id?: InputMaybe<string> | undefined;
}>>;
export declare const GetPublicAppDocument: DocumentNode<GetPublicAppQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListAppsDocument: DocumentNode<ListAppsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ListPublicAppsDocument: DocumentNode<ListPublicAppsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ListInstalledAppsDocument: DocumentNode<ListInstalledAppsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ListEventsDocument: DocumentNode<ListEventsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateCreditNoteDocument: DocumentNode<CreateCreditNoteMutation, Exact<{
    input: CreateCreditNoteInput;
}>>;
export declare const GetCreditNoteDocument: DocumentNode<GetCreditNoteQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetCreditNotePreviewDocument: DocumentNode<GetCreditNotePreviewQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListCreditNotesDocument: DocumentNode<ListCreditNotesQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ExportCreditNotesDocument: DocumentNode<ExportCreditNotesMutation, Exact<{
    input: CreditNoteExportInput;
}>>;
export declare const CreateCustomerDocument: DocumentNode<CreateCustomerMutation, Exact<{
    input: CreateCustomerInput;
}>>;
export declare const UpdateCustomerDocument: DocumentNode<UpdateCustomerMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateCustomerInput;
}>>;
export declare const GetCustomerDocument: DocumentNode<GetCustomerQuery, Exact<{
    id: Scalars['ID'];
    subscriptionFilters?: InputMaybe<FilterInput> | undefined;
    transactionFilters?: InputMaybe<FilterInput> | undefined;
    invoiceFilters?: InputMaybe<FilterInput> | undefined;
    creditNoteFilters?: InputMaybe<FilterInput> | undefined;
    licenseUserFilters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ListCustomersDocument: DocumentNode<ListCustomersQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
    subscriptionFilters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateCustomerSessionDocument: DocumentNode<CreateCustomerSessionMutation, Exact<{
    input?: InputMaybe<CreateCustomerSessionInput> | undefined;
}>>;
export declare const UpdateCustomerSessionDocument: DocumentNode<UpdateCustomerSessionMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateCustomerSessionInput;
}>>;
export declare const CreateDiscountDocument: DocumentNode<CreateDiscountMutation, Exact<{
    input: CreateDiscountInput;
}>>;
export declare const UpdateDiscountDocument: DocumentNode<UpdateDiscountMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateDiscountInput;
}>>;
export declare const AddDiscountCouponDocument: DocumentNode<AddDiscountCouponMutation, Exact<{
    input: AddDiscountCouponInput;
}>>;
export declare const RedeemDiscountCouponDocument: DocumentNode<RedeemDiscountCouponMutation, Exact<{
    input: RedeemDiscountCouponInput;
}>>;
export declare const RemoveDiscountCouponDocument: DocumentNode<RemoveDiscountCouponMutation, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetDiscountDocument: DocumentNode<GetDiscountQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListDiscountsDocument: DocumentNode<ListDiscountsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateInvoiceDocument: DocumentNode<CreateInvoiceMutation, Exact<{
    input: CreateInvoiceInput;
}>>;
export declare const GetInvoiceDocument: DocumentNode<GetInvoiceQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetInvoicePreviewDocument: DocumentNode<GetInvoicePreviewQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListInvoicesDocument: DocumentNode<ListInvoicesQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const ExportInvoicesDocument: DocumentNode<ExportInvoicesMutation, Exact<{
    input: InvoiceExportInput;
}>>;
export declare const CreateLicenseUserDocument: DocumentNode<CreateLicenseUserMutation, Exact<{
    input: CreateLicenseUserInput;
}>>;
export declare const UpdateLicenseUserDocument: DocumentNode<UpdateLicenseUserMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateLicenseUserInput;
}>>;
export declare const RemoveLicenseUserDocument: DocumentNode<RemoveLicenseUserMutation, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetLicenseUserDocument: DocumentNode<GetLicenseUserQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListLicenseUsersDocument: DocumentNode<ListLicenseUsersQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateLicenseDocument: DocumentNode<CreateLicenseMutation, Exact<{
    input: CreateLicenseInput;
}>>;
export declare const UpdateLicenseDocument: DocumentNode<UpdateLicenseMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateLicenseInput;
}>>;
export declare const ActivateLicenseDocument: DocumentNode<ActivateLicenseMutation, Exact<{
    input: ActivateLicenseInput;
}>>;
export declare const GetLicenseDocument: DocumentNode<GetLicenseQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListLicensesDocument: DocumentNode<ListLicensesQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const AddPaymentMethodDocument: DocumentNode<AddPaymentMethodMutation, Exact<{
    input: AddPaymentMethodInput;
}>>;
export declare const RemovePaymentMethodDocument: DocumentNode<RemovePaymentMethodMutation, Exact<{
    input: RemovePaymentMethodInput;
}>>;
export declare const ListBanksDocument: DocumentNode<ListBanksQuery, Exact<{
    countryCode: Scalars['String'];
}>>;
export declare const ListBankAccountsDocument: DocumentNode<ListBankAccountsQuery, Exact<{
    [key: string]: never;
}>>;
export declare const ListBankTransactionsDocument: DocumentNode<ListBankTransactionsQuery, Exact<{
    filters: FilterInput;
}>>;
export declare const UpdateBankTransactionDocument: DocumentNode<UpdateBankTransactionMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateBankTransactionInput;
}>>;
export declare const RequestBankTransactionSyncDocument: DocumentNode<RequestBankTransactionSyncMutation, Exact<{
    [key: string]: never;
}>>;
export declare const CreateProductDocument: DocumentNode<CreateProductMutation, Exact<{
    input: CreateProductInput;
}>>;
export declare const UpdateProductDocument: DocumentNode<UpdateProductMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateProductInput;
}>>;
export declare const GetProductDocument: DocumentNode<GetProductQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetPriceEstimationDocument: DocumentNode<GetPriceEstimationQuery, Exact<{
    input?: InputMaybe<PriceEstimationInput> | undefined;
}>>;
export declare const ListProductsDocument: DocumentNode<ListProductsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateSubscriptionDocument: DocumentNode<CreateSubscriptionMutation, Exact<{
    input: CreateSubscriptionInput;
}>>;
export declare const UpdateSubscriptionDocument: DocumentNode<UpdateSubscriptionMutation, Exact<{
    id: Scalars['ID'];
    input: UpdateSubscriptionInput;
}>>;
export declare const UpgradeSubscriptionDocument: DocumentNode<UpgradeSubscriptionMutation, Exact<{
    id: Scalars['ID'];
    input: UpgradeSubscriptionInput;
}>>;
export declare const DowngradeSubscriptionDocument: DocumentNode<DowngradeSubscriptionMutation, Exact<{
    id: Scalars['ID'];
    input: DowngradeSubscriptionInput;
}>>;
export declare const CancelSubscriptionDocument: DocumentNode<CancelSubscriptionMutation, Exact<{
    id: Scalars['ID'];
    input: CancelSubscriptionInput;
}>>;
export declare const GetSubscriptionDocument: DocumentNode<GetSubscriptionQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListSubscriptionsDocument: DocumentNode<ListSubscriptionsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const CreateTransactionDocument: DocumentNode<CreateTransactionMutation, Exact<{
    input: CreateTransactionInput;
}>>;
export declare const GetTransactionDocument: DocumentNode<GetTransactionQuery, Exact<{
    id: Scalars['ID'];
}>>;
export declare const ListTransactionsDocument: DocumentNode<ListTransactionsQuery, Exact<{
    filters?: InputMaybe<FilterInput> | undefined;
}>>;
export declare const RemoveTransactionDocument: DocumentNode<RemoveTransactionMutation, Exact<{
    id: Scalars['ID'];
}>>;
export declare const GetUserDocument: DocumentNode<GetUserQuery, Exact<{
    [key: string]: never;
}>>;
export declare const UpdateUserDocument: DocumentNode<UpdateUserMutation, Exact<{
    input: UpdateUserInput;
}>>;
