{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/debridge-com/json-schema/debridge-com-dln-order-response-schema.json",
  "title": "DlnOrderResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/create-tx.json#/components/schemas/DlnOrderResponse",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "None",
        "Created",
        "Fulfilled",
        "SentUnlock",
        "OrderCancelled",
        "SentOrderCancel",
        "ClaimedUnlock",
        "ClaimedOrderCancel"
      ]
    },
    "externalCallState": {
      "type": "string",
      "enum": [
        "NoExtCall",
        "AwaitingOrderFulfillment",
        "AwaitingExecution",
        "Executing",
        "Completed",
        "Failed",
        "Cancelled"
      ]
    },
    "orderStruct": {
      "$ref": "#/$defs/OrderStruct"
    }
  },
  "required": [
    "orderId",
    "status",
    "orderStruct"
  ],
  "$defs": {
    "Offer": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "string",
          "enum": [
            "1",
            "10",
            "56",
            "137",
            "4663",
            "5042",
            "8453",
            "42161",
            "43114",
            "59144",
            "7565164",
            "100000013",
            "100000019",
            "100000022",
            "100000026",
            "100000027",
            "100000029",
            "100000030",
            "100000031"
          ]
        },
        "tokenAddress": {
          "type": "string"
        },
        "amount": {
          "type": "integer"
        }
      },
      "required": [
        "chainId",
        "tokenAddress",
        "amount"
      ]
    },
    "OrderStruct": {
      "type": "object",
      "properties": {
        "makerOrderNonce": {
          "type": "integer"
        },
        "makerSrc": {
          "type": "string"
        },
        "giveOffer": {
          "$ref": "#/$defs/Offer"
        },
        "receiverDst": {
          "type": "string"
        },
        "takeOffer": {
          "$ref": "#/$defs/Offer"
        },
        "givePatchAuthoritySrc": {
          "type": "string"
        },
        "orderAuthorityAddressDst": {
          "type": "string"
        },
        "allowedTakerDst": {
          "type": "string"
        },
        "allowedCancelBeneficiarySrc": {
          "type": "string"
        },
        "externalCall": {
          "type": "string"
        }
      },
      "required": [
        "makerOrderNonce",
        "makerSrc",
        "giveOffer",
        "receiverDst",
        "takeOffer",
        "givePatchAuthoritySrc",
        "orderAuthorityAddressDst",
        "allowedTakerDst",
        "allowedCancelBeneficiarySrc",
        "externalCall"
      ]
    }
  }
}