{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-update-legal-account-details-input-schema.json",
  "title": "UpdateLegalAccountDetailsInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-accounts-update-api-openapi.yml#/components/schemas/UpdateLegalAccountDetailsInput",
  "required": [
    "company"
  ],
  "type": "object",
  "properties": {
    "company": {
      "$ref": "#/$defs/Company"
    },
    "email": {
      "description": "New Email.",
      "maxLength": 256,
      "minLength": 6,
      "pattern": "^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$",
      "type": "string"
    },
    "title": {
      "description": "Client title",
      "maxLength": 1,
      "minLength": 1,
      "pattern": "^(M|F|J|U)$",
      "type": "string"
    },
    "firstName": {
      "description": "Client first name",
      "maxLength": 256,
      "minLength": 2,
      "type": "string"
    },
    "lastName": {
      "description": "Client last name",
      "maxLength": 256,
      "minLength": 2,
      "type": "string"
    },
    "adresse": {
      "$ref": "#/$defs/Address"
    },
    "Birth": {
      "$ref": "#/$defs/Birth"
    },
    "phoneNumber": {
      "description": "MSISDN phone number",
      "maxLength": 30,
      "minLength": 6,
      "pattern": "^\\d{6,30}$",
      "type": "string"
    },
    "mobileNumber": {
      "description": "Mobile phone number with MSISDN format: international number with country code without \"00\" neither \"+\".<br /> \nThis will be used by default when eletronically signing documents.",
      "maxLength": 30,
      "minLength": 6,
      "pattern": "^\\d{6,30}$",
      "type": "string"
    },
    "isDebtor": {
      "description": "For crowdfunding/loan platforms, indicate if the wallet is created for a debtor.",
      "type": "boolean"
    },
    "nationality": {
      "description": "client nationality, using ISO 3166-1 alpha-3 format.\nSeparate multiple nationalities with a comma.",
      "maxLength": 19,
      "minLength": 0,
      "type": "string"
    },
    "payerOrBeneficiary": {
      "format": "int32",
      "description": "Indicates if the payment account is created for a payer or a beneficiary:\nEmpty: unknown status (default)\n1: Payer\n2: Beneficiary",
      "maximum": 2,
      "minimum": 1,
      "type": "integer"
    },
    "isCompany": {
      "description": "**Important:** This object is deprecated and no longer permissible in accordance with EU compliance rules.",
      "type": "boolean"
    }
  },
  "$defs": {
    "Address": {
      "required": [
        "country"
      ],
      "type": "object",
      "properties": {
        "street": {
          "description": "Client number and street",
          "maxLength": 256,
          "minLength": 0,
          "type": "string"
        },
        "postCode": {
          "description": "Client Postcode/ZIP",
          "maxLength": 10,
          "minLength": 0,
          "type": "string"
        },
        "city": {
          "description": "Client city",
          "maxLength": 140,
          "minLength": 0,
          "type": "string"
        },
        "country": {
          "description": "Client country using ISO 3166-1 alpha-3",
          "maxLength": 3,
          "minLength": 3,
          "type": "string"
        }
      }
    },
    "Birth": {
      "required": [
        "date"
      ],
      "type": "object",
      "properties": {
        "date": {
          "description": "Client Date of Birth",
          "pattern": "^[12]\\d{3}\\/(0[1-9]|1[0-2])\\/(0[1-9]|[12]\\d|3[01])$",
          "type": "string"
        },
        "city": {
          "description": "Client City of Birth",
          "maxLength": 140,
          "minLength": 0,
          "type": "string"
        },
        "Country": {
          "description": "Client Country of Birth, using ISO 3166-1 alpha-3. Three-letter country code, for example: FRA (France), GBR (United Kingdom of Great Britain and Northern Ireland)",
          "maxLength": 3,
          "minLength": 3,
          "type": "string"
        }
      }
    },
    "Company": {
      "required": [
        "name",
        "description"
      ],
      "type": "object",
      "properties": {
        "name": {
          "description": "Company name (at least one alphabethic character is required)",
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "description": {
          "description": "Company description",
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "websiteUrl": {
          "description": "Website URL",
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "identificationNumber": {
          "description": "Company identification number",
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        }
      }
    }
  }
}