merge_ticketing_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -6
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +5 -3
  6. data/docs/AttachmentRequest.md +7 -3
  7. data/docs/Collection.md +34 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +6 -4
  11. data/docs/CommentRequest.md +8 -4
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +3 -1
  15. data/docs/DataPassthroughRequest.md +1 -1
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/Issue.md +9 -7
  18. data/docs/LinkToken.md +1 -1
  19. data/docs/LinkedAccountCondition.md +28 -0
  20. data/docs/LinkedAccountConditionRequest.md +22 -0
  21. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  22. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  23. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  24. data/docs/OperatorSchema.md +20 -0
  25. data/docs/PaginatedCollectionList.md +22 -0
  26. data/docs/PaginatedConditionSchemaList.md +22 -0
  27. data/docs/PatchedTicketRequest.md +15 -7
  28. data/docs/Project.md +3 -1
  29. data/docs/ProjectsApi.md +10 -8
  30. data/docs/SelectiveSyncApi.md +233 -0
  31. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  32. data/docs/SyncStatus.md +5 -3
  33. data/docs/Tag.md +3 -1
  34. data/docs/Team.md +3 -1
  35. data/docs/Ticket.md +13 -7
  36. data/docs/TicketRequest.md +15 -7
  37. data/docs/TicketsApi.md +53 -13
  38. data/docs/User.md +3 -1
  39. data/docs/UsersApi.md +2 -0
  40. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  41. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  42. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  43. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  44. data/lib/merge_ticketing_client/api/tickets_api.rb +94 -19
  45. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  46. data/lib/merge_ticketing_client/models/account.rb +16 -4
  47. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  48. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  49. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  50. data/lib/merge_ticketing_client/models/attachment_request.rb +31 -5
  51. data/lib/merge_ticketing_client/models/categories_enum.rb +1 -1
  52. data/lib/merge_ticketing_client/models/category_enum.rb +1 -1
  53. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  54. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  55. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  56. data/lib/merge_ticketing_client/models/comment_request.rb +32 -5
  57. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  58. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  59. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  60. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
  61. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  62. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  63. data/lib/merge_ticketing_client/models/issue.rb +15 -4
  64. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  65. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  66. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  67. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  68. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  69. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  70. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  71. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  72. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  73. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  74. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -7
  75. data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
  76. data/lib/merge_ticketing_client/models/project.rb +16 -4
  77. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  78. data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
  79. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  80. data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
  81. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  82. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  83. data/lib/merge_ticketing_client/models/team.rb +16 -4
  84. data/lib/merge_ticketing_client/models/ticket.rb +45 -7
  85. data/lib/merge_ticketing_client/models/ticket_request.rb +57 -7
  86. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
  87. data/lib/merge_ticketing_client/models/user.rb +16 -4
  88. data/lib/merge_ticketing_client/version.rb +1 -1
  89. data/lib/merge_ticketing_client.rb +15 -0
  90. data/spec/api/collections_api_spec.rb +76 -0
  91. data/spec/api/projects_api_spec.rb +3 -2
  92. data/spec/api/selective_sync_api_spec.rb +72 -0
  93. data/spec/api/tickets_api_spec.rb +24 -4
  94. data/spec/api/users_api_spec.rb +1 -0
  95. data/spec/models/account_spec.rb +6 -0
  96. data/spec/models/attachment_request_spec.rb +12 -0
  97. data/spec/models/attachment_spec.rb +6 -0
  98. data/spec/models/collection_spec.rb +82 -0
  99. data/spec/models/collection_type_enum_spec.rb +28 -0
  100. data/spec/models/comment_request_spec.rb +12 -0
  101. data/spec/models/comment_spec.rb +6 -0
  102. data/spec/models/condition_schema_spec.rb +70 -0
  103. data/spec/models/condition_type_enum_spec.rb +28 -0
  104. data/spec/models/contact_spec.rb +6 -0
  105. data/spec/models/issue_spec.rb +6 -0
  106. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  107. data/spec/models/linked_account_condition_spec.rb +64 -0
  108. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  109. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  110. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  111. data/spec/models/operator_schema_spec.rb +40 -0
  112. data/spec/models/paginated_collection_list_spec.rb +46 -0
  113. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  114. data/spec/models/patched_ticket_request_spec.rb +24 -0
  115. data/spec/models/project_spec.rb +6 -0
  116. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  117. data/spec/models/sync_status_spec.rb +6 -0
  118. data/spec/models/tag_spec.rb +6 -0
  119. data/spec/models/team_spec.rb +6 -0
  120. data/spec/models/ticket_request_spec.rb +24 -0
  121. data/spec/models/ticket_spec.rb +18 -0
  122. data/spec/models/user_spec.rb +6 -0
  123. metadata +132 -72
@@ -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's description.
38
+ # The tickets 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
@@ -66,9 +75,11 @@ module MergeTicketingClient
66
75
  # The 3rd party url of the Ticket.
67
76
  attr_accessor :ticket_url
68
77
 
69
- # The priority or urgency of the Ticket. Possible values include: URGENT, HIGH, NORMAL, LOW - in cases where there is no clear mapping - the original value passed through.
78
+ # The priority or urgency of the Ticket.
70
79
  attr_accessor :priority
71
80
 
81
+ attr_accessor :field_mappings
82
+
72
83
  # Attribute mapping from ruby-style variable name to JSON key.
73
84
  def self.attribute_map
74
85
  {
@@ -76,10 +87,12 @@ module MergeTicketingClient
76
87
  :'remote_id' => :'remote_id',
77
88
  :'name' => :'name',
78
89
  :'assignees' => :'assignees',
90
+ :'creator' => :'creator',
79
91
  :'due_date' => :'due_date',
80
92
  :'status' => :'status',
81
93
  :'description' => :'description',
82
94
  :'project' => :'project',
95
+ :'collections' => :'collections',
83
96
  :'ticket_type' => :'ticket_type',
84
97
  :'account' => :'account',
85
98
  :'contact' => :'contact',
@@ -92,7 +105,8 @@ module MergeTicketingClient
92
105
  :'remote_data' => :'remote_data',
93
106
  :'remote_was_deleted' => :'remote_was_deleted',
94
107
  :'ticket_url' => :'ticket_url',
95
- :'priority' => :'priority'
108
+ :'priority' => :'priority',
109
+ :'field_mappings' => :'field_mappings'
96
110
  }
97
111
  end
98
112
 
@@ -108,10 +122,12 @@ module MergeTicketingClient
108
122
  :'remote_id' => :'String',
109
123
  :'name' => :'String',
110
124
  :'assignees' => :'Array<String>',
125
+ :'creator' => :'String',
111
126
  :'due_date' => :'Time',
112
127
  :'status' => :'TicketStatusEnum',
113
128
  :'description' => :'String',
114
129
  :'project' => :'String',
130
+ :'collections' => :'Array<String>',
115
131
  :'ticket_type' => :'String',
116
132
  :'account' => :'String',
117
133
  :'contact' => :'String',
@@ -124,7 +140,8 @@ module MergeTicketingClient
124
140
  :'remote_data' => :'Array<RemoteData>',
125
141
  :'remote_was_deleted' => :'Boolean',
126
142
  :'ticket_url' => :'String',
127
- :'priority' => :'PriorityEnum'
143
+ :'priority' => :'PriorityEnum',
144
+ :'field_mappings' => :'Hash<String, Object>'
128
145
  }
129
146
  end
130
147
 
@@ -133,6 +150,7 @@ module MergeTicketingClient
133
150
  Set.new([
134
151
  :'remote_id',
135
152
  :'name',
153
+ :'creator',
136
154
  :'due_date',
137
155
  :'status',
138
156
  :'description',
@@ -146,7 +164,8 @@ module MergeTicketingClient
146
164
  :'completed_at',
147
165
  :'remote_data',
148
166
  :'ticket_url',
149
- :'priority'
167
+ :'priority',
168
+ :'field_mappings'
150
169
  ])
151
170
  end
152
171
 
@@ -183,6 +202,10 @@ module MergeTicketingClient
183
202
  end
184
203
  end
185
204
 
205
+ if attributes.key?(:'creator')
206
+ self.creator = attributes[:'creator']
207
+ end
208
+
186
209
  if attributes.key?(:'due_date')
187
210
  self.due_date = attributes[:'due_date']
188
211
  end
@@ -199,6 +222,12 @@ module MergeTicketingClient
199
222
  self.project = attributes[:'project']
200
223
  end
201
224
 
225
+ if attributes.key?(:'collections')
226
+ if (value = attributes[:'collections']).is_a?(Array)
227
+ self.collections = value
228
+ end
229
+ end
230
+
202
231
  if attributes.key?(:'ticket_type')
203
232
  self.ticket_type = attributes[:'ticket_type']
204
233
  end
@@ -256,6 +285,12 @@ module MergeTicketingClient
256
285
  if attributes.key?(:'priority')
257
286
  self.priority = attributes[:'priority']
258
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
259
294
  end
260
295
 
261
296
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -295,10 +330,12 @@ module MergeTicketingClient
295
330
  remote_id == o.remote_id &&
296
331
  name == o.name &&
297
332
  assignees == o.assignees &&
333
+ creator == o.creator &&
298
334
  due_date == o.due_date &&
299
335
  status == o.status &&
300
336
  description == o.description &&
301
337
  project == o.project &&
338
+ collections == o.collections &&
302
339
  ticket_type == o.ticket_type &&
303
340
  account == o.account &&
304
341
  contact == o.contact &&
@@ -311,7 +348,8 @@ module MergeTicketingClient
311
348
  remote_data == o.remote_data &&
312
349
  remote_was_deleted == o.remote_was_deleted &&
313
350
  ticket_url == o.ticket_url &&
314
- priority == o.priority
351
+ priority == o.priority &&
352
+ field_mappings == o.field_mappings
315
353
  end
316
354
 
317
355
  # @see the `==` method
@@ -323,7 +361,7 @@ module MergeTicketingClient
323
361
  # Calculates hash code according to all attributes.
324
362
  # @return [Integer] Hash code
325
363
  def hash
326
- [id, remote_id, name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, completed_at, remote_data, remote_was_deleted, ticket_url, priority].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
327
365
  end
328
366
 
329
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's description.
36
+ # The tickets 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
@@ -60,19 +69,25 @@ module MergeTicketingClient
60
69
  # The 3rd party url of the Ticket.
61
70
  attr_accessor :ticket_url
62
71
 
63
- # The priority or urgency of the Ticket. Possible values include: URGENT, HIGH, NORMAL, LOW - in cases where there is no clear mapping - the original value passed through.
72
+ # The priority or urgency of the Ticket.
64
73
  attr_accessor :priority
65
74
 
75
+ attr_accessor :integration_params
76
+
77
+ attr_accessor :linked_account_params
78
+
66
79
  # Attribute mapping from ruby-style variable name to JSON key.
67
80
  def self.attribute_map
68
81
  {
69
82
  :'remote_id' => :'remote_id',
70
83
  :'name' => :'name',
71
84
  :'assignees' => :'assignees',
85
+ :'creator' => :'creator',
72
86
  :'due_date' => :'due_date',
73
87
  :'status' => :'status',
74
88
  :'description' => :'description',
75
89
  :'project' => :'project',
90
+ :'collections' => :'collections',
76
91
  :'ticket_type' => :'ticket_type',
77
92
  :'account' => :'account',
78
93
  :'contact' => :'contact',
@@ -83,7 +98,9 @@ module MergeTicketingClient
83
98
  :'remote_updated_at' => :'remote_updated_at',
84
99
  :'completed_at' => :'completed_at',
85
100
  :'ticket_url' => :'ticket_url',
86
- :'priority' => :'priority'
101
+ :'priority' => :'priority',
102
+ :'integration_params' => :'integration_params',
103
+ :'linked_account_params' => :'linked_account_params'
87
104
  }
88
105
  end
89
106
 
@@ -98,10 +115,12 @@ module MergeTicketingClient
98
115
  :'remote_id' => :'String',
99
116
  :'name' => :'String',
100
117
  :'assignees' => :'Array<String>',
118
+ :'creator' => :'String',
101
119
  :'due_date' => :'Time',
102
120
  :'status' => :'TicketStatusEnum',
103
121
  :'description' => :'String',
104
122
  :'project' => :'String',
123
+ :'collections' => :'Array<String>',
105
124
  :'ticket_type' => :'String',
106
125
  :'account' => :'String',
107
126
  :'contact' => :'String',
@@ -112,7 +131,9 @@ module MergeTicketingClient
112
131
  :'remote_updated_at' => :'Time',
113
132
  :'completed_at' => :'Time',
114
133
  :'ticket_url' => :'String',
115
- :'priority' => :'PriorityEnum'
134
+ :'priority' => :'PriorityEnum',
135
+ :'integration_params' => :'Hash<String, Object>',
136
+ :'linked_account_params' => :'Hash<String, Object>'
116
137
  }
117
138
  end
118
139
 
@@ -121,6 +142,7 @@ module MergeTicketingClient
121
142
  Set.new([
122
143
  :'remote_id',
123
144
  :'name',
145
+ :'creator',
124
146
  :'due_date',
125
147
  :'status',
126
148
  :'description',
@@ -133,7 +155,9 @@ module MergeTicketingClient
133
155
  :'remote_updated_at',
134
156
  :'completed_at',
135
157
  :'ticket_url',
136
- :'priority'
158
+ :'priority',
159
+ :'integration_params',
160
+ :'linked_account_params'
137
161
  ])
138
162
  end
139
163
 
@@ -166,6 +190,10 @@ module MergeTicketingClient
166
190
  end
167
191
  end
168
192
 
193
+ if attributes.key?(:'creator')
194
+ self.creator = attributes[:'creator']
195
+ end
196
+
169
197
  if attributes.key?(:'due_date')
170
198
  self.due_date = attributes[:'due_date']
171
199
  end
@@ -182,6 +210,12 @@ module MergeTicketingClient
182
210
  self.project = attributes[:'project']
183
211
  end
184
212
 
213
+ if attributes.key?(:'collections')
214
+ if (value = attributes[:'collections']).is_a?(Array)
215
+ self.collections = value
216
+ end
217
+ end
218
+
185
219
  if attributes.key?(:'ticket_type')
186
220
  self.ticket_type = attributes[:'ticket_type']
187
221
  end
@@ -229,6 +263,18 @@ module MergeTicketingClient
229
263
  if attributes.key?(:'priority')
230
264
  self.priority = attributes[:'priority']
231
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
232
278
  end
233
279
 
234
280
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -267,10 +313,12 @@ module MergeTicketingClient
267
313
  remote_id == o.remote_id &&
268
314
  name == o.name &&
269
315
  assignees == o.assignees &&
316
+ creator == o.creator &&
270
317
  due_date == o.due_date &&
271
318
  status == o.status &&
272
319
  description == o.description &&
273
320
  project == o.project &&
321
+ collections == o.collections &&
274
322
  ticket_type == o.ticket_type &&
275
323
  account == o.account &&
276
324
  contact == o.contact &&
@@ -281,7 +329,9 @@ module MergeTicketingClient
281
329
  remote_updated_at == o.remote_updated_at &&
282
330
  completed_at == o.completed_at &&
283
331
  ticket_url == o.ticket_url &&
284
- priority == o.priority
332
+ priority == o.priority &&
333
+ integration_params == o.integration_params &&
334
+ linked_account_params == o.linked_account_params
285
335
  end
286
336
 
287
337
  # @see the `==` method
@@ -293,7 +343,7 @@ module MergeTicketingClient
293
343
  # Calculates hash code according to all attributes.
294
344
  # @return [Integer] Hash code
295
345
  def hash
296
- [remote_id, name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, attachments, tags, remote_created_at, remote_updated_at, completed_at, ticket_url, priority].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
297
347
  end
298
348
 
299
349
  # Builds the object from hash
@@ -40,7 +40,7 @@ module MergeTicketingClient
40
40
  end
41
41
 
42
42
  def self.build_from_hash(value)
43
- IssueStatusEnum.new.build_from_hash(value)
43
+ TicketStatusEnum.new.build_from_hash(value)
44
44
  end
45
45
  end
46
46
 
@@ -40,6 +40,8 @@ module MergeTicketingClient
40
40
  # Indicates whether or not this object has been deleted by third party webhooks.
41
41
  attr_accessor :remote_was_deleted
42
42
 
43
+ attr_accessor :field_mappings
44
+
43
45
  # Attribute mapping from ruby-style variable name to JSON key.
44
46
  def self.attribute_map
45
47
  {
@@ -51,7 +53,8 @@ module MergeTicketingClient
51
53
  :'teams' => :'teams',
52
54
  :'avatar' => :'avatar',
53
55
  :'remote_data' => :'remote_data',
54
- :'remote_was_deleted' => :'remote_was_deleted'
56
+ :'remote_was_deleted' => :'remote_was_deleted',
57
+ :'field_mappings' => :'field_mappings'
55
58
  }
56
59
  end
57
60
 
@@ -71,7 +74,8 @@ module MergeTicketingClient
71
74
  :'teams' => :'Array<String>',
72
75
  :'avatar' => :'String',
73
76
  :'remote_data' => :'Array<RemoteData>',
74
- :'remote_was_deleted' => :'Boolean'
77
+ :'remote_was_deleted' => :'Boolean',
78
+ :'field_mappings' => :'Hash<String, Object>'
75
79
  }
76
80
  end
77
81
 
@@ -84,6 +88,7 @@ module MergeTicketingClient
84
88
  :'is_active',
85
89
  :'avatar',
86
90
  :'remote_data',
91
+ :'field_mappings'
87
92
  ])
88
93
  end
89
94
 
@@ -141,6 +146,12 @@ module MergeTicketingClient
141
146
  if attributes.key?(:'remote_was_deleted')
142
147
  self.remote_was_deleted = attributes[:'remote_was_deleted']
143
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
144
155
  end
145
156
 
146
157
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -169,7 +180,8 @@ module MergeTicketingClient
169
180
  teams == o.teams &&
170
181
  avatar == o.avatar &&
171
182
  remote_data == o.remote_data &&
172
- remote_was_deleted == o.remote_was_deleted
183
+ remote_was_deleted == o.remote_was_deleted &&
184
+ field_mappings == o.field_mappings
173
185
  end
174
186
 
175
187
  # @see the `==` method
@@ -181,7 +193,7 @@ module MergeTicketingClient
181
193
  # Calculates hash code according to all attributes.
182
194
  # @return [Integer] Hash code
183
195
  def hash
184
- [id, remote_id, name, email_address, is_active, teams, avatar, 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
185
197
  end
186
198
 
187
199
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeTicketingClient
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
@@ -29,10 +29,14 @@ require 'merge_ticketing_client/models/attachment_request'
29
29
  require 'merge_ticketing_client/models/available_actions'
30
30
  require 'merge_ticketing_client/models/categories_enum'
31
31
  require 'merge_ticketing_client/models/category_enum'
32
+ require 'merge_ticketing_client/models/collection'
33
+ require 'merge_ticketing_client/models/collection_type_enum'
32
34
  require 'merge_ticketing_client/models/comment'
33
35
  require 'merge_ticketing_client/models/comment_endpoint_request'
34
36
  require 'merge_ticketing_client/models/comment_request'
35
37
  require 'merge_ticketing_client/models/comment_response'
38
+ require 'merge_ticketing_client/models/condition_schema'
39
+ require 'merge_ticketing_client/models/condition_type_enum'
36
40
  require 'merge_ticketing_client/models/contact'
37
41
  require 'merge_ticketing_client/models/data_passthrough_request'
38
42
  require 'merge_ticketing_client/models/debug_mode_log'
@@ -44,15 +48,23 @@ require 'merge_ticketing_client/models/generate_remote_key_request'
44
48
  require 'merge_ticketing_client/models/issue'
45
49
  require 'merge_ticketing_client/models/issue_status_enum'
46
50
  require 'merge_ticketing_client/models/link_token'
51
+ require 'merge_ticketing_client/models/linked_account_condition'
52
+ require 'merge_ticketing_client/models/linked_account_condition_request'
53
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration'
54
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request'
55
+ require 'merge_ticketing_client/models/linked_account_selective_sync_configuration_request'
47
56
  require 'merge_ticketing_client/models/linked_account_status'
48
57
  require 'merge_ticketing_client/models/meta_response'
49
58
  require 'merge_ticketing_client/models/method_enum'
50
59
  require 'merge_ticketing_client/models/model_operation'
51
60
  require 'merge_ticketing_client/models/multipart_form_field_request'
61
+ require 'merge_ticketing_client/models/operator_schema'
52
62
  require 'merge_ticketing_client/models/paginated_account_details_and_actions_list'
53
63
  require 'merge_ticketing_client/models/paginated_account_list'
54
64
  require 'merge_ticketing_client/models/paginated_attachment_list'
65
+ require 'merge_ticketing_client/models/paginated_collection_list'
55
66
  require 'merge_ticketing_client/models/paginated_comment_list'
67
+ require 'merge_ticketing_client/models/paginated_condition_schema_list'
56
68
  require 'merge_ticketing_client/models/paginated_contact_list'
57
69
  require 'merge_ticketing_client/models/paginated_issue_list'
58
70
  require 'merge_ticketing_client/models/paginated_project_list'
@@ -71,6 +83,7 @@ require 'merge_ticketing_client/models/remote_key_for_regeneration_request'
71
83
  require 'merge_ticketing_client/models/remote_response'
72
84
  require 'merge_ticketing_client/models/request_format_enum'
73
85
  require 'merge_ticketing_client/models/response_type_enum'
86
+ require 'merge_ticketing_client/models/selective_sync_configurations_usage_enum'
74
87
  require 'merge_ticketing_client/models/sync_status'
75
88
  require 'merge_ticketing_client/models/sync_status_status_enum'
76
89
  require 'merge_ticketing_client/models/tag'
@@ -94,6 +107,7 @@ require 'merge_ticketing_client/api/account_token_api'
94
107
  require 'merge_ticketing_client/api/accounts_api'
95
108
  require 'merge_ticketing_client/api/attachments_api'
96
109
  require 'merge_ticketing_client/api/available_actions_api'
110
+ require 'merge_ticketing_client/api/collections_api'
97
111
  require 'merge_ticketing_client/api/comments_api'
98
112
  require 'merge_ticketing_client/api/contacts_api'
99
113
  require 'merge_ticketing_client/api/delete_account_api'
@@ -105,6 +119,7 @@ require 'merge_ticketing_client/api/linked_accounts_api'
105
119
  require 'merge_ticketing_client/api/passthrough_api'
106
120
  require 'merge_ticketing_client/api/projects_api'
107
121
  require 'merge_ticketing_client/api/regenerate_key_api'
122
+ require 'merge_ticketing_client/api/selective_sync_api'
108
123
  require 'merge_ticketing_client/api/sync_status_api'
109
124
  require 'merge_ticketing_client/api/tags_api'
110
125
  require 'merge_ticketing_client/api/teams_api'
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Merge Ticketing API
3
+
4
+ #The unified API for building rich integrations with multiple Ticketing platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeTicketingClient::CollectionsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CollectionsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeTicketingClient::CollectionsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CollectionsApi' do
30
+ it 'should create an instance of CollectionsApi' do
31
+ expect(@api_instance).to be_instance_of(MergeTicketingClient::CollectionsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for collections_list
36
+ # Returns a list of &#x60;Collection&#x60; objects.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :collection_type If provided, will only return collections of the given type.
40
+ # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
41
+ # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
42
+ # @option opts [String] :cursor The pagination cursor value.
43
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
44
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
45
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
46
+ # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
47
+ # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
48
+ # @option opts [Integer] :page_size Number of results to return per page.
49
+ # @option opts [String] :parent_collection_id If provided, will only return collections whose parent collection matches the given id.
50
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
51
+ # @option opts [String] :remote_id The API provider&#39;s ID for the given object.
52
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
53
+ # @return [PaginatedCollectionList]
54
+ describe 'collections_list test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for collections_retrieve
61
+ # Returns a &#x60;Collection&#x60; object with the given &#x60;id&#x60;.
62
+ # @param x_account_token Token identifying the end user.
63
+ # @param id
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
66
+ # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
67
+ # @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
68
+ # @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
69
+ # @return [Collection]
70
+ describe 'collections_retrieve test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -66,12 +66,13 @@ describe 'ProjectsApi' do
66
66
  end
67
67
 
68
68
  # unit tests for projects_users_list
69
- # Returns a &#x60;User&#x60; object with the given &#x60;id&#x60;.
69
+ # Returns a list of &#x60;User&#x60; objects.
70
70
  # @param x_account_token Token identifying the end user.
71
- # @param id
71
+ # @param parent_id
72
72
  # @param [Hash] opts the optional parameters
73
73
  # @option opts [String] :cursor The pagination cursor value.
74
74
  # @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
75
+ # @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
75
76
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
76
77
  # @option opts [Integer] :page_size Number of results to return per page.
77
78
  # @return [PaginatedUserList]
@@ -0,0 +1,72 @@
1
+ =begin
2
+ #Merge Ticketing API
3
+
4
+ #The unified API for building rich integrations with multiple Ticketing platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MergeTicketingClient::SelectiveSyncApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SelectiveSyncApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MergeTicketingClient::SelectiveSyncApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SelectiveSyncApi' do
30
+ it 'should create an instance of SelectiveSyncApi' do
31
+ expect(@api_instance).to be_instance_of(MergeTicketingClient::SelectiveSyncApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for selective_sync_configurations_list
36
+ # Get a linked account&#39;s selective syncs.
37
+ # @param x_account_token Token identifying the end user.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
40
+ describe 'selective_sync_configurations_list test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for selective_sync_configurations_update
47
+ # Replace a linked account&#39;s selective syncs.
48
+ # @param x_account_token Token identifying the end user.
49
+ # @param linked_account_selective_sync_configuration_list_request
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [Array<LinkedAccountSelectiveSyncConfiguration>]
52
+ describe 'selective_sync_configurations_update test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for selective_sync_meta_list
59
+ # Get metadata for the conditions available to a linked account.
60
+ # @param x_account_token Token identifying the end user.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :common_model
63
+ # @option opts [String] :cursor The pagination cursor value.
64
+ # @option opts [Integer] :page_size Number of results to return per page.
65
+ # @return [PaginatedConditionSchemaList]
66
+ describe 'selective_sync_meta_list test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ end