/** * Generated by orval v8.5.3 🍺 * Do not edit manually. * Space Invoices API * REST API for invoice management, customer management, and accounting operations. Features include cursor-based pagination for efficient data navigation, flexible JSON querying with MongoDB-style operators, full-text search across multiple fields, and comprehensive metadata support for custom tracking. * OpenAPI spec version: 1.0.0 */ import * as zod from "zod"; /** * Generate a state token and redirect URL for the Apollo onboarding flow. * @summary Start Stripe App connection */ export declare const StripeAppAuthorizeHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppAuthorizeResponse: zod.ZodObject<{ redirect_url: zod.ZodURL; }, zod.z.core.$strip>; /** * Handles the OAuth callback from Stripe. Exchanges the authorization code for tokens and redirects to Apollo frontend. * @summary OAuth callback from Stripe */ export declare const StripeAppOAuthCallbackQueryParams: zod.ZodObject<{ code: zod.ZodString; state: zod.ZodString; }, zod.z.core.$strip>; /** * Receive and process Stripe webhook events for auto-invoice creation. * @summary Handle Stripe App webhook */ export declare const StripeAppWebhookResponse: zod.ZodObject<{ received: zod.ZodBoolean; }, zod.z.core.$strip>; /** * Initiate the Stripe OAuth flow from the Apollo web app. Returns a Stripe OAuth URL that the frontend should redirect the user to. * @summary Start marketplace OAuth flow */ export declare const StripeAppMarketplaceAuthorizeBody: zod.ZodObject<{ entity_id: zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppMarketplaceAuthorizeResponse: zod.ZodObject<{ redirect_url: zod.ZodURL; }, zod.z.core.$strip>; /** * Complete the connection between a Stripe account and a Space Invoices entity. Requires bearer authentication (user must be signed in to Apollo). * @summary Complete Stripe App connection */ export declare const StripeAppConnectBody: zod.ZodObject<{ state: zod.ZodString; entity_id: zod.ZodString; force: zod.ZodOptional; }, zod.z.core.$strip>; /** * Get the current Stripe App connection status and configuration. * @summary Get connection status */ export declare const StripeAppGetConnectionHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppGetConnectionResponse: zod.ZodObject<{ id: zod.ZodString; stripe_account_id: zod.ZodString; entity_id: zod.ZodString; white_label_id: zod.ZodString; auto_invoice_config: zod.ZodObject<{ enabled: zod.ZodBoolean; events: zod.ZodArray; default_note: zod.ZodOptional; }, zod.z.core.$strip>; created_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>; /** * Remove the connection between Stripe and Space Invoices. Deletes the stored API key. * @summary Disconnect Stripe App */ export declare const StripeAppDisconnectHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppDisconnectResponse: zod.ZodObject<{ message: zod.ZodString; }, zod.z.core.$strip>; /** * Get the auto-invoice configuration for this connection. * @summary Get auto-invoice settings */ export declare const StripeAppGetSettingsHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppGetSettingsResponse: zod.ZodObject<{ auto_invoice_enabled: zod.ZodBoolean; auto_invoice_events: zod.ZodArray; default_note: zod.ZodNullable; default_tax_rate: zod.ZodNullable; }, zod.z.core.$strip>; /** * Update the auto-invoice configuration for this connection. * @summary Update auto-invoice settings */ export declare const StripeAppUpdateSettingsHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const stripeAppUpdateSettingsBodyDefaultNoteMax = 500; export declare const stripeAppUpdateSettingsBodyDefaultTaxRateMin = 0; export declare const stripeAppUpdateSettingsBodyDefaultTaxRateMax = 100; export declare const StripeAppUpdateSettingsBody: zod.ZodObject<{ auto_invoice_enabled: zod.ZodOptional; auto_invoice_events: zod.ZodOptional>>; default_note: zod.ZodOptional; default_tax_rate: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const StripeAppUpdateSettingsResponse: zod.ZodObject<{ auto_invoice_enabled: zod.ZodBoolean; auto_invoice_events: zod.ZodArray; default_note: zod.ZodNullable; default_tax_rate: zod.ZodNullable; }, zod.z.core.$strip>; /** * Create a Space Invoices invoice from a Stripe object ID. The backend fetches the full object from Stripe API and extracts customer, line items, and tax data. * @summary Create invoice from Stripe object */ export declare const StripeAppCreateInvoiceHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const stripeAppCreateInvoiceBodyNoteMax = 2000; export declare const StripeAppCreateInvoiceBody: zod.ZodObject<{ stripe_object_id: zod.ZodString; note: zod.ZodOptional; }, zod.z.core.$strip>; /** * List recent invoices for the connected entity. * @summary List invoices */ export declare const stripeAppListInvoicesQueryLimitDefault = 10; export declare const stripeAppListInvoicesQueryLimitMax = 50; export declare const StripeAppListInvoicesQueryParams: zod.ZodObject<{ limit: zod.ZodDefault; }, zod.z.core.$strip>; export declare const StripeAppListInvoicesHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppListInvoicesResponse: zod.ZodObject<{ data: zod.ZodArray; status: zod.ZodString; total: zod.ZodNumber; currency: zod.ZodString; public_url: zod.ZodNullable; fiscalization_status: zod.ZodNullable; created_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>>; }, zod.z.core.$strip>; /** * Find an Apollo invoice linked to a Stripe object (invoice or payment intent) via auto-invoicing events. * @summary Look up invoice by Stripe object ID */ export declare const StripeAppLookupInvoiceQueryParams: zod.ZodObject<{ stripe_object_id: zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppLookupInvoiceHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppLookupInvoiceResponse: zod.ZodObject<{ id: zod.ZodString; number: zod.ZodNullable; status: zod.ZodString; total: zod.ZodNumber; currency: zod.ZodString; public_url: zod.ZodNullable; fiscalization_status: zod.ZodNullable; created_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>; /** * Get a specific invoice with public link and compliance/fiscalization status. * @summary Get invoice detail */ export declare const StripeAppGetInvoiceParams: zod.ZodObject<{ id: zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppGetInvoiceHeader: zod.ZodObject<{ "stripe-user-account-id": zod.ZodString; }, zod.z.core.$strip>; export declare const StripeAppGetInvoiceResponse: zod.ZodObject<{ id: zod.ZodString; number: zod.ZodNullable; status: zod.ZodString; total: zod.ZodNumber; currency: zod.ZodString; public_url: zod.ZodNullable; fiscalization_status: zod.ZodNullable; created_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>; /** * Get the Stripe App connection status for the current entity. Returns 404 when not connected. * @summary Get entity Stripe connection */ export declare const StripeAppEntityGetConnectionResponse: zod.ZodObject<{ id: zod.ZodString; stripe_account_id: zod.ZodString; entity_id: zod.ZodString; white_label_id: zod.ZodString; auto_invoice_config: zod.ZodObject<{ enabled: zod.ZodBoolean; events: zod.ZodArray; default_note: zod.ZodOptional; }, zod.z.core.$strip>; created_at: zod.z.ZodISODateTime; }, zod.z.core.$strip>; /** * Remove the Stripe App connection for the current entity. * @summary Disconnect entity Stripe connection */ export declare const StripeAppEntityDisconnectResponse: zod.ZodObject<{ message: zod.ZodString; }, zod.z.core.$strip>; /** * Get auto-invoice settings for the current entity's Stripe App connection. * @summary Get entity Stripe settings */ export declare const StripeAppEntityGetSettingsResponse: zod.ZodObject<{ auto_invoice_enabled: zod.ZodBoolean; auto_invoice_events: zod.ZodArray; default_note: zod.ZodNullable; default_tax_rate: zod.ZodNullable; }, zod.z.core.$strip>; /** * Update auto-invoice settings for the current entity's Stripe App connection. * @summary Update entity Stripe settings */ export declare const stripeAppEntityUpdateSettingsBodyDefaultNoteMax = 500; export declare const stripeAppEntityUpdateSettingsBodyDefaultTaxRateMin = 0; export declare const stripeAppEntityUpdateSettingsBodyDefaultTaxRateMax = 100; export declare const StripeAppEntityUpdateSettingsBody: zod.ZodObject<{ auto_invoice_enabled: zod.ZodOptional; auto_invoice_events: zod.ZodOptional>>; default_note: zod.ZodOptional; default_tax_rate: zod.ZodOptional>; }, zod.z.core.$strip>; export declare const StripeAppEntityUpdateSettingsResponse: zod.ZodObject<{ auto_invoice_enabled: zod.ZodBoolean; auto_invoice_events: zod.ZodArray; default_note: zod.ZodNullable; default_tax_rate: zod.ZodNullable; }, zod.z.core.$strip>; //# sourceMappingURL=stripe-app.d.ts.map