/** * 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 { EntityBankAccount } from './entityBankAccount'; import type { PatchEntityBodySettingsCalculation } from './patchEntityBodySettingsCalculation'; import type { PatchEntityBodySettingsEInvoicing } from './patchEntityBodySettingsEInvoicing'; import type { PatchEntityBodySettingsEmailDefaults } from './patchEntityBodySettingsEmailDefaults'; import type { PatchEntityBodySettingsEpcQr } from './patchEntityBodySettingsEpcQr'; import type { PatchEntityBodySettingsFina } from './patchEntityBodySettingsFina'; import type { PatchEntityBodySettingsFurs } from './patchEntityBodySettingsFurs'; import type { PatchEntityBodySettingsNumberFormats } from './patchEntityBodySettingsNumberFormats'; import type { PatchEntityBodySettingsOverdueNotifications } from './patchEntityBodySettingsOverdueNotifications'; import type { PatchEntityBodySettingsPdfTemplate } from './patchEntityBodySettingsPdfTemplate'; import type { PatchEntityBodySettingsPt } from './patchEntityBodySettingsPt'; import type { PatchEntityBodySettingsSlovenia } from './patchEntityBodySettingsSlovenia'; import type { PatchEntityBodySettingsTaxClauseDefaults } from './patchEntityBodySettingsTaxClauseDefaults'; import type { PatchEntityBodySettingsUpnQr } from './patchEntityBodySettingsUpnQr'; import type { TaxRules } from './taxRules'; /** * Entity settings */ export type PatchEntityBodySettings = { /** * Default PDF template for document rendering. Defaults to 'modern' if not set. * @nullable */ pdf_template?: PatchEntityBodySettingsPdfTemplate; /** @nullable */ number_formats?: PatchEntityBodySettingsNumberFormats; /** * @nullable * @pattern ^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$ */ primary_color?: string | null; /** * Scale the PDF logo size as a percentage of the template default size. 100 keeps the original size. * @minimum 30 * @maximum 100 * @nullable */ logo_scale_percent?: number | null; /** @nullable */ has_logo?: boolean | null; /** @nullable */ has_signature?: boolean | null; /** * Default number of days until invoice is due (from invoice date) * @exclusiveMinimum 0 * @nullable */ default_invoice_due_days?: number | null; /** * Default number of days until estimate expires (from estimate date) * @exclusiveMinimum 0 * @nullable */ default_estimate_valid_days?: number | null; /** @nullable */ email_defaults?: PatchEntityBodySettingsEmailDefaults; /** * Default note for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_invoice_note?: string | null; /** * Default payment terms for new invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_invoice_payment_terms?: string | null; /** * Default note for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_estimate_note?: string | null; /** * Default payment terms for new estimates. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_valid_until}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_estimate_payment_terms?: string | null; /** * Default note for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_credit_note_note?: string | null; /** * Default payment terms for new credit notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_credit_note_payment_terms?: string | null; /** * Default note for new advance invoices. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_advance_invoice_note?: string | null; /** * Default note for new delivery notes. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_delivery_note_note?: string | null; /** * Footer text for PDF documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @maxLength 500 * @nullable */ document_footer?: string | null; /** * Default signature text for all new documents. Supports template variables: {entity_name}, {entity_email}, {document_number}, {document_date}, {document_due_date}, {document_total}, {document_currency}, {customer_name}, {customer_email}, {current_date}, {current_year} * @nullable */ default_document_signature?: string | null; /** * Document calculation defaults. Controls whether newly calculated documents use the standard B2B net-first model or the B2C gross-discount model by default. * @nullable */ calculation?: PatchEntityBodySettingsCalculation; /** * Slovenia-specific tax profile used by yearly eDavki exports and future Slovenia-specific reporting flows. * @nullable */ slovenia?: PatchEntityBodySettingsSlovenia; /** * FURS (Slovenia) fiscalization settings. Certificate data is stored separately via the certificate upload endpoint. * @nullable */ furs?: PatchEntityBodySettingsFurs; /** * FINA (Croatia) CIS fiscalization settings. Required for Croatian B2C invoicing. Certificate data is stored separately via the certificate upload endpoint. * @nullable */ fina?: PatchEntityBodySettingsFina; /** * Portugal operator defaults used for PT document creation when request-level or user-level PT operator data is not available. * @nullable */ pt?: PatchEntityBodySettingsPt; tax_rules?: TaxRules | null; /** * Settings for automatic overdue invoice notification emails to customers * @nullable */ overdue_notifications?: PatchEntityBodySettingsOverdueNotifications; /** * UPN QR payment slip settings (Slovenia only). Displays payment QR code on invoices for easy bank transfers. * @nullable */ upn_qr?: PatchEntityBodySettingsUpnQr; /** * EPC QR code settings (SEPA countries). Displays SEPA credit transfer QR code on EUR invoices for easy bank payment. * @nullable */ epc_qr?: PatchEntityBodySettingsEpcQr; /** * Bank accounts for receiving payments. The first account with is_default=true (or first in list) is used for new invoices. * @nullable */ bank_accounts?: EntityBankAccount[] | null; /** * Enable e-SLOG 2.0 validation for documents. Only applicable for Slovenian entities (country_code = 'SI'). When enabled, documents are validated against e-SLOG 2.0 requirements and can be exported as e-SLOG XML if valid. * @nullable */ eslog_validation_enabled?: boolean | null; /** * Default hide_prices setting for new delivery notes. When true, prices and totals are hidden (packing list mode). * @nullable */ delivery_note_hide_prices?: boolean | null; /** * When true (default), credit note PDFs display line item quantities and totals as negative values while keeping prices positive. Zero quantities and totals stay unsigned. Set to false to show quantities and totals as positive. * @nullable */ credit_note_negative_values?: boolean | null; /** * When true, rendered document payment/refund sections show the payment amount next to each payment type. Defaults to false, which shows only the payment or refund type. * @nullable */ show_payment_amounts?: boolean | null; /** * Default note printed on thermal receipts. * @maxLength 500 * @nullable */ receipt_note?: string | null; /** * Default footer text printed on thermal receipts (e.g. IBAN, thank-you message). * @maxLength 500 * @nullable */ receipt_footer?: string | null; /** * Default signature / issuer label printed on thermal receipts. * @maxLength 200 * @nullable */ receipt_signature?: string | null; /** * Default tax clauses per transaction type. Auto-applied to documents based on transaction type determination. Supports template variables: {entity_name}, {customer_name}, {document_number}, etc. * @nullable */ tax_clause_defaults?: PatchEntityBodySettingsTaxClauseDefaults; /** * E-invoicing settings for sending documents via Peppol network (through Flowin). Requires supplier onboarding before documents can be sent electronically. * @nullable */ e_invoicing?: PatchEntityBodySettingsEInvoicing; }; //# sourceMappingURL=patchEntityBodySettings.d.ts.map