Skip to content

Commit

Permalink
feat(event): add macro reference event fields (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
CanisHelix authored Aug 11, 2022
1 parent 56980e6 commit 5d6b5bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ZendeskApi_v2/Models/Constants/AuditTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ public static class AuditTypes
public const string Tweet = "Tweet";
public const string SMS = "SMS";
public const string TicketSharingEvent = "TicketSharingEvent";
public const string AgentMacroReference = "AgentMacroReference";
}
}
18 changes: 18 additions & 0 deletions src/ZendeskApi_v2/Models/Shared/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,23 @@ public class Event
/// </summary>
[JsonProperty("action")]
public string Action { get; set; }

/// <summary>
/// Used when event is AgentMacroReference
/// </summary>
[JsonProperty("macro_id")]
public long? MacroId { get; set; }

/// <summary>
/// Used when event is AgentMacroReference
/// </summary>
[JsonProperty("macro_title")]
public string MacroTitle { get; set; }

/// <summary>
/// Used when event is AgentMacroReference
/// </summary>
[JsonProperty("macro_deleted")]
public bool? MacroDeleted { get; set; }
}
}

0 comments on commit 5d6b5bd

Please sign in to comment.