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,238 @@
|
|
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 ItemSchema
|
18
|
+
attr_accessor :item_type
|
19
|
+
|
20
|
+
attr_accessor :item_format
|
21
|
+
|
22
|
+
attr_accessor :item_choices
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'item_type' => :'item_type',
|
28
|
+
:'item_format' => :'item_format',
|
29
|
+
:'item_choices' => :'item_choices'
|
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
|
+
:'item_type' => :'ItemTypeEnum',
|
42
|
+
:'item_format' => :'ItemFormatEnum',
|
43
|
+
:'item_choices' => :'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::ItemSchema` 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::ItemSchema`. 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?(:'item_type')
|
69
|
+
self.item_type = attributes[:'item_type']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'item_format')
|
73
|
+
self.item_format = attributes[:'item_format']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'item_choices')
|
77
|
+
if (value = attributes[:'item_choices']).is_a?(Array)
|
78
|
+
self.item_choices = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
invalid_properties
|
88
|
+
end
|
89
|
+
|
90
|
+
# Check to see if the all the properties in the model are valid
|
91
|
+
# @return true if the model is valid
|
92
|
+
def valid?
|
93
|
+
true
|
94
|
+
end
|
95
|
+
|
96
|
+
# Checks equality by comparing each attribute.
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def ==(o)
|
99
|
+
return true if self.equal?(o)
|
100
|
+
self.class == o.class &&
|
101
|
+
item_type == o.item_type &&
|
102
|
+
item_format == o.item_format &&
|
103
|
+
item_choices == o.item_choices
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Integer] Hash code
|
114
|
+
def hash
|
115
|
+
[item_type, item_format, item_choices].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def self.build_from_hash(attributes)
|
122
|
+
new.build_from_hash(attributes)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Builds the object from hash
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
127
|
+
# @return [Object] Returns the model itself
|
128
|
+
def build_from_hash(attributes)
|
129
|
+
return nil unless attributes.is_a?(Hash)
|
130
|
+
self.class.openapi_types.each_pair do |key, type|
|
131
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
132
|
+
self.send("#{key}=", nil)
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
134
|
+
# check to ensure the input is an array given that the attribute
|
135
|
+
# is documented as an array but the input is not
|
136
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
137
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
138
|
+
end
|
139
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
140
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
self
|
145
|
+
end
|
146
|
+
|
147
|
+
# Deserializes the data based on type
|
148
|
+
# @param string type Data type
|
149
|
+
# @param string value Value to be deserialized
|
150
|
+
# @return [Object] Deserialized data
|
151
|
+
def _deserialize(type, value)
|
152
|
+
case type.to_sym
|
153
|
+
when :Time
|
154
|
+
Time.parse(value)
|
155
|
+
when :Date
|
156
|
+
Date.parse(value)
|
157
|
+
when :String
|
158
|
+
value
|
159
|
+
when :Integer
|
160
|
+
value.to_i
|
161
|
+
when :Float
|
162
|
+
value.to_f
|
163
|
+
when :Boolean
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
165
|
+
true
|
166
|
+
else
|
167
|
+
false
|
168
|
+
end
|
169
|
+
when :Object
|
170
|
+
# generic object (usually a Hash), return directly
|
171
|
+
value
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
178
|
+
{}.tap do |hash|
|
179
|
+
value.each do |k, v|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
181
|
+
end
|
182
|
+
end
|
183
|
+
else # model
|
184
|
+
# models (e.g. Pet) or oneOf
|
185
|
+
klass = MergeTicketingClient.const_get(type)
|
186
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the string representation of the object
|
191
|
+
# @return [String] String presentation of the object
|
192
|
+
def to_s
|
193
|
+
to_hash.to_s
|
194
|
+
end
|
195
|
+
|
196
|
+
# to_body is an alias to to_hash (backward compatibility)
|
197
|
+
# @return [Hash] Returns the object in the form of hash
|
198
|
+
def to_body
|
199
|
+
to_hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Returns the object in the form of hash
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_hash
|
205
|
+
hash = {}
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
207
|
+
value = self.send(attr)
|
208
|
+
if value.nil?
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
211
|
+
end
|
212
|
+
|
213
|
+
hash[param] = _to_hash(value)
|
214
|
+
end
|
215
|
+
hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Outputs non-array value in the form of hash
|
219
|
+
# For object, use to_hash. Otherwise, just return the value
|
220
|
+
# @param [Object] value Any valid value
|
221
|
+
# @return [Hash] Returns the value in the form of hash
|
222
|
+
def _to_hash(value)
|
223
|
+
if value.is_a?(Array)
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
225
|
+
elsif value.is_a?(Hash)
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
228
|
+
end
|
229
|
+
elsif value.respond_to? :to_hash
|
230
|
+
value.to_hash
|
231
|
+
else
|
232
|
+
value
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
237
|
+
|
238
|
+
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 ItemTypeEnum
|
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
|
+
ItemTypeEnum.new.build_from_hash(value)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
end
|
@@ -17,6 +17,8 @@ module MergeTicketingClient
|
|
17
17
|
class MetaResponse
|
18
18
|
attr_accessor :request_schema
|
19
19
|
|
20
|
+
attr_accessor :remote_field_classes
|
21
|
+
|
20
22
|
attr_accessor :status
|
21
23
|
|
22
24
|
attr_accessor :has_conditional_params
|
@@ -27,6 +29,7 @@ module MergeTicketingClient
|
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'request_schema' => :'request_schema',
|
32
|
+
:'remote_field_classes' => :'remote_field_classes',
|
30
33
|
:'status' => :'status',
|
31
34
|
:'has_conditional_params' => :'has_conditional_params',
|
32
35
|
:'has_required_linked_account_params' => :'has_required_linked_account_params'
|
@@ -42,6 +45,7 @@ module MergeTicketingClient
|
|
42
45
|
def self.openapi_types
|
43
46
|
{
|
44
47
|
:'request_schema' => :'Hash<String, Object>',
|
48
|
+
:'remote_field_classes' => :'Hash<String, Object>',
|
45
49
|
:'status' => :'LinkedAccountStatus',
|
46
50
|
:'has_conditional_params' => :'Boolean',
|
47
51
|
:'has_required_linked_account_params' => :'Boolean'
|
@@ -75,6 +79,12 @@ module MergeTicketingClient
|
|
75
79
|
end
|
76
80
|
end
|
77
81
|
|
82
|
+
if attributes.key?(:'remote_field_classes')
|
83
|
+
if (value = attributes[:'remote_field_classes']).is_a?(Hash)
|
84
|
+
self.remote_field_classes = value
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
78
88
|
if attributes.key?(:'status')
|
79
89
|
self.status = attributes[:'status']
|
80
90
|
end
|
@@ -122,6 +132,7 @@ module MergeTicketingClient
|
|
122
132
|
return true if self.equal?(o)
|
123
133
|
self.class == o.class &&
|
124
134
|
request_schema == o.request_schema &&
|
135
|
+
remote_field_classes == o.remote_field_classes &&
|
125
136
|
status == o.status &&
|
126
137
|
has_conditional_params == o.has_conditional_params &&
|
127
138
|
has_required_linked_account_params == o.has_required_linked_account_params
|
@@ -136,7 +147,7 @@ module MergeTicketingClient
|
|
136
147
|
# Calculates hash code according to all attributes.
|
137
148
|
# @return [Integer] Hash code
|
138
149
|
def hash
|
139
|
-
[request_schema, status, has_conditional_params, has_required_linked_account_params].hash
|
150
|
+
[request_schema, remote_field_classes, status, has_conditional_params, has_required_linked_account_params].hash
|
140
151
|
end
|
141
152
|
|
142
153
|
# Builds the object from hash
|
@@ -22,7 +22,7 @@ module MergeTicketingClient
|
|
22
22
|
# The data for the form field.
|
23
23
|
attr_accessor :data
|
24
24
|
|
25
|
-
# The encoding of the value of `data`. Defaults to `RAW` if not defined.
|
25
|
+
# The encoding of the value of `data`. Defaults to `RAW` if not defined. * `RAW` - RAW * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64
|
26
26
|
attr_accessor :encoding
|
27
27
|
|
28
28
|
# The file name of the form field, if the field is for a file.
|
@@ -27,15 +27,12 @@ module MergeTicketingClient
|
|
27
27
|
# The ticket's due date.
|
28
28
|
attr_accessor :due_date
|
29
29
|
|
30
|
-
# The current status of the ticket.
|
30
|
+
# The current status of the ticket. * `OPEN` - OPEN * `CLOSED` - CLOSED * `IN_PROGRESS` - IN_PROGRESS * `ON_HOLD` - ON_HOLD
|
31
31
|
attr_accessor :status
|
32
32
|
|
33
33
|
# The ticket’s description. HTML version of description is mapped if supported by the third-party platform.
|
34
34
|
attr_accessor :description
|
35
35
|
|
36
|
-
# The project the ticket belongs to.
|
37
|
-
attr_accessor :project
|
38
|
-
|
39
36
|
attr_accessor :collections
|
40
37
|
|
41
38
|
# The ticket's type.
|
@@ -58,13 +55,15 @@ module MergeTicketingClient
|
|
58
55
|
# The 3rd party url of the Ticket.
|
59
56
|
attr_accessor :ticket_url
|
60
57
|
|
61
|
-
# The priority or urgency of the Ticket.
|
58
|
+
# The priority or urgency of the Ticket. * `URGENT` - URGENT * `HIGH` - HIGH * `NORMAL` - NORMAL * `LOW` - LOW
|
62
59
|
attr_accessor :priority
|
63
60
|
|
64
61
|
attr_accessor :integration_params
|
65
62
|
|
66
63
|
attr_accessor :linked_account_params
|
67
64
|
|
65
|
+
attr_accessor :remote_fields
|
66
|
+
|
68
67
|
# Attribute mapping from ruby-style variable name to JSON key.
|
69
68
|
def self.attribute_map
|
70
69
|
{
|
@@ -74,7 +73,6 @@ module MergeTicketingClient
|
|
74
73
|
:'due_date' => :'due_date',
|
75
74
|
:'status' => :'status',
|
76
75
|
:'description' => :'description',
|
77
|
-
:'project' => :'project',
|
78
76
|
:'collections' => :'collections',
|
79
77
|
:'ticket_type' => :'ticket_type',
|
80
78
|
:'account' => :'account',
|
@@ -85,7 +83,8 @@ module MergeTicketingClient
|
|
85
83
|
:'ticket_url' => :'ticket_url',
|
86
84
|
:'priority' => :'priority',
|
87
85
|
:'integration_params' => :'integration_params',
|
88
|
-
:'linked_account_params' => :'linked_account_params'
|
86
|
+
:'linked_account_params' => :'linked_account_params',
|
87
|
+
:'remote_fields' => :'remote_fields'
|
89
88
|
}
|
90
89
|
end
|
91
90
|
|
@@ -103,7 +102,6 @@ module MergeTicketingClient
|
|
103
102
|
:'due_date' => :'Time',
|
104
103
|
:'status' => :'TicketStatusEnum',
|
105
104
|
:'description' => :'String',
|
106
|
-
:'project' => :'String',
|
107
105
|
:'collections' => :'Array<String>',
|
108
106
|
:'ticket_type' => :'String',
|
109
107
|
:'account' => :'String',
|
@@ -114,7 +112,8 @@ module MergeTicketingClient
|
|
114
112
|
:'ticket_url' => :'String',
|
115
113
|
:'priority' => :'PriorityEnum',
|
116
114
|
:'integration_params' => :'Hash<String, Object>',
|
117
|
-
:'linked_account_params' => :'Hash<String, Object>'
|
115
|
+
:'linked_account_params' => :'Hash<String, Object>',
|
116
|
+
:'remote_fields' => :'Array<RemoteFieldRequest>'
|
118
117
|
}
|
119
118
|
end
|
120
119
|
|
@@ -126,7 +125,6 @@ module MergeTicketingClient
|
|
126
125
|
:'due_date',
|
127
126
|
:'status',
|
128
127
|
:'description',
|
129
|
-
:'project',
|
130
128
|
:'ticket_type',
|
131
129
|
:'account',
|
132
130
|
:'contact',
|
@@ -135,7 +133,7 @@ module MergeTicketingClient
|
|
135
133
|
:'ticket_url',
|
136
134
|
:'priority',
|
137
135
|
:'integration_params',
|
138
|
-
:'linked_account_params'
|
136
|
+
:'linked_account_params',
|
139
137
|
])
|
140
138
|
end
|
141
139
|
|
@@ -180,10 +178,6 @@ module MergeTicketingClient
|
|
180
178
|
self.description = attributes[:'description']
|
181
179
|
end
|
182
180
|
|
183
|
-
if attributes.key?(:'project')
|
184
|
-
self.project = attributes[:'project']
|
185
|
-
end
|
186
|
-
|
187
181
|
if attributes.key?(:'collections')
|
188
182
|
if (value = attributes[:'collections']).is_a?(Array)
|
189
183
|
self.collections = value
|
@@ -235,6 +229,12 @@ module MergeTicketingClient
|
|
235
229
|
self.linked_account_params = value
|
236
230
|
end
|
237
231
|
end
|
232
|
+
|
233
|
+
if attributes.key?(:'remote_fields')
|
234
|
+
if (value = attributes[:'remote_fields']).is_a?(Array)
|
235
|
+
self.remote_fields = value
|
236
|
+
end
|
237
|
+
end
|
238
238
|
end
|
239
239
|
|
240
240
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -276,7 +276,6 @@ module MergeTicketingClient
|
|
276
276
|
due_date == o.due_date &&
|
277
277
|
status == o.status &&
|
278
278
|
description == o.description &&
|
279
|
-
project == o.project &&
|
280
279
|
collections == o.collections &&
|
281
280
|
ticket_type == o.ticket_type &&
|
282
281
|
account == o.account &&
|
@@ -287,7 +286,8 @@ module MergeTicketingClient
|
|
287
286
|
ticket_url == o.ticket_url &&
|
288
287
|
priority == o.priority &&
|
289
288
|
integration_params == o.integration_params &&
|
290
|
-
linked_account_params == o.linked_account_params
|
289
|
+
linked_account_params == o.linked_account_params &&
|
290
|
+
remote_fields == o.remote_fields
|
291
291
|
end
|
292
292
|
|
293
293
|
# @see the `==` method
|
@@ -299,7 +299,7 @@ module MergeTicketingClient
|
|
299
299
|
# Calculates hash code according to all attributes.
|
300
300
|
# @return [Integer] Hash code
|
301
301
|
def hash
|
302
|
-
[name, assignees, creator, due_date, status, description,
|
302
|
+
[name, assignees, creator, due_date, status, description, collections, ticket_type, account, contact, parent_ticket, tags, completed_at, ticket_url, priority, integration_params, linked_account_params, remote_fields].hash
|
303
303
|
end
|
304
304
|
|
305
305
|
# Builds the object from hash
|
@@ -27,13 +27,16 @@ module MergeTicketingClient
|
|
27
27
|
# The project's description.
|
28
28
|
attr_accessor :description
|
29
29
|
|
30
|
-
attr_accessor :remote_data
|
31
|
-
|
32
30
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
33
31
|
attr_accessor :remote_was_deleted
|
34
32
|
|
33
|
+
# This is the datetime that this object was last updated by Merge
|
34
|
+
attr_accessor :modified_at
|
35
|
+
|
35
36
|
attr_accessor :field_mappings
|
36
37
|
|
38
|
+
attr_accessor :remote_data
|
39
|
+
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
@@ -41,9 +44,10 @@ module MergeTicketingClient
|
|
41
44
|
:'remote_id' => :'remote_id',
|
42
45
|
:'name' => :'name',
|
43
46
|
:'description' => :'description',
|
44
|
-
:'remote_data' => :'remote_data',
|
45
47
|
:'remote_was_deleted' => :'remote_was_deleted',
|
46
|
-
:'
|
48
|
+
:'modified_at' => :'modified_at',
|
49
|
+
:'field_mappings' => :'field_mappings',
|
50
|
+
:'remote_data' => :'remote_data'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
@@ -59,9 +63,10 @@ module MergeTicketingClient
|
|
59
63
|
:'remote_id' => :'String',
|
60
64
|
:'name' => :'String',
|
61
65
|
:'description' => :'String',
|
62
|
-
:'remote_data' => :'Array<RemoteData>',
|
63
66
|
:'remote_was_deleted' => :'Boolean',
|
64
|
-
:'
|
67
|
+
:'modified_at' => :'Time',
|
68
|
+
:'field_mappings' => :'Hash<String, Object>',
|
69
|
+
:'remote_data' => :'Array<RemoteData>'
|
65
70
|
}
|
66
71
|
end
|
67
72
|
|
@@ -71,8 +76,8 @@ module MergeTicketingClient
|
|
71
76
|
:'remote_id',
|
72
77
|
:'name',
|
73
78
|
:'description',
|
74
|
-
:'
|
75
|
-
:'
|
79
|
+
:'field_mappings',
|
80
|
+
:'remote_data'
|
76
81
|
])
|
77
82
|
end
|
78
83
|
|
@@ -107,21 +112,25 @@ module MergeTicketingClient
|
|
107
112
|
self.description = attributes[:'description']
|
108
113
|
end
|
109
114
|
|
110
|
-
if attributes.key?(:'remote_data')
|
111
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
112
|
-
self.remote_data = value
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
115
|
if attributes.key?(:'remote_was_deleted')
|
117
116
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
118
117
|
end
|
119
118
|
|
119
|
+
if attributes.key?(:'modified_at')
|
120
|
+
self.modified_at = attributes[:'modified_at']
|
121
|
+
end
|
122
|
+
|
120
123
|
if attributes.key?(:'field_mappings')
|
121
124
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
122
125
|
self.field_mappings = value
|
123
126
|
end
|
124
127
|
end
|
128
|
+
|
129
|
+
if attributes.key?(:'remote_data')
|
130
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
131
|
+
self.remote_data = value
|
132
|
+
end
|
133
|
+
end
|
125
134
|
end
|
126
135
|
|
127
136
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -146,9 +155,10 @@ module MergeTicketingClient
|
|
146
155
|
remote_id == o.remote_id &&
|
147
156
|
name == o.name &&
|
148
157
|
description == o.description &&
|
149
|
-
remote_data == o.remote_data &&
|
150
158
|
remote_was_deleted == o.remote_was_deleted &&
|
151
|
-
|
159
|
+
modified_at == o.modified_at &&
|
160
|
+
field_mappings == o.field_mappings &&
|
161
|
+
remote_data == o.remote_data
|
152
162
|
end
|
153
163
|
|
154
164
|
# @see the `==` method
|
@@ -160,7 +170,7 @@ module MergeTicketingClient
|
|
160
170
|
# Calculates hash code according to all attributes.
|
161
171
|
# @return [Integer] Hash code
|
162
172
|
def hash
|
163
|
-
[id, remote_id, name, description,
|
173
|
+
[id, remote_id, name, description, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
164
174
|
end
|
165
175
|
|
166
176
|
# Builds the object from hash
|
@@ -36,13 +36,14 @@ module MergeTicketingClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'path' => :'String',
|
39
|
-
:'data' => :'
|
39
|
+
:'data' => :'Object'
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
43
|
# List of attributes with nullable: true
|
44
44
|
def self.openapi_nullable
|
45
45
|
Set.new([
|
46
|
+
:'data'
|
46
47
|
])
|
47
48
|
end
|
48
49
|
|
@@ -169,14 +170,10 @@ module MergeTicketingClient
|
|
169
170
|
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
170
171
|
k_type = Regexp.last_match[:k_type]
|
171
172
|
v_type = Regexp.last_match[:v_type]
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
end
|
177
|
-
end
|
178
|
-
else
|
179
|
-
_deserialize(v_type, value)
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each do |k, v|
|
175
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
176
|
+
end
|
180
177
|
end
|
181
178
|
else # model
|
182
179
|
# models (e.g. Pet) or oneOf
|