fix: make correct properties nullable

This commit is contained in:
Stevan Freeborn
2025-01-08 22:32:36 -06:00
parent 5e247a3c3a
commit 15f5ad49e7
@@ -33,7 +33,7 @@ public class MessageBatchResponse
/// Gets the date and time when the batch ended. /// Gets the date and time when the batch ended.
/// </summary> /// </summary>
[JsonPropertyName("ended_at")] [JsonPropertyName("ended_at")]
public DateTimeOffset EndedAt { get; init; } public DateTimeOffset? EndedAt { get; init; }
/// <summary> /// <summary>
/// Gets the date and time when the batch was created. /// Gets the date and time when the batch was created.
@@ -51,19 +51,19 @@ public class MessageBatchResponse
/// Gets the date and time when the batch was archived. /// Gets the date and time when the batch was archived.
/// </summary> /// </summary>
[JsonPropertyName("archived_at")] [JsonPropertyName("archived_at")]
public DateTimeOffset ArchivedAt { get; init; } public DateTimeOffset? ArchivedAt { get; init; }
/// <summary> /// <summary>
/// Gets the date and time when the batch cancellation was initiated. /// Gets the date and time when the batch cancellation was initiated.
/// </summary> /// </summary>
[JsonPropertyName("cancel_initiated_at")] [JsonPropertyName("cancel_initiated_at")]
public DateTimeOffset CancelInitiatedAt { get; init; } public DateTimeOffset? CancelInitiatedAt { get; init; }
/// <summary> /// <summary>
/// Gets the URL to the results of the batch. /// Gets the URL to the results of the batch.
/// </summary> /// </summary>
[JsonPropertyName("results_url")] [JsonPropertyName("results_url")]
public string ResultsUrl { get; init; } = string.Empty; public string? ResultsUrl { get; init; } = string.Empty;
} }
/// <summary> /// <summary>