{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RechargeRequest",
  "description": "RechargeRequest schema from Paytronix Server API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/paytronix/refs/heads/main/json-schema/server-api-recharge-request-schema.json",
  "type": "object",
  "properties": {
    "merchantId": {
      "type": "integer",
      "example": 1000
    },
    "printedCardNumber": {
      "type": "string",
      "example": "60490012345678"
    },
    "amount": {
      "type": "number",
      "example": 25.0
    },
    "paymentMethod": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "example": "CREDIT_CARD"
        },
        "token": {
          "type": "string"
        },
        "lastFour": {
          "type": "string",
          "example": "4242"
        }
      }
    },
    "address": {
      "$ref": "#/components/schemas/Address"
    }
  },
  "required": [
    "merchantId",
    "printedCardNumber",
    "amount",
    "paymentMethod"
  ]
}