{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/caliza/json-schema/caliza-mock-crypto-deposit-request-schema.json",
  "title": "MockCryptoDepositRequest",
  "description": "Mock request to simulate a cryptocurrency deposit at a DFNS wallet for testing purposes in the sandbox environment.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/caliza-transaction-v1-sandbox-api-openapi.yml#/components/schemas/MockCryptoDepositRequest",
  "required": [
    "beneficiaryId",
    "walletAddress",
    "amount",
    "network",
    "currency"
  ],
  "type": "object",
  "properties": {
    "beneficiaryId": {
      "type": "string",
      "description": "Unique identifier of the beneficiary receiving the deposit."
    },
    "walletAddress": {
      "type": "string",
      "description": "Destination wallet address for the simulated deposit."
    },
    "amount": {
      "type": "number",
      "description": "Amount of cryptocurrency to deposit."
    },
    "network": {
      "type": "string",
      "description": "Blockchain network for the deposit.",
      "enum": [
        "POLYGON",
        "ETH",
        "TRON",
        "STELLAR",
        "BASE",
        "SOLANA"
      ]
    },
    "currency": {
      "type": "string",
      "description": "Cryptocurrency currency code (e.g. USDT, USDC)."
    },
    "fromAddress": {
      "type": "string",
      "description": "On-chain origin of the simulated deposit; random when omitted. Passing the address being proven completes a microtransfer (Satoshi) ownership proof."
    },
    "travelRule": {
      "$ref": "#/$defs/MockCryptoDepositTravelRule"
    }
  },
  "$defs": {
    "MockCryptoDepositTravelRule": {
      "type": "object",
      "description": "Optional Travel Rule scenario for a simulated crypto deposit. With withMessage true, the sender VASP's Travel Rule message is simulated for the deposit; false (or omitting the block) simulates a self-hosted origin with no message, which clears via the hold's timeout path when at or above the threshold.",
      "properties": {
        "withMessage": {
          "type": "boolean",
          "default": true,
          "description": "Whether the sender's VASP transmits a Travel Rule message for the deposit."
        },
        "originatorName": {
          "type": "string",
          "description": "The sender name declared in the Travel Rule message. Defaults to a test value."
        },
        "beneficiaryName": {
          "type": "string",
          "description": "The recipient name the sender's VASP declares in the Travel Rule message. Defaults to the account's registered name (name check passes); a divergent value fails the beneficiary name check and the deposit stays held for review."
        }
      }
    }
  }
}