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.
- checksums.yaml +4 -4
- data/Gemfile.lock +72 -0
- data/README.md +22 -7
- data/docs/AccessLevelEnum.md +15 -0
- data/docs/Account.md +14 -11
- data/docs/AccountIntegration.md +5 -1
- data/docs/AccountsApi.md +4 -4
- data/docs/AsyncPassthroughApi.md +155 -0
- data/docs/AsyncPassthroughReciept.md +18 -0
- data/docs/Attachment.md +18 -15
- data/docs/AttachmentRequest.md +10 -9
- data/docs/AttachmentsApi.md +80 -4
- data/docs/Collection.md +18 -13
- data/docs/CollectionsApi.md +92 -6
- data/docs/Comment.md +19 -16
- data/docs/CommentRequest.md +11 -10
- data/docs/CommentsApi.md +6 -4
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/ConditionSchema.md +1 -1
- data/docs/Contact.md +17 -14
- data/docs/ContactsApi.md +4 -4
- data/docs/DataPassthroughRequest.md +11 -10
- data/docs/DeleteAccountApi.md +9 -9
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +4 -2
- data/docs/ForceResyncApi.md +1 -1
- data/docs/Issue.md +11 -10
- data/docs/IssuesApi.md +6 -6
- data/docs/ItemFormatEnum.md +15 -0
- data/docs/ItemSchema.md +22 -0
- data/docs/ItemTypeEnum.md +15 -0
- data/docs/LinkedAccountCondition.md +9 -8
- data/docs/LinkedAccountConditionRequest.md +6 -5
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +9 -6
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/PatchedTicketRequest.md +23 -22
- data/docs/Project.md +14 -11
- data/docs/ProjectsApi.md +5 -5
- data/docs/RemoteData.md +5 -4
- data/docs/RemoteField.md +7 -6
- data/docs/RemoteFieldClass.md +9 -11
- data/docs/RemoteFieldRequest.md +20 -0
- data/docs/RemoteResponse.md +10 -9
- data/docs/SyncStatus.md +1 -1
- data/docs/SyncStatusApi.md +10 -4
- data/docs/Tag.md +12 -9
- data/docs/TagsApi.md +4 -4
- data/docs/Team.md +14 -11
- data/docs/TeamsApi.md +4 -4
- data/docs/Ticket.md +30 -29
- data/docs/TicketRequest.md +24 -23
- data/docs/TicketsApi.md +9 -11
- data/docs/User.md +17 -14
- data/docs/UsersApi.md +6 -6
- data/lib/merge_ticketing_client/api/accounts_api.rb +4 -4
- data/lib/merge_ticketing_client/api/async_passthrough_api.rb +160 -0
- data/lib/merge_ticketing_client/api/attachments_api.rb +75 -4
- data/lib/merge_ticketing_client/api/collections_api.rb +93 -6
- data/lib/merge_ticketing_client/api/comments_api.rb +7 -4
- data/lib/merge_ticketing_client/api/contacts_api.rb +4 -4
- data/lib/merge_ticketing_client/api/delete_account_api.rb +7 -7
- data/lib/merge_ticketing_client/api/force_resync_api.rb +2 -2
- data/lib/merge_ticketing_client/api/issues_api.rb +6 -6
- data/lib/merge_ticketing_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_ticketing_client/api/projects_api.rb +5 -5
- data/lib/merge_ticketing_client/api/sync_status_api.rb +2 -2
- data/lib/merge_ticketing_client/api/tags_api.rb +4 -4
- data/lib/merge_ticketing_client/api/teams_api.rb +4 -4
- data/lib/merge_ticketing_client/api/tickets_api.rb +11 -14
- data/lib/merge_ticketing_client/api/users_api.rb +6 -6
- data/lib/merge_ticketing_client/models/access_level_enum.rb +46 -0
- data/lib/merge_ticketing_client/models/account.rb +27 -17
- data/lib/merge_ticketing_client/models/account_integration.rb +29 -7
- data/lib/merge_ticketing_client/models/async_passthrough_reciept.rb +223 -0
- data/lib/merge_ticketing_client/models/attachment.rb +29 -19
- data/lib/merge_ticketing_client/models/attachment_request.rb +2 -2
- data/lib/merge_ticketing_client/models/categories_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/category_enum.rb +2 -1
- data/lib/merge_ticketing_client/models/collection.rb +39 -18
- data/lib/merge_ticketing_client/models/comment.rb +27 -17
- data/lib/merge_ticketing_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_ticketing_client/models/condition_schema.rb +1 -0
- data/lib/merge_ticketing_client/models/contact.rb +27 -17
- data/lib/merge_ticketing_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_ticketing_client/models/end_user_details_request.rb +19 -6
- data/lib/merge_ticketing_client/models/issue.rb +3 -2
- data/lib/merge_ticketing_client/models/item_format_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/item_schema.rb +238 -0
- data/lib/merge_ticketing_client/models/item_type_enum.rb +49 -0
- data/lib/merge_ticketing_client/models/meta_response.rb +12 -1
- data/lib/merge_ticketing_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_ticketing_client/models/patched_ticket_request.rb +18 -18
- data/lib/merge_ticketing_client/models/project.rb +27 -17
- data/lib/merge_ticketing_client/models/remote_data.rb +6 -9
- data/lib/merge_ticketing_client/models/remote_field.rb +18 -15
- data/lib/merge_ticketing_client/models/remote_field_class.rb +22 -39
- data/lib/merge_ticketing_client/models/remote_field_request.rb +234 -0
- data/lib/merge_ticketing_client/models/sync_status_status_enum.rb +1 -1
- data/lib/merge_ticketing_client/models/tag.rb +27 -17
- data/lib/merge_ticketing_client/models/team.rb +27 -17
- data/lib/merge_ticketing_client/models/ticket.rb +25 -26
- data/lib/merge_ticketing_client/models/ticket_request.rb +18 -18
- data/lib/merge_ticketing_client/models/user.rb +27 -17
- data/lib/merge_ticketing_client/version.rb +1 -1
- data/lib/merge_ticketing_client.rb +9 -1
- data/spec/api/accounts_api_spec.rb +2 -2
- data/spec/api/async_passthrough_api_spec.rb +59 -0
- data/spec/api/attachments_api_spec.rb +15 -2
- data/spec/api/collections_api_spec.rb +20 -3
- data/spec/api/comments_api_spec.rb +3 -2
- data/spec/api/contacts_api_spec.rb +2 -2
- data/spec/api/delete_account_api_spec.rb +2 -2
- data/spec/api/force_resync_api_spec.rb +1 -1
- data/spec/api/issues_api_spec.rb +3 -3
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +2 -2
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +2 -2
- data/spec/api/teams_api_spec.rb +2 -2
- data/spec/api/tickets_api_spec.rb +21 -4
- data/spec/api/users_api_spec.rb +2 -2
- data/spec/models/access_level_enum_spec.rb +28 -0
- data/spec/models/account_integration_spec.rb +12 -0
- data/spec/models/account_spec.rb +8 -2
- data/spec/models/async_passthrough_reciept_spec.rb +34 -0
- data/spec/models/attachment_request_spec.rb +0 -12
- data/spec/models/attachment_spec.rb +8 -2
- data/spec/models/collection_spec.rb +14 -2
- data/spec/models/comment_request_spec.rb +0 -12
- data/spec/models/comment_spec.rb +8 -2
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/contact_spec.rb +8 -2
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/field_format_enum_spec.rb +28 -0
- data/spec/models/field_type_enum_spec.rb +28 -0
- data/spec/models/item_format_enum_spec.rb +28 -0
- data/spec/models/item_schema_spec.rb +46 -0
- data/spec/models/item_type_enum_spec.rb +28 -0
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/paginated_remote_field_class_list_spec.rb +46 -0
- data/spec/models/patched_ticket_request_spec.rb +6 -18
- data/spec/models/project_spec.rb +8 -2
- data/spec/models/remote_field_class_spec.rb +88 -0
- data/spec/models/remote_field_request_spec.rb +40 -0
- data/spec/models/remote_field_spec.rb +40 -0
- data/spec/models/tag_spec.rb +8 -2
- data/spec/models/team_spec.rb +8 -2
- data/spec/models/ticket_request_spec.rb +6 -24
- data/spec/models/ticket_spec.rb +16 -10
- data/spec/models/user_spec.rb +8 -2
- metadata +133 -86
@@ -0,0 +1,274 @@
|
|
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 CommonModelScopesBodyRequest
|
18
|
+
attr_accessor :model_id
|
19
|
+
|
20
|
+
attr_accessor :enabled_actions
|
21
|
+
|
22
|
+
attr_accessor :disabled_fields
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'model_id' => :'model_id',
|
28
|
+
:'enabled_actions' => :'enabled_actions',
|
29
|
+
:'disabled_fields' => :'disabled_fields'
|
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
|
+
:'model_id' => :'String',
|
42
|
+
:'enabled_actions' => :'Array<EnabledActionsEnum>',
|
43
|
+
:'disabled_fields' => :'Array<String>'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# List of attributes with nullable: true
|
48
|
+
def self.openapi_nullable
|
49
|
+
Set.new([
|
50
|
+
])
|
51
|
+
end
|
52
|
+
|
53
|
+
# Initializes the object
|
54
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
55
|
+
def initialize(attributes = {})
|
56
|
+
if (!attributes.is_a?(Hash))
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeTicketingClient::CommonModelScopesBodyRequest` initialize method"
|
58
|
+
end
|
59
|
+
|
60
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeTicketingClient::CommonModelScopesBodyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
end
|
65
|
+
h[k.to_sym] = v
|
66
|
+
}
|
67
|
+
|
68
|
+
if attributes.key?(:'model_id')
|
69
|
+
self.model_id = attributes[:'model_id']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'enabled_actions')
|
73
|
+
if (value = attributes[:'enabled_actions']).is_a?(Array)
|
74
|
+
self.enabled_actions = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'disabled_fields')
|
79
|
+
if (value = attributes[:'disabled_fields']).is_a?(Array)
|
80
|
+
self.disabled_fields = 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
|
+
if @model_id.nil?
|
90
|
+
invalid_properties.push('invalid value for "model_id", model_id cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if @model_id.to_s.length < 1
|
94
|
+
invalid_properties.push('invalid value for "model_id", the character length must be great than or equal to 1.')
|
95
|
+
end
|
96
|
+
|
97
|
+
if @enabled_actions.nil?
|
98
|
+
invalid_properties.push('invalid value for "enabled_actions", enabled_actions cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @disabled_fields.nil?
|
102
|
+
invalid_properties.push('invalid value for "disabled_fields", disabled_fields cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
invalid_properties
|
106
|
+
end
|
107
|
+
|
108
|
+
# Check to see if the all the properties in the model are valid
|
109
|
+
# @return true if the model is valid
|
110
|
+
def valid?
|
111
|
+
return false if @model_id.nil?
|
112
|
+
return false if @model_id.to_s.length < 1
|
113
|
+
return false if @enabled_actions.nil?
|
114
|
+
return false if @disabled_fields.nil?
|
115
|
+
true
|
116
|
+
end
|
117
|
+
|
118
|
+
# Custom attribute writer method with validation
|
119
|
+
# @param [Object] model_id Value to be assigned
|
120
|
+
def model_id=(model_id)
|
121
|
+
if model_id.nil?
|
122
|
+
fail ArgumentError, 'model_id cannot be nil'
|
123
|
+
end
|
124
|
+
|
125
|
+
if model_id.to_s.length < 1
|
126
|
+
fail ArgumentError, 'invalid value for "model_id", the character length must be great than or equal to 1.'
|
127
|
+
end
|
128
|
+
|
129
|
+
@model_id = model_id
|
130
|
+
end
|
131
|
+
|
132
|
+
# Checks equality by comparing each attribute.
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def ==(o)
|
135
|
+
return true if self.equal?(o)
|
136
|
+
self.class == o.class &&
|
137
|
+
model_id == o.model_id &&
|
138
|
+
enabled_actions == o.enabled_actions &&
|
139
|
+
disabled_fields == o.disabled_fields
|
140
|
+
end
|
141
|
+
|
142
|
+
# @see the `==` method
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def eql?(o)
|
145
|
+
self == o
|
146
|
+
end
|
147
|
+
|
148
|
+
# Calculates hash code according to all attributes.
|
149
|
+
# @return [Integer] Hash code
|
150
|
+
def hash
|
151
|
+
[model_id, enabled_actions, disabled_fields].hash
|
152
|
+
end
|
153
|
+
|
154
|
+
# Builds the object from hash
|
155
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
156
|
+
# @return [Object] Returns the model itself
|
157
|
+
def self.build_from_hash(attributes)
|
158
|
+
new.build_from_hash(attributes)
|
159
|
+
end
|
160
|
+
|
161
|
+
# Builds the object from hash
|
162
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
163
|
+
# @return [Object] Returns the model itself
|
164
|
+
def build_from_hash(attributes)
|
165
|
+
return nil unless attributes.is_a?(Hash)
|
166
|
+
self.class.openapi_types.each_pair do |key, type|
|
167
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
168
|
+
self.send("#{key}=", nil)
|
169
|
+
elsif type =~ /\AArray<(.*)>/i
|
170
|
+
# check to ensure the input is an array given that the attribute
|
171
|
+
# is documented as an array but the input is not
|
172
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
173
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
174
|
+
end
|
175
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
176
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
self
|
181
|
+
end
|
182
|
+
|
183
|
+
# Deserializes the data based on type
|
184
|
+
# @param string type Data type
|
185
|
+
# @param string value Value to be deserialized
|
186
|
+
# @return [Object] Deserialized data
|
187
|
+
def _deserialize(type, value)
|
188
|
+
case type.to_sym
|
189
|
+
when :Time
|
190
|
+
Time.parse(value)
|
191
|
+
when :Date
|
192
|
+
Date.parse(value)
|
193
|
+
when :String
|
194
|
+
value
|
195
|
+
when :Integer
|
196
|
+
value.to_i
|
197
|
+
when :Float
|
198
|
+
value.to_f
|
199
|
+
when :Boolean
|
200
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
201
|
+
true
|
202
|
+
else
|
203
|
+
false
|
204
|
+
end
|
205
|
+
when :Object
|
206
|
+
# generic object (usually a Hash), return directly
|
207
|
+
value
|
208
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
209
|
+
inner_type = Regexp.last_match[:inner_type]
|
210
|
+
value.map { |v| _deserialize(inner_type, v) }
|
211
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
212
|
+
k_type = Regexp.last_match[:k_type]
|
213
|
+
v_type = Regexp.last_match[:v_type]
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each do |k, v|
|
216
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
else # model
|
220
|
+
# models (e.g. Pet) or oneOf
|
221
|
+
klass = MergeTicketingClient.const_get(type)
|
222
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the string representation of the object
|
227
|
+
# @return [String] String presentation of the object
|
228
|
+
def to_s
|
229
|
+
to_hash.to_s
|
230
|
+
end
|
231
|
+
|
232
|
+
# to_body is an alias to to_hash (backward compatibility)
|
233
|
+
# @return [Hash] Returns the object in the form of hash
|
234
|
+
def to_body
|
235
|
+
to_hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Returns the object in the form of hash
|
239
|
+
# @return [Hash] Returns the object in the form of hash
|
240
|
+
def to_hash
|
241
|
+
hash = {}
|
242
|
+
self.class.attribute_map.each_pair do |attr, param|
|
243
|
+
value = self.send(attr)
|
244
|
+
if value.nil?
|
245
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
246
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
247
|
+
end
|
248
|
+
|
249
|
+
hash[param] = _to_hash(value)
|
250
|
+
end
|
251
|
+
hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Outputs non-array value in the form of hash
|
255
|
+
# For object, use to_hash. Otherwise, just return the value
|
256
|
+
# @param [Object] value Any valid value
|
257
|
+
# @return [Hash] Returns the value in the form of hash
|
258
|
+
def _to_hash(value)
|
259
|
+
if value.is_a?(Array)
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
261
|
+
elsif value.is_a?(Hash)
|
262
|
+
{}.tap do |hash|
|
263
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
264
|
+
end
|
265
|
+
elsif value.respond_to? :to_hash
|
266
|
+
value.to_hash
|
267
|
+
else
|
268
|
+
value
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
end
|
273
|
+
|
274
|
+
end
|
@@ -30,6 +30,7 @@ module MergeTicketingClient
|
|
30
30
|
# Whether this condition can only be applied once. If false, the condition can be AND'd together multiple times.
|
31
31
|
attr_accessor :is_unique
|
32
32
|
|
33
|
+
# The type of value(s) that can be set for this condition. * `BOOLEAN` - BOOLEAN * `DATE` - DATE * `DATE_TIME` - DATE_TIME * `INTEGER` - INTEGER * `FLOAT` - FLOAT * `STRING` - STRING * `LIST_OF_STRINGS` - LIST_OF_STRINGS
|
33
34
|
attr_accessor :condition_type
|
34
35
|
|
35
36
|
# The schemas for the operators that can be used on a condition.
|
@@ -36,13 +36,16 @@ module MergeTicketingClient
|
|
36
36
|
# The contact's account.
|
37
37
|
attr_accessor :account
|
38
38
|
|
39
|
-
attr_accessor :remote_data
|
40
|
-
|
41
39
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
42
40
|
attr_accessor :remote_was_deleted
|
43
41
|
|
42
|
+
# This is the datetime that this object was last updated by Merge
|
43
|
+
attr_accessor :modified_at
|
44
|
+
|
44
45
|
attr_accessor :field_mappings
|
45
46
|
|
47
|
+
attr_accessor :remote_data
|
48
|
+
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
50
|
def self.attribute_map
|
48
51
|
{
|
@@ -53,9 +56,10 @@ module MergeTicketingClient
|
|
53
56
|
:'phone_number' => :'phone_number',
|
54
57
|
:'details' => :'details',
|
55
58
|
:'account' => :'account',
|
56
|
-
:'remote_data' => :'remote_data',
|
57
59
|
:'remote_was_deleted' => :'remote_was_deleted',
|
58
|
-
:'
|
60
|
+
:'modified_at' => :'modified_at',
|
61
|
+
:'field_mappings' => :'field_mappings',
|
62
|
+
:'remote_data' => :'remote_data'
|
59
63
|
}
|
60
64
|
end
|
61
65
|
|
@@ -74,9 +78,10 @@ module MergeTicketingClient
|
|
74
78
|
:'phone_number' => :'String',
|
75
79
|
:'details' => :'String',
|
76
80
|
:'account' => :'String',
|
77
|
-
:'remote_data' => :'Array<RemoteData>',
|
78
81
|
:'remote_was_deleted' => :'Boolean',
|
79
|
-
:'
|
82
|
+
:'modified_at' => :'Time',
|
83
|
+
:'field_mappings' => :'Hash<String, Object>',
|
84
|
+
:'remote_data' => :'Array<RemoteData>'
|
80
85
|
}
|
81
86
|
end
|
82
87
|
|
@@ -89,8 +94,8 @@ module MergeTicketingClient
|
|
89
94
|
:'phone_number',
|
90
95
|
:'details',
|
91
96
|
:'account',
|
92
|
-
:'
|
93
|
-
:'
|
97
|
+
:'field_mappings',
|
98
|
+
:'remote_data'
|
94
99
|
])
|
95
100
|
end
|
96
101
|
|
@@ -137,21 +142,25 @@ module MergeTicketingClient
|
|
137
142
|
self.account = attributes[:'account']
|
138
143
|
end
|
139
144
|
|
140
|
-
if attributes.key?(:'remote_data')
|
141
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
142
|
-
self.remote_data = value
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
145
|
if attributes.key?(:'remote_was_deleted')
|
147
146
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
148
147
|
end
|
149
148
|
|
149
|
+
if attributes.key?(:'modified_at')
|
150
|
+
self.modified_at = attributes[:'modified_at']
|
151
|
+
end
|
152
|
+
|
150
153
|
if attributes.key?(:'field_mappings')
|
151
154
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
152
155
|
self.field_mappings = value
|
153
156
|
end
|
154
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
|
155
164
|
end
|
156
165
|
|
157
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -179,9 +188,10 @@ module MergeTicketingClient
|
|
179
188
|
phone_number == o.phone_number &&
|
180
189
|
details == o.details &&
|
181
190
|
account == o.account &&
|
182
|
-
remote_data == o.remote_data &&
|
183
191
|
remote_was_deleted == o.remote_was_deleted &&
|
184
|
-
|
192
|
+
modified_at == o.modified_at &&
|
193
|
+
field_mappings == o.field_mappings &&
|
194
|
+
remote_data == o.remote_data
|
185
195
|
end
|
186
196
|
|
187
197
|
# @see the `==` method
|
@@ -193,7 +203,7 @@ module MergeTicketingClient
|
|
193
203
|
# Calculates hash code according to all attributes.
|
194
204
|
# @return [Integer] Hash code
|
195
205
|
def hash
|
196
|
-
[id, remote_id, name, email_address, phone_number, details, account,
|
206
|
+
[id, remote_id, name, email_address, phone_number, details, account, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
197
207
|
end
|
198
208
|
|
199
209
|
# 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 EnabledActionsEnum
|
18
|
+
READ = "READ".freeze
|
19
|
+
WRITE = "WRITE".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 ["READ", "WRITE", ].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
|
+
EnabledActionsEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|
@@ -33,9 +33,12 @@ module MergeTicketingClient
|
|
33
33
|
# An integer number of minutes between [30, 720 or 10080 if for a Magic Link URL] for how long this token is valid. Defaults to 30.
|
34
34
|
attr_accessor :link_expiry_mins
|
35
35
|
|
36
|
-
# Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/
|
36
|
+
# Whether to generate a Magic Link URL. Defaults to false. For more information on Magic Link, see https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
37
37
|
attr_accessor :should_create_magic_link_url
|
38
38
|
|
39
|
+
# An array of objects to specify the models and fields that will be disabled for a given Linked Account. Each object uses model_id, enabled_actions, and disabled_fields to specify the model, method, and fields that are scoped for a given Linked Account.
|
40
|
+
attr_accessor :common_models
|
41
|
+
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
@@ -45,7 +48,8 @@ module MergeTicketingClient
|
|
45
48
|
:'categories' => :'categories',
|
46
49
|
:'integration' => :'integration',
|
47
50
|
:'link_expiry_mins' => :'link_expiry_mins',
|
48
|
-
:'should_create_magic_link_url' => :'should_create_magic_link_url'
|
51
|
+
:'should_create_magic_link_url' => :'should_create_magic_link_url',
|
52
|
+
:'common_models' => :'common_models'
|
49
53
|
}
|
50
54
|
end
|
51
55
|
|
@@ -63,7 +67,8 @@ module MergeTicketingClient
|
|
63
67
|
:'categories' => :'Array<CategoriesEnum>',
|
64
68
|
:'integration' => :'String',
|
65
69
|
:'link_expiry_mins' => :'Integer',
|
66
|
-
:'should_create_magic_link_url' => :'Boolean'
|
70
|
+
:'should_create_magic_link_url' => :'Boolean',
|
71
|
+
:'common_models' => :'Array<CommonModelScopesBodyRequest>'
|
67
72
|
}
|
68
73
|
end
|
69
74
|
|
@@ -71,7 +76,8 @@ module MergeTicketingClient
|
|
71
76
|
def self.openapi_nullable
|
72
77
|
Set.new([
|
73
78
|
:'integration',
|
74
|
-
:'should_create_magic_link_url'
|
79
|
+
:'should_create_magic_link_url',
|
80
|
+
:'common_models'
|
75
81
|
])
|
76
82
|
end
|
77
83
|
|
@@ -123,6 +129,12 @@ module MergeTicketingClient
|
|
123
129
|
else
|
124
130
|
self.should_create_magic_link_url = false
|
125
131
|
end
|
132
|
+
|
133
|
+
if attributes.key?(:'common_models')
|
134
|
+
if (value = attributes[:'common_models']).is_a?(Array)
|
135
|
+
self.common_models = value
|
136
|
+
end
|
137
|
+
end
|
126
138
|
end
|
127
139
|
|
128
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -292,7 +304,8 @@ module MergeTicketingClient
|
|
292
304
|
categories == o.categories &&
|
293
305
|
integration == o.integration &&
|
294
306
|
link_expiry_mins == o.link_expiry_mins &&
|
295
|
-
should_create_magic_link_url == o.should_create_magic_link_url
|
307
|
+
should_create_magic_link_url == o.should_create_magic_link_url &&
|
308
|
+
common_models == o.common_models
|
296
309
|
end
|
297
310
|
|
298
311
|
# @see the `==` method
|
@@ -304,7 +317,7 @@ module MergeTicketingClient
|
|
304
317
|
# Calculates hash code according to all attributes.
|
305
318
|
# @return [Integer] Hash code
|
306
319
|
def hash
|
307
|
-
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url].hash
|
320
|
+
[end_user_email_address, end_user_organization_name, end_user_origin_id, categories, integration, link_expiry_mins, should_create_magic_link_url, common_models].hash
|
308
321
|
end
|
309
322
|
|
310
323
|
# Builds the object from hash
|
@@ -17,6 +17,7 @@ module MergeTicketingClient
|
|
17
17
|
class Issue
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
# Status of the issue. Options: ('ONGOING', 'RESOLVED') * `ONGOING` - ONGOING * `RESOLVED` - RESOLVED
|
20
21
|
attr_accessor :status
|
21
22
|
|
22
23
|
attr_accessor :error_description
|
@@ -60,7 +61,7 @@ module MergeTicketingClient
|
|
60
61
|
:'first_incident_time' => :'Time',
|
61
62
|
:'last_incident_time' => :'Time',
|
62
63
|
:'is_muted' => :'Boolean',
|
63
|
-
:'error_details' => :'
|
64
|
+
:'error_details' => :'Array<String>'
|
64
65
|
}
|
65
66
|
end
|
66
67
|
|
@@ -118,7 +119,7 @@ module MergeTicketingClient
|
|
118
119
|
end
|
119
120
|
|
120
121
|
if attributes.key?(:'error_details')
|
121
|
-
if (value = attributes[:'error_details']).is_a?(
|
122
|
+
if (value = attributes[:'error_details']).is_a?(Array)
|
122
123
|
self.error_details = value
|
123
124
|
end
|
124
125
|
end
|
@@ -0,0 +1,49 @@
|
|
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 ItemFormatEnum
|
18
|
+
STRING = "string".freeze
|
19
|
+
NUMBER = "number".freeze
|
20
|
+
DATE = "date".freeze
|
21
|
+
DATETIME = "datetime".freeze
|
22
|
+
BOOL = "bool".freeze
|
23
|
+
LIST = "list".freeze
|
24
|
+
|
25
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
attr_accessor :raw_value
|
29
|
+
|
30
|
+
# Builds the enum from string
|
31
|
+
# @param [String] The enum value in the form of the string
|
32
|
+
# @return [String] The enum value
|
33
|
+
def build_from_hash(value)
|
34
|
+
@raw_value = value
|
35
|
+
if ["string", "number", "date", "datetime", "bool", "list", ].include? value
|
36
|
+
@value = value
|
37
|
+
else
|
38
|
+
@value = MERGE_NONSTANDARD_VALUE
|
39
|
+
end
|
40
|
+
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.build_from_hash(value)
|
45
|
+
ItemFormatEnum.new.build_from_hash(value)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|