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,214 @@
|
|
1
|
+
require_relative '../header'
|
2
|
+
require_relative '../header_map'
|
3
|
+
require_relative '../param'
|
4
|
+
require_relative '../parameter_map'
|
5
|
+
require_relative '../exception/sdk_exception'
|
6
|
+
require_relative '../util/api_response'
|
7
|
+
require_relative '../util/common_api_handler'
|
8
|
+
require_relative '../util/constants'
|
9
|
+
|
10
|
+
module ZOHOCRMSDK
|
11
|
+
module Notes
|
12
|
+
class NotesOperations
|
13
|
+
|
14
|
+
# Creates an instance of NotesOperations
|
15
|
+
def initialize
|
16
|
+
end
|
17
|
+
|
18
|
+
# The method to get notes
|
19
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
20
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
21
|
+
# @return An instance of APIResponse
|
22
|
+
# @raise SDKException
|
23
|
+
def get_notes(param_instance=nil, header_instance=nil)
|
24
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
25
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
26
|
+
end
|
27
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
29
|
+
end
|
30
|
+
handler_instance = Handler::CommonAPIHandler.new
|
31
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes"
|
32
|
+
handler_instance.api_path = api_path
|
33
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
34
|
+
handler_instance.category_method = 'READ'
|
35
|
+
handler_instance.param = param_instance
|
36
|
+
handler_instance.header = header_instance
|
37
|
+
require_relative 'response_handler'
|
38
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
39
|
+
end
|
40
|
+
|
41
|
+
# The method to create notes
|
42
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
43
|
+
# @return An instance of APIResponse
|
44
|
+
# @raise SDKException
|
45
|
+
def create_notes(request)
|
46
|
+
if request!=nil and !request.is_a? BodyWrapper
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
48
|
+
end
|
49
|
+
handler_instance = Handler::CommonAPIHandler.new
|
50
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes"
|
51
|
+
handler_instance.api_path = api_path
|
52
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
53
|
+
handler_instance.category_method = 'CREATE'
|
54
|
+
handler_instance.content_type = 'application/json'
|
55
|
+
handler_instance.request = request
|
56
|
+
handler_instance.mandatory_checker = true
|
57
|
+
require_relative 'action_handler'
|
58
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
59
|
+
end
|
60
|
+
|
61
|
+
# The method to update notes
|
62
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
63
|
+
# @return An instance of APIResponse
|
64
|
+
# @raise SDKException
|
65
|
+
def update_notes(request)
|
66
|
+
if request!=nil and !request.is_a? BodyWrapper
|
67
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
68
|
+
end
|
69
|
+
handler_instance = Handler::CommonAPIHandler.new
|
70
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes"
|
71
|
+
handler_instance.api_path = api_path
|
72
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
73
|
+
handler_instance.category_method = 'UPDATE'
|
74
|
+
handler_instance.content_type = 'application/json'
|
75
|
+
handler_instance.request = request
|
76
|
+
handler_instance.mandatory_checker = true
|
77
|
+
require_relative 'action_handler'
|
78
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
79
|
+
end
|
80
|
+
|
81
|
+
# The method to delete notes
|
82
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
83
|
+
# @return An instance of APIResponse
|
84
|
+
# @raise SDKException
|
85
|
+
def delete_notes(param_instance=nil)
|
86
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
87
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
88
|
+
end
|
89
|
+
handler_instance = Handler::CommonAPIHandler.new
|
90
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes"
|
91
|
+
handler_instance.api_path = api_path
|
92
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
93
|
+
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
94
|
+
handler_instance.param = param_instance
|
95
|
+
require_relative 'action_handler'
|
96
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
97
|
+
end
|
98
|
+
|
99
|
+
# The method to get note
|
100
|
+
# @param id [Integer] A Integer
|
101
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
102
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
103
|
+
# @return An instance of APIResponse
|
104
|
+
# @raise SDKException
|
105
|
+
def get_note(id, param_instance=nil, header_instance=nil)
|
106
|
+
if !id.is_a? Integer
|
107
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
108
|
+
end
|
109
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
110
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
111
|
+
end
|
112
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
113
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
114
|
+
end
|
115
|
+
handler_instance = Handler::CommonAPIHandler.new
|
116
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes/"
|
117
|
+
api_path = api_path + id.to_s
|
118
|
+
handler_instance.api_path = api_path
|
119
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
120
|
+
handler_instance.category_method = 'READ'
|
121
|
+
handler_instance.param = param_instance
|
122
|
+
handler_instance.header = header_instance
|
123
|
+
require_relative 'response_handler'
|
124
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
125
|
+
end
|
126
|
+
|
127
|
+
# The method to update note
|
128
|
+
# @param id [Integer] A Integer
|
129
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
130
|
+
# @return An instance of APIResponse
|
131
|
+
# @raise SDKException
|
132
|
+
def update_note(id, request)
|
133
|
+
if !id.is_a? Integer
|
134
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
135
|
+
end
|
136
|
+
if request!=nil and !request.is_a? BodyWrapper
|
137
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
138
|
+
end
|
139
|
+
handler_instance = Handler::CommonAPIHandler.new
|
140
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes/"
|
141
|
+
api_path = api_path + id.to_s
|
142
|
+
handler_instance.api_path = api_path
|
143
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
144
|
+
handler_instance.category_method = 'UPDATE'
|
145
|
+
handler_instance.content_type = 'application/json'
|
146
|
+
handler_instance.request = request
|
147
|
+
require_relative 'action_handler'
|
148
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
149
|
+
end
|
150
|
+
|
151
|
+
# The method to delete note
|
152
|
+
# @param id [Integer] A Integer
|
153
|
+
# @return An instance of APIResponse
|
154
|
+
# @raise SDKException
|
155
|
+
def delete_note(id)
|
156
|
+
if !id.is_a? Integer
|
157
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
158
|
+
end
|
159
|
+
handler_instance = Handler::CommonAPIHandler.new
|
160
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/Notes/"
|
161
|
+
api_path = api_path + id.to_s
|
162
|
+
handler_instance.api_path = api_path
|
163
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
164
|
+
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
165
|
+
require_relative 'action_handler'
|
166
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
167
|
+
end
|
168
|
+
|
169
|
+
class GetNotesParam
|
170
|
+
@@page = Param.new('page', 'com.zoho.crm.api.Notes.GetNotesParam')
|
171
|
+
def self.page
|
172
|
+
@@page
|
173
|
+
end
|
174
|
+
@@per_page = Param.new('per_page', 'com.zoho.crm.api.Notes.GetNotesParam')
|
175
|
+
def self.per_page
|
176
|
+
@@per_page
|
177
|
+
end
|
178
|
+
@@fields = Param.new('fields', 'com.zoho.crm.api.Notes.GetNotesParam')
|
179
|
+
def self.fields
|
180
|
+
@@fields
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
class GetNotesHeader
|
185
|
+
@@If_modified_since = Header.new('If-Modified-Since', 'com.zoho.crm.api.Notes.GetNotesHeader')
|
186
|
+
def self.If_modified_since
|
187
|
+
@@If_modified_since
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
class DeleteNotesParam
|
192
|
+
@@ids = Param.new('ids', 'com.zoho.crm.api.Notes.DeleteNotesParam')
|
193
|
+
def self.ids
|
194
|
+
@@ids
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
class GetNoteParam
|
199
|
+
@@fields = Param.new('fields', 'com.zoho.crm.api.Notes.GetNoteParam')
|
200
|
+
def self.fields
|
201
|
+
@@fields
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
class GetNoteHeader
|
206
|
+
@@If_modified_since = Header.new('If-Modified-Since', 'com.zoho.crm.api.Notes.GetNoteHeader')
|
207
|
+
def self.If_modified_since
|
208
|
+
@@If_modified_since
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Notes
|
5
|
+
require_relative 'response_handler'
|
6
|
+
class ResponseWrapper
|
7
|
+
include Util::Model
|
8
|
+
include ResponseHandler
|
9
|
+
|
10
|
+
# Creates an instance of ResponseWrapper
|
11
|
+
def initialize
|
12
|
+
@data = nil
|
13
|
+
@info = nil
|
14
|
+
@key_modified = Hash.new
|
15
|
+
end
|
16
|
+
|
17
|
+
# The method to get the data
|
18
|
+
# @return An instance of Array
|
19
|
+
|
20
|
+
def data
|
21
|
+
@data
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to set the value to data
|
25
|
+
# @param data [Array] An instance of Array
|
26
|
+
|
27
|
+
def data=(data)
|
28
|
+
if data!=nil and !data.is_a? Array
|
29
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: data EXPECTED TYPE: Array', nil, nil)
|
30
|
+
end
|
31
|
+
@data = data
|
32
|
+
@key_modified['data'] = 1
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get the info
|
36
|
+
# @return An instance of Info
|
37
|
+
|
38
|
+
def info
|
39
|
+
@info
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to info
|
43
|
+
# @param info [Info] An instance of Info
|
44
|
+
|
45
|
+
def info=(info)
|
46
|
+
if info!=nil and !info.is_a? Info
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: info EXPECTED TYPE: Info', nil, nil)
|
48
|
+
end
|
49
|
+
@info = info
|
50
|
+
@key_modified['info'] = 1
|
51
|
+
end
|
52
|
+
|
53
|
+
# The method to check if the user has modified the given key
|
54
|
+
# @param key [String] A String
|
55
|
+
# @return A Integer value
|
56
|
+
|
57
|
+
def is_key_modified(key)
|
58
|
+
if key!=nil and !key.is_a? String
|
59
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
60
|
+
end
|
61
|
+
if @key_modified.key?(key)
|
62
|
+
return @key_modified[key]
|
63
|
+
end
|
64
|
+
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
|
68
|
+
# The method to mark the given key as modified
|
69
|
+
# @param key [String] A String
|
70
|
+
# @param modification [Integer] A Integer
|
71
|
+
|
72
|
+
def set_key_modified(key, modification)
|
73
|
+
if key!=nil and !key.is_a? String
|
74
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
75
|
+
end
|
76
|
+
if modification!=nil and !modification.is_a? Integer
|
77
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
78
|
+
end
|
79
|
+
@key_modified[key] = modification
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
require_relative '../util/choice'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Notes
|
6
|
+
require_relative 'action_response'
|
7
|
+
class SuccessResponse
|
8
|
+
include Util::Model
|
9
|
+
include ActionResponse
|
10
|
+
|
11
|
+
# Creates an instance of SuccessResponse
|
12
|
+
def initialize
|
13
|
+
@code = nil
|
14
|
+
@status = nil
|
15
|
+
@message = nil
|
16
|
+
@details = nil
|
17
|
+
@key_modified = Hash.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to get the code
|
21
|
+
# @return An instance of Util::Choice
|
22
|
+
|
23
|
+
def code
|
24
|
+
@code
|
25
|
+
end
|
26
|
+
|
27
|
+
# The method to set the value to code
|
28
|
+
# @param code [Util::Choice] An instance of Util::Choice
|
29
|
+
|
30
|
+
def code=(code)
|
31
|
+
if code!=nil and !code.is_a? Util::Choice
|
32
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
|
33
|
+
end
|
34
|
+
@code = code
|
35
|
+
@key_modified['code'] = 1
|
36
|
+
end
|
37
|
+
|
38
|
+
# The method to get the status
|
39
|
+
# @return An instance of Util::Choice
|
40
|
+
|
41
|
+
def status
|
42
|
+
@status
|
43
|
+
end
|
44
|
+
|
45
|
+
# The method to set the value to status
|
46
|
+
# @param status [Util::Choice] An instance of Util::Choice
|
47
|
+
|
48
|
+
def status=(status)
|
49
|
+
if status!=nil and !status.is_a? Util::Choice
|
50
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
|
51
|
+
end
|
52
|
+
@status = status
|
53
|
+
@key_modified['status'] = 1
|
54
|
+
end
|
55
|
+
|
56
|
+
# The method to get the message
|
57
|
+
# @return An instance of Util::Choice
|
58
|
+
|
59
|
+
def message
|
60
|
+
@message
|
61
|
+
end
|
62
|
+
|
63
|
+
# The method to set the value to message
|
64
|
+
# @param message [Util::Choice] An instance of Util::Choice
|
65
|
+
|
66
|
+
def message=(message)
|
67
|
+
if message!=nil and !message.is_a? Util::Choice
|
68
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
|
69
|
+
end
|
70
|
+
@message = message
|
71
|
+
@key_modified['message'] = 1
|
72
|
+
end
|
73
|
+
|
74
|
+
# The method to get the details
|
75
|
+
# @return An instance of Hash
|
76
|
+
|
77
|
+
def details
|
78
|
+
@details
|
79
|
+
end
|
80
|
+
|
81
|
+
# The method to set the value to details
|
82
|
+
# @param details [Hash] An instance of Hash
|
83
|
+
|
84
|
+
def details=(details)
|
85
|
+
if details!=nil and !details.is_a? Hash
|
86
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
|
87
|
+
end
|
88
|
+
@details = details
|
89
|
+
@key_modified['details'] = 1
|
90
|
+
end
|
91
|
+
|
92
|
+
# The method to check if the user has modified the given key
|
93
|
+
# @param key [String] A String
|
94
|
+
# @return A Integer value
|
95
|
+
|
96
|
+
def is_key_modified(key)
|
97
|
+
if key!=nil and !key.is_a? String
|
98
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
99
|
+
end
|
100
|
+
if @key_modified.key?(key)
|
101
|
+
return @key_modified[key]
|
102
|
+
end
|
103
|
+
|
104
|
+
nil
|
105
|
+
end
|
106
|
+
|
107
|
+
# The method to mark the given key as modified
|
108
|
+
# @param key [String] A String
|
109
|
+
# @param modification [Integer] A Integer
|
110
|
+
|
111
|
+
def set_key_modified(key, modification)
|
112
|
+
if key!=nil and !key.is_a? String
|
113
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
114
|
+
end
|
115
|
+
if modification!=nil and !modification.is_a? Integer
|
116
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
117
|
+
end
|
118
|
+
@key_modified[key] = modification
|
119
|
+
end
|
120
|
+
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Notification
|
5
|
+
require_relative 'action_handler'
|
6
|
+
class ActionWrapper
|
7
|
+
include Util::Model
|
8
|
+
include ActionHandler
|
9
|
+
|
10
|
+
# Creates an instance of ActionWrapper
|
11
|
+
def initialize
|
12
|
+
@watch = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the watch
|
17
|
+
# @return An instance of Array
|
18
|
+
|
19
|
+
def watch
|
20
|
+
@watch
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to watch
|
24
|
+
# @param watch [Array] An instance of Array
|
25
|
+
|
26
|
+
def watch=(watch)
|
27
|
+
if watch!=nil and !watch.is_a? Array
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: watch EXPECTED TYPE: Array', nil, nil)
|
29
|
+
end
|
30
|
+
@watch = watch
|
31
|
+
@key_modified['watch'] = 1
|
32
|
+
end
|
33
|
+
|
34
|
+
# The method to check if the user has modified the given key
|
35
|
+
# @param key [String] A String
|
36
|
+
# @return A Integer value
|
37
|
+
|
38
|
+
def is_key_modified(key)
|
39
|
+
if key!=nil and !key.is_a? String
|
40
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
41
|
+
end
|
42
|
+
if @key_modified.key?(key)
|
43
|
+
return @key_modified[key]
|
44
|
+
end
|
45
|
+
|
46
|
+
nil
|
47
|
+
end
|
48
|
+
|
49
|
+
# The method to mark the given key as modified
|
50
|
+
# @param key [String] A String
|
51
|
+
# @param modification [Integer] A Integer
|
52
|
+
|
53
|
+
def set_key_modified(key, modification)
|
54
|
+
if key!=nil and !key.is_a? String
|
55
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
56
|
+
end
|
57
|
+
if modification!=nil and !modification.is_a? Integer
|
58
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
59
|
+
end
|
60
|
+
@key_modified[key] = modification
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,127 @@
|
|
1
|
+
require_relative '../util/choice'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Notification
|
6
|
+
require_relative 'action_response'
|
7
|
+
require_relative 'action_handler'
|
8
|
+
require_relative 'response_handler'
|
9
|
+
class APIException
|
10
|
+
include Util::Model
|
11
|
+
include ActionResponse
|
12
|
+
include ActionHandler
|
13
|
+
include ResponseHandler
|
14
|
+
|
15
|
+
# Creates an instance of APIException
|
16
|
+
def initialize
|
17
|
+
@status = nil
|
18
|
+
@code = nil
|
19
|
+
@message = nil
|
20
|
+
@details = nil
|
21
|
+
@key_modified = Hash.new
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to get the status
|
25
|
+
# @return An instance of Util::Choice
|
26
|
+
|
27
|
+
def status
|
28
|
+
@status
|
29
|
+
end
|
30
|
+
|
31
|
+
# The method to set the value to status
|
32
|
+
# @param status [Util::Choice] An instance of Util::Choice
|
33
|
+
|
34
|
+
def status=(status)
|
35
|
+
if status!=nil and !status.is_a? Util::Choice
|
36
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
|
37
|
+
end
|
38
|
+
@status = status
|
39
|
+
@key_modified['status'] = 1
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to get the code
|
43
|
+
# @return An instance of Util::Choice
|
44
|
+
|
45
|
+
def code
|
46
|
+
@code
|
47
|
+
end
|
48
|
+
|
49
|
+
# The method to set the value to code
|
50
|
+
# @param code [Util::Choice] An instance of Util::Choice
|
51
|
+
|
52
|
+
def code=(code)
|
53
|
+
if code!=nil and !code.is_a? Util::Choice
|
54
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
|
55
|
+
end
|
56
|
+
@code = code
|
57
|
+
@key_modified['code'] = 1
|
58
|
+
end
|
59
|
+
|
60
|
+
# The method to get the message
|
61
|
+
# @return An instance of Util::Choice
|
62
|
+
|
63
|
+
def message
|
64
|
+
@message
|
65
|
+
end
|
66
|
+
|
67
|
+
# The method to set the value to message
|
68
|
+
# @param message [Util::Choice] An instance of Util::Choice
|
69
|
+
|
70
|
+
def message=(message)
|
71
|
+
if message!=nil and !message.is_a? Util::Choice
|
72
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
|
73
|
+
end
|
74
|
+
@message = message
|
75
|
+
@key_modified['message'] = 1
|
76
|
+
end
|
77
|
+
|
78
|
+
# The method to get the details
|
79
|
+
# @return An instance of Hash
|
80
|
+
|
81
|
+
def details
|
82
|
+
@details
|
83
|
+
end
|
84
|
+
|
85
|
+
# The method to set the value to details
|
86
|
+
# @param details [Hash] An instance of Hash
|
87
|
+
|
88
|
+
def details=(details)
|
89
|
+
if details!=nil and !details.is_a? Hash
|
90
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
|
91
|
+
end
|
92
|
+
@details = details
|
93
|
+
@key_modified['details'] = 1
|
94
|
+
end
|
95
|
+
|
96
|
+
# The method to check if the user has modified the given key
|
97
|
+
# @param key [String] A String
|
98
|
+
# @return A Integer value
|
99
|
+
|
100
|
+
def is_key_modified(key)
|
101
|
+
if key!=nil and !key.is_a? String
|
102
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
103
|
+
end
|
104
|
+
if @key_modified.key?(key)
|
105
|
+
return @key_modified[key]
|
106
|
+
end
|
107
|
+
|
108
|
+
nil
|
109
|
+
end
|
110
|
+
|
111
|
+
# The method to mark the given key as modified
|
112
|
+
# @param key [String] A String
|
113
|
+
# @param modification [Integer] A Integer
|
114
|
+
|
115
|
+
def set_key_modified(key, modification)
|
116
|
+
if key!=nil and !key.is_a? String
|
117
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
118
|
+
end
|
119
|
+
if modification!=nil and !modification.is_a? Integer
|
120
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
121
|
+
end
|
122
|
+
@key_modified[key] = modification
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|