ZOHOCRMSDK2_0 1.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/ZOHOCRMSDK2_0.rb +6 -0
- data/src/com/zoho/api/authenticator/oauth_token.rb +202 -134
- data/src/com/zoho/api/authenticator/store/db_store.rb +141 -97
- data/src/com/zoho/api/authenticator/store/file_store.rb +178 -105
- data/src/com/zoho/api/authenticator/store/token_store.rb +30 -21
- data/src/com/zoho/api/authenticator/token.rb +10 -8
- data/src/com/zoho/api/logger/sdk_logger.rb +63 -51
- data/src/com/zoho/crm/api/attachments/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/attachments/action_response.rb +7 -5
- data/src/com/zoho/crm/api/attachments/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/attachments/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/attachments/attachment.rb +271 -269
- data/src/com/zoho/crm/api/attachments/attachments_operations.rb +168 -166
- data/src/com/zoho/crm/api/attachments/file_body_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/attachments/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/attachments/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/attachments/success_response.rb +91 -89
- data/src/com/zoho/crm/api/blue_print/action_response.rb +7 -5
- data/src/com/zoho/crm/api/blue_print/api_exception.rb +93 -91
- data/src/com/zoho/crm/api/blue_print/blue_print.rb +89 -87
- data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +56 -54
- data/src/com/zoho/crm/api/blue_print/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/blue_print/next_transition.rb +61 -59
- data/src/com/zoho/crm/api/blue_print/process_info.rb +187 -185
- data/src/com/zoho/crm/api/blue_print/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/blue_print/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/blue_print/success_response.rb +91 -89
- data/src/com/zoho/crm/api/blue_print/transition.rb +187 -185
- data/src/com/zoho/crm/api/blue_print/validation_error.rb +61 -59
- data/src/com/zoho/crm/api/bulk_read/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/bulk_read/action_response.rb +7 -5
- data/src/com/zoho/crm/api/bulk_read/action_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/bulk_read/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +61 -59
- data/src/com/zoho/crm/api/bulk_read/call_back.rb +61 -59
- data/src/com/zoho/crm/api/bulk_read/criteria.rb +101 -99
- data/src/com/zoho/crm/api/bulk_read/file_body_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/bulk_read/job_detail.rb +145 -143
- data/src/com/zoho/crm/api/bulk_read/query.rb +103 -101
- data/src/com/zoho/crm/api/bulk_read/request_wrapper.rb +75 -73
- data/src/com/zoho/crm/api/bulk_read/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/bulk_read/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/bulk_read/result.rb +103 -101
- data/src/com/zoho/crm/api/bulk_read/success_response.rb +91 -89
- data/src/com/zoho/crm/api/bulk_write/action_response.rb +7 -5
- data/src/com/zoho/crm/api/bulk_write/api_exception.rb +179 -177
- data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +93 -91
- data/src/com/zoho/crm/api/bulk_write/bulk_write_response.rb +161 -159
- data/src/com/zoho/crm/api/bulk_write/call_back.rb +61 -59
- data/src/com/zoho/crm/api/bulk_write/field_mapping.rb +117 -115
- data/src/com/zoho/crm/api/bulk_write/file.rb +117 -115
- data/src/com/zoho/crm/api/bulk_write/file_body_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/bulk_write/request_wrapper.rb +89 -87
- data/src/com/zoho/crm/api/bulk_write/resource.rb +145 -143
- data/src/com/zoho/crm/api/bulk_write/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/bulk_write/response_wrapper.rb +7 -5
- data/src/com/zoho/crm/api/bulk_write/result.rb +47 -45
- data/src/com/zoho/crm/api/bulk_write/success_response.rb +91 -89
- data/src/com/zoho/crm/api/contact_roles/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/contact_roles/action_response.rb +7 -5
- data/src/com/zoho/crm/api/contact_roles/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/contact_roles/api_exception.rb +99 -93
- data/src/com/zoho/crm/api/contact_roles/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/contact_roles/contact_role.rb +75 -73
- 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 +254 -134
- 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 +7 -5
- data/src/com/zoho/crm/api/contact_roles/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/contact_roles/success_response.rb +91 -89
- data/src/com/zoho/crm/api/currencies/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/currencies/action_response.rb +7 -5
- data/src/com/zoho/crm/api/currencies/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/currencies/api_exception.rb +97 -95
- data/src/com/zoho/crm/api/currencies/base_currency_action_handler.rb +7 -5
- data/src/com/zoho/crm/api/currencies/base_currency_action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/currencies/base_currency_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/currencies/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/currencies/currencies_operations.rb +136 -134
- data/src/com/zoho/crm/api/currencies/currency.rb +215 -213
- data/src/com/zoho/crm/api/currencies/format.rb +75 -73
- data/src/com/zoho/crm/api/currencies/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/currencies/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/currencies/success_response.rb +91 -89
- data/src/com/zoho/crm/api/custom_views/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/custom_views/criteria.rb +101 -99
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +243 -241
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +57 -55
- data/src/com/zoho/crm/api/custom_views/info.rb +117 -115
- data/src/com/zoho/crm/api/custom_views/range.rb +61 -59
- data/src/com/zoho/crm/api/custom_views/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/custom_views/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/custom_views/shared_details.rb +89 -87
- data/src/com/zoho/crm/api/custom_views/translation.rb +89 -87
- data/src/com/zoho/crm/api/dc/au_datacenter.rb +16 -13
- data/src/com/zoho/crm/api/dc/cn_datacenter.rb +16 -13
- data/src/com/zoho/crm/api/dc/datacenter.rb +18 -15
- data/src/com/zoho/crm/api/dc/eu_datacenter.rb +16 -13
- data/src/com/zoho/crm/api/dc/in_datacenter.rb +16 -13
- data/src/com/zoho/crm/api/dc/us_datacenter.rb +16 -13
- data/src/com/zoho/crm/api/exception/sdk_exception.rb +40 -38
- data/src/com/zoho/crm/api/fields/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/fields/association_details.rb +61 -59
- data/src/com/zoho/crm/api/fields/auto_number.rb +75 -73
- data/src/com/zoho/crm/api/fields/crypt.rb +117 -115
- data/src/com/zoho/crm/api/fields/currency.rb +61 -59
- data/src/com/zoho/crm/api/fields/field.rb +712 -710
- data/src/com/zoho/crm/api/fields/fields_operations.rb +54 -52
- data/src/com/zoho/crm/api/fields/formula.rb +61 -59
- data/src/com/zoho/crm/api/fields/lookup_field.rb +61 -59
- data/src/com/zoho/crm/api/fields/module.rb +117 -115
- data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +117 -115
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +131 -129
- data/src/com/zoho/crm/api/fields/private.rb +75 -73
- data/src/com/zoho/crm/api/fields/related_details.rb +103 -101
- data/src/com/zoho/crm/api/fields/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/fields/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/fields/tool_tip.rb +61 -59
- data/src/com/zoho/crm/api/fields/unique.rb +47 -45
- data/src/com/zoho/crm/api/fields/view_type.rb +89 -87
- data/src/com/zoho/crm/api/files/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/files/action_response.rb +7 -5
- data/src/com/zoho/crm/api/files/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/files/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/files/body_wrapper.rb +46 -44
- data/src/com/zoho/crm/api/files/file_body_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/files/file_operations.rb +58 -56
- data/src/com/zoho/crm/api/files/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/files/success_response.rb +91 -89
- data/src/com/zoho/crm/api/header.rb +10 -8
- data/src/com/zoho/crm/api/header_map.rb +39 -37
- data/src/com/zoho/crm/api/initializer.rb +148 -108
- data/src/com/zoho/crm/api/layouts/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/layouts/layout.rb +201 -199
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +47 -45
- data/src/com/zoho/crm/api/layouts/properties.rb +75 -73
- data/src/com/zoho/crm/api/layouts/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/layouts/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/layouts/section.rb +173 -171
- data/src/com/zoho/crm/api/modules/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/modules/action_response.rb +7 -5
- data/src/com/zoho/crm/api/modules/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/modules/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/modules/argument.rb +61 -59
- data/src/com/zoho/crm/api/modules/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/modules/module.rb +652 -650
- data/src/com/zoho/crm/api/modules/modules_operations.rb +92 -90
- data/src/com/zoho/crm/api/modules/related_list_properties.rb +75 -73
- data/src/com/zoho/crm/api/modules/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/modules/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/modules/success_response.rb +91 -89
- data/src/com/zoho/crm/api/modules/territory.rb +75 -73
- data/src/com/zoho/crm/api/notes/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/notes/action_response.rb +7 -5
- data/src/com/zoho/crm/api/notes/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/notes/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/notes/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/notes/info.rb +89 -87
- data/src/com/zoho/crm/api/notes/note.rb +257 -255
- data/src/com/zoho/crm/api/notes/notes_operations.rb +184 -182
- data/src/com/zoho/crm/api/notes/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/notes/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/notes/success_response.rb +91 -89
- data/src/com/zoho/crm/api/notification/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/notification/action_response.rb +7 -5
- data/src/com/zoho/crm/api/notification/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/notification/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/notification/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/notification/info.rb +89 -87
- data/src/com/zoho/crm/api/notification/notification.rb +187 -185
- data/src/com/zoho/crm/api/notification/notification_operations.rb +139 -137
- data/src/com/zoho/crm/api/notification/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/notification/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/notification/success_response.rb +91 -89
- data/src/com/zoho/crm/api/org/action_response.rb +7 -5
- data/src/com/zoho/crm/api/org/api_exception.rb +93 -91
- data/src/com/zoho/crm/api/org/file_body_wrapper.rb +46 -44
- data/src/com/zoho/crm/api/org/license_details.rb +117 -115
- data/src/com/zoho/crm/api/org/org.rb +467 -465
- data/src/com/zoho/crm/api/org/org_operations.rb +39 -37
- data/src/com/zoho/crm/api/org/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/org/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/org/success_response.rb +91 -89
- data/src/com/zoho/crm/api/param.rb +10 -8
- data/src/com/zoho/crm/api/parameter_map.rb +39 -37
- data/src/com/zoho/crm/api/profiles/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/profiles/category.rb +75 -73
- data/src/com/zoho/crm/api/profiles/permission_detail.rb +103 -101
- data/src/com/zoho/crm/api/profiles/profile.rb +215 -213
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +47 -45
- data/src/com/zoho/crm/api/profiles/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/profiles/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/profiles/section.rb +61 -59
- data/src/com/zoho/crm/api/query/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/query/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/query/query_operations.rb +26 -24
- data/src/com/zoho/crm/api/query/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/query/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/record/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/action_response.rb +7 -5
- data/src/com/zoho/crm/api/record/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/record/api_exception.rb +113 -111
- data/src/com/zoho/crm/api/record/body_wrapper.rb +117 -115
- data/src/com/zoho/crm/api/record/carry_over_tags.rb +75 -73
- data/src/com/zoho/crm/api/record/comment.rb +89 -87
- data/src/com/zoho/crm/api/record/consent.rb +130 -128
- data/src/com/zoho/crm/api/record/convert_action_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/convert_action_response.rb +7 -5
- data/src/com/zoho/crm/api/record/convert_action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/record/convert_body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/record/criteria.rb +101 -99
- data/src/com/zoho/crm/api/record/deleted_record.rb +117 -115
- data/src/com/zoho/crm/api/record/deleted_records_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/deleted_records_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/record/download_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/field.rb +2055 -2053
- data/src/com/zoho/crm/api/record/file_body_wrapper.rb +50 -48
- data/src/com/zoho/crm/api/record/file_details.rb +243 -241
- data/src/com/zoho/crm/api/record/file_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/info.rb +89 -87
- data/src/com/zoho/crm/api/record/inventory_line_items.rb +166 -164
- data/src/com/zoho/crm/api/record/lead_converter.rb +145 -143
- data/src/com/zoho/crm/api/record/line_item_product.rb +45 -43
- data/src/com/zoho/crm/api/record/line_tax.rb +89 -87
- data/src/com/zoho/crm/api/record/mass_update.rb +105 -103
- data/src/com/zoho/crm/api/record/mass_update_action_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/mass_update_action_response.rb +7 -5
- data/src/com/zoho/crm/api/record/mass_update_action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +117 -115
- data/src/com/zoho/crm/api/record/mass_update_response.rb +7 -5
- data/src/com/zoho/crm/api/record/mass_update_response_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/mass_update_response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/record/mass_update_success_response.rb +91 -89
- data/src/com/zoho/crm/api/record/options.rb +7 -5
- data/src/com/zoho/crm/api/record/participants.rb +82 -80
- data/src/com/zoho/crm/api/record/pricing_details.rb +45 -43
- data/src/com/zoho/crm/api/record/record.rb +139 -137
- data/src/com/zoho/crm/api/record/record_operations.rb +947 -742
- data/src/com/zoho/crm/api/record/recurring_activity.rb +47 -45
- data/src/com/zoho/crm/api/record/remind_at.rb +47 -45
- data/src/com/zoho/crm/api/record/reminder.rb +61 -59
- data/src/com/zoho/crm/api/record/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/record/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/record/success_response.rb +121 -119
- data/src/com/zoho/crm/api/record/successful_convert.rb +77 -75
- data/src/com/zoho/crm/api/record/territory.rb +61 -59
- data/src/com/zoho/crm/api/related_lists/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/related_lists/related_list.rb +187 -185
- data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +47 -45
- data/src/com/zoho/crm/api/related_lists/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/related_lists/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/related_records/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/related_records/action_response.rb +7 -5
- data/src/com/zoho/crm/api/related_records/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/related_records/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/related_records/body_wrapper.rb +46 -44
- data/src/com/zoho/crm/api/related_records/file_body_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/related_records/related_records_operations.rb +476 -215
- data/src/com/zoho/crm/api/related_records/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/related_records/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/related_records/success_response.rb +91 -89
- data/src/com/zoho/crm/api/request_proxy.rb +12 -11
- data/src/com/zoho/crm/api/roles/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/roles/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/roles/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/roles/role.rb +145 -143
- data/src/com/zoho/crm/api/roles/roles_operations.rb +37 -35
- data/src/com/zoho/crm/api/sdk_config.rb +5 -68
- data/src/com/zoho/crm/api/share_records/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/share_records/action_response.rb +7 -5
- data/src/com/zoho/crm/api/share_records/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/share_records/api_exception.rb +99 -97
- data/src/com/zoho/crm/api/share_records/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/share_records/delete_action_handler.rb +7 -5
- data/src/com/zoho/crm/api/share_records/delete_action_response.rb +7 -5
- data/src/com/zoho/crm/api/share_records/delete_action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/share_records/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/share_records/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/share_records/share_record.rb +117 -115
- data/src/com/zoho/crm/api/share_records/share_records_operations.rb +109 -107
- data/src/com/zoho/crm/api/share_records/shared_through.rb +75 -73
- data/src/com/zoho/crm/api/share_records/success_response.rb +93 -91
- data/src/com/zoho/crm/api/tags/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/tags/action_response.rb +7 -5
- data/src/com/zoho/crm/api/tags/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/tags/api_exception.rb +101 -99
- data/src/com/zoho/crm/api/tags/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/tags/conflict_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/tags/count_handler.rb +7 -5
- data/src/com/zoho/crm/api/tags/count_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/tags/info.rb +61 -59
- data/src/com/zoho/crm/api/tags/merge_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/tags/record_action_handler.rb +7 -5
- data/src/com/zoho/crm/api/tags/record_action_response.rb +7 -5
- data/src/com/zoho/crm/api/tags/record_action_wrapper.rb +91 -89
- data/src/com/zoho/crm/api/tags/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/tags/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/tags/success_response.rb +93 -91
- data/src/com/zoho/crm/api/tags/tag.rb +117 -115
- data/src/com/zoho/crm/api/tags/tags_operations.rb +338 -336
- data/src/com/zoho/crm/api/taxes/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/taxes/action_response.rb +7 -5
- data/src/com/zoho/crm/api/taxes/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/taxes/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/taxes/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/taxes/preference.rb +61 -59
- data/src/com/zoho/crm/api/taxes/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/taxes/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/taxes/success_response.rb +91 -89
- data/src/com/zoho/crm/api/taxes/tax.rb +103 -101
- data/src/com/zoho/crm/api/taxes/taxes_operations.rb +114 -112
- data/src/com/zoho/crm/api/territories/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/territories/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/territories/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/territories/territories_operations.rb +37 -35
- data/src/com/zoho/crm/api/territories/territory.rb +173 -171
- data/src/com/zoho/crm/api/user_signature.rb +19 -17
- data/src/com/zoho/crm/api/users/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/users/action_response.rb +7 -5
- data/src/com/zoho/crm/api/users/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/users/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/users/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/users/customize_info.rb +117 -115
- data/src/com/zoho/crm/api/users/info.rb +89 -87
- data/src/com/zoho/crm/api/users/request_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/users/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/users/response_wrapper.rb +63 -61
- data/src/com/zoho/crm/api/users/shift.rb +61 -59
- data/src/com/zoho/crm/api/users/success_response.rb +91 -89
- data/src/com/zoho/crm/api/users/tab_theme.rb +61 -59
- data/src/com/zoho/crm/api/users/territory.rb +75 -73
- data/src/com/zoho/crm/api/users/theme.rb +117 -115
- data/src/com/zoho/crm/api/users/user.rb +489 -487
- data/src/com/zoho/crm/api/users/users_operations.rb +152 -150
- data/src/com/zoho/crm/api/util/api_http_connector.rb +85 -83
- data/src/com/zoho/crm/api/util/api_response.rb +16 -14
- data/src/com/zoho/crm/api/util/choice.rb +8 -6
- data/src/com/zoho/crm/api/util/common_api_handler.rb +162 -157
- data/src/com/zoho/crm/api/util/constants.rb +382 -276
- data/src/com/zoho/crm/api/util/converter.rb +169 -150
- data/src/com/zoho/crm/api/util/data_type_converter.rb +129 -121
- data/src/com/zoho/crm/api/util/downloader.rb +60 -57
- data/src/com/zoho/crm/api/util/form_data_converter.rb +116 -125
- data/src/com/zoho/crm/api/util/header_param_validator.rb +47 -45
- data/src/com/zoho/crm/api/util/json_converter.rb +537 -534
- data/src/com/zoho/crm/api/util/model.rb +6 -4
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +61 -59
- data/src/com/zoho/crm/api/util/stream_wrapper.rb +27 -25
- data/src/com/zoho/crm/api/util/utility.rb +697 -570
- data/src/com/zoho/crm/api/variable_groups/api_exception.rb +91 -89
- data/src/com/zoho/crm/api/variable_groups/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/variable_groups/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/variable_groups/variable_group.rb +103 -101
- data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +54 -52
- data/src/com/zoho/crm/api/variables/action_handler.rb +7 -5
- data/src/com/zoho/crm/api/variables/action_response.rb +7 -5
- data/src/com/zoho/crm/api/variables/action_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/variables/api_exception.rb +95 -93
- data/src/com/zoho/crm/api/variables/body_wrapper.rb +47 -45
- data/src/com/zoho/crm/api/variables/response_handler.rb +7 -5
- data/src/com/zoho/crm/api/variables/response_wrapper.rb +48 -46
- data/src/com/zoho/crm/api/variables/success_response.rb +91 -89
- data/src/com/zoho/crm/api/variables/variable.rb +129 -127
- data/src/com/zoho/crm/api/variables/variables_operations.rb +231 -229
- data/src/resources/JSONDetails.json +1 -1
- data/src/version.rb +3 -3
- metadata +10 -4
@@ -1,538 +1,644 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
class
|
5
|
-
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
# This class uses the SDK constants name reference.
|
5
|
+
class Constants
|
6
|
+
API_NAME = 'api_name'
|
6
7
|
|
7
|
-
|
8
|
+
RESPONSECODE_OK = 200
|
8
9
|
|
9
|
-
|
10
|
+
FILE_ERROR = 'FILE ERROR'
|
10
11
|
|
11
|
-
|
12
|
+
FILE_DOES_NOT_EXISTS = 'file does not exists'
|
12
13
|
|
13
|
-
|
14
|
+
JSON_FILE_EXTENSION = '.json'
|
14
15
|
|
15
|
-
|
16
|
+
RESPONSECODE_CREATED = 201
|
16
17
|
|
17
|
-
|
18
|
+
RESPONSECODE_ACCEPTED = 202
|
18
19
|
|
19
|
-
|
20
|
+
RESPONSECODE_NO_CONTENT = 204
|
20
21
|
|
21
|
-
|
22
|
+
RESPONSECODE_MOVED_PERMANENTLY = 301
|
22
23
|
|
23
|
-
|
24
|
+
RESPONSECODE_MOVED_TEMPORARILY = 302
|
24
25
|
|
25
|
-
|
26
|
+
RESPONSECODE_NOT_MODIFIED = 304
|
26
27
|
|
27
|
-
|
28
|
+
RESPONSECODE_BAD_REQUEST = 400
|
28
29
|
|
29
|
-
|
30
|
+
JSON_DETAILS_ERROR = "ERROR IN READING JSONDETAILS FILE"
|
30
31
|
|
31
|
-
|
32
|
+
RESPONSECODE_AUTHORIZATION_ERROR = 401
|
32
33
|
|
33
|
-
|
34
|
+
RESPONSECODE_FORBIDDEN = 403
|
34
35
|
|
35
|
-
|
36
|
+
RESPONSECODE_NOT_FOUND = 404
|
36
37
|
|
37
|
-
|
38
|
+
RESPONSECODE_METHOD_NOT_ALLOWED = 405
|
38
39
|
|
39
|
-
|
40
|
+
RESPONSECODE_REQUEST_ENTITY_TOO_LARGE = 413
|
40
41
|
|
41
|
-
|
42
|
+
RESPONSECODE_UNSUPPORTED_MEDIA_TYPE = 415
|
42
43
|
|
43
|
-
|
44
|
+
RESPONSECODE_TOO_MANY_REQUEST = 429
|
44
45
|
|
45
|
-
|
46
|
+
RESPONSECODE_INTERNAL_SERVER_ERROR = 500
|
46
47
|
|
47
|
-
|
48
|
+
RESPONSECODE_INVALID_INPUT = 0
|
48
49
|
|
49
|
-
|
50
|
+
REQUEST_METHOD_GET = 'GET'
|
50
51
|
|
51
|
-
|
52
|
+
REQUEST_METHOD_POST = 'POST'
|
52
53
|
|
53
|
-
|
54
|
+
REQUEST_METHOD_PUT = 'PUT'
|
54
55
|
|
55
|
-
|
56
|
+
REQUEST_METHOD_DELETE = 'DELETE'
|
56
57
|
|
57
|
-
|
58
|
+
REQUEST_METHOD_PATCH = 'PATCH'
|
58
59
|
|
59
|
-
|
60
|
+
GRANT_TYPE = 'grant_type'
|
60
61
|
|
61
|
-
|
62
|
+
GRANT_TYPE_AUTH_CODE = 'authorization_code'
|
62
63
|
|
63
|
-
|
64
|
+
ACCESS_TOKEN = 'access_token'
|
64
65
|
|
65
|
-
|
66
|
+
EXPIRES_IN = 'expires_in'
|
66
67
|
|
67
|
-
|
68
|
+
HREF = 'href'
|
68
69
|
|
69
|
-
|
70
|
+
EXPIRES_IN_SEC = 'expires_in_sec'
|
70
71
|
|
71
|
-
|
72
|
+
REFRESH_TOKEN = 'refresh_token'
|
72
73
|
|
73
|
-
|
74
|
+
CLIENT_ID = 'client_id'
|
74
75
|
|
75
|
-
|
76
|
+
CLIENT_SECRET = 'client_secret'
|
76
77
|
|
77
|
-
|
78
|
+
REDIRECT_URI = 'redirect_uri'
|
78
79
|
|
79
|
-
|
80
|
+
REDIRECT_URL = 'redirect_url'
|
80
81
|
|
81
|
-
|
82
|
+
URL = 'URL'
|
82
83
|
|
83
|
-
|
84
|
+
HEADERS = 'headers'
|
84
85
|
|
85
|
-
|
86
|
+
PARAMS = 'PARAMS'
|
86
87
|
|
87
|
-
|
88
|
+
OAUTH_HEADER_PREFIX = 'Zoho-oauthtoken '
|
88
89
|
|
89
|
-
|
90
|
+
AUTHORIZATION = 'Authorization'
|
90
91
|
|
91
|
-
|
92
|
+
CODE = 'code'
|
92
93
|
|
93
|
-
|
94
|
+
STATUS = 'status'
|
94
95
|
|
95
|
-
|
96
|
+
MESSAGE = 'message'
|
96
97
|
|
97
|
-
|
98
|
+
HTTP = 'http'
|
98
99
|
|
99
|
-
|
100
|
+
DEFAULT_MODULENAME_VS_APINAME = {
|
100
101
|
|
101
|
-
|
102
|
+
"leads" => "Leads",
|
102
103
|
|
103
|
-
|
104
|
+
"contacts" => "Contacts",
|
104
105
|
|
105
|
-
|
106
|
+
"accounts" => "Accounts",
|
106
107
|
|
107
|
-
|
108
|
+
"deals" => "Deals",
|
108
109
|
|
109
|
-
|
110
|
+
"tasks" => "Tasks",
|
110
111
|
|
111
|
-
|
112
|
+
"events" => "Events",
|
112
113
|
|
113
|
-
|
114
|
+
"activities" => "Activities",
|
115
|
+
|
116
|
+
"calls" => "Calls",
|
117
|
+
|
118
|
+
"products" => "Products",
|
119
|
+
|
120
|
+
"quotes" => "Quotes",
|
121
|
+
|
122
|
+
"sales_orders" => "Sales_Orders",
|
123
|
+
|
124
|
+
"purchase_orders" => "Purchase_Orders",
|
125
|
+
|
126
|
+
"invoices" => "Invoices",
|
127
|
+
|
128
|
+
"campaigns" => "Campaigns",
|
129
|
+
|
130
|
+
"vendors" => "Vendors",
|
131
|
+
|
132
|
+
"price_books" => "Price_Books",
|
133
|
+
|
134
|
+
"cases" => "Cases",
|
135
|
+
|
136
|
+
"solutions" => "Solutions",
|
137
|
+
|
138
|
+
"visits" => "Visits",
|
139
|
+
|
140
|
+
"approvals" => "Approvals",
|
141
|
+
|
142
|
+
"notes" => "Notes",
|
143
|
+
|
144
|
+
"attachments" => "Attachments",
|
145
|
+
|
146
|
+
"actions_performed" => "Actions_Performed",
|
147
|
+
|
148
|
+
}
|
149
|
+
|
150
|
+
USER_AGENT = "Mozilla/5.0"
|
114
151
|
|
115
|
-
|
116
|
-
|
117
|
-
|
152
|
+
USER_AGENT_KEY = "user-agent"
|
153
|
+
|
154
|
+
CONTENT_API_URL = 'content.zohoapis.com'
|
155
|
+
|
156
|
+
INVALID_URL_ERROR = 'Invalid URI Error'
|
157
|
+
|
158
|
+
ZOHO_SDK = 'X-ZOHO-SDK'
|
159
|
+
|
160
|
+
SDK_VERSION = '5.0.0'
|
118
161
|
|
119
|
-
|
162
|
+
ZOHO_API_VERSION = '2.0'
|
120
163
|
|
121
|
-
|
164
|
+
SET_CONTENT_TYPE_HEADER = ['/crm/bulk/v2/read', '/crm/bulk/v2/write']
|
122
165
|
|
123
|
-
|
166
|
+
RESOURCE_PATH_INVALID_ERROR_MESSAGE = "Resource Path MUST be a valid directory."
|
124
167
|
|
125
|
-
|
168
|
+
IS_GENERATE_REQUEST_BODY = [REQUEST_METHOD_POST,REQUEST_METHOD_PUT,REQUEST_METHOD_PATCH]
|
126
169
|
|
127
|
-
|
170
|
+
REQUIRED_IN_UPDATE = 'required-in-update'
|
128
171
|
|
129
|
-
|
172
|
+
PHOTO = "photo"
|
173
|
+
|
174
|
+
CRM = "crm"
|
175
|
+
|
176
|
+
PHOTO_SUPPORTED_MODULES = ["leads", "contacts", "accounts", "products", "vendors"]
|
130
177
|
|
131
|
-
|
178
|
+
PARAMETER_NULL_ERROR = 'NULL PARAMETER ERROR'
|
132
179
|
|
133
|
-
|
180
|
+
HEADER_NULL_ERROR = 'NULL HEADER ERROR'
|
134
181
|
|
135
|
-
|
182
|
+
PARAM_NAME_NULL_ERROR = 'NULL PARAM NAME ERROR'
|
136
183
|
|
137
|
-
|
184
|
+
HEADER_NAME_NULL_ERROR = 'NULL HEADER NAME ERROR'
|
138
185
|
|
139
|
-
|
186
|
+
PARAM_NAME_NULL_ERROR_MESSAGE = 'Param Name MUST NOT be null'
|
140
187
|
|
141
|
-
|
188
|
+
AUTO_REFRESH_FIELDS_ERROR_MESSAGE = 'autoRefreshFields MUST NOT be null.'
|
142
189
|
|
143
|
-
|
190
|
+
RESOURCE_PATH_ERROR_MESSAGE = 'Resource Path MUST NOT be null/empty.'
|
144
191
|
|
145
|
-
|
192
|
+
HEADER_NAME_NULL_ERROR_MESSAGE = 'Header Name MUST NOT be null'
|
146
193
|
|
147
|
-
|
194
|
+
NULL_VALUE = 'null'
|
148
195
|
|
149
|
-
|
196
|
+
HEADER_OR_PARAM_NAME = 'HEADER OR PARAM'
|
150
197
|
|
151
|
-
|
198
|
+
UNSUPPORTED_IN_API = 'API UNSUPPORTED OPERATION'
|
152
199
|
|
153
|
-
|
200
|
+
UNSUPPORTED_IN_API_MESSAGE = 'Operation is not supported by API'
|
154
201
|
|
155
|
-
|
202
|
+
NULL_VALUE_ERROR_MESSAGE = ' MUST NOT be null'
|
156
203
|
|
157
|
-
|
204
|
+
PARAM_INSTANCE_NULL_ERROR = 'Param Instance MUST NOT be null'
|
158
205
|
|
159
|
-
|
206
|
+
HEADER_INSTANCE_NULL_ERROR = 'Header Instance MUST NOT be null'
|
160
207
|
|
161
|
-
|
208
|
+
SDK_UNINITIALIZATION_ERROR = 'SDK UNINITIALIZED ERROR'
|
162
209
|
|
163
|
-
|
210
|
+
SDK_UNINITIALIZATION_MESSAGE = 'SDK is uninitialized'
|
164
211
|
|
165
|
-
|
212
|
+
MYSQL_HOST = 'localhost'
|
166
213
|
|
167
|
-
|
214
|
+
REFRESH_TOKEN_MESSAGE = 'Access Token has expired. Hence refreshing.'
|
168
215
|
|
169
|
-
|
216
|
+
MYSQL_DATABASE_NAME = 'zohooauth'
|
170
217
|
|
171
|
-
|
218
|
+
MYSQL_USER_NAME = 'root'
|
172
219
|
|
173
|
-
|
220
|
+
MYSQL_PORT_NUMBER = '3306'
|
174
221
|
|
175
|
-
|
222
|
+
UNDERSCORE = '_'
|
176
223
|
|
177
|
-
|
224
|
+
RELATED_LISTS = 'Related_Lists'
|
178
225
|
|
179
|
-
|
226
|
+
USER_MAIL = 'user_mail'
|
180
227
|
|
181
|
-
|
228
|
+
EXPIRY_TIME = 'expiry_time'
|
182
229
|
|
183
|
-
|
230
|
+
PROXY_SETTINGS = "Proxy settings - "
|
231
|
+
|
232
|
+
PROXY_HOST = "Host: "
|
233
|
+
|
234
|
+
PROXY_PORT = "Port: "
|
235
|
+
|
236
|
+
PROXY_USER = "User: "
|
237
|
+
|
238
|
+
PROXY_DOMAIN = "Domain: "
|
184
239
|
|
185
|
-
|
240
|
+
USER_MAIL_NULL_ERROR = 'USER MAIL NULL ERROR'
|
186
241
|
|
187
|
-
|
242
|
+
USER_MAIL_NULL_ERROR_MESSAGE = 'User Mail MUST NOT be null. Use setUserMail() to set value.'
|
188
243
|
|
189
|
-
|
244
|
+
SAVE_TOKEN_ERROR = 'Exception in saving tokens'
|
190
245
|
|
191
|
-
|
246
|
+
GET_TOKEN_ERROR = 'Exception in getting access token'
|
192
247
|
|
193
|
-
|
248
|
+
GET_TOKEN_DB_ERROR = 'Exception in get_token - DBStore:'
|
194
249
|
|
195
|
-
|
250
|
+
GET_TOKEN_BY_ID_DB_ERROR = "Exception in getTokenById - DBStore : Given ID is invalid"
|
196
251
|
|
197
|
-
|
252
|
+
GET_TOKEN_BY_ID_FILE_ERROR = "Exception in getTokenById - FileStore : Given ID is invalid"
|
198
253
|
|
199
|
-
|
254
|
+
GET_TOKENS_DB_ERROR = 'Exception in get_tokens - DBStore:'
|
200
255
|
|
201
|
-
|
256
|
+
DELETE_TOKEN_DB_ERROR = 'Exception in delete_token - DBStore:'
|
202
257
|
|
203
|
-
|
258
|
+
DELETE_TOKENS_DB_ERROR = 'Exception in delete_tokens - DBStore:'
|
204
259
|
|
205
|
-
|
260
|
+
SAVE_TOKEN_DB_ERROR = 'Exception in save_token - DBStore:'
|
206
261
|
|
207
|
-
|
262
|
+
GET_TOKEN_FILE_ERROR = 'Exception in get_token - FileStore:'
|
208
263
|
|
209
|
-
|
264
|
+
LOGGER_INITIALIZATION_ERROR = "Exception in Logger Initialization : "
|
210
265
|
|
211
|
-
|
266
|
+
REFRESH_SINGLE_MODULE_FIELDS_ERROR = 'Exception in refreshing fields of module : '
|
212
267
|
|
213
|
-
|
268
|
+
REFRESH_ALL_MODULE_FIELDS_ERROR = 'Exception in refreshing fields of all modules : '
|
214
269
|
|
215
|
-
|
270
|
+
FILEBODYWRAPPER = 'FileBodyWrapper'
|
216
271
|
|
217
|
-
|
272
|
+
ACCOUNTS = 'Accounts'
|
218
273
|
|
219
|
-
|
274
|
+
FORMULA = 'formula'
|
220
275
|
|
221
|
-
|
276
|
+
CALLS = 'Calls'
|
222
277
|
|
223
|
-
|
278
|
+
SKIP_MANDATORY = 'skip-mandatory'
|
224
279
|
|
225
|
-
|
280
|
+
CALL_DURATION = 'Call_Duration'
|
226
281
|
|
227
|
-
|
282
|
+
EXCEPTION = 'exception'
|
228
283
|
|
229
|
-
|
284
|
+
SAVE_TOKEN_FILE_ERROR = 'Exception in save_token - FileStore:'
|
230
285
|
|
231
|
-
|
286
|
+
SAVE_TOKENS_FILE_ERROR = 'Exception in save_tokens - FileStore:'
|
232
287
|
|
233
|
-
|
288
|
+
DELETE_TOKEN_FILE_ERROR = 'Exception in delete_token - FileStore:'
|
234
289
|
|
235
|
-
|
236
|
-
|
237
|
-
INVALID_MODULE = "INVALID_MODULE"
|
290
|
+
DELETE_TOKENS_FILE_ERROR = 'Exception in delete_tokens - FileStore:'
|
238
291
|
|
239
|
-
|
292
|
+
DELETE_MODULE_FROM_FIELDFILE_ERROR = 'Exception in deleting module from Fields file'
|
240
293
|
|
241
|
-
|
294
|
+
DELETE_FIELD_FILE_ERROR = 'Exception in deleting Current User Fields file'
|
242
295
|
|
243
|
-
|
296
|
+
DELETE_FIELD_FILES_ERROR = 'Exception in deleting all Fields files'
|
244
297
|
|
245
|
-
|
298
|
+
FIELDS_LAST_MODIFIED_TIME = 'FIELDS-LAST-MODIFIED-TIME'
|
246
299
|
|
247
|
-
|
300
|
+
MODULES_TO_SKIP = ['Activities']
|
248
301
|
|
249
|
-
|
302
|
+
ACTIVITIES = 'Activities'
|
250
303
|
|
251
|
-
|
304
|
+
GIVEN_VALUE = "given-value"
|
252
305
|
|
253
|
-
|
306
|
+
GENERATED_TYPE = "generated_type"
|
254
307
|
|
255
|
-
|
308
|
+
GENERATED_TYPE_CUSTOM = "custom"
|
256
309
|
|
257
|
-
|
310
|
+
UPLOAD_PHOTO_UNSUPPORTED_MESSAGE = "Photo Upload Operation is not supported by the module: "
|
258
311
|
|
259
|
-
|
312
|
+
SDK_MODULE_METADATA = "SDK-MODULE-METADATA"
|
260
313
|
|
261
|
-
|
314
|
+
INVALID_MODULE_API_NAME_ERROR = "INVALID MODULE API NAME ERROR"
|
262
315
|
|
263
|
-
|
316
|
+
PROVIDE_VALID_MODULE_API_NAME = "PROVIDE VALID MODULE API NAME: "
|
264
317
|
|
265
|
-
|
318
|
+
UPLOAD_PHOTO_UNSUPPORTED_ERROR = "UPLOAD PHOTO UNSUPPORTED MODULE"
|
319
|
+
|
320
|
+
INVALID_MODULE = "INVALID_MODULE"
|
266
321
|
|
267
|
-
|
322
|
+
INVENTORY_MODULES = %w[invoices sales_orders purchase_orders quotes]
|
268
323
|
|
269
|
-
|
324
|
+
KEYS_TO_SKIP = %w[Created_Time Modified_Time Created_By Modified_By Tag]
|
270
325
|
|
271
|
-
|
326
|
+
ATTACHMENT_ID = 'attachment_id'
|
272
327
|
|
273
|
-
|
328
|
+
FILE_ID = 'file_id'
|
274
329
|
|
275
|
-
|
330
|
+
TOKEN_STORE = 'TOKEN_STORE'
|
276
331
|
|
277
|
-
|
332
|
+
GRANT_TOKEN = 'grant_token'
|
278
333
|
|
279
|
-
|
334
|
+
INPUT_ERROR = 'INPUT_ERROR'
|
280
335
|
|
281
|
-
|
336
|
+
TOKEN = 'token'
|
282
337
|
|
283
|
-
|
338
|
+
TYPE = 'type'
|
284
339
|
|
285
|
-
|
340
|
+
ID = 'id'
|
286
341
|
|
287
|
-
|
342
|
+
REQUEST_CATEGORY_READ = 'READ'
|
288
343
|
|
289
|
-
|
344
|
+
REQUEST_CATEGORY_CREATE = 'CREATE'
|
290
345
|
|
291
|
-
|
346
|
+
REQUEST_CATEGORY_UPDATE = 'UPDATE'
|
292
347
|
|
293
|
-
|
348
|
+
MODULEPACKAGENAME = 'modulePackageName'
|
349
|
+
|
350
|
+
MYSQL_TABLE_NAME = "oauthtoken"
|
294
351
|
|
295
|
-
|
352
|
+
INITIALIZATION_SUCCESSFUL = 'Initialization successful'
|
296
353
|
|
297
|
-
|
354
|
+
EXCEPTION_JSONDETAILS = 'Exception in loading JSONDetails :'
|
298
355
|
|
299
|
-
|
356
|
+
INITIALIZATION_SWITCHED = 'Initialization switched '
|
300
357
|
|
301
|
-
|
358
|
+
API_EXCEPTION = 'API_EXCEPTION'
|
302
359
|
|
303
|
-
|
360
|
+
SET_API_URL_EXCEPTION = 'Exception in setting API URL : '
|
304
361
|
|
305
|
-
|
362
|
+
AUTHENTICATION_EXCEPTION = 'Exception in authenticating current request : '
|
306
363
|
|
307
|
-
|
364
|
+
FORM_REQUEST_EXCEPTION = 'Exception in forming request body :'
|
308
365
|
|
309
|
-
|
366
|
+
API_CALL_EXCEPTION = 'Exception in current API call execution : '
|
310
367
|
|
311
|
-
|
368
|
+
EXCEPTION_IS_KEY_MODIFIED = 'Exception in calling isKeyModified : '
|
312
369
|
|
313
|
-
|
370
|
+
GIVEN_LENGTH = 'given-length'
|
314
371
|
|
315
|
-
|
372
|
+
FOR_EMAIL_ID = 'for Email Id : '
|
316
373
|
|
317
|
-
|
374
|
+
IN_ENVIRONMENT = ' in Environment : '
|
318
375
|
|
319
|
-
|
376
|
+
MODULEDETAILS = 'moduleDetails'
|
320
377
|
|
321
|
-
|
378
|
+
EXPECTED_TOKEN_TYPES = 'REFRESH, GRANT'
|
322
379
|
|
323
|
-
|
380
|
+
ARRAY = 'Array'
|
324
381
|
|
325
|
-
|
382
|
+
HASH = 'Hash'
|
326
383
|
|
327
|
-
|
384
|
+
CASES = 'cases'
|
328
385
|
|
329
|
-
|
386
|
+
CANT_DISCLOSE = " ## can't disclose ## "
|
330
387
|
|
331
|
-
|
388
|
+
APPLICATION_FORM_URLENCODED = 'application/x-www-form-urlencoded'
|
332
389
|
|
333
|
-
|
390
|
+
MULTIPART_FORM_DATA = 'multipart/form-data'
|
334
391
|
|
335
|
-
|
392
|
+
INVALID_CLIENT_ERROR = 'INVALID CLIENT ERROR'
|
336
393
|
|
337
|
-
|
394
|
+
ERROR_KEY = 'error'
|
338
395
|
|
339
|
-
|
396
|
+
ERROR_HASH_FIELD = 'field'
|
340
397
|
|
341
|
-
|
398
|
+
ERROR_HASH_EXPECTED_TYPE = 'expected_type'
|
342
399
|
|
343
|
-
|
400
|
+
ERROR_HASH_CLASS = 'class'
|
344
401
|
|
345
|
-
|
402
|
+
CONTENT_TYPE = 'content-type'
|
346
403
|
|
347
|
-
|
404
|
+
INSTANCE_NUMBER = 'instance-number'
|
348
405
|
|
349
|
-
|
406
|
+
ERROR_HASH_MEMBER = 'member'
|
350
407
|
|
351
|
-
|
408
|
+
NAME = 'name'
|
352
409
|
|
353
|
-
|
410
|
+
DATA_TYPE = { 'Map' => 'Hash','String'=>'String' ,'List' => 'Array', 'Boolean' => 'boolean', 'Integer' => 'Integer', 'Long' => 'Integer', 'Hash' => 'Hash', 'HashMap' => 'Hash', 'Double' => 'Float','Float' => 'Float','DateTime'=>'DateTime','Date'=>'Date' }
|
354
411
|
|
355
|
-
|
412
|
+
DATA_TYPE_ERROR = 'DATA TYPE ERROR'
|
356
413
|
|
357
|
-
|
414
|
+
TYPE_ERROR = 'type-error'
|
358
415
|
|
359
|
-
|
416
|
+
USER_SIGNATURE_ERROR = 'USERSIGNATURE ERROR'
|
360
417
|
|
361
|
-
|
418
|
+
USER_EMAIL_REGEX_ERROR = 'UserSignature Email Regex Mismatch'
|
362
419
|
|
363
|
-
|
420
|
+
VALUES = 'values'
|
364
421
|
|
365
|
-
|
422
|
+
ACCEPTED_VALUES = 'accepted-values'
|
366
423
|
|
367
|
-
|
424
|
+
UNACCEPTED_VALUES_ERROR = 'UNACCEPTED VALUES ERROR'
|
368
425
|
|
369
|
-
|
426
|
+
MIN_LENGTH = 'min-length'
|
370
427
|
|
371
|
-
|
428
|
+
MAX_LENGTH = 'max-length'
|
372
429
|
|
373
|
-
|
430
|
+
ERROR_HASH_MAXIMUM_LENGTH = 'maximum-length'
|
374
431
|
|
375
|
-
|
432
|
+
MAXIMUM_LENGTH_ERROR = 'MAXIMUM LENGTH ERROR'
|
376
433
|
|
377
|
-
|
434
|
+
ERROR_HASH_MINIMUM_LENGTH = 'minimum-length'
|
378
435
|
|
379
|
-
|
436
|
+
MINIMUM_LENGTH_ERROR = 'MINIMUM LENGTH ERROR'
|
380
437
|
|
381
|
-
|
438
|
+
REGEX = 'regex'
|
382
439
|
|
383
|
-
|
440
|
+
REGEX_MISMATCH_ERROR = 'REGEX MISMATCH ERROR'
|
384
441
|
|
385
|
-
|
442
|
+
UNIQUE = 'unique'
|
386
443
|
|
387
|
-
|
444
|
+
UNIQUE_KEY_ERROR = 'UNIQUE KEY ERROR'
|
388
445
|
|
389
|
-
|
446
|
+
FIRST_INDEX = 'first-index'
|
390
447
|
|
391
|
-
|
448
|
+
NEXT_INDEX = 'next-index'
|
392
449
|
|
393
|
-
|
450
|
+
INDEX = 'index'
|
394
451
|
|
395
|
-
|
452
|
+
GIVEN_TYPE = 'given-type'
|
396
453
|
|
397
|
-
|
454
|
+
INTEGER = 'Integer'
|
398
455
|
|
399
|
-
|
456
|
+
LONG = 'Long'
|
400
457
|
|
401
|
-
|
458
|
+
DOUBLE = 'Double'
|
402
459
|
|
403
|
-
|
460
|
+
FLOAT = 'Float'
|
404
461
|
|
405
|
-
|
462
|
+
BOOLEAN = 'Boolean'
|
406
463
|
|
407
|
-
|
464
|
+
OBJECT = 'Object'
|
408
465
|
|
409
|
-
|
466
|
+
STRING = 'String'
|
410
467
|
|
411
|
-
|
468
|
+
DATE_NAMESPACE = 'Date'
|
412
469
|
|
413
|
-
|
470
|
+
DATETIME_NAMESPACE = 'DateTime'
|
414
471
|
|
415
|
-
|
472
|
+
FILE_NAMESPACE = 'com.zoho.crm.api.util.StreamWrapper'
|
416
473
|
|
417
|
-
|
474
|
+
DOUBLE_COLON = '::'
|
418
475
|
|
419
|
-
|
476
|
+
DOT = '.'
|
420
477
|
|
421
|
-
|
478
|
+
AT = '@'
|
422
479
|
|
423
|
-
|
480
|
+
RESOURCES = 'resources'
|
424
481
|
|
425
|
-
|
482
|
+
PRIMARY = 'primary'
|
426
483
|
|
427
|
-
|
484
|
+
STREAM_WRAPPER_CLASS_PATH = 'com.zoho.crm.api.util.StreamWrapper'
|
428
485
|
|
429
|
-
|
486
|
+
CONTENT_DISPOSITION = 'content-disposition'
|
430
487
|
|
431
|
-
|
488
|
+
PACKAGE_PREFIX = 'com.zoho.crm.api.'
|
432
489
|
|
433
|
-
|
490
|
+
INTERFACE = 'interface'
|
434
491
|
|
435
|
-
|
492
|
+
CLASSES = 'classes'
|
436
493
|
|
437
|
-
|
494
|
+
READ_ONLY = 'read-only'
|
438
495
|
|
439
|
-
|
496
|
+
PRODUCT_DETAILS = 'Product_Details'
|
440
497
|
|
441
|
-
|
498
|
+
PRICING_DETAILS = 'Pricing_Details'
|
442
499
|
|
443
|
-
|
500
|
+
COMMENTS = 'Comments'
|
444
501
|
|
445
|
-
|
502
|
+
COMMENTS_NAMESPACE = 'com.zoho.crm.api.record.Comment'
|
446
503
|
|
447
|
-
|
504
|
+
SOLUTIONS = 'solutions'
|
448
505
|
|
449
|
-
|
506
|
+
IS_KEY_MODIFIED = 'is_key_modified'
|
450
507
|
|
451
|
-
|
508
|
+
SUBFORM = 'subform'
|
452
509
|
|
453
|
-
|
510
|
+
LOOKUP = 'lookup'
|
454
511
|
|
455
|
-
|
512
|
+
REQUIRED = 'required'
|
456
513
|
|
457
|
-
|
514
|
+
PRIMARY_KEY_ERROR = 'Value missing or Nil for required key(s) : '
|
458
515
|
|
459
|
-
|
516
|
+
MANDATORY_KEY_ERROR = 'missing or Nil Value for mandatory key : '
|
460
517
|
|
461
|
-
|
518
|
+
MANDATORY_VALUE_ERROR = 'MANDATORY VALUE MISSING OR NIL ERROR'
|
462
519
|
|
463
|
-
|
520
|
+
LIST_NAMESPACE = 'List'
|
464
521
|
|
465
|
-
|
522
|
+
PRICE_BOOKS = 'Price_Books'
|
466
523
|
|
467
|
-
|
524
|
+
LINE_TAX = '$line_tax'
|
468
525
|
|
469
|
-
|
526
|
+
RECURRING_ACTIVITY_NAMESPACE = 'com.zoho.crm.api.record.RecurringActivity'
|
470
527
|
|
471
|
-
|
528
|
+
REMINDER_NAMESPACE = 'com.zoho.crm.api.record.Reminder'
|
472
529
|
|
473
|
-
|
530
|
+
REMINDAT_NAMESPACE = 'com.zoho.crm.api.record.RemindAt'
|
474
531
|
|
475
|
-
|
532
|
+
FIELD_FILE_NAMESPACE = 'com.zoho.crm.api.record.FileDetails'
|
476
533
|
|
477
|
-
|
534
|
+
INVENTORY_LINE_ITEMS = 'com.zoho.crm.api.record.InventoryLineItems'
|
478
535
|
|
479
|
-
|
536
|
+
PARTICIPANT_API_NAME = 'Participants'
|
480
537
|
|
481
|
-
|
538
|
+
PRICINGDETAILS = 'com.zoho.crm.api.record.PricingDetails'
|
482
539
|
|
483
|
-
|
540
|
+
PARTICIPANTS = 'com.zoho.crm.api.record.Participants'
|
484
541
|
|
485
|
-
|
542
|
+
LINE_TAX_NAMESPACE = 'com.zoho.crm.api.record.LineTax'
|
486
543
|
|
487
|
-
|
544
|
+
LAYOUT = 'Layout'
|
488
545
|
|
489
|
-
|
546
|
+
LAYOUT_NAMESPACE = 'com.zoho.crm.api.layouts.Layout'
|
547
|
+
|
548
|
+
EVENTS = 'Events'
|
549
|
+
|
550
|
+
MAP_NAMESPACE = 'Map'
|
551
|
+
|
552
|
+
HASH_MAP_NAMESPACE = 'HashMap'
|
553
|
+
|
554
|
+
STRUCTURE_NAME = 'structure_name'
|
555
|
+
|
556
|
+
KEYS = 'keys'
|
557
|
+
|
558
|
+
RECORD_NAMESPACE = 'com.zoho.crm.api.record.Record'
|
559
|
+
|
560
|
+
USER_NAMESPACE = 'com.zoho.crm.api.users.User'
|
561
|
+
|
562
|
+
MODULE_NAMESPACE = 'com.zoho.crm.api.modules.Module'
|
563
|
+
|
564
|
+
CHOICE_NAMESPACE = 'com.zoho.crm.api.util.Choice'
|
565
|
+
|
566
|
+
JSON_DETAILS_FILE_PATH = 'resources/JSONDetails.json'
|
567
|
+
|
568
|
+
DETAILS = 'details'
|
569
|
+
|
570
|
+
KEY_VALUES = 'key_values'
|
571
|
+
|
572
|
+
KEY_MODIFIED = 'key_modified'
|
573
|
+
|
574
|
+
LOG_FILE_NAME = 'sdk_logs.log'
|
575
|
+
|
576
|
+
TOKEN_FILE = "sdk_tokens.txt"
|
577
|
+
|
578
|
+
INITIALIZATION_ERROR = 'INITIALIZATION ERROR'
|
579
|
+
|
580
|
+
REQUEST_PROXY_ERROR = 'REQUEST PROXY ERROR'
|
581
|
+
|
582
|
+
HOST_ERROR_MESSAGE = 'Host MUST NOT be null.'
|
583
|
+
|
584
|
+
PORT_ERROR_MESSAGE = 'Port MUST NOT be null.'
|
585
|
+
|
586
|
+
REQUEST_PROXY_ERROR_MESSAGE = "request_proxy must be instance of Request Proxy"
|
587
|
+
|
588
|
+
USER_SIGNATURE_ERROR_MESSAGE = "user must be instance of UserSignature."
|
589
|
+
|
590
|
+
ENVIRONMENT_ERROR_MESSAGE = "environment must be instance of Environment."
|
591
|
+
|
592
|
+
SDK_CONFIG_ERROR_MESSAGE = "sdk_config must be instance of sdkConfig."
|
593
|
+
|
594
|
+
TOKEN_ERROR_MESSAGE = "token must be instance of Token."
|
595
|
+
|
596
|
+
STORE_ERROR_MESSAGE = "store must be instance of Store."
|
597
|
+
|
598
|
+
INITIALIZATION_EXCEPTION = 'Exception in initialization'
|
599
|
+
|
600
|
+
SWITCH_USER_EXCEPTION = 'Exception in Switch user'
|
601
|
+
|
602
|
+
SWITCH_USER_ERROR = "SWITCH USER ERROR"
|
490
603
|
|
491
|
-
|
604
|
+
EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/i
|
492
605
|
|
493
|
-
|
606
|
+
EMAIL = 'email'
|
494
607
|
|
495
|
-
|
608
|
+
SE_MODULE = 'se_module'
|
496
609
|
|
497
|
-
|
498
|
-
|
499
|
-
USERSIGNATURE_ERROR_MESSAGE = "UserSignature MUST NOT be null."
|
500
|
-
|
501
|
-
ENVIRONMENT_ERROR_MESSAGE = "Environment MUST NOT be null."
|
502
|
-
|
503
|
-
SDK_CONFIG_ERROR_MESSAGE = "sdkConfig MUST NOT be null."
|
610
|
+
USER_ERROR = 'USER ERROR'
|
504
611
|
|
505
|
-
|
506
|
-
|
507
|
-
STORE_ERROR_MESSAGE = "Store MUST NOT be null."
|
612
|
+
MODULES = 'modules'
|
508
613
|
|
509
|
-
|
614
|
+
MODULE = 'module'
|
510
615
|
|
511
|
-
|
616
|
+
DELETE = 'delete'
|
512
617
|
|
513
|
-
|
618
|
+
NOTES = 'Notes'
|
514
619
|
|
515
|
-
|
620
|
+
CONSENT_LOOKUP = "consent_lookup"
|
516
621
|
|
517
|
-
|
622
|
+
ATTACHMENTS = '$attachments'
|
518
623
|
|
519
|
-
|
624
|
+
ATTACHMENTS_NAMESPACE = 'com.zoho.crm.api.attachments.Attachment'
|
520
625
|
|
521
|
-
|
626
|
+
PICKLIST = 'picklist'
|
522
627
|
|
523
|
-
|
628
|
+
CONSENT_NAMESPACE = 'com.zoho.crm.api.record.Consent'
|
524
629
|
|
525
|
-
|
630
|
+
INVALID_TOKEN_ERROR = "INVALID TOKEN ERROR"
|
526
631
|
|
527
|
-
|
632
|
+
NO_ACCESS_TOKEN_ERROR = "ACCESS TOKEN IS NOT PRESENT IN RESPONSE"
|
528
633
|
|
529
|
-
|
634
|
+
CLIENT_ID_NULL_ERROR_MESSAGE = "ClientID MUST NOT be null"
|
530
635
|
|
531
|
-
|
636
|
+
CLIENT_SECRET_NULL_ERROR_MESSAGE = "ClientSecret MUST NOT be null"
|
532
637
|
|
533
|
-
|
638
|
+
SKIP_MODULES = ['deals']
|
534
639
|
|
535
|
-
|
640
|
+
RUBY = "ruby_"
|
536
641
|
|
537
|
-
|
538
|
-
end
|
642
|
+
OAUTH_MANDATORY_KEYS = ["grant_token", "refresh_token", "id", "access_token"]
|
643
|
+
end
|
644
|
+
end
|