{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vertesiahq/json-schema/vertesiahq-update-account-payload-schema.json",
  "title": "UpdateAccountPayload",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vertesiahq-accounts-api-openapi.yml#/components/schemas/UpdateAccountPayload",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "app_access_message": {
      "type": "string",
      "maxLength": 1000
    },
    "email_domains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "billing": {
      "$ref": "#/$defs/AccountBilling"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AccountBilling": {
      "type": "object",
      "properties": {
        "method": {
          "$ref": "#/$defs/BillingMethod"
        },
        "stripe_customer_id": {
          "type": "string"
        }
      },
      "required": [
        "method"
      ],
      "additionalProperties": false
    },
    "BillingMethod": {
      "type": "string",
      "enum": [
        "stripe",
        "invoice"
      ]
    }
  }
}