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,177 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Pipeline
|
5
|
+
class PickListValue
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of PickListValue
|
9
|
+
def initialize
|
10
|
+
@display_value = nil
|
11
|
+
@delete = nil
|
12
|
+
@sequence_number = nil
|
13
|
+
@actual_value = nil
|
14
|
+
@id = nil
|
15
|
+
@forecast_type = nil
|
16
|
+
@forecast_category = nil
|
17
|
+
@key_modified = Hash.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to get the display_value
|
21
|
+
# @return A String value
|
22
|
+
|
23
|
+
def display_value
|
24
|
+
@display_value
|
25
|
+
end
|
26
|
+
|
27
|
+
# The method to set the value to display_value
|
28
|
+
# @param display_value [String] A String
|
29
|
+
|
30
|
+
def display_value=(display_value)
|
31
|
+
if display_value!=nil and !display_value.is_a? String
|
32
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: display_value EXPECTED TYPE: String', nil, nil)
|
33
|
+
end
|
34
|
+
@display_value = display_value
|
35
|
+
@key_modified['display_value'] = 1
|
36
|
+
end
|
37
|
+
|
38
|
+
# The method to get the delete
|
39
|
+
# @return A Boolean value
|
40
|
+
|
41
|
+
def delete
|
42
|
+
@delete
|
43
|
+
end
|
44
|
+
|
45
|
+
# The method to set the value to delete
|
46
|
+
# @param delete [Boolean] A Boolean
|
47
|
+
|
48
|
+
def delete=(delete)
|
49
|
+
if delete!=nil and ! [true, false].include?delete
|
50
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: delete EXPECTED TYPE: Boolean', nil, nil)
|
51
|
+
end
|
52
|
+
@delete = delete
|
53
|
+
@key_modified['_delete'] = 1
|
54
|
+
end
|
55
|
+
|
56
|
+
# The method to get the sequence_number
|
57
|
+
# @return A Integer value
|
58
|
+
|
59
|
+
def sequence_number
|
60
|
+
@sequence_number
|
61
|
+
end
|
62
|
+
|
63
|
+
# The method to set the value to sequence_number
|
64
|
+
# @param sequence_number [Integer] A Integer
|
65
|
+
|
66
|
+
def sequence_number=(sequence_number)
|
67
|
+
if sequence_number!=nil and !sequence_number.is_a? Integer
|
68
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sequence_number EXPECTED TYPE: Integer', nil, nil)
|
69
|
+
end
|
70
|
+
@sequence_number = sequence_number
|
71
|
+
@key_modified['sequence_number'] = 1
|
72
|
+
end
|
73
|
+
|
74
|
+
# The method to get the actual_value
|
75
|
+
# @return A String value
|
76
|
+
|
77
|
+
def actual_value
|
78
|
+
@actual_value
|
79
|
+
end
|
80
|
+
|
81
|
+
# The method to set the value to actual_value
|
82
|
+
# @param actual_value [String] A String
|
83
|
+
|
84
|
+
def actual_value=(actual_value)
|
85
|
+
if actual_value!=nil and !actual_value.is_a? String
|
86
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: actual_value EXPECTED TYPE: String', nil, nil)
|
87
|
+
end
|
88
|
+
@actual_value = actual_value
|
89
|
+
@key_modified['actual_value'] = 1
|
90
|
+
end
|
91
|
+
|
92
|
+
# The method to get the id
|
93
|
+
# @return A Integer value
|
94
|
+
|
95
|
+
def id
|
96
|
+
@id
|
97
|
+
end
|
98
|
+
|
99
|
+
# The method to set the value to id
|
100
|
+
# @param id [Integer] A Integer
|
101
|
+
|
102
|
+
def id=(id)
|
103
|
+
if id!=nil and !id.is_a? Integer
|
104
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
105
|
+
end
|
106
|
+
@id = id
|
107
|
+
@key_modified['id'] = 1
|
108
|
+
end
|
109
|
+
|
110
|
+
# The method to get the forecast_type
|
111
|
+
# @return A String value
|
112
|
+
|
113
|
+
def forecast_type
|
114
|
+
@forecast_type
|
115
|
+
end
|
116
|
+
|
117
|
+
# The method to set the value to forecast_type
|
118
|
+
# @param forecast_type [String] A String
|
119
|
+
|
120
|
+
def forecast_type=(forecast_type)
|
121
|
+
if forecast_type!=nil and !forecast_type.is_a? String
|
122
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: forecast_type EXPECTED TYPE: String', nil, nil)
|
123
|
+
end
|
124
|
+
@forecast_type = forecast_type
|
125
|
+
@key_modified['forecast_type'] = 1
|
126
|
+
end
|
127
|
+
|
128
|
+
# The method to get the forecast_category
|
129
|
+
# @return An instance of ForecastCategory
|
130
|
+
|
131
|
+
def forecast_category
|
132
|
+
@forecast_category
|
133
|
+
end
|
134
|
+
|
135
|
+
# The method to set the value to forecast_category
|
136
|
+
# @param forecast_category [ForecastCategory] An instance of ForecastCategory
|
137
|
+
|
138
|
+
def forecast_category=(forecast_category)
|
139
|
+
if forecast_category!=nil and !forecast_category.is_a? ForecastCategory
|
140
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: forecast_category EXPECTED TYPE: ForecastCategory', nil, nil)
|
141
|
+
end
|
142
|
+
@forecast_category = forecast_category
|
143
|
+
@key_modified['forecast_category'] = 1
|
144
|
+
end
|
145
|
+
|
146
|
+
# The method to check if the user has modified the given key
|
147
|
+
# @param key [String] A String
|
148
|
+
# @return A Integer value
|
149
|
+
|
150
|
+
def is_key_modified(key)
|
151
|
+
if key!=nil and !key.is_a? String
|
152
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
153
|
+
end
|
154
|
+
if @key_modified.key?(key)
|
155
|
+
return @key_modified[key]
|
156
|
+
end
|
157
|
+
|
158
|
+
nil
|
159
|
+
end
|
160
|
+
|
161
|
+
# The method to mark the given key as modified
|
162
|
+
# @param key [String] A String
|
163
|
+
# @param modification [Integer] A Integer
|
164
|
+
|
165
|
+
def set_key_modified(key, modification)
|
166
|
+
if key!=nil and !key.is_a? String
|
167
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
168
|
+
end
|
169
|
+
if modification!=nil and !modification.is_a? Integer
|
170
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
171
|
+
end
|
172
|
+
@key_modified[key] = modification
|
173
|
+
end
|
174
|
+
|
175
|
+
end
|
176
|
+
end
|
177
|
+
end
|
@@ -0,0 +1,215 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Pipeline
|
5
|
+
class Pipeline
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Pipeline
|
9
|
+
def initialize
|
10
|
+
@from = nil
|
11
|
+
@to = nil
|
12
|
+
@parent = nil
|
13
|
+
@child_available = nil
|
14
|
+
@display_value = nil
|
15
|
+
@default = nil
|
16
|
+
@maps = nil
|
17
|
+
@actual_value = nil
|
18
|
+
@id = nil
|
19
|
+
@key_modified = Hash.new
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to get the from
|
23
|
+
# @return A Integer value
|
24
|
+
|
25
|
+
def from
|
26
|
+
@from
|
27
|
+
end
|
28
|
+
|
29
|
+
# The method to set the value to from
|
30
|
+
# @param from [Integer] A Integer
|
31
|
+
|
32
|
+
def from=(from)
|
33
|
+
if from!=nil and !from.is_a? Integer
|
34
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: from EXPECTED TYPE: Integer', nil, nil)
|
35
|
+
end
|
36
|
+
@from = from
|
37
|
+
@key_modified['from'] = 1
|
38
|
+
end
|
39
|
+
|
40
|
+
# The method to get the to
|
41
|
+
# @return A Integer value
|
42
|
+
|
43
|
+
def to
|
44
|
+
@to
|
45
|
+
end
|
46
|
+
|
47
|
+
# The method to set the value to to
|
48
|
+
# @param to [Integer] A Integer
|
49
|
+
|
50
|
+
def to=(to)
|
51
|
+
if to!=nil and !to.is_a? Integer
|
52
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: to EXPECTED TYPE: Integer', nil, nil)
|
53
|
+
end
|
54
|
+
@to = to
|
55
|
+
@key_modified['to'] = 1
|
56
|
+
end
|
57
|
+
|
58
|
+
# The method to get the parent
|
59
|
+
# @return An instance of Pipeline
|
60
|
+
|
61
|
+
def parent
|
62
|
+
@parent
|
63
|
+
end
|
64
|
+
|
65
|
+
# The method to set the value to parent
|
66
|
+
# @param parent [Pipeline] An instance of Pipeline
|
67
|
+
|
68
|
+
def parent=(parent)
|
69
|
+
if parent!=nil and !parent.is_a? Pipeline
|
70
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: parent EXPECTED TYPE: Pipeline', nil, nil)
|
71
|
+
end
|
72
|
+
@parent = parent
|
73
|
+
@key_modified['parent'] = 1
|
74
|
+
end
|
75
|
+
|
76
|
+
# The method to get the child_available
|
77
|
+
# @return A Boolean value
|
78
|
+
|
79
|
+
def child_available
|
80
|
+
@child_available
|
81
|
+
end
|
82
|
+
|
83
|
+
# The method to set the value to child_available
|
84
|
+
# @param child_available [Boolean] A Boolean
|
85
|
+
|
86
|
+
def child_available=(child_available)
|
87
|
+
if child_available!=nil and ! [true, false].include?child_available
|
88
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: child_available EXPECTED TYPE: Boolean', nil, nil)
|
89
|
+
end
|
90
|
+
@child_available = child_available
|
91
|
+
@key_modified['child_available'] = 1
|
92
|
+
end
|
93
|
+
|
94
|
+
# The method to get the display_value
|
95
|
+
# @return A String value
|
96
|
+
|
97
|
+
def display_value
|
98
|
+
@display_value
|
99
|
+
end
|
100
|
+
|
101
|
+
# The method to set the value to display_value
|
102
|
+
# @param display_value [String] A String
|
103
|
+
|
104
|
+
def display_value=(display_value)
|
105
|
+
if display_value!=nil and !display_value.is_a? String
|
106
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: display_value EXPECTED TYPE: String', nil, nil)
|
107
|
+
end
|
108
|
+
@display_value = display_value
|
109
|
+
@key_modified['display_value'] = 1
|
110
|
+
end
|
111
|
+
|
112
|
+
# The method to get the default
|
113
|
+
# @return A Boolean value
|
114
|
+
|
115
|
+
def default
|
116
|
+
@default
|
117
|
+
end
|
118
|
+
|
119
|
+
# The method to set the value to default
|
120
|
+
# @param default [Boolean] A Boolean
|
121
|
+
|
122
|
+
def default=(default)
|
123
|
+
if default!=nil and ! [true, false].include?default
|
124
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: default EXPECTED TYPE: Boolean', nil, nil)
|
125
|
+
end
|
126
|
+
@default = default
|
127
|
+
@key_modified['default'] = 1
|
128
|
+
end
|
129
|
+
|
130
|
+
# The method to get the maps
|
131
|
+
# @return An instance of Array
|
132
|
+
|
133
|
+
def maps
|
134
|
+
@maps
|
135
|
+
end
|
136
|
+
|
137
|
+
# The method to set the value to maps
|
138
|
+
# @param maps [Array] An instance of Array
|
139
|
+
|
140
|
+
def maps=(maps)
|
141
|
+
if maps!=nil and !maps.is_a? Array
|
142
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: maps EXPECTED TYPE: Array', nil, nil)
|
143
|
+
end
|
144
|
+
@maps = maps
|
145
|
+
@key_modified['maps'] = 1
|
146
|
+
end
|
147
|
+
|
148
|
+
# The method to get the actual_value
|
149
|
+
# @return A String value
|
150
|
+
|
151
|
+
def actual_value
|
152
|
+
@actual_value
|
153
|
+
end
|
154
|
+
|
155
|
+
# The method to set the value to actual_value
|
156
|
+
# @param actual_value [String] A String
|
157
|
+
|
158
|
+
def actual_value=(actual_value)
|
159
|
+
if actual_value!=nil and !actual_value.is_a? String
|
160
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: actual_value EXPECTED TYPE: String', nil, nil)
|
161
|
+
end
|
162
|
+
@actual_value = actual_value
|
163
|
+
@key_modified['actual_value'] = 1
|
164
|
+
end
|
165
|
+
|
166
|
+
# The method to get the id
|
167
|
+
# @return A Integer value
|
168
|
+
|
169
|
+
def id
|
170
|
+
@id
|
171
|
+
end
|
172
|
+
|
173
|
+
# The method to set the value to id
|
174
|
+
# @param id [Integer] A Integer
|
175
|
+
|
176
|
+
def id=(id)
|
177
|
+
if id!=nil and !id.is_a? Integer
|
178
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
179
|
+
end
|
180
|
+
@id = id
|
181
|
+
@key_modified['id'] = 1
|
182
|
+
end
|
183
|
+
|
184
|
+
# The method to check if the user has modified the given key
|
185
|
+
# @param key [String] A String
|
186
|
+
# @return A Integer value
|
187
|
+
|
188
|
+
def is_key_modified(key)
|
189
|
+
if key!=nil and !key.is_a? String
|
190
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
191
|
+
end
|
192
|
+
if @key_modified.key?(key)
|
193
|
+
return @key_modified[key]
|
194
|
+
end
|
195
|
+
|
196
|
+
nil
|
197
|
+
end
|
198
|
+
|
199
|
+
# The method to mark the given key as modified
|
200
|
+
# @param key [String] A String
|
201
|
+
# @param modification [Integer] A Integer
|
202
|
+
|
203
|
+
def set_key_modified(key, modification)
|
204
|
+
if key!=nil and !key.is_a? String
|
205
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
206
|
+
end
|
207
|
+
if modification!=nil and !modification.is_a? Integer
|
208
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
209
|
+
end
|
210
|
+
@key_modified[key] = modification
|
211
|
+
end
|
212
|
+
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
@@ -0,0 +1,167 @@
|
|
1
|
+
require_relative '../param'
|
2
|
+
require_relative '../exception/sdk_exception'
|
3
|
+
require_relative '../util/api_response'
|
4
|
+
require_relative '../util/common_api_handler'
|
5
|
+
require_relative '../util/constants'
|
6
|
+
|
7
|
+
module ZOHOCRMSDK
|
8
|
+
module Pipeline
|
9
|
+
class PipelineOperations
|
10
|
+
|
11
|
+
# Creates an instance of PipelineOperations with the given parameters
|
12
|
+
# @param layout_id [Integer] A Integer
|
13
|
+
def initialize(layout_id=nil)
|
14
|
+
if layout_id!=nil and !layout_id.is_a? Integer
|
15
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: layout_id EXPECTED TYPE: Integer', nil, nil)
|
16
|
+
end
|
17
|
+
@layout_id = layout_id
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to transfer and delete
|
21
|
+
# @param request [TransferAndDeleteWrapper] An instance of TransferAndDeleteWrapper
|
22
|
+
# @return An instance of APIResponse
|
23
|
+
# @raise SDKException
|
24
|
+
def transfer_and_delete(request)
|
25
|
+
if request!=nil and !request.is_a? TransferAndDeleteWrapper
|
26
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: TransferAndDeleteWrapper', nil, nil)
|
27
|
+
end
|
28
|
+
handler_instance = Handler::CommonAPIHandler.new
|
29
|
+
api_path = ''
|
30
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline/actions/transfer'
|
31
|
+
handler_instance.api_path = api_path
|
32
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
33
|
+
handler_instance.category_method = 'CREATE'
|
34
|
+
handler_instance.content_type = 'application/json'
|
35
|
+
handler_instance.request = request
|
36
|
+
handler_instance.mandatory_checker = true
|
37
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.TransferAndDeleteParam'), @layout_id)
|
38
|
+
require_relative 'transfer_action_handler'
|
39
|
+
handler_instance.api_call(TransferActionHandler.name, 'application/json')
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to get pipelines
|
43
|
+
# @return An instance of APIResponse
|
44
|
+
# @raise SDKException
|
45
|
+
def get_pipelines
|
46
|
+
handler_instance = Handler::CommonAPIHandler.new
|
47
|
+
api_path = ''
|
48
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline'
|
49
|
+
handler_instance.api_path = api_path
|
50
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
51
|
+
handler_instance.category_method = 'READ'
|
52
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.GetPipelinesParam'), @layout_id)
|
53
|
+
require_relative 'response_handler'
|
54
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
55
|
+
end
|
56
|
+
|
57
|
+
# The method to create pipelines
|
58
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
59
|
+
# @return An instance of APIResponse
|
60
|
+
# @raise SDKException
|
61
|
+
def create_pipelines(request)
|
62
|
+
if request!=nil and !request.is_a? BodyWrapper
|
63
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
64
|
+
end
|
65
|
+
handler_instance = Handler::CommonAPIHandler.new
|
66
|
+
api_path = ''
|
67
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline'
|
68
|
+
handler_instance.api_path = api_path
|
69
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
70
|
+
handler_instance.category_method = 'CREATE'
|
71
|
+
handler_instance.content_type = 'application/json'
|
72
|
+
handler_instance.request = request
|
73
|
+
handler_instance.mandatory_checker = true
|
74
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.CreatePipelinesParam'), @layout_id)
|
75
|
+
require_relative 'action_handler'
|
76
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
77
|
+
end
|
78
|
+
|
79
|
+
# The method to update pipelines
|
80
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
81
|
+
# @return An instance of APIResponse
|
82
|
+
# @raise SDKException
|
83
|
+
def update_pipelines(request)
|
84
|
+
if request!=nil and !request.is_a? BodyWrapper
|
85
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
86
|
+
end
|
87
|
+
handler_instance = Handler::CommonAPIHandler.new
|
88
|
+
api_path = ''
|
89
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline'
|
90
|
+
handler_instance.api_path = api_path
|
91
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
92
|
+
handler_instance.category_method = 'UPDATE'
|
93
|
+
handler_instance.content_type = 'application/json'
|
94
|
+
handler_instance.request = request
|
95
|
+
handler_instance.mandatory_checker = true
|
96
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.UpdatePipelinesParam'), @layout_id)
|
97
|
+
require_relative 'action_handler'
|
98
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
99
|
+
end
|
100
|
+
|
101
|
+
# The method to get pipeline
|
102
|
+
# @param pipeline_id [Integer] A Integer
|
103
|
+
# @return An instance of APIResponse
|
104
|
+
# @raise SDKException
|
105
|
+
def get_pipeline(pipeline_id)
|
106
|
+
if !pipeline_id.is_a? Integer
|
107
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: pipeline_id EXPECTED TYPE: Integer', nil, nil)
|
108
|
+
end
|
109
|
+
handler_instance = Handler::CommonAPIHandler.new
|
110
|
+
api_path = ''
|
111
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline/'
|
112
|
+
api_path = api_path + pipeline_id.to_s
|
113
|
+
handler_instance.api_path = api_path
|
114
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
115
|
+
handler_instance.category_method = 'READ'
|
116
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.GetPipelineParam'), @layout_id)
|
117
|
+
require_relative 'response_handler'
|
118
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
119
|
+
end
|
120
|
+
|
121
|
+
# The method to update pipeline
|
122
|
+
# @param pipeline_id [Integer] A Integer
|
123
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
124
|
+
# @return An instance of APIResponse
|
125
|
+
# @raise SDKException
|
126
|
+
def update_pipeline(pipeline_id, request)
|
127
|
+
if !pipeline_id.is_a? Integer
|
128
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: pipeline_id EXPECTED TYPE: Integer', nil, nil)
|
129
|
+
end
|
130
|
+
if request!=nil and !request.is_a? BodyWrapper
|
131
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
132
|
+
end
|
133
|
+
handler_instance = Handler::CommonAPIHandler.new
|
134
|
+
api_path = ''
|
135
|
+
api_path = api_path + '/crm/v2.1/settings/pipeline/'
|
136
|
+
api_path = api_path + pipeline_id.to_s
|
137
|
+
handler_instance.api_path = api_path
|
138
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
139
|
+
handler_instance.category_method = 'UPDATE'
|
140
|
+
handler_instance.content_type = 'application/json'
|
141
|
+
handler_instance.request = request
|
142
|
+
handler_instance.add_param(Param.new('layout_id', 'com.zoho.crm.api.Pipeline.UpdatePipelineParam'), @layout_id)
|
143
|
+
require_relative 'action_handler'
|
144
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
145
|
+
end
|
146
|
+
|
147
|
+
class TransferAndDeleteParam
|
148
|
+
end
|
149
|
+
|
150
|
+
class GetPipelinesParam
|
151
|
+
end
|
152
|
+
|
153
|
+
class CreatePipelinesParam
|
154
|
+
end
|
155
|
+
|
156
|
+
class UpdatePipelinesParam
|
157
|
+
end
|
158
|
+
|
159
|
+
class GetPipelineParam
|
160
|
+
end
|
161
|
+
|
162
|
+
class UpdatePipelineParam
|
163
|
+
end
|
164
|
+
|
165
|
+
end
|
166
|
+
end
|
167
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Pipeline
|
5
|
+
require_relative 'response_handler'
|
6
|
+
class ResponseWrapper
|
7
|
+
include Util::Model
|
8
|
+
include ResponseHandler
|
9
|
+
|
10
|
+
# Creates an instance of ResponseWrapper
|
11
|
+
def initialize
|
12
|
+
@pipeline = nil
|
13
|
+
@key_modified = Hash.new
|
14
|
+
end
|
15
|
+
|
16
|
+
# The method to get the pipeline
|
17
|
+
# @return An instance of Array
|
18
|
+
|
19
|
+
def pipeline
|
20
|
+
@pipeline
|
21
|
+
end
|
22
|
+
|
23
|
+
# The method to set the value to pipeline
|
24
|
+
# @param pipeline [Array] An instance of Array
|
25
|
+
|
26
|
+
def pipeline=(pipeline)
|
27
|
+
if pipeline!=nil and !pipeline.is_a? Array
|
28
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: pipeline EXPECTED TYPE: Array', nil, nil)
|
29
|
+
end
|
30
|
+
@pipeline = pipeline
|
31
|
+
@key_modified['pipeline'] = 1
|
32
|
+
end
|
33
|
+
|
34
|
+
# The method to check if the user has modified the given key
|
35
|
+
# @param key [String] A String
|
36
|
+
# @return A Integer value
|
37
|
+
|
38
|
+
def is_key_modified(key)
|
39
|
+
if key!=nil and !key.is_a? String
|
40
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
41
|
+
end
|
42
|
+
if @key_modified.key?(key)
|
43
|
+
return @key_modified[key]
|
44
|
+
end
|
45
|
+
|
46
|
+
nil
|
47
|
+
end
|
48
|
+
|
49
|
+
# The method to mark the given key as modified
|
50
|
+
# @param key [String] A String
|
51
|
+
# @param modification [Integer] A Integer
|
52
|
+
|
53
|
+
def set_key_modified(key, modification)
|
54
|
+
if key!=nil and !key.is_a? String
|
55
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
56
|
+
end
|
57
|
+
if modification!=nil and !modification.is_a? Integer
|
58
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
59
|
+
end
|
60
|
+
@key_modified[key] = modification
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|