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,120 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module EmailTemplates
|
5
|
+
class Attachment
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Attachment
|
9
|
+
def initialize
|
10
|
+
@size = nil
|
11
|
+
@file_name = nil
|
12
|
+
@file_id = nil
|
13
|
+
@id = nil
|
14
|
+
@key_modified = Hash.new
|
15
|
+
end
|
16
|
+
|
17
|
+
# The method to get the size
|
18
|
+
# @return A Integer value
|
19
|
+
|
20
|
+
def size
|
21
|
+
@size
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to set the value to size
|
25
|
+
# @param size [Integer] A Integer
|
26
|
+
|
27
|
+
def size=(size)
|
28
|
+
if size!=nil and !size.is_a? Integer
|
29
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: size EXPECTED TYPE: Integer', nil, nil)
|
30
|
+
end
|
31
|
+
@size = size
|
32
|
+
@key_modified['size'] = 1
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get the file_name
|
36
|
+
# @return A String value
|
37
|
+
|
38
|
+
def file_name
|
39
|
+
@file_name
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to file_name
|
43
|
+
# @param file_name [String] A String
|
44
|
+
|
45
|
+
def file_name=(file_name)
|
46
|
+
if file_name!=nil and !file_name.is_a? String
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: file_name EXPECTED TYPE: String', nil, nil)
|
48
|
+
end
|
49
|
+
@file_name = file_name
|
50
|
+
@key_modified['file_name'] = 1
|
51
|
+
end
|
52
|
+
|
53
|
+
# The method to get the file_id
|
54
|
+
# @return A String value
|
55
|
+
|
56
|
+
def file_id
|
57
|
+
@file_id
|
58
|
+
end
|
59
|
+
|
60
|
+
# The method to set the value to file_id
|
61
|
+
# @param file_id [String] A String
|
62
|
+
|
63
|
+
def file_id=(file_id)
|
64
|
+
if file_id!=nil and !file_id.is_a? String
|
65
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: file_id EXPECTED TYPE: String', nil, nil)
|
66
|
+
end
|
67
|
+
@file_id = file_id
|
68
|
+
@key_modified['file_id'] = 1
|
69
|
+
end
|
70
|
+
|
71
|
+
# The method to get the id
|
72
|
+
# @return A Integer value
|
73
|
+
|
74
|
+
def id
|
75
|
+
@id
|
76
|
+
end
|
77
|
+
|
78
|
+
# The method to set the value to id
|
79
|
+
# @param id [Integer] A Integer
|
80
|
+
|
81
|
+
def id=(id)
|
82
|
+
if id!=nil and !id.is_a? Integer
|
83
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
84
|
+
end
|
85
|
+
@id = id
|
86
|
+
@key_modified['id'] = 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,392 @@
|
|
1
|
+
require_relative '../modules/module'
|
2
|
+
require_relative '../send_mail/template'
|
3
|
+
require_relative '../users/user'
|
4
|
+
require_relative '../util/model'
|
5
|
+
|
6
|
+
module ZOHOCRMSDK
|
7
|
+
module EmailTemplates
|
8
|
+
require_relative '../send_mail/template'
|
9
|
+
|
10
|
+
class EmailTemplate
|
11
|
+
include SendMail::Template
|
12
|
+
include Util::Model
|
13
|
+
|
14
|
+
# Creates an instance of EmailTemplate
|
15
|
+
def initialize
|
16
|
+
@content = nil
|
17
|
+
@created_time = nil
|
18
|
+
@subject = nil
|
19
|
+
@module_1 = nil
|
20
|
+
@type = nil
|
21
|
+
@created_by = nil
|
22
|
+
@modified_time = nil
|
23
|
+
@last_usage_time = nil
|
24
|
+
@associated = nil
|
25
|
+
@name = nil
|
26
|
+
@modified_by = nil
|
27
|
+
@description = nil
|
28
|
+
@id = nil
|
29
|
+
@editor_mode = nil
|
30
|
+
@favorite = nil
|
31
|
+
@attachments = nil
|
32
|
+
@folder = nil
|
33
|
+
@consent_linked = nil
|
34
|
+
@key_modified = Hash.new
|
35
|
+
end
|
36
|
+
|
37
|
+
# The method to get the content
|
38
|
+
# @return A String value
|
39
|
+
|
40
|
+
def content
|
41
|
+
@content
|
42
|
+
end
|
43
|
+
|
44
|
+
# The method to set the value to content
|
45
|
+
# @param content [String] A String
|
46
|
+
|
47
|
+
def content=(content)
|
48
|
+
if content!=nil and !content.is_a? String
|
49
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: content EXPECTED TYPE: String', nil, nil)
|
50
|
+
end
|
51
|
+
@content = content
|
52
|
+
@key_modified['content'] = 1
|
53
|
+
end
|
54
|
+
|
55
|
+
# The method to get the created_time
|
56
|
+
# @return An instance of DateTime
|
57
|
+
|
58
|
+
def created_time
|
59
|
+
@created_time
|
60
|
+
end
|
61
|
+
|
62
|
+
# The method to set the value to created_time
|
63
|
+
# @param created_time [DateTime] An instance of DateTime
|
64
|
+
|
65
|
+
def created_time=(created_time)
|
66
|
+
if created_time!=nil and !created_time.is_a? DateTime
|
67
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: created_time EXPECTED TYPE: DateTime', nil, nil)
|
68
|
+
end
|
69
|
+
@created_time = created_time
|
70
|
+
@key_modified['created_time'] = 1
|
71
|
+
end
|
72
|
+
|
73
|
+
# The method to get the subject
|
74
|
+
# @return A String value
|
75
|
+
|
76
|
+
def subject
|
77
|
+
@subject
|
78
|
+
end
|
79
|
+
|
80
|
+
# The method to set the value to subject
|
81
|
+
# @param subject [String] A String
|
82
|
+
|
83
|
+
def subject=(subject)
|
84
|
+
if subject!=nil and !subject.is_a? String
|
85
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: subject EXPECTED TYPE: String', nil, nil)
|
86
|
+
end
|
87
|
+
@subject = subject
|
88
|
+
@key_modified['subject'] = 1
|
89
|
+
end
|
90
|
+
|
91
|
+
# The method to get the module
|
92
|
+
# @return An instance of Modules::Module
|
93
|
+
|
94
|
+
def module
|
95
|
+
@module_1
|
96
|
+
end
|
97
|
+
|
98
|
+
# The method to set the value to module
|
99
|
+
# @param module_1 [Modules::Module] An instance of Modules::Module
|
100
|
+
|
101
|
+
def module=(module_1)
|
102
|
+
if module_1!=nil and !module_1.is_a? Modules::Module
|
103
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE: Module', nil, nil)
|
104
|
+
end
|
105
|
+
@module_1 = module_1
|
106
|
+
@key_modified['module'] = 1
|
107
|
+
end
|
108
|
+
|
109
|
+
# The method to get the type
|
110
|
+
# @return A String value
|
111
|
+
|
112
|
+
def type
|
113
|
+
@type
|
114
|
+
end
|
115
|
+
|
116
|
+
# The method to set the value to type
|
117
|
+
# @param type [String] A String
|
118
|
+
|
119
|
+
def type=(type)
|
120
|
+
if type!=nil and !type.is_a? String
|
121
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
122
|
+
end
|
123
|
+
@type = type
|
124
|
+
@key_modified['type'] = 1
|
125
|
+
end
|
126
|
+
|
127
|
+
# The method to get the created_by
|
128
|
+
# @return An instance of Users::User
|
129
|
+
|
130
|
+
def created_by
|
131
|
+
@created_by
|
132
|
+
end
|
133
|
+
|
134
|
+
# The method to set the value to created_by
|
135
|
+
# @param created_by [Users::User] An instance of Users::User
|
136
|
+
|
137
|
+
def created_by=(created_by)
|
138
|
+
if created_by!=nil and !created_by.is_a? Users::User
|
139
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: created_by EXPECTED TYPE: User', nil, nil)
|
140
|
+
end
|
141
|
+
@created_by = created_by
|
142
|
+
@key_modified['created_by'] = 1
|
143
|
+
end
|
144
|
+
|
145
|
+
# The method to get the modified_time
|
146
|
+
# @return An instance of DateTime
|
147
|
+
|
148
|
+
def modified_time
|
149
|
+
@modified_time
|
150
|
+
end
|
151
|
+
|
152
|
+
# The method to set the value to modified_time
|
153
|
+
# @param modified_time [DateTime] An instance of DateTime
|
154
|
+
|
155
|
+
def modified_time=(modified_time)
|
156
|
+
if modified_time!=nil and !modified_time.is_a? DateTime
|
157
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modified_time EXPECTED TYPE: DateTime', nil, nil)
|
158
|
+
end
|
159
|
+
@modified_time = modified_time
|
160
|
+
@key_modified['modified_time'] = 1
|
161
|
+
end
|
162
|
+
|
163
|
+
# The method to get the last_usage_time
|
164
|
+
# @return An instance of DateTime
|
165
|
+
|
166
|
+
def last_usage_time
|
167
|
+
@last_usage_time
|
168
|
+
end
|
169
|
+
|
170
|
+
# The method to set the value to last_usage_time
|
171
|
+
# @param last_usage_time [DateTime] An instance of DateTime
|
172
|
+
|
173
|
+
def last_usage_time=(last_usage_time)
|
174
|
+
if last_usage_time!=nil and !last_usage_time.is_a? DateTime
|
175
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: last_usage_time EXPECTED TYPE: DateTime', nil, nil)
|
176
|
+
end
|
177
|
+
@last_usage_time = last_usage_time
|
178
|
+
@key_modified['last_usage_time'] = 1
|
179
|
+
end
|
180
|
+
|
181
|
+
# The method to get the associated
|
182
|
+
# @return A Boolean value
|
183
|
+
|
184
|
+
def associated
|
185
|
+
@associated
|
186
|
+
end
|
187
|
+
|
188
|
+
# The method to set the value to associated
|
189
|
+
# @param associated [Boolean] A Boolean
|
190
|
+
|
191
|
+
def associated=(associated)
|
192
|
+
if associated!=nil and ! [true, false].include?associated
|
193
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: associated EXPECTED TYPE: Boolean', nil, nil)
|
194
|
+
end
|
195
|
+
@associated = associated
|
196
|
+
@key_modified['associated'] = 1
|
197
|
+
end
|
198
|
+
|
199
|
+
# The method to get the name
|
200
|
+
# @return A String value
|
201
|
+
|
202
|
+
def name
|
203
|
+
@name
|
204
|
+
end
|
205
|
+
|
206
|
+
# The method to set the value to name
|
207
|
+
# @param name [String] A String
|
208
|
+
|
209
|
+
def name=(name)
|
210
|
+
if name!=nil and !name.is_a? String
|
211
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: String', nil, nil)
|
212
|
+
end
|
213
|
+
@name = name
|
214
|
+
@key_modified['name'] = 1
|
215
|
+
end
|
216
|
+
|
217
|
+
# The method to get the modified_by
|
218
|
+
# @return An instance of Users::User
|
219
|
+
|
220
|
+
def modified_by
|
221
|
+
@modified_by
|
222
|
+
end
|
223
|
+
|
224
|
+
# The method to set the value to modified_by
|
225
|
+
# @param modified_by [Users::User] An instance of Users::User
|
226
|
+
|
227
|
+
def modified_by=(modified_by)
|
228
|
+
if modified_by!=nil and !modified_by.is_a? Users::User
|
229
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modified_by EXPECTED TYPE: User', nil, nil)
|
230
|
+
end
|
231
|
+
@modified_by = modified_by
|
232
|
+
@key_modified['modified_by'] = 1
|
233
|
+
end
|
234
|
+
|
235
|
+
# The method to get the description
|
236
|
+
# @return A String value
|
237
|
+
|
238
|
+
def description
|
239
|
+
@description
|
240
|
+
end
|
241
|
+
|
242
|
+
# The method to set the value to description
|
243
|
+
# @param description [String] A String
|
244
|
+
|
245
|
+
def description=(description)
|
246
|
+
if description!=nil and !description.is_a? String
|
247
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: description EXPECTED TYPE: String', nil, nil)
|
248
|
+
end
|
249
|
+
@description = description
|
250
|
+
@key_modified['description'] = 1
|
251
|
+
end
|
252
|
+
|
253
|
+
# The method to get the id
|
254
|
+
# @return A Integer value
|
255
|
+
|
256
|
+
def id
|
257
|
+
@id
|
258
|
+
end
|
259
|
+
|
260
|
+
# The method to set the value to id
|
261
|
+
# @param id [Integer] A Integer
|
262
|
+
|
263
|
+
def id=(id)
|
264
|
+
if id!=nil and !id.is_a? Integer
|
265
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
266
|
+
end
|
267
|
+
@id = id
|
268
|
+
@key_modified['id'] = 1
|
269
|
+
end
|
270
|
+
|
271
|
+
# The method to get the editor_mode
|
272
|
+
# @return A String value
|
273
|
+
|
274
|
+
def editor_mode
|
275
|
+
@editor_mode
|
276
|
+
end
|
277
|
+
|
278
|
+
# The method to set the value to editor_mode
|
279
|
+
# @param editor_mode [String] A String
|
280
|
+
|
281
|
+
def editor_mode=(editor_mode)
|
282
|
+
if editor_mode!=nil and !editor_mode.is_a? String
|
283
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: editor_mode EXPECTED TYPE: String', nil, nil)
|
284
|
+
end
|
285
|
+
@editor_mode = editor_mode
|
286
|
+
@key_modified['editor_mode'] = 1
|
287
|
+
end
|
288
|
+
|
289
|
+
# The method to get the favorite
|
290
|
+
# @return A Boolean value
|
291
|
+
|
292
|
+
def favorite
|
293
|
+
@favorite
|
294
|
+
end
|
295
|
+
|
296
|
+
# The method to set the value to favorite
|
297
|
+
# @param favorite [Boolean] A Boolean
|
298
|
+
|
299
|
+
def favorite=(favorite)
|
300
|
+
if favorite!=nil and ! [true, false].include?favorite
|
301
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: favorite EXPECTED TYPE: Boolean', nil, nil)
|
302
|
+
end
|
303
|
+
@favorite = favorite
|
304
|
+
@key_modified['favorite'] = 1
|
305
|
+
end
|
306
|
+
|
307
|
+
# The method to get the attachments
|
308
|
+
# @return An instance of Array
|
309
|
+
|
310
|
+
def attachments
|
311
|
+
@attachments
|
312
|
+
end
|
313
|
+
|
314
|
+
# The method to set the value to attachments
|
315
|
+
# @param attachments [Array] An instance of Array
|
316
|
+
|
317
|
+
def attachments=(attachments)
|
318
|
+
if attachments!=nil and !attachments.is_a? Array
|
319
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: attachments EXPECTED TYPE: Array', nil, nil)
|
320
|
+
end
|
321
|
+
@attachments = attachments
|
322
|
+
@key_modified['attachments'] = 1
|
323
|
+
end
|
324
|
+
|
325
|
+
# The method to get the folder
|
326
|
+
# @return An instance of EmailTemplate
|
327
|
+
|
328
|
+
def folder
|
329
|
+
@folder
|
330
|
+
end
|
331
|
+
|
332
|
+
# The method to set the value to folder
|
333
|
+
# @param folder [EmailTemplate] An instance of EmailTemplate
|
334
|
+
|
335
|
+
def folder=(folder)
|
336
|
+
if folder!=nil and !folder.is_a? EmailTemplate
|
337
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: folder EXPECTED TYPE: EmailTemplate', nil, nil)
|
338
|
+
end
|
339
|
+
@folder = folder
|
340
|
+
@key_modified['folder'] = 1
|
341
|
+
end
|
342
|
+
|
343
|
+
# The method to get the consent_linked
|
344
|
+
# @return A Boolean value
|
345
|
+
|
346
|
+
def consent_linked
|
347
|
+
@consent_linked
|
348
|
+
end
|
349
|
+
|
350
|
+
# The method to set the value to consent_linked
|
351
|
+
# @param consent_linked [Boolean] A Boolean
|
352
|
+
|
353
|
+
def consent_linked=(consent_linked)
|
354
|
+
if consent_linked!=nil and ! [true, false].include?consent_linked
|
355
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: consent_linked EXPECTED TYPE: Boolean', nil, nil)
|
356
|
+
end
|
357
|
+
@consent_linked = consent_linked
|
358
|
+
@key_modified['consent_linked'] = 1
|
359
|
+
end
|
360
|
+
|
361
|
+
# The method to check if the user has modified the given key
|
362
|
+
# @param key [String] A String
|
363
|
+
# @return A Integer value
|
364
|
+
|
365
|
+
def is_key_modified(key)
|
366
|
+
if key!=nil and !key.is_a? String
|
367
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
368
|
+
end
|
369
|
+
if @key_modified.key?(key)
|
370
|
+
return @key_modified[key]
|
371
|
+
end
|
372
|
+
|
373
|
+
nil
|
374
|
+
end
|
375
|
+
|
376
|
+
# The method to mark the given key as modified
|
377
|
+
# @param key [String] A String
|
378
|
+
# @param modification [Integer] A Integer
|
379
|
+
|
380
|
+
def set_key_modified(key, modification)
|
381
|
+
if key!=nil and !key.is_a? String
|
382
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
383
|
+
end
|
384
|
+
if modification!=nil and !modification.is_a? Integer
|
385
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
386
|
+
end
|
387
|
+
@key_modified[key] = modification
|
388
|
+
end
|
389
|
+
|
390
|
+
end
|
391
|
+
end
|
392
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require_relative '../param'
|
2
|
+
require_relative '../parameter_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 EmailTemplates
|
10
|
+
class EmailTemplatesOperations
|
11
|
+
|
12
|
+
# Creates an instance of EmailTemplatesOperations
|
13
|
+
def initialize
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get email templates
|
17
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
18
|
+
# @return An instance of APIResponse
|
19
|
+
# @raise SDKException
|
20
|
+
def get_email_templates(param_instance=nil)
|
21
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
22
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
23
|
+
end
|
24
|
+
handler_instance = Handler::CommonAPIHandler.new
|
25
|
+
api_path = ''
|
26
|
+
api_path = api_path + '/crm/v2.1/settings/email_templates'
|
27
|
+
handler_instance.api_path = api_path
|
28
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
29
|
+
handler_instance.category_method = 'READ'
|
30
|
+
handler_instance.param = param_instance
|
31
|
+
require_relative 'response_handler'
|
32
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get email template by id
|
36
|
+
# @param id [Integer] A Integer
|
37
|
+
# @return An instance of APIResponse
|
38
|
+
# @raise SDKException
|
39
|
+
def get_email_template_by_id(id)
|
40
|
+
if !id.is_a? Integer
|
41
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
42
|
+
end
|
43
|
+
handler_instance = Handler::CommonAPIHandler.new
|
44
|
+
api_path = ''
|
45
|
+
api_path = api_path + '/crm/v2.1/settings/email_templates/'
|
46
|
+
api_path = api_path + id.to_s
|
47
|
+
handler_instance.api_path = api_path
|
48
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
49
|
+
handler_instance.category_method = 'READ'
|
50
|
+
require_relative 'response_handler'
|
51
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
52
|
+
end
|
53
|
+
|
54
|
+
class GetEmailTemplatesParam
|
55
|
+
@@module_1 = Param.new('module', 'com.zoho.crm.api.EmailTemplates.GetEmailTemplatesParam')
|
56
|
+
def self.module_1
|
57
|
+
@@module_1
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require_relative '../record/info'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module EmailTemplates
|
6
|
+
require_relative 'response_handler'
|
7
|
+
class ResponseWrapper
|
8
|
+
include Util::Model
|
9
|
+
include ResponseHandler
|
10
|
+
|
11
|
+
# Creates an instance of ResponseWrapper
|
12
|
+
def initialize
|
13
|
+
@email_templates = nil
|
14
|
+
@info = nil
|
15
|
+
@key_modified = Hash.new
|
16
|
+
end
|
17
|
+
|
18
|
+
# The method to get the email_templates
|
19
|
+
# @return An instance of Array
|
20
|
+
|
21
|
+
def email_templates
|
22
|
+
@email_templates
|
23
|
+
end
|
24
|
+
|
25
|
+
# The method to set the value to email_templates
|
26
|
+
# @param email_templates [Array] An instance of Array
|
27
|
+
|
28
|
+
def email_templates=(email_templates)
|
29
|
+
if email_templates!=nil and !email_templates.is_a? Array
|
30
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: email_templates EXPECTED TYPE: Array', nil, nil)
|
31
|
+
end
|
32
|
+
@email_templates = email_templates
|
33
|
+
@key_modified['email_templates'] = 1
|
34
|
+
end
|
35
|
+
|
36
|
+
# The method to get the info
|
37
|
+
# @return An instance of Record::Info
|
38
|
+
|
39
|
+
def info
|
40
|
+
@info
|
41
|
+
end
|
42
|
+
|
43
|
+
# The method to set the value to info
|
44
|
+
# @param info [Record::Info] An instance of Record::Info
|
45
|
+
|
46
|
+
def info=(info)
|
47
|
+
if info!=nil and !info.is_a? Record::Info
|
48
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: info EXPECTED TYPE: Info', nil, nil)
|
49
|
+
end
|
50
|
+
@info = info
|
51
|
+
@key_modified['info'] = 1
|
52
|
+
end
|
53
|
+
|
54
|
+
# The method to check if the user has modified the given key
|
55
|
+
# @param key [String] A String
|
56
|
+
# @return A Integer value
|
57
|
+
|
58
|
+
def is_key_modified(key)
|
59
|
+
if key!=nil and !key.is_a? String
|
60
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
61
|
+
end
|
62
|
+
if @key_modified.key?(key)
|
63
|
+
return @key_modified[key]
|
64
|
+
end
|
65
|
+
|
66
|
+
nil
|
67
|
+
end
|
68
|
+
|
69
|
+
# The method to mark the given key as modified
|
70
|
+
# @param key [String] A String
|
71
|
+
# @param modification [Integer] A Integer
|
72
|
+
|
73
|
+
def set_key_modified(key, modification)
|
74
|
+
if key!=nil and !key.is_a? String
|
75
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
76
|
+
end
|
77
|
+
if modification!=nil and !modification.is_a? Integer
|
78
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
79
|
+
end
|
80
|
+
@key_modified[key] = modification
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|