merge_ticketing_client 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -7
- data/docs/Account.md +3 -1
- data/docs/AccountIntegration.md +1 -1
- data/docs/Attachment.md +5 -3
- data/docs/AttachmentRequest.md +7 -3
- data/docs/Collection.md +34 -0
- data/docs/CollectionTypeEnum.md +15 -0
- data/docs/CollectionsApi.md +193 -0
- data/docs/Comment.md +6 -4
- data/docs/CommentRequest.md +8 -4
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/Contact.md +3 -1
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/EndUserDetailsRequest.md +2 -2
- data/docs/Issue.md +9 -7
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedCollectionList.md +22 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/PatchedTicketEndpointRequest.md +18 -0
- data/docs/PatchedTicketRequest.md +56 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/Project.md +3 -1
- data/docs/ProjectsApi.md +10 -8
- data/docs/RemoteResponse.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +7 -5
- data/docs/Tag.md +3 -1
- data/docs/Team.md +3 -1
- data/docs/Ticket.md +18 -6
- data/docs/TicketRequest.md +20 -6
- data/docs/TicketsApi.md +207 -13
- data/docs/User.md +5 -1
- data/docs/UsersApi.md +2 -0
- data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
- data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
- data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_ticketing_client/api/tickets_api.rb +242 -19
- data/lib/merge_ticketing_client/api/users_api.rb +3 -0
- data/lib/merge_ticketing_client/models/account.rb +16 -4
- data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
- data/lib/merge_ticketing_client/models/attachment.rb +18 -4
- data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
- data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/collection.rb +308 -0
- data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/comment.rb +19 -4
- data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
- data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
- data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_ticketing_client/models/contact.rb +16 -4
- data/lib/merge_ticketing_client/models/data_passthrough_request.rb +2 -1
- data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
- data/lib/merge_ticketing_client/models/issue.rb +16 -5
- data/lib/merge_ticketing_client/models/link_token.rb +0 -5
- data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
- data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
- data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
- data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +447 -0
- data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
- data/lib/merge_ticketing_client/models/project.rb +16 -4
- data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
- data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/sync_status.rb +13 -14
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/tag.rb +16 -4
- data/lib/merge_ticketing_client/models/team.rb +16 -4
- data/lib/merge_ticketing_client/models/ticket.rb +91 -5
- data/lib/merge_ticketing_client/models/ticket_request.rb +104 -6
- data/lib/merge_ticketing_client/models/ticket_status_enum.rb +4 -2
- data/lib/merge_ticketing_client/models/user.rb +27 -4
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +19 -0
- data/spec/api/collections_api_spec.rb +76 -0
- data/spec/api/projects_api_spec.rb +3 -2
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/tickets_api_spec.rb +50 -4
- data/spec/api/users_api_spec.rb +1 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_spec.rb +6 -0
- data/spec/models/collection_spec.rb +82 -0
- data/spec/models/collection_type_enum_spec.rb +28 -0
- data/spec/models/comment_request_spec.rb +12 -0
- data/spec/models/comment_spec.rb +6 -0
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/contact_spec.rb +6 -0
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_collection_list_spec.rb +46 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
- data/spec/models/patched_ticket_request_spec.rb +148 -0
- data/spec/models/priority_enum_spec.rb +28 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +6 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tag_spec.rb +6 -0
- data/spec/models/team_spec.rb +6 -0
- data/spec/models/ticket_request_spec.rb +42 -0
- data/spec/models/ticket_spec.rb +36 -0
- data/spec/models/user_spec.rb +12 -0
- metadata +144 -68
@@ -26,24 +26,33 @@ module MergeTicketingClient
|
|
26
26
|
|
27
27
|
attr_accessor :assignees
|
28
28
|
|
29
|
+
# The user who created this ticket.
|
30
|
+
attr_accessor :creator
|
31
|
+
|
29
32
|
# The ticket's due date.
|
30
33
|
attr_accessor :due_date
|
31
34
|
|
32
35
|
# The current status of the ticket.
|
33
36
|
attr_accessor :status
|
34
37
|
|
35
|
-
# The ticket
|
38
|
+
# The ticket’s description. HTML version of description is mapped if supported by the third-party platform.
|
36
39
|
attr_accessor :description
|
37
40
|
|
41
|
+
# The project the ticket belongs to.
|
38
42
|
attr_accessor :project
|
39
43
|
|
44
|
+
attr_accessor :collections
|
45
|
+
|
40
46
|
# The ticket's type.
|
41
47
|
attr_accessor :ticket_type
|
42
48
|
|
49
|
+
# The account associated with the ticket.
|
43
50
|
attr_accessor :account
|
44
51
|
|
52
|
+
# The contact associated with the ticket.
|
45
53
|
attr_accessor :contact
|
46
54
|
|
55
|
+
# The ticket's parent ticket.
|
47
56
|
attr_accessor :parent_ticket
|
48
57
|
|
49
58
|
attr_accessor :attachments
|
@@ -56,10 +65,21 @@ module MergeTicketingClient
|
|
56
65
|
# When the third party's ticket was updated.
|
57
66
|
attr_accessor :remote_updated_at
|
58
67
|
|
68
|
+
# When the ticket was completed.
|
69
|
+
attr_accessor :completed_at
|
70
|
+
|
59
71
|
attr_accessor :remote_data
|
60
72
|
|
61
73
|
attr_accessor :remote_was_deleted
|
62
74
|
|
75
|
+
# The 3rd party url of the Ticket.
|
76
|
+
attr_accessor :ticket_url
|
77
|
+
|
78
|
+
# The priority or urgency of the Ticket.
|
79
|
+
attr_accessor :priority
|
80
|
+
|
81
|
+
attr_accessor :field_mappings
|
82
|
+
|
63
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
64
84
|
def self.attribute_map
|
65
85
|
{
|
@@ -67,10 +87,12 @@ module MergeTicketingClient
|
|
67
87
|
:'remote_id' => :'remote_id',
|
68
88
|
:'name' => :'name',
|
69
89
|
:'assignees' => :'assignees',
|
90
|
+
:'creator' => :'creator',
|
70
91
|
:'due_date' => :'due_date',
|
71
92
|
:'status' => :'status',
|
72
93
|
:'description' => :'description',
|
73
94
|
:'project' => :'project',
|
95
|
+
:'collections' => :'collections',
|
74
96
|
:'ticket_type' => :'ticket_type',
|
75
97
|
:'account' => :'account',
|
76
98
|
:'contact' => :'contact',
|
@@ -79,8 +101,12 @@ module MergeTicketingClient
|
|
79
101
|
:'tags' => :'tags',
|
80
102
|
:'remote_created_at' => :'remote_created_at',
|
81
103
|
:'remote_updated_at' => :'remote_updated_at',
|
104
|
+
:'completed_at' => :'completed_at',
|
82
105
|
:'remote_data' => :'remote_data',
|
83
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
106
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
107
|
+
:'ticket_url' => :'ticket_url',
|
108
|
+
:'priority' => :'priority',
|
109
|
+
:'field_mappings' => :'field_mappings'
|
84
110
|
}
|
85
111
|
end
|
86
112
|
|
@@ -96,10 +122,12 @@ module MergeTicketingClient
|
|
96
122
|
:'remote_id' => :'String',
|
97
123
|
:'name' => :'String',
|
98
124
|
:'assignees' => :'Array<String>',
|
125
|
+
:'creator' => :'String',
|
99
126
|
:'due_date' => :'Time',
|
100
127
|
:'status' => :'TicketStatusEnum',
|
101
128
|
:'description' => :'String',
|
102
129
|
:'project' => :'String',
|
130
|
+
:'collections' => :'Array<String>',
|
103
131
|
:'ticket_type' => :'String',
|
104
132
|
:'account' => :'String',
|
105
133
|
:'contact' => :'String',
|
@@ -108,8 +136,12 @@ module MergeTicketingClient
|
|
108
136
|
:'tags' => :'Array<String>',
|
109
137
|
:'remote_created_at' => :'Time',
|
110
138
|
:'remote_updated_at' => :'Time',
|
139
|
+
:'completed_at' => :'Time',
|
111
140
|
:'remote_data' => :'Array<RemoteData>',
|
112
|
-
:'remote_was_deleted' => :'Boolean'
|
141
|
+
:'remote_was_deleted' => :'Boolean',
|
142
|
+
:'ticket_url' => :'String',
|
143
|
+
:'priority' => :'PriorityEnum',
|
144
|
+
:'field_mappings' => :'Hash<String, Object>'
|
113
145
|
}
|
114
146
|
end
|
115
147
|
|
@@ -118,6 +150,7 @@ module MergeTicketingClient
|
|
118
150
|
Set.new([
|
119
151
|
:'remote_id',
|
120
152
|
:'name',
|
153
|
+
:'creator',
|
121
154
|
:'due_date',
|
122
155
|
:'status',
|
123
156
|
:'description',
|
@@ -128,7 +161,11 @@ module MergeTicketingClient
|
|
128
161
|
:'parent_ticket',
|
129
162
|
:'remote_created_at',
|
130
163
|
:'remote_updated_at',
|
164
|
+
:'completed_at',
|
131
165
|
:'remote_data',
|
166
|
+
:'ticket_url',
|
167
|
+
:'priority',
|
168
|
+
:'field_mappings'
|
132
169
|
])
|
133
170
|
end
|
134
171
|
|
@@ -165,6 +202,10 @@ module MergeTicketingClient
|
|
165
202
|
end
|
166
203
|
end
|
167
204
|
|
205
|
+
if attributes.key?(:'creator')
|
206
|
+
self.creator = attributes[:'creator']
|
207
|
+
end
|
208
|
+
|
168
209
|
if attributes.key?(:'due_date')
|
169
210
|
self.due_date = attributes[:'due_date']
|
170
211
|
end
|
@@ -181,6 +222,12 @@ module MergeTicketingClient
|
|
181
222
|
self.project = attributes[:'project']
|
182
223
|
end
|
183
224
|
|
225
|
+
if attributes.key?(:'collections')
|
226
|
+
if (value = attributes[:'collections']).is_a?(Array)
|
227
|
+
self.collections = value
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
184
231
|
if attributes.key?(:'ticket_type')
|
185
232
|
self.ticket_type = attributes[:'ticket_type']
|
186
233
|
end
|
@@ -217,6 +264,10 @@ module MergeTicketingClient
|
|
217
264
|
self.remote_updated_at = attributes[:'remote_updated_at']
|
218
265
|
end
|
219
266
|
|
267
|
+
if attributes.key?(:'completed_at')
|
268
|
+
self.completed_at = attributes[:'completed_at']
|
269
|
+
end
|
270
|
+
|
220
271
|
if attributes.key?(:'remote_data')
|
221
272
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
222
273
|
self.remote_data = value
|
@@ -226,21 +277,50 @@ module MergeTicketingClient
|
|
226
277
|
if attributes.key?(:'remote_was_deleted')
|
227
278
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
228
279
|
end
|
280
|
+
|
281
|
+
if attributes.key?(:'ticket_url')
|
282
|
+
self.ticket_url = attributes[:'ticket_url']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.key?(:'priority')
|
286
|
+
self.priority = attributes[:'priority']
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.key?(:'field_mappings')
|
290
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
291
|
+
self.field_mappings = value
|
292
|
+
end
|
293
|
+
end
|
229
294
|
end
|
230
295
|
|
231
296
|
# Show invalid properties with the reasons. Usually used together with valid?
|
232
297
|
# @return Array for valid properties with the reasons
|
233
298
|
def list_invalid_properties
|
234
299
|
invalid_properties = Array.new
|
300
|
+
if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
|
301
|
+
invalid_properties.push('invalid value for "ticket_url", the character length must be smaller than or equal to 2000.')
|
302
|
+
end
|
303
|
+
|
235
304
|
invalid_properties
|
236
305
|
end
|
237
306
|
|
238
307
|
# Check to see if the all the properties in the model are valid
|
239
308
|
# @return true if the model is valid
|
240
309
|
def valid?
|
310
|
+
return false if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
|
241
311
|
true
|
242
312
|
end
|
243
313
|
|
314
|
+
# Custom attribute writer method with validation
|
315
|
+
# @param [Object] ticket_url Value to be assigned
|
316
|
+
def ticket_url=(ticket_url)
|
317
|
+
if !ticket_url.nil? && ticket_url.to_s.length > 2000
|
318
|
+
fail ArgumentError, 'invalid value for "ticket_url", the character length must be smaller than or equal to 2000.'
|
319
|
+
end
|
320
|
+
|
321
|
+
@ticket_url = ticket_url
|
322
|
+
end
|
323
|
+
|
244
324
|
# Checks equality by comparing each attribute.
|
245
325
|
# @param [Object] Object to be compared
|
246
326
|
def ==(o)
|
@@ -250,10 +330,12 @@ module MergeTicketingClient
|
|
250
330
|
remote_id == o.remote_id &&
|
251
331
|
name == o.name &&
|
252
332
|
assignees == o.assignees &&
|
333
|
+
creator == o.creator &&
|
253
334
|
due_date == o.due_date &&
|
254
335
|
status == o.status &&
|
255
336
|
description == o.description &&
|
256
337
|
project == o.project &&
|
338
|
+
collections == o.collections &&
|
257
339
|
ticket_type == o.ticket_type &&
|
258
340
|
account == o.account &&
|
259
341
|
contact == o.contact &&
|
@@ -262,8 +344,12 @@ module MergeTicketingClient
|
|
262
344
|
tags == o.tags &&
|
263
345
|
remote_created_at == o.remote_created_at &&
|
264
346
|
remote_updated_at == o.remote_updated_at &&
|
347
|
+
completed_at == o.completed_at &&
|
265
348
|
remote_data == o.remote_data &&
|
266
|
-
remote_was_deleted == o.remote_was_deleted
|
349
|
+
remote_was_deleted == o.remote_was_deleted &&
|
350
|
+
ticket_url == o.ticket_url &&
|
351
|
+
priority == o.priority &&
|
352
|
+
field_mappings == o.field_mappings
|
267
353
|
end
|
268
354
|
|
269
355
|
# @see the `==` method
|
@@ -275,7 +361,7 @@ module MergeTicketingClient
|
|
275
361
|
# Calculates hash code according to all attributes.
|
276
362
|
# @return [Integer] Hash code
|
277
363
|
def hash
|
278
|
-
[id, remote_id, name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, remote_data, remote_was_deleted].hash
|
364
|
+
[id, remote_id, name, assignees, creator, due_date, status, description, project, collections, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, completed_at, remote_data, remote_was_deleted, ticket_url, priority, field_mappings].hash
|
279
365
|
end
|
280
366
|
|
281
367
|
# Builds the object from hash
|
@@ -24,24 +24,33 @@ module MergeTicketingClient
|
|
24
24
|
|
25
25
|
attr_accessor :assignees
|
26
26
|
|
27
|
+
# The user who created this ticket.
|
28
|
+
attr_accessor :creator
|
29
|
+
|
27
30
|
# The ticket's due date.
|
28
31
|
attr_accessor :due_date
|
29
32
|
|
30
33
|
# The current status of the ticket.
|
31
34
|
attr_accessor :status
|
32
35
|
|
33
|
-
# The ticket
|
36
|
+
# The ticket’s description. HTML version of description is mapped if supported by the third-party platform.
|
34
37
|
attr_accessor :description
|
35
38
|
|
39
|
+
# The project the ticket belongs to.
|
36
40
|
attr_accessor :project
|
37
41
|
|
42
|
+
attr_accessor :collections
|
43
|
+
|
38
44
|
# The ticket's type.
|
39
45
|
attr_accessor :ticket_type
|
40
46
|
|
47
|
+
# The account associated with the ticket.
|
41
48
|
attr_accessor :account
|
42
49
|
|
50
|
+
# The contact associated with the ticket.
|
43
51
|
attr_accessor :contact
|
44
52
|
|
53
|
+
# The ticket's parent ticket.
|
45
54
|
attr_accessor :parent_ticket
|
46
55
|
|
47
56
|
attr_accessor :attachments
|
@@ -54,16 +63,31 @@ module MergeTicketingClient
|
|
54
63
|
# When the third party's ticket was updated.
|
55
64
|
attr_accessor :remote_updated_at
|
56
65
|
|
66
|
+
# When the ticket was completed.
|
67
|
+
attr_accessor :completed_at
|
68
|
+
|
69
|
+
# The 3rd party url of the Ticket.
|
70
|
+
attr_accessor :ticket_url
|
71
|
+
|
72
|
+
# The priority or urgency of the Ticket.
|
73
|
+
attr_accessor :priority
|
74
|
+
|
75
|
+
attr_accessor :integration_params
|
76
|
+
|
77
|
+
attr_accessor :linked_account_params
|
78
|
+
|
57
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
80
|
def self.attribute_map
|
59
81
|
{
|
60
82
|
:'remote_id' => :'remote_id',
|
61
83
|
:'name' => :'name',
|
62
84
|
:'assignees' => :'assignees',
|
85
|
+
:'creator' => :'creator',
|
63
86
|
:'due_date' => :'due_date',
|
64
87
|
:'status' => :'status',
|
65
88
|
:'description' => :'description',
|
66
89
|
:'project' => :'project',
|
90
|
+
:'collections' => :'collections',
|
67
91
|
:'ticket_type' => :'ticket_type',
|
68
92
|
:'account' => :'account',
|
69
93
|
:'contact' => :'contact',
|
@@ -71,7 +95,12 @@ module MergeTicketingClient
|
|
71
95
|
:'attachments' => :'attachments',
|
72
96
|
:'tags' => :'tags',
|
73
97
|
:'remote_created_at' => :'remote_created_at',
|
74
|
-
:'remote_updated_at' => :'remote_updated_at'
|
98
|
+
:'remote_updated_at' => :'remote_updated_at',
|
99
|
+
:'completed_at' => :'completed_at',
|
100
|
+
:'ticket_url' => :'ticket_url',
|
101
|
+
:'priority' => :'priority',
|
102
|
+
:'integration_params' => :'integration_params',
|
103
|
+
:'linked_account_params' => :'linked_account_params'
|
75
104
|
}
|
76
105
|
end
|
77
106
|
|
@@ -86,10 +115,12 @@ module MergeTicketingClient
|
|
86
115
|
:'remote_id' => :'String',
|
87
116
|
:'name' => :'String',
|
88
117
|
:'assignees' => :'Array<String>',
|
118
|
+
:'creator' => :'String',
|
89
119
|
:'due_date' => :'Time',
|
90
120
|
:'status' => :'TicketStatusEnum',
|
91
121
|
:'description' => :'String',
|
92
122
|
:'project' => :'String',
|
123
|
+
:'collections' => :'Array<String>',
|
93
124
|
:'ticket_type' => :'String',
|
94
125
|
:'account' => :'String',
|
95
126
|
:'contact' => :'String',
|
@@ -97,7 +128,12 @@ module MergeTicketingClient
|
|
97
128
|
:'attachments' => :'Array<String>',
|
98
129
|
:'tags' => :'Array<String>',
|
99
130
|
:'remote_created_at' => :'Time',
|
100
|
-
:'remote_updated_at' => :'Time'
|
131
|
+
:'remote_updated_at' => :'Time',
|
132
|
+
:'completed_at' => :'Time',
|
133
|
+
:'ticket_url' => :'String',
|
134
|
+
:'priority' => :'PriorityEnum',
|
135
|
+
:'integration_params' => :'Hash<String, Object>',
|
136
|
+
:'linked_account_params' => :'Hash<String, Object>'
|
101
137
|
}
|
102
138
|
end
|
103
139
|
|
@@ -106,6 +142,7 @@ module MergeTicketingClient
|
|
106
142
|
Set.new([
|
107
143
|
:'remote_id',
|
108
144
|
:'name',
|
145
|
+
:'creator',
|
109
146
|
:'due_date',
|
110
147
|
:'status',
|
111
148
|
:'description',
|
@@ -115,7 +152,12 @@ module MergeTicketingClient
|
|
115
152
|
:'contact',
|
116
153
|
:'parent_ticket',
|
117
154
|
:'remote_created_at',
|
118
|
-
:'remote_updated_at'
|
155
|
+
:'remote_updated_at',
|
156
|
+
:'completed_at',
|
157
|
+
:'ticket_url',
|
158
|
+
:'priority',
|
159
|
+
:'integration_params',
|
160
|
+
:'linked_account_params'
|
119
161
|
])
|
120
162
|
end
|
121
163
|
|
@@ -148,6 +190,10 @@ module MergeTicketingClient
|
|
148
190
|
end
|
149
191
|
end
|
150
192
|
|
193
|
+
if attributes.key?(:'creator')
|
194
|
+
self.creator = attributes[:'creator']
|
195
|
+
end
|
196
|
+
|
151
197
|
if attributes.key?(:'due_date')
|
152
198
|
self.due_date = attributes[:'due_date']
|
153
199
|
end
|
@@ -164,6 +210,12 @@ module MergeTicketingClient
|
|
164
210
|
self.project = attributes[:'project']
|
165
211
|
end
|
166
212
|
|
213
|
+
if attributes.key?(:'collections')
|
214
|
+
if (value = attributes[:'collections']).is_a?(Array)
|
215
|
+
self.collections = value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
167
219
|
if attributes.key?(:'ticket_type')
|
168
220
|
self.ticket_type = attributes[:'ticket_type']
|
169
221
|
end
|
@@ -199,21 +251,60 @@ module MergeTicketingClient
|
|
199
251
|
if attributes.key?(:'remote_updated_at')
|
200
252
|
self.remote_updated_at = attributes[:'remote_updated_at']
|
201
253
|
end
|
254
|
+
|
255
|
+
if attributes.key?(:'completed_at')
|
256
|
+
self.completed_at = attributes[:'completed_at']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.key?(:'ticket_url')
|
260
|
+
self.ticket_url = attributes[:'ticket_url']
|
261
|
+
end
|
262
|
+
|
263
|
+
if attributes.key?(:'priority')
|
264
|
+
self.priority = attributes[:'priority']
|
265
|
+
end
|
266
|
+
|
267
|
+
if attributes.key?(:'integration_params')
|
268
|
+
if (value = attributes[:'integration_params']).is_a?(Hash)
|
269
|
+
self.integration_params = value
|
270
|
+
end
|
271
|
+
end
|
272
|
+
|
273
|
+
if attributes.key?(:'linked_account_params')
|
274
|
+
if (value = attributes[:'linked_account_params']).is_a?(Hash)
|
275
|
+
self.linked_account_params = value
|
276
|
+
end
|
277
|
+
end
|
202
278
|
end
|
203
279
|
|
204
280
|
# Show invalid properties with the reasons. Usually used together with valid?
|
205
281
|
# @return Array for valid properties with the reasons
|
206
282
|
def list_invalid_properties
|
207
283
|
invalid_properties = Array.new
|
284
|
+
if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
|
285
|
+
invalid_properties.push('invalid value for "ticket_url", the character length must be smaller than or equal to 2000.')
|
286
|
+
end
|
287
|
+
|
208
288
|
invalid_properties
|
209
289
|
end
|
210
290
|
|
211
291
|
# Check to see if the all the properties in the model are valid
|
212
292
|
# @return true if the model is valid
|
213
293
|
def valid?
|
294
|
+
return false if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
|
214
295
|
true
|
215
296
|
end
|
216
297
|
|
298
|
+
# Custom attribute writer method with validation
|
299
|
+
# @param [Object] ticket_url Value to be assigned
|
300
|
+
def ticket_url=(ticket_url)
|
301
|
+
if !ticket_url.nil? && ticket_url.to_s.length > 2000
|
302
|
+
fail ArgumentError, 'invalid value for "ticket_url", the character length must be smaller than or equal to 2000.'
|
303
|
+
end
|
304
|
+
|
305
|
+
@ticket_url = ticket_url
|
306
|
+
end
|
307
|
+
|
217
308
|
# Checks equality by comparing each attribute.
|
218
309
|
# @param [Object] Object to be compared
|
219
310
|
def ==(o)
|
@@ -222,10 +313,12 @@ module MergeTicketingClient
|
|
222
313
|
remote_id == o.remote_id &&
|
223
314
|
name == o.name &&
|
224
315
|
assignees == o.assignees &&
|
316
|
+
creator == o.creator &&
|
225
317
|
due_date == o.due_date &&
|
226
318
|
status == o.status &&
|
227
319
|
description == o.description &&
|
228
320
|
project == o.project &&
|
321
|
+
collections == o.collections &&
|
229
322
|
ticket_type == o.ticket_type &&
|
230
323
|
account == o.account &&
|
231
324
|
contact == o.contact &&
|
@@ -233,7 +326,12 @@ module MergeTicketingClient
|
|
233
326
|
attachments == o.attachments &&
|
234
327
|
tags == o.tags &&
|
235
328
|
remote_created_at == o.remote_created_at &&
|
236
|
-
remote_updated_at == o.remote_updated_at
|
329
|
+
remote_updated_at == o.remote_updated_at &&
|
330
|
+
completed_at == o.completed_at &&
|
331
|
+
ticket_url == o.ticket_url &&
|
332
|
+
priority == o.priority &&
|
333
|
+
integration_params == o.integration_params &&
|
334
|
+
linked_account_params == o.linked_account_params
|
237
335
|
end
|
238
336
|
|
239
337
|
# @see the `==` method
|
@@ -245,7 +343,7 @@ module MergeTicketingClient
|
|
245
343
|
# Calculates hash code according to all attributes.
|
246
344
|
# @return [Integer] Hash code
|
247
345
|
def hash
|
248
|
-
[remote_id, name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at].hash
|
346
|
+
[remote_id, name, assignees, creator, due_date, status, description, project, collections, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, completed_at, ticket_url, priority, integration_params, linked_account_params].hash
|
249
347
|
end
|
250
348
|
|
251
349
|
# Builds the object from hash
|
@@ -17,6 +17,8 @@ module MergeTicketingClient
|
|
17
17
|
class TicketStatusEnum
|
18
18
|
OPEN = "OPEN".freeze
|
19
19
|
CLOSED = "CLOSED".freeze
|
20
|
+
IN_PROGRESS = "IN_PROGRESS".freeze
|
21
|
+
ON_HOLD = "ON_HOLD".freeze
|
20
22
|
|
21
23
|
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
24
|
|
@@ -28,7 +30,7 @@ module MergeTicketingClient
|
|
28
30
|
# @return [String] The enum value
|
29
31
|
def build_from_hash(value)
|
30
32
|
@raw_value = value
|
31
|
-
if ["OPEN", "CLOSED", ].include? value
|
33
|
+
if ["OPEN", "CLOSED", "IN_PROGRESS", "ON_HOLD", ].include? value
|
32
34
|
@value = value
|
33
35
|
else
|
34
36
|
@value = MERGE_NONSTANDARD_VALUE
|
@@ -38,7 +40,7 @@ module MergeTicketingClient
|
|
38
40
|
end
|
39
41
|
|
40
42
|
def self.build_from_hash(value)
|
41
|
-
|
43
|
+
TicketStatusEnum.new.build_from_hash(value)
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
@@ -32,11 +32,16 @@ module MergeTicketingClient
|
|
32
32
|
|
33
33
|
attr_accessor :teams
|
34
34
|
|
35
|
+
# The user's avatar picture.
|
36
|
+
attr_accessor :avatar
|
37
|
+
|
35
38
|
attr_accessor :remote_data
|
36
39
|
|
37
40
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
38
41
|
attr_accessor :remote_was_deleted
|
39
42
|
|
43
|
+
attr_accessor :field_mappings
|
44
|
+
|
40
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
46
|
def self.attribute_map
|
42
47
|
{
|
@@ -46,8 +51,10 @@ module MergeTicketingClient
|
|
46
51
|
:'email_address' => :'email_address',
|
47
52
|
:'is_active' => :'is_active',
|
48
53
|
:'teams' => :'teams',
|
54
|
+
:'avatar' => :'avatar',
|
49
55
|
:'remote_data' => :'remote_data',
|
50
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
56
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
57
|
+
:'field_mappings' => :'field_mappings'
|
51
58
|
}
|
52
59
|
end
|
53
60
|
|
@@ -65,8 +72,10 @@ module MergeTicketingClient
|
|
65
72
|
:'email_address' => :'String',
|
66
73
|
:'is_active' => :'Boolean',
|
67
74
|
:'teams' => :'Array<String>',
|
75
|
+
:'avatar' => :'String',
|
68
76
|
:'remote_data' => :'Array<RemoteData>',
|
69
|
-
:'remote_was_deleted' => :'Boolean'
|
77
|
+
:'remote_was_deleted' => :'Boolean',
|
78
|
+
:'field_mappings' => :'Hash<String, Object>'
|
70
79
|
}
|
71
80
|
end
|
72
81
|
|
@@ -77,7 +86,9 @@ module MergeTicketingClient
|
|
77
86
|
:'name',
|
78
87
|
:'email_address',
|
79
88
|
:'is_active',
|
89
|
+
:'avatar',
|
80
90
|
:'remote_data',
|
91
|
+
:'field_mappings'
|
81
92
|
])
|
82
93
|
end
|
83
94
|
|
@@ -122,6 +133,10 @@ module MergeTicketingClient
|
|
122
133
|
end
|
123
134
|
end
|
124
135
|
|
136
|
+
if attributes.key?(:'avatar')
|
137
|
+
self.avatar = attributes[:'avatar']
|
138
|
+
end
|
139
|
+
|
125
140
|
if attributes.key?(:'remote_data')
|
126
141
|
if (value = attributes[:'remote_data']).is_a?(Array)
|
127
142
|
self.remote_data = value
|
@@ -131,6 +146,12 @@ module MergeTicketingClient
|
|
131
146
|
if attributes.key?(:'remote_was_deleted')
|
132
147
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
133
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'field_mappings')
|
151
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
152
|
+
self.field_mappings = value
|
153
|
+
end
|
154
|
+
end
|
134
155
|
end
|
135
156
|
|
136
157
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,8 +178,10 @@ module MergeTicketingClient
|
|
157
178
|
email_address == o.email_address &&
|
158
179
|
is_active == o.is_active &&
|
159
180
|
teams == o.teams &&
|
181
|
+
avatar == o.avatar &&
|
160
182
|
remote_data == o.remote_data &&
|
161
|
-
remote_was_deleted == o.remote_was_deleted
|
183
|
+
remote_was_deleted == o.remote_was_deleted &&
|
184
|
+
field_mappings == o.field_mappings
|
162
185
|
end
|
163
186
|
|
164
187
|
# @see the `==` method
|
@@ -170,7 +193,7 @@ module MergeTicketingClient
|
|
170
193
|
# Calculates hash code according to all attributes.
|
171
194
|
# @return [Integer] Hash code
|
172
195
|
def hash
|
173
|
-
[id, remote_id, name, email_address, is_active, teams, remote_data, remote_was_deleted].hash
|
196
|
+
[id, remote_id, name, email_address, is_active, teams, avatar, remote_data, remote_was_deleted, field_mappings].hash
|
174
197
|
end
|
175
198
|
|
176
199
|
# Builds the object from hash
|