ZOHOCRMSDK5_0 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/src/ZOHOCRMSDK5_0.rb +1082 -0
- data/src/com/zoho/api/authenticator/oauth_token.rb +425 -0
- data/src/com/zoho/api/authenticator/store/db_store.rb +279 -0
- data/src/com/zoho/api/authenticator/store/file_store.rb +280 -0
- data/src/com/zoho/api/authenticator/store/token_store.rb +31 -0
- data/src/com/zoho/api/authenticator/token.rb +14 -0
- data/src/com/zoho/api/logger/sdk_logger.rb +88 -0
- data/src/com/zoho/crm/api/appointment_preference/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/appointment_preference/action_response.rb +12 -0
- data/src/com/zoho/crm/api/appointment_preference/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/appointment_preference/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/appointment_preference/appointment_preference.rb +159 -0
- data/src/com/zoho/crm/api/appointment_preference/appointment_preference_operations.rb +65 -0
- data/src/com/zoho/crm/api/appointment_preference/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/appointment_preference/field.rb +82 -0
- data/src/com/zoho/crm/api/appointment_preference/field_mappings.rb +102 -0
- data/src/com/zoho/crm/api/appointment_preference/layout.rb +82 -0
- data/src/com/zoho/crm/api/appointment_preference/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/appointment_preference/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/appointment_preference/success_response.rb +123 -0
- data/src/com/zoho/crm/api/assignment_rules/action_response.rb +12 -0
- data/src/com/zoho/crm/api/assignment_rules/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rules.rb +235 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +75 -0
- data/src/com/zoho/crm/api/assignment_rules/created_by.rb +122 -0
- data/src/com/zoho/crm/api/assignment_rules/default_assignee.rb +82 -0
- data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/assignment_rules/success_response.rb +123 -0
- data/src/com/zoho/crm/api/associate_email/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/associate_email/action_response.rb +12 -0
- data/src/com/zoho/crm/api/associate_email/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/associate_email/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/associate_email/associate_email.rb +273 -0
- data/src/com/zoho/crm/api/associate_email/associate_email_operations.rb +49 -0
- data/src/com/zoho/crm/api/associate_email/attachments.rb +63 -0
- data/src/com/zoho/crm/api/associate_email/available.rb +101 -0
- data/src/com/zoho/crm/api/associate_email/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/associate_email/from.rb +82 -0
- data/src/com/zoho/crm/api/associate_email/linked_record.rb +82 -0
- data/src/com/zoho/crm/api/associate_email/module_map.rb +82 -0
- data/src/com/zoho/crm/api/associate_email/record.rb +101 -0
- data/src/com/zoho/crm/api/associate_email/success_response.rb +123 -0
- data/src/com/zoho/crm/api/associate_email/to.rb +82 -0
- data/src/com/zoho/crm/api/attachments/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/attachments/action_response.rb +12 -0
- data/src/com/zoho/crm/api/attachments/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/attachments/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/attachments/attachment.rb +368 -0
- data/src/com/zoho/crm/api/attachments/attachments_operations.rb +243 -0
- data/src/com/zoho/crm/api/attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/attachments/info.rb +120 -0
- data/src/com/zoho/crm/api/attachments/owner.rb +82 -0
- data/src/com/zoho/crm/api/attachments/parent_id.rb +82 -0
- data/src/com/zoho/crm/api/attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/attachments/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/attachments/success_response.rb +123 -0
- data/src/com/zoho/crm/api/available_currencies/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/available_currencies/available_currencies_operations.rb +30 -0
- data/src/com/zoho/crm/api/available_currencies/currency.rb +177 -0
- data/src/com/zoho/crm/api/available_currencies/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/available_currencies/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/backup/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/backup/action_response.rb +12 -0
- data/src/com/zoho/crm/api/backup/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/backup/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/backup/backup.rb +158 -0
- data/src/com/zoho/crm/api/backup/backup_operations.rb +136 -0
- data/src/com/zoho/crm/api/backup/body_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/backup/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/backup/history.rb +196 -0
- data/src/com/zoho/crm/api/backup/history_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/backup/info.rb +120 -0
- data/src/com/zoho/crm/api/backup/requester.rb +101 -0
- data/src/com/zoho/crm/api/backup/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/backup/success_response.rb +123 -0
- data/src/com/zoho/crm/api/backup/urls.rb +101 -0
- data/src/com/zoho/crm/api/backup/urls_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/blueprint/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/blueprint/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/blueprint/association_details.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/auto_number.rb +101 -0
- data/src/com/zoho/crm/api/blueprint/blue_print.rb +121 -0
- data/src/com/zoho/crm/api/blueprint/blueprint_operations.rb +69 -0
- data/src/com/zoho/crm/api/blueprint/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/blueprint/convert_mapping.rb +101 -0
- data/src/com/zoho/crm/api/blueprint/crypt.rb +120 -0
- data/src/com/zoho/crm/api/blueprint/currency.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/escalation.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/field.rb +924 -0
- data/src/com/zoho/crm/api/blueprint/formula.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/layout.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/lookup_field.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/module.rb +120 -0
- data/src/com/zoho/crm/api/blueprint/module_fields.rb +120 -0
- data/src/com/zoho/crm/api/blueprint/module_mapping.rb +101 -0
- data/src/com/zoho/crm/api/blueprint/multi_select_lookup.rb +158 -0
- data/src/com/zoho/crm/api/blueprint/next_transition.rb +120 -0
- data/src/com/zoho/crm/api/blueprint/process_info.rb +253 -0
- data/src/com/zoho/crm/api/blueprint/profile.rb +101 -0
- data/src/com/zoho/crm/api/blueprint/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/blueprint/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/blueprint/success_response.rb +123 -0
- data/src/com/zoho/crm/api/blueprint/tool_tip.rb +82 -0
- data/src/com/zoho/crm/api/blueprint/transition.rb +273 -0
- data/src/com/zoho/crm/api/blueprint/view_type.rb +120 -0
- data/src/com/zoho/crm/api/bulk_read/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/bulk_read/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +76 -0
- data/src/com/zoho/crm/api/bulk_read/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_read/criteria.rb +157 -0
- data/src/com/zoho/crm/api/bulk_read/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_read/job_detail.rb +198 -0
- data/src/com/zoho/crm/api/bulk_read/query.rb +160 -0
- data/src/com/zoho/crm/api/bulk_read/request_wrapper.rb +102 -0
- data/src/com/zoho/crm/api/bulk_read/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/bulk_read/result.rb +139 -0
- data/src/com/zoho/crm/api/bulk_read/success_response.rb +123 -0
- data/src/com/zoho/crm/api/bulk_write/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/api_exception.rb +241 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +114 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_response.rb +218 -0
- data/src/com/zoho/crm/api/bulk_write/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_write/default_value.rb +98 -0
- data/src/com/zoho/crm/api/bulk_write/field_mapping.rb +158 -0
- data/src/com/zoho/crm/api/bulk_write/file.rb +159 -0
- data/src/com/zoho/crm/api/bulk_write/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_write/request_wrapper.rb +140 -0
- data/src/com/zoho/crm/api/bulk_write/resource.rb +217 -0
- data/src/com/zoho/crm/api/bulk_write/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/response_wrapper.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/result.rb +63 -0
- data/src/com/zoho/crm/api/bulk_write/success_response.rb +123 -0
- data/src/com/zoho/crm/api/business_hours/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/business_hours/action_response.rb +12 -0
- data/src/com/zoho/crm/api/business_hours/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/business_hours/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/business_hours/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/business_hours/break_hours_custom_timing.rb +83 -0
- data/src/com/zoho/crm/api/business_hours/business_hours.rb +178 -0
- data/src/com/zoho/crm/api/business_hours/business_hours_created.rb +123 -0
- data/src/com/zoho/crm/api/business_hours/business_hours_operations.rb +90 -0
- data/src/com/zoho/crm/api/business_hours/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/business_hours/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_response.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/cancel_meetings/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/cancel_meetings/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/cancel_meetings_operations.rb +43 -0
- data/src/com/zoho/crm/api/cancel_meetings/notify.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/success_response.rb +123 -0
- data/src/com/zoho/crm/api/change_owner/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/change_owner/action_response.rb +12 -0
- data/src/com/zoho/crm/api/change_owner/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/change_owner/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/change_owner/body_wrapper.rb +101 -0
- data/src/com/zoho/crm/api/change_owner/change_owner_operations.rb +71 -0
- data/src/com/zoho/crm/api/change_owner/error_details.rb +82 -0
- data/src/com/zoho/crm/api/change_owner/mass_wrapper.rb +122 -0
- data/src/com/zoho/crm/api/change_owner/owner.rb +63 -0
- data/src/com/zoho/crm/api/change_owner/related_modules.rb +82 -0
- data/src/com/zoho/crm/api/change_owner/success_response.rb +123 -0
- data/src/com/zoho/crm/api/contact_roles/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/action_response.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/contact_roles/body_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/contact_role.rb +101 -0
- data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +164 -0
- data/src/com/zoho/crm/api/contact_roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/success_response.rb +123 -0
- data/src/com/zoho/crm/api/currencies/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/currencies/action_response.rb +12 -0
- data/src/com/zoho/crm/api/currencies/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/currencies/base_currency.rb +196 -0
- data/src/com/zoho/crm/api/currencies/base_currency_action_response.rb +12 -0
- data/src/com/zoho/crm/api/currencies/base_currency_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/base_currency_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/currencies/body_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/currencies_operations.rb +157 -0
- data/src/com/zoho/crm/api/currencies/currency.rb +292 -0
- data/src/com/zoho/crm/api/currencies/currency_format.rb +102 -0
- data/src/com/zoho/crm/api/currencies/disable_success.rb +121 -0
- data/src/com/zoho/crm/api/currencies/error_details.rb +82 -0
- data/src/com/zoho/crm/api/currencies/format.rb +102 -0
- data/src/com/zoho/crm/api/currencies/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/currencies/success_response.rb +125 -0
- data/src/com/zoho/crm/api/custom_views/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/custom_views/action_response.rb +12 -0
- data/src/com/zoho/crm/api/custom_views/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/custom_views/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/custom_views/body_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/custom_views/criteria.rb +136 -0
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +463 -0
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +75 -0
- data/src/com/zoho/crm/api/custom_views/field.rb +82 -0
- data/src/com/zoho/crm/api/custom_views/fields.rb +101 -0
- data/src/com/zoho/crm/api/custom_views/info.rb +158 -0
- data/src/com/zoho/crm/api/custom_views/owner.rb +101 -0
- data/src/com/zoho/crm/api/custom_views/pin_fields.rb +83 -0
- data/src/com/zoho/crm/api/custom_views/pin_unpin_fields.rb +63 -0
- data/src/com/zoho/crm/api/custom_views/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/custom_views/shared_to.rb +121 -0
- data/src/com/zoho/crm/api/custom_views/sort_by.rb +82 -0
- data/src/com/zoho/crm/api/custom_views/success_response.rb +123 -0
- data/src/com/zoho/crm/api/custom_views/translation.rb +120 -0
- data/src/com/zoho/crm/api/dc/au_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/cn_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/datacenter.rb +70 -0
- data/src/com/zoho/crm/api/dc/eu_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/in_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/jp_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/us_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/deal_contact_roles/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/deal_contact_roles/action_response.rb +12 -0
- data/src/com/zoho/crm/api/deal_contact_roles/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/deal_contact_roles/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/deal_contact_roles/body_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/deal_contact_roles/contact_role.rb +82 -0
- data/src/com/zoho/crm/api/deal_contact_roles/data.rb +154 -0
- data/src/com/zoho/crm/api/deal_contact_roles/deal_contact_roles_operations.rb +141 -0
- data/src/com/zoho/crm/api/deal_contact_roles/error_details.rb +82 -0
- data/src/com/zoho/crm/api/deal_contact_roles/info.rb +177 -0
- data/src/com/zoho/crm/api/deal_contact_roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/deal_contact_roles/success_response.rb +123 -0
- data/src/com/zoho/crm/api/definition/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/definition/definition.rb +101 -0
- data/src/com/zoho/crm/api/definition/minified_property.rb +158 -0
- data/src/com/zoho/crm/api/definition/minified_property1.rb +139 -0
- data/src/com/zoho/crm/api/definition/property.rb +272 -0
- data/src/com/zoho/crm/api/definition/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/download_attachments/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/download_attachments/download_attachments_operations.rb +60 -0
- data/src/com/zoho/crm/api/download_attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/download_attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/download_inline_images/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/download_inline_images/download_inline_images_operations.rb +64 -0
- data/src/com/zoho/crm/api/download_inline_images/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/download_inline_images/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_compose_meta/compose_settings.rb +120 -0
- data/src/com/zoho/crm/api/email_compose_meta/data.rb +63 -0
- data/src/com/zoho/crm/api/email_compose_meta/data_map.rb +158 -0
- data/src/com/zoho/crm/api/email_compose_meta/default_form.rb +120 -0
- data/src/com/zoho/crm/api/email_compose_meta/features_available.rb +349 -0
- data/src/com/zoho/crm/api/email_compose_meta/from_address.rb +140 -0
- data/src/com/zoho/crm/api/email_compose_meta/user.rb +139 -0
- data/src/com/zoho/crm/api/email_related_records/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_related_records/attachments.rb +101 -0
- data/src/com/zoho/crm/api/email_related_records/email.rb +483 -0
- data/src/com/zoho/crm/api/email_related_records/email_related_records_operations.rb +89 -0
- data/src/com/zoho/crm/api/email_related_records/info.rb +139 -0
- data/src/com/zoho/crm/api/email_related_records/linked_record.rb +82 -0
- data/src/com/zoho/crm/api/email_related_records/module.rb +82 -0
- data/src/com/zoho/crm/api/email_related_records/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_related_records/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/email_related_records/status.rb +158 -0
- data/src/com/zoho/crm/api/email_related_records/user_details.rb +82 -0
- data/src/com/zoho/crm/api/email_sharing/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_sharing/email_sharing_operations.rb +44 -0
- data/src/com/zoho/crm/api/email_sharing/get_email_sharing.rb +82 -0
- data/src/com/zoho/crm/api/email_sharing/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_sharing/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/email_sharing/share_from_user.rb +101 -0
- data/src/com/zoho/crm/api/email_templates/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_templates/attachment.rb +120 -0
- data/src/com/zoho/crm/api/email_templates/email_template.rb +433 -0
- data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +63 -0
- data/src/com/zoho/crm/api/email_templates/info.rb +120 -0
- data/src/com/zoho/crm/api/email_templates/last_version_statistics.rb +158 -0
- data/src/com/zoho/crm/api/email_templates/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/entity_scores/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/entity_scores/entity_scores.rb +253 -0
- data/src/com/zoho/crm/api/entity_scores/entity_scores_operations.rb +70 -0
- data/src/com/zoho/crm/api/entity_scores/entity_structure.rb +84 -0
- data/src/com/zoho/crm/api/entity_scores/entity_structure_group.rb +12 -0
- data/src/com/zoho/crm/api/entity_scores/entity_structure_with_module.rb +103 -0
- data/src/com/zoho/crm/api/entity_scores/info.rb +215 -0
- data/src/com/zoho/crm/api/entity_scores/module_structure.rb +82 -0
- data/src/com/zoho/crm/api/entity_scores/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/entity_scores/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/entity_scores/scoring_rule_structure.rb +82 -0
- data/src/com/zoho/crm/api/exception/sdk_exception.rb +49 -0
- data/src/com/zoho/crm/api/field_attachments/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +54 -0
- data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/field_attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/field_map_dependency/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/field_map_dependency/action_response.rb +12 -0
- data/src/com/zoho/crm/api/field_map_dependency/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/field_map_dependency/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/field_map_dependency/body_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/field_map_dependency/child.rb +82 -0
- data/src/com/zoho/crm/api/field_map_dependency/field_map_dependency_operations.rb +178 -0
- data/src/com/zoho/crm/api/field_map_dependency/info.rb +120 -0
- data/src/com/zoho/crm/api/field_map_dependency/map_dependency.rb +215 -0
- data/src/com/zoho/crm/api/field_map_dependency/parent.rb +82 -0
- data/src/com/zoho/crm/api/field_map_dependency/pick_list_mapping.rb +120 -0
- data/src/com/zoho/crm/api/field_map_dependency/picklist_map.rb +120 -0
- data/src/com/zoho/crm/api/field_map_dependency/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/field_map_dependency/sub_module.rb +82 -0
- data/src/com/zoho/crm/api/field_map_dependency/success_response.rb +123 -0
- data/src/com/zoho/crm/api/fields/action_response.rb +12 -0
- data/src/com/zoho/crm/api/fields/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/fields/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/fields/association_details.rb +83 -0
- data/src/com/zoho/crm/api/fields/auto_number.rb +120 -0
- data/src/com/zoho/crm/api/fields/body_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/fields/convert_mapping.rb +101 -0
- data/src/com/zoho/crm/api/fields/crypt.rb +158 -0
- data/src/com/zoho/crm/api/fields/currency.rb +83 -0
- data/src/com/zoho/crm/api/fields/email_parser.rb +82 -0
- data/src/com/zoho/crm/api/fields/expression.rb +101 -0
- data/src/com/zoho/crm/api/fields/external.rb +102 -0
- data/src/com/zoho/crm/api/fields/fields.rb +1355 -0
- data/src/com/zoho/crm/api/fields/fields_operations.rb +103 -0
- data/src/com/zoho/crm/api/fields/file_upolad_option.rb +82 -0
- data/src/com/zoho/crm/api/fields/forecast_category.rb +82 -0
- data/src/com/zoho/crm/api/fields/formula.rb +83 -0
- data/src/com/zoho/crm/api/fields/function_parameter.rb +63 -0
- data/src/com/zoho/crm/api/fields/hipaa_compliance.rb +82 -0
- data/src/com/zoho/crm/api/fields/history_tracking.rb +83 -0
- data/src/com/zoho/crm/api/fields/history_tracking_module.rb +159 -0
- data/src/com/zoho/crm/api/fields/lookup.rb +178 -0
- data/src/com/zoho/crm/api/fields/maps.rb +82 -0
- data/src/com/zoho/crm/api/fields/minified_field.rb +82 -0
- data/src/com/zoho/crm/api/fields/multi_module_lookup.rb +102 -0
- data/src/com/zoho/crm/api/fields/multiselectlookup.rb +216 -0
- data/src/com/zoho/crm/api/fields/operation_type.rb +120 -0
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +273 -0
- data/src/com/zoho/crm/api/fields/private.rb +101 -0
- data/src/com/zoho/crm/api/fields/profile.rb +101 -0
- data/src/com/zoho/crm/api/fields/query_details.rb +82 -0
- data/src/com/zoho/crm/api/fields/refer_from_field.rb +82 -0
- data/src/com/zoho/crm/api/fields/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/fields/rollup_criteria.rb +98 -0
- data/src/com/zoho/crm/api/fields/rollup_summary.rb +139 -0
- data/src/com/zoho/crm/api/fields/show_fields.rb +82 -0
- data/src/com/zoho/crm/api/fields/success.rb +123 -0
- data/src/com/zoho/crm/api/fields/tooltip.rb +83 -0
- data/src/com/zoho/crm/api/fields/unique.rb +63 -0
- data/src/com/zoho/crm/api/fields/view_type.rb +120 -0
- data/src/com/zoho/crm/api/files/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/files/action_response.rb +12 -0
- data/src/com/zoho/crm/api/files/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/files/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/files/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/files/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/files/files_operations.rb +77 -0
- data/src/com/zoho/crm/api/files/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/files/success_response.rb +123 -0
- data/src/com/zoho/crm/api/fiscal_year/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/fiscal_year/action_response.rb +12 -0
- data/src/com/zoho/crm/api/fiscal_year/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/fiscal_year/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/fiscal_year/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/fiscal_year/fiscal_year_operations.rb +51 -0
- data/src/com/zoho/crm/api/fiscal_year/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/fiscal_year/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/fiscal_year/success_response.rb +123 -0
- data/src/com/zoho/crm/api/fiscal_year/year.rb +102 -0
- data/src/com/zoho/crm/api/from_addresses/address.rb +139 -0
- data/src/com/zoho/crm/api/from_addresses/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/from_addresses/from_addresses_operations.rb +30 -0
- data/src/com/zoho/crm/api/from_addresses/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/from_addresses/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/header.rb +12 -0
- data/src/com/zoho/crm/api/header_map.rb +57 -0
- data/src/com/zoho/crm/api/hipaa_compliance/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/hipaa_compliance/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/hipaa_compliance/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/hipaa_compliance/hipaa_compliance.rb +158 -0
- data/src/com/zoho/crm/api/hipaa_compliance/modules.rb +82 -0
- data/src/com/zoho/crm/api/hipaa_compliance/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/hipaa_compliance/success_response.rb +123 -0
- data/src/com/zoho/crm/api/holidays/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/holidays/action_response.rb +12 -0
- data/src/com/zoho/crm/api/holidays/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/holidays/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/holidays/body_wrapper.rb +12 -0
- data/src/com/zoho/crm/api/holidays/business_holiday.rb +102 -0
- data/src/com/zoho/crm/api/holidays/create_business_holiday.rb +65 -0
- data/src/com/zoho/crm/api/holidays/create_shift_holiday.rb +65 -0
- data/src/com/zoho/crm/api/holidays/holiday.rb +158 -0
- data/src/com/zoho/crm/api/holidays/holidays.rb +63 -0
- data/src/com/zoho/crm/api/holidays/holidays_operations.rb +188 -0
- data/src/com/zoho/crm/api/holidays/info.rb +120 -0
- data/src/com/zoho/crm/api/holidays/resonse_handler.rb +12 -0
- data/src/com/zoho/crm/api/holidays/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/holidays/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/holidays/shift_holiday.rb +121 -0
- data/src/com/zoho/crm/api/holidays/shift_hour.rb +82 -0
- data/src/com/zoho/crm/api/holidays/success_response.rb +123 -0
- data/src/com/zoho/crm/api/initializer.rb +232 -0
- data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/inventory_templates/folder.rb +82 -0
- data/src/com/zoho/crm/api/inventory_templates/info.rb +120 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +316 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +75 -0
- data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/isc_signature/signature.rb +60 -0
- data/src/com/zoho/crm/api/layouts/actions_allowed.rb +177 -0
- data/src/com/zoho/crm/api/layouts/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/layouts/convert_mapping.rb +139 -0
- data/src/com/zoho/crm/api/layouts/deal_field.rb +120 -0
- data/src/com/zoho/crm/api/layouts/deal_layout_mapping.rb +103 -0
- data/src/com/zoho/crm/api/layouts/default_assignment_view.rb +101 -0
- data/src/com/zoho/crm/api/layouts/default_view.rb +101 -0
- data/src/com/zoho/crm/api/layouts/layouts.rb +425 -0
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +75 -0
- data/src/com/zoho/crm/api/layouts/minified_layout.rb +82 -0
- data/src/com/zoho/crm/api/layouts/profiles.rb +139 -0
- data/src/com/zoho/crm/api/layouts/properties.rb +101 -0
- data/src/com/zoho/crm/api/layouts/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/layouts/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/layouts/section_field.rb +1456 -0
- data/src/com/zoho/crm/api/layouts/section_subform_field.rb +101 -0
- data/src/com/zoho/crm/api/layouts/sections.rb +272 -0
- data/src/com/zoho/crm/api/layouts/tooltip.rb +83 -0
- data/src/com/zoho/crm/api/mail_merge/action_response.rb +12 -0
- data/src/com/zoho/crm/api/mail_merge/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/address.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/address_value_map.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/mail_merge/download_mail_merge.rb +121 -0
- data/src/com/zoho/crm/api/mail_merge/download_mail_merge_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/mail_merge.rb +216 -0
- data/src/com/zoho/crm/api/mail_merge/mail_merge_template.rb +82 -0
- data/src/com/zoho/crm/api/mail_merge/mail_merge_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/sign_action_response.rb +12 -0
- data/src/com/zoho/crm/api/mail_merge/sign_action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/sign_mail_merge.rb +120 -0
- data/src/com/zoho/crm/api/mail_merge/sign_mail_merge_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/mail_merge/signers.rb +102 -0
- data/src/com/zoho/crm/api/mail_merge/success_response.rb +125 -0
- data/src/com/zoho/crm/api/mass_change_owner/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/mass_change_owner/action_response.rb +12 -0
- data/src/com/zoho/crm/api/mass_change_owner/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/mass_change_owner/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/mass_change_owner/body_wrapper.rb +101 -0
- data/src/com/zoho/crm/api/mass_change_owner/mass_change_owner_operations.rb +76 -0
- data/src/com/zoho/crm/api/mass_change_owner/owner.rb +63 -0
- data/src/com/zoho/crm/api/mass_change_owner/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/mass_change_owner/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/mass_change_owner/status.rb +140 -0
- data/src/com/zoho/crm/api/mass_change_owner/success_response.rb +123 -0
- data/src/com/zoho/crm/api/mass_change_owner/territory.rb +82 -0
- data/src/com/zoho/crm/api/mass_convert/action_response.rb +12 -0
- data/src/com/zoho/crm/api/mass_convert/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/mass_convert/assign_to.rb +63 -0
- data/src/com/zoho/crm/api/mass_convert/convert.rb +197 -0
- data/src/com/zoho/crm/api/mass_convert/error_details.rb +82 -0
- data/src/com/zoho/crm/api/mass_convert/mass_convert_operations.rb +68 -0
- data/src/com/zoho/crm/api/mass_convert/move_attachments_to.rb +82 -0
- data/src/com/zoho/crm/api/mass_convert/portal_user_type.rb +82 -0
- data/src/com/zoho/crm/api/mass_convert/related_module.rb +82 -0
- data/src/com/zoho/crm/api/mass_convert/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/mass_convert/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/mass_convert/status.rb +139 -0
- data/src/com/zoho/crm/api/mass_convert/success_response.rb +123 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/action_response.rb +12 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/cvid_body_wrapper.rb +82 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/mass_delete_cvid_operations.rb +95 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/mass_delete_scheduled.rb +123 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/record_id_body_wrapper.rb +82 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/status.rb +121 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/success_response.rb +123 -0
- data/src/com/zoho/crm/api/mass_delete_cvid/territory.rb +82 -0
- data/src/com/zoho/crm/api/modules/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/modules/action_response.rb +12 -0
- data/src/com/zoho/crm/api/modules/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/modules/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/modules/argument.rb +82 -0
- data/src/com/zoho/crm/api/modules/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/modules/lookup_field.rb +103 -0
- data/src/com/zoho/crm/api/modules/lookup_field_properties.rb +63 -0
- data/src/com/zoho/crm/api/modules/minified_module.rb +101 -0
- data/src/com/zoho/crm/api/modules/module_field_lookup.rb +181 -0
- data/src/com/zoho/crm/api/modules/module_fields.rb +1377 -0
- data/src/com/zoho/crm/api/modules/modules.rb +1191 -0
- data/src/com/zoho/crm/api/modules/modules_operations.rb +133 -0
- data/src/com/zoho/crm/api/modules/related_list_properties.rb +102 -0
- data/src/com/zoho/crm/api/modules/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/modules/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/modules/sharing_properties.rb +102 -0
- data/src/com/zoho/crm/api/modules/success_response.rb +123 -0
- data/src/com/zoho/crm/api/modules/territory.rb +101 -0
- data/src/com/zoho/crm/api/notes/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/notes/action_response.rb +12 -0
- data/src/com/zoho/crm/api/notes/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/notes/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/notes/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/notes/info.rb +215 -0
- data/src/com/zoho/crm/api/notes/note.rb +370 -0
- data/src/com/zoho/crm/api/notes/notes_operations.rb +229 -0
- data/src/com/zoho/crm/api/notes/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/notes/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/notes/success_response.rb +123 -0
- data/src/com/zoho/crm/api/notifications/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/notifications/action_response.rb +12 -0
- data/src/com/zoho/crm/api/notifications/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/notifications/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/notifications/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/notifications/delete_details.rb +101 -0
- data/src/com/zoho/crm/api/notifications/event.rb +141 -0
- data/src/com/zoho/crm/api/notifications/info.rb +120 -0
- data/src/com/zoho/crm/api/notifications/notification.rb +275 -0
- data/src/com/zoho/crm/api/notifications/notifications_operations.rb +165 -0
- data/src/com/zoho/crm/api/notifications/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/notifications/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/notifications/success_response.rb +123 -0
- data/src/com/zoho/crm/api/org/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/org/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/org/checkin_preferences.rb +63 -0
- data/src/com/zoho/crm/api/org/feature.rb +82 -0
- data/src/com/zoho/crm/api/org/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/org/hierarchy_preferences.rb +83 -0
- data/src/com/zoho/crm/api/org/license_details.rb +177 -0
- data/src/com/zoho/crm/api/org/org.rb +823 -0
- data/src/com/zoho/crm/api/org/org_operations.rb +79 -0
- data/src/com/zoho/crm/api/org/resource.rb +82 -0
- data/src/com/zoho/crm/api/org/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/org/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/org/success_response.rb +123 -0
- data/src/com/zoho/crm/api/param.rb +12 -0
- data/src/com/zoho/crm/api/parameter_map.rb +56 -0
- data/src/com/zoho/crm/api/pipeline/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/action_response.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/pipeline/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/pipeline/d_pipeline.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/d_pipeline_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/delete.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/forecast_category.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/mandatory_details.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/maps.rb +196 -0
- data/src/com/zoho/crm/api/pipeline/pipeline.rb +177 -0
- data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +166 -0
- data/src/com/zoho/crm/api/pipeline/regex_details.rb +101 -0
- data/src/com/zoho/crm/api/pipeline/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/stages.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/success_response.rb +123 -0
- data/src/com/zoho/crm/api/pipeline/t_pipeline.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_response.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_wrapper.rb +67 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline_success_response.rb +123 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipeline_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/portal_invite/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/portal_invite/action_response.rb +12 -0
- data/src/com/zoho/crm/api/portal_invite/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/portal_invite/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/portal_invite/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/portal_invite/data.rb +12 -0
- data/src/com/zoho/crm/api/portal_invite/job_response.rb +101 -0
- data/src/com/zoho/crm/api/portal_invite/portal.rb +121 -0
- data/src/com/zoho/crm/api/portal_invite/portal_invite.rb +63 -0
- data/src/com/zoho/crm/api/portal_invite/portal_invite_operations.rb +65 -0
- data/src/com/zoho/crm/api/portal_invite/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/portal_invite/success_response.rb +125 -0
- data/src/com/zoho/crm/api/portal_user_type/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/portal_user_type/fields.rb +101 -0
- data/src/com/zoho/crm/api/portal_user_type/filters.rb +101 -0
- data/src/com/zoho/crm/api/portal_user_type/layouts.rb +120 -0
- data/src/com/zoho/crm/api/portal_user_type/modules.rb +216 -0
- data/src/com/zoho/crm/api/portal_user_type/owner.rb +82 -0
- data/src/com/zoho/crm/api/portal_user_type/permissions.rb +178 -0
- data/src/com/zoho/crm/api/portal_user_type/personality_module.rb +101 -0
- data/src/com/zoho/crm/api/portal_user_type/portal_user_type_operations.rb +72 -0
- data/src/com/zoho/crm/api/portal_user_type/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/portal_user_type/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/portal_user_type/user_type.rb +253 -0
- data/src/com/zoho/crm/api/portal_user_type/views.rb +120 -0
- data/src/com/zoho/crm/api/portals/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/portals/action_response.rb +12 -0
- data/src/com/zoho/crm/api/portals/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/portals/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/portals/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/portals/owner.rb +82 -0
- data/src/com/zoho/crm/api/portals/portals.rb +177 -0
- data/src/com/zoho/crm/api/portals/portals_operations.rb +96 -0
- data/src/com/zoho/crm/api/portals/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/portals/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/portals/success_response.rb +123 -0
- data/src/com/zoho/crm/api/portals_meta/filters.rb +101 -0
- data/src/com/zoho/crm/api/portals_meta/layouts.rb +101 -0
- data/src/com/zoho/crm/api/portals_meta/modules.rb +177 -0
- data/src/com/zoho/crm/api/portals_meta/related_lists.rb +63 -0
- data/src/com/zoho/crm/api/portals_meta/views.rb +120 -0
- data/src/com/zoho/crm/api/portals_meta/wrapper.rb +63 -0
- data/src/com/zoho/crm/api/privacy_configurable_apps/apps.rb +63 -0
- data/src/com/zoho/crm/api/privacy_configurable_apps/wrapper.rb +63 -0
- data/src/com/zoho/crm/api/privacy_preference/config.rb +101 -0
- data/src/com/zoho/crm/api/privacy_preference/option.rb +120 -0
- data/src/com/zoho/crm/api/privacy_preference/preference.rb +462 -0
- data/src/com/zoho/crm/api/privacy_preference/privacy_preference.rb +82 -0
- data/src/com/zoho/crm/api/privacy_preference/section.rb +139 -0
- data/src/com/zoho/crm/api/privacy_preference/tpt.rb +101 -0
- data/src/com/zoho/crm/api/privacy_preference/wrapper.rb +63 -0
- data/src/com/zoho/crm/api/profiles/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/profiles/action_response.rb +12 -0
- data/src/com/zoho/crm/api/profiles/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/profiles/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/profiles/category.rb +12 -0
- data/src/com/zoho/crm/api/profiles/category_module.rb +122 -0
- data/src/com/zoho/crm/api/profiles/category_others.rb +103 -0
- data/src/com/zoho/crm/api/profiles/default_view.rb +101 -0
- data/src/com/zoho/crm/api/profiles/info.rb +63 -0
- data/src/com/zoho/crm/api/profiles/minified_profile.rb +101 -0
- data/src/com/zoho/crm/api/profiles/permission_detail.rb +178 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +350 -0
- data/src/com/zoho/crm/api/profiles/profile_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +146 -0
- data/src/com/zoho/crm/api/profiles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/profiles/section.rb +82 -0
- data/src/com/zoho/crm/api/profiles/success_response.rb +125 -0
- data/src/com/zoho/crm/api/query/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/query/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/query/query_operations.rb +37 -0
- data/src/com/zoho/crm/api/query/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/query/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/record/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/api_exception.rb +143 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +158 -0
- data/src/com/zoho/crm/api/record/carry_over_tags.rb +101 -0
- data/src/com/zoho/crm/api/record/comment.rb +120 -0
- data/src/com/zoho/crm/api/record/consent.rb +307 -0
- data/src/com/zoho/crm/api/record/conversion_option.rb +159 -0
- data/src/com/zoho/crm/api/record/conversion_options_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/convert_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record/count_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/count_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/criteria.rb +137 -0
- data/src/com/zoho/crm/api/record/deleted_record.rb +159 -0
- data/src/com/zoho/crm/api/record/deleted_records_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/deleted_records_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record/download_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/duplicate_record.rb +103 -0
- data/src/com/zoho/crm/api/record/field.rb +2479 -0
- data/src/com/zoho/crm/api/record/file_body_wrapper.rb +68 -0
- data/src/com/zoho/crm/api/record/file_details.rb +139 -0
- data/src/com/zoho/crm/api/record/file_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/image_upload.rb +215 -0
- data/src/com/zoho/crm/api/record/info.rb +253 -0
- data/src/com/zoho/crm/api/record/lead_converter.rb +197 -0
- data/src/com/zoho/crm/api/record/line_item_product.rb +171 -0
- data/src/com/zoho/crm/api/record/line_tax.rb +139 -0
- data/src/com/zoho/crm/api/record/mass_update.rb +142 -0
- data/src/com/zoho/crm/api/record/mass_update_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +158 -0
- data/src/com/zoho/crm/api/record/mass_update_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_success_response.rb +123 -0
- data/src/com/zoho/crm/api/record/mass_update_territory.rb +82 -0
- data/src/com/zoho/crm/api/record/multi_select_lookup.rb +101 -0
- data/src/com/zoho/crm/api/record/multi_select_picklist.rb +82 -0
- data/src/com/zoho/crm/api/record/options.rb +32 -0
- data/src/com/zoho/crm/api/record/participants.rb +222 -0
- data/src/com/zoho/crm/api/record/preference_field_matched_value.rb +101 -0
- data/src/com/zoho/crm/api/record/price_book.rb +137 -0
- data/src/com/zoho/crm/api/record/pricing_details.rb +188 -0
- data/src/com/zoho/crm/api/record/record.rb +211 -0
- data/src/com/zoho/crm/api/record/record_operations.rb +1182 -0
- data/src/com/zoho/crm/api/record/recurring_activity.rb +82 -0
- data/src/com/zoho/crm/api/record/remind_at.rb +63 -0
- data/src/com/zoho/crm/api/record/reminder.rb +101 -0
- data/src/com/zoho/crm/api/record/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record/success_response.rb +163 -0
- data/src/com/zoho/crm/api/record/tax.rb +82 -0
- data/src/com/zoho/crm/api/record/territory.rb +140 -0
- data/src/com/zoho/crm/api/record/widget.rb +82 -0
- data/src/com/zoho/crm/api/record/wizard.rb +82 -0
- data/src/com/zoho/crm/api/record_locking/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record_locking/action_response.rb +12 -0
- data/src/com/zoho/crm/api/record_locking/action_responses.rb +12 -0
- data/src/com/zoho/crm/api/record_locking/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record_locking/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/record_locking/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record_locking/error_handler.rb +12 -0
- data/src/com/zoho/crm/api/record_locking/error_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record_locking/info.rb +253 -0
- data/src/com/zoho/crm/api/record_locking/lock_record.rb +63 -0
- data/src/com/zoho/crm/api/record_locking/locked_for_s.rb +101 -0
- data/src/com/zoho/crm/api/record_locking/record_action_locked.rb +63 -0
- data/src/com/zoho/crm/api/record_locking/record_action_locked_detail1.rb +101 -0
- data/src/com/zoho/crm/api/record_locking/record_action_locked_detail2.rb +82 -0
- data/src/com/zoho/crm/api/record_locking/record_lock.rb +257 -0
- data/src/com/zoho/crm/api/record_locking/record_locking_operations.rb +201 -0
- data/src/com/zoho/crm/api/record_locking/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record_locking/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record_locking/success_response.rb +161 -0
- data/src/com/zoho/crm/api/related_lists/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/related_lists/field.rb +82 -0
- data/src/com/zoho/crm/api/related_lists/module_map.rb +82 -0
- data/src/com/zoho/crm/api/related_lists/related_list.rb +386 -0
- data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +82 -0
- data/src/com/zoho/crm/api/related_lists/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_lists/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/related_records/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_records/action_response.rb +12 -0
- data/src/com/zoho/crm/api/related_records/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/related_records/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/related_records/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/related_records/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/related_records/related_records_operations.rb +556 -0
- data/src/com/zoho/crm/api/related_records/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_records/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/related_records/success_response.rb +123 -0
- data/src/com/zoho/crm/api/request_proxy.rb +17 -0
- data/src/com/zoho/crm/api/reschedule_history/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/reschedule_history/action_response.rb +12 -0
- data/src/com/zoho/crm/api/reschedule_history/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/reschedule_history/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/reschedule_history/appointment_name.rb +82 -0
- data/src/com/zoho/crm/api/reschedule_history/approval.rb +120 -0
- data/src/com/zoho/crm/api/reschedule_history/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/reschedule_history/info.rb +177 -0
- data/src/com/zoho/crm/api/reschedule_history/reschedule_history.rb +557 -0
- data/src/com/zoho/crm/api/reschedule_history/reschedule_history_operations.rb +177 -0
- data/src/com/zoho/crm/api/reschedule_history/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/reschedule_history/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/reschedule_history/success_response.rb +123 -0
- data/src/com/zoho/crm/api/reschedule_history/user.rb +101 -0
- data/src/com/zoho/crm/api/roles/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/roles/action_response.rb +12 -0
- data/src/com/zoho/crm/api/roles/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/roles/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/roles/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/roles/reporting_to.rb +82 -0
- data/src/com/zoho/crm/api/roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/roles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/roles/role.rb +273 -0
- data/src/com/zoho/crm/api/roles/roles_operations.rb +150 -0
- data/src/com/zoho/crm/api/roles/success_response.rb +123 -0
- data/src/com/zoho/crm/api/scoring_rules/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/scoring_rules/action_response.rb +12 -0
- data/src/com/zoho/crm/api/scoring_rules/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/scoring_rules/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/scoring_rules/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/scoring_rules/criteria.rb +136 -0
- data/src/com/zoho/crm/api/scoring_rules/field.rb +82 -0
- data/src/com/zoho/crm/api/scoring_rules/field_rule.rb +101 -0
- data/src/com/zoho/crm/api/scoring_rules/info.rb +215 -0
- data/src/com/zoho/crm/api/scoring_rules/layout.rb +82 -0
- data/src/com/zoho/crm/api/scoring_rules/layout_request_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/scoring_rules/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/scoring_rules/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/scoring_rules/role_request_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/scoring_rules/scoring_rule.rb +274 -0
- data/src/com/zoho/crm/api/scoring_rules/scoring_rules_operations.rb +331 -0
- data/src/com/zoho/crm/api/scoring_rules/signal.rb +82 -0
- data/src/com/zoho/crm/api/scoring_rules/signal_rule.rb +101 -0
- data/src/com/zoho/crm/api/scoring_rules/success_response.rb +125 -0
- data/src/com/zoho/crm/api/sdk_config.rb +15 -0
- data/src/com/zoho/crm/api/send_mail/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/action_response.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/send_mail/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/send_mail/attachment.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/data.rb +349 -0
- data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/from.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/invalid_details.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/inventory_details.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/inventory_template.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +51 -0
- data/src/com/zoho/crm/api/send_mail/success_response.rb +123 -0
- data/src/com/zoho/crm/api/send_mail/template.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/to.rb +82 -0
- data/src/com/zoho/crm/api/service_preference/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/service_preference/action_response.rb +12 -0
- data/src/com/zoho/crm/api/service_preference/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/service_preference/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/service_preference/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/service_preference/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/service_preference/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/service_preference/service_preference.rb +63 -0
- data/src/com/zoho/crm/api/service_preference/service_preference_operations.rb +51 -0
- data/src/com/zoho/crm/api/service_preference/success_response.rb +123 -0
- data/src/com/zoho/crm/api/share_records/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_response.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/share_records/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/share_records/body_wrapper.rb +101 -0
- data/src/com/zoho/crm/api/share_records/delete_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/delete_action_response.rb +12 -0
- data/src/com/zoho/crm/api/share_records/delete_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/share_records/dependee.rb +82 -0
- data/src/com/zoho/crm/api/share_records/module.rb +101 -0
- data/src/com/zoho/crm/api/share_records/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/share_records/share_record.rb +198 -0
- data/src/com/zoho/crm/api/share_records/share_records_operations.rb +130 -0
- data/src/com/zoho/crm/api/share_records/shared_through.rb +120 -0
- data/src/com/zoho/crm/api/share_records/success_response.rb +125 -0
- data/src/com/zoho/crm/api/shift_hours/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/shift_hours/action_response.rb +12 -0
- data/src/com/zoho/crm/api/shift_hours/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/shift_hours/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/shift_hours/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/shift_hours/break_custom_timing.rb +82 -0
- data/src/com/zoho/crm/api/shift_hours/break_hours.rb +139 -0
- data/src/com/zoho/crm/api/shift_hours/holidays.rb +120 -0
- data/src/com/zoho/crm/api/shift_hours/mandatory_details.rb +82 -0
- data/src/com/zoho/crm/api/shift_hours/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/shift_hours/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/shift_hours/role.rb +82 -0
- data/src/com/zoho/crm/api/shift_hours/shift_count.rb +82 -0
- data/src/com/zoho/crm/api/shift_hours/shift_custom_timing.rb +82 -0
- data/src/com/zoho/crm/api/shift_hours/shift_hours.rb +253 -0
- data/src/com/zoho/crm/api/shift_hours/shift_hours_operations.rb +166 -0
- data/src/com/zoho/crm/api/shift_hours/success_response.rb +123 -0
- data/src/com/zoho/crm/api/shift_hours/users.rb +158 -0
- data/src/com/zoho/crm/api/tags/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/action_response.rb +12 -0
- data/src/com/zoho/crm/api/tags/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/tags/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/tags/associated_places.rb +82 -0
- data/src/com/zoho/crm/api/tags/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/conflict_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/count_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/tags/error_details.rb +82 -0
- data/src/com/zoho/crm/api/tags/existing_tag.rb +82 -0
- data/src/com/zoho/crm/api/tags/existing_tag_request_wrapper.rb +82 -0
- data/src/com/zoho/crm/api/tags/info.rb +82 -0
- data/src/com/zoho/crm/api/tags/merge_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/new_tag_request_wrapper.rb +101 -0
- data/src/com/zoho/crm/api/tags/record_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/record_action_response.rb +12 -0
- data/src/com/zoho/crm/api/tags/record_action_wrapper.rb +122 -0
- data/src/com/zoho/crm/api/tags/record_detail_tag.rb +101 -0
- data/src/com/zoho/crm/api/tags/record_success_response.rb +123 -0
- data/src/com/zoho/crm/api/tags/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/tags/success_response.rb +123 -0
- data/src/com/zoho/crm/api/tags/tag.rb +179 -0
- data/src/com/zoho/crm/api/tags/tags_operations.rb +385 -0
- data/src/com/zoho/crm/api/taxes/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/taxes/action_response.rb +12 -0
- data/src/com/zoho/crm/api/taxes/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/taxes/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/taxes/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/taxes/expected_field.rb +82 -0
- data/src/com/zoho/crm/api/taxes/org_tax.rb +82 -0
- data/src/com/zoho/crm/api/taxes/preference.rb +82 -0
- data/src/com/zoho/crm/api/taxes/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/taxes/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/taxes/success_response.rb +123 -0
- data/src/com/zoho/crm/api/taxes/tax.rb +158 -0
- data/src/com/zoho/crm/api/taxes/taxes_operations.rb +70 -0
- data/src/com/zoho/crm/api/templates/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/templates/folder.rb +82 -0
- data/src/com/zoho/crm/api/templates/templates.rb +234 -0
- data/src/com/zoho/crm/api/templates/wrapper.rb +63 -0
- data/src/com/zoho/crm/api/territories/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/territories/action_response.rb +12 -0
- data/src/com/zoho/crm/api/territories/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/territories/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/territories/associated_users_count.rb +82 -0
- data/src/com/zoho/crm/api/territories/associated_users_count_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/territories/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/territories/criteria.rb +136 -0
- data/src/com/zoho/crm/api/territories/deleted_associated_territories.rb +121 -0
- data/src/com/zoho/crm/api/territories/deleted_associated_wrapper.rb +82 -0
- data/src/com/zoho/crm/api/territories/field.rb +82 -0
- data/src/com/zoho/crm/api/territories/info.rb +120 -0
- data/src/com/zoho/crm/api/territories/manager.rb +82 -0
- data/src/com/zoho/crm/api/territories/minified_territory.rb +101 -0
- data/src/com/zoho/crm/api/territories/reporting_to.rb +82 -0
- data/src/com/zoho/crm/api/territories/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/territories/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/territories/success_response.rb +123 -0
- data/src/com/zoho/crm/api/territories/territories.rb +293 -0
- data/src/com/zoho/crm/api/territories/territories_operations.rb +283 -0
- data/src/com/zoho/crm/api/territories/transfer_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/territories/transfer_territory.rb +101 -0
- data/src/com/zoho/crm/api/territory_users/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/territory_users/action_response.rb +12 -0
- data/src/com/zoho/crm/api/territory_users/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/territory_users/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/territory_users/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/territory_users/info.rb +120 -0
- data/src/com/zoho/crm/api/territory_users/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/territory_users/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/territory_users/success_response.rb +123 -0
- data/src/com/zoho/crm/api/territory_users/territory_users_operations.rb +172 -0
- data/src/com/zoho/crm/api/timelines/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/timelines/automation_detail.rb +101 -0
- data/src/com/zoho/crm/api/timelines/field_history.rb +177 -0
- data/src/com/zoho/crm/api/timelines/field_history_value.rb +82 -0
- data/src/com/zoho/crm/api/timelines/info.rb +158 -0
- data/src/com/zoho/crm/api/timelines/module.rb +82 -0
- data/src/com/zoho/crm/api/timelines/name_id_structure.rb +82 -0
- data/src/com/zoho/crm/api/timelines/path_finder.rb +101 -0
- data/src/com/zoho/crm/api/timelines/picklist_detail.rb +158 -0
- data/src/com/zoho/crm/api/timelines/record.rb +101 -0
- data/src/com/zoho/crm/api/timelines/related_record.rb +101 -0
- data/src/com/zoho/crm/api/timelines/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/timelines/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/timelines/state.rb +120 -0
- data/src/com/zoho/crm/api/timelines/timeline.rb +253 -0
- data/src/com/zoho/crm/api/timelines/timelines_operations.rb +88 -0
- data/src/com/zoho/crm/api/user_groups/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/user_groups/action_response.rb +12 -0
- data/src/com/zoho/crm/api/user_groups/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/user_groups/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/user_groups/associated_user.rb +82 -0
- data/src/com/zoho/crm/api/user_groups/associated_user_count.rb +84 -0
- data/src/com/zoho/crm/api/user_groups/association_module.rb +64 -0
- data/src/com/zoho/crm/api/user_groups/association_response.rb +101 -0
- data/src/com/zoho/crm/api/user_groups/association_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/user_groups/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/user_groups/groups.rb +196 -0
- data/src/com/zoho/crm/api/user_groups/info.rb +120 -0
- data/src/com/zoho/crm/api/user_groups/jobs.rb +63 -0
- data/src/com/zoho/crm/api/user_groups/jobs_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/user_groups/owner.rb +82 -0
- data/src/com/zoho/crm/api/user_groups/resource.rb +82 -0
- data/src/com/zoho/crm/api/user_groups/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/user_groups/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/user_groups/source.rb +82 -0
- data/src/com/zoho/crm/api/user_groups/sources.rb +121 -0
- data/src/com/zoho/crm/api/user_groups/sources_count.rb +120 -0
- data/src/com/zoho/crm/api/user_groups/sources_count_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/user_groups/sources_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/user_groups/success_response.rb +123 -0
- data/src/com/zoho/crm/api/user_groups/user_group.rb +82 -0
- data/src/com/zoho/crm/api/user_groups/user_groups_operations.rb +260 -0
- data/src/com/zoho/crm/api/user_groups/users.rb +101 -0
- data/src/com/zoho/crm/api/user_signature.rb +15 -0
- data/src/com/zoho/crm/api/user_type_users/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/user_type_users/info.rb +139 -0
- data/src/com/zoho/crm/api/user_type_users/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/user_type_users/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/user_type_users/user_type_users_operations.rb +60 -0
- data/src/com/zoho/crm/api/user_type_users/users.rb +196 -0
- data/src/com/zoho/crm/api/users/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users/action_response.rb +12 -0
- data/src/com/zoho/crm/api/users/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/users/associated_group.rb +177 -0
- data/src/com/zoho/crm/api/users/associated_groups_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/users/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users/customize_info.rb +146 -0
- data/src/com/zoho/crm/api/users/error_details.rb +82 -0
- data/src/com/zoho/crm/api/users/info.rb +120 -0
- data/src/com/zoho/crm/api/users/minified_user.rb +101 -0
- data/src/com/zoho/crm/api/users/owner.rb +120 -0
- data/src/com/zoho/crm/api/users/profile.rb +82 -0
- data/src/com/zoho/crm/api/users/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/users/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/users/role.rb +82 -0
- data/src/com/zoho/crm/api/users/shift.rb +82 -0
- data/src/com/zoho/crm/api/users/success_response.rb +123 -0
- data/src/com/zoho/crm/api/users/tab.rb +83 -0
- data/src/com/zoho/crm/api/users/theme.rb +159 -0
- data/src/com/zoho/crm/api/users/users.rb +1086 -0
- data/src/com/zoho/crm/api/users/users_operations.rb +208 -0
- data/src/com/zoho/crm/api/users_territories/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/action_response.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/action_wrapper.rb +67 -0
- data/src/com/zoho/crm/api/users_territories/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/users_territories/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users_territories/bulk_validation.rb +141 -0
- data/src/com/zoho/crm/api/users_territories/info.rb +120 -0
- data/src/com/zoho/crm/api/users_territories/manager.rb +82 -0
- data/src/com/zoho/crm/api/users_territories/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/users_territories/success_response.rb +125 -0
- data/src/com/zoho/crm/api/users_territories/territory.rb +120 -0
- data/src/com/zoho/crm/api/users_territories/transfer_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/transfer_action_response.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/transfer_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users_territories/transfer_and_delink.rb +82 -0
- data/src/com/zoho/crm/api/users_territories/transfer_to_user.rb +63 -0
- data/src/com/zoho/crm/api/users_territories/transfer_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users_territories/users_territories_operations.rb +192 -0
- data/src/com/zoho/crm/api/users_territories/validation.rb +103 -0
- data/src/com/zoho/crm/api/users_territories/validation_group.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/validation_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_territories/validation_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users_transfer_delete/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_transfer_delete/action_response.rb +12 -0
- data/src/com/zoho/crm/api/users_transfer_delete/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users_transfer_delete/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/users_transfer_delete/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users_transfer_delete/move_subordinate.rb +63 -0
- data/src/com/zoho/crm/api/users_transfer_delete/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_transfer_delete/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users_transfer_delete/status.rb +63 -0
- data/src/com/zoho/crm/api/users_transfer_delete/success_response.rb +123 -0
- data/src/com/zoho/crm/api/users_transfer_delete/transfer.rb +120 -0
- data/src/com/zoho/crm/api/users_transfer_delete/transfer_and_delete.rb +101 -0
- data/src/com/zoho/crm/api/users_transfer_delete/transfer_and_delete_by_i_d.rb +82 -0
- data/src/com/zoho/crm/api/users_transfer_delete/users_transfer_delete_operations.rb +92 -0
- data/src/com/zoho/crm/api/users_unavailability/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_unavailability/action_response.rb +12 -0
- data/src/com/zoho/crm/api/users_unavailability/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users_unavailability/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/users_unavailability/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users_unavailability/info.rb +120 -0
- data/src/com/zoho/crm/api/users_unavailability/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/users_unavailability/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/users_unavailability/success_response.rb +123 -0
- data/src/com/zoho/crm/api/users_unavailability/user.rb +101 -0
- data/src/com/zoho/crm/api/users_unavailability/users_unavailability.rb +234 -0
- data/src/com/zoho/crm/api/users_unavailability/users_unavailability_operations.rb +181 -0
- data/src/com/zoho/crm/api/util/api_http_connector.rb +125 -0
- data/src/com/zoho/crm/api/util/api_response.rb +18 -0
- data/src/com/zoho/crm/api/util/choice.rb +11 -0
- data/src/com/zoho/crm/api/util/common_api_handler.rb +240 -0
- data/src/com/zoho/crm/api/util/constants.rb +754 -0
- data/src/com/zoho/crm/api/util/converter.rb +280 -0
- data/src/com/zoho/crm/api/util/data_type_converter.rb +179 -0
- data/src/com/zoho/crm/api/util/downloader.rb +86 -0
- data/src/com/zoho/crm/api/util/form_data_converter.rb +159 -0
- data/src/com/zoho/crm/api/util/header_param_validator.rb +57 -0
- data/src/com/zoho/crm/api/util/json_converter.rb +774 -0
- data/src/com/zoho/crm/api/util/model.rb +7 -0
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +91 -0
- data/src/com/zoho/crm/api/util/stream_wrapper.rb +39 -0
- data/src/com/zoho/crm/api/util/utility.rb +1007 -0
- data/src/com/zoho/crm/api/variable_groups/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/variable_groups/minified_variable_group.rb +82 -0
- data/src/com/zoho/crm/api/variable_groups/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/variable_groups/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variable_groups/variable_group.rb +158 -0
- data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +68 -0
- data/src/com/zoho/crm/api/variables/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_response.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/variables/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/variables/error_details.rb +82 -0
- data/src/com/zoho/crm/api/variables/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/success_response.rb +123 -0
- data/src/com/zoho/crm/api/variables/variable.rb +213 -0
- data/src/com/zoho/crm/api/variables/variable_group.rb +101 -0
- data/src/com/zoho/crm/api/variables/variables_operations.rb +255 -0
- data/src/com/zoho/crm/api/wizards/actions.rb +157 -0
- data/src/com/zoho/crm/api/wizards/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/wizards/button.rb +288 -0
- data/src/com/zoho/crm/api/wizards/button_background.rb +63 -0
- data/src/com/zoho/crm/api/wizards/chart_data.rb +139 -0
- data/src/com/zoho/crm/api/wizards/conditional_rules.rb +121 -0
- data/src/com/zoho/crm/api/wizards/connection.rb +82 -0
- data/src/com/zoho/crm/api/wizards/container.rb +121 -0
- data/src/com/zoho/crm/api/wizards/criteria.rb +136 -0
- data/src/com/zoho/crm/api/wizards/exempted_portal_user_type.rb +63 -0
- data/src/com/zoho/crm/api/wizards/field.rb +82 -0
- data/src/com/zoho/crm/api/wizards/node.rb +120 -0
- data/src/com/zoho/crm/api/wizards/portal_user_type.rb +121 -0
- data/src/com/zoho/crm/api/wizards/resource.rb +82 -0
- data/src/com/zoho/crm/api/wizards/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/wizards/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/wizards/screen.rb +120 -0
- data/src/com/zoho/crm/api/wizards/segment.rb +197 -0
- data/src/com/zoho/crm/api/wizards/transition.rb +82 -0
- data/src/com/zoho/crm/api/wizards/wizard.rb +313 -0
- data/src/com/zoho/crm/api/wizards/wizards_operations.rb +63 -0
- data/src/resources/json_details.json +1 -0
- data/src/version.rb +3 -0
- metadata +1241 -0
@@ -0,0 +1,774 @@
|
|
1
|
+
require 'json'
|
2
|
+
require_relative 'converter'
|
3
|
+
require_relative 'constants'
|
4
|
+
|
5
|
+
module ZOHOCRMSDK
|
6
|
+
module Util
|
7
|
+
class JSONConverter < Converter
|
8
|
+
attr_accessor :unique_hash
|
9
|
+
|
10
|
+
def initialize(common_api_handler)
|
11
|
+
@unique_hash = {}
|
12
|
+
super(common_api_handler)
|
13
|
+
end
|
14
|
+
|
15
|
+
def append_to_request(request_base, request_object)
|
16
|
+
request_object = request_object.to_json
|
17
|
+
request_base.body = request_object.to_s
|
18
|
+
end
|
19
|
+
|
20
|
+
def form_request(request_instance, pack, instance_number, member_json_details = nil)
|
21
|
+
require_relative '../initializer'
|
22
|
+
|
23
|
+
package_name = Utility.path_to_package(pack)
|
24
|
+
class_detail = Initializer.json_details[package_name]
|
25
|
+
|
26
|
+
if class_detail.key?(Constants::INTERFACE) && !class_detail[Constants::INTERFACE].nil?
|
27
|
+
request_object_class_name = request_instance.class.name
|
28
|
+
request_object_class_name = Utility.path_to_package(request_object_class_name)
|
29
|
+
classes = class_detail[Constants::CLASSES]
|
30
|
+
|
31
|
+
classes.each do |class_name|
|
32
|
+
class_name_lower = class_name.to_s.downcase
|
33
|
+
request_class_path_lower = request_object_class_name.downcase
|
34
|
+
|
35
|
+
if class_name_lower.downcase == request_class_path_lower.downcase
|
36
|
+
class_detail = Initializer.json_details[class_name.to_s]
|
37
|
+
break
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
require_relative '../record/record'
|
43
|
+
|
44
|
+
if request_instance.is_a? Record::Record
|
45
|
+
module_api_name = @common_api_handler.module_api_name
|
46
|
+
return_json = is_record_request(request_instance, class_detail, instance_number, member_json_details)
|
47
|
+
@common_api_handler.module_api_name = module_api_name
|
48
|
+
return_json
|
49
|
+
else
|
50
|
+
is_not_record_request(request_instance, class_detail, instance_number, member_json_details)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
def is_not_record_request(request_instance, class_detail, instance_number, class_member_details = nil)
|
55
|
+
lookup = false
|
56
|
+
skip_mandatory = false
|
57
|
+
class_member_name = nil
|
58
|
+
unless class_member_details.nil?
|
59
|
+
lookup = (class_member_details.key? Constants::LOOKUP) ? class_member_details[Constants::LOOKUP] : false
|
60
|
+
skip_mandatory = (class_member_details.key? Constants::SKIP_MANDATORY) ? class_member_details[Constants::SKIP_MANDATORY] : false
|
61
|
+
class_member_name = build_name(class_member_details[Constants::NAME])
|
62
|
+
end
|
63
|
+
|
64
|
+
request_json = {}
|
65
|
+
required_keys = {}
|
66
|
+
primary_keys = {}
|
67
|
+
required_in_update_keys = {}
|
68
|
+
|
69
|
+
class_detail.each_key do |member_name|
|
70
|
+
member_detail = class_detail[member_name]
|
71
|
+
|
72
|
+
if (member_detail.key?(Constants::READ_ONLY) && member_detail[Constants::READ_ONLY]) || (!member_detail.key? Constants::NAME)
|
73
|
+
next
|
74
|
+
end
|
75
|
+
|
76
|
+
key_name = member_detail[Constants::NAME]
|
77
|
+
begin
|
78
|
+
modified = request_instance.public_send(Constants::IS_KEY_MODIFIED, key_name)
|
79
|
+
rescue StandardError => e
|
80
|
+
raise SDKException.new(nil, Constants::EXCEPTION_IS_KEY_MODIFIED, nil, e)
|
81
|
+
end
|
82
|
+
|
83
|
+
if member_detail.key?(Constants::REQUIRED) && member_detail[Constants::REQUIRED]
|
84
|
+
required_keys[key_name]=1
|
85
|
+
end
|
86
|
+
|
87
|
+
if member_detail.key?(Constants::REQUIRED_IN_UPDATE) && member_detail[Constants::REQUIRED_IN_UPDATE]
|
88
|
+
required_in_update_keys[key_name]=1
|
89
|
+
end
|
90
|
+
|
91
|
+
if member_detail.key?(Constants::PRIMARY) && member_detail[Constants::PRIMARY] && (!member_detail.key?(Constants::REQUIRED_IN_UPDATE) || member_detail[Constants::REQUIRED])
|
92
|
+
primary_keys[key_name]=1
|
93
|
+
end
|
94
|
+
|
95
|
+
if !modified.nil? && (modified != 0)
|
96
|
+
field_value = request_instance.instance_variable_get(Constants::AT + member_name)
|
97
|
+
|
98
|
+
unless field_value.nil?
|
99
|
+
if value_checker(request_instance.class.name, member_name, member_detail, field_value, @unique_hash, instance_number) == true
|
100
|
+
require_relative '../record/file_details'
|
101
|
+
|
102
|
+
required_keys.delete(key_name)
|
103
|
+
|
104
|
+
primary_keys.delete(key_name)
|
105
|
+
|
106
|
+
required_in_update_keys.delete(key_name)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
if request_instance.is_a? Record::FileDetails
|
111
|
+
lower_case_key_name = key_name.downcase
|
112
|
+
if field_value.nil? || (field_value.is_a? (String) && field_value.downcase == "null")
|
113
|
+
request_json[lower_case_key_name] = nil
|
114
|
+
else
|
115
|
+
request_json[lower_case_key_name] = field_value
|
116
|
+
end
|
117
|
+
else
|
118
|
+
request_json[key_name] = set_data(member_detail, field_value)
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
if skip_mandatory || check_exception(class_member_name, request_instance, instance_number, lookup, required_keys, primary_keys, required_in_update_keys)
|
124
|
+
request_json
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
def is_record_request(record_instance, class_detail, instance_number, class_member_details = nil)
|
129
|
+
lookup = false
|
130
|
+
skip_mandatory = false
|
131
|
+
class_member_name = nil
|
132
|
+
unless class_member_details.nil?
|
133
|
+
lookup = (class_member_details.key? Constants::LOOKUP) ? class_member_details[Constants::LOOKUP] : false
|
134
|
+
skip_mandatory = (class_member_details.key? Constants::SKIP_MANDATORY) ? class_member_details[Constants::SKIP_MANDATORY] : false
|
135
|
+
class_member_name = (class_member_details.key? Constants::NAME) ? class_member_details[Constants::NAME] : nil
|
136
|
+
end
|
137
|
+
request_json = {}
|
138
|
+
module_detail = {}
|
139
|
+
module_api_name = @common_api_handler.module_api_name
|
140
|
+
|
141
|
+
if module_api_name.nil?
|
142
|
+
module_detail = class_detail
|
143
|
+
class_detail = Initializer.json_details[Constants::RECORD_NAMESPACE]
|
144
|
+
else
|
145
|
+
|
146
|
+
@common_api_handler.module_api_name = nil
|
147
|
+
# full_detail = Utility.search_json_details(module_api_name)
|
148
|
+
# module_detail = if full_detail.nil?
|
149
|
+
# get_module_detail_from_user_spec_json(module_api_name)
|
150
|
+
# else
|
151
|
+
# full_detail[Constants::MODULEDETAILS]
|
152
|
+
# end
|
153
|
+
|
154
|
+
module_detail = get_module_detail_from_user_spec_json(module_api_name)
|
155
|
+
end
|
156
|
+
|
157
|
+
if record_instance.class.superclass == 'Record'
|
158
|
+
end
|
159
|
+
|
160
|
+
key_values = record_instance.instance_variable_get(Constants::AT + Constants::KEY_VALUES)
|
161
|
+
key_modified = record_instance.instance_variable_get(Constants::AT + Constants::KEY_MODIFIED)
|
162
|
+
|
163
|
+
required_keys = {}
|
164
|
+
primary_keys = {}
|
165
|
+
unless skip_mandatory
|
166
|
+
module_detail.each_key do |key_name|
|
167
|
+
key_detail = module_detail[key_name]
|
168
|
+
name = key_detail[Constants::NAME]
|
169
|
+
if key_detail.key?(Constants::REQUIRED) && key_detail[Constants::REQUIRED]
|
170
|
+
required_keys[name]=1
|
171
|
+
end
|
172
|
+
if key_detail.key?(Constants::PRIMARY) && key_detail[Constants::PRIMARY]
|
173
|
+
primary_keys[name]=1
|
174
|
+
end
|
175
|
+
end
|
176
|
+
class_detail.each_key do |key_name|
|
177
|
+
key_detail = class_detail[key_name]
|
178
|
+
name = key_detail[Constants::NAME]
|
179
|
+
if key_detail.key?(Constants::REQUIRED) && key_detail[Constants::REQUIRED]
|
180
|
+
required_keys[name]=1
|
181
|
+
end
|
182
|
+
if key_detail.key?(Constants::PRIMARY) && key_detail[Constants::PRIMARY]
|
183
|
+
primary_keys[name]=1
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
key_modified.each_key do |key_name|
|
189
|
+
next if key_modified[key_name] != 1
|
190
|
+
|
191
|
+
key_detail = {}
|
192
|
+
key_value = key_values[key_name]
|
193
|
+
json_value = nil
|
194
|
+
member_name = build_name(key_name)
|
195
|
+
custom_handling = false
|
196
|
+
|
197
|
+
if !module_detail.empty? && (module_detail.key?(member_name) || module_detail.key?(key_name))
|
198
|
+
|
199
|
+
key_detail = if module_detail.key? key_name
|
200
|
+
module_detail[key_name]
|
201
|
+
else
|
202
|
+
module_detail[member_name]
|
203
|
+
end
|
204
|
+
|
205
|
+
elsif class_detail.key? member_name
|
206
|
+
key_detail = class_detail[member_name]
|
207
|
+
else
|
208
|
+
custom_handling = true
|
209
|
+
end
|
210
|
+
|
211
|
+
if !key_value.nil?
|
212
|
+
if !key_detail.empty?
|
213
|
+
if (key_detail.key?(Constants::READ_ONLY) && key_detail[Constants::READ_ONLY]) || !(key_detail.key? Constants::NAME)
|
214
|
+
next
|
215
|
+
end
|
216
|
+
if value_checker(record_instance.class.name, member_name, key_detail, key_value, @unique_hash, instance_number) == true
|
217
|
+
json_value = set_data(key_detail, key_value)
|
218
|
+
end
|
219
|
+
else
|
220
|
+
if custom_handling && !key_value.is_a?(Array) && !key_value.is_a?(Hash) && !key_value.is_a?(Choice)
|
221
|
+
key_value_class_name = Util::Utility.path_to_package(key_value.class.name)
|
222
|
+
if Constants::BOOLEAN_CLASSES.include?(key_value_class_name)
|
223
|
+
key_detail[Constants::TYPE] = Constants::BOOLEAN
|
224
|
+
json_value = set_data(key_detail, key_value)
|
225
|
+
elsif Constants::PRIMITIVE_TYPES.include?(key_value_class_name)
|
226
|
+
key_detail[Constants::TYPE] = key_value.class.name
|
227
|
+
json_value = set_data(key_detail, key_value)
|
228
|
+
elsif Initializer.json_details.include?(key_value_class_name)
|
229
|
+
key_detail[Constants::STRUCTURE_NAME] = key_value_class_name
|
230
|
+
key_detail[Constants::NAME] = key_name
|
231
|
+
key_detail[Constants::TYPE] = key_value_class_name
|
232
|
+
json_value = set_data(key_detail, key_value)
|
233
|
+
end
|
234
|
+
else
|
235
|
+
if custom_handling && key_value.is_a?(Array)
|
236
|
+
key_value_class_name = Util::Utility.path_to_package(key_value[0].class.name)
|
237
|
+
if Initializer.json_details.include?(key_value_class_name)
|
238
|
+
key_detail[Constants::STRUCTURE_NAME] = key_value_class_name
|
239
|
+
key_detail[Constants::NAME] = key_name
|
240
|
+
key_detail[Constants::TYPE] = key_value_class_name
|
241
|
+
json_value = set_json_array(key_value, key_detail)
|
242
|
+
else
|
243
|
+
json_value = redirector_for_object_to_json(key_value)
|
244
|
+
end
|
245
|
+
else
|
246
|
+
json_value = redirector_for_object_to_json(key_value)
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
250
|
+
else
|
251
|
+
json_value = nil
|
252
|
+
end
|
253
|
+
unless key_value.nil?
|
254
|
+
required_keys.delete(key_name)
|
255
|
+
primary_keys.delete(key_name)
|
256
|
+
end
|
257
|
+
request_json[key_name] = json_value
|
258
|
+
end
|
259
|
+
if skip_mandatory || check_exception(class_member_name, record_instance, instance_number, lookup, required_keys, primary_keys, [])
|
260
|
+
request_json
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
def check_exception(class_member_name, request_instance, instance_number, lookup, required_keys, primary_keys, required_in_update_keys = [])
|
265
|
+
if required_in_update_keys.size.positive? && (@common_api_handler.category_method.downcase == Constants::REQUEST_CATEGORY_UPDATE.downcase)
|
266
|
+
error = {}
|
267
|
+
error[Constants::ERROR_HASH_FIELD] = class_member_name
|
268
|
+
error[Constants::TYPE] = request_instance.class.name
|
269
|
+
error[Constants::KEYS] = required_in_update_keys.keys
|
270
|
+
error[Constants::INSTANCE_NUMBER] = instance_number
|
271
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::MANDATORY_KEY_ERROR, error, nil)
|
272
|
+
end
|
273
|
+
|
274
|
+
if !@common_api_handler.mandatory_checker.nil? && @common_api_handler.mandatory_checker
|
275
|
+
|
276
|
+
if @common_api_handler.category_method.downcase == Constants::REQUEST_CATEGORY_CREATE.downcase
|
277
|
+
|
278
|
+
if lookup
|
279
|
+
unless primary_keys.empty?
|
280
|
+
error = {}
|
281
|
+
error[Constants::ERROR_HASH_FIELD] = class_member_name
|
282
|
+
error[Constants::TYPE] = request_instance.class.name
|
283
|
+
error[Constants::KEYS] = primary_keys.keys
|
284
|
+
error[Constants::INSTANCE_NUMBER] = instance_number
|
285
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::PRIMARY_KEY_ERROR, error, nil)
|
286
|
+
end
|
287
|
+
elsif !required_keys.empty?
|
288
|
+
error = {}
|
289
|
+
error[Constants::ERROR_HASH_FIELD] = class_member_name
|
290
|
+
error[Constants::TYPE] = request_instance.class.name
|
291
|
+
error[Constants::KEYS] = required_keys.keys
|
292
|
+
error[Constants::INSTANCE_NUMBER] = instance_number
|
293
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::MANDATORY_KEY_ERROR, error, nil)
|
294
|
+
end
|
295
|
+
|
296
|
+
elsif @common_api_handler.category_method.downcase == Constants::REQUEST_CATEGORY_UPDATE.downcase && !primary_keys.empty?
|
297
|
+
|
298
|
+
error = {}
|
299
|
+
error[Constants::ERROR_HASH_FIELD] = class_member_name
|
300
|
+
error[Constants::TYPE] = request_instance.class.name
|
301
|
+
error[Constants::KEYS] = primary_keys.keys
|
302
|
+
error[Constants::INSTANCE_NUMBER] = instance_number
|
303
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::PRIMARY_KEY_ERROR, error, nil)
|
304
|
+
end
|
305
|
+
|
306
|
+
elsif lookup && (@common_api_handler.category_method.downcase == Constants::REQUEST_CATEGORY_UPDATE.downcase) && !primary_keys.empty?
|
307
|
+
error = {}
|
308
|
+
error[Constants::ERROR_HASH_FIELD] = class_member_name
|
309
|
+
error[Constants::TYPE] = request_instance.class.name
|
310
|
+
error[Constants::KEYS] = primary_keys.keys
|
311
|
+
error[Constants::INSTANCE_NUMBER] = instance_number
|
312
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::PRIMARY_KEY_ERROR, error, nil)
|
313
|
+
end
|
314
|
+
true
|
315
|
+
end
|
316
|
+
|
317
|
+
def set_data(member_detail, field_value)
|
318
|
+
unless field_value.nil?
|
319
|
+
type = member_detail[Constants::TYPE]
|
320
|
+
|
321
|
+
if type.downcase == Constants::LIST_NAMESPACE.downcase
|
322
|
+
return set_json_array(field_value, member_detail)
|
323
|
+
elsif type.downcase == Constants::MAP_NAMESPACE.downcase
|
324
|
+
return set_json_object(field_value, member_detail)
|
325
|
+
elsif (type == Constants::CHOICE_NAMESPACE) || (member_detail.key?(Constants::STRUCTURE_NAME) && (member_detail[Constants::STRUCTURE_NAME] == Constants::CHOICE_NAMESPACE))
|
326
|
+
return field_value.value
|
327
|
+
elsif member_detail.key?(Constants::STRUCTURE_NAME) && member_detail.key?(Constants::MODULE)
|
328
|
+
return is_record_request(field_value, get_module_detail_from_user_spec_json(member_detail[Constants::MODULE]), nil, member_detail)
|
329
|
+
elsif member_detail.key? Constants::STRUCTURE_NAME
|
330
|
+
return form_request(field_value, member_detail[Constants::STRUCTURE_NAME], nil, member_detail)
|
331
|
+
else
|
332
|
+
return DataTypeConverter.post_convert(field_value, type)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
336
|
+
nil
|
337
|
+
end
|
338
|
+
|
339
|
+
def set_json_object(field_value, member_detail)
|
340
|
+
json_object = {}
|
341
|
+
request_object = field_value
|
342
|
+
|
343
|
+
unless request_object.empty?
|
344
|
+
|
345
|
+
if member_detail.nil? || (!member_detail.nil? && !member_detail.key?(Constants::KEYS))
|
346
|
+
|
347
|
+
request_object.each_pair do |key, value|
|
348
|
+
json_object[key] = redirector_for_object_to_json(value)
|
349
|
+
end
|
350
|
+
elsif member_detail.key? Constants::KEYS
|
351
|
+
|
352
|
+
keys_detail = member_detail[Constants::KEYS]
|
353
|
+
|
354
|
+
keys_detail.each do |key_detail|
|
355
|
+
key_value = nil
|
356
|
+
key_name = key_detail[Constants::NAME]
|
357
|
+
|
358
|
+
if request_object.key?(key_name) && !request_object[key_name].nil?
|
359
|
+
key_value = set_data(key_detail, key_value)
|
360
|
+
json_object[key_name] = key_value
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
367
|
+
json_object
|
368
|
+
end
|
369
|
+
|
370
|
+
def set_json_array(field_value, member_detail)
|
371
|
+
json_array = []
|
372
|
+
request_objects = field_value
|
373
|
+
|
374
|
+
unless request_objects.empty?
|
375
|
+
|
376
|
+
if member_detail.nil? || (member_detail != nil && !member_detail.key?(Constants::STRUCTURE_NAME))
|
377
|
+
|
378
|
+
request_objects.each do |request|
|
379
|
+
json_array.push(redirector_for_object_to_json(request))
|
380
|
+
end
|
381
|
+
else
|
382
|
+
pack = member_detail[Constants::STRUCTURE_NAME]
|
383
|
+
|
384
|
+
if pack.downcase == Constants::CHOICE_NAMESPACE.downcase
|
385
|
+
|
386
|
+
request_objects.each do |request|
|
387
|
+
json_array.push(request.value)
|
388
|
+
end
|
389
|
+
elsif member_detail.key?(Constants::MODULE) && !member_detail[Constants::MODULE].nil?
|
390
|
+
instance_count = 0
|
391
|
+
request_objects.each do |request|
|
392
|
+
json_array.push(is_record_request(request, get_module_detail_from_user_spec_json(member_detail[Constants::MODULE]), instance_count, member_detail))
|
393
|
+
instance_count += 1
|
394
|
+
end
|
395
|
+
else
|
396
|
+
instance_count = 0
|
397
|
+
|
398
|
+
request_objects.each do |request|
|
399
|
+
json_array.push(form_request(request, pack, instance_count, member_detail))
|
400
|
+
instance_count += 1
|
401
|
+
end
|
402
|
+
end
|
403
|
+
end
|
404
|
+
end
|
405
|
+
json_array
|
406
|
+
end
|
407
|
+
|
408
|
+
def redirector_for_object_to_json(request)
|
409
|
+
case request
|
410
|
+
when Hash
|
411
|
+
set_json_object(request, nil)
|
412
|
+
when Array
|
413
|
+
set_json_array(request, nil)
|
414
|
+
when Choice
|
415
|
+
request.value
|
416
|
+
else
|
417
|
+
request
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
def get_wrapped_response(response, pack)
|
422
|
+
if !response.body.nil? && !response.body.length.zero?
|
423
|
+
response_json = JSON.parse(response.body)
|
424
|
+
get_response(response_json, pack)
|
425
|
+
end
|
426
|
+
rescue StandardError => e
|
427
|
+
raise e
|
428
|
+
end
|
429
|
+
|
430
|
+
def get_response(response_json, pack)
|
431
|
+
require_relative '../initializer'
|
432
|
+
response_string = response_json.to_s
|
433
|
+
|
434
|
+
return nil if response_string.nil? || response_string.length.zero? || (response_string == 'null')
|
435
|
+
|
436
|
+
unless pack.nil?
|
437
|
+
|
438
|
+
if pack.to_s.include? Constants::DOUBLE_COLON
|
439
|
+
class_path_split = pack.to_s.split(Constants::DOUBLE_COLON)
|
440
|
+
module_name = Utility.classname_to_filename(class_path_split[1])
|
441
|
+
file_name = Utility.classname_to_filename(class_path_split[2])
|
442
|
+
else
|
443
|
+
class_path_split = pack.to_s.split(Constants::DOT)
|
444
|
+
module_name = class_path_split[-2]
|
445
|
+
file_name = Utility.classname_to_filename(class_path_split[-1])
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
require_relative '../' + module_name + '/' + file_name
|
450
|
+
pack = Utility.path_to_package(pack)
|
451
|
+
class_detail = Initializer.json_details[pack.to_s]
|
452
|
+
|
453
|
+
if class_detail.key?(Constants::INTERFACE) && !class_detail[Constants::INTERFACE].nil?
|
454
|
+
classes = class_detail[Constants::CLASSES]
|
455
|
+
instance = find_match(classes, response_json)
|
456
|
+
else
|
457
|
+
|
458
|
+
instance = if pack.is_a? String
|
459
|
+
|
460
|
+
if pack.include? Constants::DOUBLE_COLON
|
461
|
+
Object.const_get(pack).new
|
462
|
+
else
|
463
|
+
Object.const_get(Utility.class_to_load(pack)).new
|
464
|
+
end
|
465
|
+
else
|
466
|
+
Object.const_get(Utility.class_to_load(pack.to_s)).new
|
467
|
+
end
|
468
|
+
|
469
|
+
require_relative '../record/record'
|
470
|
+
|
471
|
+
if instance.is_a? Record::Record
|
472
|
+
module_api_name = @common_api_handler.module_api_name
|
473
|
+
instance = is_record_response(response_json, class_detail, pack)
|
474
|
+
@common_api_handler.module_api_name = module_api_name
|
475
|
+
else
|
476
|
+
instance = not_record_response(instance, response_json, class_detail)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
480
|
+
instance
|
481
|
+
end
|
482
|
+
|
483
|
+
def not_record_response(instance, response_json, class_detail)
|
484
|
+
class_detail.each_key do |member_name|
|
485
|
+
key_detail = class_detail[member_name]
|
486
|
+
key_name = (key_detail[Constants::NAME] if key_detail.key? Constants::NAME)
|
487
|
+
|
488
|
+
if !key_name.nil? && response_json.key?(key_name) && !response_json[key_name].nil?
|
489
|
+
key_data = response_json[key_name]
|
490
|
+
member_value = get_data(key_data, key_detail)
|
491
|
+
instance.instance_variable_set(Constants::AT + member_name, member_value)
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
495
|
+
instance
|
496
|
+
end
|
497
|
+
|
498
|
+
def is_record_response(response_json, class_detail, package_name)
|
499
|
+
record_instance = Object.const_get(Utility.class_to_load(package_name)).new
|
500
|
+
module_api_name = @common_api_handler.module_api_name
|
501
|
+
module_detail = {}
|
502
|
+
|
503
|
+
unless module_api_name.nil?
|
504
|
+
@common_api_handler.module_api_name = nil
|
505
|
+
|
506
|
+
module_detail = get_module_detail_from_user_spec_json(module_api_name)
|
507
|
+
end
|
508
|
+
|
509
|
+
module_detail = module_detail.merge(class_detail)
|
510
|
+
record_detail = Initializer.json_details[Constants::RECORD_NAMESPACE]
|
511
|
+
|
512
|
+
# superclass check
|
513
|
+
key_values = {}
|
514
|
+
|
515
|
+
response_json.each_key do |key_name|
|
516
|
+
member_name = build_name(key_name)
|
517
|
+
key_detail = {}
|
518
|
+
|
519
|
+
if !module_detail.empty? && (module_detail.key?(member_name) || module_detail.key?(key_name))
|
520
|
+
|
521
|
+
key_detail = if module_detail.key? key_name
|
522
|
+
module_detail[key_name]
|
523
|
+
else
|
524
|
+
module_detail[member_name]
|
525
|
+
end
|
526
|
+
elsif record_detail.key? member_name
|
527
|
+
key_detail = record_detail[member_name]
|
528
|
+
end
|
529
|
+
|
530
|
+
key_data = response_json[key_name]
|
531
|
+
key_value = nil
|
532
|
+
|
533
|
+
if !key_detail.empty?
|
534
|
+
key_name = key_detail[Constants::NAME]
|
535
|
+
key_value = get_data(key_data, key_detail)
|
536
|
+
else
|
537
|
+
key_value = redirector_for_json_to_object(key_data)
|
538
|
+
end
|
539
|
+
|
540
|
+
key_values[key_name] = key_value
|
541
|
+
end
|
542
|
+
|
543
|
+
record_instance.instance_variable_set(Constants::AT + Constants::KEY_VALUES, key_values)
|
544
|
+
record_instance
|
545
|
+
end
|
546
|
+
|
547
|
+
def get_data(key_data, member_detail)
|
548
|
+
member_value = nil
|
549
|
+
|
550
|
+
unless key_data.nil?
|
551
|
+
type = member_detail[Constants::TYPE]
|
552
|
+
|
553
|
+
if type.downcase == Constants::LIST_NAMESPACE.downcase
|
554
|
+
member_value = get_collections_data(key_data, member_detail)
|
555
|
+
elsif type.downcase == Constants::MAP_NAMESPACE.downcase
|
556
|
+
member_value = get_map_data(key_data, member_detail)
|
557
|
+
elsif (type.downcase == Constants::CHOICE_NAMESPACE.downcase) || (member_detail.key?(Constants::STRUCTURE_NAME) && (member_detail[Constants::STRUCTURE_NAME].downcase == Constants::CHOICE_NAMESPACE.downcase))
|
558
|
+
member_value = get_choice_instance(key_data)
|
559
|
+
elsif member_detail.key?(Constants::STRUCTURE_NAME) && member_detail.key?(Constants::MODULE)
|
560
|
+
member_value = is_record_response(key_data, get_module_detail_from_user_spec_json(member_detail[Constants::MODULE]), member_detail[Constants::STRUCTURE_NAME])
|
561
|
+
elsif member_detail.key? Constants::STRUCTURE_NAME
|
562
|
+
member_value = get_response(key_data, member_detail[Constants::STRUCTURE_NAME])
|
563
|
+
else
|
564
|
+
member_value = DataTypeConverter.pre_convert(key_data, type)
|
565
|
+
end
|
566
|
+
end
|
567
|
+
|
568
|
+
member_value
|
569
|
+
end
|
570
|
+
|
571
|
+
def get_map_data(response, member_detail)
|
572
|
+
map_instance = {}
|
573
|
+
unless response.empty?
|
574
|
+
|
575
|
+
if member_detail.nil? || (!member_detail.nil? && !member_detail.include?(Constants::KEYS))
|
576
|
+
response.each do |key, value|
|
577
|
+
map_instance[key] = redirector_for_json_to_object(value)
|
578
|
+
end
|
579
|
+
elsif member_detail.key? Constants::KEYS
|
580
|
+
keys_detail = member_detail[Constants::KEYS]
|
581
|
+
|
582
|
+
keys_detail.each do |key_detail|
|
583
|
+
key_name = key_detail[Constants::NAME]
|
584
|
+
|
585
|
+
if !response.is_a?(Array) && response.key?(key_name) && !response[key_name].nil?
|
586
|
+
key_value = get_data(response[key_name], key_detail)
|
587
|
+
map_instance[key_name] = key_value
|
588
|
+
end
|
589
|
+
end
|
590
|
+
end
|
591
|
+
end
|
592
|
+
map_instance
|
593
|
+
end
|
594
|
+
|
595
|
+
def get_collections_data(responses, member_detail)
|
596
|
+
values = []
|
597
|
+
|
598
|
+
unless responses.empty?
|
599
|
+
|
600
|
+
if member_detail.nil? || (!member_detail.nil? && !(member_detail.include? Constants::STRUCTURE_NAME))
|
601
|
+
|
602
|
+
responses.each do |response|
|
603
|
+
values.push(redirector_for_json_to_object(response))
|
604
|
+
end
|
605
|
+
else
|
606
|
+
pack = member_detail[Constants::STRUCTURE_NAME]
|
607
|
+
|
608
|
+
if pack.downcase == Constants::CHOICE_NAMESPACE.downcase
|
609
|
+
|
610
|
+
responses.each do |response|
|
611
|
+
values.push(get_choice_instance(response))
|
612
|
+
end
|
613
|
+
elsif member_detail.key?(Constants::MODULE) && !member_detail[Constants::MODULE].nil?
|
614
|
+
|
615
|
+
responses.each do |response|
|
616
|
+
values.push(is_record_response(response, get_module_detail_from_user_spec_json(member_detail[Constants::MODULE]), pack))
|
617
|
+
end
|
618
|
+
else
|
619
|
+
responses.each do |response|
|
620
|
+
values.push(get_response(response, pack))
|
621
|
+
end
|
622
|
+
end
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
values
|
627
|
+
end
|
628
|
+
|
629
|
+
def get_module_detail_from_user_spec_json(module_name)
|
630
|
+
|
631
|
+
record_field_details_path = Initializer.get_initializer.resources_path + File::Separator + Constants::FIELD_DETAILS_DIRECTORY + File::Separator + Converter.new(nil).get_record_json_file_path
|
632
|
+
record_field_details = JSON.parse(File.read(record_field_details_path))
|
633
|
+
module_detail = Utility.get_json_object(record_field_details, module_name.downcase)
|
634
|
+
|
635
|
+
if !module_detail.nil? && module_detail.length == 0
|
636
|
+
File.open(record_field_details_path, 'w') do |file|
|
637
|
+
record_field_details.delete[module_name.downcase]
|
638
|
+
file.write(JSON.generate(record_field_details))
|
639
|
+
end
|
640
|
+
end
|
641
|
+
module_detail
|
642
|
+
end
|
643
|
+
|
644
|
+
def redirector_for_json_to_object(key_data)
|
645
|
+
case key_data
|
646
|
+
when Hash
|
647
|
+
get_map_data(key_data, nil)
|
648
|
+
when Array
|
649
|
+
get_collections_data(key_data, nil)
|
650
|
+
when nil
|
651
|
+
nil
|
652
|
+
else
|
653
|
+
key_data
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
def find_match(classes, response_json)
|
658
|
+
pack = ''
|
659
|
+
ratio = 0
|
660
|
+
|
661
|
+
classes.each do |class_name|
|
662
|
+
match_ratio = find_ratio(class_name, response_json)
|
663
|
+
|
664
|
+
if match_ratio == 1.0
|
665
|
+
pack = class_name
|
666
|
+
ratio = 1
|
667
|
+
break
|
668
|
+
elsif match_ratio > ratio
|
669
|
+
ratio = match_ratio
|
670
|
+
pack = class_name.to_s
|
671
|
+
end
|
672
|
+
end
|
673
|
+
|
674
|
+
get_response(response_json, pack)
|
675
|
+
end
|
676
|
+
|
677
|
+
def find_ratio(class_name, response_json)
|
678
|
+
require_relative '../initializer'
|
679
|
+
|
680
|
+
class_json_details = Initializer.json_details[class_name]
|
681
|
+
total_points = class_json_details.keys.length
|
682
|
+
matches = 0
|
683
|
+
|
684
|
+
return 0 if total_points.zero?
|
685
|
+
|
686
|
+
class_json_details.each_key do |member_name|
|
687
|
+
member_json_details = class_json_details[member_name.to_s]
|
688
|
+
key_name = nil
|
689
|
+
key_name = member_json_details[Constants::NAME] if member_json_details.key? Constants::NAME
|
690
|
+
|
691
|
+
if !key_name.nil? && response_json.key?(key_name.to_s) && !response_json[key_name].nil?
|
692
|
+
key_data = response_json[key_name]
|
693
|
+
type = key_data.class.name
|
694
|
+
structure_name = nil
|
695
|
+
|
696
|
+
if member_json_details.key? Constants::STRUCTURE_NAME
|
697
|
+
structure_name = member_json_details[Constants::STRUCTURE_NAME]
|
698
|
+
end
|
699
|
+
|
700
|
+
if key_data.is_a? Integer
|
701
|
+
type = Constants::INTEGER
|
702
|
+
elsif key_data.is_a? String
|
703
|
+
type = Constants::STRING
|
704
|
+
elsif key_data.is_a? Float
|
705
|
+
type = Constants::FLOAT
|
706
|
+
elsif [true, false].include? key_data
|
707
|
+
type = Constants::BOOLEAN
|
708
|
+
elsif key_data.is_a? Hash
|
709
|
+
type = Constants::MAP_NAMESPACE
|
710
|
+
elsif key_data.is_a? Array
|
711
|
+
type = Constants::LIST_NAMESPACE
|
712
|
+
end
|
713
|
+
|
714
|
+
if type == member_json_details[Constants::TYPE]
|
715
|
+
matches += 1
|
716
|
+
elsif key_name.downcase == Constants::COUNT && type.downcase == Constants::INTEGER.downcase
|
717
|
+
matches += 1
|
718
|
+
elsif member_json_details[Constants::TYPE].downcase == Constants::CHOICE_NAMESPACE.downcase
|
719
|
+
member_json_details[Constants::VALUES].each do |value|
|
720
|
+
if value == key_data
|
721
|
+
matches += 1
|
722
|
+
break
|
723
|
+
end
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
if !structure_name.nil? && (structure_name == member_json_details[Constants::TYPE])
|
728
|
+
|
729
|
+
if member_json_details.key? Constants::VALUES
|
730
|
+
|
731
|
+
member_json_details[Constants::VALUES].each do |value|
|
732
|
+
if value == key_data
|
733
|
+
matches += 1
|
734
|
+
break
|
735
|
+
end
|
736
|
+
end
|
737
|
+
else
|
738
|
+
matches += 1
|
739
|
+
end
|
740
|
+
end
|
741
|
+
end
|
742
|
+
end
|
743
|
+
|
744
|
+
matches / total_points.to_f
|
745
|
+
end
|
746
|
+
|
747
|
+
def get_choice_instance(data)
|
748
|
+
class_path_split = Constants::CHOICE_NAMESPACE.split(Constants::DOT)
|
749
|
+
module_name = class_path_split[-2]
|
750
|
+
file_name = Utility.classname_to_filename(class_path_split[-1])
|
751
|
+
require_relative '../' + module_name + '/' + file_name
|
752
|
+
member_value = Object.const_get(Utility.class_to_load(Constants::CHOICE_NAMESPACE)).new(data)
|
753
|
+
member_value
|
754
|
+
end
|
755
|
+
|
756
|
+
def build_name(key_name)
|
757
|
+
sdk_name = ''
|
758
|
+
name_split = key_name.to_s.split('_')
|
759
|
+
sdk_name = name_split[0].to_s.downcase
|
760
|
+
index = 1
|
761
|
+
|
762
|
+
if name_split.length > 1
|
763
|
+
index.upto(name_split.length - 1) do |name_index|
|
764
|
+
if name_split[name_index].length > 1
|
765
|
+
sdk_name += '_' + (name_split[name_index]).to_s.downcase
|
766
|
+
end
|
767
|
+
end
|
768
|
+
end
|
769
|
+
|
770
|
+
sdk_name
|
771
|
+
end
|
772
|
+
end
|
773
|
+
end
|
774
|
+
end
|