{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swapwallet-app/json-schema/swapwallet-app-withdraw-config-response-wrapper-schema.json",
  "title": "WithdrawConfigResponseWrapper",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swapwallet-app-openapi.yaml#/components/schemas/WithdrawConfigResponseWrapper",
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/$defs/ResponseStatusEnum"
    },
    "result": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WithdrawConfig"
      },
      "description": "لیست تنظیمات برداشت به ازای هر شبکه‌ی پشتیبانی‌شده"
    }
  },
  "$defs": {
    "Money": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string"
        },
        "unit": {
          "type": "string",
          "description": "واحد ارزی (مثلاً USDT، IRT، USD)"
        }
      },
      "required": [
        "number",
        "unit"
      ]
    },
    "NetworkEnum": {
      "type": "string",
      "enum": [
        "TRON",
        "TON",
        "BSC"
      ]
    },
    "ResponseStatusEnum": {
      "type": "string",
      "enum": [
        "OK",
        "ERROR"
      ]
    },
    "WithdrawConfig": {
      "type": "object",
      "properties": {
        "network": {
          "$ref": "#/$defs/NetworkEnum"
        },
        "withdrawFee": {
          "allOf": [
            {
              "$ref": "#/$defs/Money"
            }
          ],
          "type": [
            "object",
            "null"
          ],
          "description": "کارمزد برداشت (در صورت null بودن، شبکه غیرفعال است)"
        },
        "minWithdraw": {
          "allOf": [
            {
              "$ref": "#/$defs/Money"
            }
          ],
          "type": [
            "object",
            "null"
          ],
          "description": "حداقل مقدار قابل برداشت"
        },
        "maxWithdraw": {
          "allOf": [
            {
              "$ref": "#/$defs/Money"
            }
          ],
          "type": [
            "object",
            "null"
          ],
          "description": "حداکثر مقدار قابل برداشت"
        },
        "withdrawEnabled": {
          "type": "boolean",
          "description": "آیا برداشت روی این شبکه فعال است"
        },
        "supportMemo": {
          "type": "boolean",
          "description": "آیا این شبکه از فیلد memo پشتیبانی می‌کند"
        }
      }
    }
  }
}