import * as Shared from "./shared.js"; import * as PricesAPI from "./prices.js"; export interface BillingAddress { address: BillingAddress.Address; email?: string | null; firstName?: string | null; lastName?: string | null; name?: string | null; phone?: string | null; } export declare namespace BillingAddress { interface Address { country: string; city?: string | null; line1?: string | null; line2?: string | null; name?: string | null; postal_code?: string | null; state?: string | null; } } export interface NonRenewingSubscriptionRecord { id: string; backupPaymentMethodId: string | null; /** * Omitted. */ billingCycleAnchorDate: null; cancellationReason: string | null; /** * Epoch milliseconds. */ createdAt: number; /** * Whether the subscription is current (statuses "active", "trialing", "past_due", * "cancellation_scheduled", or "credit_trial") */ current: boolean; /** * Omitted. */ currentBillingPeriodEnd: null; /** * Omitted. */ currentBillingPeriodStart: null; customerId: string; defaultPaymentMethodId: string | null; doNotCharge: boolean | null; /** * Omitted. */ interval: null; /** * Omitted. */ intervalCount: null; isFreePlan: boolean | null; livemode: boolean; name: string | null; organizationId: string; priceId: string; pricingModelId: string; renews: boolean; replacedBySubscriptionId: string | null; runBillingAtPeriodStart: boolean | null; /** * Epoch milliseconds. */ startDate: number; status: 'active' | 'canceled' | 'credit_trial'; /** * Omitted. */ trialEnd: null; /** * Epoch milliseconds. */ updatedAt: number; /** * Epoch milliseconds. */ canceledAt?: number | null; /** * Epoch milliseconds. */ cancelScheduledAt?: number | null; /** * JSON object */ metadata?: { [key: string]: string | number | boolean; } | null; } export interface PaymentMethodClientSelectSchema { id: string; billingDetails: PaymentMethodClientSelectSchema.BillingDetails; /** * Epoch milliseconds. */ createdAt: number; customerId: string; default: boolean; livemode: boolean; paymentMethodData: { [key: string]: unknown; }; pricingModelId: string; type: 'card' | 'link' | 'us_bank_account' | 'sepa_debit'; /** * Epoch milliseconds. */ updatedAt: number; /** * JSON object */ metadata?: { [key: string]: string | number | boolean; } | null; } export declare namespace PaymentMethodClientSelectSchema { interface BillingDetails { address: BillingDetails.Address; email?: string | null; name?: string | null; } namespace BillingDetails { interface Address { country: string; address?: Address.Address | null; city?: string | null; line1?: string | null; line2?: string | null; name?: string | null; postal_code?: string | null; state?: string | null; } namespace Address { interface Address { country: string; city?: string | null; line1?: string | null; line2?: string | null; name?: string | null; postal_code?: string | null; state?: string | null; } } } } export interface PricingModelDetailsRecord { id: string; /** * Epoch milliseconds. */ createdAt: number; isDefault: boolean; livemode: boolean; name: string; organizationId: string; products: Array; /** * Epoch milliseconds. */ updatedAt: number; usageMeters: Array; /** * The default product for the pricing model. If no product is explicitly set as * default, will return undefined. */ defaultProduct?: PricingModelDetailsRecord.DefaultProduct; } export declare namespace PricingModelDetailsRecord { interface Product { id: string; active: boolean; /** * Epoch milliseconds. */ createdAt: number; default: boolean; /** * The default price for the product. If no price is explicitly set as default, * will return the first price created for the product.. */ defaultPrice: PricesAPI.SubscriptionPriceClientSelectSchema | PricesAPI.SinglePaymentPriceClientSelectSchema | PricesAPI.UsagePriceClientSelectSchema; description: string | null; features: Array; imageURL: string | null; livemode: boolean; name: string; organizationId: string; pluralQuantityLabel: string | null; prices: Array; pricingModelId: string; singularQuantityLabel: string | null; slug: string | null; /** * Epoch milliseconds. */ updatedAt: number; } namespace Product { interface ResourceFeatureClientSelectSchema { id: string; active: boolean; /** * A positive integer */ amount: number; /** * Epoch milliseconds. */ createdAt: number; description: string; livemode: boolean; name: string; organizationId: string; pricingModelId: string; resourceId: string; slug: string; type: 'resource'; /** * Epoch milliseconds. */ updatedAt: number; renewalFrequency?: null; usageMeterId?: null; } } interface UsageMeter { id: string; /** * The type of aggregation to perform on the usage meter. Defaults to "sum", which * aggregates all the usage event amounts for the billing period. * "count_distinct_properties" counts the number of distinct properties in the * billing period for a given meter. */ aggregationType: 'sum' | 'count_distinct_properties'; /** * Epoch milliseconds. */ createdAt: number; livemode: boolean; /** * The name of the usage meter */ name: string; organizationId: string; prices: Array; pricingModelId: string; /** * The slug of the usage meter */ slug: string; /** * Epoch milliseconds. */ updatedAt: number; /** * The default price for the usage meter. If no price is explicitly set as default, * will return the first price. */ defaultPrice?: PricesAPI.UsagePriceClientSelectSchema; } /** * The default product for the pricing model. If no product is explicitly set as * default, will return undefined. */ interface DefaultProduct { id: string; active: boolean; /** * Epoch milliseconds. */ createdAt: number; default: boolean; /** * The default price for the product. If no price is explicitly set as default, * will return the first price created for the product.. */ defaultPrice: PricesAPI.SubscriptionPriceClientSelectSchema | PricesAPI.SinglePaymentPriceClientSelectSchema | PricesAPI.UsagePriceClientSelectSchema; description: string | null; features: Array; imageURL: string | null; livemode: boolean; name: string; organizationId: string; pluralQuantityLabel: string | null; prices: Array; pricingModelId: string; singularQuantityLabel: string | null; slug: string | null; /** * Epoch milliseconds. */ updatedAt: number; } namespace DefaultProduct { interface ResourceFeatureClientSelectSchema { id: string; active: boolean; /** * A positive integer */ amount: number; /** * Epoch milliseconds. */ createdAt: number; description: string; livemode: boolean; name: string; organizationId: string; pricingModelId: string; resourceId: string; slug: string; type: 'resource'; /** * Epoch milliseconds. */ updatedAt: number; renewalFrequency?: null; usageMeterId?: null; } } } export interface PurchaseInvoiceClientSelectSchema { id: string; applicationFee: number | null; bankPaymentOnly: boolean | null; billingRunId: string | null; /** * Epoch milliseconds. */ createdAt: number; /** * Currency code */ currency: 'USD' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SZL' | 'THB' | 'TJS' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW'; customerId: string; /** * Epoch milliseconds. */ invoiceDate: number; invoiceNumber: string; livemode: boolean; memo: string | null; organizationId: string; ownerMembershipId: string | null; pricingModelId: string; purchaseId: string; status: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | 'refunded' | 'partially_refunded' | 'awaiting_payment_confirmation'; subtotal: number | null; taxAmount: number | null; taxRatePercentage: string | null; taxState: string | null; type: 'purchase'; /** * Epoch milliseconds. */ updatedAt: number; /** * Omitted. */ billingPeriodEndDate?: null; /** * Omitted. */ billingPeriodId?: null; /** * Omitted. */ billingPeriodStartDate?: null; /** * Epoch milliseconds. */ dueDate?: number | null; pdfURL?: string | null; receiptPdfURL?: string | null; /** * Omitted. */ subscriptionId?: null; /** * ISO 3166-1 alpha-2 country code */ taxCountry?: 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | null; taxType?: 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'rst' | 'sales_tax' | 'vat' | 'none' | null; } export interface StandaloneInvoiceClientSelectSchema { id: string; applicationFee: number | null; bankPaymentOnly: boolean | null; /** * Omitted. */ billingPeriodId: null; billingRunId: string | null; /** * Epoch milliseconds. */ createdAt: number; /** * Currency code */ currency: 'USD' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SZL' | 'THB' | 'TJS' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW'; customerId: string; /** * Epoch milliseconds. */ invoiceDate: number; invoiceNumber: string; livemode: boolean; memo: string | null; organizationId: string; ownerMembershipId: string | null; pricingModelId: string; /** * Omitted. */ purchaseId: null; status: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | 'refunded' | 'partially_refunded' | 'awaiting_payment_confirmation'; stripePaymentIntentId: string | null; stripeTaxCalculationId: string | null; stripeTaxTransactionId: string | null; /** * Omitted. */ subscriptionId: null; subtotal: number | null; taxAmount: number | null; taxRatePercentage: string | null; taxState: string | null; type: 'standalone'; /** * Epoch milliseconds. */ updatedAt: number; /** * Omitted. */ billingPeriodEndDate?: null; /** * Omitted. */ billingPeriodStartDate?: null; /** * Epoch milliseconds. */ dueDate?: number | null; pdfURL?: string | null; receiptPdfURL?: string | null; /** * ISO 3166-1 alpha-2 country code */ taxCountry?: 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | null; taxType?: 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'rst' | 'sales_tax' | 'vat' | 'none' | null; } export interface StandardSubscriptionRecord { id: string; backupPaymentMethodId: string | null; cancellationReason: string | null; /** * Epoch milliseconds. */ createdAt: number; /** * Whether the subscription is current (statuses "active", "trialing", "past_due", * or "cancellation_scheduled") */ current: boolean; customerId: string; defaultPaymentMethodId: string | null; doNotCharge: boolean | null; interval: 'day' | 'week' | 'month' | 'year'; /** * A positive integer */ intervalCount: number; isFreePlan: boolean | null; livemode: boolean; name: string | null; organizationId: string; priceId: string; pricingModelId: string; renews: true; replacedBySubscriptionId: string | null; runBillingAtPeriodStart: boolean | null; /** * Epoch milliseconds. */ startDate: number; status: 'trialing' | 'active' | 'past_due' | 'unpaid' | 'cancellation_scheduled' | 'incomplete' | 'incomplete_expired' | 'canceled' | 'paused'; /** * Epoch milliseconds. */ updatedAt: number; /** * Epoch milliseconds. */ billingCycleAnchorDate?: number | null; /** * Epoch milliseconds. */ canceledAt?: number | null; /** * Epoch milliseconds. */ cancelScheduledAt?: number | null; /** * Epoch milliseconds. */ currentBillingPeriodEnd?: number | null; /** * Epoch milliseconds. */ currentBillingPeriodStart?: number | null; /** * JSON object */ metadata?: { [key: string]: string | number | boolean; } | null; /** * Epoch milliseconds. */ trialEnd?: number | null; } export interface StaticInvoiceLineItemClientSelectSchema { id: string; /** * Epoch milliseconds. */ createdAt: number; description: string | null; invoiceId: string; livemode: boolean; price: number; priceId: string | null; pricingModelId: string; quantity: number; type: 'static'; /** * Epoch milliseconds. */ updatedAt: number; ledgerAccountCredit?: null; ledgerAccountId?: null; } export interface SubscriptionInvoiceClientSelectSchema { id: string; applicationFee: number | null; bankPaymentOnly: boolean | null; billingPeriodId: string; billingRunId: string | null; /** * Epoch milliseconds. */ createdAt: number; /** * Currency code */ currency: 'USD' | 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JMD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SHP' | 'SLE' | 'SOS' | 'SRD' | 'STD' | 'SZL' | 'THB' | 'TJS' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW'; customerId: string; /** * Epoch milliseconds. */ invoiceDate: number; invoiceNumber: string; livemode: boolean; memo: string | null; organizationId: string; ownerMembershipId: string | null; pricingModelId: string; /** * Omitted. */ purchaseId: null; status: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | 'refunded' | 'partially_refunded' | 'awaiting_payment_confirmation'; subscriptionId: string; subtotal: number | null; taxAmount: number | null; taxRatePercentage: string | null; taxState: string | null; type: 'subscription'; /** * Epoch milliseconds. */ updatedAt: number; /** * Epoch milliseconds. */ billingPeriodEndDate?: number | null; /** * Epoch milliseconds. */ billingPeriodStartDate?: number | null; /** * Epoch milliseconds. */ dueDate?: number | null; pdfURL?: string | null; receiptPdfURL?: string | null; /** * ISO 3166-1 alpha-2 country code */ taxCountry?: 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | null; taxType?: 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'rst' | 'sales_tax' | 'vat' | 'none' | null; } export interface ToggleFeatureClientSelectSchema { id: string; active: boolean; /** * Epoch milliseconds. */ createdAt: number; description: string; livemode: boolean; name: string; organizationId: string; pricingModelId: string; slug: string; type: 'toggle'; /** * Epoch milliseconds. */ updatedAt: number; amount?: null; renewalFrequency?: null; resourceId?: null; usageMeterId?: null; } export interface UsageCreditGrantFeatureClientSelectSchema { id: string; active: boolean; /** * A positive integer */ amount: number; /** * Epoch milliseconds. */ createdAt: number; description: string; livemode: boolean; name: string; organizationId: string; pricingModelId: string; renewalFrequency: 'once' | 'every_billing_period'; slug: string; type: 'usage_credit_grant'; /** * Epoch milliseconds. */ updatedAt: number; usageMeterId: string; resourceId?: null; } export interface UsageInvoiceLineItemClientSelectSchema { id: string; billingRunId: string; /** * Epoch milliseconds. */ createdAt: number; description: string | null; invoiceId: string; ledgerAccountCredit: number; ledgerAccountId: string; livemode: boolean; price: number; priceId: string | null; pricingModelId: string; quantity: number; type: 'usage'; /** * Epoch milliseconds. */ updatedAt: number; } export interface UsageMeterClientSelectSchema { id: string; /** * The type of aggregation to perform on the usage meter. Defaults to "sum", which * aggregates all the usage event amounts for the billing period. * "count_distinct_properties" counts the number of distinct properties in the * billing period for a given meter. */ aggregationType: 'sum' | 'count_distinct_properties'; /** * Epoch milliseconds. */ createdAt: number; livemode: boolean; /** * The name of the usage meter */ name: string; organizationId: string; pricingModelId: string; /** * The slug of the usage meter */ slug: string; /** * Epoch milliseconds. */ updatedAt: number; } //# sourceMappingURL=shared.d.ts.map