{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/servera-co-uk/json-schema/servera-co-uk-contact-data-schema.json",
  "title": "ContactData",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/servera-co-uk-openapi.json#/components/schemas/ContactData",
  "properties": {
    "first_name": {
      "type": "string",
      "title": "First Name"
    },
    "last_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Name",
      "default": ""
    },
    "company_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Name",
      "default": ""
    },
    "company_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Code",
      "default": ""
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "tax_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tax Id",
      "default": ""
    },
    "phone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Phone",
      "default": ""
    },
    "address1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address1",
      "default": ""
    },
    "address2": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Address2",
      "default": ""
    },
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City",
      "default": ""
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State",
      "default": ""
    },
    "postcode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Postcode",
      "default": ""
    },
    "country": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country",
      "default": "LT"
    },
    "general_emails": {
      "type": "boolean",
      "title": "General Emails",
      "default": true
    },
    "invoice_emails": {
      "type": "boolean",
      "title": "Invoice Emails",
      "default": true
    },
    "support_emails": {
      "type": "boolean",
      "title": "Support Emails",
      "default": true
    },
    "product_emails": {
      "type": "boolean",
      "title": "Product Emails",
      "default": true
    },
    "domain_emails": {
      "type": "boolean",
      "title": "Domain Emails",
      "default": true
    },
    "affiliate_emails": {
      "type": "boolean",
      "title": "Affiliate Emails",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "first_name",
    "email"
  ]
}