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