merge_crm_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE.md +16 -0
- data/README.md +236 -0
- data/Rakefile +10 -0
- data/docs/Account.md +46 -0
- data/docs/AccountDetails.md +36 -0
- data/docs/AccountDetailsAndActions.md +36 -0
- data/docs/AccountDetailsAndActionsIntegration.md +32 -0
- data/docs/AccountDetailsAndActionsStatusEnum.md +15 -0
- data/docs/AccountDetailsApi.md +79 -0
- data/docs/AccountIntegration.md +28 -0
- data/docs/AccountRequest.md +40 -0
- data/docs/AccountToken.md +20 -0
- data/docs/AccountTokenApi.md +79 -0
- data/docs/AccountsApi.md +335 -0
- data/docs/ActivityTypeEnum.md +15 -0
- data/docs/Address.md +30 -0
- data/docs/AddressRequest.md +30 -0
- data/docs/AddressTypeEnum.md +15 -0
- data/docs/AvailableActions.md +22 -0
- data/docs/AvailableActionsApi.md +79 -0
- data/docs/CRMAccountEndpointRequest.md +18 -0
- data/docs/CRMAccountResponse.md +24 -0
- data/docs/CRMContactEndpointRequest.md +18 -0
- data/docs/CRMContactResponse.md +24 -0
- data/docs/CategoriesEnum.md +15 -0
- data/docs/CategoryEnum.md +15 -0
- data/docs/Contact.md +40 -0
- data/docs/ContactRequest.md +32 -0
- data/docs/ContactsApi.md +335 -0
- data/docs/CountryEnum.md +15 -0
- data/docs/DataPassthroughRequest.md +32 -0
- data/docs/DebugModeLog.md +22 -0
- data/docs/DebugModelLogSummary.md +22 -0
- data/docs/DeleteAccountApi.md +78 -0
- data/docs/DirectionEnum.md +15 -0
- data/docs/EmailAddress.md +20 -0
- data/docs/EmailAddressRequest.md +20 -0
- data/docs/EncodingEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +30 -0
- data/docs/Engagement.md +40 -0
- data/docs/EngagementEndpointRequest.md +18 -0
- data/docs/EngagementRequest.md +38 -0
- data/docs/EngagementResponse.md +24 -0
- data/docs/EngagementType.md +24 -0
- data/docs/EngagementTypesApi.md +177 -0
- data/docs/EngagementsApi.md +333 -0
- data/docs/ErrorValidationProblem.md +24 -0
- data/docs/ForceResyncApi.md +79 -0
- data/docs/GenerateKeyApi.md +79 -0
- data/docs/GenerateRemoteKeyRequest.md +18 -0
- data/docs/Issue.md +30 -0
- data/docs/IssueStatusEnum.md +15 -0
- data/docs/IssuesApi.md +177 -0
- data/docs/Lead.md +52 -0
- data/docs/LeadEndpointRequest.md +18 -0
- data/docs/LeadRequest.md +44 -0
- data/docs/LeadResponse.md +24 -0
- data/docs/LeadsApi.md +339 -0
- data/docs/LinkToken.md +22 -0
- data/docs/LinkTokenApi.md +79 -0
- data/docs/LinkedAccountStatus.md +20 -0
- data/docs/LinkedAccountsApi.md +105 -0
- data/docs/MetaResponse.md +24 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/ModelOperation.md +24 -0
- data/docs/MultipartFormFieldRequest.md +26 -0
- data/docs/Note.md +38 -0
- data/docs/NoteEndpointRequest.md +18 -0
- data/docs/NoteRequest.md +36 -0
- data/docs/NoteResponse.md +24 -0
- data/docs/NotesApi.md +341 -0
- data/docs/OpportunitiesApi.md +345 -0
- data/docs/Opportunity.md +44 -0
- data/docs/OpportunityEndpointRequest.md +18 -0
- data/docs/OpportunityRequest.md +42 -0
- data/docs/OpportunityResponse.md +24 -0
- data/docs/OpportunityStatusEnum.md +15 -0
- data/docs/PaginatedAccountDetailsAndActionsList.md +22 -0
- data/docs/PaginatedAccountList.md +22 -0
- data/docs/PaginatedContactList.md +22 -0
- data/docs/PaginatedEngagementList.md +22 -0
- data/docs/PaginatedEngagementTypeList.md +22 -0
- data/docs/PaginatedIssueList.md +22 -0
- data/docs/PaginatedLeadList.md +22 -0
- data/docs/PaginatedNoteList.md +22 -0
- data/docs/PaginatedOpportunityList.md +22 -0
- data/docs/PaginatedStageList.md +22 -0
- data/docs/PaginatedSyncStatusList.md +22 -0
- data/docs/PaginatedTaskList.md +22 -0
- data/docs/PaginatedUserList.md +22 -0
- data/docs/PassthroughApi.md +81 -0
- data/docs/PhoneNumber.md +20 -0
- data/docs/PhoneNumberRequest.md +20 -0
- data/docs/RegenerateKeyApi.md +79 -0
- data/docs/RemoteData.md +20 -0
- data/docs/RemoteKey.md +20 -0
- data/docs/RemoteKeyForRegenerationRequest.md +18 -0
- data/docs/RemoteResponse.md +28 -0
- data/docs/RequestFormatEnum.md +15 -0
- data/docs/Stage.md +26 -0
- data/docs/StagesApi.md +177 -0
- data/docs/SyncStatus.md +28 -0
- data/docs/SyncStatusApi.md +85 -0
- data/docs/SyncStatusStatusEnum.md +15 -0
- data/docs/Task.md +38 -0
- data/docs/TaskStatusEnum.md +15 -0
- data/docs/TasksApi.md +181 -0
- data/docs/User.md +30 -0
- data/docs/UsersApi.md +177 -0
- 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/git_push.sh +58 -0
- data/lib/merge_crm_client/api/account_details_api.rb +84 -0
- data/lib/merge_crm_client/api/account_token_api.rb +83 -0
- data/lib/merge_crm_client/api/accounts_api.rb +337 -0
- data/lib/merge_crm_client/api/available_actions_api.rb +84 -0
- data/lib/merge_crm_client/api/contacts_api.rb +337 -0
- data/lib/merge_crm_client/api/delete_account_api.rb +82 -0
- data/lib/merge_crm_client/api/engagement_types_api.rb +182 -0
- data/lib/merge_crm_client/api/engagements_api.rb +334 -0
- data/lib/merge_crm_client/api/force_resync_api.rb +84 -0
- data/lib/merge_crm_client/api/generate_key_api.rb +85 -0
- data/lib/merge_crm_client/api/issues_api.rb +181 -0
- data/lib/merge_crm_client/api/leads_api.rb +343 -0
- data/lib/merge_crm_client/api/link_token_api.rb +85 -0
- data/lib/merge_crm_client/api/linked_accounts_api.rb +120 -0
- data/lib/merge_crm_client/api/notes_api.rb +346 -0
- data/lib/merge_crm_client/api/opportunities_api.rb +364 -0
- data/lib/merge_crm_client/api/passthrough_api.rb +92 -0
- data/lib/merge_crm_client/api/regenerate_key_api.rb +85 -0
- data/lib/merge_crm_client/api/stages_api.rb +182 -0
- data/lib/merge_crm_client/api/sync_status_api.rb +90 -0
- data/lib/merge_crm_client/api/tasks_api.rb +196 -0
- data/lib/merge_crm_client/api/users_api.rb +182 -0
- data/lib/merge_crm_client/api/webhook_receivers_api.rb +154 -0
- data/lib/merge_crm_client/api_client.rb +390 -0
- data/lib/merge_crm_client/api_error.rb +57 -0
- data/lib/merge_crm_client/configuration.rb +281 -0
- data/lib/merge_crm_client/models/account.rb +410 -0
- data/lib/merge_crm_client/models/account_details.rb +302 -0
- data/lib/merge_crm_client/models/account_details_and_actions.rb +327 -0
- data/lib/merge_crm_client/models/account_details_and_actions_integration.rb +310 -0
- data/lib/merge_crm_client/models/account_details_and_actions_status_enum.rb +46 -0
- data/lib/merge_crm_client/models/account_integration.rb +303 -0
- data/lib/merge_crm_client/models/account_request.rb +382 -0
- data/lib/merge_crm_client/models/account_token.rb +237 -0
- data/lib/merge_crm_client/models/activity_type_enum.rb +46 -0
- data/lib/merge_crm_client/models/address.rb +287 -0
- data/lib/merge_crm_client/models/address_request.rb +287 -0
- data/lib/merge_crm_client/models/address_type_enum.rb +45 -0
- data/lib/merge_crm_client/models/available_actions.rb +249 -0
- data/lib/merge_crm_client/models/categories_enum.rb +48 -0
- data/lib/merge_crm_client/models/category_enum.rb +48 -0
- data/lib/merge_crm_client/models/contact.rb +338 -0
- data/lib/merge_crm_client/models/contact_request.rb +299 -0
- data/lib/merge_crm_client/models/country_enum.rb +292 -0
- data/lib/merge_crm_client/models/crm_account_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/crm_account_response.rb +266 -0
- data/lib/merge_crm_client/models/crm_contact_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/crm_contact_response.rb +266 -0
- data/lib/merge_crm_client/models/data_passthrough_request.rb +352 -0
- data/lib/merge_crm_client/models/debug_mode_log.rb +251 -0
- data/lib/merge_crm_client/models/debug_model_log_summary.rb +251 -0
- data/lib/merge_crm_client/models/direction_enum.rb +45 -0
- data/lib/merge_crm_client/models/email_address.rb +232 -0
- data/lib/merge_crm_client/models/email_address_request.rb +232 -0
- data/lib/merge_crm_client/models/encoding_enum.rb +46 -0
- data/lib/merge_crm_client/models/end_user_details_request.rb +430 -0
- data/lib/merge_crm_client/models/engagement.rb +337 -0
- data/lib/merge_crm_client/models/engagement_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/engagement_request.rb +330 -0
- data/lib/merge_crm_client/models/engagement_response.rb +266 -0
- data/lib/merge_crm_client/models/engagement_type.rb +252 -0
- data/lib/merge_crm_client/models/error_validation_problem.rb +260 -0
- data/lib/merge_crm_client/models/generate_remote_key_request.rb +243 -0
- data/lib/merge_crm_client/models/issue.rb +281 -0
- data/lib/merge_crm_client/models/issue_status_enum.rb +45 -0
- data/lib/merge_crm_client/models/lead.rb +402 -0
- data/lib/merge_crm_client/models/lead_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/lead_request.rb +363 -0
- data/lib/merge_crm_client/models/lead_response.rb +266 -0
- data/lib/merge_crm_client/models/link_token.rb +246 -0
- data/lib/merge_crm_client/models/linked_account_status.rb +237 -0
- data/lib/merge_crm_client/models/meta_response.rb +262 -0
- data/lib/merge_crm_client/models/method_enum.rb +50 -0
- data/lib/merge_crm_client/models/model_operation.rb +272 -0
- data/lib/merge_crm_client/models/multipart_form_field_request.rb +341 -0
- data/lib/merge_crm_client/models/note.rb +324 -0
- data/lib/merge_crm_client/models/note_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/note_request.rb +318 -0
- data/lib/merge_crm_client/models/note_response.rb +266 -0
- data/lib/merge_crm_client/models/opportunity.rb +382 -0
- data/lib/merge_crm_client/models/opportunity_endpoint_request.rb +223 -0
- data/lib/merge_crm_client/models/opportunity_request.rb +376 -0
- data/lib/merge_crm_client/models/opportunity_response.rb +266 -0
- data/lib/merge_crm_client/models/opportunity_status_enum.rb +46 -0
- data/lib/merge_crm_client/models/paginated_account_details_and_actions_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_account_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_contact_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_engagement_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_engagement_type_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_issue_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_lead_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_note_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_opportunity_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_stage_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_sync_status_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_task_list.rb +240 -0
- data/lib/merge_crm_client/models/paginated_user_list.rb +240 -0
- data/lib/merge_crm_client/models/phone_number.rb +232 -0
- data/lib/merge_crm_client/models/phone_number_request.rb +232 -0
- data/lib/merge_crm_client/models/remote_data.rb +234 -0
- data/lib/merge_crm_client/models/remote_key.rb +238 -0
- data/lib/merge_crm_client/models/remote_key_for_regeneration_request.rb +243 -0
- data/lib/merge_crm_client/models/remote_response.rb +290 -0
- data/lib/merge_crm_client/models/request_format_enum.rb +46 -0
- data/lib/merge_crm_client/models/stage.rb +263 -0
- data/lib/merge_crm_client/models/sync_status.rb +294 -0
- data/lib/merge_crm_client/models/sync_status_status_enum.rb +48 -0
- data/lib/merge_crm_client/models/task.rb +327 -0
- data/lib/merge_crm_client/models/task_status_enum.rb +45 -0
- data/lib/merge_crm_client/models/user.rb +285 -0
- data/lib/merge_crm_client/models/validation_problem_source.rb +223 -0
- data/lib/merge_crm_client/models/warning_validation_problem.rb +260 -0
- data/lib/merge_crm_client/models/webhook_receiver.rb +246 -0
- data/lib/merge_crm_client/models/webhook_receiver_request.rb +280 -0
- data/lib/merge_crm_client/version.rb +15 -0
- data/lib/merge_crm_client.rb +150 -0
- data/merge_crm_client.gemspec +38 -0
- data/pull_request_template.md +19 -0
- data/spec/api/account_details_api_spec.rb +46 -0
- data/spec/api/account_token_api_spec.rb +46 -0
- data/spec/api/accounts_api_spec.rb +96 -0
- data/spec/api/available_actions_api_spec.rb +46 -0
- data/spec/api/contacts_api_spec.rb +108 -0
- data/spec/api/delete_account_api_spec.rb +46 -0
- data/spec/api/engagement_types_api_spec.rb +68 -0
- data/spec/api/engagements_api_spec.rb +95 -0
- data/spec/api/force_resync_api_spec.rb +46 -0
- data/spec/api/generate_key_api_spec.rb +46 -0
- data/spec/api/issues_api_spec.rb +69 -0
- data/spec/api/leads_api_spec.rb +98 -0
- data/spec/api/link_token_api_spec.rb +46 -0
- data/spec/api/linked_accounts_api_spec.rb +58 -0
- data/spec/api/notes_api_spec.rb +99 -0
- data/spec/api/opportunities_api_spec.rb +101 -0
- data/spec/api/passthrough_api_spec.rb +47 -0
- data/spec/api/regenerate_key_api_spec.rb +46 -0
- data/spec/api/stages_api_spec.rb +68 -0
- data/spec/api/sync_status_api_spec.rb +48 -0
- data/spec/api/tasks_api_spec.rb +70 -0
- data/spec/api/users_api_spec.rb +68 -0
- data/spec/api/webhook_receivers_api_spec.rb +58 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_details_and_actions_integration_spec.rb +76 -0
- data/spec/models/account_details_and_actions_spec.rb +88 -0
- data/spec/models/account_details_and_actions_status_enum_spec.rb +28 -0
- data/spec/models/account_details_spec.rb +88 -0
- data/spec/models/account_integration_spec.rb +64 -0
- data/spec/models/account_request_spec.rb +100 -0
- data/spec/models/account_spec.rb +118 -0
- data/spec/models/account_token_spec.rb +40 -0
- data/spec/models/activity_type_enum_spec.rb +28 -0
- data/spec/models/address_request_spec.rb +70 -0
- data/spec/models/address_spec.rb +70 -0
- data/spec/models/address_type_enum_spec.rb +28 -0
- data/spec/models/available_actions_spec.rb +46 -0
- data/spec/models/categories_enum_spec.rb +28 -0
- data/spec/models/category_enum_spec.rb +28 -0
- data/spec/models/contact_request_spec.rb +76 -0
- data/spec/models/contact_spec.rb +100 -0
- data/spec/models/country_enum_spec.rb +28 -0
- data/spec/models/crm_account_endpoint_request_spec.rb +34 -0
- data/spec/models/crm_account_response_spec.rb +52 -0
- data/spec/models/crm_contact_endpoint_request_spec.rb +34 -0
- data/spec/models/crm_contact_response_spec.rb +52 -0
- data/spec/models/data_passthrough_request_spec.rb +76 -0
- data/spec/models/debug_mode_log_spec.rb +46 -0
- data/spec/models/debug_model_log_summary_spec.rb +46 -0
- data/spec/models/direction_enum_spec.rb +28 -0
- data/spec/models/email_address_request_spec.rb +40 -0
- data/spec/models/email_address_spec.rb +40 -0
- data/spec/models/encoding_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +70 -0
- data/spec/models/engagement_endpoint_request_spec.rb +34 -0
- data/spec/models/engagement_request_spec.rb +94 -0
- data/spec/models/engagement_response_spec.rb +52 -0
- data/spec/models/engagement_spec.rb +100 -0
- data/spec/models/engagement_type_spec.rb +52 -0
- data/spec/models/error_validation_problem_spec.rb +52 -0
- data/spec/models/generate_remote_key_request_spec.rb +34 -0
- data/spec/models/issue_spec.rb +70 -0
- data/spec/models/issue_status_enum_spec.rb +35 -0
- data/spec/models/lead_endpoint_request_spec.rb +34 -0
- data/spec/models/lead_request_spec.rb +112 -0
- data/spec/models/lead_response_spec.rb +52 -0
- data/spec/models/lead_spec.rb +136 -0
- data/spec/models/link_token_spec.rb +46 -0
- 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 +28 -0
- data/spec/models/model_operation_spec.rb +52 -0
- data/spec/models/multipart_form_field_request_spec.rb +58 -0
- data/spec/models/note_endpoint_request_spec.rb +34 -0
- data/spec/models/note_request_spec.rb +88 -0
- data/spec/models/note_response_spec.rb +52 -0
- data/spec/models/note_spec.rb +94 -0
- data/spec/models/opportunity_endpoint_request_spec.rb +34 -0
- data/spec/models/opportunity_request_spec.rb +106 -0
- data/spec/models/opportunity_response_spec.rb +52 -0
- data/spec/models/opportunity_spec.rb +112 -0
- data/spec/models/opportunity_status_enum_spec.rb +28 -0
- data/spec/models/paginated_account_details_and_actions_list_spec.rb +46 -0
- data/spec/models/paginated_account_list_spec.rb +46 -0
- data/spec/models/paginated_contact_list_spec.rb +46 -0
- data/spec/models/paginated_engagement_list_spec.rb +46 -0
- data/spec/models/paginated_engagement_type_list_spec.rb +46 -0
- data/spec/models/paginated_issue_list_spec.rb +46 -0
- data/spec/models/paginated_lead_list_spec.rb +46 -0
- data/spec/models/paginated_note_list_spec.rb +46 -0
- data/spec/models/paginated_opportunity_list_spec.rb +46 -0
- data/spec/models/paginated_stage_list_spec.rb +46 -0
- data/spec/models/paginated_sync_status_list_spec.rb +46 -0
- data/spec/models/paginated_task_list_spec.rb +46 -0
- data/spec/models/paginated_user_list_spec.rb +46 -0
- data/spec/models/phone_number_request_spec.rb +40 -0
- data/spec/models/phone_number_spec.rb +40 -0
- data/spec/models/remote_data_spec.rb +40 -0
- data/spec/models/remote_key_for_regeneration_request_spec.rb +34 -0
- data/spec/models/remote_key_spec.rb +40 -0
- data/spec/models/remote_response_spec.rb +64 -0
- data/spec/models/request_format_enum_spec.rb +28 -0
- data/spec/models/stage_spec.rb +58 -0
- data/spec/models/sync_status_spec.rb +64 -0
- data/spec/models/sync_status_status_enum_spec.rb +28 -0
- data/spec/models/task_spec.rb +94 -0
- data/spec/models/task_status_enum_spec.rb +28 -0
- data/spec/models/user_spec.rb +70 -0
- data/spec/models/validation_problem_source_spec.rb +34 -0
- 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
- data/spec/spec_helper.rb +111 -0
- metadata +545 -0
@@ -0,0 +1,262 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge CRM API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple CRM 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 MergeCRMClient
|
17
|
+
class MetaResponse
|
18
|
+
attr_accessor :request_schema
|
19
|
+
|
20
|
+
attr_accessor :status
|
21
|
+
|
22
|
+
attr_accessor :has_conditional_params
|
23
|
+
|
24
|
+
attr_accessor :has_required_linked_account_params
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'request_schema' => :'request_schema',
|
30
|
+
:'status' => :'status',
|
31
|
+
:'has_conditional_params' => :'has_conditional_params',
|
32
|
+
:'has_required_linked_account_params' => :'has_required_linked_account_params'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'request_schema' => :'Hash<String, AnyType>',
|
45
|
+
:'status' => :'LinkedAccountStatus',
|
46
|
+
:'has_conditional_params' => :'Boolean',
|
47
|
+
:'has_required_linked_account_params' => :'Boolean'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeCRMClient::MetaResponse` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeCRMClient::MetaResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'request_schema')
|
73
|
+
if (value = attributes[:'request_schema']).is_a?(Hash)
|
74
|
+
self.request_schema = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'status')
|
79
|
+
self.status = attributes[:'status']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'has_conditional_params')
|
83
|
+
self.has_conditional_params = attributes[:'has_conditional_params']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'has_required_linked_account_params')
|
87
|
+
self.has_required_linked_account_params = attributes[:'has_required_linked_account_params']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properties with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = Array.new
|
95
|
+
if @request_schema.nil?
|
96
|
+
invalid_properties.push('invalid value for "request_schema", request_schema cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @has_conditional_params.nil?
|
100
|
+
invalid_properties.push('invalid value for "has_conditional_params", has_conditional_params cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @has_required_linked_account_params.nil?
|
104
|
+
invalid_properties.push('invalid value for "has_required_linked_account_params", has_required_linked_account_params cannot be nil.')
|
105
|
+
end
|
106
|
+
|
107
|
+
invalid_properties
|
108
|
+
end
|
109
|
+
|
110
|
+
# Check to see if the all the properties in the model are valid
|
111
|
+
# @return true if the model is valid
|
112
|
+
def valid?
|
113
|
+
return false if @request_schema.nil?
|
114
|
+
return false if @has_conditional_params.nil?
|
115
|
+
return false if @has_required_linked_account_params.nil?
|
116
|
+
true
|
117
|
+
end
|
118
|
+
|
119
|
+
# Checks equality by comparing each attribute.
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def ==(o)
|
122
|
+
return true if self.equal?(o)
|
123
|
+
self.class == o.class &&
|
124
|
+
request_schema == o.request_schema &&
|
125
|
+
status == o.status &&
|
126
|
+
has_conditional_params == o.has_conditional_params &&
|
127
|
+
has_required_linked_account_params == o.has_required_linked_account_params
|
128
|
+
end
|
129
|
+
|
130
|
+
# @see the `==` method
|
131
|
+
# @param [Object] Object to be compared
|
132
|
+
def eql?(o)
|
133
|
+
self == o
|
134
|
+
end
|
135
|
+
|
136
|
+
# Calculates hash code according to all attributes.
|
137
|
+
# @return [Integer] Hash code
|
138
|
+
def hash
|
139
|
+
[request_schema, status, has_conditional_params, has_required_linked_account_params].hash
|
140
|
+
end
|
141
|
+
|
142
|
+
# Builds the object from hash
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
+
# @return [Object] Returns the model itself
|
145
|
+
def self.build_from_hash(attributes)
|
146
|
+
new.build_from_hash(attributes)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Builds the object from hash
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
151
|
+
# @return [Object] Returns the model itself
|
152
|
+
def build_from_hash(attributes)
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
154
|
+
self.class.openapi_types.each_pair do |key, type|
|
155
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
156
|
+
self.send("#{key}=", nil)
|
157
|
+
elsif type =~ /\AArray<(.*)>/i
|
158
|
+
# check to ensure the input is an array given that the attribute
|
159
|
+
# is documented as an array but the input is not
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
161
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
162
|
+
end
|
163
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
164
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
self
|
169
|
+
end
|
170
|
+
|
171
|
+
# Deserializes the data based on type
|
172
|
+
# @param string type Data type
|
173
|
+
# @param string value Value to be deserialized
|
174
|
+
# @return [Object] Deserialized data
|
175
|
+
def _deserialize(type, value)
|
176
|
+
case type.to_sym
|
177
|
+
when :Time
|
178
|
+
Time.parse(value)
|
179
|
+
when :Date
|
180
|
+
Date.parse(value)
|
181
|
+
when :String
|
182
|
+
value
|
183
|
+
when :Integer
|
184
|
+
value.to_i
|
185
|
+
when :Float
|
186
|
+
value.to_f
|
187
|
+
when :Boolean
|
188
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
189
|
+
true
|
190
|
+
else
|
191
|
+
false
|
192
|
+
end
|
193
|
+
when :Object
|
194
|
+
# generic object (usually a Hash), return directly
|
195
|
+
value
|
196
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
197
|
+
inner_type = Regexp.last_match[:inner_type]
|
198
|
+
value.map { |v| _deserialize(inner_type, v) }
|
199
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
200
|
+
k_type = Regexp.last_match[:k_type]
|
201
|
+
v_type = Regexp.last_match[:v_type]
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each do |k, v|
|
204
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
else # model
|
208
|
+
# models (e.g. Pet) or oneOf
|
209
|
+
klass = MergeCRMClient.const_get(type)
|
210
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# Returns the string representation of the object
|
215
|
+
# @return [String] String presentation of the object
|
216
|
+
def to_s
|
217
|
+
to_hash.to_s
|
218
|
+
end
|
219
|
+
|
220
|
+
# to_body is an alias to to_hash (backward compatibility)
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_body
|
223
|
+
to_hash
|
224
|
+
end
|
225
|
+
|
226
|
+
# Returns the object in the form of hash
|
227
|
+
# @return [Hash] Returns the object in the form of hash
|
228
|
+
def to_hash
|
229
|
+
hash = {}
|
230
|
+
self.class.attribute_map.each_pair do |attr, param|
|
231
|
+
value = self.send(attr)
|
232
|
+
if value.nil?
|
233
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
234
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
235
|
+
end
|
236
|
+
|
237
|
+
hash[param] = _to_hash(value)
|
238
|
+
end
|
239
|
+
hash
|
240
|
+
end
|
241
|
+
|
242
|
+
# Outputs non-array value in the form of hash
|
243
|
+
# For object, use to_hash. Otherwise, just return the value
|
244
|
+
# @param [Object] value Any valid value
|
245
|
+
# @return [Hash] Returns the value in the form of hash
|
246
|
+
def _to_hash(value)
|
247
|
+
if value.is_a?(Array)
|
248
|
+
value.compact.map { |v| _to_hash(v) }
|
249
|
+
elsif value.is_a?(Hash)
|
250
|
+
{}.tap do |hash|
|
251
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
252
|
+
end
|
253
|
+
elsif value.respond_to? :to_hash
|
254
|
+
value.to_hash
|
255
|
+
else
|
256
|
+
value
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
end
|
261
|
+
|
262
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge CRM API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple CRM 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 MergeCRMClient
|
17
|
+
class MethodEnum
|
18
|
+
GET = "GET".freeze
|
19
|
+
OPTIONS = "OPTIONS".freeze
|
20
|
+
HEAD = "HEAD".freeze
|
21
|
+
POST = "POST".freeze
|
22
|
+
PUT = "PUT".freeze
|
23
|
+
PATCH = "PATCH".freeze
|
24
|
+
DELETE = "DELETE".freeze
|
25
|
+
|
26
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
27
|
+
|
28
|
+
attr_accessor :value
|
29
|
+
attr_accessor :raw_value
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
@raw_value = value
|
36
|
+
if ["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE", ].include? value
|
37
|
+
@value = value
|
38
|
+
else
|
39
|
+
@value = MERGE_NONSTANDARD_VALUE
|
40
|
+
end
|
41
|
+
|
42
|
+
self
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.build_from_hash(value)
|
46
|
+
IssueStatusEnum.new.build_from_hash(value)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,272 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge CRM API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple CRM 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 MergeCRMClient
|
17
|
+
# # The ModelOperation Object ### Description The `ModelOperation` object is used to represent the operations that are currently supported for a given model. ### Usage Example View what operations are supported for the `Candidate` endpoint.
|
18
|
+
class ModelOperation
|
19
|
+
attr_accessor :model_name
|
20
|
+
|
21
|
+
attr_accessor :available_operations
|
22
|
+
|
23
|
+
attr_accessor :required_post_parameters
|
24
|
+
|
25
|
+
attr_accessor :supported_fields
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'model_name' => :'model_name',
|
31
|
+
:'available_operations' => :'available_operations',
|
32
|
+
:'required_post_parameters' => :'required_post_parameters',
|
33
|
+
:'supported_fields' => :'supported_fields'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'model_name' => :'String',
|
46
|
+
:'available_operations' => :'Array<String>',
|
47
|
+
:'required_post_parameters' => :'Array<String>',
|
48
|
+
:'supported_fields' => :'Array<String>'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
def self.openapi_nullable
|
54
|
+
Set.new([
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MergeCRMClient::ModelOperation` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MergeCRMClient::ModelOperation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
70
|
+
h[k.to_sym] = v
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'model_name')
|
74
|
+
self.model_name = attributes[:'model_name']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'available_operations')
|
78
|
+
if (value = attributes[:'available_operations']).is_a?(Array)
|
79
|
+
self.available_operations = value
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'required_post_parameters')
|
84
|
+
if (value = attributes[:'required_post_parameters']).is_a?(Array)
|
85
|
+
self.required_post_parameters = value
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'supported_fields')
|
90
|
+
if (value = attributes[:'supported_fields']).is_a?(Array)
|
91
|
+
self.supported_fields = value
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
+
# @return Array for valid properties with the reasons
|
98
|
+
def list_invalid_properties
|
99
|
+
invalid_properties = Array.new
|
100
|
+
if @model_name.nil?
|
101
|
+
invalid_properties.push('invalid value for "model_name", model_name cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @available_operations.nil?
|
105
|
+
invalid_properties.push('invalid value for "available_operations", available_operations cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @required_post_parameters.nil?
|
109
|
+
invalid_properties.push('invalid value for "required_post_parameters", required_post_parameters cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
if @supported_fields.nil?
|
113
|
+
invalid_properties.push('invalid value for "supported_fields", supported_fields cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
invalid_properties
|
117
|
+
end
|
118
|
+
|
119
|
+
# Check to see if the all the properties in the model are valid
|
120
|
+
# @return true if the model is valid
|
121
|
+
def valid?
|
122
|
+
return false if @model_name.nil?
|
123
|
+
return false if @available_operations.nil?
|
124
|
+
return false if @required_post_parameters.nil?
|
125
|
+
return false if @supported_fields.nil?
|
126
|
+
true
|
127
|
+
end
|
128
|
+
|
129
|
+
# Checks equality by comparing each attribute.
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def ==(o)
|
132
|
+
return true if self.equal?(o)
|
133
|
+
self.class == o.class &&
|
134
|
+
model_name == o.model_name &&
|
135
|
+
available_operations == o.available_operations &&
|
136
|
+
required_post_parameters == o.required_post_parameters &&
|
137
|
+
supported_fields == o.supported_fields
|
138
|
+
end
|
139
|
+
|
140
|
+
# @see the `==` method
|
141
|
+
# @param [Object] Object to be compared
|
142
|
+
def eql?(o)
|
143
|
+
self == o
|
144
|
+
end
|
145
|
+
|
146
|
+
# Calculates hash code according to all attributes.
|
147
|
+
# @return [Integer] Hash code
|
148
|
+
def hash
|
149
|
+
[model_name, available_operations, required_post_parameters, supported_fields].hash
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def self.build_from_hash(attributes)
|
156
|
+
new.build_from_hash(attributes)
|
157
|
+
end
|
158
|
+
|
159
|
+
# Builds the object from hash
|
160
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
161
|
+
# @return [Object] Returns the model itself
|
162
|
+
def build_from_hash(attributes)
|
163
|
+
return nil unless attributes.is_a?(Hash)
|
164
|
+
self.class.openapi_types.each_pair do |key, type|
|
165
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
166
|
+
self.send("#{key}=", nil)
|
167
|
+
elsif type =~ /\AArray<(.*)>/i
|
168
|
+
# check to ensure the input is an array given that the attribute
|
169
|
+
# is documented as an array but the input is not
|
170
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
171
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
172
|
+
end
|
173
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
174
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
self
|
179
|
+
end
|
180
|
+
|
181
|
+
# Deserializes the data based on type
|
182
|
+
# @param string type Data type
|
183
|
+
# @param string value Value to be deserialized
|
184
|
+
# @return [Object] Deserialized data
|
185
|
+
def _deserialize(type, value)
|
186
|
+
case type.to_sym
|
187
|
+
when :Time
|
188
|
+
Time.parse(value)
|
189
|
+
when :Date
|
190
|
+
Date.parse(value)
|
191
|
+
when :String
|
192
|
+
value
|
193
|
+
when :Integer
|
194
|
+
value.to_i
|
195
|
+
when :Float
|
196
|
+
value.to_f
|
197
|
+
when :Boolean
|
198
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
199
|
+
true
|
200
|
+
else
|
201
|
+
false
|
202
|
+
end
|
203
|
+
when :Object
|
204
|
+
# generic object (usually a Hash), return directly
|
205
|
+
value
|
206
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
207
|
+
inner_type = Regexp.last_match[:inner_type]
|
208
|
+
value.map { |v| _deserialize(inner_type, v) }
|
209
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
210
|
+
k_type = Regexp.last_match[:k_type]
|
211
|
+
v_type = Regexp.last_match[:v_type]
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each do |k, v|
|
214
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
215
|
+
end
|
216
|
+
end
|
217
|
+
else # model
|
218
|
+
# models (e.g. Pet) or oneOf
|
219
|
+
klass = MergeCRMClient.const_get(type)
|
220
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the string representation of the object
|
225
|
+
# @return [String] String presentation of the object
|
226
|
+
def to_s
|
227
|
+
to_hash.to_s
|
228
|
+
end
|
229
|
+
|
230
|
+
# to_body is an alias to to_hash (backward compatibility)
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_body
|
233
|
+
to_hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the object in the form of hash
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
238
|
+
def to_hash
|
239
|
+
hash = {}
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
241
|
+
value = self.send(attr)
|
242
|
+
if value.nil?
|
243
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
245
|
+
end
|
246
|
+
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
262
|
+
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
end
|
271
|
+
|
272
|
+
end
|