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