{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orsunpay-com/json-schema/orsunpay-com-withdrawal-quote-dto-schema.json",
  "title": "WithdrawalQuoteDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orsunpay-com-cashier-player-api-openapi.yml#/components/schemas/WithdrawalQuoteDto",
  "properties": {
    "amount": {
      "pattern": "^(0|[1-9]\\d{0,19})(\\.\\d{1,18})?$",
      "type": "string"
    },
    "crypto": {
      "$ref": "#/$defs/WithdrawalCryptoDestinationDto"
    },
    "currency": {
      "type": "string"
    },
    "methodChoiceId": {
      "type": "string"
    }
  },
  "required": [
    "methodChoiceId",
    "amount",
    "currency"
  ],
  "type": "object",
  "$defs": {
    "WithdrawalCryptoDestinationDto": {
      "properties": {
        "destinationAddress": {
          "description": "Bitcoin regtest destination for the B2BinPay sandbox only.",
          "pattern": "^bcrt1q[023456789acdefghjklmnpqrstuvwxyz]{38,58}$",
          "type": "string"
        },
        "networkId": {
          "enum": [
            "BTC"
          ],
          "type": "string"
        }
      },
      "required": [
        "networkId",
        "destinationAddress"
      ],
      "type": "object"
    }
  }
}