/** * 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 type { SendEmailBodyLocale } from './sendEmailBodyLocale'; export type SendEmailBody = { /** Recipient email address */ to: string; /** * Email subject line. If not provided, uses default from entity settings or a generated subject. * @minLength 1 * @maxLength 255 */ subject?: string; /** * Email body. Supports markdown formatting (**bold**, *italic*, `code`, [links](url), lists, headers). Plain text works fine too! Images and HTML tags are skipped for security. Supports template variables like {document_number}, {customer_name}, {entity_name}, and {invoice_link} for the public invoice URL. If {invoice_link} is not present, defaults to appending 'View your invoice online: {url}' at the bottom. * @minLength 1 */ body_text?: string; /** * ID of the document (invoice, etc.) to reference for sharing. Generates a public shareable link. * @nullable */ document_id?: string | null; /** Whether to attach the invoice as a PDF. By default, only the public link is included in the email body. Set to true to also attach the PDF file. */ attach_pdf?: boolean; /** Whether to attach the document as e-SLOG 2.0 XML (Slovenian electronic invoice format). Only available for Slovenian entities when eslog.validation_status = 'valid'. Can be combined with attach_pdf to attach both formats. */ attach_eslog?: boolean; /** Sandbox only. Build and validate the full email send flow without actually delivering the email through SES. Useful for testing send behavior after sandbox caps are reached. */ sandbox_skip_delivery?: boolean; /** * Override PDF and shareable-link formatting locale. When omitted or null, defaults to the entity's locale. Use this to change date and number formatting per request. * @nullable */ locale?: SendEmailBodyLocale; /** Override the PDF and shareable-link label language. Accepts a UI language code like 'de' or a full locale like 'de-DE'. When omitted or null, defaults to the explicit locale or the entity's locale. */ language?: 'en' | 'de' | 'sl' | 'it' | 'fr' | 'es' | 'pt' | 'nl' | 'pl' | 'hr' | 'sv' | 'fi' | 'et' | 'bg' | 'cs' | 'sk' | 'nb' | 'is' | 'en-US' | 'de-DE' | 'it-IT' | 'fr-FR' | 'es-ES' | 'sl-SI' | 'pt-PT' | 'nl-NL' | 'pl-PL' | 'hr-HR' | 'sv-SE' | 'fi-FI' | 'et-EE' | 'bg-BG' | 'cs-CZ' | 'sk-SK' | 'nb-NO' | 'is-IS' | null; }; //# sourceMappingURL=sendEmailBody.d.ts.map