import { z } from 'zod'; export declare const stripeEnvironmentSchema: z.ZodEnum<["test", "live"]>; export type StripeEnvironment = z.infer; export declare const stripeConnectionStatusSchema: z.ZodEnum<["unconfigured", "connected", "error"]>; export type StripeConnectionStatus = z.infer; export declare const stripeLatestSyncStatusSchema: z.ZodEnum<["succeeded", "failed"]>; export type StripeLatestSyncStatus = z.infer; export declare const stripeConnectionSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; status: z.ZodEnum<["unconfigured", "connected", "error"]>; stripeAccountId: z.ZodNullable; stripeAccountEmail: z.ZodNullable; accountLivemode: z.ZodNullable; webhookEndpointId: z.ZodNullable; webhookEndpointUrl: z.ZodNullable; webhookConfiguredAt: z.ZodNullable; maskedKey: z.ZodNullable; lastSyncedAt: z.ZodNullable; lastSyncStatus: z.ZodNullable>; lastSyncError: z.ZodNullable; lastSyncCounts: z.ZodRecord; }, "strip", z.ZodTypeAny, { status: "error" | "connected" | "unconfigured"; maskedKey: string | null; environment: "test" | "live"; stripeAccountId: string | null; stripeAccountEmail: string | null; accountLivemode: boolean | null; webhookEndpointId: string | null; webhookEndpointUrl: string | null; webhookConfiguredAt: string | null; lastSyncedAt: string | null; lastSyncStatus: "failed" | "succeeded" | null; lastSyncError: string | null; lastSyncCounts: Record; }, { status: "error" | "connected" | "unconfigured"; maskedKey: string | null; environment: "test" | "live"; stripeAccountId: string | null; stripeAccountEmail: string | null; accountLivemode: boolean | null; webhookEndpointId: string | null; webhookEndpointUrl: string | null; webhookConfiguredAt: string | null; lastSyncedAt: string | null; lastSyncStatus: "failed" | "succeeded" | null; lastSyncError: string | null; lastSyncCounts: Record; }>; export type StripeConnection = z.infer; export declare const stripeProductSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeProductId: z.ZodString; name: z.ZodString; description: z.ZodNullable; active: z.ZodBoolean; defaultPriceId: z.ZodNullable; metadata: z.ZodRecord; syncedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; description: string | null; metadata: Record; active: boolean; environment: "test" | "live"; stripeProductId: string; defaultPriceId: string | null; syncedAt: string; }, { name: string; description: string | null; metadata: Record; active: boolean; environment: "test" | "live"; stripeProductId: string; defaultPriceId: string | null; syncedAt: string; }>; export type StripeProduct = z.infer; export declare const stripePriceSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripePriceId: z.ZodString; stripeProductId: z.ZodNullable; active: z.ZodBoolean; currency: z.ZodString; unitAmount: z.ZodNullable; unitAmountDecimal: z.ZodNullable; type: z.ZodString; lookupKey: z.ZodNullable; billingScheme: z.ZodNullable; taxBehavior: z.ZodNullable; recurringInterval: z.ZodNullable; recurringIntervalCount: z.ZodNullable; metadata: z.ZodRecord; syncedAt: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; metadata: Record; active: boolean; environment: "test" | "live"; stripeProductId: string | null; syncedAt: string; stripePriceId: string; currency: string; unitAmount: number | null; unitAmountDecimal: string | null; lookupKey: string | null; billingScheme: string | null; taxBehavior: string | null; recurringInterval: string | null; recurringIntervalCount: number | null; }, { type: string; metadata: Record; active: boolean; environment: "test" | "live"; stripeProductId: string | null; syncedAt: string; stripePriceId: string; currency: string; unitAmount: number | null; unitAmountDecimal: string | null; lookupKey: string | null; billingScheme: string | null; taxBehavior: string | null; recurringInterval: string | null; recurringIntervalCount: number | null; }>; export type StripePrice = z.infer; export declare const stripeCustomerSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeCustomerId: z.ZodString; email: z.ZodNullable; name: z.ZodNullable; phone: z.ZodNullable; deleted: z.ZodBoolean; metadata: z.ZodRecord; stripeCreatedAt: z.ZodNullable; syncedAt: z.ZodString; }, "strip", z.ZodTypeAny, { name: string | null; metadata: Record; email: string | null; deleted: boolean; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; phone: string | null; stripeCreatedAt: string | null; }, { name: string | null; metadata: Record; email: string | null; deleted: boolean; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; phone: string | null; stripeCreatedAt: string | null; }>; export type StripeCustomer = z.infer; export declare const paymentCustomerListItemSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeCustomerId: z.ZodString; email: z.ZodNullable; name: z.ZodNullable; phone: z.ZodNullable; deleted: z.ZodBoolean; metadata: z.ZodRecord; stripeCreatedAt: z.ZodNullable; syncedAt: z.ZodString; } & { paymentsCount: z.ZodNumber; lastPaymentAt: z.ZodNullable; totalSpend: z.ZodNullable; totalSpendCurrency: z.ZodNullable; paymentMethodBrand: z.ZodNullable; paymentMethodLast4: z.ZodNullable; countryCode: z.ZodNullable; }, "strip", z.ZodTypeAny, { name: string | null; metadata: Record; email: string | null; deleted: boolean; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; phone: string | null; stripeCreatedAt: string | null; paymentsCount: number; lastPaymentAt: string | null; totalSpend: number | null; totalSpendCurrency: string | null; paymentMethodBrand: string | null; paymentMethodLast4: string | null; countryCode: string | null; }, { name: string | null; metadata: Record; email: string | null; deleted: boolean; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; phone: string | null; stripeCreatedAt: string | null; paymentsCount: number; lastPaymentAt: string | null; totalSpend: number | null; totalSpendCurrency: string | null; paymentMethodBrand: string | null; paymentMethodLast4: string | null; countryCode: string | null; }>; export type PaymentCustomerListItem = z.infer; export declare const billingSubjectSchema: z.ZodObject<{ type: z.ZodString; id: z.ZodString; }, "strict", z.ZodTypeAny, { type: string; id: string; }, { type: string; id: string; }>; export type BillingSubject = z.infer; export declare const checkoutModeSchema: z.ZodEnum<["payment", "subscription"]>; export type CheckoutMode = z.infer; export declare const checkoutSessionStatusSchema: z.ZodEnum<["initialized", "open", "completed", "expired", "failed"]>; export type CheckoutSessionStatus = z.infer; export declare const checkoutSessionPaymentStatusSchema: z.ZodEnum<["paid", "unpaid", "no_payment_required"]>; export type CheckoutSessionPaymentStatus = z.infer; export declare const checkoutSessionSchema: z.ZodObject<{ id: z.ZodString; environment: z.ZodEnum<["test", "live"]>; mode: z.ZodEnum<["payment", "subscription"]>; status: z.ZodEnum<["initialized", "open", "completed", "expired", "failed"]>; paymentStatus: z.ZodNullable>; subjectType: z.ZodNullable; subjectId: z.ZodNullable; customerEmail: z.ZodNullable; stripeCheckoutSessionId: z.ZodNullable; stripeCustomerId: z.ZodNullable; stripePaymentIntentId: z.ZodNullable; stripeSubscriptionId: z.ZodNullable; url: z.ZodNullable; lastError: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "failed" | "initialized" | "open" | "completed" | "expired"; url: string | null; id: string; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string | null; mode: "payment" | "subscription"; paymentStatus: "paid" | "unpaid" | "no_payment_required" | null; subjectType: string | null; subjectId: string | null; customerEmail: string | null; stripeCheckoutSessionId: string | null; stripePaymentIntentId: string | null; stripeSubscriptionId: string | null; lastError: string | null; }, { status: "failed" | "initialized" | "open" | "completed" | "expired"; url: string | null; id: string; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string | null; mode: "payment" | "subscription"; paymentStatus: "paid" | "unpaid" | "no_payment_required" | null; subjectType: string | null; subjectId: string | null; customerEmail: string | null; stripeCheckoutSessionId: string | null; stripePaymentIntentId: string | null; stripeSubscriptionId: string | null; lastError: string | null; }>; export type CheckoutSession = z.infer; export declare const customerPortalSessionStatusSchema: z.ZodEnum<["initialized", "created", "failed"]>; export type CustomerPortalSessionStatus = z.infer; export declare const customerPortalSessionSchema: z.ZodObject<{ id: z.ZodString; environment: z.ZodEnum<["test", "live"]>; status: z.ZodEnum<["initialized", "created", "failed"]>; subjectType: z.ZodString; subjectId: z.ZodString; stripeCustomerId: z.ZodNullable; returnUrl: z.ZodNullable; configuration: z.ZodNullable; url: z.ZodNullable; lastError: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { status: "created" | "failed" | "initialized"; url: string | null; id: string; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string | null; subjectType: string; subjectId: string; lastError: string | null; returnUrl: string | null; configuration: string | null; }, { status: "created" | "failed" | "initialized"; url: string | null; id: string; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string | null; subjectType: string; subjectId: string; lastError: string | null; returnUrl: string | null; configuration: string | null; }>; export type CustomerPortalSession = z.infer; export declare const stripeCustomerMappingSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; subjectType: z.ZodString; subjectId: z.ZodString; stripeCustomerId: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string; subjectType: string; subjectId: string; }, { createdAt: string; updatedAt: string; environment: "test" | "live"; stripeCustomerId: string; subjectType: string; subjectId: string; }>; export type StripeCustomerMapping = z.infer; export declare const paymentHistoryTypeSchema: z.ZodEnum<["one_time_payment", "subscription_invoice", "refund", "failed_payment"]>; export type PaymentHistoryType = z.infer; export declare const paymentHistoryStatusSchema: z.ZodEnum<["succeeded", "failed", "pending", "refunded", "partially_refunded"]>; export type PaymentHistoryStatus = z.infer; export declare const paymentHistorySchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; type: z.ZodEnum<["one_time_payment", "subscription_invoice", "refund", "failed_payment"]>; status: z.ZodEnum<["succeeded", "failed", "pending", "refunded", "partially_refunded"]>; subjectType: z.ZodNullable; subjectId: z.ZodNullable; stripeCustomerId: z.ZodNullable; customerEmailSnapshot: z.ZodNullable; stripeCheckoutSessionId: z.ZodNullable; stripePaymentIntentId: z.ZodNullable; stripeInvoiceId: z.ZodNullable; stripeChargeId: z.ZodNullable; stripeRefundId: z.ZodNullable; stripeSubscriptionId: z.ZodNullable; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; amount: z.ZodNullable; amountRefunded: z.ZodNullable; currency: z.ZodNullable; description: z.ZodNullable; paidAt: z.ZodNullable; failedAt: z.ZodNullable; refundedAt: z.ZodNullable; stripeCreatedAt: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { type: "one_time_payment" | "subscription_invoice" | "refund" | "failed_payment"; status: "failed" | "pending" | "succeeded" | "refunded" | "partially_refunded"; description: string | null; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; currency: string | null; stripeCustomerId: string | null; stripeCreatedAt: string | null; subjectType: string | null; subjectId: string | null; stripeCheckoutSessionId: string | null; stripePaymentIntentId: string | null; stripeSubscriptionId: string | null; customerEmailSnapshot: string | null; stripeInvoiceId: string | null; stripeChargeId: string | null; stripeRefundId: string | null; amount: number | null; amountRefunded: number | null; paidAt: string | null; failedAt: string | null; refundedAt: string | null; }, { type: "one_time_payment" | "subscription_invoice" | "refund" | "failed_payment"; status: "failed" | "pending" | "succeeded" | "refunded" | "partially_refunded"; description: string | null; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; currency: string | null; stripeCustomerId: string | null; stripeCreatedAt: string | null; subjectType: string | null; subjectId: string | null; stripeCheckoutSessionId: string | null; stripePaymentIntentId: string | null; stripeSubscriptionId: string | null; customerEmailSnapshot: string | null; stripeInvoiceId: string | null; stripeChargeId: string | null; stripeRefundId: string | null; amount: number | null; amountRefunded: number | null; paidAt: string | null; failedAt: string | null; refundedAt: string | null; }>; export type PaymentHistory = z.infer; export declare const stripeSubscriptionStatusSchema: z.ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>; export type StripeSubscriptionStatus = z.infer; export declare const stripeSubscriptionItemSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeSubscriptionItemId: z.ZodString; stripeSubscriptionId: z.ZodString; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; quantity: z.ZodNullable; metadata: z.ZodRecord; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }, { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }>; export type StripeSubscriptionItem = z.infer; export declare const stripeSubscriptionSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeSubscriptionId: z.ZodString; stripeCustomerId: z.ZodString; subjectType: z.ZodNullable; subjectId: z.ZodNullable; status: z.ZodEnum<["incomplete", "incomplete_expired", "trialing", "active", "past_due", "canceled", "unpaid", "paused"]>; currentPeriodStart: z.ZodNullable; currentPeriodEnd: z.ZodNullable; cancelAtPeriodEnd: z.ZodBoolean; cancelAt: z.ZodNullable; canceledAt: z.ZodNullable; trialStart: z.ZodNullable; trialEnd: z.ZodNullable; latestInvoiceId: z.ZodNullable; metadata: z.ZodRecord; syncedAt: z.ZodString; createdAt: z.ZodString; updatedAt: z.ZodString; items: z.ZodOptional; stripeSubscriptionItemId: z.ZodString; stripeSubscriptionId: z.ZodString; stripeProductId: z.ZodNullable; stripePriceId: z.ZodNullable; quantity: z.ZodNullable; metadata: z.ZodRecord; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }, { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }>, "many">>; }, "strip", z.ZodTypeAny, { status: "active" | "unpaid" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "canceled" | "paused"; metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; subjectType: string | null; subjectId: string | null; stripeSubscriptionId: string; currentPeriodStart: string | null; currentPeriodEnd: string | null; cancelAtPeriodEnd: boolean; cancelAt: string | null; canceledAt: string | null; trialStart: string | null; trialEnd: string | null; latestInvoiceId: string | null; items?: { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }[] | undefined; }, { status: "active" | "unpaid" | "incomplete" | "incomplete_expired" | "trialing" | "past_due" | "canceled" | "paused"; metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; syncedAt: string; stripeCustomerId: string; subjectType: string | null; subjectId: string | null; stripeSubscriptionId: string; currentPeriodStart: string | null; currentPeriodEnd: string | null; cancelAtPeriodEnd: boolean; cancelAt: string | null; canceledAt: string | null; trialStart: string | null; trialEnd: string | null; latestInvoiceId: string | null; items?: { metadata: Record; createdAt: string; updatedAt: string; environment: "test" | "live"; stripeProductId: string | null; stripePriceId: string | null; stripeSubscriptionId: string; stripeSubscriptionItemId: string; quantity: number | null; }[] | undefined; }>; export type StripeSubscription = z.infer; export declare const stripeWebhookProcessingStatusSchema: z.ZodEnum<["pending", "processed", "failed", "ignored"]>; export type StripeWebhookProcessingStatus = z.infer; export declare const stripeWebhookEventSchema: z.ZodObject<{ environment: z.ZodEnum<["test", "live"]>; stripeEventId: z.ZodString; eventType: z.ZodString; livemode: z.ZodBoolean; stripeAccountId: z.ZodNullable; objectType: z.ZodNullable; objectId: z.ZodNullable; processingStatus: z.ZodEnum<["pending", "processed", "failed", "ignored"]>; attemptCount: z.ZodNumber; lastError: z.ZodNullable; receivedAt: z.ZodString; processedAt: z.ZodNullable; createdAt: z.ZodString; updatedAt: z.ZodString; }, "strip", z.ZodTypeAny, { createdAt: string; updatedAt: string; environment: "test" | "live"; stripeAccountId: string | null; lastError: string | null; stripeEventId: string; eventType: string; livemode: boolean; objectType: string | null; objectId: string | null; processingStatus: "failed" | "pending" | "processed" | "ignored"; attemptCount: number; receivedAt: string; processedAt: string | null; }, { createdAt: string; updatedAt: string; environment: "test" | "live"; stripeAccountId: string | null; lastError: string | null; stripeEventId: string; eventType: string; livemode: boolean; objectType: string | null; objectId: string | null; processingStatus: "failed" | "pending" | "processed" | "ignored"; attemptCount: number; receivedAt: string; processedAt: string | null; }>; export type StripeWebhookEvent = z.infer; //# sourceMappingURL=payments.schema.d.ts.map