merge_ticketing_client 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -6
  3. data/docs/Account.md +11 -10
  4. data/docs/AccountIntegration.md +1 -1
  5. data/docs/Attachment.md +15 -14
  6. data/docs/AttachmentRequest.md +11 -12
  7. data/docs/Collection.md +33 -0
  8. data/docs/CollectionTypeEnum.md +15 -0
  9. data/docs/CollectionsApi.md +193 -0
  10. data/docs/Comment.md +16 -15
  11. data/docs/CommentRequest.md +12 -13
  12. data/docs/ConditionSchema.md +30 -0
  13. data/docs/ConditionTypeEnum.md +15 -0
  14. data/docs/Contact.md +14 -13
  15. data/docs/DataPassthroughRequest.md +10 -11
  16. data/docs/EndUserDetailsRequest.md +2 -2
  17. data/docs/FieldFormatEnum.md +15 -0
  18. data/docs/FieldTypeEnum.md +15 -0
  19. data/docs/Issue.md +18 -17
  20. data/docs/LinkToken.md +1 -1
  21. data/docs/LinkedAccountCondition.md +27 -0
  22. data/docs/LinkedAccountConditionRequest.md +21 -0
  23. data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
  24. data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
  25. data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
  26. data/docs/MetaResponse.md +6 -7
  27. data/docs/OperatorSchema.md +20 -0
  28. data/docs/PaginatedCollectionList.md +22 -0
  29. data/docs/PaginatedConditionSchemaList.md +22 -0
  30. data/docs/PaginatedRemoteFieldClassList.md +22 -0
  31. data/docs/PatchedTicketRequest.md +25 -22
  32. data/docs/Project.md +11 -10
  33. data/docs/ProjectsApi.md +10 -8
  34. data/docs/RemoteData.md +4 -5
  35. data/docs/RemoteField.md +19 -0
  36. data/docs/RemoteFieldClass.md +38 -0
  37. data/docs/RemoteFieldClassItemSchema.md +22 -0
  38. data/docs/RemoteResponse.md +9 -10
  39. data/docs/SelectiveSyncApi.md +233 -0
  40. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  41. data/docs/SyncStatus.md +5 -3
  42. data/docs/Tag.md +9 -8
  43. data/docs/Team.md +11 -10
  44. data/docs/Ticket.md +32 -25
  45. data/docs/TicketRequest.md +26 -25
  46. data/docs/TicketsApi.md +141 -13
  47. data/docs/User.md +14 -13
  48. data/docs/UsersApi.md +2 -0
  49. data/lib/merge_ticketing_client/api/collections_api.rb +234 -0
  50. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +1 -1
  51. data/lib/merge_ticketing_client/api/projects_api.rb +14 -11
  52. data/lib/merge_ticketing_client/api/selective_sync_api.rb +225 -0
  53. data/lib/merge_ticketing_client/api/tickets_api.rb +177 -19
  54. data/lib/merge_ticketing_client/api/users_api.rb +3 -0
  55. data/lib/merge_ticketing_client/models/account.rb +16 -4
  56. data/lib/merge_ticketing_client/models/account_details_and_actions_status_enum.rb +1 -1
  57. data/lib/merge_ticketing_client/models/account_integration.rb +1 -1
  58. data/lib/merge_ticketing_client/models/attachment.rb +18 -4
  59. data/lib/merge_ticketing_client/models/attachment_request.rb +24 -20
  60. data/lib/merge_ticketing_client/models/categories_enum.rb +3 -2
  61. data/lib/merge_ticketing_client/models/category_enum.rb +3 -2
  62. data/lib/merge_ticketing_client/models/collection.rb +308 -0
  63. data/lib/merge_ticketing_client/models/collection_type_enum.rb +45 -0
  64. data/lib/merge_ticketing_client/models/comment.rb +19 -4
  65. data/lib/merge_ticketing_client/models/comment_request.rb +25 -20
  66. data/lib/merge_ticketing_client/models/condition_schema.rb +297 -0
  67. data/lib/merge_ticketing_client/models/condition_type_enum.rb +50 -0
  68. data/lib/merge_ticketing_client/models/contact.rb +16 -4
  69. data/lib/merge_ticketing_client/models/data_passthrough_request.rb +1 -0
  70. data/lib/merge_ticketing_client/models/encoding_enum.rb +1 -1
  71. data/lib/merge_ticketing_client/models/end_user_details_request.rb +2 -2
  72. data/lib/merge_ticketing_client/models/field_format_enum.rb +49 -0
  73. data/lib/merge_ticketing_client/models/field_type_enum.rb +49 -0
  74. data/lib/merge_ticketing_client/models/issue.rb +15 -4
  75. data/lib/merge_ticketing_client/models/link_token.rb +0 -5
  76. data/lib/merge_ticketing_client/models/linked_account_condition.rb +282 -0
  77. data/lib/merge_ticketing_client/models/linked_account_condition_request.rb +269 -0
  78. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration.rb +221 -0
  79. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
  80. data/lib/merge_ticketing_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
  81. data/lib/merge_ticketing_client/models/method_enum.rb +1 -1
  82. data/lib/merge_ticketing_client/models/operator_schema.rb +229 -0
  83. data/lib/merge_ticketing_client/models/paginated_collection_list.rb +240 -0
  84. data/lib/merge_ticketing_client/models/paginated_condition_schema_list.rb +240 -0
  85. data/lib/merge_ticketing_client/models/paginated_remote_field_class_list.rb +240 -0
  86. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +57 -29
  87. data/lib/merge_ticketing_client/models/priority_enum.rb +1 -1
  88. data/lib/merge_ticketing_client/models/project.rb +16 -4
  89. data/lib/merge_ticketing_client/models/remote_data.rb +9 -7
  90. data/lib/merge_ticketing_client/models/remote_field.rb +231 -0
  91. data/lib/merge_ticketing_client/models/remote_field_class.rb +318 -0
  92. data/lib/merge_ticketing_client/models/remote_field_class_item_schema.rb +241 -0
  93. data/lib/merge_ticketing_client/models/request_format_enum.rb +1 -1
  94. data/lib/merge_ticketing_client/models/response_type_enum.rb +1 -1
  95. data/lib/merge_ticketing_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  96. data/lib/merge_ticketing_client/models/sync_status.rb +13 -4
  97. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  98. data/lib/merge_ticketing_client/models/tag.rb +16 -4
  99. data/lib/merge_ticketing_client/models/team.rb +16 -4
  100. data/lib/merge_ticketing_client/models/ticket.rb +56 -7
  101. data/lib/merge_ticketing_client/models/ticket_request.rb +57 -40
  102. data/lib/merge_ticketing_client/models/ticket_status_enum.rb +1 -1
  103. data/lib/merge_ticketing_client/models/user.rb +16 -4
  104. data/lib/merge_ticketing_client/version.rb +1 -1
  105. data/lib/merge_ticketing_client.rb +21 -0
  106. data/spec/api/collections_api_spec.rb +76 -0
  107. data/spec/api/projects_api_spec.rb +3 -2
  108. data/spec/api/selective_sync_api_spec.rb +72 -0
  109. data/spec/api/tickets_api_spec.rb +24 -4
  110. data/spec/api/users_api_spec.rb +1 -0
  111. data/spec/models/account_spec.rb +6 -0
  112. data/spec/models/attachment_request_spec.rb +12 -0
  113. data/spec/models/attachment_spec.rb +6 -0
  114. data/spec/models/collection_spec.rb +82 -0
  115. data/spec/models/collection_type_enum_spec.rb +28 -0
  116. data/spec/models/comment_request_spec.rb +12 -0
  117. data/spec/models/comment_spec.rb +6 -0
  118. data/spec/models/condition_schema_spec.rb +70 -0
  119. data/spec/models/condition_type_enum_spec.rb +28 -0
  120. data/spec/models/contact_spec.rb +6 -0
  121. data/spec/models/issue_spec.rb +6 -0
  122. data/spec/models/linked_account_condition_request_spec.rb +46 -0
  123. data/spec/models/linked_account_condition_spec.rb +64 -0
  124. data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
  125. data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
  126. data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
  127. data/spec/models/operator_schema_spec.rb +40 -0
  128. data/spec/models/paginated_collection_list_spec.rb +46 -0
  129. data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
  130. data/spec/models/patched_ticket_request_spec.rb +24 -0
  131. data/spec/models/project_spec.rb +6 -0
  132. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  133. data/spec/models/sync_status_spec.rb +6 -0
  134. data/spec/models/tag_spec.rb +6 -0
  135. data/spec/models/team_spec.rb +6 -0
  136. data/spec/models/ticket_request_spec.rb +24 -0
  137. data/spec/models/ticket_spec.rb +18 -0
  138. data/spec/models/user_spec.rb +6 -0
  139. metadata +144 -72
@@ -0,0 +1,240 @@
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 PaginatedRemoteFieldClassList
18
+ attr_accessor :_next
19
+
20
+ attr_accessor :previous
21
+
22
+ attr_accessor :results
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'_next' => :'next',
28
+ :'previous' => :'previous',
29
+ :'results' => :'results'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'_next' => :'String',
42
+ :'previous' => :'String',
43
+ :'results' => :'Array<RemoteFieldClass>'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ :'_next',
51
+ :'previous',
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeTicketingClient::PaginatedRemoteFieldClassList` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeTicketingClient::PaginatedRemoteFieldClassList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'_next')
71
+ self._next = attributes[:'_next']
72
+ end
73
+
74
+ if attributes.key?(:'previous')
75
+ self.previous = attributes[:'previous']
76
+ end
77
+
78
+ if attributes.key?(:'results')
79
+ if (value = attributes[:'results']).is_a?(Array)
80
+ self.results = value
81
+ end
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ invalid_properties
90
+ end
91
+
92
+ # Check to see if the all the properties in the model are valid
93
+ # @return true if the model is valid
94
+ def valid?
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ _next == o._next &&
104
+ previous == o.previous &&
105
+ results == o.results
106
+ end
107
+
108
+ # @see the `==` method
109
+ # @param [Object] Object to be compared
110
+ def eql?(o)
111
+ self == o
112
+ end
113
+
114
+ # Calculates hash code according to all attributes.
115
+ # @return [Integer] Hash code
116
+ def hash
117
+ [_next, previous, results].hash
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def self.build_from_hash(attributes)
124
+ new.build_from_hash(attributes)
125
+ end
126
+
127
+ # Builds the object from hash
128
+ # @param [Hash] attributes Model attributes in the form of hash
129
+ # @return [Object] Returns the model itself
130
+ def build_from_hash(attributes)
131
+ return nil unless attributes.is_a?(Hash)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = MergeTicketingClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -21,62 +21,71 @@ module MergeTicketingClient
21
21
 
22
22
  attr_accessor :assignees
23
23
 
24
+ # The user who created this ticket.
25
+ attr_accessor :creator
26
+
24
27
  # The ticket's due date.
25
28
  attr_accessor :due_date
26
29
 
27
30
  # The current status of the ticket.
28
31
  attr_accessor :status
29
32
 
30
- # The ticket's description.
33
+ # The tickets description. HTML version of description is mapped if supported by the third-party platform.
31
34
  attr_accessor :description
32
35
 
36
+ # The project the ticket belongs to.
33
37
  attr_accessor :project
34
38
 
39
+ attr_accessor :collections
40
+
35
41
  # The ticket's type.
36
42
  attr_accessor :ticket_type
37
43
 
44
+ # The account associated with the ticket.
38
45
  attr_accessor :account
39
46
 
47
+ # The contact associated with the ticket.
40
48
  attr_accessor :contact
41
49
 
50
+ # The ticket's parent ticket.
42
51
  attr_accessor :parent_ticket
43
52
 
44
53
  attr_accessor :tags
45
54
 
46
- # When the third party's ticket was created.
47
- attr_accessor :remote_created_at
48
-
49
- # When the third party's ticket was updated.
50
- attr_accessor :remote_updated_at
51
-
52
55
  # When the ticket was completed.
53
56
  attr_accessor :completed_at
54
57
 
55
58
  # The 3rd party url of the Ticket.
56
59
  attr_accessor :ticket_url
57
60
 
58
- # 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.
61
+ # The priority or urgency of the Ticket.
59
62
  attr_accessor :priority
60
63
 
64
+ attr_accessor :integration_params
65
+
66
+ attr_accessor :linked_account_params
67
+
61
68
  # Attribute mapping from ruby-style variable name to JSON key.
62
69
  def self.attribute_map
63
70
  {
64
71
  :'name' => :'name',
65
72
  :'assignees' => :'assignees',
73
+ :'creator' => :'creator',
66
74
  :'due_date' => :'due_date',
67
75
  :'status' => :'status',
68
76
  :'description' => :'description',
69
77
  :'project' => :'project',
78
+ :'collections' => :'collections',
70
79
  :'ticket_type' => :'ticket_type',
71
80
  :'account' => :'account',
72
81
  :'contact' => :'contact',
73
82
  :'parent_ticket' => :'parent_ticket',
74
83
  :'tags' => :'tags',
75
- :'remote_created_at' => :'remote_created_at',
76
- :'remote_updated_at' => :'remote_updated_at',
77
84
  :'completed_at' => :'completed_at',
78
85
  :'ticket_url' => :'ticket_url',
79
- :'priority' => :'priority'
86
+ :'priority' => :'priority',
87
+ :'integration_params' => :'integration_params',
88
+ :'linked_account_params' => :'linked_account_params'
80
89
  }
81
90
  end
82
91
 
@@ -90,20 +99,22 @@ module MergeTicketingClient
90
99
  {
91
100
  :'name' => :'String',
92
101
  :'assignees' => :'Array<String>',
102
+ :'creator' => :'String',
93
103
  :'due_date' => :'Time',
94
104
  :'status' => :'TicketStatusEnum',
95
105
  :'description' => :'String',
96
106
  :'project' => :'String',
107
+ :'collections' => :'Array<String>',
97
108
  :'ticket_type' => :'String',
98
109
  :'account' => :'String',
99
110
  :'contact' => :'String',
100
111
  :'parent_ticket' => :'String',
101
112
  :'tags' => :'Array<String>',
102
- :'remote_created_at' => :'Time',
103
- :'remote_updated_at' => :'Time',
104
113
  :'completed_at' => :'Time',
105
114
  :'ticket_url' => :'String',
106
- :'priority' => :'PriorityEnum'
115
+ :'priority' => :'PriorityEnum',
116
+ :'integration_params' => :'Hash<String, Object>',
117
+ :'linked_account_params' => :'Hash<String, Object>'
107
118
  }
108
119
  end
109
120
 
@@ -111,6 +122,7 @@ module MergeTicketingClient
111
122
  def self.openapi_nullable
112
123
  Set.new([
113
124
  :'name',
125
+ :'creator',
114
126
  :'due_date',
115
127
  :'status',
116
128
  :'description',
@@ -119,11 +131,11 @@ module MergeTicketingClient
119
131
  :'account',
120
132
  :'contact',
121
133
  :'parent_ticket',
122
- :'remote_created_at',
123
- :'remote_updated_at',
124
134
  :'completed_at',
125
135
  :'ticket_url',
126
- :'priority'
136
+ :'priority',
137
+ :'integration_params',
138
+ :'linked_account_params'
127
139
  ])
128
140
  end
129
141
 
@@ -152,6 +164,10 @@ module MergeTicketingClient
152
164
  end
153
165
  end
154
166
 
167
+ if attributes.key?(:'creator')
168
+ self.creator = attributes[:'creator']
169
+ end
170
+
155
171
  if attributes.key?(:'due_date')
156
172
  self.due_date = attributes[:'due_date']
157
173
  end
@@ -168,6 +184,12 @@ module MergeTicketingClient
168
184
  self.project = attributes[:'project']
169
185
  end
170
186
 
187
+ if attributes.key?(:'collections')
188
+ if (value = attributes[:'collections']).is_a?(Array)
189
+ self.collections = value
190
+ end
191
+ end
192
+
171
193
  if attributes.key?(:'ticket_type')
172
194
  self.ticket_type = attributes[:'ticket_type']
173
195
  end
@@ -190,14 +212,6 @@ module MergeTicketingClient
190
212
  end
191
213
  end
192
214
 
193
- if attributes.key?(:'remote_created_at')
194
- self.remote_created_at = attributes[:'remote_created_at']
195
- end
196
-
197
- if attributes.key?(:'remote_updated_at')
198
- self.remote_updated_at = attributes[:'remote_updated_at']
199
- end
200
-
201
215
  if attributes.key?(:'completed_at')
202
216
  self.completed_at = attributes[:'completed_at']
203
217
  end
@@ -209,6 +223,18 @@ module MergeTicketingClient
209
223
  if attributes.key?(:'priority')
210
224
  self.priority = attributes[:'priority']
211
225
  end
226
+
227
+ if attributes.key?(:'integration_params')
228
+ if (value = attributes[:'integration_params']).is_a?(Hash)
229
+ self.integration_params = value
230
+ end
231
+ end
232
+
233
+ if attributes.key?(:'linked_account_params')
234
+ if (value = attributes[:'linked_account_params']).is_a?(Hash)
235
+ self.linked_account_params = value
236
+ end
237
+ end
212
238
  end
213
239
 
214
240
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -246,20 +272,22 @@ module MergeTicketingClient
246
272
  self.class == o.class &&
247
273
  name == o.name &&
248
274
  assignees == o.assignees &&
275
+ creator == o.creator &&
249
276
  due_date == o.due_date &&
250
277
  status == o.status &&
251
278
  description == o.description &&
252
279
  project == o.project &&
280
+ collections == o.collections &&
253
281
  ticket_type == o.ticket_type &&
254
282
  account == o.account &&
255
283
  contact == o.contact &&
256
284
  parent_ticket == o.parent_ticket &&
257
285
  tags == o.tags &&
258
- remote_created_at == o.remote_created_at &&
259
- remote_updated_at == o.remote_updated_at &&
260
286
  completed_at == o.completed_at &&
261
287
  ticket_url == o.ticket_url &&
262
- priority == o.priority
288
+ priority == o.priority &&
289
+ integration_params == o.integration_params &&
290
+ linked_account_params == o.linked_account_params
263
291
  end
264
292
 
265
293
  # @see the `==` method
@@ -271,7 +299,7 @@ module MergeTicketingClient
271
299
  # Calculates hash code according to all attributes.
272
300
  # @return [Integer] Hash code
273
301
  def hash
274
- [name, assignees, due_date, status, description, project, ticket_type, account, contact, parent_ticket, tags, remote_created_at, remote_updated_at, completed_at, ticket_url, priority].hash
302
+ [name, assignees, creator, due_date, status, description, project, collections, ticket_type, account, contact, parent_ticket, tags, completed_at, ticket_url, priority, integration_params, linked_account_params].hash
275
303
  end
276
304
 
277
305
  # 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
+ PriorityEnum.new.build_from_hash(value)
44
44
  end
45
45
  end
46
46
 
@@ -32,6 +32,8 @@ module MergeTicketingClient
32
32
  # Indicates whether or not this object has been deleted by third party webhooks.
33
33
  attr_accessor :remote_was_deleted
34
34
 
35
+ attr_accessor :field_mappings
36
+
35
37
  # Attribute mapping from ruby-style variable name to JSON key.
36
38
  def self.attribute_map
37
39
  {
@@ -40,7 +42,8 @@ module MergeTicketingClient
40
42
  :'name' => :'name',
41
43
  :'description' => :'description',
42
44
  :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
45
+ :'remote_was_deleted' => :'remote_was_deleted',
46
+ :'field_mappings' => :'field_mappings'
44
47
  }
45
48
  end
46
49
 
@@ -57,7 +60,8 @@ module MergeTicketingClient
57
60
  :'name' => :'String',
58
61
  :'description' => :'String',
59
62
  :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
63
+ :'remote_was_deleted' => :'Boolean',
64
+ :'field_mappings' => :'Hash<String, Object>'
61
65
  }
62
66
  end
63
67
 
@@ -68,6 +72,7 @@ module MergeTicketingClient
68
72
  :'name',
69
73
  :'description',
70
74
  :'remote_data',
75
+ :'field_mappings'
71
76
  ])
72
77
  end
73
78
 
@@ -111,6 +116,12 @@ module MergeTicketingClient
111
116
  if attributes.key?(:'remote_was_deleted')
112
117
  self.remote_was_deleted = attributes[:'remote_was_deleted']
113
118
  end
119
+
120
+ if attributes.key?(:'field_mappings')
121
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
122
+ self.field_mappings = value
123
+ end
124
+ end
114
125
  end
115
126
 
116
127
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -136,7 +147,8 @@ module MergeTicketingClient
136
147
  name == o.name &&
137
148
  description == o.description &&
138
149
  remote_data == o.remote_data &&
139
- remote_was_deleted == o.remote_was_deleted
150
+ remote_was_deleted == o.remote_was_deleted &&
151
+ field_mappings == o.field_mappings
140
152
  end
141
153
 
142
154
  # @see the `==` method
@@ -148,7 +160,7 @@ module MergeTicketingClient
148
160
  # Calculates hash code according to all attributes.
149
161
  # @return [Integer] Hash code
150
162
  def hash
151
- [id, remote_id, name, description, remote_data, remote_was_deleted].hash
163
+ [id, remote_id, name, description, remote_data, remote_was_deleted, field_mappings].hash
152
164
  end
153
165
 
154
166
  # Builds the object from hash
@@ -66,9 +66,7 @@ module MergeTicketingClient
66
66
  end
67
67
 
68
68
  if attributes.key?(:'data')
69
- if (value = attributes[:'data']).is_a?(Hash)
70
- self.data = value
71
- end
69
+ self.data = attributes[:'data']
72
70
  end
73
71
  end
74
72
 
@@ -171,10 +169,14 @@ module MergeTicketingClient
171
169
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
170
  k_type = Regexp.last_match[:k_type]
173
171
  v_type = Regexp.last_match[:v_type]
174
- {}.tap do |hash|
175
- value.each do |k, v|
176
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
- end
172
+ if value.is_a? Hash
173
+ {}.tap do |hash|
174
+ value.each do |k, v|
175
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
176
+ end
177
+ end
178
+ else
179
+ _deserialize(v_type, value)
178
180
  end
179
181
  else # model
180
182
  # models (e.g. Pet) or oneOf