{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordline/main/json-schema/wordline-close-card-contract-request-schema.json",
  "title": "CloseCardContractRequest",
  "x-generated": "2026-10-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordline-card-contract-api-openapi.yml#/components/schemas/CloseCardContractRequest",
  "type": "object",
  "required": [
    "closingReason",
    "closureDelayType"
  ],
  "properties": {
    "closingReason": {
      "type": "string",
      "description": "Reason for closing the card contract (free text)"
    },
    "closingComment": {
      "type": "string",
      "description": "Comment (free text) can be provided for closing the card contract."
    },
    "closureDelayType": {
      "type": "string",
      "description": "The closing type of the card contract. \nPossible values:\n- IMMEDIATE (at the current date)\n- SCHEDULED (at future date)\n- SCHEDULED_EXP_DATE (at the expiration date of the card)"
    },
    "closingDate": {
      "type": "string",
      "format": "date-time",
      "description": "If the delay type is SCHEDULED, the closing date must be provided and must be a future date."
    }
  }
}