{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-mandate-get-document-output-schema.json",
  "title": "MandateGetDocumentOutput",
  "description": "Output of the MandateGetDocument method",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-direct-debits-api-openapi.yml#/components/schemas/MandateGetDocumentOutput",
  "type": "object",
  "properties": {
    "document": {
      "description": "Document in base64",
      "type": "string"
    },
    "name": {
      "description": "Document name",
      "type": "string"
    },
    "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"
        }
      }
    }
  }
}