{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-referred-users-response-dto-schema.json",
  "title": "ReferredUsersResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/debridge-com-referral-program-api-openapi.yml#/components/schemas/ReferredUsersResponseDTO",
  "type": "object",
  "properties": {
    "users": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/ReferredUserDTO"
      },
      "description": "Orders from requested page of the search result"
    },
    "totalCount": {
      "type": "integer",
      "description": "Total number of users",
      "format": "int32"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AddressPropertyDTO": {
      "type": "object",
      "properties": {
        "Base64Value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Binary representation of the property value",
          "format": "byte"
        },
        "bytesArrayValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "Bytes array representation of the value",
          "readOnly": true
        },
        "stringValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "String representation of the property value",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "ReferredUserDTO": {
      "type": "object",
      "properties": {
        "walletAddress": {
          "$ref": "#/$defs/AddressPropertyDTO"
        },
        "totalVolumeUSD": {
          "type": "number",
          "description": "Total give amount's USD equivalent of all user's orders that used the referral code",
          "format": "double"
        },
        "totalFeesUSD": {
          "type": "number",
          "description": "Total fees' USD equivalent of all user's orders that used the referral code",
          "format": "double"
        },
        "totalExecutedOrders": {
          "type": "integer",
          "description": "Total number of user's orders that used the referral code",
          "format": "int32"
        },
        "wasInvitedByCurrentUser": {
          "type": "boolean",
          "description": "Indicates whether the user is invited by the owner of the referral code passed in the request"
        }
      },
      "additionalProperties": false,
      "description": "Information about a user, that used referral code [passed in the request] while creating an order"
    }
  }
}