{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-update-account-status-output-schema.json",
  "title": "UpdateAccountStatusOutput",
  "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/UpdateAccountStatusOutput",
  "type": "object",
  "properties": {
    "account": {
      "$ref": "#/$defs/UpdateAccountStatus"
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    },
    "UpdateAccountStatus": {
      "type": "object",
      "properties": {
        "id": {
          "description": "Updated payment account ID",
          "type": "string"
        },
        "status": {
          "format": "int32",
          "description": "Status of the payment account",
          "type": "integer"
        }
      }
    }
  }
}