{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gnosis-pay/json-schema/gnosis-pay-three-dschallenge-list-response-schema.json",
  "title": "ThreeDSChallengeListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gnosis-pay-3-ds-api-openapi.yml#/components/schemas/ThreeDSChallengeListResponse",
  "type": "object",
  "required": [
    "serverTime",
    "data"
  ],
  "properties": {
    "serverTime": {
      "type": "string",
      "format": "date-time"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ThreeDSChallenge"
      }
    }
  },
  "$defs": {
    "ThreeDSChallenge": {
      "type": "object",
      "required": [
        "id",
        "cardId",
        "accountId",
        "amount",
        "currency",
        "decimals",
        "merchant",
        "status",
        "startedAt",
        "expiresAt",
        "decisionAvailable"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/uuid"
        },
        "cardId": {
          "$ref": "#/$defs/uuid"
        },
        "accountId": {
          "$ref": "#/$defs/uuid"
        },
        "amount": {
          "type": "string",
          "pattern": "^(0|[1-9][0-9]*)$",
          "description": "Non-negative minor-unit integer encoded as a decimal string."
        },
        "currency": {
          "type": "string",
          "minLength": 1
        },
        "decimals": {
          "type": "integer",
          "format": "int32",
          "minimum": 0,
          "maximum": 9
        },
        "merchant": {
          "$ref": "#/$defs/ThreeDSMerchant"
        },
        "status": {
          "$ref": "#/$defs/ThreeDSChallengeStatus"
        },
        "decision": {
          "$ref": "#/$defs/ThreeDSDecision"
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "decisionAvailable": {
          "type": "boolean"
        }
      }
    },
    "ThreeDSChallengeStatus": {
      "type": "string",
      "enum": [
        "pending",
        "processing",
        "approved",
        "declined",
        "cancelled",
        "expired",
        "failed"
      ]
    },
    "ThreeDSDecision": {
      "type": "string",
      "enum": [
        "approve",
        "decline"
      ]
    },
    "ThreeDSMerchant": {
      "type": "object",
      "required": [
        "displayName"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "minLength": 1,
          "description": "Exact merchant name supplied by the 3DS provider."
        },
        "country": {
          "type": "string"
        },
        "categoryCode": {
          "type": "string"
        }
      }
    },
    "uuid": {
      "type": "string",
      "format": "uuid"
    }
  }
}