{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/accounts-migration-data-schema.json",
  "title": "MigrationData",
  "description": "MigrationData schema from Adyen API",
  "type": "object",
  "properties": {
    "accountHolderId": {
      "description": "The unique identifier of the account holder in the balance platform.",
      "type": "string"
    },
    "balancePlatform": {
      "description": "The unique identifier of the balance platfrom to which the account holder was migrated.",
      "type": "string"
    },
    "migrated": {
      "description": "Set to **true** if the account holder has been migrated.",
      "type": "boolean"
    },
    "migratedAccounts": {
      "description": "Contains the mapping of virtual account codes (classic integration) to the balance account codes (balance platform) associated with the migrated account holder.",
      "items": {
        "$ref": "#/components/schemas/MigratedAccounts"
      },
      "type": "array"
    },
    "migratedShareholders": {
      "description": "Contains the mapping of shareholders associated with the migrated legal entities.",
      "items": {
        "$ref": "#/components/schemas/MigratedShareholders"
      },
      "type": "array"
    },
    "migratedStores": {
      "description": "Contains the mapping of business lines and stores associated with the migrated account holder.",
      "items": {
        "$ref": "#/components/schemas/MigratedStores"
      },
      "type": "array"
    },
    "migrationDate": {
      "description": "The date when account holder was migrated.",
      "format": "date-time",
      "type": "string"
    }
  }
}