{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-order-give-offer-response-dto-schema.json",
  "title": "OrderGiveOfferResponseDTO",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/debridge-com-orders-api-openapi.yml#/components/schemas/OrderGiveOfferResponseDTO",
  "type": "object",
  "properties": {
    "orders": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/OrderGiveOfferDTO"
      },
      "description": "Orders from requested page of the search result"
    },
    "totalCount": {
      "type": "integer",
      "description": "Total number of orders fitting the search criteria",
      "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
    },
    "IntPropertyDTO": {
      "type": "object",
      "properties": {
        "bytesValue": {
          "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
        },
        "bigIntegerValue": {
          "type": [
            "number",
            "null"
          ],
          "description": "Integer representation of the property value",
          "format": "int64",
          "readOnly": true
        },
        "stringValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "String representation of the property value",
          "readOnly": true
        }
      },
      "additionalProperties": false
    },
    "OrderGiveOfferDTO": {
      "type": "object",
      "properties": {
        "orderId": {
          "oneOf": [
            {
              "$ref": "#/$defs/StringPropertyDTO"
            },
            {
              "$ref": "#/$defs/TransactionHashPropertyDto"
            }
          ],
          "description": "Unique identifier of the order"
        },
        "giveTokenAddress": {
          "$ref": "#/$defs/AddressPropertyDTO"
        },
        "finalGiveAmount": {
          "$ref": "#/$defs/IntPropertyDTO"
        }
      },
      "additionalProperties": false,
      "description": "Info about an offer"
    },
    "StringPropertyDTO": {
      "type": "object",
      "properties": {
        "bytesValue": {
          "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
    },
    "TransactionHashPropertyDto": {
      "type": "object",
      "allOf": [
        {
          "$ref": "#/$defs/StringPropertyDTO"
        }
      ],
      "properties": {
        "stringValue": {
          "type": [
            "string",
            "null"
          ],
          "description": "String representation of the transaction hash value",
          "readOnly": true
        }
      },
      "additionalProperties": false,
      "description": "Transaction Hash property"
    }
  }
}