{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-update-legal-account-details-output-schema.json",
  "title": "UpdateLegalAccountDetailsOutput",
  "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/UpdateLegalAccountDetailsOutput",
  "type": "object",
  "properties": {
    "account": {
      "$ref": "#/$defs/LegalAccount"
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "LegalAccount": {
      "type": "object",
      "properties": {
        "id": {
          "description": "Updated Wallet ID (your choice when you create the Wallet)",
          "type": "string"
        },
        "lemonwayId": {
          "format": "int64",
          "description": "Lemonway Wallet ID (you can not choose this number). This number is also displayed in our Dashboard.",
          "type": "integer"
        },
        "limits": {
          "$ref": "#/$defs/Limits"
        }
      }
    },
    "Limits": {
      "type": "object",
      "properties": {
        "totalMoneyInAllowed": {
          "format": "int64",
          "description": "Total Money-In number allowed for this account",
          "type": "integer"
        },
        "amountMoneyInAllowed": {
          "format": "double",
          "description": "Total Money-In amount allowed for this wallet",
          "type": "number"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    }
  }
}