Skip to content

Commit

Permalink
add new properties to the request. (#443)
Browse files Browse the repository at this point in the history
* add new properties to the request.

fix #442
  • Loading branch information
mozts2005 authored Jul 12, 2019
1 parent ea9fb21 commit 1d04845
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions src/ZendeskApi_v2/Models/Requests/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public class Request
[JsonProperty("status")]
public string Status { get; set; }

[JsonProperty("priority")]
public string Priority { get; set; }

[JsonProperty("subject")]
public string Subject { get; set; }

Expand All @@ -46,9 +49,25 @@ public class Request
[JsonProperty("organization_id")]
public long? OrganizationId { get; set; }

[JsonProperty("requester_id")]
public long? RequesterId { get; set; }

[JsonProperty("assignee_id")]
public long AssigneeId { get; set; }

[JsonProperty("group_id")]
public long GroupId { get; set; }

[JsonProperty("via")]
public Via Via { get; set; }

[JsonProperty("is_public")]
public bool IsPublic { get; set; }

[JsonProperty("due_at")]
[JsonConverter(typeof(IsoDateTimeConverter))]
public DateTimeOffset? DueAt { get; set; }

[JsonProperty("custom_fields")]
public IList<CustomField> CustomFields { get; set; }

Expand All @@ -60,9 +79,6 @@ public class Request
[JsonConverter(typeof(IsoDateTimeConverter))]
public DateTimeOffset? UpdatedAt { get; set; }

[JsonProperty("requester_id")]
public long? RequesterId { get; set; }

/// <summary>
/// If true, end user can mark request as solved.
/// This will be ignored when updating a request.
Expand All @@ -78,6 +94,15 @@ public class Request
[JsonProperty("solved")]
public bool? Solved { get; set; }

[JsonProperty("ticket_form_id")]
public long TicketFormId { get; set; }

[JsonProperty("recipient")]
public string recipient { get; set; }

[JsonProperty("followup_source_id")]
public string FollowupSourceId { get; set; }

/// <summary>
/// This is used for updates only
/// </summary>
Expand Down

0 comments on commit 1d04845

Please sign in to comment.