{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-referral-statistics-dto-schema.json",
  "title": "ReferralStatisticsDTO",
  "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/ReferralStatisticsDTO",
  "type": "object",
  "properties": {
    "referralCode": {
      "maximum": 4294967295,
      "minimum": 1,
      "type": "integer",
      "description": "Referral code user used to invite other users",
      "format": "int32"
    },
    "totalUsers": {
      "maximum": 2147483647,
      "minimum": 0,
      "type": "integer",
      "description": "Total number of users, that used the ReferralCode at least once in their transactions",
      "format": "int32"
    },
    "totalOrdersFulfilled": {
      "maximum": 2147483647,
      "minimum": 0,
      "type": "integer",
      "description": "Number of fulfilled orders that used the ReferralCode in order creation transaction",
      "format": "int32"
    },
    "totalAmountGivenUsd": {
      "type": "number",
      "description": "Total Give amount USD equivalent of all orders that used the ReferralCode",
      "format": "double"
    },
    "totalFeesGeneratedUsd": {
      "type": "number",
      "description": "Total amount (USD equivalent) of fees generated  by orders that used the ReferralCode",
      "format": "double"
    }
  },
  "additionalProperties": false
}