{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/recurly/json-schema/recurly-cancellation-survey-result-dto-schema.json",
  "title": "CancellationSurveyResultDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/recurly-cancellationsurveyresults-api-api-openapi.yml#/components/schemas/CancellationSurveyResultDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    },
    "subscriptionId": {
      "type": "string",
      "description": "The id of the subscription"
    },
    "cancellationQuestionId": {
      "type": "string"
    },
    "retentionStrategyId": {
      "type": "string"
    },
    "surveySetting": {
      "type": "string",
      "enum": [
        "standard",
        "retention_only",
        "survey"
      ]
    },
    "cancellationReason": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "createdAt",
    "updatedAt",
    "subscriptionId",
    "cancellationQuestionId",
    "retentionStrategyId",
    "surveySetting",
    "cancellationReason"
  ]
}