ZOHOCRMSDK2_0_docgo 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/src/ZOHOCRMSDK2_0_docgo.rb +370 -0
- data/src/com/zoho/api/authenticator/oauth_token.rb +285 -0
- data/src/com/zoho/api/authenticator/store/db_store.rb +194 -0
- data/src/com/zoho/api/authenticator/store/file_store.rb +238 -0
- data/src/com/zoho/api/authenticator/store/token_store.rb +35 -0
- data/src/com/zoho/api/authenticator/token.rb +12 -0
- data/src/com/zoho/api/logger/sdk_logger.rb +64 -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 +127 -0
- data/src/com/zoho/crm/api/attachments/attachment.rb +369 -0
- data/src/com/zoho/crm/api/attachments/attachments_operations.rb +198 -0
- data/src/com/zoho/crm/api/attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/attachments/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/attachments/success_response.rb +123 -0
- data/src/com/zoho/crm/api/blue_print/action_response.rb +12 -0
- data/src/com/zoho/crm/api/blue_print/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/blue_print/blue_print.rb +121 -0
- data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +69 -0
- data/src/com/zoho/crm/api/blue_print/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/blue_print/next_transition.rb +82 -0
- data/src/com/zoho/crm/api/blue_print/process_info.rb +253 -0
- data/src/com/zoho/crm/api/blue_print/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/blue_print/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/blue_print/success_response.rb +123 -0
- data/src/com/zoho/crm/api/blue_print/transition.rb +255 -0
- data/src/com/zoho/crm/api/blue_print/validation_error.rb +82 -0
- data/src/com/zoho/crm/api/bulk_read/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/bulk_read/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +76 -0
- data/src/com/zoho/crm/api/bulk_read/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_read/criteria.rb +137 -0
- data/src/com/zoho/crm/api/bulk_read/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_read/job_detail.rb +198 -0
- data/src/com/zoho/crm/api/bulk_read/query.rb +139 -0
- data/src/com/zoho/crm/api/bulk_read/request_wrapper.rb +102 -0
- data/src/com/zoho/crm/api/bulk_read/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/bulk_read/result.rb +139 -0
- data/src/com/zoho/crm/api/bulk_read/success_response.rb +123 -0
- data/src/com/zoho/crm/api/bulk_write/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/api_exception.rb +241 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +114 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_response.rb +218 -0
- data/src/com/zoho/crm/api/bulk_write/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_write/field_mapping.rb +158 -0
- data/src/com/zoho/crm/api/bulk_write/file.rb +159 -0
- data/src/com/zoho/crm/api/bulk_write/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_write/request_wrapper.rb +121 -0
- data/src/com/zoho/crm/api/bulk_write/resource.rb +197 -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/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 +131 -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_role_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +270 -0
- data/src/com/zoho/crm/api/contact_roles/record_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/record_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/record_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/contact_roles/record_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/record_response_wrapper.rb +86 -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/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_action_handler.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 +151 -0
- data/src/com/zoho/crm/api/currencies/currency.rb +292 -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 +123 -0
- data/src/com/zoho/crm/api/custom_views/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/custom_views/criteria.rb +137 -0
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +329 -0
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +75 -0
- data/src/com/zoho/crm/api/custom_views/info.rb +158 -0
- data/src/com/zoho/crm/api/custom_views/range.rb +82 -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_details.rb +120 -0
- data/src/com/zoho/crm/api/custom_views/translation.rb +120 -0
- data/src/com/zoho/crm/api/dc/au_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/cn_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/datacenter.rb +23 -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/exception/sdk_exception.rb +49 -0
- data/src/com/zoho/crm/api/fields/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/fields/association_details.rb +82 -0
- data/src/com/zoho/crm/api/fields/auto_number.rb +101 -0
- data/src/com/zoho/crm/api/fields/crypt.rb +158 -0
- data/src/com/zoho/crm/api/fields/currency.rb +82 -0
- data/src/com/zoho/crm/api/fields/field.rb +958 -0
- data/src/com/zoho/crm/api/fields/fields_operations.rb +71 -0
- data/src/com/zoho/crm/api/fields/formula.rb +82 -0
- data/src/com/zoho/crm/api/fields/lookup_field.rb +82 -0
- data/src/com/zoho/crm/api/fields/module.rb +159 -0
- data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +158 -0
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +177 -0
- data/src/com/zoho/crm/api/fields/private.rb +101 -0
- data/src/com/zoho/crm/api/fields/related_details.rb +139 -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/tool_tip.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 +127 -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/file_operations.rb +75 -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/header.rb +12 -0
- data/src/com/zoho/crm/api/header_map.rb +57 -0
- data/src/com/zoho/crm/api/initializer.rb +255 -0
- data/src/com/zoho/crm/api/layouts/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/layouts/layout.rb +274 -0
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +61 -0
- data/src/com/zoho/crm/api/layouts/properties.rb +102 -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.rb +235 -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/module.rb +884 -0
- data/src/com/zoho/crm/api/modules/modules_operations.rb +109 -0
- data/src/com/zoho/crm/api/modules/related_list_properties.rb +101 -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/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 +120 -0
- data/src/com/zoho/crm/api/notes/note.rb +351 -0
- data/src/com/zoho/crm/api/notes/notes_operations.rb +214 -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/notification/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/notification/action_response.rb +12 -0
- data/src/com/zoho/crm/api/notification/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/notification/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/notification/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/notification/info.rb +120 -0
- data/src/com/zoho/crm/api/notification/notification.rb +253 -0
- data/src/com/zoho/crm/api/notification/notification_operations.rb +160 -0
- data/src/com/zoho/crm/api/notification/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/notification/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/notification/success_response.rb +123 -0
- data/src/com/zoho/crm/api/org/action_response.rb +12 -0
- data/src/com/zoho/crm/api/org/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/org/file_body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/org/license_details.rb +158 -0
- data/src/com/zoho/crm/api/org/org.rb +633 -0
- data/src/com/zoho/crm/api/org/org_operations.rb +49 -0
- data/src/com/zoho/crm/api/org/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/org/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/org/success_response.rb +123 -0
- data/src/com/zoho/crm/api/param.rb +12 -0
- data/src/com/zoho/crm/api/parameter_map.rb +56 -0
- data/src/com/zoho/crm/api/profiles/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/profiles/category.rb +101 -0
- data/src/com/zoho/crm/api/profiles/permission_detail.rb +139 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +292 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +61 -0
- data/src/com/zoho/crm/api/profiles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/profiles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/profiles/section.rb +82 -0
- data/src/com/zoho/crm/api/query/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/query/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/query/query_operations.rb +36 -0
- data/src/com/zoho/crm/api/query/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/query/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/record/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/api_exception.rb +145 -0
- data/src/com/zoho/crm/api/record/apply_feature_execution.rb +63 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +177 -0
- data/src/com/zoho/crm/api/record/carry_over_tags.rb +101 -0
- data/src/com/zoho/crm/api/record/comment.rb +120 -0
- data/src/com/zoho/crm/api/record/consent.rb +187 -0
- data/src/com/zoho/crm/api/record/convert_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/convert_action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/convert_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/convert_body_wrapper.rb +63 -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/field.rb +2111 -0
- data/src/com/zoho/crm/api/record/file_body_wrapper.rb +68 -0
- data/src/com/zoho/crm/api/record/file_details.rb +329 -0
- data/src/com/zoho/crm/api/record/file_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/info.rb +120 -0
- data/src/com/zoho/crm/api/record/inventory_line_items.rb +237 -0
- data/src/com/zoho/crm/api/record/lead_converter.rb +196 -0
- data/src/com/zoho/crm/api/record/line_item_product.rb +67 -0
- data/src/com/zoho/crm/api/record/line_tax.rb +120 -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/options.rb +12 -0
- data/src/com/zoho/crm/api/record/participants.rb +118 -0
- data/src/com/zoho/crm/api/record/pricing_details.rb +67 -0
- data/src/com/zoho/crm/api/record/record.rb +194 -0
- data/src/com/zoho/crm/api/record/record_operations.rb +961 -0
- data/src/com/zoho/crm/api/record/recurring_activity.rb +63 -0
- data/src/com/zoho/crm/api/record/remind_at.rb +63 -0
- data/src/com/zoho/crm/api/record/reminder.rb +82 -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/successful_convert.rb +103 -0
- data/src/com/zoho/crm/api/record/territory.rb +82 -0
- data/src/com/zoho/crm/api/related_lists/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/related_lists/related_list.rb +253 -0
- data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +61 -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 +524 -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/roles/api_exception.rb +123 -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 +197 -0
- data/src/com/zoho/crm/api/roles/roles_operations.rb +47 -0
- data/src/com/zoho/crm/api/sdk_config.rb +15 -0
- data/src/com/zoho/crm/api/share_records/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_response.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/share_records/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/share_records/body_wrapper.rb +63 -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/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 +159 -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 +102 -0
- data/src/com/zoho/crm/api/share_records/success_response.rb +125 -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 +133 -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_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/count_wrapper.rb +65 -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/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/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 +125 -0
- data/src/com/zoho/crm/api/tags/tag.rb +159 -0
- data/src/com/zoho/crm/api/tags/tags_operations.rb +382 -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/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 +84 -0
- data/src/com/zoho/crm/api/taxes/success_response.rb +123 -0
- data/src/com/zoho/crm/api/taxes/tax.rb +139 -0
- data/src/com/zoho/crm/api/taxes/taxes_operations.rb +132 -0
- data/src/com/zoho/crm/api/territories/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/territories/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/territories/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/territories/territories_operations.rb +47 -0
- data/src/com/zoho/crm/api/territories/territory.rb +236 -0
- data/src/com/zoho/crm/api/user_signature.rb +29 -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/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users/customize_info.rb +158 -0
- data/src/com/zoho/crm/api/users/info.rb +120 -0
- data/src/com/zoho/crm/api/users/request_wrapper.rb +63 -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/shift.rb +82 -0
- data/src/com/zoho/crm/api/users/success_response.rb +123 -0
- data/src/com/zoho/crm/api/users/tab_theme.rb +82 -0
- data/src/com/zoho/crm/api/users/territory.rb +101 -0
- data/src/com/zoho/crm/api/users/theme.rb +158 -0
- data/src/com/zoho/crm/api/users/user.rb +698 -0
- data/src/com/zoho/crm/api/users/users_operations.rb +177 -0
- data/src/com/zoho/crm/api/util/api_http_connector.rb +114 -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 +241 -0
- data/src/com/zoho/crm/api/util/constants.rb +646 -0
- data/src/com/zoho/crm/api/util/converter.rb +238 -0
- data/src/com/zoho/crm/api/util/data_type_converter.rb +170 -0
- data/src/com/zoho/crm/api/util/downloader.rb +86 -0
- data/src/com/zoho/crm/api/util/form_data_converter.rb +159 -0
- data/src/com/zoho/crm/api/util/header_param_validator.rb +57 -0
- data/src/com/zoho/crm/api/util/json_converter.rb +729 -0
- data/src/com/zoho/crm/api/util/model.rb +7 -0
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +80 -0
- data/src/com/zoho/crm/api/util/stream_wrapper.rb +39 -0
- data/src/com/zoho/crm/api/util/utility.rb +871 -0
- data/src/com/zoho/crm/api/variable_groups/api_exception.rb +123 -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 +139 -0
- data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +65 -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 +175 -0
- data/src/com/zoho/crm/api/variables/variables_operations.rb +234 -0
- data/src/resources/JSONDetails.json +1 -0
- data/src/version.rb +3 -0
- metadata +500 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'json'
|
2
|
+
require 'monitor'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Util
|
6
|
+
class ModuleFieldsHandler
|
7
|
+
@@sync_lock = Monitor.new
|
8
|
+
|
9
|
+
def self.delete_fields_file
|
10
|
+
@@sync_lock.synchronize do
|
11
|
+
record_field_details_path = Converter.new(nil).get_record_json_file_path
|
12
|
+
File.delete(record_field_details_path) if File.exist? record_field_details_path
|
13
|
+
end
|
14
|
+
rescue StandardError => e
|
15
|
+
ex = SDKException.new(nil, nil, nil, e)
|
16
|
+
SDKLog::SDKLogger.severe(Constants::DELETE_FIELD_FILE_ERROR, ex)
|
17
|
+
raise ex
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.delete_all_fields_file
|
21
|
+
@@sync_lock.synchronize do
|
22
|
+
initializer = Initializer.get_initializer
|
23
|
+
resources_path = initializer.resources_path + '/' + Constants::RESOURCES
|
24
|
+
if Dir.exist? resources_path
|
25
|
+
Dir.foreach(resources_path) do |f|
|
26
|
+
File.delete(resources_path + '/' + f) if (f != '.') && (f != '..')
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
rescue StandardError => e
|
31
|
+
ex = SDKException.new(nil, nil, nil, e)
|
32
|
+
SDKLog::SDKLogger.severe(Constants::DELETE_FIELD_FILES_ERROR, ex)
|
33
|
+
raise ex
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.delete_fields(module_api_name)
|
37
|
+
record_field_details_path = Converter.new(nil).get_record_json_file_path
|
38
|
+
if File.exist? record_field_details_path
|
39
|
+
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
40
|
+
if record_field_details_json.key? module_api_name.downcase
|
41
|
+
Utility.delete_fields(record_field_details_json,module_api_name)
|
42
|
+
File.open(record_field_details_path, 'w') do |f|
|
43
|
+
f.write(record_field_details_json.to_json)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
rescue StandardError => e
|
48
|
+
ex = SDKException.new(nil, nil, nil, e)
|
49
|
+
raise ex
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.refresh_fields(module_api_name)
|
53
|
+
@@sync_lock.synchronize do
|
54
|
+
delete_fields(module_api_name)
|
55
|
+
Utility.get_fields_info(module_api_name)
|
56
|
+
end
|
57
|
+
rescue SDKException => e
|
58
|
+
SDKLog::SDKLogger.severe(Constants::REFRESH_SINGLE_MODULE_FIELDS_ERROR + module_api_name, e)
|
59
|
+
raise e
|
60
|
+
rescue StandardError => e
|
61
|
+
ex = SDKException.new(nil, nil, nil, e)
|
62
|
+
SDKLog::SDKLogger.severe(Constants::REFRESH_SINGLE_MODULE_FIELDS_ERROR + module_api_name, ex)
|
63
|
+
raise ex
|
64
|
+
end
|
65
|
+
|
66
|
+
def self.refresh_all_modules
|
67
|
+
@@sync_lock.synchronize do
|
68
|
+
Utility.refresh_modules
|
69
|
+
end
|
70
|
+
rescue SDKException => e
|
71
|
+
SDKLog::SDKLogger.severe(Constants::REFRESH_ALL_MODULE_FIELDS_ERROR, e)
|
72
|
+
raise e
|
73
|
+
rescue StandardError => e
|
74
|
+
ex = SDKException.new(nil, nil, nil, e)
|
75
|
+
SDKLog::SDKLogger.severe(Constants::REFRESH_ALL_MODULE_FIELDS_ERROR, ex)
|
76
|
+
raise ex
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require_relative 'model'
|
2
|
+
require_relative 'constants'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Util
|
6
|
+
# This class handles the file stream and name.
|
7
|
+
class StreamWrapper
|
8
|
+
include Model
|
9
|
+
|
10
|
+
# Creates a StreamWrapper class instance with the specified parameters.
|
11
|
+
# @param name [String] A String containing the file name.
|
12
|
+
# @param stream An InputStream containing the file stream.
|
13
|
+
# @param file_path [String] A String containing the absolute file path.
|
14
|
+
def initialize(name = nil, stream = nil, file_path = nil)
|
15
|
+
@name = name
|
16
|
+
|
17
|
+
@stream = stream
|
18
|
+
return if file_path.nil?
|
19
|
+
if File.exist? file_path
|
20
|
+
file = File.open(file_path)
|
21
|
+
|
22
|
+
@name = File.basename(file_path)
|
23
|
+
|
24
|
+
@stream = file.read
|
25
|
+
else
|
26
|
+
raise SDKException.new(Constants::FILE_ERROR,Constants::FILE_DOES_NOT_EXISTS + " " + file_path)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def name
|
31
|
+
@name
|
32
|
+
end
|
33
|
+
|
34
|
+
def stream
|
35
|
+
@stream
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|