{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swapwallet-app/json-schema/swapwallet-app-telegram-ads-recharge-request-schema.json",
  "title": "TelegramAdsRechargeRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swapwallet-app-openapi.yaml#/components/schemas/TelegramAdsRechargeRequest",
  "type": "object",
  "properties": {
    "account": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{43,64}$",
      "description": "شناسه‌ی حساب تبلیغات تلگرام (۴۳ تا ۶۴ کاراکتر)"
    },
    "amount": {
      "$ref": "#/$defs/Money",
      "description": "مقدار شارژ به TON (حداقل ۲۰)"
    }
  },
  "required": [
    "account",
    "amount"
  ],
  "$defs": {
    "Money": {
      "type": "object",
      "properties": {
        "number": {
          "type": "string"
        },
        "unit": {
          "type": "string",
          "description": "واحد ارزی (مثلاً USDT، IRT، USD)"
        }
      },
      "required": [
        "number",
        "unit"
      ]
    }
  }
}