ZOHOCRMSDK2_1 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/src/ZOHOCRMSDK2_1.rb +453 -0
- data/src/com/zoho/api/authenticator/oauth_token.rb +285 -0
- data/src/com/zoho/api/authenticator/store/db_store.rb +193 -0
- data/src/com/zoho/api/authenticator/store/file_store.rb +239 -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 +80 -0
- data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rule.rb +217 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +63 -0
- data/src/com/zoho/crm/api/assignment_rules/default_user.rb +82 -0
- data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/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 +407 -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/escalation.rb +82 -0
- data/src/com/zoho/crm/api/blue_print/field.rb +1129 -0
- data/src/com/zoho/crm/api/blue_print/next_transition.rb +120 -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 +273 -0
- data/src/com/zoho/crm/api/blue_print/validation_error.rb +139 -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 +157 -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 +140 -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 +217 -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 +281 -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 +158 -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 +138 -0
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +407 -0
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +77 -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_to.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/us_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/email_templates/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/email_templates/attachment.rb +120 -0
- data/src/com/zoho/crm/api/email_templates/email_template.rb +392 -0
- data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +63 -0
- data/src/com/zoho/crm/api/email_templates/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/exception/sdk_exception.rb +49 -0
- data/src/com/zoho/crm/api/field_attachments/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/field_attachments/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +54 -0
- data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/field_attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/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/external.rb +101 -0
- data/src/com/zoho/crm/api/fields/field.rb +1131 -0
- data/src/com/zoho/crm/api/fields/fields_operations.rb +73 -0
- data/src/com/zoho/crm/api/fields/formula.rb +82 -0
- data/src/com/zoho/crm/api/fields/history_tracking.rb +82 -0
- data/src/com/zoho/crm/api/fields/lookup_field.rb +82 -0
- data/src/com/zoho/crm/api/fields/maps.rb +82 -0
- data/src/com/zoho/crm/api/fields/module.rb +159 -0
- data/src/com/zoho/crm/api/fields/multi_module_lookup.rb +101 -0
- data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +177 -0
- data/src/com/zoho/crm/api/fields/multi_user_lookup.rb +177 -0
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +253 -0
- data/src/com/zoho/crm/api/fields/private.rb +101 -0
- data/src/com/zoho/crm/api/fields/related_details.rb +158 -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 +77 -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 +232 -0
- data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +354 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +87 -0
- data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/layouts/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/layouts/layout.rb +312 -0
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +63 -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 +254 -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 +941 -0
- data/src/com/zoho/crm/api/modules/modules_operations.rb +113 -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 +370 -0
- data/src/com/zoho/crm/api/notes/notes_operations.rb +229 -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 +166 -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/hierarchy_preference.rb +63 -0
- data/src/com/zoho/crm/api/org/license_details.rb +158 -0
- data/src/com/zoho/crm/api/org/org.rb +671 -0
- data/src/com/zoho/crm/api/org/org_operations.rb +51 -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/pipeline/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/action_response.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/pipeline/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/forecast_category.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/pick_list_value.rb +177 -0
- data/src/com/zoho/crm/api/pipeline/pipeline.rb +215 -0
- data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +167 -0
- data/src/com/zoho/crm/api/pipeline/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/pipeline/stage.rb +82 -0
- data/src/com/zoho/crm/api/pipeline/success_response.rb +125 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_response.rb +12 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/pipeline/transfer_and_delete_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipe_line.rb +82 -0
- data/src/com/zoho/crm/api/profiles/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/profiles/category.rb +120 -0
- data/src/com/zoho/crm/api/profiles/default_view.rb +101 -0
- data/src/com/zoho/crm/api/profiles/permission_detail.rb +139 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +330 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +63 -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 +37 -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 +147 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +158 -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/count_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/count_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/criteria.rb +137 -0
- data/src/com/zoho/crm/api/record/deleted_record.rb +159 -0
- data/src/com/zoho/crm/api/record/deleted_records_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/deleted_records_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record/download_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/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/image_upload.rb +215 -0
- data/src/com/zoho/crm/api/record/info.rb +120 -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 +139 -0
- data/src/com/zoho/crm/api/record/mass_update.rb +142 -0
- data/src/com/zoho/crm/api/record/mass_update_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +158 -0
- data/src/com/zoho/crm/api/record/mass_update_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_success_response.rb +123 -0
- data/src/com/zoho/crm/api/record/mass_update_territory.rb +82 -0
- data/src/com/zoho/crm/api/record/multi_select_lookup.rb +101 -0
- data/src/com/zoho/crm/api/record/multi_select_picklist.rb +82 -0
- data/src/com/zoho/crm/api/record/options.rb +12 -0
- data/src/com/zoho/crm/api/record/participants.rb +118 -0
- data/src/com/zoho/crm/api/record/price_book.rb +33 -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 +1132 -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/tax.rb +82 -0
- data/src/com/zoho/crm/api/record/territory.rb +140 -0
- data/src/com/zoho/crm/api/record/widget.rb +82 -0
- data/src/com/zoho/crm/api/record/wizard.rb +82 -0
- data/src/com/zoho/crm/api/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 +63 -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 +49 -0
- data/src/com/zoho/crm/api/sdk_config.rb +15 -0
- data/src/com/zoho/crm/api/send_mail/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/action_response.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/send_mail/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +82 -0
- data/src/com/zoho/crm/api/send_mail/inventory_details.rb +102 -0
- data/src/com/zoho/crm/api/send_mail/mail.rb +425 -0
- data/src/com/zoho/crm/api/send_mail/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/success_response.rb +123 -0
- data/src/com/zoho/crm/api/send_mail/template.rb +12 -0
- data/src/com/zoho/crm/api/send_mail/user_address.rb +139 -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 +178 -0
- data/src/com/zoho/crm/api/tags/tags_operations.rb +389 -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 +138 -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 +85 -0
- data/src/com/zoho/crm/api/territories/territories_operations.rb +49 -0
- data/src/com/zoho/crm/api/territories/territory.rb +274 -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 +749 -0
- data/src/com/zoho/crm/api/users/users_operations.rb +183 -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 +676 -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 +731 -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 +927 -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 +68 -0
- data/src/com/zoho/crm/api/variables/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_response.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/variables/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/variables/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/success_response.rb +123 -0
- data/src/com/zoho/crm/api/variables/variable.rb +194 -0
- data/src/com/zoho/crm/api/variables/variables_operations.rb +243 -0
- data/src/com/zoho/crm/api/wizards/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/wizards/button.rb +254 -0
- data/src/com/zoho/crm/api/wizards/chart_data.rb +120 -0
- data/src/com/zoho/crm/api/wizards/connection.rb +82 -0
- data/src/com/zoho/crm/api/wizards/container.rb +121 -0
- data/src/com/zoho/crm/api/wizards/node.rb +120 -0
- data/src/com/zoho/crm/api/wizards/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/wizards/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/wizards/screen.rb +101 -0
- data/src/com/zoho/crm/api/wizards/segment.rb +178 -0
- data/src/com/zoho/crm/api/wizards/transition.rb +82 -0
- data/src/com/zoho/crm/api/wizards/wizard.rb +275 -0
- data/src/com/zoho/crm/api/wizards/wizards_operations.rb +63 -0
- data/src/resources/JSONDetails.json +1 -0
- data/src/version.rb +3 -0
- metadata +597 -0
@@ -0,0 +1,123 @@
|
|
1
|
+
require_relative '../util/choice'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Wizards
|
6
|
+
require_relative 'response_handler'
|
7
|
+
class APIException
|
8
|
+
include Util::Model
|
9
|
+
include ResponseHandler
|
10
|
+
|
11
|
+
# Creates an instance of APIException
|
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,254 @@
|
|
1
|
+
require_relative '../custom_views/criteria'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Wizards
|
6
|
+
class Button
|
7
|
+
include Util::Model
|
8
|
+
|
9
|
+
# Creates an instance of Button
|
10
|
+
def initialize
|
11
|
+
@id = nil
|
12
|
+
@sequence_number = nil
|
13
|
+
@display_label = nil
|
14
|
+
@criteria = nil
|
15
|
+
@target_screen = nil
|
16
|
+
@type = nil
|
17
|
+
@color = nil
|
18
|
+
@shape = nil
|
19
|
+
@background_color = nil
|
20
|
+
@visibility = nil
|
21
|
+
@transition = nil
|
22
|
+
@key_modified = Hash.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# The method to get the id
|
26
|
+
# @return A Integer value
|
27
|
+
|
28
|
+
def id
|
29
|
+
@id
|
30
|
+
end
|
31
|
+
|
32
|
+
# The method to set the value to id
|
33
|
+
# @param id [Integer] A Integer
|
34
|
+
|
35
|
+
def id=(id)
|
36
|
+
if id!=nil and !id.is_a? Integer
|
37
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
38
|
+
end
|
39
|
+
@id = id
|
40
|
+
@key_modified['id'] = 1
|
41
|
+
end
|
42
|
+
|
43
|
+
# The method to get the sequence_number
|
44
|
+
# @return A Integer value
|
45
|
+
|
46
|
+
def sequence_number
|
47
|
+
@sequence_number
|
48
|
+
end
|
49
|
+
|
50
|
+
# The method to set the value to sequence_number
|
51
|
+
# @param sequence_number [Integer] A Integer
|
52
|
+
|
53
|
+
def sequence_number=(sequence_number)
|
54
|
+
if sequence_number!=nil and !sequence_number.is_a? Integer
|
55
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sequence_number EXPECTED TYPE: Integer', nil, nil)
|
56
|
+
end
|
57
|
+
@sequence_number = sequence_number
|
58
|
+
@key_modified['sequence_number'] = 1
|
59
|
+
end
|
60
|
+
|
61
|
+
# The method to get the display_label
|
62
|
+
# @return A String value
|
63
|
+
|
64
|
+
def display_label
|
65
|
+
@display_label
|
66
|
+
end
|
67
|
+
|
68
|
+
# The method to set the value to display_label
|
69
|
+
# @param display_label [String] A String
|
70
|
+
|
71
|
+
def display_label=(display_label)
|
72
|
+
if display_label!=nil and !display_label.is_a? String
|
73
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: display_label EXPECTED TYPE: String', nil, nil)
|
74
|
+
end
|
75
|
+
@display_label = display_label
|
76
|
+
@key_modified['display_label'] = 1
|
77
|
+
end
|
78
|
+
|
79
|
+
# The method to get the criteria
|
80
|
+
# @return An instance of CustomViews::Criteria
|
81
|
+
|
82
|
+
def criteria
|
83
|
+
@criteria
|
84
|
+
end
|
85
|
+
|
86
|
+
# The method to set the value to criteria
|
87
|
+
# @param criteria [CustomViews::Criteria] An instance of CustomViews::Criteria
|
88
|
+
|
89
|
+
def criteria=(criteria)
|
90
|
+
if criteria!=nil and !criteria.is_a? CustomViews::Criteria
|
91
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: criteria EXPECTED TYPE: Criteria', nil, nil)
|
92
|
+
end
|
93
|
+
@criteria = criteria
|
94
|
+
@key_modified['criteria'] = 1
|
95
|
+
end
|
96
|
+
|
97
|
+
# The method to get the target_screen
|
98
|
+
# @return An instance of Screen
|
99
|
+
|
100
|
+
def tarscreen
|
101
|
+
@target_screen
|
102
|
+
end
|
103
|
+
|
104
|
+
# The method to set the value to target_screen
|
105
|
+
# @param target_screen [Screen] An instance of Screen
|
106
|
+
|
107
|
+
def tarscreen=(target_screen)
|
108
|
+
if target_screen!=nil and !target_screen.is_a? Screen
|
109
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: target_screen EXPECTED TYPE: Screen', nil, nil)
|
110
|
+
end
|
111
|
+
@target_screen = target_screen
|
112
|
+
@key_modified['target_screen'] = 1
|
113
|
+
end
|
114
|
+
|
115
|
+
# The method to get the type
|
116
|
+
# @return A String value
|
117
|
+
|
118
|
+
def type
|
119
|
+
@type
|
120
|
+
end
|
121
|
+
|
122
|
+
# The method to set the value to type
|
123
|
+
# @param type [String] A String
|
124
|
+
|
125
|
+
def type=(type)
|
126
|
+
if type!=nil and !type.is_a? String
|
127
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
128
|
+
end
|
129
|
+
@type = type
|
130
|
+
@key_modified['type'] = 1
|
131
|
+
end
|
132
|
+
|
133
|
+
# The method to get the color
|
134
|
+
# @return A String value
|
135
|
+
|
136
|
+
def color
|
137
|
+
@color
|
138
|
+
end
|
139
|
+
|
140
|
+
# The method to set the value to color
|
141
|
+
# @param color [String] A String
|
142
|
+
|
143
|
+
def color=(color)
|
144
|
+
if color!=nil and !color.is_a? String
|
145
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: color EXPECTED TYPE: String', nil, nil)
|
146
|
+
end
|
147
|
+
@color = color
|
148
|
+
@key_modified['color'] = 1
|
149
|
+
end
|
150
|
+
|
151
|
+
# The method to get the shape
|
152
|
+
# @return A String value
|
153
|
+
|
154
|
+
def shape
|
155
|
+
@shape
|
156
|
+
end
|
157
|
+
|
158
|
+
# The method to set the value to shape
|
159
|
+
# @param shape [String] A String
|
160
|
+
|
161
|
+
def shape=(shape)
|
162
|
+
if shape!=nil and !shape.is_a? String
|
163
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: shape EXPECTED TYPE: String', nil, nil)
|
164
|
+
end
|
165
|
+
@shape = shape
|
166
|
+
@key_modified['shape'] = 1
|
167
|
+
end
|
168
|
+
|
169
|
+
# The method to get the background_color
|
170
|
+
# @return A String value
|
171
|
+
|
172
|
+
def background_color
|
173
|
+
@background_color
|
174
|
+
end
|
175
|
+
|
176
|
+
# The method to set the value to background_color
|
177
|
+
# @param background_color [String] A String
|
178
|
+
|
179
|
+
def background_color=(background_color)
|
180
|
+
if background_color!=nil and !background_color.is_a? String
|
181
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: background_color EXPECTED TYPE: String', nil, nil)
|
182
|
+
end
|
183
|
+
@background_color = background_color
|
184
|
+
@key_modified['background_color'] = 1
|
185
|
+
end
|
186
|
+
|
187
|
+
# The method to get the visibility
|
188
|
+
# @return A String value
|
189
|
+
|
190
|
+
def visibility
|
191
|
+
@visibility
|
192
|
+
end
|
193
|
+
|
194
|
+
# The method to set the value to visibility
|
195
|
+
# @param visibility [String] A String
|
196
|
+
|
197
|
+
def visibility=(visibility)
|
198
|
+
if visibility!=nil and !visibility.is_a? String
|
199
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: visibility EXPECTED TYPE: String', nil, nil)
|
200
|
+
end
|
201
|
+
@visibility = visibility
|
202
|
+
@key_modified['visibility'] = 1
|
203
|
+
end
|
204
|
+
|
205
|
+
# The method to get the transition
|
206
|
+
# @return An instance of Transition
|
207
|
+
|
208
|
+
def transition
|
209
|
+
@transition
|
210
|
+
end
|
211
|
+
|
212
|
+
# The method to set the value to transition
|
213
|
+
# @param transition [Transition] An instance of Transition
|
214
|
+
|
215
|
+
def transition=(transition)
|
216
|
+
if transition!=nil and !transition.is_a? Transition
|
217
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: transition EXPECTED TYPE: Transition', nil, nil)
|
218
|
+
end
|
219
|
+
@transition = transition
|
220
|
+
@key_modified['transition'] = 1
|
221
|
+
end
|
222
|
+
|
223
|
+
# The method to check if the user has modified the given key
|
224
|
+
# @param key [String] A String
|
225
|
+
# @return A Integer value
|
226
|
+
|
227
|
+
def is_key_modified(key)
|
228
|
+
if key!=nil and !key.is_a? String
|
229
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
230
|
+
end
|
231
|
+
if @key_modified.key?(key)
|
232
|
+
return @key_modified[key]
|
233
|
+
end
|
234
|
+
|
235
|
+
nil
|
236
|
+
end
|
237
|
+
|
238
|
+
# The method to mark the given key as modified
|
239
|
+
# @param key [String] A String
|
240
|
+
# @param modification [Integer] A Integer
|
241
|
+
|
242
|
+
def set_key_modified(key, modification)
|
243
|
+
if key!=nil and !key.is_a? String
|
244
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
245
|
+
end
|
246
|
+
if modification!=nil and !modification.is_a? Integer
|
247
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
248
|
+
end
|
249
|
+
@key_modified[key] = modification
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Wizards
|
5
|
+
class ChartData
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of ChartData
|
9
|
+
def initialize
|
10
|
+
@nodes = nil
|
11
|
+
@connections = nil
|
12
|
+
@canvas_width = nil
|
13
|
+
@canvas_height = nil
|
14
|
+
@key_modified = Hash.new
|
15
|
+
end
|
16
|
+
|
17
|
+
# The method to get the nodes
|
18
|
+
# @return An instance of Array
|
19
|
+
|
20
|
+
def nodes
|
21
|
+
@nodes
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to set the value to nodes
|
25
|
+
# @param nodes [Array] An instance of Array
|
26
|
+
|
27
|
+
def nodes=(nodes)
|
28
|
+
if nodes!=nil and !nodes.is_a? Array
|
29
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: nodes EXPECTED TYPE: Array', nil, nil)
|
30
|
+
end
|
31
|
+
@nodes = nodes
|
32
|
+
@key_modified['nodes'] = 1
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get the connections
|
36
|
+
# @return An instance of Array
|
37
|
+
|
38
|
+
def connections
|
39
|
+
@connections
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to connections
|
43
|
+
# @param connections [Array] An instance of Array
|
44
|
+
|
45
|
+
def connections=(connections)
|
46
|
+
if connections!=nil and !connections.is_a? Array
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: connections EXPECTED TYPE: Array', nil, nil)
|
48
|
+
end
|
49
|
+
@connections = connections
|
50
|
+
@key_modified['connections'] = 1
|
51
|
+
end
|
52
|
+
|
53
|
+
# The method to get the canvas_width
|
54
|
+
# @return A Integer value
|
55
|
+
|
56
|
+
def canvas_width
|
57
|
+
@canvas_width
|
58
|
+
end
|
59
|
+
|
60
|
+
# The method to set the value to canvas_width
|
61
|
+
# @param canvas_width [Integer] A Integer
|
62
|
+
|
63
|
+
def canvas_width=(canvas_width)
|
64
|
+
if canvas_width!=nil and !canvas_width.is_a? Integer
|
65
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: canvas_width EXPECTED TYPE: Integer', nil, nil)
|
66
|
+
end
|
67
|
+
@canvas_width = canvas_width
|
68
|
+
@key_modified['canvas_width'] = 1
|
69
|
+
end
|
70
|
+
|
71
|
+
# The method to get the canvas_height
|
72
|
+
# @return A Integer value
|
73
|
+
|
74
|
+
def canvas_height
|
75
|
+
@canvas_height
|
76
|
+
end
|
77
|
+
|
78
|
+
# The method to set the value to canvas_height
|
79
|
+
# @param canvas_height [Integer] A Integer
|
80
|
+
|
81
|
+
def canvas_height=(canvas_height)
|
82
|
+
if canvas_height!=nil and !canvas_height.is_a? Integer
|
83
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: canvas_height EXPECTED TYPE: Integer', nil, nil)
|
84
|
+
end
|
85
|
+
@canvas_height = canvas_height
|
86
|
+
@key_modified['canvas_height'] = 1
|
87
|
+
end
|
88
|
+
|
89
|
+
# The method to check if the user has modified the given key
|
90
|
+
# @param key [String] A String
|
91
|
+
# @return A Integer value
|
92
|
+
|
93
|
+
def is_key_modified(key)
|
94
|
+
if key!=nil and !key.is_a? String
|
95
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
96
|
+
end
|
97
|
+
if @key_modified.key?(key)
|
98
|
+
return @key_modified[key]
|
99
|
+
end
|
100
|
+
|
101
|
+
nil
|
102
|
+
end
|
103
|
+
|
104
|
+
# The method to mark the given key as modified
|
105
|
+
# @param key [String] A String
|
106
|
+
# @param modification [Integer] A Integer
|
107
|
+
|
108
|
+
def set_key_modified(key, modification)
|
109
|
+
if key!=nil and !key.is_a? String
|
110
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
111
|
+
end
|
112
|
+
if modification!=nil and !modification.is_a? Integer
|
113
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
114
|
+
end
|
115
|
+
@key_modified[key] = modification
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Wizards
|
5
|
+
class Connection
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Connection
|
9
|
+
def initialize
|
10
|
+
@source_button = nil
|
11
|
+
@target_screen = nil
|
12
|
+
@key_modified = Hash.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get the source_button
|
16
|
+
# @return An instance of Button
|
17
|
+
|
18
|
+
def source_button
|
19
|
+
@source_button
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to set the value to source_button
|
23
|
+
# @param source_button [Button] An instance of Button
|
24
|
+
|
25
|
+
def source_button=(source_button)
|
26
|
+
if source_button!=nil and !source_button.is_a? Button
|
27
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: source_button EXPECTED TYPE: Button', nil, nil)
|
28
|
+
end
|
29
|
+
@source_button = source_button
|
30
|
+
@key_modified['source_button'] = 1
|
31
|
+
end
|
32
|
+
|
33
|
+
# The method to get the target_screen
|
34
|
+
# @return An instance of Screen
|
35
|
+
|
36
|
+
def tarscreen
|
37
|
+
@target_screen
|
38
|
+
end
|
39
|
+
|
40
|
+
# The method to set the value to target_screen
|
41
|
+
# @param target_screen [Screen] An instance of Screen
|
42
|
+
|
43
|
+
def tarscreen=(target_screen)
|
44
|
+
if target_screen!=nil and !target_screen.is_a? Screen
|
45
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: target_screen EXPECTED TYPE: Screen', nil, nil)
|
46
|
+
end
|
47
|
+
@target_screen = target_screen
|
48
|
+
@key_modified['target_screen'] = 1
|
49
|
+
end
|
50
|
+
|
51
|
+
# The method to check if the user has modified the given key
|
52
|
+
# @param key [String] A String
|
53
|
+
# @return A Integer value
|
54
|
+
|
55
|
+
def is_key_modified(key)
|
56
|
+
if key!=nil and !key.is_a? String
|
57
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
58
|
+
end
|
59
|
+
if @key_modified.key?(key)
|
60
|
+
return @key_modified[key]
|
61
|
+
end
|
62
|
+
|
63
|
+
nil
|
64
|
+
end
|
65
|
+
|
66
|
+
# The method to mark the given key as modified
|
67
|
+
# @param key [String] A String
|
68
|
+
# @param modification [Integer] A Integer
|
69
|
+
|
70
|
+
def set_key_modified(key, modification)
|
71
|
+
if key!=nil and !key.is_a? String
|
72
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
73
|
+
end
|
74
|
+
if modification!=nil and !modification.is_a? Integer
|
75
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
76
|
+
end
|
77
|
+
@key_modified[key] = modification
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
require_relative '../layouts/layout'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Wizards
|
6
|
+
class Container
|
7
|
+
include Util::Model
|
8
|
+
|
9
|
+
# Creates an instance of Container
|
10
|
+
def initialize
|
11
|
+
@id = nil
|
12
|
+
@layout = nil
|
13
|
+
@chart_data = nil
|
14
|
+
@screens = nil
|
15
|
+
@key_modified = Hash.new
|
16
|
+
end
|
17
|
+
|
18
|
+
# The method to get the id
|
19
|
+
# @return A Integer value
|
20
|
+
|
21
|
+
def id
|
22
|
+
@id
|
23
|
+
end
|
24
|
+
|
25
|
+
# The method to set the value to id
|
26
|
+
# @param id [Integer] A Integer
|
27
|
+
|
28
|
+
def id=(id)
|
29
|
+
if id!=nil and !id.is_a? Integer
|
30
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
31
|
+
end
|
32
|
+
@id = id
|
33
|
+
@key_modified['id'] = 1
|
34
|
+
end
|
35
|
+
|
36
|
+
# The method to get the layout
|
37
|
+
# @return An instance of Layouts::Layout
|
38
|
+
|
39
|
+
def layout
|
40
|
+
@layout
|
41
|
+
end
|
42
|
+
|
43
|
+
# The method to set the value to layout
|
44
|
+
# @param layout [Layouts::Layout] An instance of Layouts::Layout
|
45
|
+
|
46
|
+
def layout=(layout)
|
47
|
+
if layout!=nil and !layout.is_a? Layouts::Layout
|
48
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: layout EXPECTED TYPE: Layout', nil, nil)
|
49
|
+
end
|
50
|
+
@layout = layout
|
51
|
+
@key_modified['layout'] = 1
|
52
|
+
end
|
53
|
+
|
54
|
+
# The method to get the chart_data
|
55
|
+
# @return An instance of ChartData
|
56
|
+
|
57
|
+
def chart_data
|
58
|
+
@chart_data
|
59
|
+
end
|
60
|
+
|
61
|
+
# The method to set the value to chart_data
|
62
|
+
# @param chart_data [ChartData] An instance of ChartData
|
63
|
+
|
64
|
+
def chart_data=(chart_data)
|
65
|
+
if chart_data!=nil and !chart_data.is_a? ChartData
|
66
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: chart_data EXPECTED TYPE: ChartData', nil, nil)
|
67
|
+
end
|
68
|
+
@chart_data = chart_data
|
69
|
+
@key_modified['chart_data'] = 1
|
70
|
+
end
|
71
|
+
|
72
|
+
# The method to get the screens
|
73
|
+
# @return An instance of Array
|
74
|
+
|
75
|
+
def screens
|
76
|
+
@screens
|
77
|
+
end
|
78
|
+
|
79
|
+
# The method to set the value to screens
|
80
|
+
# @param screens [Array] An instance of Array
|
81
|
+
|
82
|
+
def screens=(screens)
|
83
|
+
if screens!=nil and !screens.is_a? Array
|
84
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: screens EXPECTED TYPE: Array', nil, nil)
|
85
|
+
end
|
86
|
+
@screens = screens
|
87
|
+
@key_modified['screens'] = 1
|
88
|
+
end
|
89
|
+
|
90
|
+
# The method to check if the user has modified the given key
|
91
|
+
# @param key [String] A String
|
92
|
+
# @return A Integer value
|
93
|
+
|
94
|
+
def is_key_modified(key)
|
95
|
+
if key!=nil and !key.is_a? String
|
96
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
97
|
+
end
|
98
|
+
if @key_modified.key?(key)
|
99
|
+
return @key_modified[key]
|
100
|
+
end
|
101
|
+
|
102
|
+
nil
|
103
|
+
end
|
104
|
+
|
105
|
+
# The method to mark the given key as modified
|
106
|
+
# @param key [String] A String
|
107
|
+
# @param modification [Integer] A Integer
|
108
|
+
|
109
|
+
def set_key_modified(key, modification)
|
110
|
+
if key!=nil and !key.is_a? String
|
111
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
112
|
+
end
|
113
|
+
if modification!=nil and !modification.is_a? Integer
|
114
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
115
|
+
end
|
116
|
+
@key_modified[key] = modification
|
117
|
+
end
|
118
|
+
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|