{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-get-money-in-banks-output-schema.json",
  "title": "GetMoneyInBanksOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-pay-by-bank-api-openapi.yml#/components/schemas/GetMoneyInBanksOutput",
  "type": "object",
  "properties": {
    "banks": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/Bank"
        }
      }
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Bank": {
      "type": "object",
      "properties": {
        "countryCode": {
          "description": "Country code associated with the payment bank. ISO Alpha-2 codes accepted: (FR) France, (ES), Spain (DE), (IT) Italy, Germany, and (PT) Portugal",
          "type": "string"
        },
        "parentName": {
          "description": "The bank's parent company name. Example: Banque Populaire",
          "type": "string"
        },
        "logoURL": {
          "description": "A weblink to the bank's logo",
          "type": "string"
        },
        "bankName": {
          "description": "This is the bank name. Example: Banque Populaire Alsace Lorraine",
          "type": "string"
        },
        "bankId": {
          "description": "This is the unique `bankId` associated with the bank.",
          "type": "string"
        },
        "segments": {
          "description": "Personal or Business Acoount",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "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"
        }
      }
    }
  }
}