@@ -54,9 +54,15 @@ class CaseAttributes
5454 # ServiceNow ticket attached to case
5555 attr_accessor :service_now_ticket
5656
57- # Case status
57+ # Deprecated way of representing the case status, which only supports OPEN, IN_PROGRESS, and CLOSED statuses. Use `status_name` instead.
5858 attr_accessor :status
5959
60+ # Status group of the case.
61+ attr_accessor :status_group
62+
63+ # Status of the case. Must be one of the existing statuses for the case's type.
64+ attr_accessor :status_name
65+
6066 # Title
6167 attr_accessor :title
6268
@@ -84,6 +90,8 @@ def self.attribute_map
8490 :'priority' => :'priority' ,
8591 :'service_now_ticket' => :'service_now_ticket' ,
8692 :'status' => :'status' ,
93+ :'status_group' => :'status_group' ,
94+ :'status_name' => :'status_name' ,
8795 :'title' => :'title' ,
8896 :'type' => :'type' ,
8997 :'type_id' => :'type_id'
@@ -106,6 +114,8 @@ def self.openapi_types
106114 :'priority' => :'CasePriority' ,
107115 :'service_now_ticket' => :'ServiceNowTicket' ,
108116 :'status' => :'CaseStatus' ,
117+ :'status_group' => :'CaseStatusGroup' ,
118+ :'status_name' => :'String' ,
109119 :'title' => :'String' ,
110120 :'type' => :'CaseType' ,
111121 :'type_id' => :'String'
@@ -190,6 +200,14 @@ def initialize(attributes = {})
190200 self . status = attributes [ :'status' ]
191201 end
192202
203+ if attributes . key? ( :'status_group' )
204+ self . status_group = attributes [ :'status_group' ]
205+ end
206+
207+ if attributes . key? ( :'status_name' )
208+ self . status_name = attributes [ :'status_name' ]
209+ end
210+
193211 if attributes . key? ( :'title' )
194212 self . title = attributes [ :'title' ]
195213 end
@@ -241,6 +259,8 @@ def ==(o)
241259 priority == o . priority &&
242260 service_now_ticket == o . service_now_ticket &&
243261 status == o . status &&
262+ status_group == o . status_group &&
263+ status_name == o . status_name &&
244264 title == o . title &&
245265 type == o . type &&
246266 type_id == o . type_id &&
@@ -251,7 +271,7 @@ def ==(o)
251271 # @return [Integer] Hash code
252272 # @!visibility private
253273 def hash
254- [ archived_at , attributes , closed_at , created_at , custom_attributes , description , jira_issue , key , modified_at , priority , service_now_ticket , status , title , type , type_id , additional_properties ] . hash
274+ [ archived_at , attributes , closed_at , created_at , custom_attributes , description , jira_issue , key , modified_at , priority , service_now_ticket , status , status_group , status_name , title , type , type_id , additional_properties ] . hash
255275 end
256276 end
257277end
0 commit comments