{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/altoviz-com/json-schema/altoviz-com-settings-schema.json",
  "title": "Settings",
  "description": "Application Settings",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/altoviz-com-settings-api-openapi.yml#/components/schemas/Settings",
  "type": "object",
  "properties": {
    "accounting": {
      "$ref": "#/$defs/AccountingSettingsDto"
    },
    "company": {
      "$ref": "#/$defs/CompanySettingsDto"
    },
    "eInvoicing": {
      "$ref": "#/$defs/EInvoicingSettingsDto"
    },
    "emailing": {
      "$ref": "#/$defs/EmailingSettingsDto"
    },
    "general": {
      "$ref": "#/$defs/GeneralSettingsDto"
    },
    "sales": {
      "$ref": "#/$defs/SalesSettingsDto"
    },
    "socials": {
      "$ref": "#/$defs/Socials"
    },
    "vat": {
      "$ref": "#/$defs/VatSettingsDto"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AccountingSettingsDto": {
      "type": "object",
      "properties": {
        "accountNumberLength": {
          "type": "integer",
          "format": "int32"
        },
        "customerAccountFormat": {
          "type": [
            "string",
            "null"
          ]
        },
        "customerCollectiveAccount": {
          "type": [
            "string",
            "null"
          ]
        },
        "expensesImportVatReverseAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "expensesJournalCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "expensesSubcontractingVatReverseAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "feesAccountingAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "generateCustomerAccount": {
          "type": "boolean"
        },
        "generateSupplierAccount": {
          "type": "boolean"
        },
        "miscJournalCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "salesDepositAccountingAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "salesJournalCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "salesShippingAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "salesVatCollectionAccountingAccountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "supplierAccountFormat": {
          "type": [
            "string",
            "null"
          ]
        },
        "supplierCollectiveAccount": {
          "type": [
            "string",
            "null"
          ]
        },
        "uncertainAccountNumberRoot": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "AddressFields": {
      "type": "object",
      "properties": {
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryIso": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "formattedAddress": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "inlineAddress": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "street": {
          "type": [
            "string",
            "null"
          ]
        },
        "zipcode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ClassificationDto": {
      "type": "object",
      "properties": {
        "accountNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultVat": {
          "$ref": "#/$defs/VatDto"
        },
        "defaultVatId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "isProduct": {
          "type": "boolean"
        },
        "isService": {
          "type": "boolean"
        },
        "label": {
          "type": [
            "string",
            "null"
          ]
        },
        "metadatas": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "microBusinessDeclarationType": {
          "$ref": "#/$defs/MicroBusinessDeclarationTypes"
        },
        "type": {
          "$ref": "#/$defs/ClassificationType"
        }
      },
      "additionalProperties": false
    },
    "ClassificationType": {
      "enum": [
        "Sale",
        "Expense",
        "Other"
      ],
      "type": "string"
    },
    "CompanyInfoLinkProvider": {
      "enum": [
        "Pappers",
        "Infogreffe",
        "Manageo",
        "Verif"
      ],
      "type": "string"
    },
    "CompanySettingsDto": {
      "type": "object",
      "properties": {
        "ape": {
          "type": [
            "string",
            "null"
          ]
        },
        "businessName": {
          "type": [
            "string",
            "null"
          ]
        },
        "capital": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "cgaMember": {
          "type": "boolean"
        },
        "contact": {
          "$ref": "#/$defs/ContactFields"
        },
        "electronicAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "emailLogoUri": {
          "type": [
            "string",
            "null"
          ]
        },
        "guarantees": {
          "type": [
            "string",
            "null"
          ]
        },
        "headOfficeAddress": {
          "$ref": "#/$defs/AddressFields"
        },
        "invoicingAddress": {
          "$ref": "#/$defs/AddressFields"
        },
        "isMicroBusiness": {
          "type": "boolean"
        },
        "legalMentions": {
          "type": [
            "string",
            "null"
          ]
        },
        "legalStatus": {
          "type": [
            "string",
            "null"
          ]
        },
        "logoUri": {
          "type": [
            "string",
            "null"
          ]
        },
        "mediator": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "registrationNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "reportLogoUri": {
          "type": [
            "string",
            "null"
          ]
        },
        "siret": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "summaryHtml": {
          "type": [
            "string",
            "null"
          ]
        },
        "urlCompanyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "useInvoicingAddressAsHeadOfficeAddress": {
          "type": "boolean"
        },
        "vatNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ConditionType": {
      "enum": [
        "Net",
        "EndMonth"
      ],
      "type": "string"
    },
    "ContactFields": {
      "type": "object",
      "properties": {
        "cellPhone": {
          "type": [
            "string",
            "null"
          ]
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "function": {
          "type": [
            "string",
            "null"
          ]
        },
        "invertedDisplayName": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "service": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "ContactNameDisplay": {
      "enum": [
        "LastNameFirstName",
        "FirstNameLastName"
      ],
      "type": "string"
    },
    "CreditSettingsDto": {
      "type": "object",
      "properties": {
        "validityDuration": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "DelayType": {
      "enum": [
        "Days",
        "Months"
      ],
      "type": "string"
    },
    "EInvoicingProfile": {
      "enum": [
        "Standard",
        "Advanced"
      ],
      "type": "string"
    },
    "EInvoicingSettingsDto": {
      "type": "object",
      "properties": {
        "autoAcknowledgeReceivedInvoices": {
          "type": "boolean"
        },
        "autoCreateReceiptFromIncomingPayment": {
          "type": "boolean"
        },
        "autoEmitPaymentReceived": {
          "type": "boolean"
        },
        "autoEmitPaymentSent": {
          "type": "boolean"
        },
        "autoProcessTerminalStatuses": {
          "type": "boolean"
        },
        "autoSendEReporting": {
          "type": "boolean"
        },
        "autoSubmitInvoicesOnFinalize": {
          "type": "boolean"
        },
        "includeTextLinesInXml": {
          "type": "boolean"
        },
        "profile": {
          "$ref": "#/$defs/EInvoicingProfile"
        },
        "validateAddressesBeforeSubmit": {
          "type": "boolean"
        },
        "validateBeforeSubmit": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EmailAttachmentDto": {
      "type": "object",
      "properties": {
        "fileId": {
          "type": "integer",
          "format": "int32"
        },
        "fileName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fileSize": {
          "type": "number",
          "format": "double"
        }
      },
      "additionalProperties": false
    },
    "EmailCreditSettingsDto": {
      "type": "object",
      "properties": {
        "defaultAttachments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmailAttachmentDto"
          }
        },
        "defaultBccEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultCcEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultContentTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultObjectTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "includeDocumentAttachment": {
          "type": "boolean"
        },
        "showAmount": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EmailHomecareServiceSettingsDto": {
      "type": "object",
      "properties": {
        "defaultAttachments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmailAttachmentDto"
          }
        },
        "defaultBccEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultCcEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultContentTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultObjectTemplate": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "EmailInvoiceSettingsDto": {
      "type": "object",
      "properties": {
        "defaultAttachments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmailAttachmentDto"
          }
        },
        "defaultBccEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultCcEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultContentTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultObjectTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "includeDocumentAttachment": {
          "type": "boolean"
        },
        "showAmount": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EmailQuoteSettingsDto": {
      "type": "object",
      "properties": {
        "defaultAttachments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmailAttachmentDto"
          }
        },
        "defaultBccEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultCcEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultContentTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultObjectTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "includeDocumentAttachment": {
          "type": "boolean"
        },
        "showAmount": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EmailReminderSettingsDto": {
      "type": "object",
      "properties": {
        "defaultAttachments": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/EmailAttachmentDto"
          }
        },
        "defaultBccEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultCcEmails": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "defaultContentTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultObjectTemplate": {
          "type": [
            "string",
            "null"
          ]
        },
        "includeDocumentAttachment": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "EmailStyleSettingsDto": {
      "type": "object",
      "properties": {
        "backgroundColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "buttonColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "buttonTextColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "headerBackgroundColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "headerForeColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "outerColor": {
          "type": [
            "string",
            "null"
          ]
        },
        "textColor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "EmailingSettingsDto": {
      "type": "object",
      "properties": {
        "credits": {
          "$ref": "#/$defs/EmailCreditSettingsDto"
        },
        "homecareServices": {
          "$ref": "#/$defs/EmailHomecareServiceSettingsDto"
        },
        "invoices": {
          "$ref": "#/$defs/EmailInvoiceSettingsDto"
        },
        "quotes": {
          "$ref": "#/$defs/EmailQuoteSettingsDto"
        },
        "reminders": {
          "$ref": "#/$defs/EmailReminderSettingsDto"
        },
        "style": {
          "$ref": "#/$defs/EmailStyleSettingsDto"
        }
      },
      "additionalProperties": false
    },
    "GeneralSettingsDto": {
      "type": "object",
      "properties": {
        "autoCollapseMenu": {
          "type": "boolean"
        },
        "companyInfoLinkProvider": {
          "$ref": "#/$defs/CompanyInfoLinkProvider"
        },
        "contactDisplayFormat": {
          "$ref": "#/$defs/ContactNameDisplay"
        },
        "ipLinkProvider": {
          "$ref": "#/$defs/IPLinkProvider"
        },
        "mapLinkProvider": {
          "$ref": "#/$defs/MapLinkProvider"
        },
        "timezone": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "IPLinkProvider": {
      "enum": [
        "IPInfo",
        "DBIP",
        "IPData",
        "IPGeolocation"
      ],
      "type": "string"
    },
    "InvoiceSettingsDto": {
      "type": "object",
      "properties": {
        "collectionCosts": {
          "type": [
            "string",
            "null"
          ]
        },
        "earlyFinalizationDuration": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "invoiceZeroQuantityLines": {
          "type": "boolean"
        },
        "latePaymentPenalty": {
          "type": [
            "string",
            "null"
          ]
        },
        "substractDepositFromTaxExcludedAmount": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "MapLinkProvider": {
      "enum": [
        "GoogleMaps",
        "BingMaps",
        "OpenStreetMap"
      ],
      "type": "string"
    },
    "MicroBusinessDeclarationTypes": {
      "enum": [
        "Products",
        "Services",
        "OtherServices",
        "Renting",
        "Cipav"
      ],
      "type": "string"
    },
    "PaymentMethod": {
      "enum": [
        "Transfer",
        "Order",
        "Check",
        "Cash",
        "Card",
        "Bill",
        "Usec",
        "Other"
      ],
      "type": "string"
    },
    "ProductType": {
      "enum": [
        "Product",
        "Service",
        "Text"
      ],
      "type": "string"
    },
    "QuoteSettingsDto": {
      "type": "object",
      "properties": {
        "depositDefaultValue": {
          "type": "number",
          "format": "double"
        },
        "validityDuration": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    },
    "SalesSettingsDto": {
      "type": "object",
      "properties": {
        "allowInlineDate": {
          "type": "boolean"
        },
        "btoBSettlementTerm": {
          "$ref": "#/$defs/SettlementTermDto"
        },
        "btoBSettlementTermId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "btoCSettlementTerm": {
          "$ref": "#/$defs/SettlementTermDto"
        },
        "btoCSettlementTermId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "credits": {
          "$ref": "#/$defs/CreditSettingsDto"
        },
        "customersLiableToEInvoicing": {
          "type": "boolean"
        },
        "customersLiableToVat": {
          "type": "boolean"
        },
        "defaultProductClassification": {
          "$ref": "#/$defs/ClassificationDto"
        },
        "defaultServiceClassification": {
          "$ref": "#/$defs/ClassificationDto"
        },
        "defaultShippingClassification": {
          "$ref": "#/$defs/ClassificationDto"
        },
        "generalTermsFile": {
          "$ref": "#/$defs/SharedFileDto"
        },
        "generalTermsFileId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "invoices": {
          "$ref": "#/$defs/InvoiceSettingsDto"
        },
        "mainActivity": {
          "$ref": "#/$defs/ProductType"
        },
        "outstandingLimit": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "paymentMethod": {
          "$ref": "#/$defs/PaymentMethod"
        },
        "quotes": {
          "$ref": "#/$defs/QuoteSettingsDto"
        },
        "useTaxIncluded": {
          "type": "boolean"
        },
        "vatReverseCharge": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "SettlementTermConditionDto": {
      "type": "object",
      "properties": {
        "dayOfMonth": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "delay": {
          "type": "integer",
          "format": "int32"
        },
        "delayType": {
          "$ref": "#/$defs/DelayType"
        },
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "percent": {
          "type": "number",
          "format": "double"
        },
        "type": {
          "$ref": "#/$defs/ConditionType"
        }
      },
      "additionalProperties": false
    },
    "SettlementTermDto": {
      "type": "object",
      "properties": {
        "conditions": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/SettlementTermConditionDto"
          }
        },
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "isCustom": {
          "type": "boolean"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "SharedFileDto": {
      "type": "object",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "externalLinkHash": {
          "type": [
            "string",
            "null"
          ]
        },
        "fileName": {
          "type": [
            "string",
            "null"
          ]
        },
        "folderId": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "metadatas": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "size": {
          "type": "number",
          "format": "double"
        },
        "system": {
          "type": "boolean"
        },
        "uploadedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "Socials": {
      "type": "object",
      "properties": {
        "facebook": {
          "type": [
            "string",
            "null"
          ]
        },
        "instagram": {
          "type": [
            "string",
            "null"
          ]
        },
        "linkedIn": {
          "type": [
            "string",
            "null"
          ]
        },
        "pinterest": {
          "type": [
            "string",
            "null"
          ]
        },
        "twitter": {
          "type": [
            "string",
            "null"
          ]
        },
        "youtube": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "VatDeclarationPeriodicity": {
      "enum": [
        "Monthly",
        "Quarterly"
      ],
      "type": "string"
    },
    "VatDto": {
      "type": "object",
      "properties": {
        "default": {
          "type": "boolean"
        },
        "id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "rate": {
          "type": [
            "number",
            "null"
          ],
          "format": "double"
        },
        "region": {
          "$ref": "#/$defs/VatRegion"
        }
      },
      "additionalProperties": false
    },
    "VatMode": {
      "enum": [
        "Auto",
        "Debit",
        "Collection"
      ],
      "type": "string"
    },
    "VatRegime": {
      "enum": [
        "Franchise",
        "Simplified",
        "Normal"
      ],
      "type": "string"
    },
    "VatRegion": {
      "enum": [
        "FR",
        "EU",
        "IE",
        "DOM",
        "Corse",
        "Monaco"
      ],
      "type": "string"
    },
    "VatSettingsDto": {
      "type": "object",
      "properties": {
        "liableToVat": {
          "type": "boolean"
        },
        "nonLiableTextToPrint": {
          "type": [
            "string",
            "null"
          ]
        },
        "vatMode": {
          "$ref": "#/$defs/VatMode"
        },
        "vatPeriod": {
          "$ref": "#/$defs/VatDeclarationPeriodicity"
        },
        "vatRegime": {
          "$ref": "#/$defs/VatRegime"
        }
      },
      "additionalProperties": false
    }
  }
}