ZOHOCRMSDK6_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/ZOHOCRMSDK6_0.rb +1302 -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/deal_record_configuration.rb +101 -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_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +123 -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/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 +121 -0
- data/src/com/zoho/crm/api/assignment_rules/user.rb +122 -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 +101 -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 +63 -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/response_wrapper.rb +65 -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 +330 -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/body_wrapper.rb +102 -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 +176 -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/module_details.rb +82 -0
- data/src/com/zoho/crm/api/bulk_read/query.rb +160 -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 +177 -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 +236 -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_operations.rb +90 -0
- data/src/com/zoho/crm/api/business_hours/features.rb +82 -0
- data/src/com/zoho/crm/api/business_hours/resources.rb +82 -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/business_hours/success_response.rb +123 -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 +63 -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 +163 -0
- data/src/com/zoho/crm/api/contact_roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/success_response.rb +123 -0
- data/src/com/zoho/crm/api/conversion_option/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/conversion_option/conversion_option_operations.rb +40 -0
- data/src/com/zoho/crm/api/conversion_option/conversion_options.rb +160 -0
- data/src/com/zoho/crm/api/conversion_option/field.rb +82 -0
- data/src/com/zoho/crm/api/conversion_option/preference_field_match.rb +82 -0
- data/src/com/zoho/crm/api/conversion_option/preference_field_matched_value.rb +101 -0
- data/src/com/zoho/crm/api/conversion_option/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/conversion_option/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/convert_lead/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/convert_lead/action_response.rb +12 -0
- data/src/com/zoho/crm/api/convert_lead/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/convert_lead/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/convert_lead/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/convert_lead/carry_over_tags.rb +101 -0
- data/src/com/zoho/crm/api/convert_lead/convert_lead_operations.rb +47 -0
- data/src/com/zoho/crm/api/convert_lead/lead_converter.rb +218 -0
- data/src/com/zoho/crm/api/convert_lead/success_response.rb +123 -0
- data/src/com/zoho/crm/api/coql/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/coql/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/coql/clause_details.rb +65 -0
- data/src/com/zoho/crm/api/coql/coql_operations.rb +36 -0
- data/src/com/zoho/crm/api/coql/details_wrapper.rb +12 -0
- data/src/com/zoho/crm/api/coql/parse_error_details.rb +103 -0
- data/src/com/zoho/crm/api/coql/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/coql/response_wrapper.rb +86 -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 +292 -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 +63 -0
- data/src/com/zoho/crm/api/currencies/currencies_operations.rb +158 -0
- data/src/com/zoho/crm/api/currencies/currency.rb +292 -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/response_wrapper.rb +65 -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 +63 -0
- data/src/com/zoho/crm/api/custom_views/criteria.rb +136 -0
- data/src/com/zoho/crm/api/custom_views/custom_views.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 +101 -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/response_wrapper.rb +84 -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/ca_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 +76 -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 +63 -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/response_wrapper.rb +84 -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/digest/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/digest/action_response.rb +12 -0
- data/src/com/zoho/crm/api/digest/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/digest/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/digest/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/digest/dependee.rb +82 -0
- data/src/com/zoho/crm/api/digest/digest.rb +101 -0
- data/src/com/zoho/crm/api/digest/digest_operations.rb +37 -0
- data/src/com/zoho/crm/api/digest/success_response.rb +123 -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/data.rb +63 -0
- data/src/com/zoho/crm/api/email_compose_meta/data_map.rb +139 -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/signature.rb +82 -0
- data/src/com/zoho/crm/api/email_compose_meta/user.rb +139 -0
- data/src/com/zoho/crm/api/email_drafts/action_response.rb +12 -0
- data/src/com/zoho/crm/api/email_drafts/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/email_drafts/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_drafts/attachments.rb +120 -0
- data/src/com/zoho/crm/api/email_drafts/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/email_drafts/email_drafts.rb +367 -0
- data/src/com/zoho/crm/api/email_drafts/inventory_details.rb +121 -0
- data/src/com/zoho/crm/api/email_drafts/inventory_template.rb +82 -0
- data/src/com/zoho/crm/api/email_drafts/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/email_drafts/schedule_details.rb +101 -0
- data/src/com/zoho/crm/api/email_drafts/success_response.rb +123 -0
- data/src/com/zoho/crm/api/email_drafts/template.rb +82 -0
- data/src/com/zoho/crm/api/email_drafts/to.rb +82 -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/criteria.rb +102 -0
- data/src/com/zoho/crm/api/email_related_records/email.rb +537 -0
- data/src/com/zoho/crm/api/email_related_records/email_related_records_operations.rb +94 -0
- data/src/com/zoho/crm/api/email_related_records/field.rb +63 -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 +101 -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 +177 -0
- data/src/com/zoho/crm/api/email_related_records/user_details.rb +82 -0
- data/src/com/zoho/crm/api/email_sharing_details/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_sharing_details/email_sharing_details_operations.rb +44 -0
- data/src/com/zoho/crm/api/email_sharing_details/email_sharings.rb +82 -0
- data/src/com/zoho/crm/api/email_sharing_details/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_sharing_details/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/email_sharing_details/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 +452 -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.rb +101 -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 +114 -0
- data/src/com/zoho/crm/api/entity_scores/info.rb +215 -0
- data/src/com/zoho/crm/api/entity_scores/module.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.rb +82 -0
- data/src/com/zoho/crm/api/exception/sdk_exception.rb +49 -0
- data/src/com/zoho/crm/api/features/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/features/component.rb +120 -0
- data/src/com/zoho/crm/api/features/detail.rb +82 -0
- data/src/com/zoho/crm/api/features/feature.rb +158 -0
- data/src/com/zoho/crm/api/features/features_operations.rb +93 -0
- data/src/com/zoho/crm/api/features/info.rb +120 -0
- data/src/com/zoho/crm/api/features/limit.rb +82 -0
- data/src/com/zoho/crm/api/features/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/features/response_wrapper.rb +84 -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 +63 -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 +181 -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/response_wrapper.rb +84 -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_handler.rb +12 -0
- data/src/com/zoho/crm/api/fields/action_response.rb +12 -0
- data/src/com/zoho/crm/api/fields/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/fields/api_exception.rb +127 -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 +63 -0
- data/src/com/zoho/crm/api/fields/convert_mapping.rb +101 -0
- data/src/com/zoho/crm/api/fields/criteria.rb +136 -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 +101 -0
- data/src/com/zoho/crm/api/fields/fields.rb +1506 -0
- data/src/com/zoho/crm/api/fields/fields_operations.rb +212 -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 +82 -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/response_wrapper.rb +65 -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/sharing_properties.rb +102 -0
- data/src/com/zoho/crm/api/fields/show_fields.rb +82 -0
- data/src/com/zoho/crm/api/fields/subform.rb +82 -0
- data/src/com/zoho/crm/api/fields/success_response.rb +123 -0
- data/src/com/zoho/crm/api/fields/textarea.rb +63 -0
- data/src/com/zoho/crm/api/fields/tooltip.rb +82 -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 +80 -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/find_and_merge/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/find_and_merge/action_response.rb +12 -0
- data/src/com/zoho/crm/api/find_and_merge/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/find_and_merge/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/find_and_merge/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/find_and_merge/data_fields.rb +82 -0
- data/src/com/zoho/crm/api/find_and_merge/find_and_merge_operations.rb +83 -0
- data/src/com/zoho/crm/api/find_and_merge/image_data.rb +63 -0
- data/src/com/zoho/crm/api/find_and_merge/master_record_fields.rb +82 -0
- data/src/com/zoho/crm/api/find_and_merge/merge.rb +120 -0
- data/src/com/zoho/crm/api/find_and_merge/merge_data.rb +82 -0
- data/src/com/zoho/crm/api/find_and_merge/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/find_and_merge/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/find_and_merge/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/global_picklists/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/action_response.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/global_picklists/api_exception.rb +137 -0
- data/src/com/zoho/crm/api/global_picklists/association.rb +101 -0
- data/src/com/zoho/crm/api/global_picklists/associations_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/associations_response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/global_picklists/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/global_picklists/field.rb +82 -0
- data/src/com/zoho/crm/api/global_picklists/global_picklists_operations.rb +313 -0
- data/src/com/zoho/crm/api/global_picklists/info.rb +120 -0
- data/src/com/zoho/crm/api/global_picklists/layout.rb +101 -0
- data/src/com/zoho/crm/api/global_picklists/module.rb +101 -0
- data/src/com/zoho/crm/api/global_picklists/pick_list_values.rb +140 -0
- data/src/com/zoho/crm/api/global_picklists/pick_list_values_association.rb +82 -0
- data/src/com/zoho/crm/api/global_picklists/pick_list_values_associations_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/pick_list_values_associations_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/global_picklists/picklist.rb +273 -0
- data/src/com/zoho/crm/api/global_picklists/replace_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/replace_action_response.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/replace_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/global_picklists/replace_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/global_picklists/replace_picklist_value.rb +82 -0
- data/src/com/zoho/crm/api/global_picklists/replace_picklist_values.rb +82 -0
- data/src/com/zoho/crm/api/global_picklists/replace_success_response.rb +123 -0
- data/src/com/zoho/crm/api/global_picklists/replaced_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/replaced_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/global_picklists/replaced_value.rb +82 -0
- data/src/com/zoho/crm/api/global_picklists/resource.rb +102 -0
- data/src/com/zoho/crm/api/global_picklists/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/global_picklists/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/global_picklists/success_response.rb +123 -0
- data/src/com/zoho/crm/api/header.rb +12 -0
- data/src/com/zoho/crm/api/header_map.rb +63 -0
- data/src/com/zoho/crm/api/hipaa_compliance/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/hipaa_compliance/action_response.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 +101 -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 +189 -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_convert/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/inventory_convert/convert_to.rb +82 -0
- data/src/com/zoho/crm/api/inventory_convert/inventory_converter.rb +63 -0
- data/src/com/zoho/crm/api/inventory_convert/module.rb +82 -0
- data/src/com/zoho/crm/api/inventory_convert/record.rb +82 -0
- data/src/com/zoho/crm/api/inventory_convert/success_response.rb +121 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/body_wrapper.rb +120 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/convert_to.rb +82 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/module.rb +82 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/related_modules.rb +82 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/success_response.rb +121 -0
- data/src/com/zoho/crm/api/inventory_mass_convert/user.rb +82 -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_templates.rb +333 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +75 -0
- data/src/com/zoho/crm/api/inventory_templates/module_map.rb +82 -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/inventory_templates/user.rb +82 -0
- data/src/com/zoho/crm/api/isc_signature/signature.rb +60 -0
- data/src/com/zoho/crm/api/layouts/action_response.rb +12 -0
- data/src/com/zoho/crm/api/layouts/action_wrapper.rb +63 -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/body_wrapper.rb +63 -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 +81 -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 +1609 -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/static_values.rb +101 -0
- data/src/com/zoho/crm/api/layouts/success_response.rb +123 -0
- data/src/com/zoho/crm/api/layouts/tooltip.rb +83 -0
- data/src/com/zoho/crm/api/mail_merge/action_handler.rb +12 -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 +65 -0
- data/src/com/zoho/crm/api/mail_merge/address.rb +82 -0
- data/src/com/zoho/crm/api/mail_merge/api_exception.rb +131 -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/download_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/mail_merge/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/mail_merge/mail_merge.rb +215 -0
- data/src/com/zoho/crm/api/mail_merge/mail_merge_operations.rb +101 -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_handler.rb +12 -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 +65 -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 +120 -0
- data/src/com/zoho/crm/api/mass_change_owner/criteria.rb +136 -0
- data/src/com/zoho/crm/api/mass_change_owner/field.rb +82 -0
- data/src/com/zoho/crm/api/mass_change_owner/mass_change_owner_operations.rb +73 -0
- data/src/com/zoho/crm/api/mass_change_owner/owner.rb +82 -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/body_wrapper.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/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 +120 -0
- data/src/com/zoho/crm/api/modules/module_field_lookup.rb +181 -0
- data/src/com/zoho/crm/api/modules/module_fields.rb +1531 -0
- data/src/com/zoho/crm/api/modules/modules.rb +1285 -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/static_subform_field.rb +82 -0
- data/src/com/zoho/crm/api/modules/static_subform_properties.rb +63 -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 +351 -0
- data/src/com/zoho/crm/api/notes/notes_operations.rb +233 -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/criteria.rb +136 -0
- data/src/com/zoho/crm/api/notifications/event.rb +158 -0
- data/src/com/zoho/crm/api/notifications/field.rb +82 -0
- data/src/com/zoho/crm/api/notifications/info.rb +120 -0
- data/src/com/zoho/crm/api/notifications/module.rb +82 -0
- data/src/com/zoho/crm/api/notifications/notification.rb +294 -0
- data/src/com/zoho/crm/api/notifications/notification_condition.rb +101 -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/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/org/api_exception.rb +182 -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 +862 -0
- data/src/com/zoho/crm/api/org/org_operations.rb +82 -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 +62 -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 +63 -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/json_details.rb +101 -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 +195 -0
- data/src/com/zoho/crm/api/pipeline/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/response_wrapper.rb +65 -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 +65 -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 +66 -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/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/portal_user_type/action_response.rb +12 -0
- data/src/com/zoho/crm/api/portal_user_type/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/portal_user_type/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/portal_user_type/body_wrapper.rb +63 -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 +215 -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 +177 -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 +144 -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/success_response.rb +123 -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/body_wrapper.rb +63 -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 +177 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +369 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +152 -0
- data/src/com/zoho/crm/api/profiles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/profiles/response_wrapper.rb +84 -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/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/comment.rb +120 -0
- data/src/com/zoho/crm/api/record/consent.rb +307 -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 +2870 -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 +311 -0
- data/src/com/zoho/crm/api/record/info.rb +253 -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/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 +1045 -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/time_range.rb +82 -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_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record_locking/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/record_locking/body_wrapper.rb +63 -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_lock.rb +257 -0
- data/src/com/zoho/crm/api/record_locking/record_locking_operations.rb +186 -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/record_locking_configuration/action_response.rb +12 -0
- data/src/com/zoho/crm/api/record_locking_configuration/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record_locking_configuration/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/record_locking_configuration/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record_locking_configuration/criteria.rb +136 -0
- data/src/com/zoho/crm/api/record_locking_configuration/dependee.rb +82 -0
- data/src/com/zoho/crm/api/record_locking_configuration/field.rb +82 -0
- data/src/com/zoho/crm/api/record_locking_configuration/lock_excluded_profile.rb +82 -0
- data/src/com/zoho/crm/api/record_locking_configuration/locking_rules.rb +120 -0
- data/src/com/zoho/crm/api/record_locking_configuration/record_lock.rb +351 -0
- data/src/com/zoho/crm/api/record_locking_configuration/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record_locking_configuration/restricted_custom_button.rb +82 -0
- data/src/com/zoho/crm/api/record_locking_configuration/success_response.rb +123 -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 +677 -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/expected_field.rb +82 -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 +332 -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/blocked_email_address.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/cc.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/data.rb +368 -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/in_reply_to.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/linked_module.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/linked_record.rb +101 -0
- data/src/com/zoho/crm/api/send_mail/owner.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 +125 -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 +84 -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/resources.rb +101 -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/success_wrapper.rb +65 -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 +89 -0
- data/src/com/zoho/crm/api/unblock_email/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/unblock_email/action_response.rb +12 -0
- data/src/com/zoho/crm/api/unblock_email/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/unblock_email/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/unblock_email/body_wrapper.rb +82 -0
- data/src/com/zoho/crm/api/unblock_email/success_response.rb +122 -0
- data/src/com/zoho/crm/api/unblock_email/unblock_email_operations.rb +71 -0
- data/src/com/zoho/crm/api/unsubscribe_links/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/unsubscribe_links/action_response.rb +12 -0
- data/src/com/zoho/crm/api/unsubscribe_links/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/unsubscribe_links/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/unsubscribe_links/associated_places.rb +101 -0
- data/src/com/zoho/crm/api/unsubscribe_links/association_details.rb +82 -0
- data/src/com/zoho/crm/api/unsubscribe_links/associations_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/unsubscribe_links/associations_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/unsubscribe_links/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/unsubscribe_links/detail.rb +63 -0
- data/src/com/zoho/crm/api/unsubscribe_links/module.rb +82 -0
- data/src/com/zoho/crm/api/unsubscribe_links/resource.rb +82 -0
- data/src/com/zoho/crm/api/unsubscribe_links/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/unsubscribe_links/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/unsubscribe_links/success_response.rb +123 -0
- data/src/com/zoho/crm/api/unsubscribe_links/unsubscribe_links.rb +330 -0
- data/src/com/zoho/crm/api/unsubscribe_links/unsubscribe_links_operations.rb +149 -0
- data/src/com/zoho/crm/api/unsubscribe_links/user.rb +82 -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/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/user_type_users/action_response.rb +12 -0
- data/src/com/zoho/crm/api/user_type_users/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/user_type_users/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/user_type_users/body_wrapper.rb +63 -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/status_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/user_type_users/status_action_response.rb +12 -0
- data/src/com/zoho/crm/api/user_type_users/status_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/user_type_users/success_response.rb +125 -0
- data/src/com/zoho/crm/api/user_type_users/user_type_users_operations.rb +164 -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/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 +209 -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_wrappe.rb +65 -0
- data/src/com/zoho/crm/api/users_territories/action_wrapper.rb +84 -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 +169 -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_id.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 +755 -0
- data/src/com/zoho/crm/api/util/converter.rb +297 -0
- data/src/com/zoho/crm/api/util/data_type_converter.rb +194 -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 +86 -0
- data/src/com/zoho/crm/api/util/json_converter.rb +772 -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 +1000 -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/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 +267 -0
- data/src/com/zoho/crm/api/webforms/abtesting.rb +120 -0
- data/src/com/zoho/crm/api/webforms/acknowledge_visitor.rb +82 -0
- data/src/com/zoho/crm/api/webforms/acknowledge_visitors.rb +101 -0
- data/src/com/zoho/crm/api/webforms/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/webforms/action_response.rb +12 -0
- data/src/com/zoho/crm/api/webforms/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/webforms/analytics_data.rb +139 -0
- data/src/com/zoho/crm/api/webforms/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/webforms/assignment_rule.rb +82 -0
- data/src/com/zoho/crm/api/webforms/auto_response_rule.rb +63 -0
- data/src/com/zoho/crm/api/webforms/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/webforms/button_attributes.rb +82 -0
- data/src/com/zoho/crm/api/webforms/fields.rb +348 -0
- data/src/com/zoho/crm/api/webforms/font_attributes.rb +101 -0
- data/src/com/zoho/crm/api/webforms/form_attributes.rb +139 -0
- data/src/com/zoho/crm/api/webforms/from_address.rb +82 -0
- data/src/com/zoho/crm/api/webforms/layout.rb +82 -0
- data/src/com/zoho/crm/api/webforms/module.rb +101 -0
- data/src/com/zoho/crm/api/webforms/owner.rb +82 -0
- data/src/com/zoho/crm/api/webforms/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/webforms/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/webforms/spam_controll.rb +82 -0
- data/src/com/zoho/crm/api/webforms/success_response.rb +123 -0
- data/src/com/zoho/crm/api/webforms/suggestion.rb +82 -0
- data/src/com/zoho/crm/api/webforms/tags.rb +82 -0
- data/src/com/zoho/crm/api/webforms/user.rb +82 -0
- data/src/com/zoho/crm/api/webforms/web_form.rb +804 -0
- data/src/com/zoho/crm/api/webforms/webforms_operations.rb +190 -0
- data/src/com/zoho/crm/api/wizards/actions.rb +176 -0
- data/src/com/zoho/crm/api/wizards/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/wizards/button.rb +326 -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 +101 -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/element.rb +82 -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/message.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 +158 -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 +1461 -0
@@ -0,0 +1,1000 @@
|
|
1
|
+
require 'json'
|
2
|
+
require 'monitor'
|
3
|
+
|
4
|
+
require_relative '../related_lists/related_lists_operations'
|
5
|
+
require_relative '../related_lists/related_list'
|
6
|
+
require_relative '../fields/fields_operations'
|
7
|
+
require_relative '../fields/fields'
|
8
|
+
require_relative '../fields/body_wrapper'
|
9
|
+
require_relative '../fields/api_exception'
|
10
|
+
require_relative '../modules/modules'
|
11
|
+
require_relative '../modules/modules_operations'
|
12
|
+
require_relative 'constants'
|
13
|
+
require_relative '../exception/sdk_exception'
|
14
|
+
require_relative '../../../api/logger/sdk_logger'
|
15
|
+
|
16
|
+
module ZOHOCRMSDK
|
17
|
+
module Util
|
18
|
+
# This class handles module field details.
|
19
|
+
class Utility
|
20
|
+
@@sync_lock = Monitor.new
|
21
|
+
|
22
|
+
@@apitype_vs_datatype = {}
|
23
|
+
|
24
|
+
@@apitype_vs_structurename = {}
|
25
|
+
|
26
|
+
@@new_file = false
|
27
|
+
|
28
|
+
@@get_modified_modules = false
|
29
|
+
|
30
|
+
@@api_supported_module = {}
|
31
|
+
|
32
|
+
@@module_api_name = nil
|
33
|
+
|
34
|
+
@@force_refresh = false
|
35
|
+
def self.set_handler_api_path(module_api_name, handler_instance)
|
36
|
+
if handler_instance.nil?
|
37
|
+
return
|
38
|
+
end
|
39
|
+
api_path = handler_instance.api_path
|
40
|
+
if api_path.downcase.include? module_api_name.downcase
|
41
|
+
api_path_splits = api_path.split('/')
|
42
|
+
i = 0
|
43
|
+
api_path_splits.each do |api_path_split|
|
44
|
+
split_lower = api_path_split.downcase
|
45
|
+
if split_lower == module_api_name.downcase
|
46
|
+
api_path_splits[i] = module_api_name
|
47
|
+
elsif (Constants::DEFAULT_MODULENAME_VS_APINAME.key? split_lower) && (!Constants::DEFAULT_MODULENAME_VS_APINAME[split_lower].nil?)
|
48
|
+
api_path_splits[i] = Constants::DEFAULT_MODULENAME_VS_APINAME[split_lower]
|
49
|
+
end
|
50
|
+
api_path = api_path_splits.join("/")
|
51
|
+
handler_instance.api_path = api_path
|
52
|
+
i += 1
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.file_exists_flow(module_api_name, record_field_details_path, last_modified_time)
|
58
|
+
@@sync_lock.synchronize do
|
59
|
+
initializer = Initializer.get_initializer
|
60
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
61
|
+
last_modified_time_exists = false
|
62
|
+
if record_field_details_json.key?(Constants::FIELDS_LAST_MODIFIED_TIME) && !record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME].nil?
|
63
|
+
if get_current_time_in_millis - record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] > 3_600_000
|
64
|
+
last_modified_time_exists = true
|
65
|
+
end
|
66
|
+
end
|
67
|
+
if !record_field_details_json.key?(Constants::FIELDS_LAST_MODIFIED_TIME) || @@force_refresh
|
68
|
+
last_modified_time_exists = true
|
69
|
+
end
|
70
|
+
|
71
|
+
if initializer.sdk_config.auto_refresh_fields && !@@new_file && !@@get_modified_modules && last_modified_time_exists
|
72
|
+
@@get_modified_modules = true
|
73
|
+
last_modified_time = (record_field_details_json.key? Constants::FIELDS_LAST_MODIFIED_TIME) ? record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] : nil
|
74
|
+
modify_fields(record_field_details_path, last_modified_time)
|
75
|
+
@@get_modified_modules = false
|
76
|
+
elsif !initializer.sdk_config.auto_refresh_fields && @@force_refresh && !@@get_modified_modules
|
77
|
+
@@get_modified_modules = true
|
78
|
+
modify_fields(record_field_details_path, last_modified_time)
|
79
|
+
@@get_modified_modules = false
|
80
|
+
end
|
81
|
+
|
82
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
83
|
+
|
84
|
+
return if module_api_name.nil? || (record_field_details_json.key?(module_api_name.downcase) && !record_field_details_json[module_api_name.downcase].nil?)
|
85
|
+
|
86
|
+
fill_data_type
|
87
|
+
|
88
|
+
record_field_details_json[module_api_name.downcase] = {}
|
89
|
+
|
90
|
+
File.open(record_field_details_path, 'w') do |f|
|
91
|
+
f.write(record_field_details_json.to_json)
|
92
|
+
end
|
93
|
+
field_details = get_fields_details(module_api_name)
|
94
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
95
|
+
|
96
|
+
record_field_details_json[module_api_name.downcase] = field_details
|
97
|
+
|
98
|
+
File.open(record_field_details_path, 'w') do |f|
|
99
|
+
f.write(record_field_details_json.to_json)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
def self.get_fields(module_api_name, handler_instance=nil)
|
105
|
+
@@sync_lock.synchronize do
|
106
|
+
if module_api_name.include? ','
|
107
|
+
split_names = module_api_name.split(',')
|
108
|
+
split_names.each do |name|
|
109
|
+
@@module_api_name = name
|
110
|
+
get_fields_info(name, handler_instance)
|
111
|
+
end
|
112
|
+
else
|
113
|
+
@@module_api_name = module_api_name
|
114
|
+
get_fields_info(module_api_name,handler_instance)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
def self.write_to_file(file_path, file_contents)
|
120
|
+
File.open(file_path, 'w') do |f|
|
121
|
+
f.write(file_contents.to_json)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
def self.get_fields_info(module_api_name, handler_instance=nil)
|
126
|
+
require_relative '../initializer'
|
127
|
+
initializer = Initializer.get_initializer
|
128
|
+
record_field_details_path = nil
|
129
|
+
last_modified_time = nil
|
130
|
+
|
131
|
+
@@sync_lock.synchronize do
|
132
|
+
begin
|
133
|
+
# return if !module_api_name.nil? && !search_json_details(module_api_name).nil?
|
134
|
+
|
135
|
+
resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
|
136
|
+
|
137
|
+
Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
|
138
|
+
record_field_details_path = get_record_json_file_path
|
139
|
+
unless module_api_name.nil?
|
140
|
+
module_api_name = verify_module_api_name(module_api_name)
|
141
|
+
set_handler_api_path(module_api_name, handler_instance)
|
142
|
+
|
143
|
+
return if !handler_instance.nil? && handler_instance.module_api_name.nil? && (!Constants::SKIP_MODULES.include? module_api_name.downcase)
|
144
|
+
end
|
145
|
+
if File.exist? record_field_details_path
|
146
|
+
file_exists_flow(module_api_name, record_field_details_path, last_modified_time)
|
147
|
+
elsif initializer.sdk_config.auto_refresh_fields
|
148
|
+
@@new_file = true
|
149
|
+
fill_data_type
|
150
|
+
@@api_supported_module = @@api_supported_module.length == 0 ? get_modules(nil) : @@api_supported_module
|
151
|
+
|
152
|
+
record_field_details_json = {}
|
153
|
+
|
154
|
+
if File.exists? record_field_details_path
|
155
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
156
|
+
end
|
157
|
+
|
158
|
+
record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = get_current_time_in_millis
|
159
|
+
|
160
|
+
if @@api_supported_module.length > 0
|
161
|
+
@@api_supported_module.each_key do |module_name|
|
162
|
+
unless record_field_details_json.key? module_name.downcase
|
163
|
+
record_field_details_json[module_name.downcase] = {}
|
164
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
165
|
+
field_details = get_fields_details( @@api_supported_module[module_name][Constants::API_NAME])
|
166
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
167
|
+
record_field_details_json[module_name.downcase] = field_details
|
168
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
@@new_file = false
|
173
|
+
elsif @@force_refresh && !@@get_modified_modules
|
174
|
+
@@get_modified_modules = true
|
175
|
+
record_field_details_json = {}
|
176
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
177
|
+
modify_fields(record_field_details_path, last_modified_time)
|
178
|
+
@@get_modified_modules = false
|
179
|
+
else
|
180
|
+
fill_data_type
|
181
|
+
|
182
|
+
record_field_details_json = { module_api_name.downcase => {} }
|
183
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
184
|
+
field_details = get_fields_details(module_api_name)
|
185
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
186
|
+
record_field_details_json[module_api_name.downcase] = field_details
|
187
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
188
|
+
end
|
189
|
+
rescue StandardError => e
|
190
|
+
if !record_field_details_path.nil? && File.exist?(record_field_details_path)
|
191
|
+
begin
|
192
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
193
|
+
if !module_api_name.nil? && record_field_details_json.key?(module_api_name.downcase)
|
194
|
+
record_field_details_json.delete(module_api_name.downcase)
|
195
|
+
end
|
196
|
+
if @@new_file
|
197
|
+
unless record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME].nil?
|
198
|
+
record_field_details_json.delete(Constants::FIELDS_LAST_MODIFIED_TIME)
|
199
|
+
end
|
200
|
+
@@new_file = false
|
201
|
+
end
|
202
|
+
if @@get_modified_modules || @@force_refresh
|
203
|
+
@@get_modified_modules = false
|
204
|
+
@@force_refresh = false
|
205
|
+
unless last_modified_time.nil?
|
206
|
+
record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = last_modified_time
|
207
|
+
end
|
208
|
+
end
|
209
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
210
|
+
rescue StandardError => e
|
211
|
+
exception = SDKException.new(nil, Constants::EXCEPTION, nil, e)
|
212
|
+
SDKLog::SDKLogger.severe(Constants::EXCEPTION, exception)
|
213
|
+
raise exception
|
214
|
+
end
|
215
|
+
end
|
216
|
+
ex = (e.class.to_s == 'SDKException') ? e : SDKException.new(nil, Constants::EXCEPTION, nil, e)
|
217
|
+
SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
|
218
|
+
raise ex
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
def self.modify_fields(record_field_details_path, modified_time)
|
224
|
+
modified_modules = get_modules(modified_time)
|
225
|
+
record_field_details_json = JSON.parse(File.open(record_field_details_path).read)
|
226
|
+
record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = get_current_time_in_millis
|
227
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
228
|
+
return unless modified_modules.any?
|
229
|
+
|
230
|
+
modified_modules.each_key do |module_api_name|
|
231
|
+
if record_field_details_json.key? module_api_name.downcase
|
232
|
+
delete_fields(record_field_details_json, module_api_name)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
237
|
+
|
238
|
+
modified_modules.each_key do |module_api_name|
|
239
|
+
module_data = modified_modules[module_api_name]
|
240
|
+
get_fields_info(module_data[Constants::API_NAME])
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.verify_module_api_name(module_api_name)
|
245
|
+
unless module_api_name.nil?
|
246
|
+
if (Constants::DEFAULT_MODULENAME_VS_APINAME.key? module_api_name.downcase) && (!Constants::DEFAULT_MODULENAME_VS_APINAME[module_api_name.downcase].nil?)
|
247
|
+
return Constants::DEFAULT_MODULENAME_VS_APINAME[module_api_name.downcase]
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
record_field_details_path = get_record_json_file_path
|
252
|
+
|
253
|
+
if File.exist? record_field_details_path
|
254
|
+
fields_json = JSON.parse(File.open(record_field_details_path).read)
|
255
|
+
if !fields_json.empty? && (fields_json.key? Constants::SDK_MODULE_METADATA) && (!module_api_name.nil? && (fields_json[Constants::SDK_MODULE_METADATA].key? module_api_name.downcase))
|
256
|
+
return fields_json[Constants::SDK_MODULE_METADATA][module_api_name.downcase][Constants::API_NAME]
|
257
|
+
end
|
258
|
+
end
|
259
|
+
return module_api_name
|
260
|
+
end
|
261
|
+
|
262
|
+
def self.delete_fields(record_field_details_json, module_api_name)
|
263
|
+
subform_modules = []
|
264
|
+
|
265
|
+
field_json = record_field_details_json[module_api_name.downcase]
|
266
|
+
field_json.each_key do |key|
|
267
|
+
if field_json[key].key?(Constants::SUBFORM) && field_json[key][Constants::SUBFORM]
|
268
|
+
if record_field_details_json.key? field_json[key][Constants::MODULE]
|
269
|
+
subform_modules.push(field_json[key][Constants::MODULE])
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
record_field_details_json.delete(module_api_name.downcase)
|
274
|
+
return unless subform_modules.any?
|
275
|
+
|
276
|
+
subform_modules.each do |subform_module|
|
277
|
+
delete_fields(record_field_details_json, subform_module)
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
def self.get_record_json_file_path()
|
282
|
+
Initializer.get_initializer.resources_path + "/" + Constants::FIELD_DETAILS_DIRECTORY + "/" + Converter.new(nil).get_record_json_file_path()
|
283
|
+
end
|
284
|
+
|
285
|
+
def self.get_related_lists(related_module_name, module_api_name, common_api_handler)
|
286
|
+
require_relative '../initializer'
|
287
|
+
|
288
|
+
initializer = Initializer.get_initializer
|
289
|
+
|
290
|
+
@@sync_lock.synchronize do
|
291
|
+
begin
|
292
|
+
is_new_data = false
|
293
|
+
key = module_api_name + Constants::UNDERSCORE + Constants::RELATED_LISTS
|
294
|
+
key = key.downcase
|
295
|
+
resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
|
296
|
+
Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
|
297
|
+
|
298
|
+
record_field_details_path = get_record_json_file_path
|
299
|
+
if !File.exist?(record_field_details_path) || (File.exist?(record_field_details_path) && !(JSON.parse(File.read(record_field_details_path)).key? key))
|
300
|
+
is_new_data = true
|
301
|
+
module_api_name = verify_module_api_name(module_api_name)
|
302
|
+
related_list_values = get_related_list_details(module_api_name)
|
303
|
+
if File.exist?(record_field_details_path)
|
304
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
305
|
+
else
|
306
|
+
record_field_details_json = {}
|
307
|
+
end
|
308
|
+
record_field_details_json[key] = related_list_values
|
309
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
310
|
+
end
|
311
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
312
|
+
module_related_list = record_field_details_json[key]
|
313
|
+
if !check_related_list_exists(related_module_name, module_related_list, common_api_handler) && !is_new_data
|
314
|
+
record_field_details_json.delete(key)
|
315
|
+
write_to_file(record_field_details_path, record_field_details_json)
|
316
|
+
get_related_lists(related_module_name, module_api_name, common_api_handler)
|
317
|
+
end
|
318
|
+
rescue SDKException => e
|
319
|
+
SDKLog::SDKLogger.severe(Constants::EXCEPTION, e)
|
320
|
+
raise e
|
321
|
+
rescue StandardError => e
|
322
|
+
ex = SDKException.new(nil, Constants::EXCEPTION, nil, e)
|
323
|
+
SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
|
324
|
+
raise ex
|
325
|
+
end
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
def self.get_fields_details(module_api_name)
|
330
|
+
require_relative '../fields/fields_operations'
|
331
|
+
fields_details = {}
|
332
|
+
param_instance = ParameterMap.new
|
333
|
+
param_instance.add(Fields::FieldsOperations::GetFieldsParam.module_1, module_api_name)
|
334
|
+
response = Fields::FieldsOperations.new.get_fields(param_instance)
|
335
|
+
unless response.nil?
|
336
|
+
|
337
|
+
return fields_details if response.status_code == Constants::RESPONSECODE_NO_CONTENT
|
338
|
+
|
339
|
+
if response.is_expected
|
340
|
+
data_object = response.data_object
|
341
|
+
|
342
|
+
if data_object.is_a? Fields::ResponseWrapper
|
343
|
+
fields = data_object.fields
|
344
|
+
|
345
|
+
fields.each do |field|
|
346
|
+
key_name = field.api_name
|
347
|
+
next if Constants::KEYS_TO_SKIP.include? key_name
|
348
|
+
|
349
|
+
field_detail = {}
|
350
|
+
set_data_type(field_detail, field, module_api_name)
|
351
|
+
fields_details[key_name] = field_detail
|
352
|
+
end
|
353
|
+
if Constants::INVENTORY_MODULES.include? module_api_name.downcase
|
354
|
+
field_detail = {}
|
355
|
+
field_detail[Constants::NAME] = Constants::LINE_TAX
|
356
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
357
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::LINE_TAX_NAMESPACE
|
358
|
+
fields_details[Constants::LINE_TAX] = field_detail
|
359
|
+
end
|
360
|
+
|
361
|
+
if module_api_name.downcase == Constants::NOTES.downcase
|
362
|
+
field_detail = {}
|
363
|
+
field_detail[Constants::NAME] = Constants::ATTACHMENTS
|
364
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
365
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::ATTACHMENTS_NAMESPACE
|
366
|
+
fields_details[Constants::ATTACHMENTS] = field_detail
|
367
|
+
end
|
368
|
+
|
369
|
+
elsif data_object.is_a? Fields::APIException
|
370
|
+
error_response = {}
|
371
|
+
error_response[Constants::CODE] = data_object.code.value
|
372
|
+
error_response[Constants::STATUS] = data_object.status.value
|
373
|
+
error_response[Constants::MESSAGE] = data_object.message
|
374
|
+
error_response[Constants::DETAILS] = data_object.details
|
375
|
+
exception = SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
376
|
+
if @@module_api_name == module_api_name.downcase
|
377
|
+
raise exception
|
378
|
+
end
|
379
|
+
SDKLog::SDKLogger.severe(Constants::API_EXCEPTION, exception)
|
380
|
+
end
|
381
|
+
else
|
382
|
+
error_response = {}
|
383
|
+
error_response[Constants::CODE] = response.status_code
|
384
|
+
raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
385
|
+
end
|
386
|
+
end
|
387
|
+
fields_details
|
388
|
+
end
|
389
|
+
|
390
|
+
def self.get_json_object(json, key)
|
391
|
+
json.each_key do |key_in_json|
|
392
|
+
return json[key_in_json] if key_in_json == key
|
393
|
+
end
|
394
|
+
nil
|
395
|
+
end
|
396
|
+
|
397
|
+
def self.fill_data_type
|
398
|
+
return unless @@apitype_vs_datatype.empty?
|
399
|
+
|
400
|
+
field_api_names_string = %w[autonumber textarea text website email phone mediumtext profileimage]
|
401
|
+
field_api_names_integer = %w[integer]
|
402
|
+
field_api_names_boolean = %w[boolean]
|
403
|
+
field_api_names_long = %w[bigint long]
|
404
|
+
field_api_names_double = %w[double percent lookup currency]
|
405
|
+
field_api_names_field_file = %w[fileupload]
|
406
|
+
field_api_names_datetime = %w[datetime event_reminder]
|
407
|
+
field_api_names_date = %w[date]
|
408
|
+
field_api_names_lookup = %w[lookup]
|
409
|
+
field_api_names_picklist = %w[picklist]
|
410
|
+
field_api_names_multiselect_picklist = %w[multiselectpicklist]
|
411
|
+
field_api_names_subform = %w[subform]
|
412
|
+
field_api_names_owner_lookup = %w[ownerlookup userlookup]
|
413
|
+
field_api_names_multiuser_lookup = %w[multiuserlookup]
|
414
|
+
field_api_names_multimodule_lookup = %w[multi_module_lookup]
|
415
|
+
field_api_names_task_remind_at = %w[ALARM]
|
416
|
+
field_api_names_recurring_activity = %w[RRULE]
|
417
|
+
field_api_names_reminder = %w[multireminder]
|
418
|
+
field_api_names_consent_look_up = %w[consent_lookup]
|
419
|
+
field_api_name_image_upload = %w[imageupload]
|
420
|
+
field_api_name_multiselect_lookup = %w[multiselectlookup]
|
421
|
+
field_api_name_line_tax = %w[linetax]
|
422
|
+
field_api_name_time_range = %w[time_range]
|
423
|
+
|
424
|
+
field_api_names_string.each do |field_api_name|
|
425
|
+
@@apitype_vs_datatype[field_api_name] = Constants::STRING
|
426
|
+
end
|
427
|
+
|
428
|
+
field_api_names_integer.each do |field_api_name|
|
429
|
+
@@apitype_vs_datatype[field_api_name] = Constants::INTEGER
|
430
|
+
end
|
431
|
+
|
432
|
+
field_api_names_boolean.each do |field_api_name|
|
433
|
+
@@apitype_vs_datatype[field_api_name] = Constants::BOOLEAN
|
434
|
+
end
|
435
|
+
|
436
|
+
field_api_names_double.each do |field_api_name|
|
437
|
+
@@apitype_vs_datatype[field_api_name] = Constants::DOUBLE
|
438
|
+
end
|
439
|
+
|
440
|
+
field_api_names_long.each do |field_api_name|
|
441
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LONG
|
442
|
+
end
|
443
|
+
|
444
|
+
field_api_names_field_file.each do |field_api_name|
|
445
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
446
|
+
@@apitype_vs_structurename[field_api_name] = Constants::FIELD_FILE_NAMESPACE
|
447
|
+
end
|
448
|
+
|
449
|
+
field_api_names_task_remind_at.each do |field_api_name|
|
450
|
+
@@apitype_vs_datatype[field_api_name] = Constants::REMINDAT_NAMESPACE
|
451
|
+
@@apitype_vs_structurename[field_api_name] = Constants::REMINDAT_NAMESPACE
|
452
|
+
end
|
453
|
+
|
454
|
+
field_api_names_recurring_activity.each do |field_api_name|
|
455
|
+
@@apitype_vs_datatype[field_api_name] = Constants::RECURRING_ACTIVITY_NAMESPACE
|
456
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECURRING_ACTIVITY_NAMESPACE
|
457
|
+
end
|
458
|
+
|
459
|
+
field_api_names_reminder.each do |field_api_name|
|
460
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
461
|
+
@@apitype_vs_structurename[field_api_name] = Constants::REMINDER_NAMESPACE
|
462
|
+
end
|
463
|
+
|
464
|
+
field_api_names_datetime.each do |field_api_name|
|
465
|
+
@@apitype_vs_datatype[field_api_name] = Constants::DATETIME_NAMESPACE
|
466
|
+
end
|
467
|
+
|
468
|
+
field_api_names_date.each do |field_api_name|
|
469
|
+
@@apitype_vs_datatype[field_api_name] = Constants::DATE_NAMESPACE
|
470
|
+
end
|
471
|
+
|
472
|
+
field_api_names_lookup.each do |field_api_name|
|
473
|
+
@@apitype_vs_datatype[field_api_name] = Constants::RECORD_NAMESPACE
|
474
|
+
|
475
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
|
476
|
+
end
|
477
|
+
|
478
|
+
field_api_names_owner_lookup.each do |field_api_name|
|
479
|
+
@@apitype_vs_datatype[field_api_name] = Constants::USER_NAMESPACE
|
480
|
+
|
481
|
+
@@apitype_vs_structurename[field_api_name] = Constants::USER_NAMESPACE
|
482
|
+
end
|
483
|
+
|
484
|
+
field_api_names_multiuser_lookup.each do |field_api_name|
|
485
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
486
|
+
|
487
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
|
488
|
+
end
|
489
|
+
|
490
|
+
field_api_names_multimodule_lookup.each do |field_api_name|
|
491
|
+
@@apitype_vs_datatype[field_api_name] = Constants::RECORD_NAMESPACE
|
492
|
+
|
493
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
|
494
|
+
end
|
495
|
+
|
496
|
+
field_api_names_picklist.each do |field_api_name|
|
497
|
+
@@apitype_vs_datatype[field_api_name] = Constants::CHOICE_NAMESPACE
|
498
|
+
end
|
499
|
+
|
500
|
+
field_api_names_multiselect_picklist.each do |field_api_name|
|
501
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
502
|
+
|
503
|
+
@@apitype_vs_structurename[field_api_name] = Constants::CHOICE_NAMESPACE
|
504
|
+
end
|
505
|
+
|
506
|
+
field_api_names_subform.each do |field_api_name|
|
507
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
508
|
+
|
509
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
|
510
|
+
end
|
511
|
+
|
512
|
+
field_api_names_consent_look_up.each do |field_api_name|
|
513
|
+
@@apitype_vs_datatype[field_api_name] = Constants::CONSENT_NAMESPACE
|
514
|
+
|
515
|
+
@@apitype_vs_structurename[field_api_name] = Constants::CONSENT_NAMESPACE
|
516
|
+
end
|
517
|
+
|
518
|
+
field_api_name_image_upload.each do |field_api_name|
|
519
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
520
|
+
|
521
|
+
@@apitype_vs_structurename[field_api_name] = Constants::IMAGEUPLOAD_NAMESPACE
|
522
|
+
end
|
523
|
+
|
524
|
+
field_api_name_multiselect_lookup.each do |field_api_name|
|
525
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
526
|
+
|
527
|
+
@@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
|
528
|
+
end
|
529
|
+
|
530
|
+
field_api_name_line_tax.each do |field_api_name|
|
531
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
532
|
+
|
533
|
+
@@apitype_vs_structurename[field_api_name] = Constants::LINE_TAX_NAMESPACE
|
534
|
+
end
|
535
|
+
field_api_name_time_range.each do |field_api_name|
|
536
|
+
@@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
|
537
|
+
@@apitype_vs_structurename[field_api_name] = Constants::TIME_RANGE_NAMESPACE
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
def self.set_data_type(field_detail, field_instance, module_api_name)
|
542
|
+
data_type = field_instance.data_type
|
543
|
+
|
544
|
+
key_name = field_instance.api_name
|
545
|
+
|
546
|
+
module_name = Modules::MinifiedModule.new
|
547
|
+
|
548
|
+
module_api_name = module_api_name.downcase
|
549
|
+
if !field_instance.system_mandatory.nil? && field_instance.system_mandatory && !((module_api_name == Constants::CALLS.downcase) && (key_name.downcase == Constants::CALL_DURATION.downcase))
|
550
|
+
field_detail[Constants::REQUIRED] = true
|
551
|
+
end
|
552
|
+
|
553
|
+
if (key_name.downcase == Constants::PRICING_DETAILS.downcase) && (module_api_name == Constants::PRICE_BOOKS.downcase)
|
554
|
+
field_detail[Constants::NAME] = key_name
|
555
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
556
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::PRICINGDETAILS
|
557
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
558
|
+
return
|
559
|
+
elsif (key_name.downcase == Constants::PARTICIPANT_API_NAME.downcase) && ((module_api_name == Constants::EVENTS.downcase) || (module_api_name == Constants::ACTIVITIES.downcase))
|
560
|
+
field_detail[Constants::NAME] = key_name
|
561
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
562
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::PARTICIPANTS
|
563
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
564
|
+
return
|
565
|
+
elsif (key_name.downcase == Constants::COMMENTS.downcase) && ((module_api_name == Constants::SOLUTIONS.downcase) || (module_api_name == Constants::CASES.downcase))
|
566
|
+
field_detail[Constants::NAME] = key_name
|
567
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
568
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::COMMENTS_NAMESPACE
|
569
|
+
field_detail[Constants::LOOKUP] = true
|
570
|
+
return
|
571
|
+
elsif key_name.downcase == Constants::LAYOUT.downcase
|
572
|
+
field_detail[Constants::NAME] = key_name
|
573
|
+
field_detail[Constants::TYPE] = Constants::LAYOUT_NAMESPACE
|
574
|
+
field_detail[Constants::LOOKUP] = true
|
575
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::LAYOUT_NAMESPACE
|
576
|
+
return
|
577
|
+
elsif (key_name.downcase == Constants::TERRITORIES.downcase || key_name.downcase == Constants::TERRITORY.downcase) && !field_instance.custom_field.nil? && !field_instance.custom_field
|
578
|
+
field_detail[Constants::NAME] = key_name
|
579
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
580
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::TERRITORY_NAMESPACE
|
581
|
+
field_detail[Constants::LOOKUP] = true
|
582
|
+
return
|
583
|
+
elsif key_name.downcase == Constants::PRODUCT_NAME.downcase && Constants::INVENTORY_MODULES_ITEMS.include?(module_api_name.downcase)
|
584
|
+
field_detail[Constants::NAME] = key_name
|
585
|
+
field_detail[Constants::TYPE] = Constants::LINEITEM_PRODUCT
|
586
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::LINEITEM_PRODUCT
|
587
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
588
|
+
return
|
589
|
+
elsif key_name.downcase == Constants::DISCOUNT.downcase && Constants::INVENTORY_MODULES_ITEMS.include?(module_api_name.downcase)
|
590
|
+
field_detail[Constants::NAME] = key_name
|
591
|
+
field_detail[Constants::TYPE] = Constants::STRING
|
592
|
+
return
|
593
|
+
elsif key_name.downcase == Constants::TAX.downcase && module_api_name.downcase() == Constants::PRODUCTS.downcase
|
594
|
+
field_detail[Constants::NAME] = key_name
|
595
|
+
field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
|
596
|
+
field_detail[Constants::STRUCTURE_NAME] = Constants::TAX_NAMESPACE
|
597
|
+
return
|
598
|
+
elsif @@apitype_vs_datatype.include? data_type
|
599
|
+
field_detail[Constants::TYPE] = @@apitype_vs_datatype[data_type]
|
600
|
+
elsif data_type == Constants::FORMULA.downcase
|
601
|
+
unless field_instance.formula.nil?
|
602
|
+
return_type = field_instance.formula.return_type
|
603
|
+
unless @@apitype_vs_datatype[return_type].nil?
|
604
|
+
field_detail[Constants::TYPE] = @@apitype_vs_datatype[return_type]
|
605
|
+
end
|
606
|
+
field_detail[Constants::READ_ONLY] = true
|
607
|
+
end
|
608
|
+
else
|
609
|
+
return
|
610
|
+
end
|
611
|
+
field_detail[Constants::LOOKUP] = true if data_type.downcase.include? Constants::LOOKUP
|
612
|
+
if (data_type.downcase.include? Constants::CONSENT_LOOKUP) || (data_type.downcase.include? Constants::OWNER_LOOKUP)
|
613
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
614
|
+
end
|
615
|
+
|
616
|
+
if data_type.downcase.include? Constants::MULTI_SELECT_LOOKUP
|
617
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
618
|
+
unless field_instance.multiselectlookup.nil?
|
619
|
+
unless field_instance.multiselectlookup.linking_module.nil?
|
620
|
+
linking_module = field_instance.multiselectlookup.linking_module
|
621
|
+
field_detail[Constants::MODULE] = linking_module.api_name
|
622
|
+
module_name = linking_module
|
623
|
+
end
|
624
|
+
end
|
625
|
+
field_detail[Constants::SUBFORM] = true
|
626
|
+
end
|
627
|
+
|
628
|
+
if data_type.downcase.include? Constants::MULTI_USER_LOOKUP
|
629
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
630
|
+
unless field_instance.multiuserlookup.nil?
|
631
|
+
unless field_instance.multiuserlookup.linking_module.nil?
|
632
|
+
linking_module = field_instance.multiuserlookup.linking_module
|
633
|
+
field_detail[Constants::MODULE] = linking_module.api_name
|
634
|
+
module_name = linking_module
|
635
|
+
end
|
636
|
+
end
|
637
|
+
field_detail[Constants::SUBFORM] = true
|
638
|
+
end
|
639
|
+
|
640
|
+
if data_type.downcase.include? Constants::MULTI_MODULE_LOOKUP
|
641
|
+
field_detail[Constants::SKIP_MANDATORY, true]
|
642
|
+
field_detail[Constants::SUBFORM, true]
|
643
|
+
end
|
644
|
+
|
645
|
+
if @@apitype_vs_structurename.include? data_type
|
646
|
+
field_detail[Constants::STRUCTURE_NAME] = @@apitype_vs_structurename[data_type]
|
647
|
+
end
|
648
|
+
|
649
|
+
if (data_type.downcase == Constants::PICKLIST.downcase) && !field_instance.pick_list_values.nil? && !field_instance.pick_list_values.empty?
|
650
|
+
values = []
|
651
|
+
|
652
|
+
field_instance.pick_list_values.each do |pick_list_value|
|
653
|
+
values.push(pick_list_value.display_value)
|
654
|
+
end
|
655
|
+
field_detail[Constants::PICKLIST] = true
|
656
|
+
field_detail[Constants::VALUES] = values
|
657
|
+
end
|
658
|
+
|
659
|
+
if data_type.downcase == Constants::SUBFORM.downcase
|
660
|
+
module_name.api_name = field_instance.associated_module.module
|
661
|
+
field_detail[Constants::SUBFORM] = true
|
662
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
663
|
+
field_detail[Constants::MODULE] = module_name.api_name
|
664
|
+
end
|
665
|
+
|
666
|
+
if data_type.downcase == Constants::LOOKUP.downcase && !field_instance.lookup.nil?
|
667
|
+
module_1 = field_instance.lookup.module
|
668
|
+
if !module_1.nil? && (module_1.api_name.downcase != Constants::SE_MODULE.downcase)
|
669
|
+
module_name.api_name = module_1.api_name
|
670
|
+
module_name.id = module_1.id
|
671
|
+
field_detail[Constants::MODULE] = module_1.api_name
|
672
|
+
if (module_1.api_name.downcase == Constants::ACCOUNTS.downcase) && !field_instance.custom_field
|
673
|
+
field_detail[Constants::SKIP_MANDATORY] = true
|
674
|
+
end
|
675
|
+
else
|
676
|
+
module_name = Modules::MinifiedModule.new
|
677
|
+
end
|
678
|
+
field_detail[Constants::LOOKUP] = true
|
679
|
+
end
|
680
|
+
if !module_name.nil? && !module_name.api_name.nil? && module_name.api_name.length > 0
|
681
|
+
get_fields_info(module_name.api_name, nil)
|
682
|
+
end
|
683
|
+
field_detail[Constants::NAME] = key_name
|
684
|
+
end
|
685
|
+
|
686
|
+
def self.get_modules(header)
|
687
|
+
api_names = {}
|
688
|
+
header_map = HeaderMap.new
|
689
|
+
unless header.nil?
|
690
|
+
header_value = Time.at(header.to_i / 1000).iso8601
|
691
|
+
header_map.add(Modules::ModulesOperations::GetModulesHeader.If_modified_since, DateTime.parse(header_value))
|
692
|
+
end
|
693
|
+
response = Modules::ModulesOperations.new.get_modules(header_map)
|
694
|
+
|
695
|
+
unless response.nil?
|
696
|
+
if [Constants::RESPONSECODE_NO_CONTENT, Constants::RESPONSECODE_NOT_MODIFIED].include? response.status_code
|
697
|
+
return api_names
|
698
|
+
end
|
699
|
+
|
700
|
+
if response.is_expected
|
701
|
+
response_object = response.data_object
|
702
|
+
if response_object.is_a? Modules::ResponseWrapper
|
703
|
+
modules = response_object.modules
|
704
|
+
modules.each do |module_ins|
|
705
|
+
if module_ins.api_supported
|
706
|
+
module_details = {}
|
707
|
+
module_details[Constants::API_NAME] = module_ins.api_name
|
708
|
+
module_details[Constants::GENERATED_TYPE] = module_ins.generated_type.value
|
709
|
+
api_names[module_ins.api_name.downcase] = module_details
|
710
|
+
end
|
711
|
+
end
|
712
|
+
elsif response_object.is_a? Modules::APIException
|
713
|
+
error_response = {}
|
714
|
+
error_response[Constants::CODE] = response_object.code.value
|
715
|
+
error_response[Constants::STATUS] = response_object.status.value
|
716
|
+
error_response[Constants::MESSAGE] = response_object.message
|
717
|
+
raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
718
|
+
end
|
719
|
+
end
|
720
|
+
end
|
721
|
+
if header.nil?
|
722
|
+
begin
|
723
|
+
initializer = Initializer.get_initializer
|
724
|
+
resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
|
725
|
+
Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
|
726
|
+
record_field_details_path = get_record_json_file_path()
|
727
|
+
write_module_meta_data(record_field_details_path, api_names)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
api_names
|
731
|
+
end
|
732
|
+
|
733
|
+
def self.check_related_list_exists(related_module_name, module_related_list_ja, common_api_handler)
|
734
|
+
(0..module_related_list_ja.length - 1).each do |i|
|
735
|
+
related_list_jo = module_related_list_ja[i]
|
736
|
+
if !related_list_jo[Constants::API_NAME].nil? && (related_list_jo[Constants::API_NAME].downcase == related_module_name.downcase)
|
737
|
+
if related_list_jo[Constants::HREF] == Constants::NULL_VALUE
|
738
|
+
raise SDKException.new(Constants::UNSUPPORTED_IN_API, common_api_handler.http_method + ' ' + common_api_handler.api_path + Constants::UNSUPPORTED_IN_API_MESSAGE)
|
739
|
+
end
|
740
|
+
|
741
|
+
if related_list_jo[Constants::MODULE] != Constants::NULL_VALUE
|
742
|
+
common_api_handler.module_api_name = related_list_jo[Constants::MODULE]
|
743
|
+
get_fields_info(related_list_jo[Constants::MODULE], common_api_handler)
|
744
|
+
end
|
745
|
+
return true
|
746
|
+
end
|
747
|
+
end
|
748
|
+
false
|
749
|
+
end
|
750
|
+
|
751
|
+
def self.verify_photo_support(module_api_name)
|
752
|
+
@@sync_lock.synchronize do
|
753
|
+
begin
|
754
|
+
module_api_name = verify_module_api_name(module_api_name)
|
755
|
+
if Constants::PHOTO_SUPPORTED_MODULES.include? module_api_name.downcase
|
756
|
+
return true
|
757
|
+
end
|
758
|
+
modules = get_module_names
|
759
|
+
|
760
|
+
if modules.key? module_api_name.downcase || !modules[module_api_name.downcase].nil?
|
761
|
+
module_meta_data = modules[module_api_name.downcase]
|
762
|
+
|
763
|
+
if module_meta_data.key? Constants::GENERATED_TYPE && module_meta_data[Constants::GENERATED_TYPE] != Constants::GENERATED_TYPE_CUSTOM
|
764
|
+
raise SDKException.new(Constants::UPLOAD_PHOTO_UNSUPPORTED_ERROR,Constants::UPLOAD_PHOTO_UNSUPPORTED_MESSAGE + module_api_name)
|
765
|
+
end
|
766
|
+
end
|
767
|
+
rescue SDKException => e
|
768
|
+
raise e
|
769
|
+
rescue StandardError => e
|
770
|
+
ex = SDKException.new(nil, Constants::EXCEPTION, nil, e)
|
771
|
+
SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
|
772
|
+
raise ex
|
773
|
+
end
|
774
|
+
return true
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
def self.get_module_names
|
779
|
+
module_data = {}
|
780
|
+
initializer = Initializer.get_initializer
|
781
|
+
resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
|
782
|
+
Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
|
783
|
+
|
784
|
+
record_field_details_path = get_record_json_file_path
|
785
|
+
|
786
|
+
call_get_modules = false
|
787
|
+
if File.exists? record_field_details_path
|
788
|
+
json = JSON.parse(File.read(record_field_details_path))
|
789
|
+
if !json.key? Constants::SDK_MODULE_METADATA
|
790
|
+
call_get_modules = true
|
791
|
+
elsif json[Constants::SDK_MODULE_METADATA].nil? || json[Constants::SDK_MODULE_METADATA].length == 0
|
792
|
+
call_get_modules = true
|
793
|
+
end
|
794
|
+
else
|
795
|
+
call_get_modules = true
|
796
|
+
end
|
797
|
+
if call_get_modules
|
798
|
+
module_data = get_modules(nil)
|
799
|
+
write_module_meta_data(record_field_details_path, module_data)
|
800
|
+
return module_data
|
801
|
+
end
|
802
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
803
|
+
module_data = record_field_details_json[Constants::SDK_MODULE_METADATA]
|
804
|
+
return module_data
|
805
|
+
end
|
806
|
+
|
807
|
+
def self.write_module_meta_data(record_field_details_path, module_data)
|
808
|
+
field_details_json = (File.exist? record_field_details_path) ? JSON.parse(File.read(record_field_details_path)):{}
|
809
|
+
field_details_json[Constants::SDK_MODULE_METADATA] = module_data
|
810
|
+
write_to_file(record_field_details_path, field_details_json)
|
811
|
+
end
|
812
|
+
|
813
|
+
def self.get_related_list_details(module_api_name)
|
814
|
+
param_instance = ParameterMap.new
|
815
|
+
param_instance.add(RelatedLists::RelatedListsOperations::GetRelatedListsParam.module_1, module_api_name)
|
816
|
+
rlo = RelatedLists::RelatedListsOperations.new(nil)
|
817
|
+
response = rlo.get_related_lists(param_instance)
|
818
|
+
related_lists_ja = []
|
819
|
+
unless response.nil?
|
820
|
+
return related_lists_ja if response.status_code == Constants::RESPONSECODE_NO_CONTENT
|
821
|
+
|
822
|
+
if response.is_expected
|
823
|
+
response_handler = response.data_object
|
824
|
+
if response_handler.is_a? RelatedLists::ResponseWrapper
|
825
|
+
response_wrapper = response_handler
|
826
|
+
related_lists = response_wrapper.related_lists
|
827
|
+
related_lists.each do |related_list|
|
828
|
+
related_list_detail = {}
|
829
|
+
related_list_detail[Constants::API_NAME] = related_list.api_name
|
830
|
+
related_list_detail[Constants::MODULE] = related_list.module.nil? ? Constants::NULL_VALUE : related_list.module
|
831
|
+
related_list_detail[Constants::NAME] = related_list.name
|
832
|
+
related_list_detail[Constants::HREF] = related_list.href.nil? ? Constants::NULL_VALUE : related_list.href
|
833
|
+
related_lists_ja.push(related_list_detail)
|
834
|
+
end
|
835
|
+
elsif response_handler.is_a? RelatedLists::APIException
|
836
|
+
exception = response_handler
|
837
|
+
error_response = {}
|
838
|
+
error_response[Constants::CODE] = exception.code.value
|
839
|
+
error_response[Constants::STATUS] = exception.status.value
|
840
|
+
error_response[Constants::MESSAGE] = exception.message
|
841
|
+
raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
842
|
+
end
|
843
|
+
else
|
844
|
+
error_response = {}
|
845
|
+
error_response[Constants::CODE] = response.status_code
|
846
|
+
raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
847
|
+
end
|
848
|
+
end
|
849
|
+
related_lists_ja
|
850
|
+
end
|
851
|
+
|
852
|
+
def self.get_current_time_in_millis
|
853
|
+
(Time.now.to_f * 1000).to_i
|
854
|
+
end
|
855
|
+
|
856
|
+
def self.refresh_modules
|
857
|
+
@@force_refresh = true
|
858
|
+
get_fields_info(nil)
|
859
|
+
@@force_refresh = false
|
860
|
+
end
|
861
|
+
|
862
|
+
def self.classname_to_filename(class_name)
|
863
|
+
changed_class_name = ''
|
864
|
+
camel_case_split = (class_name.to_s.split(/([[:upper:]][[:lower:]]+)/)).delete_if(&:empty?)
|
865
|
+
camel_case_split.each_with_index do |each_name, i|
|
866
|
+
changed_class_name += Constants::UNDERSCORE if i.positive?
|
867
|
+
changed_class_name += each_name.to_s.downcase
|
868
|
+
end
|
869
|
+
|
870
|
+
changed_class_name
|
871
|
+
end
|
872
|
+
|
873
|
+
def self.class_to_load(class_path)
|
874
|
+
package_to_load = 'ZOHOCRMSDK::'
|
875
|
+
|
876
|
+
class_path = class_path.to_s
|
877
|
+
|
878
|
+
split_names = class_path.split(Constants::DOT)
|
879
|
+
|
880
|
+
package_name_split = split_names[-2].to_s.split(Constants::UNDERSCORE)
|
881
|
+
|
882
|
+
package_name_split.each do |name|
|
883
|
+
name[0] = name[0].to_s.upcase
|
884
|
+
package_to_load += name
|
885
|
+
end
|
886
|
+
|
887
|
+
package_to_load += Constants::DOUBLE_COLON
|
888
|
+
|
889
|
+
package_to_load += split_names[-1]
|
890
|
+
|
891
|
+
package_to_load
|
892
|
+
end
|
893
|
+
|
894
|
+
def self.path_to_package(class_path)
|
895
|
+
if class_path.to_s.include? Constants::DOUBLE_COLON
|
896
|
+
name = Constants::PACKAGE_PREFIX
|
897
|
+
class_path = class_path.to_s
|
898
|
+
class_split = class_path.to_s.split(Constants::DOUBLE_COLON)
|
899
|
+
class_split[1] = classname_to_filename(class_split[1])
|
900
|
+
name += class_split[1] + Constants::DOT + class_split[2]
|
901
|
+
name
|
902
|
+
else
|
903
|
+
class_path
|
904
|
+
end
|
905
|
+
end
|
906
|
+
|
907
|
+
def self.get_user_name(token)
|
908
|
+
user_name = nil
|
909
|
+
param_instance = ParameterMap.new
|
910
|
+
param_instance.add(Users::UsersOperations::GetUsersParam.type, Choice.new(Constants::CURRENTUSER))
|
911
|
+
header_instance = HeaderMap.new
|
912
|
+
handler_instance = Handler::CommonAPIHandler.new
|
913
|
+
api_path = String.new
|
914
|
+
api_path = api_path.concat("/crm/v6/users")
|
915
|
+
handler_instance.api_path = api_path
|
916
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
917
|
+
handler_instance.category_method = 'READ'
|
918
|
+
handler_instance.param = param_instance
|
919
|
+
header_instance.add(Header.new(Constants::AUTHORIZATION, Constants::STRING), Constants::OAUTH_HEADER_PREFIX + token)
|
920
|
+
handler_instance.header= header_instance
|
921
|
+
response = handler_instance.api_call(Users::ResponseHandler.name, 'application/json')
|
922
|
+
unless response.nil?
|
923
|
+
if [204, 304].include?(response.status_code)
|
924
|
+
return nil
|
925
|
+
end
|
926
|
+
if response.is_expected
|
927
|
+
response_handler = response.data_object
|
928
|
+
if response_handler.is_a? Users::ResponseWrapper
|
929
|
+
response_wrapper = response_handler
|
930
|
+
users = response_wrapper.users
|
931
|
+
users.each do |user|
|
932
|
+
user_name = user.email
|
933
|
+
break
|
934
|
+
end
|
935
|
+
elsif response_handler.is_a? Users::APIException
|
936
|
+
exception = response_handler
|
937
|
+
error_response = {}
|
938
|
+
error_response[Constants::CODE] = exception.code.value
|
939
|
+
error_response[Constants::STATUS] = exception.status.value
|
940
|
+
error_response[Constants::MESSAGE] = exception.message
|
941
|
+
raise SDKException.new(nil , Constants::API_EXCEPTION, error_response, nil)
|
942
|
+
end
|
943
|
+
end
|
944
|
+
end
|
945
|
+
user_name + ":" + get_user_org_id(token)
|
946
|
+
end
|
947
|
+
|
948
|
+
def self.get_user_org_id(token)
|
949
|
+
header_instance = HeaderMap.new
|
950
|
+
handler_instance = Handler::CommonAPIHandler.new
|
951
|
+
api_path = String.new
|
952
|
+
api_path = api_path.concat("/crm/v6/org")
|
953
|
+
handler_instance.api_path = api_path
|
954
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
955
|
+
handler_instance.category_method = 'READ'
|
956
|
+
header_instance.add(Header.new(Constants::AUTHORIZATION, Constants::STRING), Constants::OAUTH_HEADER_PREFIX + token)
|
957
|
+
handler_instance.header= header_instance
|
958
|
+
response = handler_instance.api_call(Org::ResponseHandler.name, 'application/json')
|
959
|
+
unless response.nil?
|
960
|
+
if response.is_expected
|
961
|
+
response_handler = response.data_object
|
962
|
+
if response_handler.is_a? Org::ResponseWrapper
|
963
|
+
response_wrapper = response_handler
|
964
|
+
orgs = response_wrapper.org
|
965
|
+
orgs.each do |org|
|
966
|
+
return org.zgid
|
967
|
+
end
|
968
|
+
elsif response_handler.is_a? Org::APIException
|
969
|
+
exception = response_handler
|
970
|
+
error_response = {}
|
971
|
+
error_response[Constants::CODE] = exception.code.value
|
972
|
+
error_response[Constants::STATUS] = exception.status.value
|
973
|
+
error_response[Constants::MESSAGE] = exception.message
|
974
|
+
raise SDKException.new(nil , Constants::API_EXCEPTION, error_response, nil)
|
975
|
+
end
|
976
|
+
end
|
977
|
+
end
|
978
|
+
nil
|
979
|
+
end
|
980
|
+
def self.check_data_type(value, type)
|
981
|
+
if value.nil?
|
982
|
+
return false
|
983
|
+
end
|
984
|
+
if type.downcase == Constants::OBJECT.downcase
|
985
|
+
return true
|
986
|
+
end
|
987
|
+
if Constants::DATA_TYPE.include? type
|
988
|
+
type = Constants::DATA_TYPE[type].downcase
|
989
|
+
end
|
990
|
+
class_name = value.class.name.downcase
|
991
|
+
if type.downcase == Constants::BOOLEAN.downcase
|
992
|
+
class_name = ([true, false].include? value) ? Constants::BOOLEAN.downcase : class_name
|
993
|
+
else
|
994
|
+
class_name = path_to_package(class_name).downcase
|
995
|
+
end
|
996
|
+
class_name.downcase == type.downcase
|
997
|
+
end
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
end
|