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,109 @@
|
|
1
|
+
require_relative '../header'
|
2
|
+
require_relative '../header_map'
|
3
|
+
require_relative '../exception/sdk_exception'
|
4
|
+
require_relative '../util/api_response'
|
5
|
+
require_relative '../util/common_api_handler'
|
6
|
+
require_relative '../util/constants'
|
7
|
+
|
8
|
+
module ZOHOCRMSDK
|
9
|
+
module Modules
|
10
|
+
class ModulesOperations
|
11
|
+
|
12
|
+
# Creates an instance of ModulesOperations
|
13
|
+
def initialize
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get modules
|
17
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
18
|
+
# @return An instance of APIResponse
|
19
|
+
# @raise SDKException
|
20
|
+
def get_modules(header_instance=nil)
|
21
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
22
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
23
|
+
end
|
24
|
+
handler_instance = Handler::CommonAPIHandler.new
|
25
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/settings/modules"
|
26
|
+
handler_instance.api_path = api_path
|
27
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
28
|
+
handler_instance.category_method = 'READ'
|
29
|
+
handler_instance.header = header_instance
|
30
|
+
require_relative 'response_handler'
|
31
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
32
|
+
end
|
33
|
+
|
34
|
+
# The method to get module
|
35
|
+
# @param api_name [String] A String
|
36
|
+
# @return An instance of APIResponse
|
37
|
+
# @raise SDKException
|
38
|
+
def get_module(api_name)
|
39
|
+
if !api_name.is_a? String
|
40
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: String', nil, nil)
|
41
|
+
end
|
42
|
+
handler_instance = Handler::CommonAPIHandler.new
|
43
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/settings/modules/"
|
44
|
+
api_path = api_path + api_name.to_s
|
45
|
+
handler_instance.api_path = api_path
|
46
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
47
|
+
handler_instance.category_method = 'READ'
|
48
|
+
require_relative 'response_handler'
|
49
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
50
|
+
end
|
51
|
+
|
52
|
+
# The method to update module by api name
|
53
|
+
# @param api_name [String] A String
|
54
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
55
|
+
# @return An instance of APIResponse
|
56
|
+
# @raise SDKException
|
57
|
+
def update_module_by_api_name(api_name, request)
|
58
|
+
if !api_name.is_a? String
|
59
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: String', nil, nil)
|
60
|
+
end
|
61
|
+
if request!=nil and !request.is_a? BodyWrapper
|
62
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
63
|
+
end
|
64
|
+
handler_instance = Handler::CommonAPIHandler.new
|
65
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/settings/modules/"
|
66
|
+
api_path = api_path + api_name.to_s
|
67
|
+
handler_instance.api_path = api_path
|
68
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
69
|
+
handler_instance.category_method = 'UPDATE'
|
70
|
+
handler_instance.content_type = 'application/json'
|
71
|
+
handler_instance.request = request
|
72
|
+
require_relative 'action_handler'
|
73
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
74
|
+
end
|
75
|
+
|
76
|
+
# The method to update module by id
|
77
|
+
# @param id [Integer] A Integer
|
78
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
79
|
+
# @return An instance of APIResponse
|
80
|
+
# @raise SDKException
|
81
|
+
def update_module_by_id(id, request)
|
82
|
+
if !id.is_a? Integer
|
83
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
84
|
+
end
|
85
|
+
if request!=nil and !request.is_a? BodyWrapper
|
86
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
87
|
+
end
|
88
|
+
handler_instance = Handler::CommonAPIHandler.new
|
89
|
+
api_path = "/crm/v#{Initializer.get_initializer.api_version}/settings/modules/"
|
90
|
+
api_path = api_path + id.to_s
|
91
|
+
handler_instance.api_path = api_path
|
92
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
93
|
+
handler_instance.category_method = 'UPDATE'
|
94
|
+
handler_instance.content_type = 'application/json'
|
95
|
+
handler_instance.request = request
|
96
|
+
require_relative 'action_handler'
|
97
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
98
|
+
end
|
99
|
+
|
100
|
+
class GetModulesHeader
|
101
|
+
@@If_modified_since = Header.new('If-Modified-Since', 'com.zoho.crm.api.Modules.GetModulesHeader')
|
102
|
+
def self.If_modified_since
|
103
|
+
@@If_modified_since
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Modules
|
5
|
+
class RelatedListProperties
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of RelatedListProperties
|
9
|
+
def initialize
|
10
|
+
@sort_by = nil
|
11
|
+
@fields = nil
|
12
|
+
@sort_order = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the sort_by
|
17
|
+
# @return A String value
|
18
|
+
|
19
|
+
def sort_by
|
20
|
+
@sort_by
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to sort_by
|
24
|
+
# @param sort_by [String] A String
|
25
|
+
|
26
|
+
def sort_by=(sort_by)
|
27
|
+
if sort_by!=nil and !sort_by.is_a? String
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sort_by EXPECTED TYPE: String', nil, nil)
|
29
|
+
end
|
30
|
+
@sort_by = sort_by
|
31
|
+
@key_modified['sort_by'] = 1
|
32
|
+
end
|
33
|
+
|
34
|
+
# The method to get the fields
|
35
|
+
# @return An instance of Array
|
36
|
+
|
37
|
+
def fields
|
38
|
+
@fields
|
39
|
+
end
|
40
|
+
|
41
|
+
# The method to set the value to fields
|
42
|
+
# @param fields [Array] An instance of Array
|
43
|
+
|
44
|
+
def fields=(fields)
|
45
|
+
if fields!=nil and !fields.is_a? Array
|
46
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: fields EXPECTED TYPE: Array', nil, nil)
|
47
|
+
end
|
48
|
+
@fields = fields
|
49
|
+
@key_modified['fields'] = 1
|
50
|
+
end
|
51
|
+
|
52
|
+
# The method to get the sort_order
|
53
|
+
# @return A String value
|
54
|
+
|
55
|
+
def sort_order
|
56
|
+
@sort_order
|
57
|
+
end
|
58
|
+
|
59
|
+
# The method to set the value to sort_order
|
60
|
+
# @param sort_order [String] A String
|
61
|
+
|
62
|
+
def sort_order=(sort_order)
|
63
|
+
if sort_order!=nil and !sort_order.is_a? String
|
64
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sort_order EXPECTED TYPE: String', nil, nil)
|
65
|
+
end
|
66
|
+
@sort_order = sort_order
|
67
|
+
@key_modified['sort_order'] = 1
|
68
|
+
end
|
69
|
+
|
70
|
+
# The method to check if the user has modified the given key
|
71
|
+
# @param key [String] A String
|
72
|
+
# @return A Integer value
|
73
|
+
|
74
|
+
def is_key_modified(key)
|
75
|
+
if key!=nil and !key.is_a? String
|
76
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
77
|
+
end
|
78
|
+
if @key_modified.key?(key)
|
79
|
+
return @key_modified[key]
|
80
|
+
end
|
81
|
+
|
82
|
+
nil
|
83
|
+
end
|
84
|
+
|
85
|
+
# The method to mark the given key as modified
|
86
|
+
# @param key [String] A String
|
87
|
+
# @param modification [Integer] A Integer
|
88
|
+
|
89
|
+
def set_key_modified(key, modification)
|
90
|
+
if key!=nil and !key.is_a? String
|
91
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
92
|
+
end
|
93
|
+
if modification!=nil and !modification.is_a? Integer
|
94
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
95
|
+
end
|
96
|
+
@key_modified[key] = modification
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Modules
|
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
|
+
@modules = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the modules
|
17
|
+
# @return An instance of Array
|
18
|
+
|
19
|
+
def modules
|
20
|
+
@modules
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to modules
|
24
|
+
# @param modules [Array] An instance of Array
|
25
|
+
|
26
|
+
def modules=(modules)
|
27
|
+
if modules!=nil and !modules.is_a? Array
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modules EXPECTED TYPE: Array', nil, nil)
|
29
|
+
end
|
30
|
+
@modules = modules
|
31
|
+
@key_modified['modules'] = 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,123 @@
|
|
1
|
+
require_relative '../util/choice'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Modules
|
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
|
+
@status = nil
|
14
|
+
@code = nil
|
15
|
+
@message = nil
|
16
|
+
@details = nil
|
17
|
+
@key_modified = Hash.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to get the status
|
21
|
+
# @return An instance of Util::Choice
|
22
|
+
|
23
|
+
def status
|
24
|
+
@status
|
25
|
+
end
|
26
|
+
|
27
|
+
# The method to set the value to status
|
28
|
+
# @param status [Util::Choice] An instance of Util::Choice
|
29
|
+
|
30
|
+
def status=(status)
|
31
|
+
if status!=nil and !status.is_a? Util::Choice
|
32
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
|
33
|
+
end
|
34
|
+
@status = status
|
35
|
+
@key_modified['status'] = 1
|
36
|
+
end
|
37
|
+
|
38
|
+
# The method to get the code
|
39
|
+
# @return An instance of Util::Choice
|
40
|
+
|
41
|
+
def code
|
42
|
+
@code
|
43
|
+
end
|
44
|
+
|
45
|
+
# The method to set the value to code
|
46
|
+
# @param code [Util::Choice] An instance of Util::Choice
|
47
|
+
|
48
|
+
def code=(code)
|
49
|
+
if code!=nil and !code.is_a? Util::Choice
|
50
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
|
51
|
+
end
|
52
|
+
@code = code
|
53
|
+
@key_modified['code'] = 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,101 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Modules
|
5
|
+
class Territory
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Territory
|
9
|
+
def initialize
|
10
|
+
@id = nil
|
11
|
+
@name = nil
|
12
|
+
@subordinates = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the id
|
17
|
+
# @return A Integer value
|
18
|
+
|
19
|
+
def id
|
20
|
+
@id
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to id
|
24
|
+
# @param id [Integer] A Integer
|
25
|
+
|
26
|
+
def id=(id)
|
27
|
+
if id!=nil and !id.is_a? Integer
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
29
|
+
end
|
30
|
+
@id = id
|
31
|
+
@key_modified['id'] = 1
|
32
|
+
end
|
33
|
+
|
34
|
+
# The method to get the name
|
35
|
+
# @return A String value
|
36
|
+
|
37
|
+
def name
|
38
|
+
@name
|
39
|
+
end
|
40
|
+
|
41
|
+
# The method to set the value to name
|
42
|
+
# @param name [String] A String
|
43
|
+
|
44
|
+
def name=(name)
|
45
|
+
if name!=nil and !name.is_a? String
|
46
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: String', nil, nil)
|
47
|
+
end
|
48
|
+
@name = name
|
49
|
+
@key_modified['name'] = 1
|
50
|
+
end
|
51
|
+
|
52
|
+
# The method to get the subordinates
|
53
|
+
# @return A Boolean value
|
54
|
+
|
55
|
+
def subordinates
|
56
|
+
@subordinates
|
57
|
+
end
|
58
|
+
|
59
|
+
# The method to set the value to subordinates
|
60
|
+
# @param subordinates [Boolean] A Boolean
|
61
|
+
|
62
|
+
def subordinates=(subordinates)
|
63
|
+
if subordinates!=nil and ! [true, false].include?subordinates
|
64
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: subordinates EXPECTED TYPE: Boolean', nil, nil)
|
65
|
+
end
|
66
|
+
@subordinates = subordinates
|
67
|
+
@key_modified['subordinates'] = 1
|
68
|
+
end
|
69
|
+
|
70
|
+
# The method to check if the user has modified the given key
|
71
|
+
# @param key [String] A String
|
72
|
+
# @return A Integer value
|
73
|
+
|
74
|
+
def is_key_modified(key)
|
75
|
+
if key!=nil and !key.is_a? String
|
76
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
77
|
+
end
|
78
|
+
if @key_modified.key?(key)
|
79
|
+
return @key_modified[key]
|
80
|
+
end
|
81
|
+
|
82
|
+
nil
|
83
|
+
end
|
84
|
+
|
85
|
+
# The method to mark the given key as modified
|
86
|
+
# @param key [String] A String
|
87
|
+
# @param modification [Integer] A Integer
|
88
|
+
|
89
|
+
def set_key_modified(key, modification)
|
90
|
+
if key!=nil and !key.is_a? String
|
91
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
92
|
+
end
|
93
|
+
if modification!=nil and !modification.is_a? Integer
|
94
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
95
|
+
end
|
96
|
+
@key_modified[key] = modification
|
97
|
+
end
|
98
|
+
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Notes
|
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
|
+
@data = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the data
|
17
|
+
# @return An instance of Array
|
18
|
+
|
19
|
+
def data
|
20
|
+
@data
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to data
|
24
|
+
# @param data [Array] An instance of Array
|
25
|
+
|
26
|
+
def data=(data)
|
27
|
+
if data!=nil and !data.is_a? Array
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: data EXPECTED TYPE: Array', nil, nil)
|
29
|
+
end
|
30
|
+
@data = data
|
31
|
+
@key_modified['data'] = 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
|