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,425 @@
|
|
1
|
+
require 'uri'
|
2
|
+
require 'net/http'
|
3
|
+
require 'json'
|
4
|
+
require 'monitor'
|
5
|
+
|
6
|
+
require_relative 'token'
|
7
|
+
require_relative '../../crm/api/util/constants'
|
8
|
+
require_relative '../logger/sdk_logger'
|
9
|
+
require_relative '../../crm/api/exception/sdk_exception'
|
10
|
+
require_relative '../../crm/api/dc/datacenter'
|
11
|
+
|
12
|
+
module ZOHOCRMSDK
|
13
|
+
module Authenticator
|
14
|
+
# This class gets and refreshes the tokens based on the expiry time.
|
15
|
+
class OAuthToken < Token
|
16
|
+
attr_accessor :client_id, :client_secret, :redirect_url, :grant_token, :refresh_token, :access_token, :user_signature, :id, :expires_in, :api_domain, :find_user
|
17
|
+
@@sync_lock = Monitor.new
|
18
|
+
|
19
|
+
|
20
|
+
def self.initialize()
|
21
|
+
new(id: "")
|
22
|
+
end
|
23
|
+
|
24
|
+
# Creates an OAuthToken class instance with the specified parameters.
|
25
|
+
# @param client_id [string] A String containing the OAuth client id.
|
26
|
+
# @param client_secret [string] A String containing the OAuth client secret.
|
27
|
+
# @param grant_token [string] A String containing the grant token.
|
28
|
+
# @param refresh_token [string] A String containing the refresh token.
|
29
|
+
# @param redirect_url [string] A String containing the OAuth redirect URL.
|
30
|
+
# @param id [string] A String containing ID
|
31
|
+
# @param find_user [Boolean] A String containing the OAuth expires_time
|
32
|
+
|
33
|
+
def initialize(client_id: nil, client_secret: nil, grant_token: nil, refresh_token: nil, redirect_url: nil, id: nil, access_token: nil, user_signature: nil, find_user: true)
|
34
|
+
error = {}
|
35
|
+
|
36
|
+
if grant_token.nil? && refresh_token.nil? && id.nil? && access_token.nil? && user_signature.nil?
|
37
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::MANDATORY_KEY_ERROR, Constants::OAUTH_MANDATORY_KEYS)
|
38
|
+
end
|
39
|
+
|
40
|
+
if id.nil? and access_token.nil? and user_signature.nil?
|
41
|
+
unless client_id.is_a?(String)
|
42
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::CLIENT_ID
|
43
|
+
|
44
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
45
|
+
|
46
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
47
|
+
|
48
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
unless client_secret.is_a?(String)
|
53
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::CLIENT_SECRET
|
54
|
+
|
55
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
56
|
+
|
57
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
58
|
+
|
59
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
if !grant_token.nil? && !grant_token.is_a?(String)
|
64
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::GRANT_TOKEN
|
65
|
+
|
66
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
67
|
+
|
68
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
69
|
+
|
70
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
71
|
+
|
72
|
+
end
|
73
|
+
|
74
|
+
if !refresh_token.nil? && !refresh_token.is_a?(String)
|
75
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::REFRESH_TOKEN
|
76
|
+
|
77
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
78
|
+
|
79
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
80
|
+
|
81
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
82
|
+
|
83
|
+
end
|
84
|
+
|
85
|
+
if !redirect_url.nil? && !redirect_url.is_a?(String)
|
86
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::REDIRECT_URL
|
87
|
+
|
88
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
89
|
+
|
90
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
91
|
+
|
92
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
93
|
+
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
if !id.nil? && !id.is_a?(String)
|
98
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::ID
|
99
|
+
|
100
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
101
|
+
|
102
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
103
|
+
|
104
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
105
|
+
|
106
|
+
end
|
107
|
+
|
108
|
+
if !access_token.nil? && !access_token.is_a?(String)
|
109
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::ACCESS_TOKEN
|
110
|
+
|
111
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = String
|
112
|
+
|
113
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
114
|
+
|
115
|
+
raise SDKException.new(Constants::INPUT_ERROR, nil, error, nil)
|
116
|
+
end
|
117
|
+
|
118
|
+
if !user_signature.nil? && !user_signature.is_a?(UserSignature)
|
119
|
+
error[Constants::ERROR_HASH_FIELD] = Constants::USER_NAME
|
120
|
+
|
121
|
+
error[Constants::ERROR_HASH_EXPECTED_TYPE] = Constants.USER_SIGNATURE_ERROR_MESSAGE
|
122
|
+
|
123
|
+
error[Constants::ERROR_HASH_CLASS] = OAuthToken.class
|
124
|
+
end
|
125
|
+
|
126
|
+
@client_id = client_id
|
127
|
+
|
128
|
+
@client_secret = client_secret
|
129
|
+
|
130
|
+
@redirect_url = redirect_url
|
131
|
+
|
132
|
+
@refresh_token = refresh_token
|
133
|
+
|
134
|
+
@grant_token = grant_token
|
135
|
+
|
136
|
+
@access_token = access_token
|
137
|
+
|
138
|
+
@expires_in = nil
|
139
|
+
|
140
|
+
@user_signature = user_signature
|
141
|
+
|
142
|
+
@id = id
|
143
|
+
|
144
|
+
@api_domain = nil
|
145
|
+
|
146
|
+
@find_user = find_user
|
147
|
+
end
|
148
|
+
|
149
|
+
def generate_token
|
150
|
+
get_token
|
151
|
+
end
|
152
|
+
|
153
|
+
def get_token
|
154
|
+
initializer = Initializer.get_initializer
|
155
|
+
store = initializer.store
|
156
|
+
oauth_token = nil
|
157
|
+
if !@id.nil?
|
158
|
+
oauth_token = store.find_token_by_id(@id)
|
159
|
+
merge_objects(self, oauth_token)
|
160
|
+
oauth_token.find_user = @find_user if !oauth_token.nil?
|
161
|
+
else
|
162
|
+
oauth_token = store.find_token(self)
|
163
|
+
end
|
164
|
+
if oauth_token.nil?
|
165
|
+
unless @user_signature.nil?
|
166
|
+
check_token_details
|
167
|
+
end
|
168
|
+
|
169
|
+
oauth_token = self
|
170
|
+
end
|
171
|
+
if oauth_token.api_domain.nil? || oauth_token.api_domain.length <= 0
|
172
|
+
if initializer.environment.nil?
|
173
|
+
raise SDKException.new(Constants::ENVIRONMENT_ERROR_1, "#{Constants::ENVIRONMENT_ERROR_MESSAGE} : ")
|
174
|
+
end
|
175
|
+
|
176
|
+
oauth_token.api_domain = initializer.environment.url
|
177
|
+
end
|
178
|
+
environment = DC::DataCenter.get(oauth_token.api_domain)
|
179
|
+
if !environment.nil?
|
180
|
+
begin
|
181
|
+
initializer.instance_variable_set("@#{Constants::ENVIRONMENT}", environment)
|
182
|
+
rescue StandardError => e
|
183
|
+
raise SDKException.new(nil, "#{Constants::ENVIRONMENT_ERROR_RESPONSE} : ", nil, e)
|
184
|
+
end
|
185
|
+
else
|
186
|
+
if initializer.environment.nil?
|
187
|
+
raise SDKException.new(Constants::ENVIRONMENT_ERROR_1, "#{Constants::ENVIRONMENT_ERROR_MESSAGE} : ", nil, nil)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
url = initializer.environment.accounts_url
|
191
|
+
save = false
|
192
|
+
if oauth_token.access_token.nil? || oauth_token.access_token.length == 0
|
193
|
+
if !oauth_token.refresh_token.nil? && oauth_token.refresh_token.length > 0
|
194
|
+
SDKLog::SDKLogger.info(Constants::ACCESS_TOKEN_USING_REFRESH_TOKEN_MESSAGE)
|
195
|
+
oauth_token.refresh_access_token(oauth_token, url)
|
196
|
+
else
|
197
|
+
SDKLog::SDKLogger.info(Constants::ACCESS_TOKEN_USING_GRANT_TOKEN_MESSAGE)
|
198
|
+
oauth_token.generate_access_token(oauth_token, url)
|
199
|
+
end
|
200
|
+
save = true
|
201
|
+
elsif !oauth_token.expires_in.nil? && oauth_token.expires_in.to_s.length > 0 && (oauth_token.expires_in.to_f - get_current_time_in_millis < 5000)
|
202
|
+
SDKLog::SDKLogger.info(Constants::REFRESH_TOKEN_MESSAGE)
|
203
|
+
oauth_token.refresh_access_token(oauth_token, url)
|
204
|
+
save = true
|
205
|
+
elsif oauth_token.expires_in.nil? && !oauth_token.access_token.nil? && oauth_token.id.nil?
|
206
|
+
save = true
|
207
|
+
end
|
208
|
+
if save
|
209
|
+
begin
|
210
|
+
if oauth_token.user_signature.nil? && oauth_token.find_user
|
211
|
+
begin
|
212
|
+
user_name = Util::Utility.get_user_name(oauth_token.access_token)
|
213
|
+
unless user_name.nil?
|
214
|
+
oauth_token.user_signature = UserSignature.new(user_name)
|
215
|
+
end
|
216
|
+
rescue StandardError => e
|
217
|
+
SDKLog::SDKLogger.severe(Constants::API_EXCEPTION, e)
|
218
|
+
end
|
219
|
+
end
|
220
|
+
store.save_token(oauth_token)
|
221
|
+
rescue StandardError=> e
|
222
|
+
raise SDKException.new(nil, Constants::SAVE_TOKEN_ERROR, nil, e)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
oauth_token.access_token
|
226
|
+
end
|
227
|
+
|
228
|
+
def authenticate(url_connection)
|
229
|
+
if url_connection.is_a?(Util::APIHTTPConnector) && !url_connection.headers.key?(Constants::AUTHORIZATION)
|
230
|
+
url_connection.headers.store(Constants::AUTHORIZATION, Constants::OAUTH_HEADER_PREFIX + get_token)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
def merge_objects(first, second)
|
235
|
+
fields = first.instance_variables
|
236
|
+
fields.each do |field|
|
237
|
+
field_name = field.to_s.sub(/^@/, '')
|
238
|
+
if Constants::OAUTH_TOKEN_FIELDS.include?(field_name)
|
239
|
+
first_value = first.instance_variable_get(field)
|
240
|
+
second_value = second.instance_variable_get(field)
|
241
|
+
value = (first_value.nil? ? second_value : first_value)
|
242
|
+
first.instance_variable_set(field, value)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
def remove
|
248
|
+
begin
|
249
|
+
if Initializer.get_initializer.nil?
|
250
|
+
raise SDKException.new(Constants::SDK_UNINITIALIZATION_ERROR, Constants::SDK_UNINITIALIZATION_MESSAGE, nil, nil)
|
251
|
+
end
|
252
|
+
Initializer.get_initializer.store.delete_token(self.id)
|
253
|
+
rescue SDKException => e
|
254
|
+
raise e
|
255
|
+
rescue StandardError => e
|
256
|
+
raise SDKException.new(nil, nil, nil, e)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
def generate_access_token(oauth_token, url)
|
261
|
+
json_body = {}
|
262
|
+
|
263
|
+
json_body[Constants::CLIENT_ID] = oauth_token.client_id
|
264
|
+
|
265
|
+
json_body[Constants::CLIENT_SECRET] = oauth_token.client_secret
|
266
|
+
|
267
|
+
json_body[Constants::REDIRECT_URI] = oauth_token.redirect_url unless oauth_token.redirect_url.nil?
|
268
|
+
|
269
|
+
json_body[Constants::GRANT_TYPE] = Constants::GRANT_TYPE_AUTH_CODE
|
270
|
+
|
271
|
+
json_body[Constants::CODE] = oauth_token.grant_token
|
272
|
+
|
273
|
+
response = get_response_from_server(json_body, url)
|
274
|
+
|
275
|
+
begin
|
276
|
+
parse_response(response)
|
277
|
+
rescue SDKException => e
|
278
|
+
raise e
|
279
|
+
rescue StandardError => e
|
280
|
+
raise SDKException.new(nil, Constants::ACCESS_TOKEN_ERROR, nil, e)
|
281
|
+
end
|
282
|
+
self
|
283
|
+
end
|
284
|
+
|
285
|
+
def refresh_access_token(oauth_token, url)
|
286
|
+
json_body = {}
|
287
|
+
|
288
|
+
json_body[Constants::CLIENT_ID] = oauth_token.client_id
|
289
|
+
|
290
|
+
json_body[Constants::CLIENT_SECRET] = oauth_token.client_secret
|
291
|
+
|
292
|
+
json_body[Constants::GRANT_TYPE] = Constants::REFRESH_TOKEN
|
293
|
+
|
294
|
+
json_body[Constants::REFRESH_TOKEN] = oauth_token.refresh_token
|
295
|
+
|
296
|
+
response = get_response_from_server(json_body, url)
|
297
|
+
|
298
|
+
begin
|
299
|
+
parse_response(response)
|
300
|
+
rescue SDKException => e
|
301
|
+
raise e
|
302
|
+
rescue StandardError => e
|
303
|
+
raise SDKException.new(nil, Constants::REFRESH_TOKEN_ERROR, nil, e)
|
304
|
+
end
|
305
|
+
self
|
306
|
+
end
|
307
|
+
|
308
|
+
def parse_response(response)
|
309
|
+
response_json = JSON.parse(response)
|
310
|
+
|
311
|
+
unless response_json.key? Constants::ACCESS_TOKEN
|
312
|
+
raise SDKException.new(Constants::INVALID_CLIENT_ERROR, response_json[Constants::ERROR_KEY], nil, nil)
|
313
|
+
end
|
314
|
+
|
315
|
+
@access_token = response_json[Constants::ACCESS_TOKEN]
|
316
|
+
|
317
|
+
@expires_in = get_token_expiry_time(response_json)
|
318
|
+
|
319
|
+
@refresh_token = response_json[Constants::REFRESH_TOKEN] if response_json.key? Constants::REFRESH_TOKEN
|
320
|
+
|
321
|
+
@api_domain = response_json[Constants::API_DOMAIN] if response_json.key? Constants::API_DOMAIN
|
322
|
+
self
|
323
|
+
end
|
324
|
+
|
325
|
+
def get_response_from_server(json_body, accounts_url)
|
326
|
+
url = URI(accounts_url)
|
327
|
+
|
328
|
+
http = Net::HTTP.new(url.host, url.port)
|
329
|
+
|
330
|
+
http.use_ssl = true
|
331
|
+
|
332
|
+
request = Net::HTTP::Post.new(url.request_uri)
|
333
|
+
request.add_field(Constants::USER_AGENT_KEY, Constants::USER_AGENT)
|
334
|
+
request.set_form(json_body, Constants::APPLICATION_FORM_URLENCODED)
|
335
|
+
|
336
|
+
response = http.request(request)
|
337
|
+
|
338
|
+
response.body
|
339
|
+
rescue StandardError => e
|
340
|
+
raise SDKException.new(nil, nil, nil, e)
|
341
|
+
end
|
342
|
+
|
343
|
+
def get_token_expiry_time(response_json)
|
344
|
+
expires_in = response_json[Constants::EXPIRES_IN]
|
345
|
+
|
346
|
+
expires_in *= 1000 unless response_json.key? Constants::EXPIRES_IN_SEC
|
347
|
+
|
348
|
+
expires_in += get_current_time_in_millis
|
349
|
+
|
350
|
+
expires_in
|
351
|
+
end
|
352
|
+
|
353
|
+
def revoke_refresh_token(refresh_token, url)
|
354
|
+
request_params = Hash.new
|
355
|
+
|
356
|
+
request_params[Constants::Token] = refresh_token
|
357
|
+
|
358
|
+
response = ""
|
359
|
+
|
360
|
+
begin
|
361
|
+
response = get_response_from_server(request_params, url)
|
362
|
+
|
363
|
+
response_json = JSON.parse(response)
|
364
|
+
|
365
|
+
if response_json != nil && response_json[Constants::Status] && response_json[Constants::STATUS] == Constants::SUCCESS
|
366
|
+
return true
|
367
|
+
end
|
368
|
+
return false
|
369
|
+
rescue JSON::ParserError => e
|
370
|
+
raise SDKException.new(nil, Constants::PARSE_RESPONSE + " : " + response,nil, e)
|
371
|
+
rescue SDKException => e
|
372
|
+
raise e
|
373
|
+
rescue StandardError => e
|
374
|
+
raise SDKException.new(nil, Constants::REVOKE_TOKEN_ERROR, nil, e)
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
def revoke(id)
|
379
|
+
begin
|
380
|
+
if Initializer.get_initializer == nil
|
381
|
+
raise SDKException.new(Constants::SDK_UNINITIALIZATION_ERROR, Constants::SDK_UNINITIALIZATION_MESSAGE, nil, nil)
|
382
|
+
end
|
383
|
+
initializer = Initializer.get_initializer
|
384
|
+
|
385
|
+
store = initializer.store
|
386
|
+
|
387
|
+
url = initializer.environment.accounts_url
|
388
|
+
|
389
|
+
is_revoke = false
|
390
|
+
|
391
|
+
oauth_token = Authenticator::OAuthToken.initialize
|
392
|
+
|
393
|
+
oauth_token.id = id
|
394
|
+
|
395
|
+
store.find_token(oauth_token)
|
396
|
+
|
397
|
+
if !oauth_token.nil? && !oauth_token.refresh_token.nil?
|
398
|
+
is_revoke = revoke_refresh_token(oauth_token.refresh_token, url + Constants::REVOKE_URL)
|
399
|
+
SDKLog::SDKLogger.info(Constants::ID + " : " + id.to_s + Constants::REFRESH_TOKEN_REMOVED.to_s)
|
400
|
+
else
|
401
|
+
SDKLog::SDKLogger.warn(Constants::ID + " : " + id.to_s + Constants::TOKEN_NOT_FOUND.to_s)
|
402
|
+
end
|
403
|
+
is_revoke
|
404
|
+
rescue SDKException => e
|
405
|
+
raise e
|
406
|
+
rescue StandardError => e
|
407
|
+
raise SDKException.new(nil, nil, nil, e)
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
def check_token_details
|
412
|
+
if are_all_objects_null(self.refresh_token, self.grant_token)
|
413
|
+
raise SDKException.new(Constants::MANDATORY_VALUE_ERROR, Constants::GET_TOKEN_BY_USER_NAME_ERROR + " - " + Constants::OAUTH_MANDATORY_KEYS2.join(", ") , nil, nil)
|
414
|
+
end
|
415
|
+
end
|
416
|
+
|
417
|
+
def are_all_objects_null(*objects)
|
418
|
+
objects.all?(&:nil?)
|
419
|
+
end
|
420
|
+
def get_current_time_in_millis
|
421
|
+
(Time.now.to_f * 1000).to_i
|
422
|
+
end
|
423
|
+
end
|
424
|
+
end
|
425
|
+
end
|
@@ -0,0 +1,279 @@
|
|
1
|
+
require 'mysql2'
|
2
|
+
require_relative 'token_store'
|
3
|
+
require_relative '../oauth_token'
|
4
|
+
require_relative '../../../crm/api/util/constants'
|
5
|
+
|
6
|
+
module ZOHOCRMSDK
|
7
|
+
module Store
|
8
|
+
# This class stores the user token details to the MySQL DataBase.
|
9
|
+
class DBStore < TokenStore
|
10
|
+
attr_reader :user_name, :password, :port_number, :host, :database_name, :table_name
|
11
|
+
|
12
|
+
# Creates an DBStore class instance with the specified parameters.
|
13
|
+
# @param host [string] A String containing the DataBase host name.
|
14
|
+
# @param database_name A String containing the DataBase name.
|
15
|
+
# @param table_name A String containing the table name.
|
16
|
+
# @param user_name A String containing the DataBase user name.
|
17
|
+
# @param password A String containing the DataBase password.
|
18
|
+
# @param port_number A String containing the DataBase port number.
|
19
|
+
def initialize(host: Constants::MYSQL_HOST, database_name: Constants::MYSQL_DATABASE_NAME , table_name: Constants::MYSQL_TABLE_NAME, user_name: Constants::MYSQL_USER_NAME, password: '', port_number: Constants::MYSQL_PORT_NUMBER )
|
20
|
+
@host = host
|
21
|
+
@database_name = database_name
|
22
|
+
@table_name = table_name
|
23
|
+
@user_name = user_name
|
24
|
+
@password = password
|
25
|
+
@port_number = port_number
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
def find_token(token)
|
30
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
31
|
+
oauth_token = token
|
32
|
+
begin
|
33
|
+
query = 'select * from '.concat(@table_name)
|
34
|
+
if !oauth_token.user_signature.nil?
|
35
|
+
name = oauth_token.user_signature.name
|
36
|
+
if !name.nil? && name.length > 0
|
37
|
+
query.concat(" where user_name='").concat(name).concat("'")
|
38
|
+
end
|
39
|
+
elsif !oauth_token.access_token.nil? && are_all_objects_null(oauth_token.client_id, oauth_token.client_secret)
|
40
|
+
query.concat(" where access_token='").concat(oauth_token.access_token).concat("'")
|
41
|
+
elsif (!oauth_token.refresh_token.nil? || !oauth_token.grant_token.nil?) && !oauth_token.client_secret.nil? && !oauth_token.client_id.nil?
|
42
|
+
if !oauth_token.grant_token.nil? && oauth_token.grant_token.length > 0
|
43
|
+
query.concat(" where grant_token='").concat(oauth_token.grant_token).concat("'")
|
44
|
+
elsif !oauth_token.refresh_token.nil? && oauth_token.refresh_token.length > 0
|
45
|
+
query.concat(" where refresh_token='").concat(oauth_token.refresh_token).concat("'")
|
46
|
+
end
|
47
|
+
end
|
48
|
+
query.concat(' limit 1')
|
49
|
+
result = con.query(query)
|
50
|
+
if result.count == 0
|
51
|
+
return nil
|
52
|
+
else
|
53
|
+
result.each do |row|
|
54
|
+
set_merge_data(oauth_token, row)
|
55
|
+
break
|
56
|
+
end
|
57
|
+
end
|
58
|
+
rescue Mysql2::Error => e
|
59
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::GET_TOKEN_DB_ERROR1, nil, e)
|
60
|
+
ensure
|
61
|
+
con.close
|
62
|
+
end
|
63
|
+
oauth_token
|
64
|
+
end
|
65
|
+
|
66
|
+
def save_token(token)
|
67
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
68
|
+
begin
|
69
|
+
if token.is_a? Authenticator::OAuthToken
|
70
|
+
oauth_token = token
|
71
|
+
query = 'update '.concat(@table_name).concat(' set ')
|
72
|
+
if !oauth_token.user_signature.nil?
|
73
|
+
name = oauth_token.user_signature.name
|
74
|
+
if !name.nil? && name.length > 0
|
75
|
+
query.concat(set_token(oauth_token)).concat(" where user_name='").concat(name).concat("'")
|
76
|
+
end
|
77
|
+
elsif !oauth_token.access_token.nil? && oauth_token.access_token.length > 0 && are_all_objects_null(oauth_token.client_id, oauth_token.client_secret)
|
78
|
+
query.concat(set_token(oauth_token)).concat(" where access_token='").concat(oauth_token.access_token).concat("'")
|
79
|
+
elsif ((!oauth_token.refresh_token.nil? && oauth_token.refresh_token.length > 0) || (!oauth_token.grant_token.nil? && oauth_token.grant_token.length > 0)) && !oauth_token.client_id.nil? && !oauth_token.client_secret.nil?
|
80
|
+
if !oauth_token.grant_token.nil? && oauth_token.grant_token.length > 0
|
81
|
+
query.concat(set_token(oauth_token)).concat(" where grant_token='").concat(oauth_token.grant_token).concat("'")
|
82
|
+
elsif !oauth_token.refresh_token.nil? && oauth_token.refresh_token.length > 0
|
83
|
+
query.concat(set_token(oauth_token)).concat(" where refresh_token='").concat(oauth_token.refresh_token).concat("'")
|
84
|
+
end
|
85
|
+
end
|
86
|
+
query.concat(' limit 1')
|
87
|
+
result = con.query(query)
|
88
|
+
if con.affected_rows == 0
|
89
|
+
if !oauth_token.id.nil? || !oauth_token.user_signature.nil?
|
90
|
+
if oauth_token.refresh_token.nil? && oauth_token.grant_token.nil? && oauth_token.access_token.nil?
|
91
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::GET_TOKEN_DB_ERROR1, nil, nil)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
if oauth_token.id.nil?
|
95
|
+
new_id = generate_id.to_s
|
96
|
+
oauth_token.id = new_id
|
97
|
+
end
|
98
|
+
query = "insert into #{@table_name}(id,user_name,client_id,client_secret,refresh_token,access_token,grant_token,expiry_time,redirect_url,api_domain) VALUES (?,?,?,?,?,?,?,?,?,?)"
|
99
|
+
value = {
|
100
|
+
id: token.id,
|
101
|
+
user_name: token.user_signature.nil? ? nil : token.user_signature.name,
|
102
|
+
client_id: token.client_id,
|
103
|
+
client_secret: token.client_secret,
|
104
|
+
refresh_token: token.refresh_token,
|
105
|
+
access_token: token.access_token,
|
106
|
+
grant_token: token.grant_token,
|
107
|
+
expiry_time: token.expires_in,
|
108
|
+
redirect_url: token.redirect_url,
|
109
|
+
api_domain: token.api_domain
|
110
|
+
}
|
111
|
+
statement = con.prepare(query)
|
112
|
+
statement.execute(*value.values)
|
113
|
+
end
|
114
|
+
# end
|
115
|
+
end
|
116
|
+
rescue Mysql2::Error => e
|
117
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::SAVE_TOKEN_DB_ERROR, nil, e)
|
118
|
+
ensure
|
119
|
+
con.close
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
def delete_token(id)
|
124
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
125
|
+
query = 'delete from '.concat(@table_name).concat(" where id='").concat(id).concat("';")
|
126
|
+
con.query(query)
|
127
|
+
con.close
|
128
|
+
rescue Mysql2::Error => e
|
129
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::DELETE_TOKEN_DB_ERROR, nil, e)
|
130
|
+
end
|
131
|
+
|
132
|
+
def delete_tokens
|
133
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
134
|
+
|
135
|
+
query = "delete from #{@table_name}"
|
136
|
+
|
137
|
+
con.query(query)
|
138
|
+
|
139
|
+
con.close
|
140
|
+
rescue Mysql2::Error => e
|
141
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::DELETE_TOKENS_DB_ERROR, nil, e)
|
142
|
+
end
|
143
|
+
|
144
|
+
def get_tokens
|
145
|
+
tokens = []
|
146
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
147
|
+
query = "select * from #{@table_name}"
|
148
|
+
rs = con.query(query)
|
149
|
+
con.close
|
150
|
+
rs.each do |row|
|
151
|
+
oauth_token = Authenticator::OAuthToken.initialize
|
152
|
+
set_merge_data(oauth_token, row)
|
153
|
+
tokens.push(oauth_token)
|
154
|
+
end
|
155
|
+
tokens
|
156
|
+
rescue Mysql2::Error => e
|
157
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::GET_TOKENS_DB_ERROR, nil, e)
|
158
|
+
end
|
159
|
+
|
160
|
+
def find_token_by_id(id)
|
161
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
162
|
+
query = "select * from #{@table_name} where id='#{id}'"
|
163
|
+
rs = con.query(query)
|
164
|
+
con.close
|
165
|
+
rs.each do |row|
|
166
|
+
if id == row[Constants::ID]
|
167
|
+
oauth_token = Authenticator::OAuthToken.initialize
|
168
|
+
set_merge_data(oauth_token, row)
|
169
|
+
return oauth_token
|
170
|
+
end
|
171
|
+
end
|
172
|
+
nil
|
173
|
+
rescue Mysql2::Error => e
|
174
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::GET_TOKEN_BY_ID_DB_ERROR, nil, e)
|
175
|
+
end
|
176
|
+
|
177
|
+
|
178
|
+
def set_merge_data(oauth_token, result)
|
179
|
+
if oauth_token.is_a? Authenticator::OAuthToken
|
180
|
+
if oauth_token.id.nil? || oauth_token.id == ""
|
181
|
+
oauth_token.id = result[Constants::ID]
|
182
|
+
end
|
183
|
+
if oauth_token.user_signature.nil?
|
184
|
+
name = result[Constants::USER_NAME]
|
185
|
+
unless name.nil?
|
186
|
+
oauth_token.user_signature = UserSignature.new(name)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
if oauth_token.client_id.nil?
|
190
|
+
oauth_token.client_id = result[Constants::CLIENT_ID]
|
191
|
+
end
|
192
|
+
if oauth_token.client_secret.nil?
|
193
|
+
oauth_token.client_secret = result[Constants::CLIENT_SECRET]
|
194
|
+
end
|
195
|
+
if oauth_token.refresh_token.nil?
|
196
|
+
oauth_token.refresh_token = result[Constants::REFRESH_TOKEN]
|
197
|
+
end
|
198
|
+
if oauth_token.access_token.nil?
|
199
|
+
oauth_token.access_token = result[Constants::ACCESS_TOKEN]
|
200
|
+
end
|
201
|
+
if oauth_token.grant_token.nil?
|
202
|
+
oauth_token.grant_token = result[Constants::GRANT_TOKEN]
|
203
|
+
end
|
204
|
+
if oauth_token.expires_in.nil?
|
205
|
+
expires_in = result[Constants::EXPIRY_TIME]
|
206
|
+
unless expires_in.nil?
|
207
|
+
oauth_token.expires_in = expires_in.to_s
|
208
|
+
end
|
209
|
+
end
|
210
|
+
if oauth_token.redirect_url.nil?
|
211
|
+
oauth_token.redirect_url = result[Constants::REDIRECT_URL]
|
212
|
+
end
|
213
|
+
if oauth_token.api_domain.nil?
|
214
|
+
oauth_token.api_domain = result[Constants::API_DOMAIN]
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
def set_token(oauth_token)
|
219
|
+
query = []
|
220
|
+
unless oauth_token.user_signature.nil?
|
221
|
+
name = oauth_token.user_signature.name
|
222
|
+
if !name.nil? && name.length > 0
|
223
|
+
query.push(set_token_info(Constants::USER_NAME, name))
|
224
|
+
end
|
225
|
+
end
|
226
|
+
unless oauth_token.client_id.nil?
|
227
|
+
query.push(set_token_info(Constants::CLIENT_ID, oauth_token.client_id))
|
228
|
+
end
|
229
|
+
unless oauth_token.client_secret.nil?
|
230
|
+
query.push(set_token_info(Constants::CLIENT_SECRET, oauth_token.client_secret))
|
231
|
+
end
|
232
|
+
unless oauth_token.refresh_token.nil?
|
233
|
+
query.push(set_token_info(Constants::REFRESH_TOKEN, oauth_token.refresh_token))
|
234
|
+
end
|
235
|
+
unless oauth_token.access_token.nil?
|
236
|
+
query.push(set_token_info(Constants::ACCESS_TOKEN, oauth_token.access_token))
|
237
|
+
end
|
238
|
+
unless oauth_token.grant_token.nil?
|
239
|
+
query.push(set_token_info(Constants::GRANT_TOKEN, oauth_token.grant_token))
|
240
|
+
end
|
241
|
+
unless oauth_token.expires_in.nil?
|
242
|
+
query.push(set_token_info(Constants::EXPIRY_TIME, oauth_token.expires_in))
|
243
|
+
end
|
244
|
+
unless oauth_token.redirect_url.nil?
|
245
|
+
query.push(set_token_info(Constants::REDIRECT_URL, oauth_token.redirect_url))
|
246
|
+
end
|
247
|
+
unless oauth_token.api_domain.nil?
|
248
|
+
query.push(set_token_info(Constants::API_DOMAIN, oauth_token.api_domain))
|
249
|
+
end
|
250
|
+
query.join(',')
|
251
|
+
end
|
252
|
+
|
253
|
+
def set_token_info(key, value)
|
254
|
+
key.to_s + "='" + value.to_s + "'"
|
255
|
+
end
|
256
|
+
|
257
|
+
def are_all_objects_null(*objects)
|
258
|
+
objects.all?(&:nil?)
|
259
|
+
end
|
260
|
+
|
261
|
+
def generate_id
|
262
|
+
id = 0
|
263
|
+
con = Mysql2::Client.new(host: @host, username: @user_name, password: @password, database: @database_name, port: @port_number)
|
264
|
+
query = "select max(id) as id from #{@table_name} ;"
|
265
|
+
result = con.query(query)
|
266
|
+
con.close
|
267
|
+
result.each do |row|
|
268
|
+
max = row[Constants::ID].to_i
|
269
|
+
unless max.nil?
|
270
|
+
return max + 1
|
271
|
+
end
|
272
|
+
end
|
273
|
+
id
|
274
|
+
rescue Mysql2::Error => e
|
275
|
+
raise SDKException.new(Constants::TOKEN_STORE, Constants::GENERATE_TOKEN_ID_ERROR, nil, e)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|