merge_ticketing_client 1.0.3 → 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 +17 -6
- 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 +1 -1
- 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 +2 -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 +139 -92
@@ -56,7 +56,7 @@ module MergeTicketingClient
|
|
56
56
|
if @api_client.config.client_side_validation && parent_id.nil?
|
57
57
|
fail ArgumentError, "Missing the required parameter 'parent_id' when calling TicketsApi.tickets_collaborators_list"
|
58
58
|
end
|
59
|
-
allowable_values = ["teams"]
|
59
|
+
allowable_values = ["roles", "teams", "teams,roles"]
|
60
60
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
61
61
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
62
62
|
end
|
@@ -200,11 +200,11 @@ module MergeTicketingClient
|
|
200
200
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
201
201
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
202
202
|
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
203
|
-
# @option opts [Time] :modified_after If provided,
|
204
|
-
# @option opts [Time] :modified_before If provided,
|
203
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
204
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
205
205
|
# @option opts [Integer] :page_size Number of results to return per page.
|
206
206
|
# @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
|
207
|
-
# @option opts [String] :priority If provided, will only return tickets of this priority.
|
207
|
+
# @option opts [String] :priority If provided, will only return tickets of this priority. * `URGENT` - URGENT * `HIGH` - HIGH * `NORMAL` - NORMAL * `LOW` - LOW
|
208
208
|
# @option opts [String] :project_id If provided, will only return tickets for this project.
|
209
209
|
# @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
|
210
210
|
# @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
|
@@ -213,7 +213,7 @@ module MergeTicketingClient
|
|
213
213
|
# @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
|
214
214
|
# @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
|
215
215
|
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
216
|
-
# @option opts [String] :status If provided, will only return tickets of this status.
|
216
|
+
# @option opts [String] :status If provided, will only return tickets of this status. * `OPEN` - OPEN * `CLOSED` - CLOSED * `IN_PROGRESS` - IN_PROGRESS * `ON_HOLD` - ON_HOLD
|
217
217
|
# @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
|
218
218
|
# @option opts [String] :ticket_type If provided, will only return tickets of this type.
|
219
219
|
# @return [PaginatedTicketList]
|
@@ -240,11 +240,11 @@ module MergeTicketingClient
|
|
240
240
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
241
241
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
242
242
|
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
243
|
-
# @option opts [Time] :modified_after If provided,
|
244
|
-
# @option opts [Time] :modified_before If provided,
|
243
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
244
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
245
245
|
# @option opts [Integer] :page_size Number of results to return per page.
|
246
246
|
# @option opts [String] :parent_ticket_id If provided, will only return sub tickets of the parent_ticket_id.
|
247
|
-
# @option opts [String] :priority If provided, will only return tickets of this priority.
|
247
|
+
# @option opts [String] :priority If provided, will only return tickets of this priority. * `URGENT` - URGENT * `HIGH` - HIGH * `NORMAL` - NORMAL * `LOW` - LOW
|
248
248
|
# @option opts [String] :project_id If provided, will only return tickets for this project.
|
249
249
|
# @option opts [Time] :remote_created_after If provided, will only return tickets created in the third party platform after this datetime.
|
250
250
|
# @option opts [Time] :remote_created_before If provided, will only return tickets created in the third party platform before this datetime.
|
@@ -253,7 +253,7 @@ module MergeTicketingClient
|
|
253
253
|
# @option opts [Time] :remote_updated_after If provided, will only return tickets updated in the third party platform after this datetime.
|
254
254
|
# @option opts [Time] :remote_updated_before If provided, will only return tickets updated in the third party platform before this datetime.
|
255
255
|
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
256
|
-
# @option opts [String] :status If provided, will only return tickets of this status.
|
256
|
+
# @option opts [String] :status If provided, will only return tickets of this status. * `OPEN` - OPEN * `CLOSED` - CLOSED * `IN_PROGRESS` - IN_PROGRESS * `ON_HOLD` - ON_HOLD
|
257
257
|
# @option opts [String] :tags If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
|
258
258
|
# @option opts [String] :ticket_type If provided, will only return tickets of this type.
|
259
259
|
# @return [Array<(PaginatedTicketList, Integer, Hash)>] PaginatedTicketList data, response status code and response headers
|
@@ -265,7 +265,7 @@ module MergeTicketingClient
|
|
265
265
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
266
266
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling TicketsApi.tickets_list"
|
267
267
|
end
|
268
|
-
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,collections,project", "assignees,collections,project,account", "assignees,collections,project,account,contact", "assignees,collections,project,account,contact,creator", "assignees,collections,project,account,contact,creator,parent_ticket", "assignees,collections,project,account,contact,parent_ticket", "assignees,collections,project,account,creator", "assignees,collections,project,account,creator,parent_ticket", "assignees,collections,project,account,parent_ticket", "assignees,collections,project,contact", "assignees,collections,project,contact,creator", "assignees,collections,project,contact,creator,parent_ticket", "assignees,collections,project,contact,parent_ticket", "assignees,collections,project,creator", "assignees,collections,project,creator,parent_ticket", "assignees,collections,project,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,creator", "assignees,project,account,contact,creator,parent_ticket", "assignees,project,account,contact,parent_ticket", "assignees,project,account,creator", "assignees,project,account,creator,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,creator", "assignees,project,contact,creator,parent_ticket", "assignees,project,contact,parent_ticket", "assignees,project,creator", "assignees,project,creator,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,collections,project", "attachments,assignees,collections,project,account", "attachments,assignees,collections,project,account,contact", "attachments,assignees,collections,project,account,contact,creator", "attachments,assignees,collections,project,account,contact,creator,parent_ticket", "attachments,assignees,collections,project,account,contact,parent_ticket", "attachments,assignees,collections,project,account,creator", "attachments,assignees,collections,project,account,creator,parent_ticket", "attachments,assignees,collections,project,account,parent_ticket", "attachments,assignees,collections,project,contact", "attachments,assignees,collections,project,contact,creator", "attachments,assignees,collections,project,contact,creator,parent_ticket", "attachments,assignees,collections,project,contact,parent_ticket", "attachments,assignees,collections,project,creator", "attachments,assignees,collections,project,creator,parent_ticket", "attachments,assignees,collections,project,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,creator", "attachments,assignees,project,account,contact,creator,parent_ticket", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,creator", "attachments,assignees,project,account,creator,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,creator", "attachments,assignees,project,contact,creator,parent_ticket", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,creator", "attachments,assignees,project,creator,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,collections,project", "attachments,collections,project,account", "attachments,collections,project,account,contact", "attachments,collections,project,account,contact,creator", "attachments,collections,project,account,contact,creator,parent_ticket", "attachments,collections,project,account,contact,parent_ticket", "attachments,collections,project,account,creator", "attachments,collections,project,account,creator,parent_ticket", "attachments,collections,project,account,parent_ticket", "attachments,collections,project,contact", "attachments,collections,project,contact,creator", "attachments,collections,project,contact,creator,parent_ticket", "attachments,collections,project,contact,parent_ticket", "attachments,collections,project,creator", "attachments,collections,project,creator,parent_ticket", "attachments,collections,project,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,creator", "attachments,project,account,contact,creator,parent_ticket", "attachments,project,account,contact,parent_ticket", "attachments,project,account,creator", "attachments,project,account,creator,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,creator", "attachments,project,contact,creator,parent_ticket", "attachments,project,contact,parent_ticket", "attachments,project,creator", "attachments,project,creator,parent_ticket", "attachments,project,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "collections,project", "collections,project,account", "collections,project,account,contact", "collections,project,account,contact,creator", "collections,project,account,contact,creator,parent_ticket", "collections,project,account,contact,parent_ticket", "collections,project,account,creator", "collections,project,account,creator,parent_ticket", "collections,project,account,parent_ticket", "collections,project,contact", "collections,project,contact,creator", "collections,project,contact,creator,parent_ticket", "collections,project,contact,parent_ticket", "collections,project,creator", "collections,project,creator,parent_ticket", "collections,project,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,creator", "project,account,contact,creator,parent_ticket", "project,account,contact,parent_ticket", "project,account,creator", "project,account,creator,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,creator", "project,contact,creator,parent_ticket", "project,contact,parent_ticket", "project,creator", "project,creator,parent_ticket", "project,parent_ticket"]
|
268
|
+
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket"]
|
269
269
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
270
270
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
271
271
|
end
|
@@ -575,7 +575,6 @@ module MergeTicketingClient
|
|
575
575
|
# @option opts [String] :cursor The pagination cursor value.
|
576
576
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
577
577
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
578
|
-
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
579
578
|
# @option opts [Integer] :page_size Number of results to return per page.
|
580
579
|
# @return [PaginatedRemoteFieldClassList]
|
581
580
|
def tickets_remote_field_classes_list(x_account_token, opts = {})
|
@@ -589,7 +588,6 @@ module MergeTicketingClient
|
|
589
588
|
# @option opts [String] :cursor The pagination cursor value.
|
590
589
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
591
590
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
592
|
-
# @option opts [Boolean] :include_remote_fields Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
|
593
591
|
# @option opts [Integer] :page_size Number of results to return per page.
|
594
592
|
# @return [Array<(PaginatedRemoteFieldClassList, Integer, Hash)>] PaginatedRemoteFieldClassList data, response status code and response headers
|
595
593
|
def tickets_remote_field_classes_list_with_http_info(x_account_token, opts = {})
|
@@ -608,7 +606,6 @@ module MergeTicketingClient
|
|
608
606
|
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
609
607
|
query_params[:'include_deleted_data'] = opts[:'include_deleted_data'] if !opts[:'include_deleted_data'].nil?
|
610
608
|
query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
|
611
|
-
query_params[:'include_remote_fields'] = opts[:'include_remote_fields'] if !opts[:'include_remote_fields'].nil?
|
612
609
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
613
610
|
|
614
611
|
# header parameters
|
@@ -683,7 +680,7 @@ module MergeTicketingClient
|
|
683
680
|
if @api_client.config.client_side_validation && id.nil?
|
684
681
|
fail ArgumentError, "Missing the required parameter 'id' when calling TicketsApi.tickets_retrieve"
|
685
682
|
end
|
686
|
-
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,collections,project", "assignees,collections,project,account", "assignees,collections,project,account,contact", "assignees,collections,project,account,contact,creator", "assignees,collections,project,account,contact,creator,parent_ticket", "assignees,collections,project,account,contact,parent_ticket", "assignees,collections,project,account,creator", "assignees,collections,project,account,creator,parent_ticket", "assignees,collections,project,account,parent_ticket", "assignees,collections,project,contact", "assignees,collections,project,contact,creator", "assignees,collections,project,contact,creator,parent_ticket", "assignees,collections,project,contact,parent_ticket", "assignees,collections,project,creator", "assignees,collections,project,creator,parent_ticket", "assignees,collections,project,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "assignees,project", "assignees,project,account", "assignees,project,account,contact", "assignees,project,account,contact,creator", "assignees,project,account,contact,creator,parent_ticket", "assignees,project,account,contact,parent_ticket", "assignees,project,account,creator", "assignees,project,account,creator,parent_ticket", "assignees,project,account,parent_ticket", "assignees,project,contact", "assignees,project,contact,creator", "assignees,project,contact,creator,parent_ticket", "assignees,project,contact,parent_ticket", "assignees,project,creator", "assignees,project,creator,parent_ticket", "assignees,project,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,collections,project", "attachments,assignees,collections,project,account", "attachments,assignees,collections,project,account,contact", "attachments,assignees,collections,project,account,contact,creator", "attachments,assignees,collections,project,account,contact,creator,parent_ticket", "attachments,assignees,collections,project,account,contact,parent_ticket", "attachments,assignees,collections,project,account,creator", "attachments,assignees,collections,project,account,creator,parent_ticket", "attachments,assignees,collections,project,account,parent_ticket", "attachments,assignees,collections,project,contact", "attachments,assignees,collections,project,contact,creator", "attachments,assignees,collections,project,contact,creator,parent_ticket", "attachments,assignees,collections,project,contact,parent_ticket", "attachments,assignees,collections,project,creator", "attachments,assignees,collections,project,creator,parent_ticket", "attachments,assignees,collections,project,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,assignees,project", "attachments,assignees,project,account", "attachments,assignees,project,account,contact", "attachments,assignees,project,account,contact,creator", "attachments,assignees,project,account,contact,creator,parent_ticket", "attachments,assignees,project,account,contact,parent_ticket", "attachments,assignees,project,account,creator", "attachments,assignees,project,account,creator,parent_ticket", "attachments,assignees,project,account,parent_ticket", "attachments,assignees,project,contact", "attachments,assignees,project,contact,creator", "attachments,assignees,project,contact,creator,parent_ticket", "attachments,assignees,project,contact,parent_ticket", "attachments,assignees,project,creator", "attachments,assignees,project,creator,parent_ticket", "attachments,assignees,project,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,collections,project", "attachments,collections,project,account", "attachments,collections,project,account,contact", "attachments,collections,project,account,contact,creator", "attachments,collections,project,account,contact,creator,parent_ticket", "attachments,collections,project,account,contact,parent_ticket", "attachments,collections,project,account,creator", "attachments,collections,project,account,creator,parent_ticket", "attachments,collections,project,account,parent_ticket", "attachments,collections,project,contact", "attachments,collections,project,contact,creator", "attachments,collections,project,contact,creator,parent_ticket", "attachments,collections,project,contact,parent_ticket", "attachments,collections,project,creator", "attachments,collections,project,creator,parent_ticket", "attachments,collections,project,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "attachments,project", "attachments,project,account", "attachments,project,account,contact", "attachments,project,account,contact,creator", "attachments,project,account,contact,creator,parent_ticket", "attachments,project,account,contact,parent_ticket", "attachments,project,account,creator", "attachments,project,account,creator,parent_ticket", "attachments,project,account,parent_ticket", "attachments,project,contact", "attachments,project,contact,creator", "attachments,project,contact,creator,parent_ticket", "attachments,project,contact,parent_ticket", "attachments,project,creator", "attachments,project,creator,parent_ticket", "attachments,project,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "collections,project", "collections,project,account", "collections,project,account,contact", "collections,project,account,contact,creator", "collections,project,account,contact,creator,parent_ticket", "collections,project,account,contact,parent_ticket", "collections,project,account,creator", "collections,project,account,creator,parent_ticket", "collections,project,account,parent_ticket", "collections,project,contact", "collections,project,contact,creator", "collections,project,contact,creator,parent_ticket", "collections,project,contact,parent_ticket", "collections,project,creator", "collections,project,creator,parent_ticket", "collections,project,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket", "project", "project,account", "project,account,contact", "project,account,contact,creator", "project,account,contact,creator,parent_ticket", "project,account,contact,parent_ticket", "project,account,creator", "project,account,creator,parent_ticket", "project,account,parent_ticket", "project,contact", "project,contact,creator", "project,contact,creator,parent_ticket", "project,contact,parent_ticket", "project,creator", "project,creator,parent_ticket", "project,parent_ticket"]
|
683
|
+
allowable_values = ["account", "account,contact", "account,contact,creator", "account,contact,creator,parent_ticket", "account,contact,parent_ticket", "account,creator", "account,creator,parent_ticket", "account,parent_ticket", "assignees", "assignees,account", "assignees,account,contact", "assignees,account,contact,creator", "assignees,account,contact,creator,parent_ticket", "assignees,account,contact,parent_ticket", "assignees,account,creator", "assignees,account,creator,parent_ticket", "assignees,account,parent_ticket", "assignees,collections", "assignees,collections,account", "assignees,collections,account,contact", "assignees,collections,account,contact,creator", "assignees,collections,account,contact,creator,parent_ticket", "assignees,collections,account,contact,parent_ticket", "assignees,collections,account,creator", "assignees,collections,account,creator,parent_ticket", "assignees,collections,account,parent_ticket", "assignees,collections,contact", "assignees,collections,contact,creator", "assignees,collections,contact,creator,parent_ticket", "assignees,collections,contact,parent_ticket", "assignees,collections,creator", "assignees,collections,creator,parent_ticket", "assignees,collections,parent_ticket", "assignees,contact", "assignees,contact,creator", "assignees,contact,creator,parent_ticket", "assignees,contact,parent_ticket", "assignees,creator", "assignees,creator,parent_ticket", "assignees,parent_ticket", "attachments", "attachments,account", "attachments,account,contact", "attachments,account,contact,creator", "attachments,account,contact,creator,parent_ticket", "attachments,account,contact,parent_ticket", "attachments,account,creator", "attachments,account,creator,parent_ticket", "attachments,account,parent_ticket", "attachments,assignees", "attachments,assignees,account", "attachments,assignees,account,contact", "attachments,assignees,account,contact,creator", "attachments,assignees,account,contact,creator,parent_ticket", "attachments,assignees,account,contact,parent_ticket", "attachments,assignees,account,creator", "attachments,assignees,account,creator,parent_ticket", "attachments,assignees,account,parent_ticket", "attachments,assignees,collections", "attachments,assignees,collections,account", "attachments,assignees,collections,account,contact", "attachments,assignees,collections,account,contact,creator", "attachments,assignees,collections,account,contact,creator,parent_ticket", "attachments,assignees,collections,account,contact,parent_ticket", "attachments,assignees,collections,account,creator", "attachments,assignees,collections,account,creator,parent_ticket", "attachments,assignees,collections,account,parent_ticket", "attachments,assignees,collections,contact", "attachments,assignees,collections,contact,creator", "attachments,assignees,collections,contact,creator,parent_ticket", "attachments,assignees,collections,contact,parent_ticket", "attachments,assignees,collections,creator", "attachments,assignees,collections,creator,parent_ticket", "attachments,assignees,collections,parent_ticket", "attachments,assignees,contact", "attachments,assignees,contact,creator", "attachments,assignees,contact,creator,parent_ticket", "attachments,assignees,contact,parent_ticket", "attachments,assignees,creator", "attachments,assignees,creator,parent_ticket", "attachments,assignees,parent_ticket", "attachments,collections", "attachments,collections,account", "attachments,collections,account,contact", "attachments,collections,account,contact,creator", "attachments,collections,account,contact,creator,parent_ticket", "attachments,collections,account,contact,parent_ticket", "attachments,collections,account,creator", "attachments,collections,account,creator,parent_ticket", "attachments,collections,account,parent_ticket", "attachments,collections,contact", "attachments,collections,contact,creator", "attachments,collections,contact,creator,parent_ticket", "attachments,collections,contact,parent_ticket", "attachments,collections,creator", "attachments,collections,creator,parent_ticket", "attachments,collections,parent_ticket", "attachments,contact", "attachments,contact,creator", "attachments,contact,creator,parent_ticket", "attachments,contact,parent_ticket", "attachments,creator", "attachments,creator,parent_ticket", "attachments,parent_ticket", "collections", "collections,account", "collections,account,contact", "collections,account,contact,creator", "collections,account,contact,creator,parent_ticket", "collections,account,contact,parent_ticket", "collections,account,creator", "collections,account,creator,parent_ticket", "collections,account,parent_ticket", "collections,contact", "collections,contact,creator", "collections,contact,creator,parent_ticket", "collections,contact,parent_ticket", "collections,creator", "collections,creator,parent_ticket", "collections,parent_ticket", "contact", "contact,creator", "contact,creator,parent_ticket", "contact,parent_ticket", "creator", "creator,parent_ticket", "parent_ticket"]
|
687
684
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
688
685
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
689
686
|
end
|
@@ -29,8 +29,8 @@ module MergeTicketingClient
|
|
29
29
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
30
30
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
31
31
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
32
|
-
# @option opts [Time] :modified_after If provided,
|
33
|
-
# @option opts [Time] :modified_before If provided,
|
32
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
33
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
34
34
|
# @option opts [Integer] :page_size Number of results to return per page.
|
35
35
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
36
36
|
# @return [PaginatedUserList]
|
@@ -49,8 +49,8 @@ module MergeTicketingClient
|
|
49
49
|
# @option opts [String] :expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
|
50
50
|
# @option opts [Boolean] :include_deleted_data Whether to include data that was marked as deleted by third party webhooks.
|
51
51
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
52
|
-
# @option opts [Time] :modified_after If provided,
|
53
|
-
# @option opts [Time] :modified_before If provided,
|
52
|
+
# @option opts [Time] :modified_after If provided, only objects synced by Merge after this date time will be returned.
|
53
|
+
# @option opts [Time] :modified_before If provided, only objects synced by Merge before this date time will be returned.
|
54
54
|
# @option opts [Integer] :page_size Number of results to return per page.
|
55
55
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
56
56
|
# @return [Array<(PaginatedUserList, Integer, Hash)>] PaginatedUserList data, response status code and response headers
|
@@ -62,7 +62,7 @@ module MergeTicketingClient
|
|
62
62
|
if @api_client.config.client_side_validation && x_account_token.nil?
|
63
63
|
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling UsersApi.users_list"
|
64
64
|
end
|
65
|
-
allowable_values = ["teams"]
|
65
|
+
allowable_values = ["roles", "teams", "teams,roles"]
|
66
66
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
67
67
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
68
68
|
end
|
@@ -149,7 +149,7 @@ module MergeTicketingClient
|
|
149
149
|
if @api_client.config.client_side_validation && id.nil?
|
150
150
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_retrieve"
|
151
151
|
end
|
152
|
-
allowable_values = ["teams"]
|
152
|
+
allowable_values = ["roles", "teams", "teams,roles"]
|
153
153
|
if @api_client.config.client_side_validation && opts[:'expand'] && !allowable_values.include?(opts[:'expand'])
|
154
154
|
fail ArgumentError, "invalid value for \"expand\", must be one of #{allowable_values}"
|
155
155
|
end
|
@@ -0,0 +1,46 @@
|
|
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 AccessLevelEnum
|
18
|
+
PRIVATE = "PRIVATE".freeze
|
19
|
+
COMPANY = "COMPANY".freeze
|
20
|
+
PUBLIC = "PUBLIC".freeze
|
21
|
+
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
26
|
+
|
27
|
+
# Builds the enum from string
|
28
|
+
# @param [String] The enum value in the form of the string
|
29
|
+
# @return [String] The enum value
|
30
|
+
def build_from_hash(value)
|
31
|
+
@raw_value = value
|
32
|
+
if ["PRIVATE", "COMPANY", "PUBLIC", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
AccessLevelEnum.new.build_from_hash(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -27,13 +27,16 @@ module MergeTicketingClient
|
|
27
27
|
# The account's domain names.
|
28
28
|
attr_accessor :domains
|
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
|
:'domains' => :'domains',
|
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
|
:'domains' => :'Array<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
|
:'domains',
|
74
|
-
:'
|
75
|
-
:'
|
79
|
+
:'field_mappings',
|
80
|
+
:'remote_data'
|
76
81
|
])
|
77
82
|
end
|
78
83
|
|
@@ -109,21 +114,25 @@ module MergeTicketingClient
|
|
109
114
|
end
|
110
115
|
end
|
111
116
|
|
112
|
-
if attributes.key?(:'remote_data')
|
113
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
114
|
-
self.remote_data = value
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
117
|
if attributes.key?(:'remote_was_deleted')
|
119
118
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
120
119
|
end
|
121
120
|
|
121
|
+
if attributes.key?(:'modified_at')
|
122
|
+
self.modified_at = attributes[:'modified_at']
|
123
|
+
end
|
124
|
+
|
122
125
|
if attributes.key?(:'field_mappings')
|
123
126
|
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
124
127
|
self.field_mappings = value
|
125
128
|
end
|
126
129
|
end
|
130
|
+
|
131
|
+
if attributes.key?(:'remote_data')
|
132
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
133
|
+
self.remote_data = value
|
134
|
+
end
|
135
|
+
end
|
127
136
|
end
|
128
137
|
|
129
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -148,9 +157,10 @@ module MergeTicketingClient
|
|
148
157
|
remote_id == o.remote_id &&
|
149
158
|
name == o.name &&
|
150
159
|
domains == o.domains &&
|
151
|
-
remote_data == o.remote_data &&
|
152
160
|
remote_was_deleted == o.remote_was_deleted &&
|
153
|
-
|
161
|
+
modified_at == o.modified_at &&
|
162
|
+
field_mappings == o.field_mappings &&
|
163
|
+
remote_data == o.remote_data
|
154
164
|
end
|
155
165
|
|
156
166
|
# @see the `==` method
|
@@ -162,7 +172,7 @@ module MergeTicketingClient
|
|
162
172
|
# Calculates hash code according to all attributes.
|
163
173
|
# @return [Integer] Hash code
|
164
174
|
def hash
|
165
|
-
[id, remote_id, name, domains,
|
175
|
+
[id, remote_id, name, domains, remote_was_deleted, modified_at, field_mappings, remote_data].hash
|
166
176
|
end
|
167
177
|
|
168
178
|
# Builds the object from hash
|
@@ -32,6 +32,12 @@ module MergeTicketingClient
|
|
32
32
|
|
33
33
|
attr_accessor :slug
|
34
34
|
|
35
|
+
# If checked, this integration will not appear in the linking flow, and will appear elsewhere with a Beta tag.
|
36
|
+
attr_accessor :is_in_beta
|
37
|
+
|
38
|
+
# Mapping of API endpoints to documentation urls for support. Example: {'GET': [['/common-model-scopes', 'https://docs.merge.dev/accounting/common-model-scopes/#common_model_scopes_retrieve'],['/common-model-actions', 'https://docs.merge.dev/accounting/common-model-actions/#common_model_actions_retrieve']], 'POST': []}
|
39
|
+
attr_accessor :api_endpoints_to_documentation_urls
|
40
|
+
|
35
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
42
|
def self.attribute_map
|
37
43
|
{
|
@@ -40,7 +46,9 @@ module MergeTicketingClient
|
|
40
46
|
:'image' => :'image',
|
41
47
|
:'square_image' => :'square_image',
|
42
48
|
:'color' => :'color',
|
43
|
-
:'slug' => :'slug'
|
49
|
+
:'slug' => :'slug',
|
50
|
+
:'is_in_beta' => :'is_in_beta',
|
51
|
+
:'api_endpoints_to_documentation_urls' => :'api_endpoints_to_documentation_urls'
|
44
52
|
}
|
45
53
|
end
|
46
54
|
|
@@ -57,7 +65,9 @@ module MergeTicketingClient
|
|
57
65
|
:'image' => :'String',
|
58
66
|
:'square_image' => :'String',
|
59
67
|
:'color' => :'String',
|
60
|
-
:'slug' => :'String'
|
68
|
+
:'slug' => :'String',
|
69
|
+
:'is_in_beta' => :'Boolean',
|
70
|
+
:'api_endpoints_to_documentation_urls' => :'Hash<String, Object>'
|
61
71
|
}
|
62
72
|
end
|
63
73
|
|
@@ -109,6 +119,16 @@ module MergeTicketingClient
|
|
109
119
|
if attributes.key?(:'slug')
|
110
120
|
self.slug = attributes[:'slug']
|
111
121
|
end
|
122
|
+
|
123
|
+
if attributes.key?(:'is_in_beta')
|
124
|
+
self.is_in_beta = attributes[:'is_in_beta']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.key?(:'api_endpoints_to_documentation_urls')
|
128
|
+
if (value = attributes[:'api_endpoints_to_documentation_urls']).is_a?(Hash)
|
129
|
+
self.api_endpoints_to_documentation_urls = value
|
130
|
+
end
|
131
|
+
end
|
112
132
|
end
|
113
133
|
|
114
134
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -124,7 +144,7 @@ module MergeTicketingClient
|
|
124
144
|
end
|
125
145
|
|
126
146
|
pattern = Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
|
127
|
-
if !@color.nil? && @color !~ pattern
|
147
|
+
if !@color.nil? && @color.to_s !~ pattern
|
128
148
|
invalid_properties.push("invalid value for \"color\", must conform to the pattern #{pattern}.")
|
129
149
|
end
|
130
150
|
|
@@ -136,7 +156,7 @@ module MergeTicketingClient
|
|
136
156
|
def valid?
|
137
157
|
return false if @name.nil?
|
138
158
|
return false if !@color.nil? && @color.to_s.length > 18
|
139
|
-
return false if !@color.nil? && @color !~ Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
|
159
|
+
return false if !@color.nil? && @color.to_s !~ Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
|
140
160
|
true
|
141
161
|
end
|
142
162
|
|
@@ -148,7 +168,7 @@ module MergeTicketingClient
|
|
148
168
|
end
|
149
169
|
|
150
170
|
pattern = Regexp.new(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/)
|
151
|
-
if !color.nil? && color !~ pattern
|
171
|
+
if !color.nil? && color.to_s !~ pattern
|
152
172
|
fail ArgumentError, "invalid value for \"color\", must conform to the pattern #{pattern}."
|
153
173
|
end
|
154
174
|
|
@@ -165,7 +185,9 @@ module MergeTicketingClient
|
|
165
185
|
image == o.image &&
|
166
186
|
square_image == o.square_image &&
|
167
187
|
color == o.color &&
|
168
|
-
slug == o.slug
|
188
|
+
slug == o.slug &&
|
189
|
+
is_in_beta == o.is_in_beta &&
|
190
|
+
api_endpoints_to_documentation_urls == o.api_endpoints_to_documentation_urls
|
169
191
|
end
|
170
192
|
|
171
193
|
# @see the `==` method
|
@@ -177,7 +199,7 @@ module MergeTicketingClient
|
|
177
199
|
# Calculates hash code according to all attributes.
|
178
200
|
# @return [Integer] Hash code
|
179
201
|
def hash
|
180
|
-
[name, categories, image, square_image, color, slug].hash
|
202
|
+
[name, categories, image, square_image, color, slug, is_in_beta, api_endpoints_to_documentation_urls].hash
|
181
203
|
end
|
182
204
|
|
183
205
|
# Builds the object from hash
|