ZOHOCRMSDK2_0_docgo 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/src/ZOHOCRMSDK2_0_docgo.rb +370 -0
- data/src/com/zoho/api/authenticator/oauth_token.rb +285 -0
- data/src/com/zoho/api/authenticator/store/db_store.rb +194 -0
- data/src/com/zoho/api/authenticator/store/file_store.rb +238 -0
- data/src/com/zoho/api/authenticator/store/token_store.rb +35 -0
- data/src/com/zoho/api/authenticator/token.rb +12 -0
- data/src/com/zoho/api/logger/sdk_logger.rb +64 -0
- data/src/com/zoho/crm/api/attachments/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/attachments/action_response.rb +12 -0
- data/src/com/zoho/crm/api/attachments/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/attachments/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/attachments/attachment.rb +369 -0
- data/src/com/zoho/crm/api/attachments/attachments_operations.rb +198 -0
- data/src/com/zoho/crm/api/attachments/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/attachments/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/attachments/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/attachments/success_response.rb +123 -0
- data/src/com/zoho/crm/api/blue_print/action_response.rb +12 -0
- data/src/com/zoho/crm/api/blue_print/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/blue_print/blue_print.rb +121 -0
- data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +69 -0
- data/src/com/zoho/crm/api/blue_print/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/blue_print/next_transition.rb +82 -0
- data/src/com/zoho/crm/api/blue_print/process_info.rb +253 -0
- data/src/com/zoho/crm/api/blue_print/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/blue_print/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/blue_print/success_response.rb +123 -0
- data/src/com/zoho/crm/api/blue_print/transition.rb +255 -0
- data/src/com/zoho/crm/api/blue_print/validation_error.rb +82 -0
- data/src/com/zoho/crm/api/bulk_read/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/action_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/bulk_read/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +76 -0
- data/src/com/zoho/crm/api/bulk_read/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_read/criteria.rb +137 -0
- data/src/com/zoho/crm/api/bulk_read/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_read/job_detail.rb +198 -0
- data/src/com/zoho/crm/api/bulk_read/query.rb +139 -0
- data/src/com/zoho/crm/api/bulk_read/request_wrapper.rb +102 -0
- data/src/com/zoho/crm/api/bulk_read/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_read/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/bulk_read/result.rb +139 -0
- data/src/com/zoho/crm/api/bulk_read/success_response.rb +123 -0
- data/src/com/zoho/crm/api/bulk_write/action_response.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/api_exception.rb +241 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +114 -0
- data/src/com/zoho/crm/api/bulk_write/bulk_write_response.rb +218 -0
- data/src/com/zoho/crm/api/bulk_write/call_back.rb +83 -0
- data/src/com/zoho/crm/api/bulk_write/field_mapping.rb +158 -0
- data/src/com/zoho/crm/api/bulk_write/file.rb +159 -0
- data/src/com/zoho/crm/api/bulk_write/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/bulk_write/request_wrapper.rb +121 -0
- data/src/com/zoho/crm/api/bulk_write/resource.rb +197 -0
- data/src/com/zoho/crm/api/bulk_write/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/response_wrapper.rb +12 -0
- data/src/com/zoho/crm/api/bulk_write/result.rb +63 -0
- data/src/com/zoho/crm/api/bulk_write/success_response.rb +123 -0
- data/src/com/zoho/crm/api/contact_roles/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/action_response.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/contact_roles/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/contact_roles/contact_role.rb +101 -0
- data/src/com/zoho/crm/api/contact_roles/contact_role_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +270 -0
- data/src/com/zoho/crm/api/contact_roles/record_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/record_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/record_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/contact_roles/record_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/record_response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/contact_roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/contact_roles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/contact_roles/success_response.rb +123 -0
- data/src/com/zoho/crm/api/currencies/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/currencies/action_response.rb +12 -0
- data/src/com/zoho/crm/api/currencies/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/currencies/base_currency_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/currencies/base_currency_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/base_currency_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/currencies/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/currencies/currencies_operations.rb +151 -0
- data/src/com/zoho/crm/api/currencies/currency.rb +292 -0
- data/src/com/zoho/crm/api/currencies/format.rb +102 -0
- data/src/com/zoho/crm/api/currencies/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/currencies/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/currencies/success_response.rb +123 -0
- data/src/com/zoho/crm/api/custom_views/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/custom_views/criteria.rb +137 -0
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +329 -0
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +75 -0
- data/src/com/zoho/crm/api/custom_views/info.rb +158 -0
- data/src/com/zoho/crm/api/custom_views/range.rb +82 -0
- data/src/com/zoho/crm/api/custom_views/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/custom_views/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/custom_views/shared_details.rb +120 -0
- data/src/com/zoho/crm/api/custom_views/translation.rb +120 -0
- data/src/com/zoho/crm/api/dc/au_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/cn_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/datacenter.rb +23 -0
- data/src/com/zoho/crm/api/dc/eu_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/in_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/jp_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/dc/us_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/exception/sdk_exception.rb +49 -0
- data/src/com/zoho/crm/api/fields/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/fields/association_details.rb +82 -0
- data/src/com/zoho/crm/api/fields/auto_number.rb +101 -0
- data/src/com/zoho/crm/api/fields/crypt.rb +158 -0
- data/src/com/zoho/crm/api/fields/currency.rb +82 -0
- data/src/com/zoho/crm/api/fields/field.rb +958 -0
- data/src/com/zoho/crm/api/fields/fields_operations.rb +71 -0
- data/src/com/zoho/crm/api/fields/formula.rb +82 -0
- data/src/com/zoho/crm/api/fields/lookup_field.rb +82 -0
- data/src/com/zoho/crm/api/fields/module.rb +159 -0
- data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +158 -0
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +177 -0
- data/src/com/zoho/crm/api/fields/private.rb +101 -0
- data/src/com/zoho/crm/api/fields/related_details.rb +139 -0
- data/src/com/zoho/crm/api/fields/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/fields/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/fields/tool_tip.rb +82 -0
- data/src/com/zoho/crm/api/fields/unique.rb +63 -0
- data/src/com/zoho/crm/api/fields/view_type.rb +120 -0
- data/src/com/zoho/crm/api/files/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/files/action_response.rb +12 -0
- data/src/com/zoho/crm/api/files/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/files/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/files/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/files/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/files/file_operations.rb +75 -0
- data/src/com/zoho/crm/api/files/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/files/success_response.rb +123 -0
- data/src/com/zoho/crm/api/header.rb +12 -0
- data/src/com/zoho/crm/api/header_map.rb +57 -0
- data/src/com/zoho/crm/api/initializer.rb +255 -0
- data/src/com/zoho/crm/api/layouts/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/layouts/layout.rb +274 -0
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +61 -0
- data/src/com/zoho/crm/api/layouts/properties.rb +102 -0
- data/src/com/zoho/crm/api/layouts/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/layouts/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/layouts/section.rb +235 -0
- data/src/com/zoho/crm/api/modules/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/modules/action_response.rb +12 -0
- data/src/com/zoho/crm/api/modules/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/modules/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/modules/argument.rb +82 -0
- data/src/com/zoho/crm/api/modules/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/modules/module.rb +884 -0
- data/src/com/zoho/crm/api/modules/modules_operations.rb +109 -0
- data/src/com/zoho/crm/api/modules/related_list_properties.rb +101 -0
- data/src/com/zoho/crm/api/modules/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/modules/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/modules/success_response.rb +123 -0
- data/src/com/zoho/crm/api/modules/territory.rb +101 -0
- data/src/com/zoho/crm/api/notes/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/notes/action_response.rb +12 -0
- data/src/com/zoho/crm/api/notes/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/notes/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/notes/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/notes/info.rb +120 -0
- data/src/com/zoho/crm/api/notes/note.rb +351 -0
- data/src/com/zoho/crm/api/notes/notes_operations.rb +214 -0
- data/src/com/zoho/crm/api/notes/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/notes/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/notes/success_response.rb +123 -0
- data/src/com/zoho/crm/api/notification/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/notification/action_response.rb +12 -0
- data/src/com/zoho/crm/api/notification/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/notification/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/notification/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/notification/info.rb +120 -0
- data/src/com/zoho/crm/api/notification/notification.rb +253 -0
- data/src/com/zoho/crm/api/notification/notification_operations.rb +160 -0
- data/src/com/zoho/crm/api/notification/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/notification/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/notification/success_response.rb +123 -0
- data/src/com/zoho/crm/api/org/action_response.rb +12 -0
- data/src/com/zoho/crm/api/org/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/org/file_body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/org/license_details.rb +158 -0
- data/src/com/zoho/crm/api/org/org.rb +633 -0
- data/src/com/zoho/crm/api/org/org_operations.rb +49 -0
- data/src/com/zoho/crm/api/org/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/org/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/org/success_response.rb +123 -0
- data/src/com/zoho/crm/api/param.rb +12 -0
- data/src/com/zoho/crm/api/parameter_map.rb +56 -0
- data/src/com/zoho/crm/api/profiles/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/profiles/category.rb +101 -0
- data/src/com/zoho/crm/api/profiles/permission_detail.rb +139 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +292 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +61 -0
- data/src/com/zoho/crm/api/profiles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/profiles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/profiles/section.rb +82 -0
- data/src/com/zoho/crm/api/query/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/query/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/query/query_operations.rb +36 -0
- data/src/com/zoho/crm/api/query/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/query/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/record/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/api_exception.rb +145 -0
- data/src/com/zoho/crm/api/record/apply_feature_execution.rb +63 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +177 -0
- data/src/com/zoho/crm/api/record/carry_over_tags.rb +101 -0
- data/src/com/zoho/crm/api/record/comment.rb +120 -0
- data/src/com/zoho/crm/api/record/consent.rb +187 -0
- data/src/com/zoho/crm/api/record/convert_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/convert_action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/convert_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/convert_body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record/criteria.rb +137 -0
- data/src/com/zoho/crm/api/record/deleted_record.rb +159 -0
- data/src/com/zoho/crm/api/record/deleted_records_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/deleted_records_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record/download_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/field.rb +2111 -0
- data/src/com/zoho/crm/api/record/file_body_wrapper.rb +68 -0
- data/src/com/zoho/crm/api/record/file_details.rb +329 -0
- data/src/com/zoho/crm/api/record/file_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/info.rb +120 -0
- data/src/com/zoho/crm/api/record/inventory_line_items.rb +237 -0
- data/src/com/zoho/crm/api/record/lead_converter.rb +196 -0
- data/src/com/zoho/crm/api/record/line_item_product.rb +67 -0
- data/src/com/zoho/crm/api/record/line_tax.rb +120 -0
- data/src/com/zoho/crm/api/record/mass_update.rb +142 -0
- data/src/com/zoho/crm/api/record/mass_update_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +158 -0
- data/src/com/zoho/crm/api/record/mass_update_response.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/mass_update_response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/record/mass_update_success_response.rb +123 -0
- data/src/com/zoho/crm/api/record/options.rb +12 -0
- data/src/com/zoho/crm/api/record/participants.rb +118 -0
- data/src/com/zoho/crm/api/record/pricing_details.rb +67 -0
- data/src/com/zoho/crm/api/record/record.rb +194 -0
- data/src/com/zoho/crm/api/record/record_operations.rb +961 -0
- data/src/com/zoho/crm/api/record/recurring_activity.rb +63 -0
- data/src/com/zoho/crm/api/record/remind_at.rb +63 -0
- data/src/com/zoho/crm/api/record/reminder.rb +82 -0
- data/src/com/zoho/crm/api/record/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/record/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/record/success_response.rb +163 -0
- data/src/com/zoho/crm/api/record/successful_convert.rb +103 -0
- data/src/com/zoho/crm/api/record/territory.rb +82 -0
- data/src/com/zoho/crm/api/related_lists/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/related_lists/related_list.rb +253 -0
- data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +61 -0
- data/src/com/zoho/crm/api/related_lists/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_lists/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/related_records/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_records/action_response.rb +12 -0
- data/src/com/zoho/crm/api/related_records/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/related_records/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/related_records/body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/related_records/file_body_wrapper.rb +66 -0
- data/src/com/zoho/crm/api/related_records/related_records_operations.rb +524 -0
- data/src/com/zoho/crm/api/related_records/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/related_records/response_wrapper.rb +86 -0
- data/src/com/zoho/crm/api/related_records/success_response.rb +123 -0
- data/src/com/zoho/crm/api/request_proxy.rb +17 -0
- data/src/com/zoho/crm/api/roles/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/roles/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/roles/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/roles/role.rb +197 -0
- data/src/com/zoho/crm/api/roles/roles_operations.rb +47 -0
- data/src/com/zoho/crm/api/sdk_config.rb +15 -0
- data/src/com/zoho/crm/api/share_records/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_response.rb +12 -0
- data/src/com/zoho/crm/api/share_records/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/share_records/api_exception.rb +131 -0
- data/src/com/zoho/crm/api/share_records/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/share_records/delete_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/delete_action_response.rb +12 -0
- data/src/com/zoho/crm/api/share_records/delete_action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/share_records/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/share_records/response_wrapper.rb +85 -0
- data/src/com/zoho/crm/api/share_records/share_record.rb +159 -0
- data/src/com/zoho/crm/api/share_records/share_records_operations.rb +130 -0
- data/src/com/zoho/crm/api/share_records/shared_through.rb +102 -0
- data/src/com/zoho/crm/api/share_records/success_response.rb +125 -0
- data/src/com/zoho/crm/api/tags/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/action_response.rb +12 -0
- data/src/com/zoho/crm/api/tags/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/tags/api_exception.rb +133 -0
- data/src/com/zoho/crm/api/tags/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/conflict_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/count_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/count_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/tags/info.rb +82 -0
- data/src/com/zoho/crm/api/tags/merge_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/tags/record_action_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/record_action_response.rb +12 -0
- data/src/com/zoho/crm/api/tags/record_action_wrapper.rb +122 -0
- data/src/com/zoho/crm/api/tags/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/tags/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/tags/success_response.rb +125 -0
- data/src/com/zoho/crm/api/tags/tag.rb +159 -0
- data/src/com/zoho/crm/api/tags/tags_operations.rb +382 -0
- data/src/com/zoho/crm/api/taxes/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/taxes/action_response.rb +12 -0
- data/src/com/zoho/crm/api/taxes/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/taxes/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/taxes/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/taxes/preference.rb +82 -0
- data/src/com/zoho/crm/api/taxes/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/taxes/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/taxes/success_response.rb +123 -0
- data/src/com/zoho/crm/api/taxes/tax.rb +139 -0
- data/src/com/zoho/crm/api/taxes/taxes_operations.rb +132 -0
- data/src/com/zoho/crm/api/territories/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/territories/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/territories/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/territories/territories_operations.rb +47 -0
- data/src/com/zoho/crm/api/territories/territory.rb +236 -0
- data/src/com/zoho/crm/api/user_signature.rb +29 -0
- data/src/com/zoho/crm/api/users/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/users/action_response.rb +12 -0
- data/src/com/zoho/crm/api/users/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/users/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/users/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users/customize_info.rb +158 -0
- data/src/com/zoho/crm/api/users/info.rb +120 -0
- data/src/com/zoho/crm/api/users/request_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/users/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/users/response_wrapper.rb +84 -0
- data/src/com/zoho/crm/api/users/shift.rb +82 -0
- data/src/com/zoho/crm/api/users/success_response.rb +123 -0
- data/src/com/zoho/crm/api/users/tab_theme.rb +82 -0
- data/src/com/zoho/crm/api/users/territory.rb +101 -0
- data/src/com/zoho/crm/api/users/theme.rb +158 -0
- data/src/com/zoho/crm/api/users/user.rb +698 -0
- data/src/com/zoho/crm/api/users/users_operations.rb +177 -0
- data/src/com/zoho/crm/api/util/api_http_connector.rb +114 -0
- data/src/com/zoho/crm/api/util/api_response.rb +18 -0
- data/src/com/zoho/crm/api/util/choice.rb +11 -0
- data/src/com/zoho/crm/api/util/common_api_handler.rb +241 -0
- data/src/com/zoho/crm/api/util/constants.rb +646 -0
- data/src/com/zoho/crm/api/util/converter.rb +238 -0
- data/src/com/zoho/crm/api/util/data_type_converter.rb +170 -0
- data/src/com/zoho/crm/api/util/downloader.rb +86 -0
- data/src/com/zoho/crm/api/util/form_data_converter.rb +159 -0
- data/src/com/zoho/crm/api/util/header_param_validator.rb +57 -0
- data/src/com/zoho/crm/api/util/json_converter.rb +729 -0
- data/src/com/zoho/crm/api/util/model.rb +7 -0
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +80 -0
- data/src/com/zoho/crm/api/util/stream_wrapper.rb +39 -0
- data/src/com/zoho/crm/api/util/utility.rb +871 -0
- data/src/com/zoho/crm/api/variable_groups/api_exception.rb +123 -0
- data/src/com/zoho/crm/api/variable_groups/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/variable_groups/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variable_groups/variable_group.rb +139 -0
- data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +65 -0
- data/src/com/zoho/crm/api/variables/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_response.rb +12 -0
- data/src/com/zoho/crm/api/variables/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/api_exception.rb +127 -0
- data/src/com/zoho/crm/api/variables/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/variables/response_handler.rb +12 -0
- data/src/com/zoho/crm/api/variables/response_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/variables/success_response.rb +123 -0
- data/src/com/zoho/crm/api/variables/variable.rb +175 -0
- data/src/com/zoho/crm/api/variables/variables_operations.rb +234 -0
- data/src/resources/JSONDetails.json +1 -0
- data/src/version.rb +3 -0
- metadata +500 -0
@@ -0,0 +1,158 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Users
|
5
|
+
class CustomizeInfo
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of CustomizeInfo
|
9
|
+
def initialize
|
10
|
+
@notes_desc = nil
|
11
|
+
@show_right_panel = nil
|
12
|
+
@bc_view = nil
|
13
|
+
@show_home = nil
|
14
|
+
@show_detail_view = nil
|
15
|
+
@unpin_recent_item = nil
|
16
|
+
@key_modified = Hash.new
|
17
|
+
end
|
18
|
+
|
19
|
+
# The method to get the notes_desc
|
20
|
+
# @return A Boolean value
|
21
|
+
|
22
|
+
def notes_desc
|
23
|
+
@notes_desc
|
24
|
+
end
|
25
|
+
|
26
|
+
# The method to set the value to notes_desc
|
27
|
+
# @param notes_desc [Boolean] A Boolean
|
28
|
+
|
29
|
+
def notes_desc=(notes_desc)
|
30
|
+
if notes_desc!=nil and ! [true, false].include?notes_desc
|
31
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: notes_desc EXPECTED TYPE: Boolean', nil, nil)
|
32
|
+
end
|
33
|
+
@notes_desc = notes_desc
|
34
|
+
@key_modified['notes_desc'] = 1
|
35
|
+
end
|
36
|
+
|
37
|
+
# The method to get the show_right_panel
|
38
|
+
# @return A String value
|
39
|
+
|
40
|
+
def show_right_panel
|
41
|
+
@show_right_panel
|
42
|
+
end
|
43
|
+
|
44
|
+
# The method to set the value to show_right_panel
|
45
|
+
# @param show_right_panel [String] A String
|
46
|
+
|
47
|
+
def show_right_panel=(show_right_panel)
|
48
|
+
if show_right_panel!=nil and !show_right_panel.is_a? String
|
49
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: show_right_panel EXPECTED TYPE: String', nil, nil)
|
50
|
+
end
|
51
|
+
@show_right_panel = show_right_panel
|
52
|
+
@key_modified['show_right_panel'] = 1
|
53
|
+
end
|
54
|
+
|
55
|
+
# The method to get the bc_view
|
56
|
+
# @return A String value
|
57
|
+
|
58
|
+
def bc_view
|
59
|
+
@bc_view
|
60
|
+
end
|
61
|
+
|
62
|
+
# The method to set the value to bc_view
|
63
|
+
# @param bc_view [String] A String
|
64
|
+
|
65
|
+
def bc_view=(bc_view)
|
66
|
+
if bc_view!=nil and !bc_view.is_a? String
|
67
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: bc_view EXPECTED TYPE: String', nil, nil)
|
68
|
+
end
|
69
|
+
@bc_view = bc_view
|
70
|
+
@key_modified['bc_view'] = 1
|
71
|
+
end
|
72
|
+
|
73
|
+
# The method to get the show_home
|
74
|
+
# @return A Boolean value
|
75
|
+
|
76
|
+
def show_home
|
77
|
+
@show_home
|
78
|
+
end
|
79
|
+
|
80
|
+
# The method to set the value to show_home
|
81
|
+
# @param show_home [Boolean] A Boolean
|
82
|
+
|
83
|
+
def show_home=(show_home)
|
84
|
+
if show_home!=nil and ! [true, false].include?show_home
|
85
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: show_home EXPECTED TYPE: Boolean', nil, nil)
|
86
|
+
end
|
87
|
+
@show_home = show_home
|
88
|
+
@key_modified['show_home'] = 1
|
89
|
+
end
|
90
|
+
|
91
|
+
# The method to get the show_detail_view
|
92
|
+
# @return A Boolean value
|
93
|
+
|
94
|
+
def show_detail_view
|
95
|
+
@show_detail_view
|
96
|
+
end
|
97
|
+
|
98
|
+
# The method to set the value to show_detail_view
|
99
|
+
# @param show_detail_view [Boolean] A Boolean
|
100
|
+
|
101
|
+
def show_detail_view=(show_detail_view)
|
102
|
+
if show_detail_view!=nil and ! [true, false].include?show_detail_view
|
103
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: show_detail_view EXPECTED TYPE: Boolean', nil, nil)
|
104
|
+
end
|
105
|
+
@show_detail_view = show_detail_view
|
106
|
+
@key_modified['show_detail_view'] = 1
|
107
|
+
end
|
108
|
+
|
109
|
+
# The method to get the unpin_recent_item
|
110
|
+
# @return A String value
|
111
|
+
|
112
|
+
def unpin_recent_item
|
113
|
+
@unpin_recent_item
|
114
|
+
end
|
115
|
+
|
116
|
+
# The method to set the value to unpin_recent_item
|
117
|
+
# @param unpin_recent_item [String] A String
|
118
|
+
|
119
|
+
def unpin_recent_item=(unpin_recent_item)
|
120
|
+
if unpin_recent_item!=nil and !unpin_recent_item.is_a? String
|
121
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: unpin_recent_item EXPECTED TYPE: String', nil, nil)
|
122
|
+
end
|
123
|
+
@unpin_recent_item = unpin_recent_item
|
124
|
+
@key_modified['unpin_recent_item'] = 1
|
125
|
+
end
|
126
|
+
|
127
|
+
# The method to check if the user has modified the given key
|
128
|
+
# @param key [String] A String
|
129
|
+
# @return A Integer value
|
130
|
+
|
131
|
+
def is_key_modified(key)
|
132
|
+
if key!=nil and !key.is_a? String
|
133
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
134
|
+
end
|
135
|
+
if @key_modified.key?(key)
|
136
|
+
return @key_modified[key]
|
137
|
+
end
|
138
|
+
|
139
|
+
nil
|
140
|
+
end
|
141
|
+
|
142
|
+
# The method to mark the given key as modified
|
143
|
+
# @param key [String] A String
|
144
|
+
# @param modification [Integer] A Integer
|
145
|
+
|
146
|
+
def set_key_modified(key, modification)
|
147
|
+
if key!=nil and !key.is_a? String
|
148
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
149
|
+
end
|
150
|
+
if modification!=nil and !modification.is_a? Integer
|
151
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
152
|
+
end
|
153
|
+
@key_modified[key] = modification
|
154
|
+
end
|
155
|
+
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Users
|
5
|
+
class Info
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Info
|
9
|
+
def initialize
|
10
|
+
@per_page = nil
|
11
|
+
@count = nil
|
12
|
+
@page = nil
|
13
|
+
@more_records = nil
|
14
|
+
@key_modified = Hash.new
|
15
|
+
end
|
16
|
+
|
17
|
+
# The method to get the per_page
|
18
|
+
# @return A Integer value
|
19
|
+
|
20
|
+
def per_page
|
21
|
+
@per_page
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to set the value to per_page
|
25
|
+
# @param per_page [Integer] A Integer
|
26
|
+
|
27
|
+
def per_page=(per_page)
|
28
|
+
if per_page!=nil and !per_page.is_a? Integer
|
29
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: per_page EXPECTED TYPE: Integer', nil, nil)
|
30
|
+
end
|
31
|
+
@per_page = per_page
|
32
|
+
@key_modified['per_page'] = 1
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get the count
|
36
|
+
# @return A Integer value
|
37
|
+
|
38
|
+
def count
|
39
|
+
@count
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to count
|
43
|
+
# @param count [Integer] A Integer
|
44
|
+
|
45
|
+
def count=(count)
|
46
|
+
if count!=nil and !count.is_a? Integer
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: count EXPECTED TYPE: Integer', nil, nil)
|
48
|
+
end
|
49
|
+
@count = count
|
50
|
+
@key_modified['count'] = 1
|
51
|
+
end
|
52
|
+
|
53
|
+
# The method to get the page
|
54
|
+
# @return A Integer value
|
55
|
+
|
56
|
+
def page
|
57
|
+
@page
|
58
|
+
end
|
59
|
+
|
60
|
+
# The method to set the value to page
|
61
|
+
# @param page [Integer] A Integer
|
62
|
+
|
63
|
+
def page=(page)
|
64
|
+
if page!=nil and !page.is_a? Integer
|
65
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: page EXPECTED TYPE: Integer', nil, nil)
|
66
|
+
end
|
67
|
+
@page = page
|
68
|
+
@key_modified['page'] = 1
|
69
|
+
end
|
70
|
+
|
71
|
+
# The method to get the more_records
|
72
|
+
# @return A Boolean value
|
73
|
+
|
74
|
+
def more_records
|
75
|
+
@more_records
|
76
|
+
end
|
77
|
+
|
78
|
+
# The method to set the value to more_records
|
79
|
+
# @param more_records [Boolean] A Boolean
|
80
|
+
|
81
|
+
def more_records=(more_records)
|
82
|
+
if more_records!=nil and ! [true, false].include?more_records
|
83
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: more_records EXPECTED TYPE: Boolean', nil, nil)
|
84
|
+
end
|
85
|
+
@more_records = more_records
|
86
|
+
@key_modified['more_records'] = 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,63 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Users
|
5
|
+
class RequestWrapper
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of RequestWrapper
|
9
|
+
def initialize
|
10
|
+
@users = nil
|
11
|
+
@key_modified = Hash.new
|
12
|
+
end
|
13
|
+
|
14
|
+
# The method to get the users
|
15
|
+
# @return An instance of Array
|
16
|
+
|
17
|
+
def users
|
18
|
+
@users
|
19
|
+
end
|
20
|
+
|
21
|
+
# The method to set the value to users
|
22
|
+
# @param users [Array] An instance of Array
|
23
|
+
|
24
|
+
def users=(users)
|
25
|
+
if users!=nil and !users.is_a? Array
|
26
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: users EXPECTED TYPE: Array', nil, nil)
|
27
|
+
end
|
28
|
+
@users = users
|
29
|
+
@key_modified['users'] = 1
|
30
|
+
end
|
31
|
+
|
32
|
+
# The method to check if the user has modified the given key
|
33
|
+
# @param key [String] A String
|
34
|
+
# @return A Integer value
|
35
|
+
|
36
|
+
def is_key_modified(key)
|
37
|
+
if key!=nil and !key.is_a? String
|
38
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
39
|
+
end
|
40
|
+
if @key_modified.key?(key)
|
41
|
+
return @key_modified[key]
|
42
|
+
end
|
43
|
+
|
44
|
+
nil
|
45
|
+
end
|
46
|
+
|
47
|
+
# The method to mark the given key as modified
|
48
|
+
# @param key [String] A String
|
49
|
+
# @param modification [Integer] A Integer
|
50
|
+
|
51
|
+
def set_key_modified(key, modification)
|
52
|
+
if key!=nil and !key.is_a? String
|
53
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
54
|
+
end
|
55
|
+
if modification!=nil and !modification.is_a? Integer
|
56
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
57
|
+
end
|
58
|
+
@key_modified[key] = modification
|
59
|
+
end
|
60
|
+
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Users
|
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
|
+
@users = nil
|
13
|
+
@info = nil
|
14
|
+
@key_modified = Hash.new
|
15
|
+
end
|
16
|
+
|
17
|
+
# The method to get the users
|
18
|
+
# @return An instance of Array
|
19
|
+
|
20
|
+
def users
|
21
|
+
@users
|
22
|
+
end
|
23
|
+
|
24
|
+
# The method to set the value to users
|
25
|
+
# @param users [Array] An instance of Array
|
26
|
+
|
27
|
+
def users=(users)
|
28
|
+
if users!=nil and !users.is_a? Array
|
29
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: users EXPECTED TYPE: Array', nil, nil)
|
30
|
+
end
|
31
|
+
@users = users
|
32
|
+
@key_modified['users'] = 1
|
33
|
+
end
|
34
|
+
|
35
|
+
# The method to get the info
|
36
|
+
# @return An instance of Info
|
37
|
+
|
38
|
+
def info
|
39
|
+
@info
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to info
|
43
|
+
# @param info [Info] An instance of Info
|
44
|
+
|
45
|
+
def info=(info)
|
46
|
+
if info!=nil and !info.is_a? Info
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: info EXPECTED TYPE: Info', nil, nil)
|
48
|
+
end
|
49
|
+
@info = info
|
50
|
+
@key_modified['info'] = 1
|
51
|
+
end
|
52
|
+
|
53
|
+
# The method to check if the user has modified the given key
|
54
|
+
# @param key [String] A String
|
55
|
+
# @return A Integer value
|
56
|
+
|
57
|
+
def is_key_modified(key)
|
58
|
+
if key!=nil and !key.is_a? String
|
59
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
60
|
+
end
|
61
|
+
if @key_modified.key?(key)
|
62
|
+
return @key_modified[key]
|
63
|
+
end
|
64
|
+
|
65
|
+
nil
|
66
|
+
end
|
67
|
+
|
68
|
+
# The method to mark the given key as modified
|
69
|
+
# @param key [String] A String
|
70
|
+
# @param modification [Integer] A Integer
|
71
|
+
|
72
|
+
def set_key_modified(key, modification)
|
73
|
+
if key!=nil and !key.is_a? String
|
74
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
75
|
+
end
|
76
|
+
if modification!=nil and !modification.is_a? Integer
|
77
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
78
|
+
end
|
79
|
+
@key_modified[key] = modification
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module Users
|
5
|
+
class Shift
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of Shift
|
9
|
+
def initialize
|
10
|
+
@id = nil
|
11
|
+
@name = nil
|
12
|
+
@key_modified = Hash.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get the id
|
16
|
+
# @return A Integer value
|
17
|
+
|
18
|
+
def id
|
19
|
+
@id
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to set the value to id
|
23
|
+
# @param id [Integer] A Integer
|
24
|
+
|
25
|
+
def id=(id)
|
26
|
+
if id!=nil and !id.is_a? Integer
|
27
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
28
|
+
end
|
29
|
+
@id = id
|
30
|
+
@key_modified['id'] = 1
|
31
|
+
end
|
32
|
+
|
33
|
+
# The method to get the name
|
34
|
+
# @return A String value
|
35
|
+
|
36
|
+
def name
|
37
|
+
@name
|
38
|
+
end
|
39
|
+
|
40
|
+
# The method to set the value to name
|
41
|
+
# @param name [String] A String
|
42
|
+
|
43
|
+
def name=(name)
|
44
|
+
if name!=nil and !name.is_a? String
|
45
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: String', nil, nil)
|
46
|
+
end
|
47
|
+
@name = name
|
48
|
+
@key_modified['name'] = 1
|
49
|
+
end
|
50
|
+
|
51
|
+
# The method to check if the user has modified the given key
|
52
|
+
# @param key [String] A String
|
53
|
+
# @return A Integer value
|
54
|
+
|
55
|
+
def is_key_modified(key)
|
56
|
+
if key!=nil and !key.is_a? String
|
57
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
58
|
+
end
|
59
|
+
if @key_modified.key?(key)
|
60
|
+
return @key_modified[key]
|
61
|
+
end
|
62
|
+
|
63
|
+
nil
|
64
|
+
end
|
65
|
+
|
66
|
+
# The method to mark the given key as modified
|
67
|
+
# @param key [String] A String
|
68
|
+
# @param modification [Integer] A Integer
|
69
|
+
|
70
|
+
def set_key_modified(key, modification)
|
71
|
+
if key!=nil and !key.is_a? String
|
72
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
73
|
+
end
|
74
|
+
if modification!=nil and !modification.is_a? Integer
|
75
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
76
|
+
end
|
77
|
+
@key_modified[key] = modification
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
require_relative '../util/choice'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module ZOHOCRMSDK
|
5
|
+
module Users
|
6
|
+
require_relative 'action_response'
|
7
|
+
class SuccessResponse
|
8
|
+
include Util::Model
|
9
|
+
include ActionResponse
|
10
|
+
|
11
|
+
# Creates an instance of SuccessResponse
|
12
|
+
def initialize
|
13
|
+
@status = nil
|
14
|
+
@code = nil
|
15
|
+
@message = nil
|
16
|
+
@details = nil
|
17
|
+
@key_modified = Hash.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to get the status
|
21
|
+
# @return An instance of Util::Choice
|
22
|
+
|
23
|
+
def status
|
24
|
+
@status
|
25
|
+
end
|
26
|
+
|
27
|
+
# The method to set the value to status
|
28
|
+
# @param status [Util::Choice] An instance of Util::Choice
|
29
|
+
|
30
|
+
def status=(status)
|
31
|
+
if status!=nil and !status.is_a? Util::Choice
|
32
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
|
33
|
+
end
|
34
|
+
@status = status
|
35
|
+
@key_modified['status'] = 1
|
36
|
+
end
|
37
|
+
|
38
|
+
# The method to get the code
|
39
|
+
# @return An instance of Util::Choice
|
40
|
+
|
41
|
+
def code
|
42
|
+
@code
|
43
|
+
end
|
44
|
+
|
45
|
+
# The method to set the value to code
|
46
|
+
# @param code [Util::Choice] An instance of Util::Choice
|
47
|
+
|
48
|
+
def code=(code)
|
49
|
+
if code!=nil and !code.is_a? Util::Choice
|
50
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
|
51
|
+
end
|
52
|
+
@code = code
|
53
|
+
@key_modified['code'] = 1
|
54
|
+
end
|
55
|
+
|
56
|
+
# The method to get the message
|
57
|
+
# @return An instance of Util::Choice
|
58
|
+
|
59
|
+
def message
|
60
|
+
@message
|
61
|
+
end
|
62
|
+
|
63
|
+
# The method to set the value to message
|
64
|
+
# @param message [Util::Choice] An instance of Util::Choice
|
65
|
+
|
66
|
+
def message=(message)
|
67
|
+
if message!=nil and !message.is_a? Util::Choice
|
68
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
|
69
|
+
end
|
70
|
+
@message = message
|
71
|
+
@key_modified['message'] = 1
|
72
|
+
end
|
73
|
+
|
74
|
+
# The method to get the details
|
75
|
+
# @return An instance of Hash
|
76
|
+
|
77
|
+
def details
|
78
|
+
@details
|
79
|
+
end
|
80
|
+
|
81
|
+
# The method to set the value to details
|
82
|
+
# @param details [Hash] An instance of Hash
|
83
|
+
|
84
|
+
def details=(details)
|
85
|
+
if details!=nil and !details.is_a? Hash
|
86
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
|
87
|
+
end
|
88
|
+
@details = details
|
89
|
+
@key_modified['details'] = 1
|
90
|
+
end
|
91
|
+
|
92
|
+
# The method to check if the user has modified the given key
|
93
|
+
# @param key [String] A String
|
94
|
+
# @return A Integer value
|
95
|
+
|
96
|
+
def is_key_modified(key)
|
97
|
+
if key!=nil and !key.is_a? String
|
98
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
99
|
+
end
|
100
|
+
if @key_modified.key?(key)
|
101
|
+
return @key_modified[key]
|
102
|
+
end
|
103
|
+
|
104
|
+
nil
|
105
|
+
end
|
106
|
+
|
107
|
+
# The method to mark the given key as modified
|
108
|
+
# @param key [String] A String
|
109
|
+
# @param modification [Integer] A Integer
|
110
|
+
|
111
|
+
def set_key_modified(key, modification)
|
112
|
+
if key!=nil and !key.is_a? String
|
113
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
114
|
+
end
|
115
|
+
if modification!=nil and !modification.is_a? Integer
|
116
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
117
|
+
end
|
118
|
+
@key_modified[key] = modification
|
119
|
+
end
|
120
|
+
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|