crelate_client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +267 -0
- data/Rakefile +8 -0
- data/crelate_client-1.0.0.gem +0 -0
- data/crelate_client.gemspec +45 -0
- data/docs/AssignedTo.md +11 -0
- data/docs/AssignedToRequest.md +9 -0
- data/docs/BoardParameters.md +9 -0
- data/docs/BroadcastMessage.md +15 -0
- data/docs/BroadcastMessageCreateRequest.md +9 -0
- data/docs/CompaniesApi.md +921 -0
- data/docs/Company.md +11 -0
- data/docs/ComplianceSettingsPayload.md +8 -0
- data/docs/ConsentRequestPayload.md +9 -0
- data/docs/ContactsApi.md +1246 -0
- data/docs/CrelateAction.md +14 -0
- data/docs/CrelateActionPayload.md +10 -0
- data/docs/CrelateDetails.md +10 -0
- data/docs/CustomFormCompletedForm.md +11 -0
- data/docs/CustomFormDefinition.md +16 -0
- data/docs/CustomFormDefinitionEntities.md +9 -0
- data/docs/CustomFormFormDefinitionUsage.md +10 -0
- data/docs/CustomFormFormDefintionUsageJobs.md +9 -0
- data/docs/CustomFormFormFieldUsage.md +11 -0
- data/docs/CustomFormFormFieldUsageFormDefinition.md +10 -0
- data/docs/CustomFormLayoutSection.md +9 -0
- data/docs/CustomFormSaveResponse.md +12 -0
- data/docs/DocumentCollection.md +10 -0
- data/docs/DocumentItem.md +22 -0
- data/docs/DomainApi.md +198 -0
- data/docs/EmailAttachment.md +9 -0
- data/docs/EntityDocumentOptions.md +8 -0
- data/docs/EntityLookup.md +15 -0
- data/docs/ExtIntegrationResponseInterviewResponse.md +11 -0
- data/docs/ExtReferralRequest.md +12 -0
- data/docs/ExtResumeCandidate.md +21 -0
- data/docs/ExtResumeCareerBuilderValidateCredentialsResponse.md +9 -0
- data/docs/ExtResumeOrgState.md +27 -0
- data/docs/ExtResumePackagePricing.md +11 -0
- data/docs/ExtResumePackageUpdateRequest.md +9 -0
- data/docs/ExtResumeSearchResponse.md +9 -0
- data/docs/ExtResumeViewResponse.md +30 -0
- data/docs/FusebillStateItem.md +9 -0
- data/docs/GetDocumentListOptions.md +10 -0
- data/docs/InterviewRequest.md +9 -0
- data/docs/InterviewRequestDetails.md +15 -0
- data/docs/InterviewResponse.md +18 -0
- data/docs/JobPostRequest.md +9 -0
- data/docs/JobPostingsApi.md +378 -0
- data/docs/JobResponse.md +15 -0
- data/docs/JobsApi.md +1197 -0
- data/docs/MultiEntityLookup.md +8 -0
- data/docs/NotesApi.md +215 -0
- data/docs/OrgAuditLogEvent.md +22 -0
- data/docs/PostPurchaseRequest.md +12 -0
- data/docs/PublicApiAttachmentResponse.md +19 -0
- data/docs/PublicApiAttachmentResponseList.md +9 -0
- data/docs/PublicApiDocumentType.md +10 -0
- data/docs/PublicApiGetAccountResponse.md +85 -0
- data/docs/PublicApiGetAccountResponseList.md +9 -0
- data/docs/PublicApiGetContactJob.md +13 -0
- data/docs/PublicApiGetContactResponse.md +151 -0
- data/docs/PublicApiGetContactResponseList.md +9 -0
- data/docs/PublicApiGetJobContact.md +13 -0
- data/docs/PublicApiGetJobListResponse.md +9 -0
- data/docs/PublicApiGetJobPostingListResponse.md +9 -0
- data/docs/PublicApiGetJobPostingResponse.md +29 -0
- data/docs/PublicApiGetJobPostingSearchResponse.md +8 -0
- data/docs/PublicApiGetJobPostingSearchResult.md +18 -0
- data/docs/PublicApiGetJobResponse.md +127 -0
- data/docs/PublicApiGetNoteResponse.md +21 -0
- data/docs/PublicApiGetTaskResponse.md +23 -0
- data/docs/PublicApiIdResponse.md +8 -0
- data/docs/PublicApiPlacementResponse.md +32 -0
- data/docs/PublicApiPlacementResponseList.md +9 -0
- data/docs/PublicApiRecordOwner.md +10 -0
- data/docs/PublicApiSaveAccountRequest.md +74 -0
- data/docs/PublicApiSaveAttachmentRequest.md +13 -0
- data/docs/PublicApiSaveContactRequest.md +139 -0
- data/docs/PublicApiSaveJobApplicationRequest.md +13 -0
- data/docs/PublicApiSaveJobPostingRequest.md +19 -0
- data/docs/PublicApiSaveJobRequest.md +95 -0
- data/docs/PublicApiSaveJobRequestJobType.md +9 -0
- data/docs/PublicApiSaveNoteRequest.md +11 -0
- data/docs/PublicApiSaveTaskRequest.md +13 -0
- data/docs/PublicApiSaveWorkflowItemStatusRequest.md +9 -0
- data/docs/PublicApiTagCategory.md +9 -0
- data/docs/PublicApiWorkflowStatus.md +12 -0
- data/docs/PublicApiWorkflowType.md +9 -0
- data/docs/Question.md +13 -0
- data/docs/QuestionSetResponse.md +12 -0
- data/docs/SaveExtCredentialResponse.md +10 -0
- data/docs/SearchContact.md +11 -0
- data/docs/SendEmailResponse.md +13 -0
- data/docs/SendSubmittalDetail.md +11 -0
- data/docs/ShareLink.md +13 -0
- data/docs/SignupInformation.md +19 -0
- data/docs/SmsPlivoMessageReceivedRequest.md +15 -0
- data/docs/SmsPlivoMessageStatusReceivedRequest.md +17 -0
- data/docs/SmsPlivoVoiceAnswerRequest.md +13 -0
- data/docs/SmsPlivoVoiceHangupRequest.md +19 -0
- data/docs/SparkHireResponseInfoInterviewResponse.md +11 -0
- data/docs/SparkHireResponseInfoJobResponse.md +11 -0
- data/docs/SparkHireResponseInfoQuestionSetResponse.md +11 -0
- data/docs/TasksApi.md +215 -0
- data/docs/UserResponse.md +12 -0
- data/docs/WayupData.md +15 -0
- data/docs/WebhookDeleteResponse.md +8 -0
- data/docs/ZipApplyData.md +15 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/crelate_client/.DS_Store +0 -0
- data/lib/crelate_client/api/companies_api.rb +1151 -0
- data/lib/crelate_client/api/contacts_api.rb +1552 -0
- data/lib/crelate_client/api/domain_api.rb +239 -0
- data/lib/crelate_client/api/job_postings_api.rb +467 -0
- data/lib/crelate_client/api/jobs_api.rb +1494 -0
- data/lib/crelate_client/api/notes_api.rb +273 -0
- data/lib/crelate_client/api/tasks_api.rb +273 -0
- data/lib/crelate_client/api_client.rb +388 -0
- data/lib/crelate_client/api_error.rb +38 -0
- data/lib/crelate_client/configuration.rb +202 -0
- data/lib/crelate_client/models/assigned_to.rb +215 -0
- data/lib/crelate_client/models/assigned_to_request.rb +197 -0
- data/lib/crelate_client/models/board_parameters.rb +199 -0
- data/lib/crelate_client/models/broadcast_message.rb +284 -0
- data/lib/crelate_client/models/broadcast_message_create_request.rb +197 -0
- data/lib/crelate_client/models/company.rb +215 -0
- data/lib/crelate_client/models/compliance_settings_payload.rb +188 -0
- data/lib/crelate_client/models/consent_request_payload.rb +197 -0
- data/lib/crelate_client/models/crelate_action.rb +279 -0
- data/lib/crelate_client/models/crelate_action_payload.rb +210 -0
- data/lib/crelate_client/models/crelate_details.rb +206 -0
- data/lib/crelate_client/models/custom_form_completed_form.rb +221 -0
- data/lib/crelate_client/models/custom_form_definition.rb +264 -0
- data/lib/crelate_client/models/custom_form_definition_entities.rb +201 -0
- data/lib/crelate_client/models/custom_form_form_definition_usage.rb +210 -0
- data/lib/crelate_client/models/custom_form_form_defintion_usage_jobs.rb +197 -0
- data/lib/crelate_client/models/custom_form_form_field_usage.rb +221 -0
- data/lib/crelate_client/models/custom_form_form_field_usage_form_definition.rb +206 -0
- data/lib/crelate_client/models/custom_form_layout_section.rb +199 -0
- data/lib/crelate_client/models/custom_form_save_response.rb +259 -0
- data/lib/crelate_client/models/document_collection.rb +212 -0
- data/lib/crelate_client/models/document_item.rb +316 -0
- data/lib/crelate_client/models/email_attachment.rb +213 -0
- data/lib/crelate_client/models/entity_document_options.rb +188 -0
- data/lib/crelate_client/models/entity_lookup.rb +286 -0
- data/lib/crelate_client/models/ext_integration_response_interview_response.rb +217 -0
- data/lib/crelate_client/models/ext_referral_request.rb +224 -0
- data/lib/crelate_client/models/ext_resume_candidate.rb +342 -0
- data/lib/crelate_client/models/ext_resume_career_builder_validate_credentials_response.rb +197 -0
- data/lib/crelate_client/models/ext_resume_org_state.rb +404 -0
- data/lib/crelate_client/models/ext_resume_package_pricing.rb +215 -0
- data/lib/crelate_client/models/ext_resume_package_update_request.rb +230 -0
- data/lib/crelate_client/models/ext_resume_search_response.rb +199 -0
- data/lib/crelate_client/models/ext_resume_view_response.rb +421 -0
- data/lib/crelate_client/models/fusebill_state_item.rb +197 -0
- data/lib/crelate_client/models/get_document_list_options.rb +231 -0
- data/lib/crelate_client/models/interview_request.rb +199 -0
- data/lib/crelate_client/models/interview_request_details.rb +255 -0
- data/lib/crelate_client/models/interview_response.rb +311 -0
- data/lib/crelate_client/models/job_post_request.rb +197 -0
- data/lib/crelate_client/models/job_response.rb +251 -0
- data/lib/crelate_client/models/multi_entity_lookup.rb +190 -0
- data/lib/crelate_client/models/org_audit_log_event.rb +314 -0
- data/lib/crelate_client/models/post_purchase_request.rb +224 -0
- data/lib/crelate_client/models/public_api_attachment_response.rb +287 -0
- data/lib/crelate_client/models/public_api_attachment_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_document_type.rb +208 -0
- data/lib/crelate_client/models/public_api_get_account_response.rb +889 -0
- data/lib/crelate_client/models/public_api_get_account_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_get_contact_job.rb +233 -0
- data/lib/crelate_client/models/public_api_get_contact_response.rb +1485 -0
- data/lib/crelate_client/models/public_api_get_contact_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_contact.rb +233 -0
- data/lib/crelate_client/models/public_api_get_job_list_response.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_posting_list_response.rb +199 -0
- data/lib/crelate_client/models/public_api_get_job_posting_response.rb +379 -0
- data/lib/crelate_client/models/public_api_get_job_posting_search_response.rb +190 -0
- data/lib/crelate_client/models/public_api_get_job_posting_search_result.rb +278 -0
- data/lib/crelate_client/models/public_api_get_job_response.rb +1267 -0
- data/lib/crelate_client/models/public_api_get_note_response.rb +307 -0
- data/lib/crelate_client/models/public_api_get_task_response.rb +325 -0
- data/lib/crelate_client/models/public_api_id_response.rb +188 -0
- data/lib/crelate_client/models/public_api_placement_response.rb +404 -0
- data/lib/crelate_client/models/public_api_placement_response_list.rb +199 -0
- data/lib/crelate_client/models/public_api_record_owner.rb +206 -0
- data/lib/crelate_client/models/public_api_save_account_request.rb +786 -0
- data/lib/crelate_client/models/public_api_save_attachment_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_contact_request.rb +1373 -0
- data/lib/crelate_client/models/public_api_save_job_application_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_job_posting_request.rb +287 -0
- data/lib/crelate_client/models/public_api_save_job_request.rb +975 -0
- data/lib/crelate_client/models/public_api_save_job_request_job_type.rb +197 -0
- data/lib/crelate_client/models/public_api_save_note_request.rb +215 -0
- data/lib/crelate_client/models/public_api_save_task_request.rb +233 -0
- data/lib/crelate_client/models/public_api_save_workflow_item_status_request.rb +197 -0
- data/lib/crelate_client/models/public_api_tag_category.rb +197 -0
- data/lib/crelate_client/models/public_api_workflow_status.rb +224 -0
- data/lib/crelate_client/models/public_api_workflow_type.rb +197 -0
- data/lib/crelate_client/models/question.rb +233 -0
- data/lib/crelate_client/models/question_set_response.rb +226 -0
- data/lib/crelate_client/models/save_ext_credential_response.rb +206 -0
- data/lib/crelate_client/models/search_contact.rb +215 -0
- data/lib/crelate_client/models/send_email_response.rb +235 -0
- data/lib/crelate_client/models/send_submittal_detail.rb +217 -0
- data/lib/crelate_client/models/share_link.rb +266 -0
- data/lib/crelate_client/models/signup_information.rb +287 -0
- data/lib/crelate_client/models/sms_plivo_message_received_request.rb +251 -0
- data/lib/crelate_client/models/sms_plivo_message_status_received_request.rb +269 -0
- data/lib/crelate_client/models/sms_plivo_voice_answer_request.rb +233 -0
- data/lib/crelate_client/models/sms_plivo_voice_hangup_request.rb +287 -0
- data/lib/crelate_client/models/spark_hire_response_info_interview_response.rb +215 -0
- data/lib/crelate_client/models/spark_hire_response_info_job_response.rb +215 -0
- data/lib/crelate_client/models/spark_hire_response_info_question_set_response.rb +215 -0
- data/lib/crelate_client/models/user_response.rb +224 -0
- data/lib/crelate_client/models/wayup_data.rb +267 -0
- data/lib/crelate_client/models/webhook_delete_response.rb +188 -0
- data/lib/crelate_client/models/zip_apply_data.rb +267 -0
- data/lib/crelate_client/version.rb +15 -0
- data/lib/crelate_client.rb +143 -0
- data/spec/api/companies_api_spec.rb +273 -0
- data/spec/api/contacts_api_spec.rb +358 -0
- data/spec/api/domain_api_spec.rb +83 -0
- data/spec/api/job_postings_api_spec.rb +131 -0
- data/spec/api/jobs_api_spec.rb +346 -0
- data/spec/api/notes_api_spec.rb +88 -0
- data/spec/api/tasks_api_spec.rb +88 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/assigned_to_request_spec.rb +48 -0
- data/spec/models/assigned_to_spec.rb +60 -0
- data/spec/models/board_parameters_spec.rb +48 -0
- data/spec/models/broadcast_message_create_request_spec.rb +48 -0
- data/spec/models/broadcast_message_spec.rb +88 -0
- data/spec/models/company_spec.rb +60 -0
- data/spec/models/compliance_settings_payload_spec.rb +42 -0
- data/spec/models/consent_request_payload_spec.rb +48 -0
- data/spec/models/crelate_action_payload_spec.rb +54 -0
- data/spec/models/crelate_action_spec.rb +82 -0
- data/spec/models/crelate_details_spec.rb +54 -0
- data/spec/models/custom_form_completed_form_spec.rb +60 -0
- data/spec/models/custom_form_definition_entities_spec.rb +48 -0
- data/spec/models/custom_form_definition_spec.rb +90 -0
- data/spec/models/custom_form_form_definition_usage_spec.rb +54 -0
- data/spec/models/custom_form_form_defintion_usage_jobs_spec.rb +48 -0
- data/spec/models/custom_form_form_field_usage_form_definition_spec.rb +54 -0
- data/spec/models/custom_form_form_field_usage_spec.rb +60 -0
- data/spec/models/custom_form_layout_section_spec.rb +48 -0
- data/spec/models/custom_form_save_response_spec.rb +70 -0
- data/spec/models/document_collection_spec.rb +54 -0
- data/spec/models/document_item_spec.rb +126 -0
- data/spec/models/email_attachment_spec.rb +48 -0
- data/spec/models/entity_document_options_spec.rb +42 -0
- data/spec/models/entity_lookup_spec.rb +88 -0
- data/spec/models/ext_integration_response_interview_response_spec.rb +60 -0
- data/spec/models/ext_referral_request_spec.rb +66 -0
- data/spec/models/ext_resume_candidate_spec.rb +124 -0
- data/spec/models/ext_resume_career_builder_validate_credentials_response_spec.rb +48 -0
- data/spec/models/ext_resume_org_state_spec.rb +164 -0
- data/spec/models/ext_resume_package_pricing_spec.rb +60 -0
- data/spec/models/ext_resume_package_update_request_spec.rb +52 -0
- data/spec/models/ext_resume_search_response_spec.rb +48 -0
- data/spec/models/ext_resume_view_response_spec.rb +178 -0
- data/spec/models/fusebill_state_item_spec.rb +48 -0
- data/spec/models/get_document_list_options_spec.rb +58 -0
- data/spec/models/interview_request_details_spec.rb +84 -0
- data/spec/models/interview_request_spec.rb +48 -0
- data/spec/models/interview_response_spec.rb +106 -0
- data/spec/models/job_post_request_spec.rb +48 -0
- data/spec/models/job_response_spec.rb +84 -0
- data/spec/models/multi_entity_lookup_spec.rb +42 -0
- data/spec/models/org_audit_log_event_spec.rb +126 -0
- data/spec/models/post_purchase_request_spec.rb +66 -0
- data/spec/models/public_api_attachment_response_list_spec.rb +48 -0
- data/spec/models/public_api_attachment_response_spec.rb +108 -0
- data/spec/models/public_api_document_type_spec.rb +54 -0
- data/spec/models/public_api_get_account_response_list_spec.rb +48 -0
- data/spec/models/public_api_get_account_response_spec.rb +504 -0
- data/spec/models/public_api_get_contact_job_spec.rb +72 -0
- data/spec/models/public_api_get_contact_response_list_spec.rb +48 -0
- data/spec/models/public_api_get_contact_response_spec.rb +900 -0
- data/spec/models/public_api_get_job_contact_spec.rb +72 -0
- data/spec/models/public_api_get_job_list_response_spec.rb +48 -0
- data/spec/models/public_api_get_job_posting_list_response_spec.rb +48 -0
- data/spec/models/public_api_get_job_posting_response_spec.rb +168 -0
- data/spec/models/public_api_get_job_posting_search_response_spec.rb +42 -0
- data/spec/models/public_api_get_job_posting_search_result_spec.rb +102 -0
- data/spec/models/public_api_get_job_response_spec.rb +756 -0
- data/spec/models/public_api_get_note_response_spec.rb +120 -0
- data/spec/models/public_api_get_task_response_spec.rb +132 -0
- data/spec/models/public_api_id_response_spec.rb +42 -0
- data/spec/models/public_api_placement_response_list_spec.rb +48 -0
- data/spec/models/public_api_placement_response_spec.rb +186 -0
- data/spec/models/public_api_record_owner_spec.rb +54 -0
- data/spec/models/public_api_save_account_request_spec.rb +438 -0
- data/spec/models/public_api_save_attachment_request_spec.rb +72 -0
- data/spec/models/public_api_save_contact_request_spec.rb +828 -0
- data/spec/models/public_api_save_job_application_request_spec.rb +72 -0
- data/spec/models/public_api_save_job_posting_request_spec.rb +108 -0
- data/spec/models/public_api_save_job_request_job_type_spec.rb +48 -0
- data/spec/models/public_api_save_job_request_spec.rb +564 -0
- data/spec/models/public_api_save_note_request_spec.rb +60 -0
- data/spec/models/public_api_save_task_request_spec.rb +72 -0
- data/spec/models/public_api_save_workflow_item_status_request_spec.rb +48 -0
- data/spec/models/public_api_tag_category_spec.rb +48 -0
- data/spec/models/public_api_workflow_status_spec.rb +66 -0
- data/spec/models/public_api_workflow_type_spec.rb +48 -0
- data/spec/models/question_set_response_spec.rb +66 -0
- data/spec/models/question_spec.rb +72 -0
- data/spec/models/save_ext_credential_response_spec.rb +54 -0
- data/spec/models/search_contact_spec.rb +60 -0
- data/spec/models/send_email_response_spec.rb +72 -0
- data/spec/models/send_submittal_detail_spec.rb +60 -0
- data/spec/models/share_link_spec.rb +76 -0
- data/spec/models/signup_information_spec.rb +108 -0
- data/spec/models/sms_plivo_message_received_request_spec.rb +84 -0
- data/spec/models/sms_plivo_message_status_received_request_spec.rb +96 -0
- data/spec/models/sms_plivo_voice_answer_request_spec.rb +72 -0
- data/spec/models/sms_plivo_voice_hangup_request_spec.rb +108 -0
- data/spec/models/spark_hire_response_info_interview_response_spec.rb +60 -0
- data/spec/models/spark_hire_response_info_job_response_spec.rb +60 -0
- data/spec/models/spark_hire_response_info_question_set_response_spec.rb +60 -0
- data/spec/models/user_response_spec.rb +66 -0
- data/spec/models/wayup_data_spec.rb +84 -0
- data/spec/models/webhook_delete_response_spec.rb +42 -0
- data/spec/models/zip_apply_data_spec.rb +84 -0
- data/spec/spec_helper.rb +111 -0
- metadata +654 -0
@@ -0,0 +1,1373 @@
|
|
1
|
+
=begin
|
2
|
+
#Crelate API Reference
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CrelateClient
|
16
|
+
|
17
|
+
class PublicApiSaveContactRequest
|
18
|
+
attr_accessor :address_business_city
|
19
|
+
|
20
|
+
attr_accessor :address_business_country
|
21
|
+
|
22
|
+
attr_accessor :address_business_is_primary
|
23
|
+
|
24
|
+
attr_accessor :address_business_line1
|
25
|
+
|
26
|
+
attr_accessor :address_business_state
|
27
|
+
|
28
|
+
attr_accessor :address_business_zip_code
|
29
|
+
|
30
|
+
attr_accessor :address_home_city
|
31
|
+
|
32
|
+
attr_accessor :address_home_country
|
33
|
+
|
34
|
+
attr_accessor :address_home_is_primary
|
35
|
+
|
36
|
+
attr_accessor :address_home_line1
|
37
|
+
|
38
|
+
attr_accessor :address_home_state
|
39
|
+
|
40
|
+
attr_accessor :address_home_zip_code
|
41
|
+
|
42
|
+
attr_accessor :address_other_city
|
43
|
+
|
44
|
+
attr_accessor :address_other_country
|
45
|
+
|
46
|
+
attr_accessor :address_other_is_primary
|
47
|
+
|
48
|
+
attr_accessor :address_other_line1
|
49
|
+
|
50
|
+
attr_accessor :address_other_state
|
51
|
+
|
52
|
+
attr_accessor :address_other_zip_code
|
53
|
+
|
54
|
+
attr_accessor :current_position_company_id
|
55
|
+
|
56
|
+
attr_accessor :current_position_company_name
|
57
|
+
|
58
|
+
attr_accessor :current_position_title
|
59
|
+
|
60
|
+
attr_accessor :current_position_when_end
|
61
|
+
|
62
|
+
attr_accessor :current_position_when_start
|
63
|
+
|
64
|
+
attr_accessor :description
|
65
|
+
|
66
|
+
attr_accessor :education_accreditation_id
|
67
|
+
|
68
|
+
attr_accessor :education_accreditation_name
|
69
|
+
|
70
|
+
attr_accessor :education_honors
|
71
|
+
|
72
|
+
attr_accessor :education_institution_id
|
73
|
+
|
74
|
+
attr_accessor :education_institution_name
|
75
|
+
|
76
|
+
attr_accessor :education_when_end
|
77
|
+
|
78
|
+
attr_accessor :education_when_start
|
79
|
+
|
80
|
+
attr_accessor :email_address_other
|
81
|
+
|
82
|
+
attr_accessor :email_address_other_is_primary
|
83
|
+
|
84
|
+
attr_accessor :email_address_personal
|
85
|
+
|
86
|
+
attr_accessor :email_address_personal_is_primary
|
87
|
+
|
88
|
+
attr_accessor :email_address_work
|
89
|
+
|
90
|
+
attr_accessor :email_address_work_is_primary
|
91
|
+
|
92
|
+
attr_accessor :ethnicity_id
|
93
|
+
|
94
|
+
attr_accessor :ethnicity_name
|
95
|
+
|
96
|
+
attr_accessor :external_primary_key
|
97
|
+
|
98
|
+
attr_accessor :first_name
|
99
|
+
|
100
|
+
attr_accessor :gender_id
|
101
|
+
|
102
|
+
attr_accessor :gender_name
|
103
|
+
|
104
|
+
attr_accessor :key_date_anniversary
|
105
|
+
|
106
|
+
attr_accessor :key_date_birthday
|
107
|
+
|
108
|
+
attr_accessor :key_date_other
|
109
|
+
|
110
|
+
attr_accessor :last_name
|
111
|
+
|
112
|
+
attr_accessor :middle_name
|
113
|
+
|
114
|
+
attr_accessor :nick_name
|
115
|
+
|
116
|
+
attr_accessor :phone_number_fax
|
117
|
+
|
118
|
+
attr_accessor :phone_number_fax_extension
|
119
|
+
|
120
|
+
attr_accessor :phone_number_fax_is_primary
|
121
|
+
|
122
|
+
attr_accessor :phone_number_home
|
123
|
+
|
124
|
+
attr_accessor :phone_number_home_extension
|
125
|
+
|
126
|
+
attr_accessor :phone_number_home_is_primary
|
127
|
+
|
128
|
+
attr_accessor :phone_number_mobile
|
129
|
+
|
130
|
+
attr_accessor :phone_number_mobile_extension
|
131
|
+
|
132
|
+
attr_accessor :phone_number_mobile_is_primary
|
133
|
+
|
134
|
+
attr_accessor :phone_number_other
|
135
|
+
|
136
|
+
attr_accessor :phone_number_other_extension
|
137
|
+
|
138
|
+
attr_accessor :phone_number_other_is_primary
|
139
|
+
|
140
|
+
attr_accessor :phone_number_skype
|
141
|
+
|
142
|
+
attr_accessor :phone_number_skype_extension
|
143
|
+
|
144
|
+
attr_accessor :phone_number_skype_is_primary
|
145
|
+
|
146
|
+
attr_accessor :phone_number_work_direct
|
147
|
+
|
148
|
+
attr_accessor :phone_number_work_direct_extension
|
149
|
+
|
150
|
+
attr_accessor :phone_number_work_direct_is_primary
|
151
|
+
|
152
|
+
attr_accessor :phone_number_work_main
|
153
|
+
|
154
|
+
attr_accessor :phone_number_work_main_extension
|
155
|
+
|
156
|
+
attr_accessor :phone_number_work_main_is_primary
|
157
|
+
|
158
|
+
attr_accessor :preferred_contact_method_type_id
|
159
|
+
|
160
|
+
attr_accessor :preferred_contact_method_type_name
|
161
|
+
|
162
|
+
attr_accessor :record_type
|
163
|
+
|
164
|
+
attr_accessor :related_contact_assistant_first_name
|
165
|
+
|
166
|
+
attr_accessor :related_contact_assistant_id
|
167
|
+
|
168
|
+
attr_accessor :related_contact_assistant_is_primary
|
169
|
+
|
170
|
+
attr_accessor :related_contact_assistant_last_name
|
171
|
+
|
172
|
+
attr_accessor :related_contact_client_first_name
|
173
|
+
|
174
|
+
attr_accessor :related_contact_client_id
|
175
|
+
|
176
|
+
attr_accessor :related_contact_client_is_primary
|
177
|
+
|
178
|
+
attr_accessor :related_contact_client_last_name
|
179
|
+
|
180
|
+
attr_accessor :related_contact_other_first_name
|
181
|
+
|
182
|
+
attr_accessor :related_contact_other_id
|
183
|
+
|
184
|
+
attr_accessor :related_contact_other_is_primary
|
185
|
+
|
186
|
+
attr_accessor :related_contact_other_last_name
|
187
|
+
|
188
|
+
attr_accessor :related_contact_referred_by_first_name
|
189
|
+
|
190
|
+
attr_accessor :related_contact_referred_by_id
|
191
|
+
|
192
|
+
attr_accessor :related_contact_referred_by_is_primary
|
193
|
+
|
194
|
+
attr_accessor :related_contact_referred_by_last_name
|
195
|
+
|
196
|
+
attr_accessor :related_contact_spouse_first_name
|
197
|
+
|
198
|
+
attr_accessor :related_contact_spouse_id
|
199
|
+
|
200
|
+
attr_accessor :related_contact_spouse_is_primary
|
201
|
+
|
202
|
+
attr_accessor :related_contact_spouse_last_name
|
203
|
+
|
204
|
+
attr_accessor :salary
|
205
|
+
|
206
|
+
attr_accessor :salary_details
|
207
|
+
|
208
|
+
attr_accessor :salutation_id
|
209
|
+
|
210
|
+
attr_accessor :salutation_name
|
211
|
+
|
212
|
+
attr_accessor :social_aim
|
213
|
+
|
214
|
+
attr_accessor :social_aim_is_primary
|
215
|
+
|
216
|
+
attr_accessor :social_facebook_chat
|
217
|
+
|
218
|
+
attr_accessor :social_facebook_chat_is_primary
|
219
|
+
|
220
|
+
attr_accessor :social_face_time
|
221
|
+
|
222
|
+
attr_accessor :social_face_time_is_primary
|
223
|
+
|
224
|
+
attr_accessor :social_google_talk
|
225
|
+
|
226
|
+
attr_accessor :social_google_talk_is_primary
|
227
|
+
|
228
|
+
attr_accessor :social_icq
|
229
|
+
|
230
|
+
attr_accessor :social_icq_is_primary
|
231
|
+
|
232
|
+
attr_accessor :social_other
|
233
|
+
|
234
|
+
attr_accessor :social_other_is_primary
|
235
|
+
|
236
|
+
attr_accessor :social_skype
|
237
|
+
|
238
|
+
attr_accessor :social_skype_is_primary
|
239
|
+
|
240
|
+
attr_accessor :social_twitter
|
241
|
+
|
242
|
+
attr_accessor :social_twitter_is_primary
|
243
|
+
|
244
|
+
attr_accessor :social_yahoo_msg
|
245
|
+
|
246
|
+
attr_accessor :social_yahoo_msg_is_primary
|
247
|
+
|
248
|
+
attr_accessor :source_id
|
249
|
+
|
250
|
+
attr_accessor :source_name
|
251
|
+
|
252
|
+
attr_accessor :suffix_id
|
253
|
+
|
254
|
+
attr_accessor :suffix_name
|
255
|
+
|
256
|
+
attr_accessor :tags
|
257
|
+
|
258
|
+
attr_accessor :website_blog
|
259
|
+
|
260
|
+
attr_accessor :website_blog_is_primary
|
261
|
+
|
262
|
+
attr_accessor :website_business
|
263
|
+
|
264
|
+
attr_accessor :website_business_is_primary
|
265
|
+
|
266
|
+
attr_accessor :website_facebook
|
267
|
+
|
268
|
+
attr_accessor :website_facebook_is_primary
|
269
|
+
|
270
|
+
attr_accessor :website_linked_in
|
271
|
+
|
272
|
+
attr_accessor :website_linked_in_is_primary
|
273
|
+
|
274
|
+
attr_accessor :website_other
|
275
|
+
|
276
|
+
attr_accessor :website_other_is_primary
|
277
|
+
|
278
|
+
attr_accessor :website_personal
|
279
|
+
|
280
|
+
attr_accessor :website_personal_is_primary
|
281
|
+
|
282
|
+
|
283
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
284
|
+
def self.attribute_map
|
285
|
+
{
|
286
|
+
:'address_business_city' => :'Address_Business_City',
|
287
|
+
:'address_business_country' => :'Address_Business_Country',
|
288
|
+
:'address_business_is_primary' => :'Address_Business_IsPrimary',
|
289
|
+
:'address_business_line1' => :'Address_Business_Line1',
|
290
|
+
:'address_business_state' => :'Address_Business_State',
|
291
|
+
:'address_business_zip_code' => :'Address_Business_ZipCode',
|
292
|
+
:'address_home_city' => :'Address_Home_City',
|
293
|
+
:'address_home_country' => :'Address_Home_Country',
|
294
|
+
:'address_home_is_primary' => :'Address_Home_IsPrimary',
|
295
|
+
:'address_home_line1' => :'Address_Home_Line1',
|
296
|
+
:'address_home_state' => :'Address_Home_State',
|
297
|
+
:'address_home_zip_code' => :'Address_Home_ZipCode',
|
298
|
+
:'address_other_city' => :'Address_Other_City',
|
299
|
+
:'address_other_country' => :'Address_Other_Country',
|
300
|
+
:'address_other_is_primary' => :'Address_Other_IsPrimary',
|
301
|
+
:'address_other_line1' => :'Address_Other_Line1',
|
302
|
+
:'address_other_state' => :'Address_Other_State',
|
303
|
+
:'address_other_zip_code' => :'Address_Other_ZipCode',
|
304
|
+
:'current_position_company_id' => :'CurrentPosition_Company_Id',
|
305
|
+
:'current_position_company_name' => :'CurrentPosition_Company_Name',
|
306
|
+
:'current_position_title' => :'CurrentPosition_Title',
|
307
|
+
:'current_position_when_end' => :'CurrentPosition_WhenEnd',
|
308
|
+
:'current_position_when_start' => :'CurrentPosition_WhenStart',
|
309
|
+
:'description' => :'Description',
|
310
|
+
:'education_accreditation_id' => :'Education_Accreditation_Id',
|
311
|
+
:'education_accreditation_name' => :'Education_Accreditation_Name',
|
312
|
+
:'education_honors' => :'Education_Honors',
|
313
|
+
:'education_institution_id' => :'Education_Institution_Id',
|
314
|
+
:'education_institution_name' => :'Education_Institution_Name',
|
315
|
+
:'education_when_end' => :'Education_WhenEnd',
|
316
|
+
:'education_when_start' => :'Education_WhenStart',
|
317
|
+
:'email_address_other' => :'EmailAddress_Other',
|
318
|
+
:'email_address_other_is_primary' => :'EmailAddress_Other_IsPrimary',
|
319
|
+
:'email_address_personal' => :'EmailAddress_Personal',
|
320
|
+
:'email_address_personal_is_primary' => :'EmailAddress_Personal_IsPrimary',
|
321
|
+
:'email_address_work' => :'EmailAddress_Work',
|
322
|
+
:'email_address_work_is_primary' => :'EmailAddress_Work_IsPrimary',
|
323
|
+
:'ethnicity_id' => :'Ethnicity_Id',
|
324
|
+
:'ethnicity_name' => :'Ethnicity_Name',
|
325
|
+
:'external_primary_key' => :'ExternalPrimaryKey',
|
326
|
+
:'first_name' => :'FirstName',
|
327
|
+
:'gender_id' => :'Gender_Id',
|
328
|
+
:'gender_name' => :'Gender_Name',
|
329
|
+
:'key_date_anniversary' => :'KeyDate_Anniversary',
|
330
|
+
:'key_date_birthday' => :'KeyDate_Birthday',
|
331
|
+
:'key_date_other' => :'KeyDate_Other',
|
332
|
+
:'last_name' => :'LastName',
|
333
|
+
:'middle_name' => :'MiddleName',
|
334
|
+
:'nick_name' => :'NickName',
|
335
|
+
:'phone_number_fax' => :'PhoneNumber_Fax',
|
336
|
+
:'phone_number_fax_extension' => :'PhoneNumber_Fax_Extension',
|
337
|
+
:'phone_number_fax_is_primary' => :'PhoneNumber_Fax_IsPrimary',
|
338
|
+
:'phone_number_home' => :'PhoneNumber_Home',
|
339
|
+
:'phone_number_home_extension' => :'PhoneNumber_Home_Extension',
|
340
|
+
:'phone_number_home_is_primary' => :'PhoneNumber_Home_IsPrimary',
|
341
|
+
:'phone_number_mobile' => :'PhoneNumber_Mobile',
|
342
|
+
:'phone_number_mobile_extension' => :'PhoneNumber_Mobile_Extension',
|
343
|
+
:'phone_number_mobile_is_primary' => :'PhoneNumber_Mobile_IsPrimary',
|
344
|
+
:'phone_number_other' => :'PhoneNumber_Other',
|
345
|
+
:'phone_number_other_extension' => :'PhoneNumber_Other_Extension',
|
346
|
+
:'phone_number_other_is_primary' => :'PhoneNumber_Other_IsPrimary',
|
347
|
+
:'phone_number_skype' => :'PhoneNumber_Skype',
|
348
|
+
:'phone_number_skype_extension' => :'PhoneNumber_Skype_Extension',
|
349
|
+
:'phone_number_skype_is_primary' => :'PhoneNumber_Skype_IsPrimary',
|
350
|
+
:'phone_number_work_direct' => :'PhoneNumber_WorkDirect',
|
351
|
+
:'phone_number_work_direct_extension' => :'PhoneNumber_WorkDirect_Extension',
|
352
|
+
:'phone_number_work_direct_is_primary' => :'PhoneNumber_WorkDirect_IsPrimary',
|
353
|
+
:'phone_number_work_main' => :'PhoneNumber_WorkMain',
|
354
|
+
:'phone_number_work_main_extension' => :'PhoneNumber_WorkMain_Extension',
|
355
|
+
:'phone_number_work_main_is_primary' => :'PhoneNumber_WorkMain_IsPrimary',
|
356
|
+
:'preferred_contact_method_type_id' => :'PreferredContactMethodType_Id',
|
357
|
+
:'preferred_contact_method_type_name' => :'PreferredContactMethodType_Name',
|
358
|
+
:'record_type' => :'RecordType',
|
359
|
+
:'related_contact_assistant_first_name' => :'RelatedContact_Assistant_FirstName',
|
360
|
+
:'related_contact_assistant_id' => :'RelatedContact_Assistant_Id',
|
361
|
+
:'related_contact_assistant_is_primary' => :'RelatedContact_Assistant_IsPrimary',
|
362
|
+
:'related_contact_assistant_last_name' => :'RelatedContact_Assistant_LastName',
|
363
|
+
:'related_contact_client_first_name' => :'RelatedContact_Client_FirstName',
|
364
|
+
:'related_contact_client_id' => :'RelatedContact_Client_Id',
|
365
|
+
:'related_contact_client_is_primary' => :'RelatedContact_Client_IsPrimary',
|
366
|
+
:'related_contact_client_last_name' => :'RelatedContact_Client_LastName',
|
367
|
+
:'related_contact_other_first_name' => :'RelatedContact_Other_FirstName',
|
368
|
+
:'related_contact_other_id' => :'RelatedContact_Other_Id',
|
369
|
+
:'related_contact_other_is_primary' => :'RelatedContact_Other_IsPrimary',
|
370
|
+
:'related_contact_other_last_name' => :'RelatedContact_Other_LastName',
|
371
|
+
:'related_contact_referred_by_first_name' => :'RelatedContact_ReferredBy_FirstName',
|
372
|
+
:'related_contact_referred_by_id' => :'RelatedContact_ReferredBy_Id',
|
373
|
+
:'related_contact_referred_by_is_primary' => :'RelatedContact_ReferredBy_IsPrimary',
|
374
|
+
:'related_contact_referred_by_last_name' => :'RelatedContact_ReferredBy_LastName',
|
375
|
+
:'related_contact_spouse_first_name' => :'RelatedContact_Spouse_FirstName',
|
376
|
+
:'related_contact_spouse_id' => :'RelatedContact_Spouse_Id',
|
377
|
+
:'related_contact_spouse_is_primary' => :'RelatedContact_Spouse_IsPrimary',
|
378
|
+
:'related_contact_spouse_last_name' => :'RelatedContact_Spouse_LastName',
|
379
|
+
:'salary' => :'Salary',
|
380
|
+
:'salary_details' => :'SalaryDetails',
|
381
|
+
:'salutation_id' => :'Salutation_Id',
|
382
|
+
:'salutation_name' => :'Salutation_Name',
|
383
|
+
:'social_aim' => :'Social_AIM',
|
384
|
+
:'social_aim_is_primary' => :'Social_AIM_IsPrimary',
|
385
|
+
:'social_facebook_chat' => :'Social_FacebookChat',
|
386
|
+
:'social_facebook_chat_is_primary' => :'Social_FacebookChat_IsPrimary',
|
387
|
+
:'social_face_time' => :'Social_FaceTime',
|
388
|
+
:'social_face_time_is_primary' => :'Social_FaceTime_IsPrimary',
|
389
|
+
:'social_google_talk' => :'Social_GoogleTalk',
|
390
|
+
:'social_google_talk_is_primary' => :'Social_GoogleTalk_IsPrimary',
|
391
|
+
:'social_icq' => :'Social_ICQ',
|
392
|
+
:'social_icq_is_primary' => :'Social_ICQ_IsPrimary',
|
393
|
+
:'social_other' => :'Social_Other',
|
394
|
+
:'social_other_is_primary' => :'Social_Other_IsPrimary',
|
395
|
+
:'social_skype' => :'Social_Skype',
|
396
|
+
:'social_skype_is_primary' => :'Social_Skype_IsPrimary',
|
397
|
+
:'social_twitter' => :'Social_Twitter',
|
398
|
+
:'social_twitter_is_primary' => :'Social_Twitter_IsPrimary',
|
399
|
+
:'social_yahoo_msg' => :'Social_YahooMsg',
|
400
|
+
:'social_yahoo_msg_is_primary' => :'Social_YahooMsg_IsPrimary',
|
401
|
+
:'source_id' => :'Source_Id',
|
402
|
+
:'source_name' => :'Source_Name',
|
403
|
+
:'suffix_id' => :'Suffix_Id',
|
404
|
+
:'suffix_name' => :'Suffix_Name',
|
405
|
+
:'tags' => :'Tags',
|
406
|
+
:'website_blog' => :'Website_Blog',
|
407
|
+
:'website_blog_is_primary' => :'Website_Blog_IsPrimary',
|
408
|
+
:'website_business' => :'Website_Business',
|
409
|
+
:'website_business_is_primary' => :'Website_Business_IsPrimary',
|
410
|
+
:'website_facebook' => :'Website_Facebook',
|
411
|
+
:'website_facebook_is_primary' => :'Website_Facebook_IsPrimary',
|
412
|
+
:'website_linked_in' => :'Website_LinkedIn',
|
413
|
+
:'website_linked_in_is_primary' => :'Website_LinkedIn_IsPrimary',
|
414
|
+
:'website_other' => :'Website_Other',
|
415
|
+
:'website_other_is_primary' => :'Website_Other_IsPrimary',
|
416
|
+
:'website_personal' => :'Website_Personal',
|
417
|
+
:'website_personal_is_primary' => :'Website_Personal_IsPrimary'
|
418
|
+
}
|
419
|
+
end
|
420
|
+
|
421
|
+
# Attribute type mapping.
|
422
|
+
def self.swagger_types
|
423
|
+
{
|
424
|
+
:'address_business_city' => :'String',
|
425
|
+
:'address_business_country' => :'String',
|
426
|
+
:'address_business_is_primary' => :'BOOLEAN',
|
427
|
+
:'address_business_line1' => :'String',
|
428
|
+
:'address_business_state' => :'String',
|
429
|
+
:'address_business_zip_code' => :'String',
|
430
|
+
:'address_home_city' => :'String',
|
431
|
+
:'address_home_country' => :'String',
|
432
|
+
:'address_home_is_primary' => :'BOOLEAN',
|
433
|
+
:'address_home_line1' => :'String',
|
434
|
+
:'address_home_state' => :'String',
|
435
|
+
:'address_home_zip_code' => :'String',
|
436
|
+
:'address_other_city' => :'String',
|
437
|
+
:'address_other_country' => :'String',
|
438
|
+
:'address_other_is_primary' => :'BOOLEAN',
|
439
|
+
:'address_other_line1' => :'String',
|
440
|
+
:'address_other_state' => :'String',
|
441
|
+
:'address_other_zip_code' => :'String',
|
442
|
+
:'current_position_company_id' => :'String',
|
443
|
+
:'current_position_company_name' => :'String',
|
444
|
+
:'current_position_title' => :'String',
|
445
|
+
:'current_position_when_end' => :'DateTime',
|
446
|
+
:'current_position_when_start' => :'DateTime',
|
447
|
+
:'description' => :'String',
|
448
|
+
:'education_accreditation_id' => :'String',
|
449
|
+
:'education_accreditation_name' => :'String',
|
450
|
+
:'education_honors' => :'Array<String>',
|
451
|
+
:'education_institution_id' => :'String',
|
452
|
+
:'education_institution_name' => :'String',
|
453
|
+
:'education_when_end' => :'DateTime',
|
454
|
+
:'education_when_start' => :'DateTime',
|
455
|
+
:'email_address_other' => :'String',
|
456
|
+
:'email_address_other_is_primary' => :'BOOLEAN',
|
457
|
+
:'email_address_personal' => :'String',
|
458
|
+
:'email_address_personal_is_primary' => :'BOOLEAN',
|
459
|
+
:'email_address_work' => :'String',
|
460
|
+
:'email_address_work_is_primary' => :'BOOLEAN',
|
461
|
+
:'ethnicity_id' => :'String',
|
462
|
+
:'ethnicity_name' => :'String',
|
463
|
+
:'external_primary_key' => :'String',
|
464
|
+
:'first_name' => :'String',
|
465
|
+
:'gender_id' => :'String',
|
466
|
+
:'gender_name' => :'String',
|
467
|
+
:'key_date_anniversary' => :'DateTime',
|
468
|
+
:'key_date_birthday' => :'DateTime',
|
469
|
+
:'key_date_other' => :'DateTime',
|
470
|
+
:'last_name' => :'String',
|
471
|
+
:'middle_name' => :'String',
|
472
|
+
:'nick_name' => :'String',
|
473
|
+
:'phone_number_fax' => :'String',
|
474
|
+
:'phone_number_fax_extension' => :'String',
|
475
|
+
:'phone_number_fax_is_primary' => :'BOOLEAN',
|
476
|
+
:'phone_number_home' => :'String',
|
477
|
+
:'phone_number_home_extension' => :'String',
|
478
|
+
:'phone_number_home_is_primary' => :'BOOLEAN',
|
479
|
+
:'phone_number_mobile' => :'String',
|
480
|
+
:'phone_number_mobile_extension' => :'String',
|
481
|
+
:'phone_number_mobile_is_primary' => :'BOOLEAN',
|
482
|
+
:'phone_number_other' => :'String',
|
483
|
+
:'phone_number_other_extension' => :'String',
|
484
|
+
:'phone_number_other_is_primary' => :'BOOLEAN',
|
485
|
+
:'phone_number_skype' => :'String',
|
486
|
+
:'phone_number_skype_extension' => :'String',
|
487
|
+
:'phone_number_skype_is_primary' => :'BOOLEAN',
|
488
|
+
:'phone_number_work_direct' => :'String',
|
489
|
+
:'phone_number_work_direct_extension' => :'String',
|
490
|
+
:'phone_number_work_direct_is_primary' => :'BOOLEAN',
|
491
|
+
:'phone_number_work_main' => :'String',
|
492
|
+
:'phone_number_work_main_extension' => :'String',
|
493
|
+
:'phone_number_work_main_is_primary' => :'BOOLEAN',
|
494
|
+
:'preferred_contact_method_type_id' => :'String',
|
495
|
+
:'preferred_contact_method_type_name' => :'String',
|
496
|
+
:'record_type' => :'Array<String>',
|
497
|
+
:'related_contact_assistant_first_name' => :'String',
|
498
|
+
:'related_contact_assistant_id' => :'String',
|
499
|
+
:'related_contact_assistant_is_primary' => :'BOOLEAN',
|
500
|
+
:'related_contact_assistant_last_name' => :'String',
|
501
|
+
:'related_contact_client_first_name' => :'String',
|
502
|
+
:'related_contact_client_id' => :'String',
|
503
|
+
:'related_contact_client_is_primary' => :'BOOLEAN',
|
504
|
+
:'related_contact_client_last_name' => :'String',
|
505
|
+
:'related_contact_other_first_name' => :'String',
|
506
|
+
:'related_contact_other_id' => :'String',
|
507
|
+
:'related_contact_other_is_primary' => :'BOOLEAN',
|
508
|
+
:'related_contact_other_last_name' => :'String',
|
509
|
+
:'related_contact_referred_by_first_name' => :'String',
|
510
|
+
:'related_contact_referred_by_id' => :'String',
|
511
|
+
:'related_contact_referred_by_is_primary' => :'BOOLEAN',
|
512
|
+
:'related_contact_referred_by_last_name' => :'String',
|
513
|
+
:'related_contact_spouse_first_name' => :'String',
|
514
|
+
:'related_contact_spouse_id' => :'String',
|
515
|
+
:'related_contact_spouse_is_primary' => :'BOOLEAN',
|
516
|
+
:'related_contact_spouse_last_name' => :'String',
|
517
|
+
:'salary' => :'Float',
|
518
|
+
:'salary_details' => :'String',
|
519
|
+
:'salutation_id' => :'String',
|
520
|
+
:'salutation_name' => :'String',
|
521
|
+
:'social_aim' => :'String',
|
522
|
+
:'social_aim_is_primary' => :'BOOLEAN',
|
523
|
+
:'social_facebook_chat' => :'String',
|
524
|
+
:'social_facebook_chat_is_primary' => :'BOOLEAN',
|
525
|
+
:'social_face_time' => :'String',
|
526
|
+
:'social_face_time_is_primary' => :'BOOLEAN',
|
527
|
+
:'social_google_talk' => :'String',
|
528
|
+
:'social_google_talk_is_primary' => :'BOOLEAN',
|
529
|
+
:'social_icq' => :'String',
|
530
|
+
:'social_icq_is_primary' => :'BOOLEAN',
|
531
|
+
:'social_other' => :'String',
|
532
|
+
:'social_other_is_primary' => :'BOOLEAN',
|
533
|
+
:'social_skype' => :'String',
|
534
|
+
:'social_skype_is_primary' => :'BOOLEAN',
|
535
|
+
:'social_twitter' => :'String',
|
536
|
+
:'social_twitter_is_primary' => :'BOOLEAN',
|
537
|
+
:'social_yahoo_msg' => :'String',
|
538
|
+
:'social_yahoo_msg_is_primary' => :'BOOLEAN',
|
539
|
+
:'source_id' => :'String',
|
540
|
+
:'source_name' => :'String',
|
541
|
+
:'suffix_id' => :'String',
|
542
|
+
:'suffix_name' => :'String',
|
543
|
+
:'tags' => :'Hash<String, Array<String>>',
|
544
|
+
:'website_blog' => :'String',
|
545
|
+
:'website_blog_is_primary' => :'BOOLEAN',
|
546
|
+
:'website_business' => :'String',
|
547
|
+
:'website_business_is_primary' => :'BOOLEAN',
|
548
|
+
:'website_facebook' => :'String',
|
549
|
+
:'website_facebook_is_primary' => :'BOOLEAN',
|
550
|
+
:'website_linked_in' => :'String',
|
551
|
+
:'website_linked_in_is_primary' => :'BOOLEAN',
|
552
|
+
:'website_other' => :'String',
|
553
|
+
:'website_other_is_primary' => :'BOOLEAN',
|
554
|
+
:'website_personal' => :'String',
|
555
|
+
:'website_personal_is_primary' => :'BOOLEAN'
|
556
|
+
}
|
557
|
+
end
|
558
|
+
|
559
|
+
# Initializes the object
|
560
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
561
|
+
def initialize(attributes = {})
|
562
|
+
return unless attributes.is_a?(Hash)
|
563
|
+
|
564
|
+
# convert string to symbol for hash key
|
565
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
566
|
+
|
567
|
+
if attributes.has_key?(:'Address_Business_City')
|
568
|
+
self.address_business_city = attributes[:'Address_Business_City']
|
569
|
+
end
|
570
|
+
|
571
|
+
if attributes.has_key?(:'Address_Business_Country')
|
572
|
+
self.address_business_country = attributes[:'Address_Business_Country']
|
573
|
+
end
|
574
|
+
|
575
|
+
if attributes.has_key?(:'Address_Business_IsPrimary')
|
576
|
+
self.address_business_is_primary = attributes[:'Address_Business_IsPrimary']
|
577
|
+
end
|
578
|
+
|
579
|
+
if attributes.has_key?(:'Address_Business_Line1')
|
580
|
+
self.address_business_line1 = attributes[:'Address_Business_Line1']
|
581
|
+
end
|
582
|
+
|
583
|
+
if attributes.has_key?(:'Address_Business_State')
|
584
|
+
self.address_business_state = attributes[:'Address_Business_State']
|
585
|
+
end
|
586
|
+
|
587
|
+
if attributes.has_key?(:'Address_Business_ZipCode')
|
588
|
+
self.address_business_zip_code = attributes[:'Address_Business_ZipCode']
|
589
|
+
end
|
590
|
+
|
591
|
+
if attributes.has_key?(:'Address_Home_City')
|
592
|
+
self.address_home_city = attributes[:'Address_Home_City']
|
593
|
+
end
|
594
|
+
|
595
|
+
if attributes.has_key?(:'Address_Home_Country')
|
596
|
+
self.address_home_country = attributes[:'Address_Home_Country']
|
597
|
+
end
|
598
|
+
|
599
|
+
if attributes.has_key?(:'Address_Home_IsPrimary')
|
600
|
+
self.address_home_is_primary = attributes[:'Address_Home_IsPrimary']
|
601
|
+
end
|
602
|
+
|
603
|
+
if attributes.has_key?(:'Address_Home_Line1')
|
604
|
+
self.address_home_line1 = attributes[:'Address_Home_Line1']
|
605
|
+
end
|
606
|
+
|
607
|
+
if attributes.has_key?(:'Address_Home_State')
|
608
|
+
self.address_home_state = attributes[:'Address_Home_State']
|
609
|
+
end
|
610
|
+
|
611
|
+
if attributes.has_key?(:'Address_Home_ZipCode')
|
612
|
+
self.address_home_zip_code = attributes[:'Address_Home_ZipCode']
|
613
|
+
end
|
614
|
+
|
615
|
+
if attributes.has_key?(:'Address_Other_City')
|
616
|
+
self.address_other_city = attributes[:'Address_Other_City']
|
617
|
+
end
|
618
|
+
|
619
|
+
if attributes.has_key?(:'Address_Other_Country')
|
620
|
+
self.address_other_country = attributes[:'Address_Other_Country']
|
621
|
+
end
|
622
|
+
|
623
|
+
if attributes.has_key?(:'Address_Other_IsPrimary')
|
624
|
+
self.address_other_is_primary = attributes[:'Address_Other_IsPrimary']
|
625
|
+
end
|
626
|
+
|
627
|
+
if attributes.has_key?(:'Address_Other_Line1')
|
628
|
+
self.address_other_line1 = attributes[:'Address_Other_Line1']
|
629
|
+
end
|
630
|
+
|
631
|
+
if attributes.has_key?(:'Address_Other_State')
|
632
|
+
self.address_other_state = attributes[:'Address_Other_State']
|
633
|
+
end
|
634
|
+
|
635
|
+
if attributes.has_key?(:'Address_Other_ZipCode')
|
636
|
+
self.address_other_zip_code = attributes[:'Address_Other_ZipCode']
|
637
|
+
end
|
638
|
+
|
639
|
+
if attributes.has_key?(:'CurrentPosition_Company_Id')
|
640
|
+
self.current_position_company_id = attributes[:'CurrentPosition_Company_Id']
|
641
|
+
end
|
642
|
+
|
643
|
+
if attributes.has_key?(:'CurrentPosition_Company_Name')
|
644
|
+
self.current_position_company_name = attributes[:'CurrentPosition_Company_Name']
|
645
|
+
end
|
646
|
+
|
647
|
+
if attributes.has_key?(:'CurrentPosition_Title')
|
648
|
+
self.current_position_title = attributes[:'CurrentPosition_Title']
|
649
|
+
end
|
650
|
+
|
651
|
+
if attributes.has_key?(:'CurrentPosition_WhenEnd')
|
652
|
+
self.current_position_when_end = attributes[:'CurrentPosition_WhenEnd']
|
653
|
+
end
|
654
|
+
|
655
|
+
if attributes.has_key?(:'CurrentPosition_WhenStart')
|
656
|
+
self.current_position_when_start = attributes[:'CurrentPosition_WhenStart']
|
657
|
+
end
|
658
|
+
|
659
|
+
if attributes.has_key?(:'Description')
|
660
|
+
self.description = attributes[:'Description']
|
661
|
+
end
|
662
|
+
|
663
|
+
if attributes.has_key?(:'Education_Accreditation_Id')
|
664
|
+
self.education_accreditation_id = attributes[:'Education_Accreditation_Id']
|
665
|
+
end
|
666
|
+
|
667
|
+
if attributes.has_key?(:'Education_Accreditation_Name')
|
668
|
+
self.education_accreditation_name = attributes[:'Education_Accreditation_Name']
|
669
|
+
end
|
670
|
+
|
671
|
+
if attributes.has_key?(:'Education_Honors')
|
672
|
+
if (value = attributes[:'Education_Honors']).is_a?(Array)
|
673
|
+
self.education_honors = value
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
if attributes.has_key?(:'Education_Institution_Id')
|
678
|
+
self.education_institution_id = attributes[:'Education_Institution_Id']
|
679
|
+
end
|
680
|
+
|
681
|
+
if attributes.has_key?(:'Education_Institution_Name')
|
682
|
+
self.education_institution_name = attributes[:'Education_Institution_Name']
|
683
|
+
end
|
684
|
+
|
685
|
+
if attributes.has_key?(:'Education_WhenEnd')
|
686
|
+
self.education_when_end = attributes[:'Education_WhenEnd']
|
687
|
+
end
|
688
|
+
|
689
|
+
if attributes.has_key?(:'Education_WhenStart')
|
690
|
+
self.education_when_start = attributes[:'Education_WhenStart']
|
691
|
+
end
|
692
|
+
|
693
|
+
if attributes.has_key?(:'EmailAddress_Other')
|
694
|
+
self.email_address_other = attributes[:'EmailAddress_Other']
|
695
|
+
end
|
696
|
+
|
697
|
+
if attributes.has_key?(:'EmailAddress_Other_IsPrimary')
|
698
|
+
self.email_address_other_is_primary = attributes[:'EmailAddress_Other_IsPrimary']
|
699
|
+
end
|
700
|
+
|
701
|
+
if attributes.has_key?(:'EmailAddress_Personal')
|
702
|
+
self.email_address_personal = attributes[:'EmailAddress_Personal']
|
703
|
+
end
|
704
|
+
|
705
|
+
if attributes.has_key?(:'EmailAddress_Personal_IsPrimary')
|
706
|
+
self.email_address_personal_is_primary = attributes[:'EmailAddress_Personal_IsPrimary']
|
707
|
+
end
|
708
|
+
|
709
|
+
if attributes.has_key?(:'EmailAddress_Work')
|
710
|
+
self.email_address_work = attributes[:'EmailAddress_Work']
|
711
|
+
end
|
712
|
+
|
713
|
+
if attributes.has_key?(:'EmailAddress_Work_IsPrimary')
|
714
|
+
self.email_address_work_is_primary = attributes[:'EmailAddress_Work_IsPrimary']
|
715
|
+
end
|
716
|
+
|
717
|
+
if attributes.has_key?(:'Ethnicity_Id')
|
718
|
+
self.ethnicity_id = attributes[:'Ethnicity_Id']
|
719
|
+
end
|
720
|
+
|
721
|
+
if attributes.has_key?(:'Ethnicity_Name')
|
722
|
+
self.ethnicity_name = attributes[:'Ethnicity_Name']
|
723
|
+
end
|
724
|
+
|
725
|
+
if attributes.has_key?(:'ExternalPrimaryKey')
|
726
|
+
self.external_primary_key = attributes[:'ExternalPrimaryKey']
|
727
|
+
end
|
728
|
+
|
729
|
+
if attributes.has_key?(:'FirstName')
|
730
|
+
self.first_name = attributes[:'FirstName']
|
731
|
+
end
|
732
|
+
|
733
|
+
if attributes.has_key?(:'Gender_Id')
|
734
|
+
self.gender_id = attributes[:'Gender_Id']
|
735
|
+
end
|
736
|
+
|
737
|
+
if attributes.has_key?(:'Gender_Name')
|
738
|
+
self.gender_name = attributes[:'Gender_Name']
|
739
|
+
end
|
740
|
+
|
741
|
+
if attributes.has_key?(:'KeyDate_Anniversary')
|
742
|
+
self.key_date_anniversary = attributes[:'KeyDate_Anniversary']
|
743
|
+
end
|
744
|
+
|
745
|
+
if attributes.has_key?(:'KeyDate_Birthday')
|
746
|
+
self.key_date_birthday = attributes[:'KeyDate_Birthday']
|
747
|
+
end
|
748
|
+
|
749
|
+
if attributes.has_key?(:'KeyDate_Other')
|
750
|
+
self.key_date_other = attributes[:'KeyDate_Other']
|
751
|
+
end
|
752
|
+
|
753
|
+
if attributes.has_key?(:'LastName')
|
754
|
+
self.last_name = attributes[:'LastName']
|
755
|
+
end
|
756
|
+
|
757
|
+
if attributes.has_key?(:'MiddleName')
|
758
|
+
self.middle_name = attributes[:'MiddleName']
|
759
|
+
end
|
760
|
+
|
761
|
+
if attributes.has_key?(:'NickName')
|
762
|
+
self.nick_name = attributes[:'NickName']
|
763
|
+
end
|
764
|
+
|
765
|
+
if attributes.has_key?(:'PhoneNumber_Fax')
|
766
|
+
self.phone_number_fax = attributes[:'PhoneNumber_Fax']
|
767
|
+
end
|
768
|
+
|
769
|
+
if attributes.has_key?(:'PhoneNumber_Fax_Extension')
|
770
|
+
self.phone_number_fax_extension = attributes[:'PhoneNumber_Fax_Extension']
|
771
|
+
end
|
772
|
+
|
773
|
+
if attributes.has_key?(:'PhoneNumber_Fax_IsPrimary')
|
774
|
+
self.phone_number_fax_is_primary = attributes[:'PhoneNumber_Fax_IsPrimary']
|
775
|
+
end
|
776
|
+
|
777
|
+
if attributes.has_key?(:'PhoneNumber_Home')
|
778
|
+
self.phone_number_home = attributes[:'PhoneNumber_Home']
|
779
|
+
end
|
780
|
+
|
781
|
+
if attributes.has_key?(:'PhoneNumber_Home_Extension')
|
782
|
+
self.phone_number_home_extension = attributes[:'PhoneNumber_Home_Extension']
|
783
|
+
end
|
784
|
+
|
785
|
+
if attributes.has_key?(:'PhoneNumber_Home_IsPrimary')
|
786
|
+
self.phone_number_home_is_primary = attributes[:'PhoneNumber_Home_IsPrimary']
|
787
|
+
end
|
788
|
+
|
789
|
+
if attributes.has_key?(:'PhoneNumber_Mobile')
|
790
|
+
self.phone_number_mobile = attributes[:'PhoneNumber_Mobile']
|
791
|
+
end
|
792
|
+
|
793
|
+
if attributes.has_key?(:'PhoneNumber_Mobile_Extension')
|
794
|
+
self.phone_number_mobile_extension = attributes[:'PhoneNumber_Mobile_Extension']
|
795
|
+
end
|
796
|
+
|
797
|
+
if attributes.has_key?(:'PhoneNumber_Mobile_IsPrimary')
|
798
|
+
self.phone_number_mobile_is_primary = attributes[:'PhoneNumber_Mobile_IsPrimary']
|
799
|
+
end
|
800
|
+
|
801
|
+
if attributes.has_key?(:'PhoneNumber_Other')
|
802
|
+
self.phone_number_other = attributes[:'PhoneNumber_Other']
|
803
|
+
end
|
804
|
+
|
805
|
+
if attributes.has_key?(:'PhoneNumber_Other_Extension')
|
806
|
+
self.phone_number_other_extension = attributes[:'PhoneNumber_Other_Extension']
|
807
|
+
end
|
808
|
+
|
809
|
+
if attributes.has_key?(:'PhoneNumber_Other_IsPrimary')
|
810
|
+
self.phone_number_other_is_primary = attributes[:'PhoneNumber_Other_IsPrimary']
|
811
|
+
end
|
812
|
+
|
813
|
+
if attributes.has_key?(:'PhoneNumber_Skype')
|
814
|
+
self.phone_number_skype = attributes[:'PhoneNumber_Skype']
|
815
|
+
end
|
816
|
+
|
817
|
+
if attributes.has_key?(:'PhoneNumber_Skype_Extension')
|
818
|
+
self.phone_number_skype_extension = attributes[:'PhoneNumber_Skype_Extension']
|
819
|
+
end
|
820
|
+
|
821
|
+
if attributes.has_key?(:'PhoneNumber_Skype_IsPrimary')
|
822
|
+
self.phone_number_skype_is_primary = attributes[:'PhoneNumber_Skype_IsPrimary']
|
823
|
+
end
|
824
|
+
|
825
|
+
if attributes.has_key?(:'PhoneNumber_WorkDirect')
|
826
|
+
self.phone_number_work_direct = attributes[:'PhoneNumber_WorkDirect']
|
827
|
+
end
|
828
|
+
|
829
|
+
if attributes.has_key?(:'PhoneNumber_WorkDirect_Extension')
|
830
|
+
self.phone_number_work_direct_extension = attributes[:'PhoneNumber_WorkDirect_Extension']
|
831
|
+
end
|
832
|
+
|
833
|
+
if attributes.has_key?(:'PhoneNumber_WorkDirect_IsPrimary')
|
834
|
+
self.phone_number_work_direct_is_primary = attributes[:'PhoneNumber_WorkDirect_IsPrimary']
|
835
|
+
end
|
836
|
+
|
837
|
+
if attributes.has_key?(:'PhoneNumber_WorkMain')
|
838
|
+
self.phone_number_work_main = attributes[:'PhoneNumber_WorkMain']
|
839
|
+
end
|
840
|
+
|
841
|
+
if attributes.has_key?(:'PhoneNumber_WorkMain_Extension')
|
842
|
+
self.phone_number_work_main_extension = attributes[:'PhoneNumber_WorkMain_Extension']
|
843
|
+
end
|
844
|
+
|
845
|
+
if attributes.has_key?(:'PhoneNumber_WorkMain_IsPrimary')
|
846
|
+
self.phone_number_work_main_is_primary = attributes[:'PhoneNumber_WorkMain_IsPrimary']
|
847
|
+
end
|
848
|
+
|
849
|
+
if attributes.has_key?(:'PreferredContactMethodType_Id')
|
850
|
+
self.preferred_contact_method_type_id = attributes[:'PreferredContactMethodType_Id']
|
851
|
+
end
|
852
|
+
|
853
|
+
if attributes.has_key?(:'PreferredContactMethodType_Name')
|
854
|
+
self.preferred_contact_method_type_name = attributes[:'PreferredContactMethodType_Name']
|
855
|
+
end
|
856
|
+
|
857
|
+
if attributes.has_key?(:'RecordType')
|
858
|
+
if (value = attributes[:'RecordType']).is_a?(Array)
|
859
|
+
self.record_type = value
|
860
|
+
end
|
861
|
+
end
|
862
|
+
|
863
|
+
if attributes.has_key?(:'RelatedContact_Assistant_FirstName')
|
864
|
+
self.related_contact_assistant_first_name = attributes[:'RelatedContact_Assistant_FirstName']
|
865
|
+
end
|
866
|
+
|
867
|
+
if attributes.has_key?(:'RelatedContact_Assistant_Id')
|
868
|
+
self.related_contact_assistant_id = attributes[:'RelatedContact_Assistant_Id']
|
869
|
+
end
|
870
|
+
|
871
|
+
if attributes.has_key?(:'RelatedContact_Assistant_IsPrimary')
|
872
|
+
self.related_contact_assistant_is_primary = attributes[:'RelatedContact_Assistant_IsPrimary']
|
873
|
+
end
|
874
|
+
|
875
|
+
if attributes.has_key?(:'RelatedContact_Assistant_LastName')
|
876
|
+
self.related_contact_assistant_last_name = attributes[:'RelatedContact_Assistant_LastName']
|
877
|
+
end
|
878
|
+
|
879
|
+
if attributes.has_key?(:'RelatedContact_Client_FirstName')
|
880
|
+
self.related_contact_client_first_name = attributes[:'RelatedContact_Client_FirstName']
|
881
|
+
end
|
882
|
+
|
883
|
+
if attributes.has_key?(:'RelatedContact_Client_Id')
|
884
|
+
self.related_contact_client_id = attributes[:'RelatedContact_Client_Id']
|
885
|
+
end
|
886
|
+
|
887
|
+
if attributes.has_key?(:'RelatedContact_Client_IsPrimary')
|
888
|
+
self.related_contact_client_is_primary = attributes[:'RelatedContact_Client_IsPrimary']
|
889
|
+
end
|
890
|
+
|
891
|
+
if attributes.has_key?(:'RelatedContact_Client_LastName')
|
892
|
+
self.related_contact_client_last_name = attributes[:'RelatedContact_Client_LastName']
|
893
|
+
end
|
894
|
+
|
895
|
+
if attributes.has_key?(:'RelatedContact_Other_FirstName')
|
896
|
+
self.related_contact_other_first_name = attributes[:'RelatedContact_Other_FirstName']
|
897
|
+
end
|
898
|
+
|
899
|
+
if attributes.has_key?(:'RelatedContact_Other_Id')
|
900
|
+
self.related_contact_other_id = attributes[:'RelatedContact_Other_Id']
|
901
|
+
end
|
902
|
+
|
903
|
+
if attributes.has_key?(:'RelatedContact_Other_IsPrimary')
|
904
|
+
self.related_contact_other_is_primary = attributes[:'RelatedContact_Other_IsPrimary']
|
905
|
+
end
|
906
|
+
|
907
|
+
if attributes.has_key?(:'RelatedContact_Other_LastName')
|
908
|
+
self.related_contact_other_last_name = attributes[:'RelatedContact_Other_LastName']
|
909
|
+
end
|
910
|
+
|
911
|
+
if attributes.has_key?(:'RelatedContact_ReferredBy_FirstName')
|
912
|
+
self.related_contact_referred_by_first_name = attributes[:'RelatedContact_ReferredBy_FirstName']
|
913
|
+
end
|
914
|
+
|
915
|
+
if attributes.has_key?(:'RelatedContact_ReferredBy_Id')
|
916
|
+
self.related_contact_referred_by_id = attributes[:'RelatedContact_ReferredBy_Id']
|
917
|
+
end
|
918
|
+
|
919
|
+
if attributes.has_key?(:'RelatedContact_ReferredBy_IsPrimary')
|
920
|
+
self.related_contact_referred_by_is_primary = attributes[:'RelatedContact_ReferredBy_IsPrimary']
|
921
|
+
end
|
922
|
+
|
923
|
+
if attributes.has_key?(:'RelatedContact_ReferredBy_LastName')
|
924
|
+
self.related_contact_referred_by_last_name = attributes[:'RelatedContact_ReferredBy_LastName']
|
925
|
+
end
|
926
|
+
|
927
|
+
if attributes.has_key?(:'RelatedContact_Spouse_FirstName')
|
928
|
+
self.related_contact_spouse_first_name = attributes[:'RelatedContact_Spouse_FirstName']
|
929
|
+
end
|
930
|
+
|
931
|
+
if attributes.has_key?(:'RelatedContact_Spouse_Id')
|
932
|
+
self.related_contact_spouse_id = attributes[:'RelatedContact_Spouse_Id']
|
933
|
+
end
|
934
|
+
|
935
|
+
if attributes.has_key?(:'RelatedContact_Spouse_IsPrimary')
|
936
|
+
self.related_contact_spouse_is_primary = attributes[:'RelatedContact_Spouse_IsPrimary']
|
937
|
+
end
|
938
|
+
|
939
|
+
if attributes.has_key?(:'RelatedContact_Spouse_LastName')
|
940
|
+
self.related_contact_spouse_last_name = attributes[:'RelatedContact_Spouse_LastName']
|
941
|
+
end
|
942
|
+
|
943
|
+
if attributes.has_key?(:'Salary')
|
944
|
+
self.salary = attributes[:'Salary']
|
945
|
+
end
|
946
|
+
|
947
|
+
if attributes.has_key?(:'SalaryDetails')
|
948
|
+
self.salary_details = attributes[:'SalaryDetails']
|
949
|
+
end
|
950
|
+
|
951
|
+
if attributes.has_key?(:'Salutation_Id')
|
952
|
+
self.salutation_id = attributes[:'Salutation_Id']
|
953
|
+
end
|
954
|
+
|
955
|
+
if attributes.has_key?(:'Salutation_Name')
|
956
|
+
self.salutation_name = attributes[:'Salutation_Name']
|
957
|
+
end
|
958
|
+
|
959
|
+
if attributes.has_key?(:'Social_AIM')
|
960
|
+
self.social_aim = attributes[:'Social_AIM']
|
961
|
+
end
|
962
|
+
|
963
|
+
if attributes.has_key?(:'Social_AIM_IsPrimary')
|
964
|
+
self.social_aim_is_primary = attributes[:'Social_AIM_IsPrimary']
|
965
|
+
end
|
966
|
+
|
967
|
+
if attributes.has_key?(:'Social_FacebookChat')
|
968
|
+
self.social_facebook_chat = attributes[:'Social_FacebookChat']
|
969
|
+
end
|
970
|
+
|
971
|
+
if attributes.has_key?(:'Social_FacebookChat_IsPrimary')
|
972
|
+
self.social_facebook_chat_is_primary = attributes[:'Social_FacebookChat_IsPrimary']
|
973
|
+
end
|
974
|
+
|
975
|
+
if attributes.has_key?(:'Social_FaceTime')
|
976
|
+
self.social_face_time = attributes[:'Social_FaceTime']
|
977
|
+
end
|
978
|
+
|
979
|
+
if attributes.has_key?(:'Social_FaceTime_IsPrimary')
|
980
|
+
self.social_face_time_is_primary = attributes[:'Social_FaceTime_IsPrimary']
|
981
|
+
end
|
982
|
+
|
983
|
+
if attributes.has_key?(:'Social_GoogleTalk')
|
984
|
+
self.social_google_talk = attributes[:'Social_GoogleTalk']
|
985
|
+
end
|
986
|
+
|
987
|
+
if attributes.has_key?(:'Social_GoogleTalk_IsPrimary')
|
988
|
+
self.social_google_talk_is_primary = attributes[:'Social_GoogleTalk_IsPrimary']
|
989
|
+
end
|
990
|
+
|
991
|
+
if attributes.has_key?(:'Social_ICQ')
|
992
|
+
self.social_icq = attributes[:'Social_ICQ']
|
993
|
+
end
|
994
|
+
|
995
|
+
if attributes.has_key?(:'Social_ICQ_IsPrimary')
|
996
|
+
self.social_icq_is_primary = attributes[:'Social_ICQ_IsPrimary']
|
997
|
+
end
|
998
|
+
|
999
|
+
if attributes.has_key?(:'Social_Other')
|
1000
|
+
self.social_other = attributes[:'Social_Other']
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
if attributes.has_key?(:'Social_Other_IsPrimary')
|
1004
|
+
self.social_other_is_primary = attributes[:'Social_Other_IsPrimary']
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
if attributes.has_key?(:'Social_Skype')
|
1008
|
+
self.social_skype = attributes[:'Social_Skype']
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
if attributes.has_key?(:'Social_Skype_IsPrimary')
|
1012
|
+
self.social_skype_is_primary = attributes[:'Social_Skype_IsPrimary']
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
if attributes.has_key?(:'Social_Twitter')
|
1016
|
+
self.social_twitter = attributes[:'Social_Twitter']
|
1017
|
+
end
|
1018
|
+
|
1019
|
+
if attributes.has_key?(:'Social_Twitter_IsPrimary')
|
1020
|
+
self.social_twitter_is_primary = attributes[:'Social_Twitter_IsPrimary']
|
1021
|
+
end
|
1022
|
+
|
1023
|
+
if attributes.has_key?(:'Social_YahooMsg')
|
1024
|
+
self.social_yahoo_msg = attributes[:'Social_YahooMsg']
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
if attributes.has_key?(:'Social_YahooMsg_IsPrimary')
|
1028
|
+
self.social_yahoo_msg_is_primary = attributes[:'Social_YahooMsg_IsPrimary']
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
if attributes.has_key?(:'Source_Id')
|
1032
|
+
self.source_id = attributes[:'Source_Id']
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
if attributes.has_key?(:'Source_Name')
|
1036
|
+
self.source_name = attributes[:'Source_Name']
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
if attributes.has_key?(:'Suffix_Id')
|
1040
|
+
self.suffix_id = attributes[:'Suffix_Id']
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
if attributes.has_key?(:'Suffix_Name')
|
1044
|
+
self.suffix_name = attributes[:'Suffix_Name']
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
if attributes.has_key?(:'Tags')
|
1048
|
+
if (value = attributes[:'Tags']).is_a?(Hash)
|
1049
|
+
self.tags = value
|
1050
|
+
end
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
if attributes.has_key?(:'Website_Blog')
|
1054
|
+
self.website_blog = attributes[:'Website_Blog']
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
if attributes.has_key?(:'Website_Blog_IsPrimary')
|
1058
|
+
self.website_blog_is_primary = attributes[:'Website_Blog_IsPrimary']
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
if attributes.has_key?(:'Website_Business')
|
1062
|
+
self.website_business = attributes[:'Website_Business']
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
if attributes.has_key?(:'Website_Business_IsPrimary')
|
1066
|
+
self.website_business_is_primary = attributes[:'Website_Business_IsPrimary']
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
if attributes.has_key?(:'Website_Facebook')
|
1070
|
+
self.website_facebook = attributes[:'Website_Facebook']
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
if attributes.has_key?(:'Website_Facebook_IsPrimary')
|
1074
|
+
self.website_facebook_is_primary = attributes[:'Website_Facebook_IsPrimary']
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
if attributes.has_key?(:'Website_LinkedIn')
|
1078
|
+
self.website_linked_in = attributes[:'Website_LinkedIn']
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
if attributes.has_key?(:'Website_LinkedIn_IsPrimary')
|
1082
|
+
self.website_linked_in_is_primary = attributes[:'Website_LinkedIn_IsPrimary']
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
if attributes.has_key?(:'Website_Other')
|
1086
|
+
self.website_other = attributes[:'Website_Other']
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
if attributes.has_key?(:'Website_Other_IsPrimary')
|
1090
|
+
self.website_other_is_primary = attributes[:'Website_Other_IsPrimary']
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
if attributes.has_key?(:'Website_Personal')
|
1094
|
+
self.website_personal = attributes[:'Website_Personal']
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
if attributes.has_key?(:'Website_Personal_IsPrimary')
|
1098
|
+
self.website_personal_is_primary = attributes[:'Website_Personal_IsPrimary']
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
1104
|
+
# @return Array for valid properties with the reasons
|
1105
|
+
def list_invalid_properties
|
1106
|
+
invalid_properties = Array.new
|
1107
|
+
return invalid_properties
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Check to see if the all the properties in the model are valid
|
1111
|
+
# @return true if the model is valid
|
1112
|
+
def valid?
|
1113
|
+
return true
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
# Checks equality by comparing each attribute.
|
1117
|
+
# @param [Object] Object to be compared
|
1118
|
+
def ==(o)
|
1119
|
+
return true if self.equal?(o)
|
1120
|
+
self.class == o.class &&
|
1121
|
+
address_business_city == o.address_business_city &&
|
1122
|
+
address_business_country == o.address_business_country &&
|
1123
|
+
address_business_is_primary == o.address_business_is_primary &&
|
1124
|
+
address_business_line1 == o.address_business_line1 &&
|
1125
|
+
address_business_state == o.address_business_state &&
|
1126
|
+
address_business_zip_code == o.address_business_zip_code &&
|
1127
|
+
address_home_city == o.address_home_city &&
|
1128
|
+
address_home_country == o.address_home_country &&
|
1129
|
+
address_home_is_primary == o.address_home_is_primary &&
|
1130
|
+
address_home_line1 == o.address_home_line1 &&
|
1131
|
+
address_home_state == o.address_home_state &&
|
1132
|
+
address_home_zip_code == o.address_home_zip_code &&
|
1133
|
+
address_other_city == o.address_other_city &&
|
1134
|
+
address_other_country == o.address_other_country &&
|
1135
|
+
address_other_is_primary == o.address_other_is_primary &&
|
1136
|
+
address_other_line1 == o.address_other_line1 &&
|
1137
|
+
address_other_state == o.address_other_state &&
|
1138
|
+
address_other_zip_code == o.address_other_zip_code &&
|
1139
|
+
current_position_company_id == o.current_position_company_id &&
|
1140
|
+
current_position_company_name == o.current_position_company_name &&
|
1141
|
+
current_position_title == o.current_position_title &&
|
1142
|
+
current_position_when_end == o.current_position_when_end &&
|
1143
|
+
current_position_when_start == o.current_position_when_start &&
|
1144
|
+
description == o.description &&
|
1145
|
+
education_accreditation_id == o.education_accreditation_id &&
|
1146
|
+
education_accreditation_name == o.education_accreditation_name &&
|
1147
|
+
education_honors == o.education_honors &&
|
1148
|
+
education_institution_id == o.education_institution_id &&
|
1149
|
+
education_institution_name == o.education_institution_name &&
|
1150
|
+
education_when_end == o.education_when_end &&
|
1151
|
+
education_when_start == o.education_when_start &&
|
1152
|
+
email_address_other == o.email_address_other &&
|
1153
|
+
email_address_other_is_primary == o.email_address_other_is_primary &&
|
1154
|
+
email_address_personal == o.email_address_personal &&
|
1155
|
+
email_address_personal_is_primary == o.email_address_personal_is_primary &&
|
1156
|
+
email_address_work == o.email_address_work &&
|
1157
|
+
email_address_work_is_primary == o.email_address_work_is_primary &&
|
1158
|
+
ethnicity_id == o.ethnicity_id &&
|
1159
|
+
ethnicity_name == o.ethnicity_name &&
|
1160
|
+
external_primary_key == o.external_primary_key &&
|
1161
|
+
first_name == o.first_name &&
|
1162
|
+
gender_id == o.gender_id &&
|
1163
|
+
gender_name == o.gender_name &&
|
1164
|
+
key_date_anniversary == o.key_date_anniversary &&
|
1165
|
+
key_date_birthday == o.key_date_birthday &&
|
1166
|
+
key_date_other == o.key_date_other &&
|
1167
|
+
last_name == o.last_name &&
|
1168
|
+
middle_name == o.middle_name &&
|
1169
|
+
nick_name == o.nick_name &&
|
1170
|
+
phone_number_fax == o.phone_number_fax &&
|
1171
|
+
phone_number_fax_extension == o.phone_number_fax_extension &&
|
1172
|
+
phone_number_fax_is_primary == o.phone_number_fax_is_primary &&
|
1173
|
+
phone_number_home == o.phone_number_home &&
|
1174
|
+
phone_number_home_extension == o.phone_number_home_extension &&
|
1175
|
+
phone_number_home_is_primary == o.phone_number_home_is_primary &&
|
1176
|
+
phone_number_mobile == o.phone_number_mobile &&
|
1177
|
+
phone_number_mobile_extension == o.phone_number_mobile_extension &&
|
1178
|
+
phone_number_mobile_is_primary == o.phone_number_mobile_is_primary &&
|
1179
|
+
phone_number_other == o.phone_number_other &&
|
1180
|
+
phone_number_other_extension == o.phone_number_other_extension &&
|
1181
|
+
phone_number_other_is_primary == o.phone_number_other_is_primary &&
|
1182
|
+
phone_number_skype == o.phone_number_skype &&
|
1183
|
+
phone_number_skype_extension == o.phone_number_skype_extension &&
|
1184
|
+
phone_number_skype_is_primary == o.phone_number_skype_is_primary &&
|
1185
|
+
phone_number_work_direct == o.phone_number_work_direct &&
|
1186
|
+
phone_number_work_direct_extension == o.phone_number_work_direct_extension &&
|
1187
|
+
phone_number_work_direct_is_primary == o.phone_number_work_direct_is_primary &&
|
1188
|
+
phone_number_work_main == o.phone_number_work_main &&
|
1189
|
+
phone_number_work_main_extension == o.phone_number_work_main_extension &&
|
1190
|
+
phone_number_work_main_is_primary == o.phone_number_work_main_is_primary &&
|
1191
|
+
preferred_contact_method_type_id == o.preferred_contact_method_type_id &&
|
1192
|
+
preferred_contact_method_type_name == o.preferred_contact_method_type_name &&
|
1193
|
+
record_type == o.record_type &&
|
1194
|
+
related_contact_assistant_first_name == o.related_contact_assistant_first_name &&
|
1195
|
+
related_contact_assistant_id == o.related_contact_assistant_id &&
|
1196
|
+
related_contact_assistant_is_primary == o.related_contact_assistant_is_primary &&
|
1197
|
+
related_contact_assistant_last_name == o.related_contact_assistant_last_name &&
|
1198
|
+
related_contact_client_first_name == o.related_contact_client_first_name &&
|
1199
|
+
related_contact_client_id == o.related_contact_client_id &&
|
1200
|
+
related_contact_client_is_primary == o.related_contact_client_is_primary &&
|
1201
|
+
related_contact_client_last_name == o.related_contact_client_last_name &&
|
1202
|
+
related_contact_other_first_name == o.related_contact_other_first_name &&
|
1203
|
+
related_contact_other_id == o.related_contact_other_id &&
|
1204
|
+
related_contact_other_is_primary == o.related_contact_other_is_primary &&
|
1205
|
+
related_contact_other_last_name == o.related_contact_other_last_name &&
|
1206
|
+
related_contact_referred_by_first_name == o.related_contact_referred_by_first_name &&
|
1207
|
+
related_contact_referred_by_id == o.related_contact_referred_by_id &&
|
1208
|
+
related_contact_referred_by_is_primary == o.related_contact_referred_by_is_primary &&
|
1209
|
+
related_contact_referred_by_last_name == o.related_contact_referred_by_last_name &&
|
1210
|
+
related_contact_spouse_first_name == o.related_contact_spouse_first_name &&
|
1211
|
+
related_contact_spouse_id == o.related_contact_spouse_id &&
|
1212
|
+
related_contact_spouse_is_primary == o.related_contact_spouse_is_primary &&
|
1213
|
+
related_contact_spouse_last_name == o.related_contact_spouse_last_name &&
|
1214
|
+
salary == o.salary &&
|
1215
|
+
salary_details == o.salary_details &&
|
1216
|
+
salutation_id == o.salutation_id &&
|
1217
|
+
salutation_name == o.salutation_name &&
|
1218
|
+
social_aim == o.social_aim &&
|
1219
|
+
social_aim_is_primary == o.social_aim_is_primary &&
|
1220
|
+
social_facebook_chat == o.social_facebook_chat &&
|
1221
|
+
social_facebook_chat_is_primary == o.social_facebook_chat_is_primary &&
|
1222
|
+
social_face_time == o.social_face_time &&
|
1223
|
+
social_face_time_is_primary == o.social_face_time_is_primary &&
|
1224
|
+
social_google_talk == o.social_google_talk &&
|
1225
|
+
social_google_talk_is_primary == o.social_google_talk_is_primary &&
|
1226
|
+
social_icq == o.social_icq &&
|
1227
|
+
social_icq_is_primary == o.social_icq_is_primary &&
|
1228
|
+
social_other == o.social_other &&
|
1229
|
+
social_other_is_primary == o.social_other_is_primary &&
|
1230
|
+
social_skype == o.social_skype &&
|
1231
|
+
social_skype_is_primary == o.social_skype_is_primary &&
|
1232
|
+
social_twitter == o.social_twitter &&
|
1233
|
+
social_twitter_is_primary == o.social_twitter_is_primary &&
|
1234
|
+
social_yahoo_msg == o.social_yahoo_msg &&
|
1235
|
+
social_yahoo_msg_is_primary == o.social_yahoo_msg_is_primary &&
|
1236
|
+
source_id == o.source_id &&
|
1237
|
+
source_name == o.source_name &&
|
1238
|
+
suffix_id == o.suffix_id &&
|
1239
|
+
suffix_name == o.suffix_name &&
|
1240
|
+
tags == o.tags &&
|
1241
|
+
website_blog == o.website_blog &&
|
1242
|
+
website_blog_is_primary == o.website_blog_is_primary &&
|
1243
|
+
website_business == o.website_business &&
|
1244
|
+
website_business_is_primary == o.website_business_is_primary &&
|
1245
|
+
website_facebook == o.website_facebook &&
|
1246
|
+
website_facebook_is_primary == o.website_facebook_is_primary &&
|
1247
|
+
website_linked_in == o.website_linked_in &&
|
1248
|
+
website_linked_in_is_primary == o.website_linked_in_is_primary &&
|
1249
|
+
website_other == o.website_other &&
|
1250
|
+
website_other_is_primary == o.website_other_is_primary &&
|
1251
|
+
website_personal == o.website_personal &&
|
1252
|
+
website_personal_is_primary == o.website_personal_is_primary
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
# @see the `==` method
|
1256
|
+
# @param [Object] Object to be compared
|
1257
|
+
def eql?(o)
|
1258
|
+
self == o
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
# Calculates hash code according to all attributes.
|
1262
|
+
# @return [Fixnum] Hash code
|
1263
|
+
def hash
|
1264
|
+
[address_business_city, address_business_country, address_business_is_primary, address_business_line1, address_business_state, address_business_zip_code, address_home_city, address_home_country, address_home_is_primary, address_home_line1, address_home_state, address_home_zip_code, address_other_city, address_other_country, address_other_is_primary, address_other_line1, address_other_state, address_other_zip_code, current_position_company_id, current_position_company_name, current_position_title, current_position_when_end, current_position_when_start, description, education_accreditation_id, education_accreditation_name, education_honors, education_institution_id, education_institution_name, education_when_end, education_when_start, email_address_other, email_address_other_is_primary, email_address_personal, email_address_personal_is_primary, email_address_work, email_address_work_is_primary, ethnicity_id, ethnicity_name, external_primary_key, first_name, gender_id, gender_name, key_date_anniversary, key_date_birthday, key_date_other, last_name, middle_name, nick_name, phone_number_fax, phone_number_fax_extension, phone_number_fax_is_primary, phone_number_home, phone_number_home_extension, phone_number_home_is_primary, phone_number_mobile, phone_number_mobile_extension, phone_number_mobile_is_primary, phone_number_other, phone_number_other_extension, phone_number_other_is_primary, phone_number_skype, phone_number_skype_extension, phone_number_skype_is_primary, phone_number_work_direct, phone_number_work_direct_extension, phone_number_work_direct_is_primary, phone_number_work_main, phone_number_work_main_extension, phone_number_work_main_is_primary, preferred_contact_method_type_id, preferred_contact_method_type_name, record_type, related_contact_assistant_first_name, related_contact_assistant_id, related_contact_assistant_is_primary, related_contact_assistant_last_name, related_contact_client_first_name, related_contact_client_id, related_contact_client_is_primary, related_contact_client_last_name, related_contact_other_first_name, related_contact_other_id, related_contact_other_is_primary, related_contact_other_last_name, related_contact_referred_by_first_name, related_contact_referred_by_id, related_contact_referred_by_is_primary, related_contact_referred_by_last_name, related_contact_spouse_first_name, related_contact_spouse_id, related_contact_spouse_is_primary, related_contact_spouse_last_name, salary, salary_details, salutation_id, salutation_name, social_aim, social_aim_is_primary, social_facebook_chat, social_facebook_chat_is_primary, social_face_time, social_face_time_is_primary, social_google_talk, social_google_talk_is_primary, social_icq, social_icq_is_primary, social_other, social_other_is_primary, social_skype, social_skype_is_primary, social_twitter, social_twitter_is_primary, social_yahoo_msg, social_yahoo_msg_is_primary, source_id, source_name, suffix_id, suffix_name, tags, website_blog, website_blog_is_primary, website_business, website_business_is_primary, website_facebook, website_facebook_is_primary, website_linked_in, website_linked_in_is_primary, website_other, website_other_is_primary, website_personal, website_personal_is_primary].hash
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
# Builds the object from hash
|
1268
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
1269
|
+
# @return [Object] Returns the model itself
|
1270
|
+
def build_from_hash(attributes)
|
1271
|
+
return nil unless attributes.is_a?(Hash)
|
1272
|
+
self.class.swagger_types.each_pair do |key, type|
|
1273
|
+
if type =~ /\AArray<(.*)>/i
|
1274
|
+
# check to ensure the input is an array given that the the attribute
|
1275
|
+
# is documented as an array but the input is not
|
1276
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
1277
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
1278
|
+
end
|
1279
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
1280
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
1281
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
self
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
# Deserializes the data based on type
|
1288
|
+
# @param string type Data type
|
1289
|
+
# @param string value Value to be deserialized
|
1290
|
+
# @return [Object] Deserialized data
|
1291
|
+
def _deserialize(type, value)
|
1292
|
+
case type.to_sym
|
1293
|
+
when :DateTime
|
1294
|
+
DateTime.parse(value)
|
1295
|
+
when :Date
|
1296
|
+
Date.parse(value)
|
1297
|
+
when :String
|
1298
|
+
value.to_s
|
1299
|
+
when :Integer
|
1300
|
+
value.to_i
|
1301
|
+
when :Float
|
1302
|
+
value.to_f
|
1303
|
+
when :BOOLEAN
|
1304
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
1305
|
+
true
|
1306
|
+
else
|
1307
|
+
false
|
1308
|
+
end
|
1309
|
+
when :Object
|
1310
|
+
# generic object (usually a Hash), return directly
|
1311
|
+
value
|
1312
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
1313
|
+
inner_type = Regexp.last_match[:inner_type]
|
1314
|
+
value.map { |v| _deserialize(inner_type, v) }
|
1315
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
1316
|
+
k_type = Regexp.last_match[:k_type]
|
1317
|
+
v_type = Regexp.last_match[:v_type]
|
1318
|
+
{}.tap do |hash|
|
1319
|
+
value.each do |k, v|
|
1320
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
1321
|
+
end
|
1322
|
+
end
|
1323
|
+
else # model
|
1324
|
+
temp_model = CrelateClient.const_get(type).new
|
1325
|
+
temp_model.build_from_hash(value)
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
# Returns the string representation of the object
|
1330
|
+
# @return [String] String presentation of the object
|
1331
|
+
def to_s
|
1332
|
+
to_hash.to_s
|
1333
|
+
end
|
1334
|
+
|
1335
|
+
# to_body is an alias to to_hash (backward compatibility)
|
1336
|
+
# @return [Hash] Returns the object in the form of hash
|
1337
|
+
def to_body
|
1338
|
+
to_hash
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
# Returns the object in the form of hash
|
1342
|
+
# @return [Hash] Returns the object in the form of hash
|
1343
|
+
def to_hash
|
1344
|
+
hash = {}
|
1345
|
+
self.class.attribute_map.each_pair do |attr, param|
|
1346
|
+
value = self.send(attr)
|
1347
|
+
next if value.nil?
|
1348
|
+
hash[param] = _to_hash(value)
|
1349
|
+
end
|
1350
|
+
hash
|
1351
|
+
end
|
1352
|
+
|
1353
|
+
# Outputs non-array value in the form of hash
|
1354
|
+
# For object, use to_hash. Otherwise, just return the value
|
1355
|
+
# @param [Object] value Any valid value
|
1356
|
+
# @return [Hash] Returns the value in the form of hash
|
1357
|
+
def _to_hash(value)
|
1358
|
+
if value.is_a?(Array)
|
1359
|
+
value.compact.map{ |v| _to_hash(v) }
|
1360
|
+
elsif value.is_a?(Hash)
|
1361
|
+
{}.tap do |hash|
|
1362
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
1363
|
+
end
|
1364
|
+
elsif value.respond_to? :to_hash
|
1365
|
+
value.to_hash
|
1366
|
+
else
|
1367
|
+
value
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
end
|
1372
|
+
|
1373
|
+
end
|