merge_ticketing_client 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -5
  3. data/docs/PatchedTicketEndpointRequest.md +18 -0
  4. data/docs/PatchedTicketRequest.md +48 -0
  5. data/docs/PriorityEnum.md +15 -0
  6. data/docs/RemoteResponse.md +3 -1
  7. data/docs/ResponseTypeEnum.md +15 -0
  8. data/docs/SyncStatus.md +2 -2
  9. data/docs/Ticket.md +7 -1
  10. data/docs/TicketRequest.md +7 -1
  11. data/docs/TicketsApi.md +154 -0
  12. data/docs/User.md +2 -0
  13. data/lib/merge_ticketing_client/api/tickets_api.rb +148 -0
  14. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -1
  15. data/lib/merge_ticketing_client/models/issue.rb +1 -1
  16. data/lib/merge_ticketing_client/models/meta_response.rb +1 -1
  17. data/lib/merge_ticketing_client/models/patched_ticket_endpoint_request.rb +223 -0
  18. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +397 -0
  19. data/lib/merge_ticketing_client/models/priority_enum.rb +47 -0
  20. data/lib/merge_ticketing_client/models/remote_response.rb +14 -11
  21. data/lib/merge_ticketing_client/models/response_type_enum.rb +45 -0
  22. data/lib/merge_ticketing_client/models/sync_status.rb +0 -10
  23. data/lib/merge_ticketing_client/models/ticket.rb +52 -4
  24. data/lib/merge_ticketing_client/models/ticket_request.rb +53 -5
  25. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +3 -1
  26. data/lib/merge_ticketing_client/models/user.rb +12 -1
  27. data/lib/merge_ticketing_client/version.rb +1 -1
  28. data/lib/merge_ticketing_client.rb +4 -0
  29. data/spec/api/tickets_api_spec.rb +26 -0
  30. data/spec/models/patched_ticket_endpoint_request_spec.rb +34 -0
  31. data/spec/models/patched_ticket_request_spec.rb +124 -0
  32. data/spec/models/priority_enum_spec.rb +28 -0
  33. data/spec/models/remote_response_spec.rb +6 -0
  34. data/spec/models/response_type_enum_spec.rb +28 -0
  35. data/spec/models/ticket_request_spec.rb +18 -0
  36. data/spec/models/ticket_spec.rb +18 -0
  37. data/spec/models/user_spec.rb +6 -0
  38. metadata +82 -66
@@ -26,6 +26,8 @@ module MergeTicketingClient
26
26
 
27
27
  attr_accessor :response_headers
28
28
 
29
+ attr_accessor :response_type
30
+
29
31
  attr_accessor :headers
30
32
 
31
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,6 +38,7 @@ module MergeTicketingClient
36
38
  :'status' => :'status',
37
39
  :'response' => :'response',
38
40
  :'response_headers' => :'response_headers',
41
+ :'response_type' => :'response_type',
39
42
  :'headers' => :'headers'
40
43
  }
41
44
  end
@@ -51,15 +54,17 @@ module MergeTicketingClient
51
54
  :'method' => :'String',
52
55
  :'path' => :'String',
53
56
  :'status' => :'Integer',
54
- :'response' => :'Hash<String, Object>',
57
+ :'response' => :'Object',
55
58
  :'response_headers' => :'Hash<String, Object>',
56
- :'headers' => :'Hash<String, AnyType>'
59
+ :'response_type' => :'ResponseTypeEnum',
60
+ :'headers' => :'Hash<String, Object>'
57
61
  }
58
62
  end
59
63
 
60
64
  # List of attributes with nullable: true
61
65
  def self.openapi_nullable
62
66
  Set.new([
67
+ :'response',
63
68
  ])
64
69
  end
65
70
 
@@ -91,9 +96,7 @@ module MergeTicketingClient
91
96
  end
92
97
 
93
98
  if attributes.key?(:'response')
94
- if (value = attributes[:'response']).is_a?(Hash)
95
- self.response = value
96
- end
99
+ self.response = attributes[:'response']
97
100
  end
98
101
 
99
102
  if attributes.key?(:'response_headers')
@@ -102,6 +105,10 @@ module MergeTicketingClient
102
105
  end
103
106
  end
104
107
 
108
+ if attributes.key?(:'response_type')
109
+ self.response_type = attributes[:'response_type']
110
+ end
111
+
105
112
  if attributes.key?(:'headers')
106
113
  if (value = attributes[:'headers']).is_a?(Hash)
107
114
  self.headers = value
@@ -125,10 +132,6 @@ module MergeTicketingClient
125
132
  invalid_properties.push('invalid value for "status", status cannot be nil.')
126
133
  end
127
134
 
128
- if @response.nil?
129
- invalid_properties.push('invalid value for "response", response cannot be nil.')
130
- end
131
-
132
135
  invalid_properties
133
136
  end
134
137
 
@@ -138,7 +141,6 @@ module MergeTicketingClient
138
141
  return false if @method.nil?
139
142
  return false if @path.nil?
140
143
  return false if @status.nil?
141
- return false if @response.nil?
142
144
  true
143
145
  end
144
146
 
@@ -152,6 +154,7 @@ module MergeTicketingClient
152
154
  status == o.status &&
153
155
  response == o.response &&
154
156
  response_headers == o.response_headers &&
157
+ response_type == o.response_type &&
155
158
  headers == o.headers
156
159
  end
157
160
 
@@ -164,7 +167,7 @@ module MergeTicketingClient
164
167
  # Calculates hash code according to all attributes.
165
168
  # @return [Integer] Hash code
166
169
  def hash
167
- [method, path, status, response, response_headers, headers].hash
170
+ [method, path, status, response, response_headers, response_type, headers].hash
168
171
  end
169
172
 
170
173
  # Builds the object from hash
@@ -0,0 +1,45 @@
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 'date'
14
+ require 'time'
15
+
16
+ module MergeTicketingClient
17
+ class ResponseTypeEnum
18
+ JSON = "JSON".freeze
19
+ BASE64_GZIP = "BASE64_GZIP".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def build_from_hash(value)
30
+ @raw_value = value
31
+ if ["JSON", "BASE64_GZIP", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
42
+ end
43
+ end
44
+
45
+ end
@@ -115,14 +115,6 @@ module MergeTicketingClient
115
115
  invalid_properties.push('invalid value for "model_id", model_id cannot be nil.')
116
116
  end
117
117
 
118
- if @last_sync_start.nil?
119
- invalid_properties.push('invalid value for "last_sync_start", last_sync_start cannot be nil.')
120
- end
121
-
122
- if @next_sync_start.nil?
123
- invalid_properties.push('invalid value for "next_sync_start", next_sync_start cannot be nil.')
124
- end
125
-
126
118
  if @status.nil?
127
119
  invalid_properties.push('invalid value for "status", status cannot be nil.')
128
120
  end
@@ -139,8 +131,6 @@ module MergeTicketingClient
139
131
  def valid?
140
132
  return false if @model_name.nil?
141
133
  return false if @model_id.nil?
142
- return false if @last_sync_start.nil?
143
- return false if @next_sync_start.nil?
144
134
  return false if @status.nil?
145
135
  return false if @is_initial_sync.nil?
146
136
  true
@@ -56,10 +56,19 @@ module MergeTicketingClient
56
56
  # When the third party's ticket was updated.
57
57
  attr_accessor :remote_updated_at
58
58
 
59
+ # When the ticket was completed.
60
+ attr_accessor :completed_at
61
+
59
62
  attr_accessor :remote_data
60
63
 
61
64
  attr_accessor :remote_was_deleted
62
65
 
66
+ # The 3rd party url of the Ticket.
67
+ attr_accessor :ticket_url
68
+
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.
70
+ attr_accessor :priority
71
+
63
72
  # Attribute mapping from ruby-style variable name to JSON key.
64
73
  def self.attribute_map
65
74
  {
@@ -79,8 +88,11 @@ module MergeTicketingClient
79
88
  :'tags' => :'tags',
80
89
  :'remote_created_at' => :'remote_created_at',
81
90
  :'remote_updated_at' => :'remote_updated_at',
91
+ :'completed_at' => :'completed_at',
82
92
  :'remote_data' => :'remote_data',
83
- :'remote_was_deleted' => :'remote_was_deleted'
93
+ :'remote_was_deleted' => :'remote_was_deleted',
94
+ :'ticket_url' => :'ticket_url',
95
+ :'priority' => :'priority'
84
96
  }
85
97
  end
86
98
 
@@ -108,8 +120,11 @@ module MergeTicketingClient
108
120
  :'tags' => :'Array<String>',
109
121
  :'remote_created_at' => :'Time',
110
122
  :'remote_updated_at' => :'Time',
123
+ :'completed_at' => :'Time',
111
124
  :'remote_data' => :'Array<RemoteData>',
112
- :'remote_was_deleted' => :'Boolean'
125
+ :'remote_was_deleted' => :'Boolean',
126
+ :'ticket_url' => :'String',
127
+ :'priority' => :'PriorityEnum'
113
128
  }
114
129
  end
115
130
 
@@ -128,7 +143,10 @@ module MergeTicketingClient
128
143
  :'parent_ticket',
129
144
  :'remote_created_at',
130
145
  :'remote_updated_at',
146
+ :'completed_at',
131
147
  :'remote_data',
148
+ :'ticket_url',
149
+ :'priority'
132
150
  ])
133
151
  end
134
152
 
@@ -217,6 +235,10 @@ module MergeTicketingClient
217
235
  self.remote_updated_at = attributes[:'remote_updated_at']
218
236
  end
219
237
 
238
+ if attributes.key?(:'completed_at')
239
+ self.completed_at = attributes[:'completed_at']
240
+ end
241
+
220
242
  if attributes.key?(:'remote_data')
221
243
  if (value = attributes[:'remote_data']).is_a?(Array)
222
244
  self.remote_data = value
@@ -226,21 +248,44 @@ module MergeTicketingClient
226
248
  if attributes.key?(:'remote_was_deleted')
227
249
  self.remote_was_deleted = attributes[:'remote_was_deleted']
228
250
  end
251
+
252
+ if attributes.key?(:'ticket_url')
253
+ self.ticket_url = attributes[:'ticket_url']
254
+ end
255
+
256
+ if attributes.key?(:'priority')
257
+ self.priority = attributes[:'priority']
258
+ end
229
259
  end
230
260
 
231
261
  # Show invalid properties with the reasons. Usually used together with valid?
232
262
  # @return Array for valid properties with the reasons
233
263
  def list_invalid_properties
234
264
  invalid_properties = Array.new
265
+ if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
266
+ invalid_properties.push('invalid value for "ticket_url", the character length must be smaller than or equal to 2000.')
267
+ end
268
+
235
269
  invalid_properties
236
270
  end
237
271
 
238
272
  # Check to see if the all the properties in the model are valid
239
273
  # @return true if the model is valid
240
274
  def valid?
275
+ return false if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
241
276
  true
242
277
  end
243
278
 
279
+ # Custom attribute writer method with validation
280
+ # @param [Object] ticket_url Value to be assigned
281
+ def ticket_url=(ticket_url)
282
+ if !ticket_url.nil? && ticket_url.to_s.length > 2000
283
+ fail ArgumentError, 'invalid value for "ticket_url", the character length must be smaller than or equal to 2000.'
284
+ end
285
+
286
+ @ticket_url = ticket_url
287
+ end
288
+
244
289
  # Checks equality by comparing each attribute.
245
290
  # @param [Object] Object to be compared
246
291
  def ==(o)
@@ -262,8 +307,11 @@ module MergeTicketingClient
262
307
  tags == o.tags &&
263
308
  remote_created_at == o.remote_created_at &&
264
309
  remote_updated_at == o.remote_updated_at &&
310
+ completed_at == o.completed_at &&
265
311
  remote_data == o.remote_data &&
266
- remote_was_deleted == o.remote_was_deleted
312
+ remote_was_deleted == o.remote_was_deleted &&
313
+ ticket_url == o.ticket_url &&
314
+ priority == o.priority
267
315
  end
268
316
 
269
317
  # @see the `==` method
@@ -275,7 +323,7 @@ module MergeTicketingClient
275
323
  # Calculates hash code according to all attributes.
276
324
  # @return [Integer] Hash code
277
325
  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
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
279
327
  end
280
328
 
281
329
  # Builds the object from hash
@@ -54,6 +54,15 @@ module MergeTicketingClient
54
54
  # When the third party's ticket was updated.
55
55
  attr_accessor :remote_updated_at
56
56
 
57
+ # When the ticket was completed.
58
+ attr_accessor :completed_at
59
+
60
+ # The 3rd party url of the Ticket.
61
+ attr_accessor :ticket_url
62
+
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.
64
+ attr_accessor :priority
65
+
57
66
  # Attribute mapping from ruby-style variable name to JSON key.
58
67
  def self.attribute_map
59
68
  {
@@ -71,7 +80,10 @@ module MergeTicketingClient
71
80
  :'attachments' => :'attachments',
72
81
  :'tags' => :'tags',
73
82
  :'remote_created_at' => :'remote_created_at',
74
- :'remote_updated_at' => :'remote_updated_at'
83
+ :'remote_updated_at' => :'remote_updated_at',
84
+ :'completed_at' => :'completed_at',
85
+ :'ticket_url' => :'ticket_url',
86
+ :'priority' => :'priority'
75
87
  }
76
88
  end
77
89
 
@@ -97,7 +109,10 @@ module MergeTicketingClient
97
109
  :'attachments' => :'Array<String>',
98
110
  :'tags' => :'Array<String>',
99
111
  :'remote_created_at' => :'Time',
100
- :'remote_updated_at' => :'Time'
112
+ :'remote_updated_at' => :'Time',
113
+ :'completed_at' => :'Time',
114
+ :'ticket_url' => :'String',
115
+ :'priority' => :'PriorityEnum'
101
116
  }
102
117
  end
103
118
 
@@ -115,7 +130,10 @@ module MergeTicketingClient
115
130
  :'contact',
116
131
  :'parent_ticket',
117
132
  :'remote_created_at',
118
- :'remote_updated_at'
133
+ :'remote_updated_at',
134
+ :'completed_at',
135
+ :'ticket_url',
136
+ :'priority'
119
137
  ])
120
138
  end
121
139
 
@@ -199,21 +217,48 @@ module MergeTicketingClient
199
217
  if attributes.key?(:'remote_updated_at')
200
218
  self.remote_updated_at = attributes[:'remote_updated_at']
201
219
  end
220
+
221
+ if attributes.key?(:'completed_at')
222
+ self.completed_at = attributes[:'completed_at']
223
+ end
224
+
225
+ if attributes.key?(:'ticket_url')
226
+ self.ticket_url = attributes[:'ticket_url']
227
+ end
228
+
229
+ if attributes.key?(:'priority')
230
+ self.priority = attributes[:'priority']
231
+ end
202
232
  end
203
233
 
204
234
  # Show invalid properties with the reasons. Usually used together with valid?
205
235
  # @return Array for valid properties with the reasons
206
236
  def list_invalid_properties
207
237
  invalid_properties = Array.new
238
+ if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
239
+ invalid_properties.push('invalid value for "ticket_url", the character length must be smaller than or equal to 2000.')
240
+ end
241
+
208
242
  invalid_properties
209
243
  end
210
244
 
211
245
  # Check to see if the all the properties in the model are valid
212
246
  # @return true if the model is valid
213
247
  def valid?
248
+ return false if !@ticket_url.nil? && @ticket_url.to_s.length > 2000
214
249
  true
215
250
  end
216
251
 
252
+ # Custom attribute writer method with validation
253
+ # @param [Object] ticket_url Value to be assigned
254
+ def ticket_url=(ticket_url)
255
+ if !ticket_url.nil? && ticket_url.to_s.length > 2000
256
+ fail ArgumentError, 'invalid value for "ticket_url", the character length must be smaller than or equal to 2000.'
257
+ end
258
+
259
+ @ticket_url = ticket_url
260
+ end
261
+
217
262
  # Checks equality by comparing each attribute.
218
263
  # @param [Object] Object to be compared
219
264
  def ==(o)
@@ -233,7 +278,10 @@ module MergeTicketingClient
233
278
  attachments == o.attachments &&
234
279
  tags == o.tags &&
235
280
  remote_created_at == o.remote_created_at &&
236
- remote_updated_at == o.remote_updated_at
281
+ remote_updated_at == o.remote_updated_at &&
282
+ completed_at == o.completed_at &&
283
+ ticket_url == o.ticket_url &&
284
+ priority == o.priority
237
285
  end
238
286
 
239
287
  # @see the `==` method
@@ -245,7 +293,7 @@ module MergeTicketingClient
245
293
  # Calculates hash code according to all attributes.
246
294
  # @return [Integer] Hash code
247
295
  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
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
249
297
  end
250
298
 
251
299
  # 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
@@ -32,6 +32,9 @@ 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.
@@ -46,6 +49,7 @@ module MergeTicketingClient
46
49
  :'email_address' => :'email_address',
47
50
  :'is_active' => :'is_active',
48
51
  :'teams' => :'teams',
52
+ :'avatar' => :'avatar',
49
53
  :'remote_data' => :'remote_data',
50
54
  :'remote_was_deleted' => :'remote_was_deleted'
51
55
  }
@@ -65,6 +69,7 @@ module MergeTicketingClient
65
69
  :'email_address' => :'String',
66
70
  :'is_active' => :'Boolean',
67
71
  :'teams' => :'Array<String>',
72
+ :'avatar' => :'String',
68
73
  :'remote_data' => :'Array<RemoteData>',
69
74
  :'remote_was_deleted' => :'Boolean'
70
75
  }
@@ -77,6 +82,7 @@ module MergeTicketingClient
77
82
  :'name',
78
83
  :'email_address',
79
84
  :'is_active',
85
+ :'avatar',
80
86
  :'remote_data',
81
87
  ])
82
88
  end
@@ -122,6 +128,10 @@ module MergeTicketingClient
122
128
  end
123
129
  end
124
130
 
131
+ if attributes.key?(:'avatar')
132
+ self.avatar = attributes[:'avatar']
133
+ end
134
+
125
135
  if attributes.key?(:'remote_data')
126
136
  if (value = attributes[:'remote_data']).is_a?(Array)
127
137
  self.remote_data = value
@@ -157,6 +167,7 @@ module MergeTicketingClient
157
167
  email_address == o.email_address &&
158
168
  is_active == o.is_active &&
159
169
  teams == o.teams &&
170
+ avatar == o.avatar &&
160
171
  remote_data == o.remote_data &&
161
172
  remote_was_deleted == o.remote_was_deleted
162
173
  end
@@ -170,7 +181,7 @@ module MergeTicketingClient
170
181
  # Calculates hash code according to all attributes.
171
182
  # @return [Integer] Hash code
172
183
  def hash
173
- [id, remote_id, name, email_address, is_active, teams, remote_data, remote_was_deleted].hash
184
+ [id, remote_id, name, email_address, is_active, teams, avatar, remote_data, remote_was_deleted].hash
174
185
  end
175
186
 
176
187
  # 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.0'
14
+ VERSION = '1.0.1'
15
15
  end
@@ -61,12 +61,16 @@ require 'merge_ticketing_client/models/paginated_tag_list'
61
61
  require 'merge_ticketing_client/models/paginated_team_list'
62
62
  require 'merge_ticketing_client/models/paginated_ticket_list'
63
63
  require 'merge_ticketing_client/models/paginated_user_list'
64
+ require 'merge_ticketing_client/models/patched_ticket_endpoint_request'
65
+ require 'merge_ticketing_client/models/patched_ticket_request'
66
+ require 'merge_ticketing_client/models/priority_enum'
64
67
  require 'merge_ticketing_client/models/project'
65
68
  require 'merge_ticketing_client/models/remote_data'
66
69
  require 'merge_ticketing_client/models/remote_key'
67
70
  require 'merge_ticketing_client/models/remote_key_for_regeneration_request'
68
71
  require 'merge_ticketing_client/models/remote_response'
69
72
  require 'merge_ticketing_client/models/request_format_enum'
73
+ require 'merge_ticketing_client/models/response_type_enum'
70
74
  require 'merge_ticketing_client/models/sync_status'
71
75
  require 'merge_ticketing_client/models/sync_status_status_enum'
72
76
  require 'merge_ticketing_client/models/tag'
@@ -86,6 +86,18 @@ describe 'TicketsApi' do
86
86
  end
87
87
  end
88
88
 
89
+ # unit tests for tickets_meta_patch_retrieve
90
+ # Returns metadata for &#x60;Ticket&#x60; PATCHs.
91
+ # @param x_account_token Token identifying the end user.
92
+ # @param id
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [MetaResponse]
95
+ describe 'tickets_meta_patch_retrieve test' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
89
101
  # unit tests for tickets_meta_post_retrieve
90
102
  # Returns metadata for &#x60;Ticket&#x60; POSTs.
91
103
  # @param x_account_token Token identifying the end user.
@@ -97,6 +109,20 @@ describe 'TicketsApi' do
97
109
  end
98
110
  end
99
111
 
112
+ # unit tests for tickets_partial_update
113
+ # @param x_account_token Token identifying the end user.
114
+ # @param id
115
+ # @param patched_ticket_endpoint_request
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
118
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
119
+ # @return [TicketResponse]
120
+ describe 'tickets_partial_update test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+
100
126
  # unit tests for tickets_retrieve
101
127
  # Returns a &#x60;Ticket&#x60; object with the given &#x60;id&#x60;.
102
128
  # @param x_account_token Token identifying the end user.
@@ -0,0 +1,34 @@
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
+ require 'date'
16
+
17
+ # Unit tests for MergeTicketingClient::PatchedTicketEndpointRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MergeTicketingClient::PatchedTicketEndpointRequest do
21
+ let(:instance) { MergeTicketingClient::PatchedTicketEndpointRequest.new }
22
+
23
+ describe 'test an instance of PatchedTicketEndpointRequest' do
24
+ it 'should create an instance of PatchedTicketEndpointRequest' do
25
+ expect(instance).to be_instance_of(MergeTicketingClient::PatchedTicketEndpointRequest)
26
+ end
27
+ end
28
+ describe 'test attribute "model"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ end