merge_ticketing_client 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +72 -0
  3. data/README.md +22 -7
  4. data/docs/AccessLevelEnum.md +15 -0
  5. data/docs/Account.md +14 -11
  6. data/docs/AccountIntegration.md +5 -1
  7. data/docs/AccountsApi.md +4 -4
  8. data/docs/AsyncPassthroughApi.md +155 -0
  9. data/docs/AsyncPassthroughReciept.md +18 -0
  10. data/docs/Attachment.md +18 -15
  11. data/docs/AttachmentRequest.md +10 -9
  12. data/docs/AttachmentsApi.md +80 -4
  13. data/docs/Collection.md +18 -13
  14. data/docs/CollectionsApi.md +92 -6
  15. data/docs/Comment.md +19 -16
  16. data/docs/CommentRequest.md +11 -10
  17. data/docs/CommentsApi.md +6 -4
  18. data/docs/CommonModelScopesBodyRequest.md +22 -0
  19. data/docs/ConditionSchema.md +1 -1
  20. data/docs/Contact.md +17 -14
  21. data/docs/ContactsApi.md +4 -4
  22. data/docs/DataPassthroughRequest.md +11 -10
  23. data/docs/DeleteAccountApi.md +9 -9
  24. data/docs/EnabledActionsEnum.md +15 -0
  25. data/docs/EndUserDetailsRequest.md +4 -2
  26. data/docs/ForceResyncApi.md +1 -1
  27. data/docs/Issue.md +11 -10
  28. data/docs/IssuesApi.md +6 -6
  29. data/docs/ItemFormatEnum.md +15 -0
  30. data/docs/ItemSchema.md +22 -0
  31. data/docs/ItemTypeEnum.md +15 -0
  32. data/docs/LinkedAccountCondition.md +9 -8
  33. data/docs/LinkedAccountConditionRequest.md +6 -5
  34. data/docs/LinkedAccountsApi.md +2 -2
  35. data/docs/MetaResponse.md +9 -6
  36. data/docs/MultipartFormFieldRequest.md +1 -1
  37. data/docs/PatchedTicketRequest.md +23 -22
  38. data/docs/Project.md +14 -11
  39. data/docs/ProjectsApi.md +5 -5
  40. data/docs/RemoteData.md +5 -4
  41. data/docs/RemoteField.md +7 -6
  42. data/docs/RemoteFieldClass.md +9 -11
  43. data/docs/RemoteFieldRequest.md +20 -0
  44. data/docs/RemoteResponse.md +10 -9
  45. data/docs/SyncStatus.md +1 -1
  46. data/docs/SyncStatusApi.md +10 -4
  47. data/docs/Tag.md +12 -9
  48. data/docs/TagsApi.md +4 -4
  49. data/docs/Team.md +14 -11
  50. data/docs/TeamsApi.md +4 -4
  51. data/docs/Ticket.md +30 -29
  52. data/docs/TicketRequest.md +24 -23
  53. data/docs/TicketsApi.md +9 -11
  54. data/docs/User.md +17 -14
  55. data/docs/UsersApi.md +6 -6
  56. data/lib/merge_ticketing_client/api/accounts_api.rb +4 -4
  57. data/lib/merge_ticketing_client/api/async_passthrough_api.rb +160 -0
  58. data/lib/merge_ticketing_client/api/attachments_api.rb +75 -4
  59. data/lib/merge_ticketing_client/api/collections_api.rb +93 -6
  60. data/lib/merge_ticketing_client/api/comments_api.rb +7 -4
  61. data/lib/merge_ticketing_client/api/contacts_api.rb +4 -4
  62. data/lib/merge_ticketing_client/api/delete_account_api.rb +7 -7
  63. data/lib/merge_ticketing_client/api/force_resync_api.rb +2 -2
  64. data/lib/merge_ticketing_client/api/issues_api.rb +6 -6
  65. data/lib/merge_ticketing_client/api/linked_accounts_api.rb +3 -3
  66. data/lib/merge_ticketing_client/api/projects_api.rb +5 -5
  67. data/lib/merge_ticketing_client/api/sync_status_api.rb +2 -2
  68. data/lib/merge_ticketing_client/api/tags_api.rb +4 -4
  69. data/lib/merge_ticketing_client/api/teams_api.rb +4 -4
  70. data/lib/merge_ticketing_client/api/tickets_api.rb +11 -14
  71. data/lib/merge_ticketing_client/api/users_api.rb +6 -6
  72. data/lib/merge_ticketing_client/models/access_level_enum.rb +46 -0
  73. data/lib/merge_ticketing_client/models/account.rb +27 -17
  74. data/lib/merge_ticketing_client/models/account_integration.rb +29 -7
  75. data/lib/merge_ticketing_client/models/async_passthrough_reciept.rb +223 -0
  76. data/lib/merge_ticketing_client/models/attachment.rb +29 -19
  77. data/lib/merge_ticketing_client/models/attachment_request.rb +2 -2
  78. data/lib/merge_ticketing_client/models/categories_enum.rb +2 -1
  79. data/lib/merge_ticketing_client/models/category_enum.rb +2 -1
  80. data/lib/merge_ticketing_client/models/collection.rb +39 -18
  81. data/lib/merge_ticketing_client/models/comment.rb +27 -17
  82. data/lib/merge_ticketing_client/models/common_model_scopes_body_request.rb +274 -0
  83. data/lib/merge_ticketing_client/models/condition_schema.rb +1 -0
  84. data/lib/merge_ticketing_client/models/contact.rb +27 -17
  85. data/lib/merge_ticketing_client/models/enabled_actions_enum.rb +45 -0
  86. data/lib/merge_ticketing_client/models/end_user_details_request.rb +19 -6
  87. data/lib/merge_ticketing_client/models/issue.rb +3 -2
  88. data/lib/merge_ticketing_client/models/item_format_enum.rb +49 -0
  89. data/lib/merge_ticketing_client/models/item_schema.rb +238 -0
  90. data/lib/merge_ticketing_client/models/item_type_enum.rb +49 -0
  91. data/lib/merge_ticketing_client/models/meta_response.rb +12 -1
  92. data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +1 -1
  93. data/lib/merge_ticketing_client/models/patched_ticket_request.rb +18 -18
  94. data/lib/merge_ticketing_client/models/project.rb +27 -17
  95. data/lib/merge_ticketing_client/models/remote_data.rb +6 -9
  96. data/lib/merge_ticketing_client/models/remote_field.rb +18 -15
  97. data/lib/merge_ticketing_client/models/remote_field_class.rb +22 -39
  98. data/lib/merge_ticketing_client/models/remote_field_request.rb +234 -0
  99. data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
  100. data/lib/merge_ticketing_client/models/tag.rb +27 -17
  101. data/lib/merge_ticketing_client/models/team.rb +27 -17
  102. data/lib/merge_ticketing_client/models/ticket.rb +25 -26
  103. data/lib/merge_ticketing_client/models/ticket_request.rb +18 -18
  104. data/lib/merge_ticketing_client/models/user.rb +27 -17
  105. data/lib/merge_ticketing_client/version.rb +1 -1
  106. data/lib/merge_ticketing_client.rb +9 -1
  107. data/spec/api/accounts_api_spec.rb +2 -2
  108. data/spec/api/async_passthrough_api_spec.rb +59 -0
  109. data/spec/api/attachments_api_spec.rb +15 -2
  110. data/spec/api/collections_api_spec.rb +20 -3
  111. data/spec/api/comments_api_spec.rb +3 -2
  112. data/spec/api/contacts_api_spec.rb +2 -2
  113. data/spec/api/delete_account_api_spec.rb +2 -2
  114. data/spec/api/force_resync_api_spec.rb +1 -1
  115. data/spec/api/issues_api_spec.rb +3 -3
  116. data/spec/api/linked_accounts_api_spec.rb +1 -1
  117. data/spec/api/projects_api_spec.rb +2 -2
  118. data/spec/api/sync_status_api_spec.rb +1 -1
  119. data/spec/api/tags_api_spec.rb +2 -2
  120. data/spec/api/teams_api_spec.rb +2 -2
  121. data/spec/api/tickets_api_spec.rb +21 -4
  122. data/spec/api/users_api_spec.rb +2 -2
  123. data/spec/models/access_level_enum_spec.rb +28 -0
  124. data/spec/models/account_integration_spec.rb +12 -0
  125. data/spec/models/account_spec.rb +8 -2
  126. data/spec/models/async_passthrough_reciept_spec.rb +34 -0
  127. data/spec/models/attachment_request_spec.rb +0 -12
  128. data/spec/models/attachment_spec.rb +8 -2
  129. data/spec/models/collection_spec.rb +14 -2
  130. data/spec/models/comment_request_spec.rb +0 -12
  131. data/spec/models/comment_spec.rb +8 -2
  132. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  133. data/spec/models/contact_spec.rb +8 -2
  134. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  135. data/spec/models/end_user_details_request_spec.rb +6 -0
  136. data/spec/models/field_format_enum_spec.rb +28 -0
  137. data/spec/models/field_type_enum_spec.rb +28 -0
  138. data/spec/models/item_format_enum_spec.rb +28 -0
  139. data/spec/models/item_schema_spec.rb +46 -0
  140. data/spec/models/item_type_enum_spec.rb +28 -0
  141. data/spec/models/meta_response_spec.rb +6 -0
  142. data/spec/models/paginated_remote_field_class_list_spec.rb +46 -0
  143. data/spec/models/patched_ticket_request_spec.rb +6 -18
  144. data/spec/models/project_spec.rb +8 -2
  145. data/spec/models/remote_field_class_spec.rb +88 -0
  146. data/spec/models/remote_field_request_spec.rb +40 -0
  147. data/spec/models/remote_field_spec.rb +40 -0
  148. data/spec/models/tag_spec.rb +8 -2
  149. data/spec/models/team_spec.rb +8 -2
  150. data/spec/models/ticket_request_spec.rb +6 -24
  151. data/spec/models/ticket_spec.rb +16 -10
  152. data/spec/models/user_spec.rb +8 -2
  153. metadata +133 -86
@@ -0,0 +1,223 @@
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 AsyncPassthroughReciept
18
+ attr_accessor :async_passthrough_receipt_id
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'async_passthrough_receipt_id' => :'async_passthrough_receipt_id'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'async_passthrough_receipt_id' => :'String'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MergeTicketingClient::AsyncPassthroughReciept` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MergeTicketingClient::AsyncPassthroughReciept`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'async_passthrough_receipt_id')
61
+ self.async_passthrough_receipt_id = attributes[:'async_passthrough_receipt_id']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ if @async_passthrough_receipt_id.nil?
70
+ invalid_properties.push('invalid value for "async_passthrough_receipt_id", async_passthrough_receipt_id cannot be nil.')
71
+ end
72
+
73
+ invalid_properties
74
+ end
75
+
76
+ # Check to see if the all the properties in the model are valid
77
+ # @return true if the model is valid
78
+ def valid?
79
+ return false if @async_passthrough_receipt_id.nil?
80
+ true
81
+ end
82
+
83
+ # Checks equality by comparing each attribute.
84
+ # @param [Object] Object to be compared
85
+ def ==(o)
86
+ return true if self.equal?(o)
87
+ self.class == o.class &&
88
+ async_passthrough_receipt_id == o.async_passthrough_receipt_id
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Integer] Hash code
99
+ def hash
100
+ [async_passthrough_receipt_id].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def self.build_from_hash(attributes)
107
+ new.build_from_hash(attributes)
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.openapi_types.each_pair do |key, type|
116
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
117
+ self.send("#{key}=", nil)
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
122
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
123
+ end
124
+ elsif !attributes[self.class.attribute_map[key]].nil?
125
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
126
+ end
127
+ end
128
+
129
+ self
130
+ end
131
+
132
+ # Deserializes the data based on type
133
+ # @param string type Data type
134
+ # @param string value Value to be deserialized
135
+ # @return [Object] Deserialized data
136
+ def _deserialize(type, value)
137
+ case type.to_sym
138
+ when :Time
139
+ Time.parse(value)
140
+ when :Date
141
+ Date.parse(value)
142
+ when :String
143
+ value
144
+ when :Integer
145
+ value.to_i
146
+ when :Float
147
+ value.to_f
148
+ when :Boolean
149
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
150
+ true
151
+ else
152
+ false
153
+ end
154
+ when :Object
155
+ # generic object (usually a Hash), return directly
156
+ value
157
+ when /\AArray<(?<inner_type>.+)>\z/
158
+ inner_type = Regexp.last_match[:inner_type]
159
+ value.map { |v| _deserialize(inner_type, v) }
160
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
161
+ k_type = Regexp.last_match[:k_type]
162
+ v_type = Regexp.last_match[:v_type]
163
+ {}.tap do |hash|
164
+ value.each do |k, v|
165
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
166
+ end
167
+ end
168
+ else # model
169
+ # models (e.g. Pet) or oneOf
170
+ klass = MergeTicketingClient.const_get(type)
171
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+
223
+ end
@@ -21,13 +21,13 @@ module MergeTicketingClient
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The attachment's name.
24
+ # The attachment's name. It is required to include the file extension in the attachment's name.
25
25
  attr_accessor :file_name
26
26
 
27
27
  # The ticket associated with the attachment.
28
28
  attr_accessor :ticket
29
29
 
30
- # The attachment's url.
30
+ # The attachment's url. It is required to include the file extension in the file's URL.
31
31
  attr_accessor :file_url
32
32
 
33
33
  # The attachment's file format.
@@ -39,12 +39,15 @@ module MergeTicketingClient
39
39
  # When the third party's attachment was created.
40
40
  attr_accessor :remote_created_at
41
41
 
42
- attr_accessor :remote_data
43
-
44
42
  attr_accessor :remote_was_deleted
45
43
 
44
+ # This is the datetime that this object was last updated by Merge
45
+ attr_accessor :modified_at
46
+
46
47
  attr_accessor :field_mappings
47
48
 
49
+ attr_accessor :remote_data
50
+
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
@@ -56,9 +59,10 @@ module MergeTicketingClient
56
59
  :'content_type' => :'content_type',
57
60
  :'uploaded_by' => :'uploaded_by',
58
61
  :'remote_created_at' => :'remote_created_at',
59
- :'remote_data' => :'remote_data',
60
62
  :'remote_was_deleted' => :'remote_was_deleted',
61
- :'field_mappings' => :'field_mappings'
63
+ :'modified_at' => :'modified_at',
64
+ :'field_mappings' => :'field_mappings',
65
+ :'remote_data' => :'remote_data'
62
66
  }
63
67
  end
64
68
 
@@ -78,9 +82,10 @@ module MergeTicketingClient
78
82
  :'content_type' => :'String',
79
83
  :'uploaded_by' => :'String',
80
84
  :'remote_created_at' => :'Time',
81
- :'remote_data' => :'Array<RemoteData>',
82
85
  :'remote_was_deleted' => :'Boolean',
83
- :'field_mappings' => :'Hash<String, Object>'
86
+ :'modified_at' => :'Time',
87
+ :'field_mappings' => :'Hash<String, Object>',
88
+ :'remote_data' => :'Array<RemoteData>'
84
89
  }
85
90
  end
86
91
 
@@ -94,8 +99,8 @@ module MergeTicketingClient
94
99
  :'content_type',
95
100
  :'uploaded_by',
96
101
  :'remote_created_at',
97
- :'remote_data',
98
- :'field_mappings'
102
+ :'field_mappings',
103
+ :'remote_data'
99
104
  ])
100
105
  end
101
106
 
@@ -146,21 +151,25 @@ module MergeTicketingClient
146
151
  self.remote_created_at = attributes[:'remote_created_at']
147
152
  end
148
153
 
149
- if attributes.key?(:'remote_data')
150
- if (value = attributes[:'remote_data']).is_a?(Array)
151
- self.remote_data = value
152
- end
153
- end
154
-
155
154
  if attributes.key?(:'remote_was_deleted')
156
155
  self.remote_was_deleted = attributes[:'remote_was_deleted']
157
156
  end
158
157
 
158
+ if attributes.key?(:'modified_at')
159
+ self.modified_at = attributes[:'modified_at']
160
+ end
161
+
159
162
  if attributes.key?(:'field_mappings')
160
163
  if (value = attributes[:'field_mappings']).is_a?(Hash)
161
164
  self.field_mappings = value
162
165
  end
163
166
  end
167
+
168
+ if attributes.key?(:'remote_data')
169
+ if (value = attributes[:'remote_data']).is_a?(Array)
170
+ self.remote_data = value
171
+ end
172
+ end
164
173
  end
165
174
 
166
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -189,9 +198,10 @@ module MergeTicketingClient
189
198
  content_type == o.content_type &&
190
199
  uploaded_by == o.uploaded_by &&
191
200
  remote_created_at == o.remote_created_at &&
192
- remote_data == o.remote_data &&
193
201
  remote_was_deleted == o.remote_was_deleted &&
194
- field_mappings == o.field_mappings
202
+ modified_at == o.modified_at &&
203
+ field_mappings == o.field_mappings &&
204
+ remote_data == o.remote_data
195
205
  end
196
206
 
197
207
  # @see the `==` method
@@ -203,7 +213,7 @@ module MergeTicketingClient
203
213
  # Calculates hash code according to all attributes.
204
214
  # @return [Integer] Hash code
205
215
  def hash
206
- [id, remote_id, file_name, ticket, file_url, content_type, uploaded_by, remote_created_at, remote_data, remote_was_deleted, field_mappings].hash
216
+ [id, remote_id, file_name, ticket, file_url, content_type, uploaded_by, remote_created_at, remote_was_deleted, modified_at, field_mappings, remote_data].hash
207
217
  end
208
218
 
209
219
  # Builds the object from hash
@@ -16,13 +16,13 @@ require 'time'
16
16
  module MergeTicketingClient
17
17
  # # The Attachment Object ### Description The `Attachment` object is used to represent an attachment for a ticket. ### Usage Example TODO
18
18
  class AttachmentRequest
19
- # The attachment's name.
19
+ # The attachment's name. It is required to include the file extension in the attachment's name.
20
20
  attr_accessor :file_name
21
21
 
22
22
  # The ticket associated with the attachment.
23
23
  attr_accessor :ticket
24
24
 
25
- # The attachment's url.
25
+ # The attachment's url. It is required to include the file extension in the file's URL.
26
26
  attr_accessor :file_url
27
27
 
28
28
  # The attachment's file format.
@@ -21,6 +21,7 @@ module MergeTicketingClient
21
21
  TICKETING = "ticketing".freeze
22
22
  CRM = "crm".freeze
23
23
  MKTG = "mktg".freeze
24
+ FILESTORAGE = "filestorage".freeze
24
25
 
25
26
  MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
26
27
 
@@ -32,7 +33,7 @@ module MergeTicketingClient
32
33
  # @return [String] The enum value
33
34
  def build_from_hash(value)
34
35
  @raw_value = value
35
- if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", ].include? value
36
+ if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", ].include? value
36
37
  @value = value
37
38
  else
38
39
  @value = MERGE_NONSTANDARD_VALUE
@@ -21,6 +21,7 @@ module MergeTicketingClient
21
21
  TICKETING = "ticketing".freeze
22
22
  CRM = "crm".freeze
23
23
  MKTG = "mktg".freeze
24
+ FILESTORAGE = "filestorage".freeze
24
25
 
25
26
  MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
26
27
 
@@ -32,7 +33,7 @@ module MergeTicketingClient
32
33
  # @return [String] The enum value
33
34
  def build_from_hash(value)
34
35
  @raw_value = value
35
- if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", ].include? value
36
+ if ["hris", "ats", "accounting", "ticketing", "crm", "mktg", "filestorage", ].include? value
36
37
  @value = value
37
38
  else
38
39
  @value = MERGE_NONSTANDARD_VALUE
@@ -27,19 +27,25 @@ module MergeTicketingClient
27
27
  # The collection's description.
28
28
  attr_accessor :description
29
29
 
30
- # The collection's type.
30
+ # The collection's type. * `LIST` - LIST * `PROJECT` - PROJECT
31
31
  attr_accessor :collection_type
32
32
 
33
33
  # The parent collection for this collection.
34
34
  attr_accessor :parent_collection
35
35
 
36
- attr_accessor :remote_data
37
-
38
36
  # Indicates whether or not this object has been deleted by third party webhooks.
39
37
  attr_accessor :remote_was_deleted
40
38
 
39
+ # The level of access a User has to the Collection and its sub-objects. * `PRIVATE` - PRIVATE * `COMPANY` - COMPANY * `PUBLIC` - PUBLIC
40
+ attr_accessor :access_level
41
+
42
+ # This is the datetime that this object was last updated by Merge
43
+ attr_accessor :modified_at
44
+
41
45
  attr_accessor :field_mappings
42
46
 
47
+ attr_accessor :remote_data
48
+
43
49
  # Attribute mapping from ruby-style variable name to JSON key.
44
50
  def self.attribute_map
45
51
  {
@@ -49,9 +55,11 @@ module MergeTicketingClient
49
55
  :'description' => :'description',
50
56
  :'collection_type' => :'collection_type',
51
57
  :'parent_collection' => :'parent_collection',
52
- :'remote_data' => :'remote_data',
53
58
  :'remote_was_deleted' => :'remote_was_deleted',
54
- :'field_mappings' => :'field_mappings'
59
+ :'access_level' => :'access_level',
60
+ :'modified_at' => :'modified_at',
61
+ :'field_mappings' => :'field_mappings',
62
+ :'remote_data' => :'remote_data'
55
63
  }
56
64
  end
57
65
 
@@ -69,9 +77,11 @@ module MergeTicketingClient
69
77
  :'description' => :'String',
70
78
  :'collection_type' => :'CollectionTypeEnum',
71
79
  :'parent_collection' => :'String',
72
- :'remote_data' => :'Array<RemoteData>',
73
80
  :'remote_was_deleted' => :'Boolean',
74
- :'field_mappings' => :'Hash<String, Object>'
81
+ :'access_level' => :'AccessLevelEnum',
82
+ :'modified_at' => :'Time',
83
+ :'field_mappings' => :'Hash<String, Object>',
84
+ :'remote_data' => :'Array<RemoteData>'
75
85
  }
76
86
  end
77
87
 
@@ -83,8 +93,9 @@ module MergeTicketingClient
83
93
  :'description',
84
94
  :'collection_type',
85
95
  :'parent_collection',
86
- :'remote_data',
87
- :'field_mappings'
96
+ :'access_level',
97
+ :'field_mappings',
98
+ :'remote_data'
88
99
  ])
89
100
  end
90
101
 
@@ -127,21 +138,29 @@ module MergeTicketingClient
127
138
  self.parent_collection = attributes[:'parent_collection']
128
139
  end
129
140
 
130
- if attributes.key?(:'remote_data')
131
- if (value = attributes[:'remote_data']).is_a?(Array)
132
- self.remote_data = value
133
- end
134
- end
135
-
136
141
  if attributes.key?(:'remote_was_deleted')
137
142
  self.remote_was_deleted = attributes[:'remote_was_deleted']
138
143
  end
139
144
 
145
+ if attributes.key?(:'access_level')
146
+ self.access_level = attributes[:'access_level']
147
+ end
148
+
149
+ if attributes.key?(:'modified_at')
150
+ self.modified_at = attributes[:'modified_at']
151
+ end
152
+
140
153
  if attributes.key?(:'field_mappings')
141
154
  if (value = attributes[:'field_mappings']).is_a?(Hash)
142
155
  self.field_mappings = value
143
156
  end
144
157
  end
158
+
159
+ if attributes.key?(:'remote_data')
160
+ if (value = attributes[:'remote_data']).is_a?(Array)
161
+ self.remote_data = value
162
+ end
163
+ end
145
164
  end
146
165
 
147
166
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,9 +187,11 @@ module MergeTicketingClient
168
187
  description == o.description &&
169
188
  collection_type == o.collection_type &&
170
189
  parent_collection == o.parent_collection &&
171
- remote_data == o.remote_data &&
172
190
  remote_was_deleted == o.remote_was_deleted &&
173
- field_mappings == o.field_mappings
191
+ access_level == o.access_level &&
192
+ modified_at == o.modified_at &&
193
+ field_mappings == o.field_mappings &&
194
+ remote_data == o.remote_data
174
195
  end
175
196
 
176
197
  # @see the `==` method
@@ -182,7 +203,7 @@ module MergeTicketingClient
182
203
  # Calculates hash code according to all attributes.
183
204
  # @return [Integer] Hash code
184
205
  def hash
185
- [id, remote_id, name, description, collection_type, parent_collection, remote_data, remote_was_deleted, field_mappings].hash
206
+ [id, remote_id, name, description, collection_type, parent_collection, remote_was_deleted, access_level, modified_at, field_mappings, remote_data].hash
186
207
  end
187
208
 
188
209
  # Builds the object from hash
@@ -42,12 +42,15 @@ module MergeTicketingClient
42
42
  # When the third party's comment was created.
43
43
  attr_accessor :remote_created_at
44
44
 
45
- attr_accessor :remote_data
46
-
47
45
  attr_accessor :remote_was_deleted
48
46
 
47
+ # This is the datetime that this object was last updated by Merge
48
+ attr_accessor :modified_at
49
+
49
50
  attr_accessor :field_mappings
50
51
 
52
+ attr_accessor :remote_data
53
+
51
54
  # Attribute mapping from ruby-style variable name to JSON key.
52
55
  def self.attribute_map
53
56
  {
@@ -60,9 +63,10 @@ module MergeTicketingClient
60
63
  :'ticket' => :'ticket',
61
64
  :'is_private' => :'is_private',
62
65
  :'remote_created_at' => :'remote_created_at',
63
- :'remote_data' => :'remote_data',
64
66
  :'remote_was_deleted' => :'remote_was_deleted',
65
- :'field_mappings' => :'field_mappings'
67
+ :'modified_at' => :'modified_at',
68
+ :'field_mappings' => :'field_mappings',
69
+ :'remote_data' => :'remote_data'
66
70
  }
67
71
  end
68
72
 
@@ -83,9 +87,10 @@ module MergeTicketingClient
83
87
  :'ticket' => :'String',
84
88
  :'is_private' => :'Boolean',
85
89
  :'remote_created_at' => :'Time',
86
- :'remote_data' => :'Array<RemoteData>',
87
90
  :'remote_was_deleted' => :'Boolean',
88
- :'field_mappings' => :'Hash<String, Object>'
91
+ :'modified_at' => :'Time',
92
+ :'field_mappings' => :'Hash<String, Object>',
93
+ :'remote_data' => :'Array<RemoteData>'
89
94
  }
90
95
  end
91
96
 
@@ -100,8 +105,8 @@ module MergeTicketingClient
100
105
  :'ticket',
101
106
  :'is_private',
102
107
  :'remote_created_at',
103
- :'remote_data',
104
- :'field_mappings'
108
+ :'field_mappings',
109
+ :'remote_data'
105
110
  ])
106
111
  end
107
112
 
@@ -156,21 +161,25 @@ module MergeTicketingClient
156
161
  self.remote_created_at = attributes[:'remote_created_at']
157
162
  end
158
163
 
159
- if attributes.key?(:'remote_data')
160
- if (value = attributes[:'remote_data']).is_a?(Array)
161
- self.remote_data = value
162
- end
163
- end
164
-
165
164
  if attributes.key?(:'remote_was_deleted')
166
165
  self.remote_was_deleted = attributes[:'remote_was_deleted']
167
166
  end
168
167
 
168
+ if attributes.key?(:'modified_at')
169
+ self.modified_at = attributes[:'modified_at']
170
+ end
171
+
169
172
  if attributes.key?(:'field_mappings')
170
173
  if (value = attributes[:'field_mappings']).is_a?(Hash)
171
174
  self.field_mappings = value
172
175
  end
173
176
  end
177
+
178
+ if attributes.key?(:'remote_data')
179
+ if (value = attributes[:'remote_data']).is_a?(Array)
180
+ self.remote_data = value
181
+ end
182
+ end
174
183
  end
175
184
 
176
185
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -200,9 +209,10 @@ module MergeTicketingClient
200
209
  ticket == o.ticket &&
201
210
  is_private == o.is_private &&
202
211
  remote_created_at == o.remote_created_at &&
203
- remote_data == o.remote_data &&
204
212
  remote_was_deleted == o.remote_was_deleted &&
205
- field_mappings == o.field_mappings
213
+ modified_at == o.modified_at &&
214
+ field_mappings == o.field_mappings &&
215
+ remote_data == o.remote_data
206
216
  end
207
217
 
208
218
  # @see the `==` method
@@ -214,7 +224,7 @@ module MergeTicketingClient
214
224
  # Calculates hash code according to all attributes.
215
225
  # @return [Integer] Hash code
216
226
  def hash
217
- [id, remote_id, user, contact, body, html_body, ticket, is_private, remote_created_at, remote_data, remote_was_deleted, field_mappings].hash
227
+ [id, remote_id, user, contact, body, html_body, ticket, is_private, remote_created_at, remote_was_deleted, modified_at, field_mappings, remote_data].hash
218
228
  end
219
229
 
220
230
  # Builds the object from hash