{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/order-service-api-account.json",
  "title": "Account",
  "description": "Unambiguous identification of an account to which credit and debit entries are made.\n\nThese entries are based on the Open Banking standards used in various countries - UK, Australia, New Zealand as well as a combination of details from the ISO20022 account properties.",
  "additionalProperties": false,
  "properties": {
    "currency": {
      "$ref": "#/components/schemas/CurrencyCodeEnum"
    },
    "accountHolderType": {
      "type": "string",
      "enum": [
        "BUSINESS",
        "PERSONAL"
      ],
      "default": "BUSINESS"
    },
    "description": {
      "description": "Specifies the description of the account type.",
      "type": "string",
      "minLength": 1,
      "maxLength": 35
    },
    "nickname": {
      "description": "The nickname of the account, assigned by the account owner in order to provide an additional means of identification of the account.",
      "type": "string",
      "minLength": 1,
      "maxLength": 70
    }
  }
}