merge_ats_client 1.0.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -18
- data/docs/AccountDetails.md +13 -7
- data/docs/AccountDetailsAndActions.md +6 -0
- data/docs/AccountDetailsAndActionsIntegration.md +1 -1
- data/docs/AccountDetailsApi.md +10 -7
- data/docs/AccountIntegration.md +4 -4
- data/docs/AccountTokenApi.md +2 -2
- data/docs/ActivitiesApi.md +11 -5
- data/docs/Activity.md +4 -2
- data/docs/Application.md +8 -6
- data/docs/ApplicationEndpointRequest.md +20 -0
- data/docs/ApplicationRequest.md +12 -6
- data/docs/ApplicationResponse.md +24 -0
- data/docs/ApplicationsApi.md +180 -18
- data/docs/Attachment.md +3 -1
- data/docs/AttachmentEndpointRequest.md +20 -0
- data/docs/AttachmentRequest.md +5 -1
- data/docs/AttachmentResponse.md +24 -0
- data/docs/AttachmentsApi.md +98 -16
- data/docs/AvailableActionsApi.md +2 -2
- data/docs/Candidate.md +3 -1
- data/docs/CandidateEndpointRequest.md +20 -0
- data/docs/CandidateRequest.md +7 -1
- data/docs/CandidateResponse.md +24 -0
- data/docs/CandidatesApi.md +168 -22
- data/docs/DataPassthroughRequest.md +6 -2
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/Department.md +3 -1
- data/docs/DepartmentsApi.md +6 -4
- data/docs/EEOC.md +4 -2
- data/docs/EeocsApi.md +11 -5
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +10 -6
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +2 -2
- data/docs/IgnoreCommonModel.md +20 -0
- data/docs/IgnoreCommonModelRequest.md +20 -0
- data/docs/InterviewsApi.md +11 -85
- data/docs/IssuesApi.md +18 -10
- data/docs/Job.md +7 -1
- data/docs/JobInterviewStage.md +4 -2
- data/docs/JobInterviewStagesApi.md +8 -6
- data/docs/JobsApi.md +13 -6
- data/docs/LinkToken.md +3 -1
- data/docs/LinkTokenApi.md +3 -3
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +24 -22
- data/docs/MetaResponse.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Offer.md +5 -3
- data/docs/OffersApi.md +11 -5
- data/docs/Office.md +3 -1
- data/docs/OfficesApi.md +6 -4
- data/docs/PassthroughApi.md +2 -2
- data/docs/ReasonEnum.md +15 -0
- data/docs/RegenerateKeyApi.md +2 -2
- data/docs/RejectReason.md +3 -1
- data/docs/RejectReasonsApi.md +6 -4
- data/docs/RemoteResponse.md +5 -1
- data/docs/RemoteUser.md +3 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/ScheduledInterview.md +6 -4
- data/docs/Scorecard.md +6 -4
- data/docs/ScorecardsApi.md +11 -85
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +3 -75
- data/docs/Tag.md +3 -1
- data/docs/TagsApi.md +4 -2
- data/docs/UpdateApplicationStageRequest.md +20 -0
- data/docs/UsersApi.md +11 -85
- data/docs/ValidationProblemSource.md +18 -0
- data/docs/WarningValidationProblem.md +24 -0
- data/docs/WebhookReceiver.md +22 -0
- data/docs/WebhookReceiverRequest.md +22 -0
- data/docs/WebhookReceiversApi.md +153 -0
- data/lib/merge_ats_client/api/account_details_api.rb +10 -3
- data/lib/merge_ats_client/api/activities_api.rb +17 -0
- data/lib/merge_ats_client/api/applications_api.rb +164 -15
- data/lib/merge_ats_client/api/attachments_api.rb +108 -15
- data/lib/merge_ats_client/api/candidates_api.rb +156 -21
- data/lib/merge_ats_client/api/departments_api.rb +3 -0
- data/lib/merge_ats_client/api/eeocs_api.rb +17 -0
- data/lib/merge_ats_client/api/force_resync_api.rb +84 -0
- data/lib/merge_ats_client/api/interviews_api.rb +17 -76
- data/lib/merge_ats_client/api/issues_api.rb +22 -10
- data/lib/merge_ats_client/api/job_interview_stages_api.rb +5 -2
- data/lib/merge_ats_client/api/jobs_api.rb +20 -3
- data/lib/merge_ats_client/api/linked_accounts_api.rb +24 -21
- data/lib/merge_ats_client/api/offers_api.rb +17 -0
- data/lib/merge_ats_client/api/offices_api.rb +3 -0
- data/lib/merge_ats_client/api/reject_reasons_api.rb +3 -0
- data/lib/merge_ats_client/api/scorecards_api.rb +17 -76
- data/lib/merge_ats_client/api/sync_status_api.rb +4 -66
- data/lib/merge_ats_client/api/tags_api.rb +3 -0
- data/lib/merge_ats_client/api/users_api.rb +17 -76
- data/lib/merge_ats_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_ats_client/configuration.rb +6 -4
- data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_details.rb +33 -4
- data/lib/merge_ats_client/models/account_details_and_actions.rb +35 -1
- data/lib/merge_ats_client/models/account_details_and_actions_integration.rb +4 -2
- data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/account_integration.rb +2 -24
- data/lib/merge_ats_client/models/account_token.rb +1 -1
- data/lib/merge_ats_client/models/activity.rb +16 -7
- data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/application.rb +15 -11
- data/lib/merge_ats_client/models/application_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/application_request.rb +56 -12
- data/lib/merge_ats_client/models/application_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment.rb +15 -6
- data/lib/merge_ats_client/models/attachment_endpoint_request.rb +237 -0
- data/lib/merge_ats_client/models/attachment_request.rb +31 -7
- data/lib/merge_ats_client/models/attachment_response.rb +266 -0
- data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -9
- data/lib/merge_ats_client/models/available_actions.rb +1 -1
- data/lib/merge_ats_client/models/candidate.rb +15 -6
- data/lib/merge_ats_client/models/{remote_key_for_regeneration.rb → candidate_endpoint_request.rb} +29 -16
- data/lib/merge_ats_client/models/candidate_request.rb +56 -7
- data/lib/merge_ats_client/models/candidate_response.rb +266 -0
- data/lib/merge_ats_client/models/categories_enum.rb +19 -7
- data/lib/merge_ats_client/models/category_enum.rb +19 -7
- data/lib/merge_ats_client/models/data_passthrough_request.rb +79 -7
- data/lib/merge_ats_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_ats_client/models/{data_passthrough.rb → debug_model_log_summary.rb} +30 -41
- data/lib/merge_ats_client/models/department.rb +17 -7
- data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/eeoc.rb +16 -7
- data/lib/merge_ats_client/models/email_address.rb +2 -2
- data/lib/merge_ats_client/models/email_address_request.rb +2 -2
- data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/encoding_enum.rb +46 -0
- data/lib/merge_ats_client/models/end_user_details_request.rb +163 -27
- data/lib/merge_ats_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/gender_enum.rb +17 -7
- data/lib/merge_ats_client/models/generate_remote_key_request.rb +20 -1
- data/lib/merge_ats_client/models/ignore_common_model.rb +247 -0
- data/lib/merge_ats_client/models/ignore_common_model_request.rb +256 -0
- data/lib/merge_ats_client/models/issue.rb +2 -2
- data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/job.rb +39 -6
- data/lib/merge_ats_client/models/job_interview_stage.rb +17 -7
- data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/link_token.rb +14 -5
- data/lib/merge_ats_client/models/linked_account_status.rb +237 -0
- data/lib/merge_ats_client/models/{scorecard_request.rb → meta_response.rb} +45 -70
- data/lib/merge_ats_client/models/method_enum.rb +17 -7
- data/lib/merge_ats_client/models/model_operation.rb +1 -1
- data/lib/merge_ats_client/models/{scheduled_interview_request.rb → multipart_form_field_request.rb} +115 -106
- data/lib/merge_ats_client/models/offer.rb +16 -8
- data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/office.rb +17 -7
- data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
- data/lib/merge_ats_client/models/paginated_activity_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_application_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_attachment_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_candidate_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_department_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_eeoc_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_issue_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_interview_stage_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_job_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_offer_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_office_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_reject_reason_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_remote_user_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scheduled_interview_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_scorecard_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_sync_status_list.rb +1 -1
- data/lib/merge_ats_client/models/paginated_tag_list.rb +1 -1
- data/lib/merge_ats_client/models/phone_number.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_request.rb +2 -2
- data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
- data/lib/merge_ats_client/models/race_enum.rb +17 -7
- data/lib/merge_ats_client/models/reason_enum.rb +46 -0
- data/lib/merge_ats_client/models/reject_reason.rb +17 -7
- data/lib/merge_ats_client/models/remote_data.rb +1 -1
- data/lib/merge_ats_client/models/remote_key.rb +1 -1
- data/lib/merge_ats_client/models/remote_key_for_regeneration_request.rb +20 -1
- data/lib/merge_ats_client/models/remote_response.rb +24 -10
- data/lib/merge_ats_client/models/remote_user.rb +17 -7
- data/lib/merge_ats_client/models/request_format_enum.rb +18 -7
- data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
- data/lib/merge_ats_client/models/scheduled_interview.rb +16 -9
- data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/scorecard.rb +16 -9
- data/lib/merge_ats_client/models/sync_status.rb +1 -11
- data/lib/merge_ats_client/models/sync_status_status_enum.rb +19 -9
- data/lib/merge_ats_client/models/tag.rb +17 -7
- data/lib/merge_ats_client/models/update_application_stage_request.rb +244 -0
- data/lib/merge_ats_client/models/url.rb +2 -2
- data/lib/merge_ats_client/models/url_request.rb +2 -2
- data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
- data/lib/merge_ats_client/models/{remote_data_request.rb → validation_problem_source.rb} +14 -25
- data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
- data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
- data/lib/merge_ats_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_ats_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_ats_client/models/{end_user_details.rb → webhook_receiver_request.rb} +60 -69
- data/lib/merge_ats_client/version.rb +1 -1
- data/lib/merge_ats_client.rb +24 -4
- data/spec/api/account_details_api_spec.rb +1 -0
- data/spec/api/account_token_api_spec.rb +1 -1
- data/spec/api/activities_api_spec.rb +6 -1
- data/spec/api/applications_api_spec.rb +46 -1
- data/spec/api/attachments_api_spec.rb +33 -1
- data/spec/api/available_actions_api_spec.rb +1 -1
- data/spec/api/candidates_api_spec.rb +44 -1
- data/spec/api/departments_api_spec.rb +4 -1
- data/spec/api/eeocs_api_spec.rb +6 -1
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/interviews_api_spec.rb +6 -1
- data/spec/api/issues_api_spec.rb +9 -5
- data/spec/api/job_interview_stages_api_spec.rb +4 -1
- data/spec/api/jobs_api_spec.rb +8 -1
- data/spec/api/link_token_api_spec.rb +2 -2
- data/spec/api/linked_accounts_api_spec.rb +11 -10
- data/spec/api/offers_api_spec.rb +6 -1
- data/spec/api/offices_api_spec.rb +4 -1
- data/spec/api/passthrough_api_spec.rb +2 -2
- data/spec/api/regenerate_key_api_spec.rb +3 -5
- data/spec/api/reject_reasons_api_spec.rb +4 -1
- data/spec/api/scorecards_api_spec.rb +6 -1
- data/spec/api/sync_status_api_spec.rb +8 -5
- data/spec/api/tags_api_spec.rb +3 -1
- data/spec/api/users_api_spec.rb +7 -1
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/models/access_role_enum_spec.rb +1 -1
- data/spec/models/account_details_and_actions_spec.rb +18 -0
- data/spec/models/account_details_spec.rb +18 -0
- data/spec/models/account_integration_spec.rb +7 -1
- data/spec/models/account_token_spec.rb +7 -1
- data/spec/models/activity_spec.rb +13 -1
- data/spec/models/activity_type_enum_spec.rb +1 -1
- data/spec/models/application_endpoint_request_spec.rb +40 -0
- data/spec/models/application_request_spec.rb +25 -1
- data/spec/models/{end_user_details_spec.rb → application_response_spec.rb} +11 -15
- data/spec/models/application_spec.rb +19 -7
- data/spec/models/attachment_endpoint_request_spec.rb +40 -0
- data/spec/models/attachment_request_spec.rb +12 -0
- data/spec/models/attachment_response_spec.rb +52 -0
- data/spec/models/attachment_spec.rb +25 -1
- data/spec/models/available_actions_spec.rb +1 -1
- data/spec/models/candidate_endpoint_request_spec.rb +40 -0
- data/spec/models/candidate_request_spec.rb +37 -1
- data/spec/models/{data_passthrough_spec.rb → candidate_response_spec.rb} +11 -11
- data/spec/models/candidate_spec.rb +19 -1
- data/spec/models/data_passthrough_request_spec.rb +19 -1
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/department_spec.rb +13 -1
- data/spec/models/disability_status_enum_spec.rb +1 -1
- data/spec/models/eeoc_spec.rb +13 -1
- data/spec/models/email_address_request_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_address_type_enum_spec.rb +1 -1
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +19 -5
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/gender_enum_spec.rb +1 -1
- data/spec/models/ignore_common_model_request_spec.rb +40 -0
- data/spec/models/ignore_common_model_spec.rb +40 -0
- data/spec/models/job_interview_stage_spec.rb +13 -1
- data/spec/models/job_spec.rb +37 -1
- data/spec/models/job_status_enum_spec.rb +1 -1
- data/spec/models/link_token_spec.rb +7 -1
- data/spec/models/linked_account_status_spec.rb +40 -0
- data/spec/models/meta_response_spec.rb +52 -0
- data/spec/models/method_enum_spec.rb +1 -1
- data/spec/models/model_operation_spec.rb +13 -1
- data/spec/models/{remote_user_request_spec.rb → multipart_form_field_request_spec.rb} +11 -23
- data/spec/models/offer_spec.rb +13 -1
- data/spec/models/offer_status_enum_spec.rb +1 -1
- data/spec/models/office_spec.rb +13 -1
- data/spec/models/overall_recommendation_enum_spec.rb +1 -1
- data/spec/models/paginated_activity_list_spec.rb +1 -1
- data/spec/models/paginated_application_list_spec.rb +1 -1
- data/spec/models/paginated_attachment_list_spec.rb +1 -1
- data/spec/models/paginated_candidate_list_spec.rb +1 -1
- data/spec/models/paginated_department_list_spec.rb +1 -1
- data/spec/models/paginated_eeoc_list_spec.rb +1 -1
- data/spec/models/paginated_job_interview_stage_list_spec.rb +1 -1
- data/spec/models/paginated_job_list_spec.rb +1 -1
- data/spec/models/paginated_offer_list_spec.rb +1 -1
- data/spec/models/paginated_office_list_spec.rb +1 -1
- data/spec/models/paginated_reject_reason_list_spec.rb +1 -1
- data/spec/models/paginated_remote_user_list_spec.rb +1 -1
- data/spec/models/paginated_scheduled_interview_list_spec.rb +1 -1
- data/spec/models/paginated_scorecard_list_spec.rb +1 -1
- data/spec/models/paginated_tag_list_spec.rb +1 -1
- data/spec/models/phone_number_request_spec.rb +1 -1
- data/spec/models/phone_number_spec.rb +1 -1
- data/spec/models/phone_number_type_enum_spec.rb +1 -1
- data/spec/models/race_enum_spec.rb +1 -1
- data/spec/models/reason_enum_spec.rb +28 -0
- data/spec/models/reject_reason_spec.rb +13 -1
- data/spec/models/remote_data_spec.rb +1 -1
- data/spec/models/remote_key_for_regeneration_request_spec.rb +1 -1
- data/spec/models/remote_key_spec.rb +1 -1
- data/spec/models/remote_response_spec.rb +13 -1
- data/spec/models/remote_user_spec.rb +13 -1
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/scheduled_interview_spec.rb +13 -1
- data/spec/models/scheduled_interview_status_enum_spec.rb +1 -1
- data/spec/models/scorecard_spec.rb +13 -1
- data/spec/models/sync_status_spec.rb +1 -1
- data/spec/models/tag_spec.rb +13 -1
- data/spec/models/update_application_stage_request_spec.rb +40 -0
- data/spec/models/url_request_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/url_type_enum_spec.rb +1 -1
- data/spec/models/{remote_key_for_regeneration_spec.rb → validation_problem_source_spec.rb} +8 -8
- data/spec/models/veteran_status_enum_spec.rb +1 -1
- data/spec/models/visibility_enum_spec.rb +1 -1
- data/spec/models/warning_validation_problem_spec.rb +52 -0
- data/spec/models/webhook_receiver_request_spec.rb +46 -0
- data/spec/models/webhook_receiver_spec.rb +46 -0
- metadata +186 -123
- data/config.json +0 -2
- data/docs/DataPassthrough.md +0 -24
- data/docs/EndUserDetails.md +0 -24
- data/docs/PatchedApplicationRequest.md +0 -34
- data/docs/RemoteKeyForRegeneration.md +0 -18
- data/docs/RemoteUserRequest.md +0 -30
- data/docs/ScheduledInterviewRequest.md +0 -38
- data/docs/ScorecardRequest.md +0 -30
- data/lib/merge_ats_client/models/patched_application_request.rb +0 -309
- data/lib/merge_ats_client/models/remote_user_request.rb +0 -302
- data/merge_ats_client-1.0.3.gem +0 -0
- data/spec/models/patched_application_request_spec.rb +0 -82
- data/spec/models/scheduled_interview_request_spec.rb +0 -94
- data/spec/models/scorecard_request_spec.rb +0 -70
- data/test_ats.rb +0 -22
- data/test_signature.rb +0 -32
@@ -0,0 +1,154 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge ATS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple Applicant Tracking System 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 'cgi'
|
14
|
+
|
15
|
+
module MergeATSClient
|
16
|
+
class WebhookReceiversApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Creates a `WebhookReceiver` object with the given values.
|
23
|
+
# @param x_account_token [String] Token identifying the end user.
|
24
|
+
# @param webhook_receiver_request [WebhookReceiverRequest]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [WebhookReceiver]
|
27
|
+
def webhook_receivers_create(x_account_token, webhook_receiver_request, opts = {})
|
28
|
+
data, _status_code, _headers = webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Creates a `WebhookReceiver` object with the given values.
|
33
|
+
# @param x_account_token [String] Token identifying the end user.
|
34
|
+
# @param webhook_receiver_request [WebhookReceiverRequest]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(WebhookReceiver, Integer, Hash)>] WebhookReceiver data, response status code and response headers
|
37
|
+
def webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'x_account_token' is set
|
42
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_create"
|
44
|
+
end
|
45
|
+
# verify the required parameter 'webhook_receiver_request' is set
|
46
|
+
if @api_client.config.client_side_validation && webhook_receiver_request.nil?
|
47
|
+
fail ArgumentError, "Missing the required parameter 'webhook_receiver_request' when calling WebhookReceiversApi.webhook_receivers_create"
|
48
|
+
end
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/webhook-receivers'
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = opts[:query_params] || {}
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
# HTTP header 'Accept' (if needed)
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
+
# HTTP header 'Content-Type'
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
61
|
+
header_params[:'X-Account-Token'] = x_account_token
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = opts[:form_params] || {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_receiver_request)
|
68
|
+
|
69
|
+
# return_type
|
70
|
+
return_type = opts[:debug_return_type] || 'WebhookReceiver'
|
71
|
+
|
72
|
+
# auth_names
|
73
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
74
|
+
|
75
|
+
new_options = opts.merge(
|
76
|
+
:operation => :"WebhookReceiversApi.webhook_receivers_create",
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => return_type
|
83
|
+
)
|
84
|
+
|
85
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
88
|
+
end
|
89
|
+
return data, status_code, headers
|
90
|
+
end
|
91
|
+
|
92
|
+
# Returns a list of `WebhookReceiver` objects.
|
93
|
+
# @param x_account_token [String] Token identifying the end user.
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [Array<WebhookReceiver>]
|
96
|
+
def webhook_receivers_list(x_account_token, opts = {})
|
97
|
+
data, _status_code, _headers = webhook_receivers_list_with_http_info(x_account_token, opts)
|
98
|
+
data
|
99
|
+
end
|
100
|
+
|
101
|
+
# Returns a list of `WebhookReceiver` objects.
|
102
|
+
# @param x_account_token [String] Token identifying the end user.
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(Array<WebhookReceiver>, Integer, Hash)>] Array<WebhookReceiver> data, response status code and response headers
|
105
|
+
def webhook_receivers_list_with_http_info(x_account_token, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_list ...'
|
108
|
+
end
|
109
|
+
# verify the required parameter 'x_account_token' is set
|
110
|
+
if @api_client.config.client_side_validation && x_account_token.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_list"
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/webhook-receivers'
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = opts[:query_params] || {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = opts[:header_params] || {}
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
123
|
+
header_params[:'X-Account-Token'] = x_account_token
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:debug_body]
|
130
|
+
|
131
|
+
# return_type
|
132
|
+
return_type = opts[:debug_return_type] || 'Array<WebhookReceiver>'
|
133
|
+
|
134
|
+
# auth_names
|
135
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
136
|
+
|
137
|
+
new_options = opts.merge(
|
138
|
+
:operation => :"WebhookReceiversApi.webhook_receivers_list",
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => return_type
|
145
|
+
)
|
146
|
+
|
147
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
148
|
+
if @api_client.config.debugging
|
149
|
+
@api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
150
|
+
end
|
151
|
+
return data, status_code, headers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
@@ -197,11 +197,13 @@ module MergeATSClient
|
|
197
197
|
|
198
198
|
# Gets API key (with prefix if set).
|
199
199
|
# @param [String] param_name the parameter name of API key auth
|
200
|
-
def api_key_with_prefix(param_name)
|
200
|
+
def api_key_with_prefix(param_name, param_alias = nil)
|
201
|
+
key = @api_key[param_name]
|
202
|
+
key = @api_key.fetch(param_alias, key) unless param_alias.nil?
|
201
203
|
if @api_key_prefix[param_name]
|
202
|
-
"#{@api_key_prefix[param_name]} #{
|
204
|
+
"#{@api_key_prefix[param_name]} #{key}"
|
203
205
|
else
|
204
|
-
|
206
|
+
key
|
205
207
|
end
|
206
208
|
end
|
207
209
|
|
@@ -218,7 +220,7 @@ module MergeATSClient
|
|
218
220
|
type: 'api_key',
|
219
221
|
in: 'header',
|
220
222
|
key: 'Authorization',
|
221
|
-
value: api_key_with_prefix('
|
223
|
+
value: api_key_with_prefix('tokenAuth')
|
222
224
|
},
|
223
225
|
}
|
224
226
|
end
|
@@ -21,18 +21,28 @@ module MergeATSClient
|
|
21
21
|
LIMITED_TEAM_MEMBER = "LIMITED_TEAM_MEMBER".freeze
|
22
22
|
INTERVIEWER = "INTERVIEWER".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["SUPER_ADMIN", "ADMIN", "TEAM_MEMBER", "LIMITED_TEAM_MEMBER", "INTERVIEWER", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -19,6 +19,8 @@ module MergeATSClient
|
|
19
19
|
|
20
20
|
attr_accessor :integration
|
21
21
|
|
22
|
+
attr_accessor :integration_slug
|
23
|
+
|
22
24
|
attr_accessor :category
|
23
25
|
|
24
26
|
attr_accessor :end_user_origin_id
|
@@ -29,16 +31,24 @@ module MergeATSClient
|
|
29
31
|
|
30
32
|
attr_accessor :status
|
31
33
|
|
34
|
+
attr_accessor :webhook_listener_url
|
35
|
+
|
36
|
+
# Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
|
37
|
+
attr_accessor :is_duplicate
|
38
|
+
|
32
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
40
|
def self.attribute_map
|
34
41
|
{
|
35
42
|
:'id' => :'id',
|
36
43
|
:'integration' => :'integration',
|
44
|
+
:'integration_slug' => :'integration_slug',
|
37
45
|
:'category' => :'category',
|
38
46
|
:'end_user_origin_id' => :'end_user_origin_id',
|
39
47
|
:'end_user_organization_name' => :'end_user_organization_name',
|
40
48
|
:'end_user_email_address' => :'end_user_email_address',
|
41
|
-
:'status' => :'status'
|
49
|
+
:'status' => :'status',
|
50
|
+
:'webhook_listener_url' => :'webhook_listener_url',
|
51
|
+
:'is_duplicate' => :'is_duplicate'
|
42
52
|
}
|
43
53
|
end
|
44
54
|
|
@@ -52,11 +62,14 @@ module MergeATSClient
|
|
52
62
|
{
|
53
63
|
:'id' => :'String',
|
54
64
|
:'integration' => :'String',
|
65
|
+
:'integration_slug' => :'String',
|
55
66
|
:'category' => :'CategoryEnum',
|
56
67
|
:'end_user_origin_id' => :'String',
|
57
68
|
:'end_user_organization_name' => :'String',
|
58
69
|
:'end_user_email_address' => :'String',
|
59
|
-
:'status' => :'String'
|
70
|
+
:'status' => :'String',
|
71
|
+
:'webhook_listener_url' => :'String',
|
72
|
+
:'is_duplicate' => :'Boolean'
|
60
73
|
}
|
61
74
|
end
|
62
75
|
|
@@ -64,6 +77,7 @@ module MergeATSClient
|
|
64
77
|
def self.openapi_nullable
|
65
78
|
Set.new([
|
66
79
|
:'category',
|
80
|
+
:'is_duplicate'
|
67
81
|
])
|
68
82
|
end
|
69
83
|
|
@@ -90,6 +104,10 @@ module MergeATSClient
|
|
90
104
|
self.integration = attributes[:'integration']
|
91
105
|
end
|
92
106
|
|
107
|
+
if attributes.key?(:'integration_slug')
|
108
|
+
self.integration_slug = attributes[:'integration_slug']
|
109
|
+
end
|
110
|
+
|
93
111
|
if attributes.key?(:'category')
|
94
112
|
self.category = attributes[:'category']
|
95
113
|
end
|
@@ -109,6 +127,14 @@ module MergeATSClient
|
|
109
127
|
if attributes.key?(:'status')
|
110
128
|
self.status = attributes[:'status']
|
111
129
|
end
|
130
|
+
|
131
|
+
if attributes.key?(:'webhook_listener_url')
|
132
|
+
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'is_duplicate')
|
136
|
+
self.is_duplicate = attributes[:'is_duplicate']
|
137
|
+
end
|
112
138
|
end
|
113
139
|
|
114
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -131,11 +157,14 @@ module MergeATSClient
|
|
131
157
|
self.class == o.class &&
|
132
158
|
id == o.id &&
|
133
159
|
integration == o.integration &&
|
160
|
+
integration_slug == o.integration_slug &&
|
134
161
|
category == o.category &&
|
135
162
|
end_user_origin_id == o.end_user_origin_id &&
|
136
163
|
end_user_organization_name == o.end_user_organization_name &&
|
137
164
|
end_user_email_address == o.end_user_email_address &&
|
138
|
-
status == o.status
|
165
|
+
status == o.status &&
|
166
|
+
webhook_listener_url == o.webhook_listener_url &&
|
167
|
+
is_duplicate == o.is_duplicate
|
139
168
|
end
|
140
169
|
|
141
170
|
# @see the `==` method
|
@@ -147,7 +176,7 @@ module MergeATSClient
|
|
147
176
|
# Calculates hash code according to all attributes.
|
148
177
|
# @return [Integer] Hash code
|
149
178
|
def hash
|
150
|
-
[id, integration, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status].hash
|
179
|
+
[id, integration, integration_slug, category, end_user_origin_id, end_user_organization_name, end_user_email_address, status, webhook_listener_url, is_duplicate].hash
|
151
180
|
end
|
152
181
|
|
153
182
|
# Builds the object from hash
|
@@ -22,12 +22,19 @@ module MergeATSClient
|
|
22
22
|
|
23
23
|
attr_accessor :status
|
24
24
|
|
25
|
+
attr_accessor :status_detail
|
26
|
+
|
25
27
|
attr_accessor :end_user_origin_id
|
26
28
|
|
27
29
|
attr_accessor :end_user_organization_name
|
28
30
|
|
29
31
|
attr_accessor :end_user_email_address
|
30
32
|
|
33
|
+
attr_accessor :webhook_listener_url
|
34
|
+
|
35
|
+
# Whether a Production Linked Account's credentials match another existing Production Linked Account. This field is `null` for Test Linked Accounts, incomplete Production Linked Accounts, and ignored duplicate Production Linked Account sets.
|
36
|
+
attr_accessor :is_duplicate
|
37
|
+
|
31
38
|
attr_accessor :integration
|
32
39
|
|
33
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -36,9 +43,12 @@ module MergeATSClient
|
|
36
43
|
:'id' => :'id',
|
37
44
|
:'category' => :'category',
|
38
45
|
:'status' => :'status',
|
46
|
+
:'status_detail' => :'status_detail',
|
39
47
|
:'end_user_origin_id' => :'end_user_origin_id',
|
40
48
|
:'end_user_organization_name' => :'end_user_organization_name',
|
41
49
|
:'end_user_email_address' => :'end_user_email_address',
|
50
|
+
:'webhook_listener_url' => :'webhook_listener_url',
|
51
|
+
:'is_duplicate' => :'is_duplicate',
|
42
52
|
:'integration' => :'integration'
|
43
53
|
}
|
44
54
|
end
|
@@ -54,9 +64,12 @@ module MergeATSClient
|
|
54
64
|
:'id' => :'String',
|
55
65
|
:'category' => :'CategoryEnum',
|
56
66
|
:'status' => :'AccountDetailsAndActionsStatusEnum',
|
67
|
+
:'status_detail' => :'String',
|
57
68
|
:'end_user_origin_id' => :'String',
|
58
69
|
:'end_user_organization_name' => :'String',
|
59
70
|
:'end_user_email_address' => :'String',
|
71
|
+
:'webhook_listener_url' => :'String',
|
72
|
+
:'is_duplicate' => :'Boolean',
|
60
73
|
:'integration' => :'AccountDetailsAndActionsIntegration'
|
61
74
|
}
|
62
75
|
end
|
@@ -64,6 +77,7 @@ module MergeATSClient
|
|
64
77
|
# List of attributes with nullable: true
|
65
78
|
def self.openapi_nullable
|
66
79
|
Set.new([
|
80
|
+
:'is_duplicate',
|
67
81
|
])
|
68
82
|
end
|
69
83
|
|
@@ -94,6 +108,10 @@ module MergeATSClient
|
|
94
108
|
self.status = attributes[:'status']
|
95
109
|
end
|
96
110
|
|
111
|
+
if attributes.key?(:'status_detail')
|
112
|
+
self.status_detail = attributes[:'status_detail']
|
113
|
+
end
|
114
|
+
|
97
115
|
if attributes.key?(:'end_user_origin_id')
|
98
116
|
self.end_user_origin_id = attributes[:'end_user_origin_id']
|
99
117
|
end
|
@@ -106,6 +124,14 @@ module MergeATSClient
|
|
106
124
|
self.end_user_email_address = attributes[:'end_user_email_address']
|
107
125
|
end
|
108
126
|
|
127
|
+
if attributes.key?(:'webhook_listener_url')
|
128
|
+
self.webhook_listener_url = attributes[:'webhook_listener_url']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'is_duplicate')
|
132
|
+
self.is_duplicate = attributes[:'is_duplicate']
|
133
|
+
end
|
134
|
+
|
109
135
|
if attributes.key?(:'integration')
|
110
136
|
self.integration = attributes[:'integration']
|
111
137
|
end
|
@@ -131,6 +157,10 @@ module MergeATSClient
|
|
131
157
|
invalid_properties.push('invalid value for "end_user_email_address", end_user_email_address cannot be nil.')
|
132
158
|
end
|
133
159
|
|
160
|
+
if @webhook_listener_url.nil?
|
161
|
+
invalid_properties.push('invalid value for "webhook_listener_url", webhook_listener_url cannot be nil.')
|
162
|
+
end
|
163
|
+
|
134
164
|
invalid_properties
|
135
165
|
end
|
136
166
|
|
@@ -141,6 +171,7 @@ module MergeATSClient
|
|
141
171
|
return false if @status.nil?
|
142
172
|
return false if @end_user_organization_name.nil?
|
143
173
|
return false if @end_user_email_address.nil?
|
174
|
+
return false if @webhook_listener_url.nil?
|
144
175
|
true
|
145
176
|
end
|
146
177
|
|
@@ -152,9 +183,12 @@ module MergeATSClient
|
|
152
183
|
id == o.id &&
|
153
184
|
category == o.category &&
|
154
185
|
status == o.status &&
|
186
|
+
status_detail == o.status_detail &&
|
155
187
|
end_user_origin_id == o.end_user_origin_id &&
|
156
188
|
end_user_organization_name == o.end_user_organization_name &&
|
157
189
|
end_user_email_address == o.end_user_email_address &&
|
190
|
+
webhook_listener_url == o.webhook_listener_url &&
|
191
|
+
is_duplicate == o.is_duplicate &&
|
158
192
|
integration == o.integration
|
159
193
|
end
|
160
194
|
|
@@ -167,7 +201,7 @@ module MergeATSClient
|
|
167
201
|
# Calculates hash code according to all attributes.
|
168
202
|
# @return [Integer] Hash code
|
169
203
|
def hash
|
170
|
-
[id, category, status, end_user_origin_id, end_user_organization_name, end_user_email_address, integration].hash
|
204
|
+
[id, category, status, status_detail, end_user_origin_id, end_user_organization_name, end_user_email_address, webhook_listener_url, is_duplicate, integration].hash
|
171
205
|
end
|
172
206
|
|
173
207
|
# Builds the object from hash
|
@@ -54,7 +54,7 @@ module MergeATSClient
|
|
54
54
|
def self.openapi_types
|
55
55
|
{
|
56
56
|
:'name' => :'String',
|
57
|
-
:'categories' => :'CategoriesEnum',
|
57
|
+
:'categories' => :'Array<CategoriesEnum>',
|
58
58
|
:'image' => :'String',
|
59
59
|
:'square_image' => :'String',
|
60
60
|
:'color' => :'String',
|
@@ -90,7 +90,9 @@ module MergeATSClient
|
|
90
90
|
end
|
91
91
|
|
92
92
|
if attributes.key?(:'categories')
|
93
|
-
|
93
|
+
if (value = attributes[:'categories']).is_a?(Array)
|
94
|
+
self.categories = value
|
95
|
+
end
|
94
96
|
end
|
95
97
|
|
96
98
|
if attributes.key?(:'image')
|
@@ -19,18 +19,28 @@ module MergeATSClient
|
|
19
19
|
INCOMPLETE = "INCOMPLETE".freeze
|
20
20
|
RELINK_NEEDED = "RELINK_NEEDED".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["COMPLETE", "INCOMPLETE", "RELINK_NEEDED", ].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
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|
@@ -32,28 +32,6 @@ module MergeATSClient
|
|
32
32
|
|
33
33
|
attr_accessor :slug
|
34
34
|
|
35
|
-
class EnumAttributeValidator
|
36
|
-
attr_reader :datatype
|
37
|
-
attr_reader :allowable_values
|
38
|
-
|
39
|
-
def initialize(datatype, allowable_values)
|
40
|
-
@allowable_values = allowable_values.map do |value|
|
41
|
-
case datatype.to_s
|
42
|
-
when /Integer/i
|
43
|
-
value.to_i
|
44
|
-
when /Float/i
|
45
|
-
value.to_f
|
46
|
-
else
|
47
|
-
value
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
def valid?(value)
|
53
|
-
!value || allowable_values.include?(value)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
|
57
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
58
36
|
def self.attribute_map
|
59
37
|
{
|
@@ -75,7 +53,7 @@ module MergeATSClient
|
|
75
53
|
def self.openapi_types
|
76
54
|
{
|
77
55
|
:'name' => :'String',
|
78
|
-
:'categories' => :'Array<
|
56
|
+
:'categories' => :'Array<CategoriesEnum>',
|
79
57
|
:'image' => :'String',
|
80
58
|
:'square_image' => :'String',
|
81
59
|
:'color' => :'String',
|
@@ -242,7 +220,7 @@ module MergeATSClient
|
|
242
220
|
when :Date
|
243
221
|
Date.parse(value)
|
244
222
|
when :String
|
245
|
-
value
|
223
|
+
value
|
246
224
|
when :Integer
|
247
225
|
value.to_i
|
248
226
|
when :Float
|
@@ -14,14 +14,13 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeATSClient
|
17
|
-
# # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user.
|
17
|
+
# # The Activity Object ### Description The `Activity` object is used to represent an activity performed by a user. ### Usage Example Fetch from the `LIST Activities` endpoint and filter by `ID` to show all activities.
|
18
18
|
class Activity
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
-
# The user the performed the action.
|
25
24
|
attr_accessor :user
|
26
25
|
|
27
26
|
# When the third party's activity was created.
|
@@ -41,6 +40,9 @@ module MergeATSClient
|
|
41
40
|
|
42
41
|
attr_accessor :remote_data
|
43
42
|
|
43
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
44
|
+
attr_accessor :remote_was_deleted
|
45
|
+
|
44
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
47
|
def self.attribute_map
|
46
48
|
{
|
@@ -52,7 +54,8 @@ module MergeATSClient
|
|
52
54
|
:'subject' => :'subject',
|
53
55
|
:'body' => :'body',
|
54
56
|
:'visibility' => :'visibility',
|
55
|
-
:'remote_data' => :'remote_data'
|
57
|
+
:'remote_data' => :'remote_data',
|
58
|
+
:'remote_was_deleted' => :'remote_was_deleted'
|
56
59
|
}
|
57
60
|
end
|
58
61
|
|
@@ -72,7 +75,8 @@ module MergeATSClient
|
|
72
75
|
:'subject' => :'String',
|
73
76
|
:'body' => :'String',
|
74
77
|
:'visibility' => :'VisibilityEnum',
|
75
|
-
:'remote_data' => :'Array<RemoteData>'
|
78
|
+
:'remote_data' => :'Array<RemoteData>',
|
79
|
+
:'remote_was_deleted' => :'Boolean'
|
76
80
|
}
|
77
81
|
end
|
78
82
|
|
@@ -86,7 +90,7 @@ module MergeATSClient
|
|
86
90
|
:'subject',
|
87
91
|
:'body',
|
88
92
|
:'visibility',
|
89
|
-
:'remote_data'
|
93
|
+
:'remote_data',
|
90
94
|
])
|
91
95
|
end
|
92
96
|
|
@@ -142,6 +146,10 @@ module MergeATSClient
|
|
142
146
|
self.remote_data = value
|
143
147
|
end
|
144
148
|
end
|
149
|
+
|
150
|
+
if attributes.key?(:'remote_was_deleted')
|
151
|
+
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
152
|
+
end
|
145
153
|
end
|
146
154
|
|
147
155
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -170,7 +178,8 @@ module MergeATSClient
|
|
170
178
|
subject == o.subject &&
|
171
179
|
body == o.body &&
|
172
180
|
visibility == o.visibility &&
|
173
|
-
remote_data == o.remote_data
|
181
|
+
remote_data == o.remote_data &&
|
182
|
+
remote_was_deleted == o.remote_was_deleted
|
174
183
|
end
|
175
184
|
|
176
185
|
# @see the `==` method
|
@@ -182,7 +191,7 @@ module MergeATSClient
|
|
182
191
|
# Calculates hash code according to all attributes.
|
183
192
|
# @return [Integer] Hash code
|
184
193
|
def hash
|
185
|
-
[id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data].hash
|
194
|
+
[id, remote_id, user, remote_created_at, activity_type, subject, body, visibility, remote_data, remote_was_deleted].hash
|
186
195
|
end
|
187
196
|
|
188
197
|
# Builds the object from hash
|
@@ -19,18 +19,28 @@ module MergeATSClient
|
|
19
19
|
EMAIL = "EMAIL".freeze
|
20
20
|
OTHER = "OTHER".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["NOTE", "EMAIL", "OTHER", ].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
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|