ZOHOCRMSDK5_0 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1086) hide show
  1. checksums.yaml +7 -0
  2. data/src/ZOHOCRMSDK5_0.rb +1082 -0
  3. data/src/com/zoho/api/authenticator/oauth_token.rb +425 -0
  4. data/src/com/zoho/api/authenticator/store/db_store.rb +279 -0
  5. data/src/com/zoho/api/authenticator/store/file_store.rb +280 -0
  6. data/src/com/zoho/api/authenticator/store/token_store.rb +31 -0
  7. data/src/com/zoho/api/authenticator/token.rb +14 -0
  8. data/src/com/zoho/api/logger/sdk_logger.rb +88 -0
  9. data/src/com/zoho/crm/api/appointment_preference/action_handler.rb +12 -0
  10. data/src/com/zoho/crm/api/appointment_preference/action_response.rb +12 -0
  11. data/src/com/zoho/crm/api/appointment_preference/action_wrapper.rb +65 -0
  12. data/src/com/zoho/crm/api/appointment_preference/api_exception.rb +127 -0
  13. data/src/com/zoho/crm/api/appointment_preference/appointment_preference.rb +159 -0
  14. data/src/com/zoho/crm/api/appointment_preference/appointment_preference_operations.rb +65 -0
  15. data/src/com/zoho/crm/api/appointment_preference/body_wrapper.rb +63 -0
  16. data/src/com/zoho/crm/api/appointment_preference/field.rb +82 -0
  17. data/src/com/zoho/crm/api/appointment_preference/field_mappings.rb +102 -0
  18. data/src/com/zoho/crm/api/appointment_preference/layout.rb +82 -0
  19. data/src/com/zoho/crm/api/appointment_preference/response_handler.rb +12 -0
  20. data/src/com/zoho/crm/api/appointment_preference/response_wrapper.rb +65 -0
  21. data/src/com/zoho/crm/api/appointment_preference/success_response.rb +123 -0
  22. data/src/com/zoho/crm/api/assignment_rules/action_response.rb +12 -0
  23. data/src/com/zoho/crm/api/assignment_rules/action_wrapper.rb +63 -0
  24. data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +125 -0
  25. data/src/com/zoho/crm/api/assignment_rules/assignment_rules.rb +235 -0
  26. data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +75 -0
  27. data/src/com/zoho/crm/api/assignment_rules/created_by.rb +122 -0
  28. data/src/com/zoho/crm/api/assignment_rules/default_assignee.rb +82 -0
  29. data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +12 -0
  30. data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +65 -0
  31. data/src/com/zoho/crm/api/assignment_rules/success_response.rb +123 -0
  32. data/src/com/zoho/crm/api/associate_email/action_handler.rb +12 -0
  33. data/src/com/zoho/crm/api/associate_email/action_response.rb +12 -0
  34. data/src/com/zoho/crm/api/associate_email/action_wrapper.rb +65 -0
  35. data/src/com/zoho/crm/api/associate_email/api_exception.rb +125 -0
  36. data/src/com/zoho/crm/api/associate_email/associate_email.rb +273 -0
  37. data/src/com/zoho/crm/api/associate_email/associate_email_operations.rb +49 -0
  38. data/src/com/zoho/crm/api/associate_email/attachments.rb +63 -0
  39. data/src/com/zoho/crm/api/associate_email/available.rb +101 -0
  40. data/src/com/zoho/crm/api/associate_email/body_wrapper.rb +63 -0
  41. data/src/com/zoho/crm/api/associate_email/from.rb +82 -0
  42. data/src/com/zoho/crm/api/associate_email/linked_record.rb +82 -0
  43. data/src/com/zoho/crm/api/associate_email/module_map.rb +82 -0
  44. data/src/com/zoho/crm/api/associate_email/record.rb +101 -0
  45. data/src/com/zoho/crm/api/associate_email/success_response.rb +123 -0
  46. data/src/com/zoho/crm/api/associate_email/to.rb +82 -0
  47. data/src/com/zoho/crm/api/attachments/action_handler.rb +12 -0
  48. data/src/com/zoho/crm/api/attachments/action_response.rb +12 -0
  49. data/src/com/zoho/crm/api/attachments/action_wrapper.rb +65 -0
  50. data/src/com/zoho/crm/api/attachments/api_exception.rb +125 -0
  51. data/src/com/zoho/crm/api/attachments/attachment.rb +368 -0
  52. data/src/com/zoho/crm/api/attachments/attachments_operations.rb +243 -0
  53. data/src/com/zoho/crm/api/attachments/file_body_wrapper.rb +66 -0
  54. data/src/com/zoho/crm/api/attachments/info.rb +120 -0
  55. data/src/com/zoho/crm/api/attachments/owner.rb +82 -0
  56. data/src/com/zoho/crm/api/attachments/parent_id.rb +82 -0
  57. data/src/com/zoho/crm/api/attachments/response_handler.rb +12 -0
  58. data/src/com/zoho/crm/api/attachments/response_wrapper.rb +84 -0
  59. data/src/com/zoho/crm/api/attachments/success_response.rb +123 -0
  60. data/src/com/zoho/crm/api/available_currencies/api_exception.rb +123 -0
  61. data/src/com/zoho/crm/api/available_currencies/available_currencies_operations.rb +30 -0
  62. data/src/com/zoho/crm/api/available_currencies/currency.rb +177 -0
  63. data/src/com/zoho/crm/api/available_currencies/response_handler.rb +12 -0
  64. data/src/com/zoho/crm/api/available_currencies/response_wrapper.rb +65 -0
  65. data/src/com/zoho/crm/api/backup/action_handler.rb +12 -0
  66. data/src/com/zoho/crm/api/backup/action_response.rb +12 -0
  67. data/src/com/zoho/crm/api/backup/action_wrapper.rb +65 -0
  68. data/src/com/zoho/crm/api/backup/api_exception.rb +127 -0
  69. data/src/com/zoho/crm/api/backup/backup.rb +158 -0
  70. data/src/com/zoho/crm/api/backup/backup_operations.rb +136 -0
  71. data/src/com/zoho/crm/api/backup/body_wrapper.rb +65 -0
  72. data/src/com/zoho/crm/api/backup/file_body_wrapper.rb +66 -0
  73. data/src/com/zoho/crm/api/backup/history.rb +196 -0
  74. data/src/com/zoho/crm/api/backup/history_wrapper.rb +84 -0
  75. data/src/com/zoho/crm/api/backup/info.rb +120 -0
  76. data/src/com/zoho/crm/api/backup/requester.rb +101 -0
  77. data/src/com/zoho/crm/api/backup/response_handler.rb +12 -0
  78. data/src/com/zoho/crm/api/backup/success_response.rb +123 -0
  79. data/src/com/zoho/crm/api/backup/urls.rb +101 -0
  80. data/src/com/zoho/crm/api/backup/urls_wrapper.rb +65 -0
  81. data/src/com/zoho/crm/api/blueprint/action_handler.rb +12 -0
  82. data/src/com/zoho/crm/api/blueprint/api_exception.rb +125 -0
  83. data/src/com/zoho/crm/api/blueprint/association_details.rb +82 -0
  84. data/src/com/zoho/crm/api/blueprint/auto_number.rb +101 -0
  85. data/src/com/zoho/crm/api/blueprint/blue_print.rb +121 -0
  86. data/src/com/zoho/crm/api/blueprint/blueprint_operations.rb +69 -0
  87. data/src/com/zoho/crm/api/blueprint/body_wrapper.rb +63 -0
  88. data/src/com/zoho/crm/api/blueprint/convert_mapping.rb +101 -0
  89. data/src/com/zoho/crm/api/blueprint/crypt.rb +120 -0
  90. data/src/com/zoho/crm/api/blueprint/currency.rb +82 -0
  91. data/src/com/zoho/crm/api/blueprint/escalation.rb +82 -0
  92. data/src/com/zoho/crm/api/blueprint/field.rb +924 -0
  93. data/src/com/zoho/crm/api/blueprint/formula.rb +82 -0
  94. data/src/com/zoho/crm/api/blueprint/layout.rb +82 -0
  95. data/src/com/zoho/crm/api/blueprint/lookup_field.rb +82 -0
  96. data/src/com/zoho/crm/api/blueprint/module.rb +120 -0
  97. data/src/com/zoho/crm/api/blueprint/module_fields.rb +120 -0
  98. data/src/com/zoho/crm/api/blueprint/module_mapping.rb +101 -0
  99. data/src/com/zoho/crm/api/blueprint/multi_select_lookup.rb +158 -0
  100. data/src/com/zoho/crm/api/blueprint/next_transition.rb +120 -0
  101. data/src/com/zoho/crm/api/blueprint/process_info.rb +253 -0
  102. data/src/com/zoho/crm/api/blueprint/profile.rb +101 -0
  103. data/src/com/zoho/crm/api/blueprint/response_handler.rb +12 -0
  104. data/src/com/zoho/crm/api/blueprint/response_wrapper.rb +65 -0
  105. data/src/com/zoho/crm/api/blueprint/success_response.rb +123 -0
  106. data/src/com/zoho/crm/api/blueprint/tool_tip.rb +82 -0
  107. data/src/com/zoho/crm/api/blueprint/transition.rb +273 -0
  108. data/src/com/zoho/crm/api/blueprint/view_type.rb +120 -0
  109. data/src/com/zoho/crm/api/bulk_read/action_handler.rb +12 -0
  110. data/src/com/zoho/crm/api/bulk_read/action_response.rb +12 -0
  111. data/src/com/zoho/crm/api/bulk_read/action_wrapper.rb +84 -0
  112. data/src/com/zoho/crm/api/bulk_read/api_exception.rb +127 -0
  113. data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +76 -0
  114. data/src/com/zoho/crm/api/bulk_read/call_back.rb +83 -0
  115. data/src/com/zoho/crm/api/bulk_read/criteria.rb +157 -0
  116. data/src/com/zoho/crm/api/bulk_read/file_body_wrapper.rb +66 -0
  117. data/src/com/zoho/crm/api/bulk_read/job_detail.rb +198 -0
  118. data/src/com/zoho/crm/api/bulk_read/query.rb +160 -0
  119. data/src/com/zoho/crm/api/bulk_read/request_wrapper.rb +102 -0
  120. data/src/com/zoho/crm/api/bulk_read/response_handler.rb +12 -0
  121. data/src/com/zoho/crm/api/bulk_read/response_wrapper.rb +65 -0
  122. data/src/com/zoho/crm/api/bulk_read/result.rb +139 -0
  123. data/src/com/zoho/crm/api/bulk_read/success_response.rb +123 -0
  124. data/src/com/zoho/crm/api/bulk_write/action_response.rb +12 -0
  125. data/src/com/zoho/crm/api/bulk_write/api_exception.rb +241 -0
  126. data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +114 -0
  127. data/src/com/zoho/crm/api/bulk_write/bulk_write_response.rb +218 -0
  128. data/src/com/zoho/crm/api/bulk_write/call_back.rb +83 -0
  129. data/src/com/zoho/crm/api/bulk_write/default_value.rb +98 -0
  130. data/src/com/zoho/crm/api/bulk_write/field_mapping.rb +158 -0
  131. data/src/com/zoho/crm/api/bulk_write/file.rb +159 -0
  132. data/src/com/zoho/crm/api/bulk_write/file_body_wrapper.rb +66 -0
  133. data/src/com/zoho/crm/api/bulk_write/request_wrapper.rb +140 -0
  134. data/src/com/zoho/crm/api/bulk_write/resource.rb +217 -0
  135. data/src/com/zoho/crm/api/bulk_write/response_handler.rb +12 -0
  136. data/src/com/zoho/crm/api/bulk_write/response_wrapper.rb +12 -0
  137. data/src/com/zoho/crm/api/bulk_write/result.rb +63 -0
  138. data/src/com/zoho/crm/api/bulk_write/success_response.rb +123 -0
  139. data/src/com/zoho/crm/api/business_hours/action_handler.rb +12 -0
  140. data/src/com/zoho/crm/api/business_hours/action_response.rb +12 -0
  141. data/src/com/zoho/crm/api/business_hours/action_wrapper.rb +65 -0
  142. data/src/com/zoho/crm/api/business_hours/api_exception.rb +127 -0
  143. data/src/com/zoho/crm/api/business_hours/body_wrapper.rb +63 -0
  144. data/src/com/zoho/crm/api/business_hours/break_hours_custom_timing.rb +83 -0
  145. data/src/com/zoho/crm/api/business_hours/business_hours.rb +178 -0
  146. data/src/com/zoho/crm/api/business_hours/business_hours_created.rb +123 -0
  147. data/src/com/zoho/crm/api/business_hours/business_hours_operations.rb +90 -0
  148. data/src/com/zoho/crm/api/business_hours/response_handler.rb +12 -0
  149. data/src/com/zoho/crm/api/business_hours/response_wrapper.rb +65 -0
  150. data/src/com/zoho/crm/api/cancel_meetings/action_handler.rb +12 -0
  151. data/src/com/zoho/crm/api/cancel_meetings/action_response.rb +12 -0
  152. data/src/com/zoho/crm/api/cancel_meetings/action_wrapper.rb +65 -0
  153. data/src/com/zoho/crm/api/cancel_meetings/api_exception.rb +125 -0
  154. data/src/com/zoho/crm/api/cancel_meetings/body_wrapper.rb +63 -0
  155. data/src/com/zoho/crm/api/cancel_meetings/cancel_meetings_operations.rb +43 -0
  156. data/src/com/zoho/crm/api/cancel_meetings/notify.rb +63 -0
  157. data/src/com/zoho/crm/api/cancel_meetings/success_response.rb +123 -0
  158. data/src/com/zoho/crm/api/change_owner/action_handler.rb +12 -0
  159. data/src/com/zoho/crm/api/change_owner/action_response.rb +12 -0
  160. data/src/com/zoho/crm/api/change_owner/action_wrapper.rb +65 -0
  161. data/src/com/zoho/crm/api/change_owner/api_exception.rb +125 -0
  162. data/src/com/zoho/crm/api/change_owner/body_wrapper.rb +101 -0
  163. data/src/com/zoho/crm/api/change_owner/change_owner_operations.rb +71 -0
  164. data/src/com/zoho/crm/api/change_owner/error_details.rb +82 -0
  165. data/src/com/zoho/crm/api/change_owner/mass_wrapper.rb +122 -0
  166. data/src/com/zoho/crm/api/change_owner/owner.rb +63 -0
  167. data/src/com/zoho/crm/api/change_owner/related_modules.rb +82 -0
  168. data/src/com/zoho/crm/api/change_owner/success_response.rb +123 -0
  169. data/src/com/zoho/crm/api/contact_roles/action_handler.rb +12 -0
  170. data/src/com/zoho/crm/api/contact_roles/action_response.rb +12 -0
  171. data/src/com/zoho/crm/api/contact_roles/action_wrapper.rb +65 -0
  172. data/src/com/zoho/crm/api/contact_roles/api_exception.rb +127 -0
  173. data/src/com/zoho/crm/api/contact_roles/body_wrapper.rb +65 -0
  174. data/src/com/zoho/crm/api/contact_roles/contact_role.rb +101 -0
  175. data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +164 -0
  176. data/src/com/zoho/crm/api/contact_roles/response_handler.rb +12 -0
  177. data/src/com/zoho/crm/api/contact_roles/success_response.rb +123 -0
  178. data/src/com/zoho/crm/api/currencies/action_handler.rb +12 -0
  179. data/src/com/zoho/crm/api/currencies/action_response.rb +12 -0
  180. data/src/com/zoho/crm/api/currencies/action_wrapper.rb +65 -0
  181. data/src/com/zoho/crm/api/currencies/api_exception.rb +129 -0
  182. data/src/com/zoho/crm/api/currencies/base_currency.rb +196 -0
  183. data/src/com/zoho/crm/api/currencies/base_currency_action_response.rb +12 -0
  184. data/src/com/zoho/crm/api/currencies/base_currency_action_wrapper.rb +65 -0
  185. data/src/com/zoho/crm/api/currencies/base_currency_wrapper.rb +63 -0
  186. data/src/com/zoho/crm/api/currencies/body_wrapper.rb +65 -0
  187. data/src/com/zoho/crm/api/currencies/currencies_operations.rb +157 -0
  188. data/src/com/zoho/crm/api/currencies/currency.rb +292 -0
  189. data/src/com/zoho/crm/api/currencies/currency_format.rb +102 -0
  190. data/src/com/zoho/crm/api/currencies/disable_success.rb +121 -0
  191. data/src/com/zoho/crm/api/currencies/error_details.rb +82 -0
  192. data/src/com/zoho/crm/api/currencies/format.rb +102 -0
  193. data/src/com/zoho/crm/api/currencies/response_handler.rb +12 -0
  194. data/src/com/zoho/crm/api/currencies/success_response.rb +125 -0
  195. data/src/com/zoho/crm/api/custom_views/action_handler.rb +12 -0
  196. data/src/com/zoho/crm/api/custom_views/action_response.rb +12 -0
  197. data/src/com/zoho/crm/api/custom_views/action_wrapper.rb +63 -0
  198. data/src/com/zoho/crm/api/custom_views/api_exception.rb +127 -0
  199. data/src/com/zoho/crm/api/custom_views/body_wrapper.rb +84 -0
  200. data/src/com/zoho/crm/api/custom_views/criteria.rb +136 -0
  201. data/src/com/zoho/crm/api/custom_views/custom_view.rb +463 -0
  202. data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +75 -0
  203. data/src/com/zoho/crm/api/custom_views/field.rb +82 -0
  204. data/src/com/zoho/crm/api/custom_views/fields.rb +101 -0
  205. data/src/com/zoho/crm/api/custom_views/info.rb +158 -0
  206. data/src/com/zoho/crm/api/custom_views/owner.rb +101 -0
  207. data/src/com/zoho/crm/api/custom_views/pin_fields.rb +83 -0
  208. data/src/com/zoho/crm/api/custom_views/pin_unpin_fields.rb +63 -0
  209. data/src/com/zoho/crm/api/custom_views/response_handler.rb +12 -0
  210. data/src/com/zoho/crm/api/custom_views/shared_to.rb +121 -0
  211. data/src/com/zoho/crm/api/custom_views/sort_by.rb +82 -0
  212. data/src/com/zoho/crm/api/custom_views/success_response.rb +123 -0
  213. data/src/com/zoho/crm/api/custom_views/translation.rb +120 -0
  214. data/src/com/zoho/crm/api/dc/au_datacenter.rb +21 -0
  215. data/src/com/zoho/crm/api/dc/cn_datacenter.rb +21 -0
  216. data/src/com/zoho/crm/api/dc/datacenter.rb +70 -0
  217. data/src/com/zoho/crm/api/dc/eu_datacenter.rb +21 -0
  218. data/src/com/zoho/crm/api/dc/in_datacenter.rb +21 -0
  219. data/src/com/zoho/crm/api/dc/jp_datacenter.rb +21 -0
  220. data/src/com/zoho/crm/api/dc/us_datacenter.rb +21 -0
  221. data/src/com/zoho/crm/api/deal_contact_roles/action_handler.rb +12 -0
  222. data/src/com/zoho/crm/api/deal_contact_roles/action_response.rb +12 -0
  223. data/src/com/zoho/crm/api/deal_contact_roles/action_wrapper.rb +65 -0
  224. data/src/com/zoho/crm/api/deal_contact_roles/api_exception.rb +127 -0
  225. data/src/com/zoho/crm/api/deal_contact_roles/body_wrapper.rb +84 -0
  226. data/src/com/zoho/crm/api/deal_contact_roles/contact_role.rb +82 -0
  227. data/src/com/zoho/crm/api/deal_contact_roles/data.rb +154 -0
  228. data/src/com/zoho/crm/api/deal_contact_roles/deal_contact_roles_operations.rb +141 -0
  229. data/src/com/zoho/crm/api/deal_contact_roles/error_details.rb +82 -0
  230. data/src/com/zoho/crm/api/deal_contact_roles/info.rb +177 -0
  231. data/src/com/zoho/crm/api/deal_contact_roles/response_handler.rb +12 -0
  232. data/src/com/zoho/crm/api/deal_contact_roles/success_response.rb +123 -0
  233. data/src/com/zoho/crm/api/definition/api_exception.rb +121 -0
  234. data/src/com/zoho/crm/api/definition/definition.rb +101 -0
  235. data/src/com/zoho/crm/api/definition/minified_property.rb +158 -0
  236. data/src/com/zoho/crm/api/definition/minified_property1.rb +139 -0
  237. data/src/com/zoho/crm/api/definition/property.rb +272 -0
  238. data/src/com/zoho/crm/api/definition/response_wrapper.rb +63 -0
  239. data/src/com/zoho/crm/api/download_attachments/api_exception.rb +123 -0
  240. data/src/com/zoho/crm/api/download_attachments/download_attachments_operations.rb +60 -0
  241. data/src/com/zoho/crm/api/download_attachments/file_body_wrapper.rb +66 -0
  242. data/src/com/zoho/crm/api/download_attachments/response_handler.rb +12 -0
  243. data/src/com/zoho/crm/api/download_inline_images/api_exception.rb +123 -0
  244. data/src/com/zoho/crm/api/download_inline_images/download_inline_images_operations.rb +64 -0
  245. data/src/com/zoho/crm/api/download_inline_images/file_body_wrapper.rb +66 -0
  246. data/src/com/zoho/crm/api/download_inline_images/response_handler.rb +12 -0
  247. data/src/com/zoho/crm/api/email_compose_meta/compose_settings.rb +120 -0
  248. data/src/com/zoho/crm/api/email_compose_meta/data.rb +63 -0
  249. data/src/com/zoho/crm/api/email_compose_meta/data_map.rb +158 -0
  250. data/src/com/zoho/crm/api/email_compose_meta/default_form.rb +120 -0
  251. data/src/com/zoho/crm/api/email_compose_meta/features_available.rb +349 -0
  252. data/src/com/zoho/crm/api/email_compose_meta/from_address.rb +140 -0
  253. data/src/com/zoho/crm/api/email_compose_meta/user.rb +139 -0
  254. data/src/com/zoho/crm/api/email_related_records/api_exception.rb +123 -0
  255. data/src/com/zoho/crm/api/email_related_records/attachments.rb +101 -0
  256. data/src/com/zoho/crm/api/email_related_records/email.rb +483 -0
  257. data/src/com/zoho/crm/api/email_related_records/email_related_records_operations.rb +89 -0
  258. data/src/com/zoho/crm/api/email_related_records/info.rb +139 -0
  259. data/src/com/zoho/crm/api/email_related_records/linked_record.rb +82 -0
  260. data/src/com/zoho/crm/api/email_related_records/module.rb +82 -0
  261. data/src/com/zoho/crm/api/email_related_records/response_handler.rb +12 -0
  262. data/src/com/zoho/crm/api/email_related_records/response_wrapper.rb +84 -0
  263. data/src/com/zoho/crm/api/email_related_records/status.rb +158 -0
  264. data/src/com/zoho/crm/api/email_related_records/user_details.rb +82 -0
  265. data/src/com/zoho/crm/api/email_sharing/api_exception.rb +123 -0
  266. data/src/com/zoho/crm/api/email_sharing/email_sharing_operations.rb +44 -0
  267. data/src/com/zoho/crm/api/email_sharing/get_email_sharing.rb +82 -0
  268. data/src/com/zoho/crm/api/email_sharing/response_handler.rb +12 -0
  269. data/src/com/zoho/crm/api/email_sharing/response_wrapper.rb +65 -0
  270. data/src/com/zoho/crm/api/email_sharing/share_from_user.rb +101 -0
  271. data/src/com/zoho/crm/api/email_templates/api_exception.rb +123 -0
  272. data/src/com/zoho/crm/api/email_templates/attachment.rb +120 -0
  273. data/src/com/zoho/crm/api/email_templates/email_template.rb +433 -0
  274. data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +63 -0
  275. data/src/com/zoho/crm/api/email_templates/info.rb +120 -0
  276. data/src/com/zoho/crm/api/email_templates/last_version_statistics.rb +158 -0
  277. data/src/com/zoho/crm/api/email_templates/response_handler.rb +12 -0
  278. data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +84 -0
  279. data/src/com/zoho/crm/api/entity_scores/api_exception.rb +123 -0
  280. data/src/com/zoho/crm/api/entity_scores/entity_scores.rb +253 -0
  281. data/src/com/zoho/crm/api/entity_scores/entity_scores_operations.rb +70 -0
  282. data/src/com/zoho/crm/api/entity_scores/entity_structure.rb +84 -0
  283. data/src/com/zoho/crm/api/entity_scores/entity_structure_group.rb +12 -0
  284. data/src/com/zoho/crm/api/entity_scores/entity_structure_with_module.rb +103 -0
  285. data/src/com/zoho/crm/api/entity_scores/info.rb +215 -0
  286. data/src/com/zoho/crm/api/entity_scores/module_structure.rb +82 -0
  287. data/src/com/zoho/crm/api/entity_scores/response_handler.rb +12 -0
  288. data/src/com/zoho/crm/api/entity_scores/response_wrapper.rb +84 -0
  289. data/src/com/zoho/crm/api/entity_scores/scoring_rule_structure.rb +82 -0
  290. data/src/com/zoho/crm/api/exception/sdk_exception.rb +49 -0
  291. data/src/com/zoho/crm/api/field_attachments/api_exception.rb +123 -0
  292. data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +54 -0
  293. data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +66 -0
  294. data/src/com/zoho/crm/api/field_attachments/response_handler.rb +12 -0
  295. data/src/com/zoho/crm/api/field_map_dependency/action_handler.rb +12 -0
  296. data/src/com/zoho/crm/api/field_map_dependency/action_response.rb +12 -0
  297. data/src/com/zoho/crm/api/field_map_dependency/action_wrapper.rb +65 -0
  298. data/src/com/zoho/crm/api/field_map_dependency/api_exception.rb +127 -0
  299. data/src/com/zoho/crm/api/field_map_dependency/body_wrapper.rb +84 -0
  300. data/src/com/zoho/crm/api/field_map_dependency/child.rb +82 -0
  301. data/src/com/zoho/crm/api/field_map_dependency/field_map_dependency_operations.rb +178 -0
  302. data/src/com/zoho/crm/api/field_map_dependency/info.rb +120 -0
  303. data/src/com/zoho/crm/api/field_map_dependency/map_dependency.rb +215 -0
  304. data/src/com/zoho/crm/api/field_map_dependency/parent.rb +82 -0
  305. data/src/com/zoho/crm/api/field_map_dependency/pick_list_mapping.rb +120 -0
  306. data/src/com/zoho/crm/api/field_map_dependency/picklist_map.rb +120 -0
  307. data/src/com/zoho/crm/api/field_map_dependency/response_handler.rb +12 -0
  308. data/src/com/zoho/crm/api/field_map_dependency/sub_module.rb +82 -0
  309. data/src/com/zoho/crm/api/field_map_dependency/success_response.rb +123 -0
  310. data/src/com/zoho/crm/api/fields/action_response.rb +12 -0
  311. data/src/com/zoho/crm/api/fields/action_wrapper.rb +63 -0
  312. data/src/com/zoho/crm/api/fields/api_exception.rb +125 -0
  313. data/src/com/zoho/crm/api/fields/association_details.rb +83 -0
  314. data/src/com/zoho/crm/api/fields/auto_number.rb +120 -0
  315. data/src/com/zoho/crm/api/fields/body_wrapper.rb +65 -0
  316. data/src/com/zoho/crm/api/fields/convert_mapping.rb +101 -0
  317. data/src/com/zoho/crm/api/fields/crypt.rb +158 -0
  318. data/src/com/zoho/crm/api/fields/currency.rb +83 -0
  319. data/src/com/zoho/crm/api/fields/email_parser.rb +82 -0
  320. data/src/com/zoho/crm/api/fields/expression.rb +101 -0
  321. data/src/com/zoho/crm/api/fields/external.rb +102 -0
  322. data/src/com/zoho/crm/api/fields/fields.rb +1355 -0
  323. data/src/com/zoho/crm/api/fields/fields_operations.rb +103 -0
  324. data/src/com/zoho/crm/api/fields/file_upolad_option.rb +82 -0
  325. data/src/com/zoho/crm/api/fields/forecast_category.rb +82 -0
  326. data/src/com/zoho/crm/api/fields/formula.rb +83 -0
  327. data/src/com/zoho/crm/api/fields/function_parameter.rb +63 -0
  328. data/src/com/zoho/crm/api/fields/hipaa_compliance.rb +82 -0
  329. data/src/com/zoho/crm/api/fields/history_tracking.rb +83 -0
  330. data/src/com/zoho/crm/api/fields/history_tracking_module.rb +159 -0
  331. data/src/com/zoho/crm/api/fields/lookup.rb +178 -0
  332. data/src/com/zoho/crm/api/fields/maps.rb +82 -0
  333. data/src/com/zoho/crm/api/fields/minified_field.rb +82 -0
  334. data/src/com/zoho/crm/api/fields/multi_module_lookup.rb +102 -0
  335. data/src/com/zoho/crm/api/fields/multiselectlookup.rb +216 -0
  336. data/src/com/zoho/crm/api/fields/operation_type.rb +120 -0
  337. data/src/com/zoho/crm/api/fields/pick_list_value.rb +273 -0
  338. data/src/com/zoho/crm/api/fields/private.rb +101 -0
  339. data/src/com/zoho/crm/api/fields/profile.rb +101 -0
  340. data/src/com/zoho/crm/api/fields/query_details.rb +82 -0
  341. data/src/com/zoho/crm/api/fields/refer_from_field.rb +82 -0
  342. data/src/com/zoho/crm/api/fields/response_handler.rb +12 -0
  343. data/src/com/zoho/crm/api/fields/rollup_criteria.rb +98 -0
  344. data/src/com/zoho/crm/api/fields/rollup_summary.rb +139 -0
  345. data/src/com/zoho/crm/api/fields/show_fields.rb +82 -0
  346. data/src/com/zoho/crm/api/fields/success.rb +123 -0
  347. data/src/com/zoho/crm/api/fields/tooltip.rb +83 -0
  348. data/src/com/zoho/crm/api/fields/unique.rb +63 -0
  349. data/src/com/zoho/crm/api/fields/view_type.rb +120 -0
  350. data/src/com/zoho/crm/api/files/action_handler.rb +12 -0
  351. data/src/com/zoho/crm/api/files/action_response.rb +12 -0
  352. data/src/com/zoho/crm/api/files/action_wrapper.rb +65 -0
  353. data/src/com/zoho/crm/api/files/api_exception.rb +125 -0
  354. data/src/com/zoho/crm/api/files/body_wrapper.rb +64 -0
  355. data/src/com/zoho/crm/api/files/file_body_wrapper.rb +66 -0
  356. data/src/com/zoho/crm/api/files/files_operations.rb +77 -0
  357. data/src/com/zoho/crm/api/files/response_handler.rb +12 -0
  358. data/src/com/zoho/crm/api/files/success_response.rb +123 -0
  359. data/src/com/zoho/crm/api/fiscal_year/action_handler.rb +12 -0
  360. data/src/com/zoho/crm/api/fiscal_year/action_response.rb +12 -0
  361. data/src/com/zoho/crm/api/fiscal_year/action_wrapper.rb +65 -0
  362. data/src/com/zoho/crm/api/fiscal_year/api_exception.rb +127 -0
  363. data/src/com/zoho/crm/api/fiscal_year/body_wrapper.rb +63 -0
  364. data/src/com/zoho/crm/api/fiscal_year/fiscal_year_operations.rb +51 -0
  365. data/src/com/zoho/crm/api/fiscal_year/response_handler.rb +12 -0
  366. data/src/com/zoho/crm/api/fiscal_year/response_wrapper.rb +65 -0
  367. data/src/com/zoho/crm/api/fiscal_year/success_response.rb +123 -0
  368. data/src/com/zoho/crm/api/fiscal_year/year.rb +102 -0
  369. data/src/com/zoho/crm/api/from_addresses/address.rb +139 -0
  370. data/src/com/zoho/crm/api/from_addresses/api_exception.rb +123 -0
  371. data/src/com/zoho/crm/api/from_addresses/from_addresses_operations.rb +30 -0
  372. data/src/com/zoho/crm/api/from_addresses/response_handler.rb +12 -0
  373. data/src/com/zoho/crm/api/from_addresses/response_wrapper.rb +65 -0
  374. data/src/com/zoho/crm/api/header.rb +12 -0
  375. data/src/com/zoho/crm/api/header_map.rb +57 -0
  376. data/src/com/zoho/crm/api/hipaa_compliance/action_handler.rb +12 -0
  377. data/src/com/zoho/crm/api/hipaa_compliance/action_wrapper.rb +63 -0
  378. data/src/com/zoho/crm/api/hipaa_compliance/api_exception.rb +123 -0
  379. data/src/com/zoho/crm/api/hipaa_compliance/hipaa_compliance.rb +158 -0
  380. data/src/com/zoho/crm/api/hipaa_compliance/modules.rb +82 -0
  381. data/src/com/zoho/crm/api/hipaa_compliance/response_wrapper.rb +63 -0
  382. data/src/com/zoho/crm/api/hipaa_compliance/success_response.rb +123 -0
  383. data/src/com/zoho/crm/api/holidays/action_handler.rb +12 -0
  384. data/src/com/zoho/crm/api/holidays/action_response.rb +12 -0
  385. data/src/com/zoho/crm/api/holidays/action_wrapper.rb +65 -0
  386. data/src/com/zoho/crm/api/holidays/api_exception.rb +129 -0
  387. data/src/com/zoho/crm/api/holidays/body_wrapper.rb +12 -0
  388. data/src/com/zoho/crm/api/holidays/business_holiday.rb +102 -0
  389. data/src/com/zoho/crm/api/holidays/create_business_holiday.rb +65 -0
  390. data/src/com/zoho/crm/api/holidays/create_shift_holiday.rb +65 -0
  391. data/src/com/zoho/crm/api/holidays/holiday.rb +158 -0
  392. data/src/com/zoho/crm/api/holidays/holidays.rb +63 -0
  393. data/src/com/zoho/crm/api/holidays/holidays_operations.rb +188 -0
  394. data/src/com/zoho/crm/api/holidays/info.rb +120 -0
  395. data/src/com/zoho/crm/api/holidays/resonse_handler.rb +12 -0
  396. data/src/com/zoho/crm/api/holidays/response_handler.rb +12 -0
  397. data/src/com/zoho/crm/api/holidays/response_wrapper.rb +86 -0
  398. data/src/com/zoho/crm/api/holidays/shift_holiday.rb +121 -0
  399. data/src/com/zoho/crm/api/holidays/shift_hour.rb +82 -0
  400. data/src/com/zoho/crm/api/holidays/success_response.rb +123 -0
  401. data/src/com/zoho/crm/api/initializer.rb +232 -0
  402. data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +123 -0
  403. data/src/com/zoho/crm/api/inventory_templates/folder.rb +82 -0
  404. data/src/com/zoho/crm/api/inventory_templates/info.rb +120 -0
  405. data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +316 -0
  406. data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +75 -0
  407. data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +12 -0
  408. data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +84 -0
  409. data/src/com/zoho/crm/api/isc_signature/signature.rb +60 -0
  410. data/src/com/zoho/crm/api/layouts/actions_allowed.rb +177 -0
  411. data/src/com/zoho/crm/api/layouts/api_exception.rb +123 -0
  412. data/src/com/zoho/crm/api/layouts/convert_mapping.rb +139 -0
  413. data/src/com/zoho/crm/api/layouts/deal_field.rb +120 -0
  414. data/src/com/zoho/crm/api/layouts/deal_layout_mapping.rb +103 -0
  415. data/src/com/zoho/crm/api/layouts/default_assignment_view.rb +101 -0
  416. data/src/com/zoho/crm/api/layouts/default_view.rb +101 -0
  417. data/src/com/zoho/crm/api/layouts/layouts.rb +425 -0
  418. data/src/com/zoho/crm/api/layouts/layouts_operations.rb +75 -0
  419. data/src/com/zoho/crm/api/layouts/minified_layout.rb +82 -0
  420. data/src/com/zoho/crm/api/layouts/profiles.rb +139 -0
  421. data/src/com/zoho/crm/api/layouts/properties.rb +101 -0
  422. data/src/com/zoho/crm/api/layouts/response_handler.rb +12 -0
  423. data/src/com/zoho/crm/api/layouts/response_wrapper.rb +65 -0
  424. data/src/com/zoho/crm/api/layouts/section_field.rb +1456 -0
  425. data/src/com/zoho/crm/api/layouts/section_subform_field.rb +101 -0
  426. data/src/com/zoho/crm/api/layouts/sections.rb +272 -0
  427. data/src/com/zoho/crm/api/layouts/tooltip.rb +83 -0
  428. data/src/com/zoho/crm/api/mail_merge/action_response.rb +12 -0
  429. data/src/com/zoho/crm/api/mail_merge/action_wrapper.rb +63 -0
  430. data/src/com/zoho/crm/api/mail_merge/address.rb +63 -0
  431. data/src/com/zoho/crm/api/mail_merge/address_value_map.rb +63 -0
  432. data/src/com/zoho/crm/api/mail_merge/api_exception.rb +121 -0
  433. data/src/com/zoho/crm/api/mail_merge/download_mail_merge.rb +121 -0
  434. data/src/com/zoho/crm/api/mail_merge/download_mail_merge_wrapper.rb +63 -0
  435. data/src/com/zoho/crm/api/mail_merge/mail_merge.rb +216 -0
  436. data/src/com/zoho/crm/api/mail_merge/mail_merge_template.rb +82 -0
  437. data/src/com/zoho/crm/api/mail_merge/mail_merge_wrapper.rb +63 -0
  438. data/src/com/zoho/crm/api/mail_merge/sign_action_response.rb +12 -0
  439. data/src/com/zoho/crm/api/mail_merge/sign_action_wrapper.rb +63 -0
  440. data/src/com/zoho/crm/api/mail_merge/sign_mail_merge.rb +120 -0
  441. data/src/com/zoho/crm/api/mail_merge/sign_mail_merge_wrapper.rb +63 -0
  442. data/src/com/zoho/crm/api/mail_merge/signers.rb +102 -0
  443. data/src/com/zoho/crm/api/mail_merge/success_response.rb +125 -0
  444. data/src/com/zoho/crm/api/mass_change_owner/action_handler.rb +12 -0
  445. data/src/com/zoho/crm/api/mass_change_owner/action_response.rb +12 -0
  446. data/src/com/zoho/crm/api/mass_change_owner/action_wrapper.rb +65 -0
  447. data/src/com/zoho/crm/api/mass_change_owner/api_exception.rb +125 -0
  448. data/src/com/zoho/crm/api/mass_change_owner/body_wrapper.rb +101 -0
  449. data/src/com/zoho/crm/api/mass_change_owner/mass_change_owner_operations.rb +76 -0
  450. data/src/com/zoho/crm/api/mass_change_owner/owner.rb +63 -0
  451. data/src/com/zoho/crm/api/mass_change_owner/response_handler.rb +12 -0
  452. data/src/com/zoho/crm/api/mass_change_owner/response_wrapper.rb +65 -0
  453. data/src/com/zoho/crm/api/mass_change_owner/status.rb +140 -0
  454. data/src/com/zoho/crm/api/mass_change_owner/success_response.rb +123 -0
  455. data/src/com/zoho/crm/api/mass_change_owner/territory.rb +82 -0
  456. data/src/com/zoho/crm/api/mass_convert/action_response.rb +12 -0
  457. data/src/com/zoho/crm/api/mass_convert/api_exception.rb +125 -0
  458. data/src/com/zoho/crm/api/mass_convert/assign_to.rb +63 -0
  459. data/src/com/zoho/crm/api/mass_convert/convert.rb +197 -0
  460. data/src/com/zoho/crm/api/mass_convert/error_details.rb +82 -0
  461. data/src/com/zoho/crm/api/mass_convert/mass_convert_operations.rb +68 -0
  462. data/src/com/zoho/crm/api/mass_convert/move_attachments_to.rb +82 -0
  463. data/src/com/zoho/crm/api/mass_convert/portal_user_type.rb +82 -0
  464. data/src/com/zoho/crm/api/mass_convert/related_module.rb +82 -0
  465. data/src/com/zoho/crm/api/mass_convert/response_handler.rb +12 -0
  466. data/src/com/zoho/crm/api/mass_convert/response_wrapper.rb +65 -0
  467. data/src/com/zoho/crm/api/mass_convert/status.rb +139 -0
  468. data/src/com/zoho/crm/api/mass_convert/success_response.rb +123 -0
  469. data/src/com/zoho/crm/api/mass_delete_cvid/action_handler.rb +12 -0
  470. data/src/com/zoho/crm/api/mass_delete_cvid/action_response.rb +12 -0
  471. data/src/com/zoho/crm/api/mass_delete_cvid/action_wrapper.rb +65 -0
  472. data/src/com/zoho/crm/api/mass_delete_cvid/api_exception.rb +127 -0
  473. data/src/com/zoho/crm/api/mass_delete_cvid/cvid_body_wrapper.rb +82 -0
  474. data/src/com/zoho/crm/api/mass_delete_cvid/mass_delete_cvid_operations.rb +95 -0
  475. data/src/com/zoho/crm/api/mass_delete_cvid/mass_delete_scheduled.rb +123 -0
  476. data/src/com/zoho/crm/api/mass_delete_cvid/record_id_body_wrapper.rb +82 -0
  477. data/src/com/zoho/crm/api/mass_delete_cvid/response_handler.rb +12 -0
  478. data/src/com/zoho/crm/api/mass_delete_cvid/response_wrapper.rb +65 -0
  479. data/src/com/zoho/crm/api/mass_delete_cvid/status.rb +121 -0
  480. data/src/com/zoho/crm/api/mass_delete_cvid/success_response.rb +123 -0
  481. data/src/com/zoho/crm/api/mass_delete_cvid/territory.rb +82 -0
  482. data/src/com/zoho/crm/api/modules/action_handler.rb +12 -0
  483. data/src/com/zoho/crm/api/modules/action_response.rb +12 -0
  484. data/src/com/zoho/crm/api/modules/action_wrapper.rb +65 -0
  485. data/src/com/zoho/crm/api/modules/api_exception.rb +127 -0
  486. data/src/com/zoho/crm/api/modules/argument.rb +82 -0
  487. data/src/com/zoho/crm/api/modules/body_wrapper.rb +63 -0
  488. data/src/com/zoho/crm/api/modules/lookup_field.rb +103 -0
  489. data/src/com/zoho/crm/api/modules/lookup_field_properties.rb +63 -0
  490. data/src/com/zoho/crm/api/modules/minified_module.rb +101 -0
  491. data/src/com/zoho/crm/api/modules/module_field_lookup.rb +181 -0
  492. data/src/com/zoho/crm/api/modules/module_fields.rb +1377 -0
  493. data/src/com/zoho/crm/api/modules/modules.rb +1191 -0
  494. data/src/com/zoho/crm/api/modules/modules_operations.rb +133 -0
  495. data/src/com/zoho/crm/api/modules/related_list_properties.rb +102 -0
  496. data/src/com/zoho/crm/api/modules/response_handler.rb +12 -0
  497. data/src/com/zoho/crm/api/modules/response_wrapper.rb +65 -0
  498. data/src/com/zoho/crm/api/modules/sharing_properties.rb +102 -0
  499. data/src/com/zoho/crm/api/modules/success_response.rb +123 -0
  500. data/src/com/zoho/crm/api/modules/territory.rb +101 -0
  501. data/src/com/zoho/crm/api/notes/action_handler.rb +12 -0
  502. data/src/com/zoho/crm/api/notes/action_response.rb +12 -0
  503. data/src/com/zoho/crm/api/notes/action_wrapper.rb +65 -0
  504. data/src/com/zoho/crm/api/notes/api_exception.rb +127 -0
  505. data/src/com/zoho/crm/api/notes/body_wrapper.rb +63 -0
  506. data/src/com/zoho/crm/api/notes/info.rb +215 -0
  507. data/src/com/zoho/crm/api/notes/note.rb +370 -0
  508. data/src/com/zoho/crm/api/notes/notes_operations.rb +229 -0
  509. data/src/com/zoho/crm/api/notes/response_handler.rb +12 -0
  510. data/src/com/zoho/crm/api/notes/response_wrapper.rb +84 -0
  511. data/src/com/zoho/crm/api/notes/success_response.rb +123 -0
  512. data/src/com/zoho/crm/api/notifications/action_handler.rb +12 -0
  513. data/src/com/zoho/crm/api/notifications/action_response.rb +12 -0
  514. data/src/com/zoho/crm/api/notifications/action_wrapper.rb +65 -0
  515. data/src/com/zoho/crm/api/notifications/api_exception.rb +127 -0
  516. data/src/com/zoho/crm/api/notifications/body_wrapper.rb +63 -0
  517. data/src/com/zoho/crm/api/notifications/delete_details.rb +101 -0
  518. data/src/com/zoho/crm/api/notifications/event.rb +141 -0
  519. data/src/com/zoho/crm/api/notifications/info.rb +120 -0
  520. data/src/com/zoho/crm/api/notifications/notification.rb +275 -0
  521. data/src/com/zoho/crm/api/notifications/notifications_operations.rb +165 -0
  522. data/src/com/zoho/crm/api/notifications/response_handler.rb +12 -0
  523. data/src/com/zoho/crm/api/notifications/response_wrapper.rb +84 -0
  524. data/src/com/zoho/crm/api/notifications/success_response.rb +123 -0
  525. data/src/com/zoho/crm/api/org/action_handler.rb +12 -0
  526. data/src/com/zoho/crm/api/org/api_exception.rb +125 -0
  527. data/src/com/zoho/crm/api/org/checkin_preferences.rb +63 -0
  528. data/src/com/zoho/crm/api/org/feature.rb +82 -0
  529. data/src/com/zoho/crm/api/org/file_body_wrapper.rb +66 -0
  530. data/src/com/zoho/crm/api/org/hierarchy_preferences.rb +83 -0
  531. data/src/com/zoho/crm/api/org/license_details.rb +177 -0
  532. data/src/com/zoho/crm/api/org/org.rb +823 -0
  533. data/src/com/zoho/crm/api/org/org_operations.rb +79 -0
  534. data/src/com/zoho/crm/api/org/resource.rb +82 -0
  535. data/src/com/zoho/crm/api/org/response_handler.rb +12 -0
  536. data/src/com/zoho/crm/api/org/response_wrapper.rb +65 -0
  537. data/src/com/zoho/crm/api/org/success_response.rb +123 -0
  538. data/src/com/zoho/crm/api/param.rb +12 -0
  539. data/src/com/zoho/crm/api/parameter_map.rb +56 -0
  540. data/src/com/zoho/crm/api/pipeline/action_handler.rb +12 -0
  541. data/src/com/zoho/crm/api/pipeline/action_response.rb +12 -0
  542. data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +65 -0
  543. data/src/com/zoho/crm/api/pipeline/api_exception.rb +131 -0
  544. data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +65 -0
  545. data/src/com/zoho/crm/api/pipeline/d_pipeline.rb +63 -0
  546. data/src/com/zoho/crm/api/pipeline/d_pipeline_wrapper.rb +63 -0
  547. data/src/com/zoho/crm/api/pipeline/delete.rb +63 -0
  548. data/src/com/zoho/crm/api/pipeline/forecast_category.rb +82 -0
  549. data/src/com/zoho/crm/api/pipeline/mandatory_details.rb +82 -0
  550. data/src/com/zoho/crm/api/pipeline/maps.rb +196 -0
  551. data/src/com/zoho/crm/api/pipeline/pipeline.rb +177 -0
  552. data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +166 -0
  553. data/src/com/zoho/crm/api/pipeline/regex_details.rb +101 -0
  554. data/src/com/zoho/crm/api/pipeline/response_handler.rb +12 -0
  555. data/src/com/zoho/crm/api/pipeline/stages.rb +82 -0
  556. data/src/com/zoho/crm/api/pipeline/success_response.rb +123 -0
  557. data/src/com/zoho/crm/api/pipeline/t_pipeline.rb +82 -0
  558. data/src/com/zoho/crm/api/pipeline/transfer_pipeline.rb +82 -0
  559. data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_handler.rb +12 -0
  560. data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_response.rb +12 -0
  561. data/src/com/zoho/crm/api/pipeline/transfer_pipeline_action_wrapper.rb +67 -0
  562. data/src/com/zoho/crm/api/pipeline/transfer_pipeline_success_response.rb +123 -0
  563. data/src/com/zoho/crm/api/pipeline/transfer_pipeline_wrapper.rb +63 -0
  564. data/src/com/zoho/crm/api/portal_invite/action_handler.rb +12 -0
  565. data/src/com/zoho/crm/api/portal_invite/action_response.rb +12 -0
  566. data/src/com/zoho/crm/api/portal_invite/action_wrapper.rb +65 -0
  567. data/src/com/zoho/crm/api/portal_invite/api_exception.rb +127 -0
  568. data/src/com/zoho/crm/api/portal_invite/body_wrapper.rb +63 -0
  569. data/src/com/zoho/crm/api/portal_invite/data.rb +12 -0
  570. data/src/com/zoho/crm/api/portal_invite/job_response.rb +101 -0
  571. data/src/com/zoho/crm/api/portal_invite/portal.rb +121 -0
  572. data/src/com/zoho/crm/api/portal_invite/portal_invite.rb +63 -0
  573. data/src/com/zoho/crm/api/portal_invite/portal_invite_operations.rb +65 -0
  574. data/src/com/zoho/crm/api/portal_invite/response_wrapper.rb +63 -0
  575. data/src/com/zoho/crm/api/portal_invite/success_response.rb +125 -0
  576. data/src/com/zoho/crm/api/portal_user_type/api_exception.rb +123 -0
  577. data/src/com/zoho/crm/api/portal_user_type/fields.rb +101 -0
  578. data/src/com/zoho/crm/api/portal_user_type/filters.rb +101 -0
  579. data/src/com/zoho/crm/api/portal_user_type/layouts.rb +120 -0
  580. data/src/com/zoho/crm/api/portal_user_type/modules.rb +216 -0
  581. data/src/com/zoho/crm/api/portal_user_type/owner.rb +82 -0
  582. data/src/com/zoho/crm/api/portal_user_type/permissions.rb +178 -0
  583. data/src/com/zoho/crm/api/portal_user_type/personality_module.rb +101 -0
  584. data/src/com/zoho/crm/api/portal_user_type/portal_user_type_operations.rb +72 -0
  585. data/src/com/zoho/crm/api/portal_user_type/response_handler.rb +12 -0
  586. data/src/com/zoho/crm/api/portal_user_type/response_wrapper.rb +65 -0
  587. data/src/com/zoho/crm/api/portal_user_type/user_type.rb +253 -0
  588. data/src/com/zoho/crm/api/portal_user_type/views.rb +120 -0
  589. data/src/com/zoho/crm/api/portals/action_handler.rb +12 -0
  590. data/src/com/zoho/crm/api/portals/action_response.rb +12 -0
  591. data/src/com/zoho/crm/api/portals/action_wrapper.rb +65 -0
  592. data/src/com/zoho/crm/api/portals/api_exception.rb +127 -0
  593. data/src/com/zoho/crm/api/portals/body_wrapper.rb +63 -0
  594. data/src/com/zoho/crm/api/portals/owner.rb +82 -0
  595. data/src/com/zoho/crm/api/portals/portals.rb +177 -0
  596. data/src/com/zoho/crm/api/portals/portals_operations.rb +96 -0
  597. data/src/com/zoho/crm/api/portals/response_handler.rb +12 -0
  598. data/src/com/zoho/crm/api/portals/response_wrapper.rb +65 -0
  599. data/src/com/zoho/crm/api/portals/success_response.rb +123 -0
  600. data/src/com/zoho/crm/api/portals_meta/filters.rb +101 -0
  601. data/src/com/zoho/crm/api/portals_meta/layouts.rb +101 -0
  602. data/src/com/zoho/crm/api/portals_meta/modules.rb +177 -0
  603. data/src/com/zoho/crm/api/portals_meta/related_lists.rb +63 -0
  604. data/src/com/zoho/crm/api/portals_meta/views.rb +120 -0
  605. data/src/com/zoho/crm/api/portals_meta/wrapper.rb +63 -0
  606. data/src/com/zoho/crm/api/privacy_configurable_apps/apps.rb +63 -0
  607. data/src/com/zoho/crm/api/privacy_configurable_apps/wrapper.rb +63 -0
  608. data/src/com/zoho/crm/api/privacy_preference/config.rb +101 -0
  609. data/src/com/zoho/crm/api/privacy_preference/option.rb +120 -0
  610. data/src/com/zoho/crm/api/privacy_preference/preference.rb +462 -0
  611. data/src/com/zoho/crm/api/privacy_preference/privacy_preference.rb +82 -0
  612. data/src/com/zoho/crm/api/privacy_preference/section.rb +139 -0
  613. data/src/com/zoho/crm/api/privacy_preference/tpt.rb +101 -0
  614. data/src/com/zoho/crm/api/privacy_preference/wrapper.rb +63 -0
  615. data/src/com/zoho/crm/api/profiles/action_handler.rb +12 -0
  616. data/src/com/zoho/crm/api/profiles/action_response.rb +12 -0
  617. data/src/com/zoho/crm/api/profiles/action_wrapper.rb +65 -0
  618. data/src/com/zoho/crm/api/profiles/api_exception.rb +127 -0
  619. data/src/com/zoho/crm/api/profiles/category.rb +12 -0
  620. data/src/com/zoho/crm/api/profiles/category_module.rb +122 -0
  621. data/src/com/zoho/crm/api/profiles/category_others.rb +103 -0
  622. data/src/com/zoho/crm/api/profiles/default_view.rb +101 -0
  623. data/src/com/zoho/crm/api/profiles/info.rb +63 -0
  624. data/src/com/zoho/crm/api/profiles/minified_profile.rb +101 -0
  625. data/src/com/zoho/crm/api/profiles/permission_detail.rb +178 -0
  626. data/src/com/zoho/crm/api/profiles/profile.rb +350 -0
  627. data/src/com/zoho/crm/api/profiles/profile_wrapper.rb +84 -0
  628. data/src/com/zoho/crm/api/profiles/profiles_operations.rb +146 -0
  629. data/src/com/zoho/crm/api/profiles/response_handler.rb +12 -0
  630. data/src/com/zoho/crm/api/profiles/section.rb +82 -0
  631. data/src/com/zoho/crm/api/profiles/success_response.rb +125 -0
  632. data/src/com/zoho/crm/api/query/api_exception.rb +123 -0
  633. data/src/com/zoho/crm/api/query/body_wrapper.rb +63 -0
  634. data/src/com/zoho/crm/api/query/query_operations.rb +37 -0
  635. data/src/com/zoho/crm/api/query/response_handler.rb +12 -0
  636. data/src/com/zoho/crm/api/query/response_wrapper.rb +86 -0
  637. data/src/com/zoho/crm/api/record/action_handler.rb +12 -0
  638. data/src/com/zoho/crm/api/record/action_response.rb +12 -0
  639. data/src/com/zoho/crm/api/record/action_wrapper.rb +65 -0
  640. data/src/com/zoho/crm/api/record/api_exception.rb +143 -0
  641. data/src/com/zoho/crm/api/record/body_wrapper.rb +158 -0
  642. data/src/com/zoho/crm/api/record/carry_over_tags.rb +101 -0
  643. data/src/com/zoho/crm/api/record/comment.rb +120 -0
  644. data/src/com/zoho/crm/api/record/consent.rb +307 -0
  645. data/src/com/zoho/crm/api/record/conversion_option.rb +159 -0
  646. data/src/com/zoho/crm/api/record/conversion_options_response_wrapper.rb +65 -0
  647. data/src/com/zoho/crm/api/record/convert_body_wrapper.rb +63 -0
  648. data/src/com/zoho/crm/api/record/count_handler.rb +12 -0
  649. data/src/com/zoho/crm/api/record/count_wrapper.rb +65 -0
  650. data/src/com/zoho/crm/api/record/criteria.rb +137 -0
  651. data/src/com/zoho/crm/api/record/deleted_record.rb +159 -0
  652. data/src/com/zoho/crm/api/record/deleted_records_handler.rb +12 -0
  653. data/src/com/zoho/crm/api/record/deleted_records_wrapper.rb +84 -0
  654. data/src/com/zoho/crm/api/record/download_handler.rb +12 -0
  655. data/src/com/zoho/crm/api/record/duplicate_record.rb +103 -0
  656. data/src/com/zoho/crm/api/record/field.rb +2479 -0
  657. data/src/com/zoho/crm/api/record/file_body_wrapper.rb +68 -0
  658. data/src/com/zoho/crm/api/record/file_details.rb +139 -0
  659. data/src/com/zoho/crm/api/record/file_handler.rb +12 -0
  660. data/src/com/zoho/crm/api/record/image_upload.rb +215 -0
  661. data/src/com/zoho/crm/api/record/info.rb +253 -0
  662. data/src/com/zoho/crm/api/record/lead_converter.rb +197 -0
  663. data/src/com/zoho/crm/api/record/line_item_product.rb +171 -0
  664. data/src/com/zoho/crm/api/record/line_tax.rb +139 -0
  665. data/src/com/zoho/crm/api/record/mass_update.rb +142 -0
  666. data/src/com/zoho/crm/api/record/mass_update_action_handler.rb +12 -0
  667. data/src/com/zoho/crm/api/record/mass_update_action_response.rb +12 -0
  668. data/src/com/zoho/crm/api/record/mass_update_action_wrapper.rb +65 -0
  669. data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +158 -0
  670. data/src/com/zoho/crm/api/record/mass_update_response.rb +12 -0
  671. data/src/com/zoho/crm/api/record/mass_update_response_handler.rb +12 -0
  672. data/src/com/zoho/crm/api/record/mass_update_response_wrapper.rb +65 -0
  673. data/src/com/zoho/crm/api/record/mass_update_success_response.rb +123 -0
  674. data/src/com/zoho/crm/api/record/mass_update_territory.rb +82 -0
  675. data/src/com/zoho/crm/api/record/multi_select_lookup.rb +101 -0
  676. data/src/com/zoho/crm/api/record/multi_select_picklist.rb +82 -0
  677. data/src/com/zoho/crm/api/record/options.rb +32 -0
  678. data/src/com/zoho/crm/api/record/participants.rb +222 -0
  679. data/src/com/zoho/crm/api/record/preference_field_matched_value.rb +101 -0
  680. data/src/com/zoho/crm/api/record/price_book.rb +137 -0
  681. data/src/com/zoho/crm/api/record/pricing_details.rb +188 -0
  682. data/src/com/zoho/crm/api/record/record.rb +211 -0
  683. data/src/com/zoho/crm/api/record/record_operations.rb +1182 -0
  684. data/src/com/zoho/crm/api/record/recurring_activity.rb +82 -0
  685. data/src/com/zoho/crm/api/record/remind_at.rb +63 -0
  686. data/src/com/zoho/crm/api/record/reminder.rb +101 -0
  687. data/src/com/zoho/crm/api/record/response_handler.rb +12 -0
  688. data/src/com/zoho/crm/api/record/response_wrapper.rb +84 -0
  689. data/src/com/zoho/crm/api/record/success_response.rb +163 -0
  690. data/src/com/zoho/crm/api/record/tax.rb +82 -0
  691. data/src/com/zoho/crm/api/record/territory.rb +140 -0
  692. data/src/com/zoho/crm/api/record/widget.rb +82 -0
  693. data/src/com/zoho/crm/api/record/wizard.rb +82 -0
  694. data/src/com/zoho/crm/api/record_locking/action_handler.rb +12 -0
  695. data/src/com/zoho/crm/api/record_locking/action_response.rb +12 -0
  696. data/src/com/zoho/crm/api/record_locking/action_responses.rb +12 -0
  697. data/src/com/zoho/crm/api/record_locking/action_wrapper.rb +65 -0
  698. data/src/com/zoho/crm/api/record_locking/api_exception.rb +129 -0
  699. data/src/com/zoho/crm/api/record_locking/body_wrapper.rb +63 -0
  700. data/src/com/zoho/crm/api/record_locking/error_handler.rb +12 -0
  701. data/src/com/zoho/crm/api/record_locking/error_wrapper.rb +65 -0
  702. data/src/com/zoho/crm/api/record_locking/info.rb +253 -0
  703. data/src/com/zoho/crm/api/record_locking/lock_record.rb +63 -0
  704. data/src/com/zoho/crm/api/record_locking/locked_for_s.rb +101 -0
  705. data/src/com/zoho/crm/api/record_locking/record_action_locked.rb +63 -0
  706. data/src/com/zoho/crm/api/record_locking/record_action_locked_detail1.rb +101 -0
  707. data/src/com/zoho/crm/api/record_locking/record_action_locked_detail2.rb +82 -0
  708. data/src/com/zoho/crm/api/record_locking/record_lock.rb +257 -0
  709. data/src/com/zoho/crm/api/record_locking/record_locking_operations.rb +201 -0
  710. data/src/com/zoho/crm/api/record_locking/response_handler.rb +12 -0
  711. data/src/com/zoho/crm/api/record_locking/response_wrapper.rb +84 -0
  712. data/src/com/zoho/crm/api/record_locking/success_response.rb +161 -0
  713. data/src/com/zoho/crm/api/related_lists/api_exception.rb +123 -0
  714. data/src/com/zoho/crm/api/related_lists/field.rb +82 -0
  715. data/src/com/zoho/crm/api/related_lists/module_map.rb +82 -0
  716. data/src/com/zoho/crm/api/related_lists/related_list.rb +386 -0
  717. data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +82 -0
  718. data/src/com/zoho/crm/api/related_lists/response_handler.rb +12 -0
  719. data/src/com/zoho/crm/api/related_lists/response_wrapper.rb +65 -0
  720. data/src/com/zoho/crm/api/related_records/action_handler.rb +12 -0
  721. data/src/com/zoho/crm/api/related_records/action_response.rb +12 -0
  722. data/src/com/zoho/crm/api/related_records/action_wrapper.rb +65 -0
  723. data/src/com/zoho/crm/api/related_records/api_exception.rb +127 -0
  724. data/src/com/zoho/crm/api/related_records/body_wrapper.rb +64 -0
  725. data/src/com/zoho/crm/api/related_records/file_body_wrapper.rb +66 -0
  726. data/src/com/zoho/crm/api/related_records/related_records_operations.rb +556 -0
  727. data/src/com/zoho/crm/api/related_records/response_handler.rb +12 -0
  728. data/src/com/zoho/crm/api/related_records/response_wrapper.rb +86 -0
  729. data/src/com/zoho/crm/api/related_records/success_response.rb +123 -0
  730. data/src/com/zoho/crm/api/request_proxy.rb +17 -0
  731. data/src/com/zoho/crm/api/reschedule_history/action_handler.rb +12 -0
  732. data/src/com/zoho/crm/api/reschedule_history/action_response.rb +12 -0
  733. data/src/com/zoho/crm/api/reschedule_history/action_wrapper.rb +65 -0
  734. data/src/com/zoho/crm/api/reschedule_history/api_exception.rb +127 -0
  735. data/src/com/zoho/crm/api/reschedule_history/appointment_name.rb +82 -0
  736. data/src/com/zoho/crm/api/reschedule_history/approval.rb +120 -0
  737. data/src/com/zoho/crm/api/reschedule_history/body_wrapper.rb +63 -0
  738. data/src/com/zoho/crm/api/reschedule_history/info.rb +177 -0
  739. data/src/com/zoho/crm/api/reschedule_history/reschedule_history.rb +557 -0
  740. data/src/com/zoho/crm/api/reschedule_history/reschedule_history_operations.rb +177 -0
  741. data/src/com/zoho/crm/api/reschedule_history/response_handler.rb +12 -0
  742. data/src/com/zoho/crm/api/reschedule_history/response_wrapper.rb +84 -0
  743. data/src/com/zoho/crm/api/reschedule_history/success_response.rb +123 -0
  744. data/src/com/zoho/crm/api/reschedule_history/user.rb +101 -0
  745. data/src/com/zoho/crm/api/roles/action_handler.rb +12 -0
  746. data/src/com/zoho/crm/api/roles/action_response.rb +12 -0
  747. data/src/com/zoho/crm/api/roles/action_wrapper.rb +65 -0
  748. data/src/com/zoho/crm/api/roles/api_exception.rb +127 -0
  749. data/src/com/zoho/crm/api/roles/body_wrapper.rb +63 -0
  750. data/src/com/zoho/crm/api/roles/reporting_to.rb +82 -0
  751. data/src/com/zoho/crm/api/roles/response_handler.rb +12 -0
  752. data/src/com/zoho/crm/api/roles/response_wrapper.rb +65 -0
  753. data/src/com/zoho/crm/api/roles/role.rb +273 -0
  754. data/src/com/zoho/crm/api/roles/roles_operations.rb +150 -0
  755. data/src/com/zoho/crm/api/roles/success_response.rb +123 -0
  756. data/src/com/zoho/crm/api/scoring_rules/action_handler.rb +12 -0
  757. data/src/com/zoho/crm/api/scoring_rules/action_response.rb +12 -0
  758. data/src/com/zoho/crm/api/scoring_rules/action_wrapper.rb +65 -0
  759. data/src/com/zoho/crm/api/scoring_rules/api_exception.rb +127 -0
  760. data/src/com/zoho/crm/api/scoring_rules/body_wrapper.rb +63 -0
  761. data/src/com/zoho/crm/api/scoring_rules/criteria.rb +136 -0
  762. data/src/com/zoho/crm/api/scoring_rules/field.rb +82 -0
  763. data/src/com/zoho/crm/api/scoring_rules/field_rule.rb +101 -0
  764. data/src/com/zoho/crm/api/scoring_rules/info.rb +215 -0
  765. data/src/com/zoho/crm/api/scoring_rules/layout.rb +82 -0
  766. data/src/com/zoho/crm/api/scoring_rules/layout_request_wrapper.rb +63 -0
  767. data/src/com/zoho/crm/api/scoring_rules/response_handler.rb +12 -0
  768. data/src/com/zoho/crm/api/scoring_rules/response_wrapper.rb +84 -0
  769. data/src/com/zoho/crm/api/scoring_rules/role_request_wrapper.rb +63 -0
  770. data/src/com/zoho/crm/api/scoring_rules/scoring_rule.rb +274 -0
  771. data/src/com/zoho/crm/api/scoring_rules/scoring_rules_operations.rb +331 -0
  772. data/src/com/zoho/crm/api/scoring_rules/signal.rb +82 -0
  773. data/src/com/zoho/crm/api/scoring_rules/signal_rule.rb +101 -0
  774. data/src/com/zoho/crm/api/scoring_rules/success_response.rb +125 -0
  775. data/src/com/zoho/crm/api/sdk_config.rb +15 -0
  776. data/src/com/zoho/crm/api/send_mail/action_handler.rb +12 -0
  777. data/src/com/zoho/crm/api/send_mail/action_response.rb +12 -0
  778. data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +65 -0
  779. data/src/com/zoho/crm/api/send_mail/api_exception.rb +125 -0
  780. data/src/com/zoho/crm/api/send_mail/attachment.rb +63 -0
  781. data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +63 -0
  782. data/src/com/zoho/crm/api/send_mail/data.rb +349 -0
  783. data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +82 -0
  784. data/src/com/zoho/crm/api/send_mail/from.rb +82 -0
  785. data/src/com/zoho/crm/api/send_mail/invalid_details.rb +82 -0
  786. data/src/com/zoho/crm/api/send_mail/inventory_details.rb +63 -0
  787. data/src/com/zoho/crm/api/send_mail/inventory_template.rb +82 -0
  788. data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +51 -0
  789. data/src/com/zoho/crm/api/send_mail/success_response.rb +123 -0
  790. data/src/com/zoho/crm/api/send_mail/template.rb +12 -0
  791. data/src/com/zoho/crm/api/send_mail/to.rb +82 -0
  792. data/src/com/zoho/crm/api/service_preference/action_handler.rb +12 -0
  793. data/src/com/zoho/crm/api/service_preference/action_response.rb +12 -0
  794. data/src/com/zoho/crm/api/service_preference/action_wrapper.rb +65 -0
  795. data/src/com/zoho/crm/api/service_preference/api_exception.rb +127 -0
  796. data/src/com/zoho/crm/api/service_preference/body_wrapper.rb +63 -0
  797. data/src/com/zoho/crm/api/service_preference/response_handler.rb +12 -0
  798. data/src/com/zoho/crm/api/service_preference/response_wrapper.rb +65 -0
  799. data/src/com/zoho/crm/api/service_preference/service_preference.rb +63 -0
  800. data/src/com/zoho/crm/api/service_preference/service_preference_operations.rb +51 -0
  801. data/src/com/zoho/crm/api/service_preference/success_response.rb +123 -0
  802. data/src/com/zoho/crm/api/share_records/action_handler.rb +12 -0
  803. data/src/com/zoho/crm/api/share_records/action_response.rb +12 -0
  804. data/src/com/zoho/crm/api/share_records/action_wrapper.rb +65 -0
  805. data/src/com/zoho/crm/api/share_records/api_exception.rb +131 -0
  806. data/src/com/zoho/crm/api/share_records/body_wrapper.rb +101 -0
  807. data/src/com/zoho/crm/api/share_records/delete_action_handler.rb +12 -0
  808. data/src/com/zoho/crm/api/share_records/delete_action_response.rb +12 -0
  809. data/src/com/zoho/crm/api/share_records/delete_action_wrapper.rb +65 -0
  810. data/src/com/zoho/crm/api/share_records/dependee.rb +82 -0
  811. data/src/com/zoho/crm/api/share_records/module.rb +101 -0
  812. data/src/com/zoho/crm/api/share_records/response_handler.rb +12 -0
  813. data/src/com/zoho/crm/api/share_records/response_wrapper.rb +85 -0
  814. data/src/com/zoho/crm/api/share_records/share_record.rb +198 -0
  815. data/src/com/zoho/crm/api/share_records/share_records_operations.rb +130 -0
  816. data/src/com/zoho/crm/api/share_records/shared_through.rb +120 -0
  817. data/src/com/zoho/crm/api/share_records/success_response.rb +125 -0
  818. data/src/com/zoho/crm/api/shift_hours/action_handler.rb +12 -0
  819. data/src/com/zoho/crm/api/shift_hours/action_response.rb +12 -0
  820. data/src/com/zoho/crm/api/shift_hours/action_wrapper.rb +65 -0
  821. data/src/com/zoho/crm/api/shift_hours/api_exception.rb +127 -0
  822. data/src/com/zoho/crm/api/shift_hours/body_wrapper.rb +63 -0
  823. data/src/com/zoho/crm/api/shift_hours/break_custom_timing.rb +82 -0
  824. data/src/com/zoho/crm/api/shift_hours/break_hours.rb +139 -0
  825. data/src/com/zoho/crm/api/shift_hours/holidays.rb +120 -0
  826. data/src/com/zoho/crm/api/shift_hours/mandatory_details.rb +82 -0
  827. data/src/com/zoho/crm/api/shift_hours/response_handler.rb +12 -0
  828. data/src/com/zoho/crm/api/shift_hours/response_wrapper.rb +84 -0
  829. data/src/com/zoho/crm/api/shift_hours/role.rb +82 -0
  830. data/src/com/zoho/crm/api/shift_hours/shift_count.rb +82 -0
  831. data/src/com/zoho/crm/api/shift_hours/shift_custom_timing.rb +82 -0
  832. data/src/com/zoho/crm/api/shift_hours/shift_hours.rb +253 -0
  833. data/src/com/zoho/crm/api/shift_hours/shift_hours_operations.rb +166 -0
  834. data/src/com/zoho/crm/api/shift_hours/success_response.rb +123 -0
  835. data/src/com/zoho/crm/api/shift_hours/users.rb +158 -0
  836. data/src/com/zoho/crm/api/tags/action_handler.rb +12 -0
  837. data/src/com/zoho/crm/api/tags/action_response.rb +12 -0
  838. data/src/com/zoho/crm/api/tags/action_wrapper.rb +65 -0
  839. data/src/com/zoho/crm/api/tags/api_exception.rb +131 -0
  840. data/src/com/zoho/crm/api/tags/associated_places.rb +82 -0
  841. data/src/com/zoho/crm/api/tags/body_wrapper.rb +63 -0
  842. data/src/com/zoho/crm/api/tags/conflict_wrapper.rb +63 -0
  843. data/src/com/zoho/crm/api/tags/count_response_wrapper.rb +65 -0
  844. data/src/com/zoho/crm/api/tags/error_details.rb +82 -0
  845. data/src/com/zoho/crm/api/tags/existing_tag.rb +82 -0
  846. data/src/com/zoho/crm/api/tags/existing_tag_request_wrapper.rb +82 -0
  847. data/src/com/zoho/crm/api/tags/info.rb +82 -0
  848. data/src/com/zoho/crm/api/tags/merge_wrapper.rb +63 -0
  849. data/src/com/zoho/crm/api/tags/new_tag_request_wrapper.rb +101 -0
  850. data/src/com/zoho/crm/api/tags/record_action_handler.rb +12 -0
  851. data/src/com/zoho/crm/api/tags/record_action_response.rb +12 -0
  852. data/src/com/zoho/crm/api/tags/record_action_wrapper.rb +122 -0
  853. data/src/com/zoho/crm/api/tags/record_detail_tag.rb +101 -0
  854. data/src/com/zoho/crm/api/tags/record_success_response.rb +123 -0
  855. data/src/com/zoho/crm/api/tags/response_handler.rb +12 -0
  856. data/src/com/zoho/crm/api/tags/response_wrapper.rb +84 -0
  857. data/src/com/zoho/crm/api/tags/success_response.rb +123 -0
  858. data/src/com/zoho/crm/api/tags/tag.rb +179 -0
  859. data/src/com/zoho/crm/api/tags/tags_operations.rb +385 -0
  860. data/src/com/zoho/crm/api/taxes/action_handler.rb +12 -0
  861. data/src/com/zoho/crm/api/taxes/action_response.rb +12 -0
  862. data/src/com/zoho/crm/api/taxes/action_wrapper.rb +65 -0
  863. data/src/com/zoho/crm/api/taxes/api_exception.rb +127 -0
  864. data/src/com/zoho/crm/api/taxes/body_wrapper.rb +63 -0
  865. data/src/com/zoho/crm/api/taxes/expected_field.rb +82 -0
  866. data/src/com/zoho/crm/api/taxes/org_tax.rb +82 -0
  867. data/src/com/zoho/crm/api/taxes/preference.rb +82 -0
  868. data/src/com/zoho/crm/api/taxes/response_handler.rb +12 -0
  869. data/src/com/zoho/crm/api/taxes/response_wrapper.rb +65 -0
  870. data/src/com/zoho/crm/api/taxes/success_response.rb +123 -0
  871. data/src/com/zoho/crm/api/taxes/tax.rb +158 -0
  872. data/src/com/zoho/crm/api/taxes/taxes_operations.rb +70 -0
  873. data/src/com/zoho/crm/api/templates/api_exception.rb +121 -0
  874. data/src/com/zoho/crm/api/templates/folder.rb +82 -0
  875. data/src/com/zoho/crm/api/templates/templates.rb +234 -0
  876. data/src/com/zoho/crm/api/templates/wrapper.rb +63 -0
  877. data/src/com/zoho/crm/api/territories/action_handler.rb +12 -0
  878. data/src/com/zoho/crm/api/territories/action_response.rb +12 -0
  879. data/src/com/zoho/crm/api/territories/action_wrapper.rb +65 -0
  880. data/src/com/zoho/crm/api/territories/api_exception.rb +127 -0
  881. data/src/com/zoho/crm/api/territories/associated_users_count.rb +82 -0
  882. data/src/com/zoho/crm/api/territories/associated_users_count_wrapper.rb +84 -0
  883. data/src/com/zoho/crm/api/territories/body_wrapper.rb +63 -0
  884. data/src/com/zoho/crm/api/territories/criteria.rb +136 -0
  885. data/src/com/zoho/crm/api/territories/deleted_associated_territories.rb +121 -0
  886. data/src/com/zoho/crm/api/territories/deleted_associated_wrapper.rb +82 -0
  887. data/src/com/zoho/crm/api/territories/field.rb +82 -0
  888. data/src/com/zoho/crm/api/territories/info.rb +120 -0
  889. data/src/com/zoho/crm/api/territories/manager.rb +82 -0
  890. data/src/com/zoho/crm/api/territories/minified_territory.rb +101 -0
  891. data/src/com/zoho/crm/api/territories/reporting_to.rb +82 -0
  892. data/src/com/zoho/crm/api/territories/response_handler.rb +12 -0
  893. data/src/com/zoho/crm/api/territories/response_wrapper.rb +84 -0
  894. data/src/com/zoho/crm/api/territories/success_response.rb +123 -0
  895. data/src/com/zoho/crm/api/territories/territories.rb +293 -0
  896. data/src/com/zoho/crm/api/territories/territories_operations.rb +283 -0
  897. data/src/com/zoho/crm/api/territories/transfer_body_wrapper.rb +63 -0
  898. data/src/com/zoho/crm/api/territories/transfer_territory.rb +101 -0
  899. data/src/com/zoho/crm/api/territory_users/action_handler.rb +12 -0
  900. data/src/com/zoho/crm/api/territory_users/action_response.rb +12 -0
  901. data/src/com/zoho/crm/api/territory_users/action_wrapper.rb +65 -0
  902. data/src/com/zoho/crm/api/territory_users/api_exception.rb +127 -0
  903. data/src/com/zoho/crm/api/territory_users/body_wrapper.rb +64 -0
  904. data/src/com/zoho/crm/api/territory_users/info.rb +120 -0
  905. data/src/com/zoho/crm/api/territory_users/response_handler.rb +12 -0
  906. data/src/com/zoho/crm/api/territory_users/response_wrapper.rb +85 -0
  907. data/src/com/zoho/crm/api/territory_users/success_response.rb +123 -0
  908. data/src/com/zoho/crm/api/territory_users/territory_users_operations.rb +172 -0
  909. data/src/com/zoho/crm/api/timelines/api_exception.rb +123 -0
  910. data/src/com/zoho/crm/api/timelines/automation_detail.rb +101 -0
  911. data/src/com/zoho/crm/api/timelines/field_history.rb +177 -0
  912. data/src/com/zoho/crm/api/timelines/field_history_value.rb +82 -0
  913. data/src/com/zoho/crm/api/timelines/info.rb +158 -0
  914. data/src/com/zoho/crm/api/timelines/module.rb +82 -0
  915. data/src/com/zoho/crm/api/timelines/name_id_structure.rb +82 -0
  916. data/src/com/zoho/crm/api/timelines/path_finder.rb +101 -0
  917. data/src/com/zoho/crm/api/timelines/picklist_detail.rb +158 -0
  918. data/src/com/zoho/crm/api/timelines/record.rb +101 -0
  919. data/src/com/zoho/crm/api/timelines/related_record.rb +101 -0
  920. data/src/com/zoho/crm/api/timelines/response_handler.rb +12 -0
  921. data/src/com/zoho/crm/api/timelines/response_wrapper.rb +84 -0
  922. data/src/com/zoho/crm/api/timelines/state.rb +120 -0
  923. data/src/com/zoho/crm/api/timelines/timeline.rb +253 -0
  924. data/src/com/zoho/crm/api/timelines/timelines_operations.rb +88 -0
  925. data/src/com/zoho/crm/api/user_groups/action_handler.rb +12 -0
  926. data/src/com/zoho/crm/api/user_groups/action_response.rb +12 -0
  927. data/src/com/zoho/crm/api/user_groups/action_wrapper.rb +65 -0
  928. data/src/com/zoho/crm/api/user_groups/api_exception.rb +127 -0
  929. data/src/com/zoho/crm/api/user_groups/associated_user.rb +82 -0
  930. data/src/com/zoho/crm/api/user_groups/associated_user_count.rb +84 -0
  931. data/src/com/zoho/crm/api/user_groups/association_module.rb +64 -0
  932. data/src/com/zoho/crm/api/user_groups/association_response.rb +101 -0
  933. data/src/com/zoho/crm/api/user_groups/association_wrapper.rb +65 -0
  934. data/src/com/zoho/crm/api/user_groups/body_wrapper.rb +63 -0
  935. data/src/com/zoho/crm/api/user_groups/groups.rb +196 -0
  936. data/src/com/zoho/crm/api/user_groups/info.rb +120 -0
  937. data/src/com/zoho/crm/api/user_groups/jobs.rb +63 -0
  938. data/src/com/zoho/crm/api/user_groups/jobs_wrapper.rb +63 -0
  939. data/src/com/zoho/crm/api/user_groups/owner.rb +82 -0
  940. data/src/com/zoho/crm/api/user_groups/resource.rb +82 -0
  941. data/src/com/zoho/crm/api/user_groups/response_handler.rb +12 -0
  942. data/src/com/zoho/crm/api/user_groups/response_wrapper.rb +84 -0
  943. data/src/com/zoho/crm/api/user_groups/source.rb +82 -0
  944. data/src/com/zoho/crm/api/user_groups/sources.rb +121 -0
  945. data/src/com/zoho/crm/api/user_groups/sources_count.rb +120 -0
  946. data/src/com/zoho/crm/api/user_groups/sources_count_wrapper.rb +65 -0
  947. data/src/com/zoho/crm/api/user_groups/sources_wrapper.rb +84 -0
  948. data/src/com/zoho/crm/api/user_groups/success_response.rb +123 -0
  949. data/src/com/zoho/crm/api/user_groups/user_group.rb +82 -0
  950. data/src/com/zoho/crm/api/user_groups/user_groups_operations.rb +260 -0
  951. data/src/com/zoho/crm/api/user_groups/users.rb +101 -0
  952. data/src/com/zoho/crm/api/user_signature.rb +15 -0
  953. data/src/com/zoho/crm/api/user_type_users/api_exception.rb +123 -0
  954. data/src/com/zoho/crm/api/user_type_users/info.rb +139 -0
  955. data/src/com/zoho/crm/api/user_type_users/response_handler.rb +12 -0
  956. data/src/com/zoho/crm/api/user_type_users/response_wrapper.rb +84 -0
  957. data/src/com/zoho/crm/api/user_type_users/user_type_users_operations.rb +60 -0
  958. data/src/com/zoho/crm/api/user_type_users/users.rb +196 -0
  959. data/src/com/zoho/crm/api/users/action_handler.rb +12 -0
  960. data/src/com/zoho/crm/api/users/action_response.rb +12 -0
  961. data/src/com/zoho/crm/api/users/action_wrapper.rb +65 -0
  962. data/src/com/zoho/crm/api/users/api_exception.rb +127 -0
  963. data/src/com/zoho/crm/api/users/associated_group.rb +177 -0
  964. data/src/com/zoho/crm/api/users/associated_groups_wrapper.rb +84 -0
  965. data/src/com/zoho/crm/api/users/body_wrapper.rb +63 -0
  966. data/src/com/zoho/crm/api/users/customize_info.rb +146 -0
  967. data/src/com/zoho/crm/api/users/error_details.rb +82 -0
  968. data/src/com/zoho/crm/api/users/info.rb +120 -0
  969. data/src/com/zoho/crm/api/users/minified_user.rb +101 -0
  970. data/src/com/zoho/crm/api/users/owner.rb +120 -0
  971. data/src/com/zoho/crm/api/users/profile.rb +82 -0
  972. data/src/com/zoho/crm/api/users/response_handler.rb +12 -0
  973. data/src/com/zoho/crm/api/users/response_wrapper.rb +84 -0
  974. data/src/com/zoho/crm/api/users/role.rb +82 -0
  975. data/src/com/zoho/crm/api/users/shift.rb +82 -0
  976. data/src/com/zoho/crm/api/users/success_response.rb +123 -0
  977. data/src/com/zoho/crm/api/users/tab.rb +83 -0
  978. data/src/com/zoho/crm/api/users/theme.rb +159 -0
  979. data/src/com/zoho/crm/api/users/users.rb +1086 -0
  980. data/src/com/zoho/crm/api/users/users_operations.rb +208 -0
  981. data/src/com/zoho/crm/api/users_territories/action_handler.rb +12 -0
  982. data/src/com/zoho/crm/api/users_territories/action_response.rb +12 -0
  983. data/src/com/zoho/crm/api/users_territories/action_wrapper.rb +67 -0
  984. data/src/com/zoho/crm/api/users_territories/api_exception.rb +131 -0
  985. data/src/com/zoho/crm/api/users_territories/body_wrapper.rb +63 -0
  986. data/src/com/zoho/crm/api/users_territories/bulk_validation.rb +141 -0
  987. data/src/com/zoho/crm/api/users_territories/info.rb +120 -0
  988. data/src/com/zoho/crm/api/users_territories/manager.rb +82 -0
  989. data/src/com/zoho/crm/api/users_territories/response_handler.rb +12 -0
  990. data/src/com/zoho/crm/api/users_territories/response_wrapper.rb +84 -0
  991. data/src/com/zoho/crm/api/users_territories/success_response.rb +125 -0
  992. data/src/com/zoho/crm/api/users_territories/territory.rb +120 -0
  993. data/src/com/zoho/crm/api/users_territories/transfer_action_handler.rb +12 -0
  994. data/src/com/zoho/crm/api/users_territories/transfer_action_response.rb +12 -0
  995. data/src/com/zoho/crm/api/users_territories/transfer_action_wrapper.rb +65 -0
  996. data/src/com/zoho/crm/api/users_territories/transfer_and_delink.rb +82 -0
  997. data/src/com/zoho/crm/api/users_territories/transfer_to_user.rb +63 -0
  998. data/src/com/zoho/crm/api/users_territories/transfer_wrapper.rb +63 -0
  999. data/src/com/zoho/crm/api/users_territories/users_territories_operations.rb +192 -0
  1000. data/src/com/zoho/crm/api/users_territories/validation.rb +103 -0
  1001. data/src/com/zoho/crm/api/users_territories/validation_group.rb +12 -0
  1002. data/src/com/zoho/crm/api/users_territories/validation_handler.rb +12 -0
  1003. data/src/com/zoho/crm/api/users_territories/validation_wrapper.rb +65 -0
  1004. data/src/com/zoho/crm/api/users_transfer_delete/action_handler.rb +12 -0
  1005. data/src/com/zoho/crm/api/users_transfer_delete/action_response.rb +12 -0
  1006. data/src/com/zoho/crm/api/users_transfer_delete/action_wrapper.rb +65 -0
  1007. data/src/com/zoho/crm/api/users_transfer_delete/api_exception.rb +127 -0
  1008. data/src/com/zoho/crm/api/users_transfer_delete/body_wrapper.rb +63 -0
  1009. data/src/com/zoho/crm/api/users_transfer_delete/move_subordinate.rb +63 -0
  1010. data/src/com/zoho/crm/api/users_transfer_delete/response_handler.rb +12 -0
  1011. data/src/com/zoho/crm/api/users_transfer_delete/response_wrapper.rb +65 -0
  1012. data/src/com/zoho/crm/api/users_transfer_delete/status.rb +63 -0
  1013. data/src/com/zoho/crm/api/users_transfer_delete/success_response.rb +123 -0
  1014. data/src/com/zoho/crm/api/users_transfer_delete/transfer.rb +120 -0
  1015. data/src/com/zoho/crm/api/users_transfer_delete/transfer_and_delete.rb +101 -0
  1016. data/src/com/zoho/crm/api/users_transfer_delete/transfer_and_delete_by_i_d.rb +82 -0
  1017. data/src/com/zoho/crm/api/users_transfer_delete/users_transfer_delete_operations.rb +92 -0
  1018. data/src/com/zoho/crm/api/users_unavailability/action_handler.rb +12 -0
  1019. data/src/com/zoho/crm/api/users_unavailability/action_response.rb +12 -0
  1020. data/src/com/zoho/crm/api/users_unavailability/action_wrapper.rb +65 -0
  1021. data/src/com/zoho/crm/api/users_unavailability/api_exception.rb +127 -0
  1022. data/src/com/zoho/crm/api/users_unavailability/body_wrapper.rb +63 -0
  1023. data/src/com/zoho/crm/api/users_unavailability/info.rb +120 -0
  1024. data/src/com/zoho/crm/api/users_unavailability/response_handler.rb +12 -0
  1025. data/src/com/zoho/crm/api/users_unavailability/response_wrapper.rb +84 -0
  1026. data/src/com/zoho/crm/api/users_unavailability/success_response.rb +123 -0
  1027. data/src/com/zoho/crm/api/users_unavailability/user.rb +101 -0
  1028. data/src/com/zoho/crm/api/users_unavailability/users_unavailability.rb +234 -0
  1029. data/src/com/zoho/crm/api/users_unavailability/users_unavailability_operations.rb +181 -0
  1030. data/src/com/zoho/crm/api/util/api_http_connector.rb +125 -0
  1031. data/src/com/zoho/crm/api/util/api_response.rb +18 -0
  1032. data/src/com/zoho/crm/api/util/choice.rb +11 -0
  1033. data/src/com/zoho/crm/api/util/common_api_handler.rb +240 -0
  1034. data/src/com/zoho/crm/api/util/constants.rb +754 -0
  1035. data/src/com/zoho/crm/api/util/converter.rb +280 -0
  1036. data/src/com/zoho/crm/api/util/data_type_converter.rb +179 -0
  1037. data/src/com/zoho/crm/api/util/downloader.rb +86 -0
  1038. data/src/com/zoho/crm/api/util/form_data_converter.rb +159 -0
  1039. data/src/com/zoho/crm/api/util/header_param_validator.rb +57 -0
  1040. data/src/com/zoho/crm/api/util/json_converter.rb +774 -0
  1041. data/src/com/zoho/crm/api/util/model.rb +7 -0
  1042. data/src/com/zoho/crm/api/util/module_fields_handler.rb +91 -0
  1043. data/src/com/zoho/crm/api/util/stream_wrapper.rb +39 -0
  1044. data/src/com/zoho/crm/api/util/utility.rb +1007 -0
  1045. data/src/com/zoho/crm/api/variable_groups/api_exception.rb +123 -0
  1046. data/src/com/zoho/crm/api/variable_groups/minified_variable_group.rb +82 -0
  1047. data/src/com/zoho/crm/api/variable_groups/response_handler.rb +12 -0
  1048. data/src/com/zoho/crm/api/variable_groups/response_wrapper.rb +65 -0
  1049. data/src/com/zoho/crm/api/variable_groups/variable_group.rb +158 -0
  1050. data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +68 -0
  1051. data/src/com/zoho/crm/api/variables/action_handler.rb +12 -0
  1052. data/src/com/zoho/crm/api/variables/action_response.rb +12 -0
  1053. data/src/com/zoho/crm/api/variables/action_wrapper.rb +65 -0
  1054. data/src/com/zoho/crm/api/variables/api_exception.rb +127 -0
  1055. data/src/com/zoho/crm/api/variables/body_wrapper.rb +63 -0
  1056. data/src/com/zoho/crm/api/variables/error_details.rb +82 -0
  1057. data/src/com/zoho/crm/api/variables/response_handler.rb +12 -0
  1058. data/src/com/zoho/crm/api/variables/response_wrapper.rb +65 -0
  1059. data/src/com/zoho/crm/api/variables/success_response.rb +123 -0
  1060. data/src/com/zoho/crm/api/variables/variable.rb +213 -0
  1061. data/src/com/zoho/crm/api/variables/variable_group.rb +101 -0
  1062. data/src/com/zoho/crm/api/variables/variables_operations.rb +255 -0
  1063. data/src/com/zoho/crm/api/wizards/actions.rb +157 -0
  1064. data/src/com/zoho/crm/api/wizards/api_exception.rb +123 -0
  1065. data/src/com/zoho/crm/api/wizards/button.rb +288 -0
  1066. data/src/com/zoho/crm/api/wizards/button_background.rb +63 -0
  1067. data/src/com/zoho/crm/api/wizards/chart_data.rb +139 -0
  1068. data/src/com/zoho/crm/api/wizards/conditional_rules.rb +121 -0
  1069. data/src/com/zoho/crm/api/wizards/connection.rb +82 -0
  1070. data/src/com/zoho/crm/api/wizards/container.rb +121 -0
  1071. data/src/com/zoho/crm/api/wizards/criteria.rb +136 -0
  1072. data/src/com/zoho/crm/api/wizards/exempted_portal_user_type.rb +63 -0
  1073. data/src/com/zoho/crm/api/wizards/field.rb +82 -0
  1074. data/src/com/zoho/crm/api/wizards/node.rb +120 -0
  1075. data/src/com/zoho/crm/api/wizards/portal_user_type.rb +121 -0
  1076. data/src/com/zoho/crm/api/wizards/resource.rb +82 -0
  1077. data/src/com/zoho/crm/api/wizards/response_handler.rb +12 -0
  1078. data/src/com/zoho/crm/api/wizards/response_wrapper.rb +65 -0
  1079. data/src/com/zoho/crm/api/wizards/screen.rb +120 -0
  1080. data/src/com/zoho/crm/api/wizards/segment.rb +197 -0
  1081. data/src/com/zoho/crm/api/wizards/transition.rb +82 -0
  1082. data/src/com/zoho/crm/api/wizards/wizard.rb +313 -0
  1083. data/src/com/zoho/crm/api/wizards/wizards_operations.rb +63 -0
  1084. data/src/resources/json_details.json +1 -0
  1085. data/src/version.rb +3 -0
  1086. metadata +1241 -0
@@ -0,0 +1,1007 @@
1
+ require 'json'
2
+ require 'monitor'
3
+
4
+ require_relative '../related_lists/related_lists_operations'
5
+ require_relative '../related_lists/related_list'
6
+ require_relative '../fields/fields_operations'
7
+ require_relative '../fields/fields'
8
+ require_relative '../fields/body_wrapper'
9
+ require_relative '../fields/api_exception'
10
+ require_relative '../modules/modules'
11
+ require_relative '../modules/modules_operations'
12
+ require_relative 'constants'
13
+ require_relative '../exception/sdk_exception'
14
+ require_relative '../../../api/logger/sdk_logger'
15
+
16
+ module ZOHOCRMSDK
17
+ module Util
18
+ # This class handles module field details.
19
+ class Utility
20
+ @@sync_lock = Monitor.new
21
+
22
+ @@apitype_vs_datatype = {}
23
+
24
+ @@apitype_vs_structurename = {}
25
+
26
+ @@new_file = false
27
+
28
+ @@get_modified_modules = false
29
+
30
+ @@api_supported_module = {}
31
+
32
+ @@module_api_name = nil
33
+
34
+ @@force_refresh = false
35
+ def self.set_handler_api_path(module_api_name, handler_instance)
36
+ if handler_instance.nil?
37
+ return
38
+ end
39
+ api_path = handler_instance.api_path
40
+ if api_path.downcase.include? module_api_name.downcase
41
+ api_path_splits = api_path.split('/')
42
+ i = 0
43
+ api_path_splits.each do |api_path_split|
44
+ split_lower = api_path_split.downcase
45
+ if split_lower == module_api_name.downcase
46
+ api_path_splits[i] = module_api_name
47
+ elsif (Constants::DEFAULT_MODULENAME_VS_APINAME.key? split_lower) && (!Constants::DEFAULT_MODULENAME_VS_APINAME[split_lower].nil?)
48
+ api_path_splits[i] = Constants::DEFAULT_MODULENAME_VS_APINAME[split_lower]
49
+ end
50
+ api_path = api_path_splits.join("/")
51
+ handler_instance.api_path = api_path
52
+ i += 1
53
+ end
54
+ end
55
+ end
56
+
57
+ def self.file_exists_flow(module_api_name, record_field_details_path, last_modified_time)
58
+ @@sync_lock.synchronize do
59
+ initializer = Initializer.get_initializer
60
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
61
+ last_modified_time_exists = false
62
+ if record_field_details_json.key?(Constants::FIELDS_LAST_MODIFIED_TIME) && !record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME].nil?
63
+ if get_current_time_in_millis - record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] > 3_600_000
64
+ last_modified_time_exists = true
65
+ end
66
+ end
67
+ if !record_field_details_json.key?(Constants::FIELDS_LAST_MODIFIED_TIME) || @@force_refresh
68
+ last_modified_time_exists = true
69
+ end
70
+
71
+ if initializer.sdk_config.auto_refresh_fields && !@@new_file && !@@get_modified_modules && last_modified_time_exists
72
+ @@get_modified_modules = true
73
+ last_modified_time = (record_field_details_json.key? Constants::FIELDS_LAST_MODIFIED_TIME) ? record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] : nil
74
+ modify_fields(record_field_details_path, last_modified_time)
75
+ @@get_modified_modules = false
76
+ elsif !initializer.sdk_config.auto_refresh_fields && @@force_refresh && !@@get_modified_modules
77
+ @@get_modified_modules = true
78
+ modify_fields(record_field_details_path, last_modified_time)
79
+ @@get_modified_modules = false
80
+ end
81
+
82
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
83
+
84
+ return if module_api_name.nil? || (record_field_details_json.key?(module_api_name.downcase) && !record_field_details_json[module_api_name.downcase].nil?)
85
+
86
+ fill_data_type
87
+
88
+ record_field_details_json[module_api_name.downcase] = {}
89
+
90
+ File.open(record_field_details_path, 'w') do |f|
91
+ f.write(record_field_details_json.to_json)
92
+ end
93
+ field_details = get_fields_details(module_api_name)
94
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
95
+
96
+ record_field_details_json[module_api_name.downcase] = field_details
97
+
98
+ File.open(record_field_details_path, 'w') do |f|
99
+ f.write(record_field_details_json.to_json)
100
+ end
101
+ end
102
+ end
103
+
104
+ def self.get_fields(module_api_name, handler_instance=nil)
105
+ @@sync_lock.synchronize do
106
+ @@module_api_name = module_api_name
107
+ get_fields_info(module_api_name,handler_instance)
108
+ end
109
+ end
110
+
111
+ def self.write_to_file(file_path, file_contents)
112
+ File.open(file_path, 'w') do |f|
113
+ f.write(file_contents.to_json)
114
+ end
115
+ end
116
+
117
+ def self.get_fields_info(module_api_name, handler_instance=nil)
118
+ require_relative '../initializer'
119
+ initializer = Initializer.get_initializer
120
+ record_field_details_path = nil
121
+ last_modified_time = nil
122
+
123
+ @@sync_lock.synchronize do
124
+ begin
125
+ # return if !module_api_name.nil? && !search_json_details(module_api_name).nil?
126
+
127
+ resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
128
+
129
+ Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
130
+ record_field_details_path = get_record_json_file_path
131
+ unless module_api_name.nil?
132
+ module_api_name = verify_module_api_name(module_api_name)
133
+ set_handler_api_path(module_api_name, handler_instance)
134
+
135
+ return if !handler_instance.nil? && handler_instance.module_api_name.nil? && (!Constants::SKIP_MODULES.include? module_api_name.downcase)
136
+ end
137
+ if File.exist? record_field_details_path
138
+ file_exists_flow(module_api_name, record_field_details_path, last_modified_time)
139
+ elsif initializer.sdk_config.auto_refresh_fields
140
+ @@new_file = true
141
+ fill_data_type
142
+ @@api_supported_module = @@api_supported_module.length == 0 ? get_modules(nil) : @@api_supported_module
143
+
144
+ record_field_details_json = {}
145
+
146
+ if File.exists? record_field_details_path
147
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
148
+ end
149
+
150
+ record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = get_current_time_in_millis
151
+
152
+ if @@api_supported_module.length > 0
153
+ @@api_supported_module.each_key do |module_name|
154
+ unless record_field_details_json.key? module_name.downcase
155
+ record_field_details_json[module_name.downcase] = {}
156
+ write_to_file(record_field_details_path, record_field_details_json)
157
+ field_details = get_fields_details( @@api_supported_module[module_name][Constants::API_NAME])
158
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
159
+ record_field_details_json[module_name.downcase] = field_details
160
+ write_to_file(record_field_details_path, record_field_details_json)
161
+ end
162
+ end
163
+ end
164
+ @@new_file = false
165
+ elsif @@force_refresh && !@@get_modified_modules
166
+ @@get_modified_modules = true
167
+ record_field_details_json = {}
168
+ write_to_file(record_field_details_path, record_field_details_json)
169
+ modify_fields(record_field_details_path, last_modified_time)
170
+ @@get_modified_modules = false
171
+ else
172
+ fill_data_type
173
+
174
+ record_field_details_json = { module_api_name.downcase => {} }
175
+ write_to_file(record_field_details_path, record_field_details_json)
176
+ field_details = get_fields_details(module_api_name)
177
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
178
+ record_field_details_json[module_api_name.downcase] = field_details
179
+ write_to_file(record_field_details_path, record_field_details_json)
180
+ end
181
+ rescue StandardError => e
182
+ if !record_field_details_path.nil? && File.exist?(record_field_details_path)
183
+ begin
184
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
185
+ if !module_api_name.nil? && record_field_details_json.key?(module_api_name.downcase)
186
+ record_field_details_json.delete(module_api_name.downcase)
187
+ end
188
+ if @@new_file
189
+ unless record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME].nil?
190
+ record_field_details_json.delete(Constants::FIELDS_LAST_MODIFIED_TIME)
191
+ end
192
+ @@new_file = false
193
+ end
194
+ if @@get_modified_modules || @@force_refresh
195
+ @@get_modified_modules = false
196
+ @@force_refresh = false
197
+ unless last_modified_time.nil?
198
+ record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = last_modified_time
199
+ end
200
+ end
201
+ write_to_file(record_field_details_path, record_field_details_json)
202
+ rescue StandardError => e
203
+ exception = SDKException.new(nil, Constants::EXCEPTION, nil, e)
204
+ SDKLog::SDKLogger.severe(Constants::EXCEPTION, exception)
205
+ raise exception
206
+ end
207
+ end
208
+ ex = (e.class.to_s == 'SDKException') ? e : SDKException.new(nil, Constants::EXCEPTION, nil, e)
209
+ SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
210
+ raise ex
211
+ end
212
+ end
213
+ end
214
+
215
+ def self.modify_fields(record_field_details_path, modified_time)
216
+ modified_modules = get_modules(modified_time)
217
+ record_field_details_json = JSON.parse(File.open(record_field_details_path).read)
218
+ record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = get_current_time_in_millis
219
+ write_to_file(record_field_details_path, record_field_details_json)
220
+ return unless modified_modules.any?
221
+
222
+ modified_modules.each_key do |module_api_name|
223
+ if record_field_details_json.key? module_api_name.downcase
224
+ delete_fields(record_field_details_json, module_api_name)
225
+ end
226
+ end
227
+
228
+ write_to_file(record_field_details_path, record_field_details_json)
229
+
230
+ modified_modules.each_key do |module_api_name|
231
+ module_data = modified_modules[module_api_name]
232
+ get_fields_info(module_data[Constants::API_NAME])
233
+ end
234
+ end
235
+
236
+ def self.verify_module_api_name(module_api_name)
237
+ unless module_api_name.nil?
238
+ if (Constants::DEFAULT_MODULENAME_VS_APINAME.key? module_api_name.downcase) && (!Constants::DEFAULT_MODULENAME_VS_APINAME[module_api_name.downcase].nil?)
239
+ return Constants::DEFAULT_MODULENAME_VS_APINAME[module_api_name.downcase]
240
+ end
241
+ end
242
+
243
+ record_field_details_path = get_record_json_file_path
244
+
245
+ if File.exist? record_field_details_path
246
+ fields_json = JSON.parse(File.open(record_field_details_path).read)
247
+ if !fields_json.empty? && (fields_json.key? Constants::SDK_MODULE_METADATA) && (!module_api_name.nil? && (fields_json[Constants::SDK_MODULE_METADATA].key? module_api_name.downcase))
248
+ return fields_json[Constants::SDK_MODULE_METADATA][module_api_name.downcase][Constants::API_NAME]
249
+ end
250
+ end
251
+ return module_api_name
252
+ end
253
+
254
+ def self.delete_fields(record_field_details_json, module_api_name)
255
+ subform_modules = []
256
+
257
+ field_json = record_field_details_json[module_api_name.downcase]
258
+ field_json.each_key do |key|
259
+ if field_json[key].key?(Constants::SUBFORM) && field_json[key][Constants::SUBFORM]
260
+ if record_field_details_json.key? field_json[key][Constants::MODULE]
261
+ subform_modules.push(field_json[key][Constants::MODULE])
262
+ end
263
+ end
264
+ end
265
+ record_field_details_json.delete(module_api_name.downcase)
266
+ return unless subform_modules.any?
267
+
268
+ subform_modules.each do |subform_module|
269
+ delete_fields(record_field_details_json, subform_module)
270
+ end
271
+ end
272
+
273
+ def self.get_record_json_file_path()
274
+ Initializer.get_initializer.resources_path + "/" + Constants::FIELD_DETAILS_DIRECTORY + "/" + Converter.new(nil).get_record_json_file_path()
275
+ end
276
+
277
+ def self.get_related_lists(related_module_name, module_api_name, common_api_handler)
278
+ require_relative '../initializer'
279
+
280
+ initializer = Initializer.get_initializer
281
+
282
+ @@sync_lock.synchronize do
283
+ begin
284
+ is_new_data = false
285
+ key = module_api_name + Constants::UNDERSCORE + Constants::RELATED_LISTS
286
+ key = key.downcase
287
+ resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
288
+ Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
289
+
290
+ record_field_details_path = get_record_json_file_path
291
+ if !File.exist?(record_field_details_path) || (File.exist?(record_field_details_path) && !(JSON.parse(File.read(record_field_details_path)).key? key))
292
+ is_new_data = true
293
+ module_api_name = verify_module_api_name(module_api_name)
294
+ related_list_values = get_related_list_details(module_api_name)
295
+ if File.exist?(record_field_details_path)
296
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
297
+ else
298
+ record_field_details_json = {}
299
+ end
300
+ record_field_details_json[key] = related_list_values
301
+ write_to_file(record_field_details_path, record_field_details_json)
302
+ end
303
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
304
+ module_related_list = record_field_details_json[key]
305
+ if !check_related_list_exists(related_module_name, module_related_list, common_api_handler) && !is_new_data
306
+ record_field_details_json.delete(key)
307
+ write_to_file(record_field_details_path, record_field_details_json)
308
+ get_related_lists(related_module_name, module_api_name, common_api_handler)
309
+ end
310
+ rescue SDKException => e
311
+ SDKLog::SDKLogger.severe(Constants::EXCEPTION, e)
312
+ raise e
313
+ rescue StandardError => e
314
+ ex = SDKException.new(nil, Constants::EXCEPTION, nil, e)
315
+ SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
316
+ raise ex
317
+ end
318
+ end
319
+ end
320
+
321
+ def self.get_fields_details(module_api_name)
322
+
323
+ require_relative '../fields/fields_operations'
324
+
325
+ fields_details = {}
326
+
327
+ param_instance = ParameterMap.new
328
+
329
+ param_instance.add(Fields::FieldsOperations::GetFieldsParam.module_1, module_api_name)
330
+
331
+ response = Fields::FieldsOperations.new.get_fields(param_instance)
332
+
333
+ unless response.nil?
334
+
335
+ return fields_details if response.status_code == Constants::RESPONSECODE_NO_CONTENT
336
+
337
+ if response.is_expected
338
+ data_object = response.data_object
339
+
340
+ if data_object.is_a? Fields::BodyWrapper
341
+ fields = data_object.fields
342
+
343
+ fields.each do |field|
344
+ key_name = field.api_name
345
+ next if Constants::KEYS_TO_SKIP.include? key_name
346
+
347
+ field_detail = {}
348
+ set_data_type(field_detail, field, module_api_name)
349
+ fields_details[key_name] = field_detail
350
+ end
351
+ if Constants::INVENTORY_MODULES.include? module_api_name.downcase
352
+ field_detail = {}
353
+ field_detail[Constants::NAME] = Constants::LINE_TAX
354
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
355
+ field_detail[Constants::STRUCTURE_NAME] = Constants::LINE_TAX_NAMESPACE
356
+ fields_details[Constants::LINE_TAX] = field_detail
357
+ end
358
+
359
+ if module_api_name.downcase == Constants::NOTES.downcase
360
+ field_detail = {}
361
+ field_detail[Constants::NAME] = Constants::ATTACHMENTS
362
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
363
+ field_detail[Constants::STRUCTURE_NAME] = Constants::ATTACHMENTS_NAMESPACE
364
+ fields_details[Constants::ATTACHMENTS] = field_detail
365
+ end
366
+
367
+ elsif data_object.is_a? Fields::APIException
368
+ error_response = {}
369
+ error_response[Constants::CODE] = data_object.code.value
370
+ error_response[Constants::STATUS] = data_object.status.value
371
+ error_response[Constants::MESSAGE] = data_object.message
372
+ error_response[Constants::DETAILS] = data_object.details
373
+ exception = SDKException.new(Constants::API_EXCEPTION, nil, error_response)
374
+ if @@module_api_name == module_api_name.downcase
375
+ raise exception
376
+ end
377
+ SDKLog::SDKLogger.severe(Constants::API_EXCEPTION, exception)
378
+ end
379
+ else
380
+ error_response = {}
381
+ error_response[Constants::CODE] = response.status_code
382
+ raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
383
+ end
384
+ end
385
+ fields_details
386
+ end
387
+
388
+ # def self.search_json_details(key)
389
+ # require_relative '../initializer'
390
+ #
391
+ # package_name = Constants::PACKAGE_PREFIX + 'record.' + key
392
+ #
393
+ # Initializer.json_details.each_key do |class_key|
394
+ # if class_key.downcase == package_name.downcase
395
+ # return_json = {
396
+ # Constants::MODULEPACKAGENAME => class_key,
397
+ # Constants::MODULEDETAILS => Initializer.json_details[class_key]
398
+ # }
399
+ #
400
+ # return return_json
401
+ # end
402
+ # end
403
+ # nil
404
+ # end
405
+
406
+ def self.get_json_object(json, key)
407
+ json.each_key do |key_in_json|
408
+ return json[key_in_json] if key_in_json == key
409
+ end
410
+ nil
411
+ end
412
+
413
+ def self.fill_data_type
414
+ return unless @@apitype_vs_datatype.empty?
415
+
416
+ field_api_names_string = %w[autonumber textarea text website email phone mediumtext profileimage]
417
+ field_api_names_integer = %w[integer]
418
+ field_api_names_boolean = %w[boolean]
419
+ field_api_names_long = %w[bigint long]
420
+ field_api_names_double = %w[double percent lookup currency]
421
+ field_api_names_field_file = %w[fileupload]
422
+ field_api_names_datetime = %w[datetime event_reminder]
423
+ field_api_names_date = %w[date]
424
+ field_api_names_lookup = %w[lookup]
425
+ field_api_names_picklist = %w[picklist]
426
+ field_api_names_multiselect_picklist = %w[multiselectpicklist]
427
+ field_api_names_subform = %w[subform]
428
+ field_api_names_owner_lookup = %w[ownerlookup userlookup]
429
+ field_api_names_multiuser_lookup = %w[multiuserlookup]
430
+ field_api_names_multimodule_lookup = %w[multimodulelookup]
431
+ field_api_names_task_remind_at = %w[ALARM]
432
+ field_api_names_recurring_activity = %w[RRULE]
433
+ field_api_names_reminder = %w[multireminder]
434
+ field_api_names_consent_look_up = %w[consent_lookup]
435
+ field_api_name_image_upload = %w[imageupload]
436
+ field_api_name_multiselect_lookup = %w[multiselectlookup]
437
+ field_api_name_line_tax = %w[linetax]
438
+
439
+ field_api_names_string.each do |field_api_name|
440
+ @@apitype_vs_datatype[field_api_name] = Constants::STRING
441
+ end
442
+
443
+ field_api_names_integer.each do |field_api_name|
444
+ @@apitype_vs_datatype[field_api_name] = Constants::INTEGER
445
+ end
446
+
447
+ field_api_names_boolean.each do |field_api_name|
448
+ @@apitype_vs_datatype[field_api_name] = Constants::BOOLEAN
449
+ end
450
+
451
+ field_api_names_double.each do |field_api_name|
452
+ @@apitype_vs_datatype[field_api_name] = Constants::DOUBLE
453
+ end
454
+
455
+ field_api_names_long.each do |field_api_name|
456
+ @@apitype_vs_datatype[field_api_name] = Constants::LONG
457
+ end
458
+
459
+ field_api_names_field_file.each do |field_api_name|
460
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
461
+ @@apitype_vs_structurename[field_api_name] = Constants::FIELD_FILE_NAMESPACE
462
+ end
463
+
464
+ field_api_names_task_remind_at.each do |field_api_name|
465
+ @@apitype_vs_datatype[field_api_name] = Constants::REMINDAT_NAMESPACE
466
+ @@apitype_vs_structurename[field_api_name] = Constants::REMINDAT_NAMESPACE
467
+ end
468
+
469
+ field_api_names_recurring_activity.each do |field_api_name|
470
+ @@apitype_vs_datatype[field_api_name] = Constants::RECURRING_ACTIVITY_NAMESPACE
471
+ @@apitype_vs_structurename[field_api_name] = Constants::RECURRING_ACTIVITY_NAMESPACE
472
+ end
473
+
474
+ field_api_names_reminder.each do |field_api_name|
475
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
476
+ @@apitype_vs_structurename[field_api_name] = Constants::REMINDER_NAMESPACE
477
+ end
478
+
479
+ field_api_names_datetime.each do |field_api_name|
480
+ @@apitype_vs_datatype[field_api_name] = Constants::DATETIME_NAMESPACE
481
+ end
482
+
483
+ field_api_names_date.each do |field_api_name|
484
+ @@apitype_vs_datatype[field_api_name] = Constants::DATE_NAMESPACE
485
+ end
486
+
487
+ field_api_names_lookup.each do |field_api_name|
488
+ @@apitype_vs_datatype[field_api_name] = Constants::RECORD_NAMESPACE
489
+
490
+ @@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
491
+ end
492
+
493
+ field_api_names_owner_lookup.each do |field_api_name|
494
+ @@apitype_vs_datatype[field_api_name] = Constants::USER_NAMESPACE
495
+
496
+ @@apitype_vs_structurename[field_api_name] = Constants::USER_NAMESPACE
497
+ end
498
+
499
+ field_api_names_multiuser_lookup.each do |field_api_name|
500
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
501
+
502
+ @@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
503
+ end
504
+
505
+ field_api_names_multimodule_lookup.each do |field_api_name|
506
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
507
+
508
+ @@apitype_vs_structurename[field_api_name] = Constants::MODULE_NAMESPACE
509
+ end
510
+
511
+ field_api_names_picklist.each do |field_api_name|
512
+ @@apitype_vs_datatype[field_api_name] = Constants::CHOICE_NAMESPACE
513
+ end
514
+
515
+ field_api_names_multiselect_picklist.each do |field_api_name|
516
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
517
+
518
+ @@apitype_vs_structurename[field_api_name] = Constants::CHOICE_NAMESPACE
519
+ end
520
+
521
+ field_api_names_subform.each do |field_api_name|
522
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
523
+
524
+ @@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
525
+ end
526
+
527
+ field_api_names_consent_look_up.each do |field_api_name|
528
+ @@apitype_vs_datatype[field_api_name] = Constants::CONSENT_NAMESPACE
529
+
530
+ @@apitype_vs_structurename[field_api_name] = Constants::CONSENT_NAMESPACE
531
+ end
532
+
533
+ field_api_name_image_upload.each do |field_api_name|
534
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
535
+
536
+ @@apitype_vs_structurename[field_api_name] = Constants::IMAGEUPLOAD_NAMESPACE
537
+ end
538
+
539
+ field_api_name_multiselect_lookup.each do |field_api_name|
540
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
541
+
542
+ @@apitype_vs_structurename[field_api_name] = Constants::RECORD_NAMESPACE
543
+ end
544
+
545
+ field_api_name_line_tax.each do |field_api_name|
546
+ @@apitype_vs_datatype[field_api_name] = Constants::LIST_NAMESPACE
547
+
548
+ @@apitype_vs_structurename[field_api_name] = Constants::LINE_TAX_NAMESPACE
549
+ end
550
+ end
551
+
552
+ def self.set_data_type(field_detail, field_instance, module_api_name)
553
+ data_type = field_instance.data_type.value
554
+
555
+ key_name = field_instance.api_name
556
+
557
+ module_name = Modules::MinifiedModule.new
558
+
559
+ module_api_name = module_api_name.downcase
560
+ if !field_instance.system_mandatory.nil? && field_instance.system_mandatory && !((module_api_name == Constants::CALLS.downcase) && (key_name.downcase == Constants::CALL_DURATION.downcase))
561
+ field_detail[Constants::REQUIRED] = true
562
+ end
563
+
564
+ if (key_name.downcase == Constants::PRICING_DETAILS.downcase) && (module_api_name == Constants::PRICE_BOOKS.downcase)
565
+ field_detail[Constants::NAME] = key_name
566
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
567
+ field_detail[Constants::STRUCTURE_NAME] = Constants::PRICINGDETAILS
568
+ field_detail[Constants::SKIP_MANDATORY] = true
569
+ return
570
+ elsif (key_name.downcase == Constants::PARTICIPANT_API_NAME.downcase) && ((module_api_name == Constants::EVENTS.downcase) || (module_api_name == Constants::ACTIVITIES.downcase))
571
+ field_detail[Constants::NAME] = key_name
572
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
573
+ field_detail[Constants::STRUCTURE_NAME] = Constants::PARTICIPANTS
574
+ field_detail[Constants::SKIP_MANDATORY] = true
575
+ return
576
+ elsif (key_name.downcase == Constants::COMMENTS.downcase) && ((module_api_name == Constants::SOLUTIONS.downcase) || (module_api_name == Constants::CASES.downcase))
577
+ field_detail[Constants::NAME] = key_name
578
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
579
+ field_detail[Constants::STRUCTURE_NAME] = Constants::COMMENTS_NAMESPACE
580
+ field_detail[Constants::LOOKUP] = true
581
+ return
582
+ elsif key_name.downcase == Constants::LAYOUT.downcase
583
+ field_detail[Constants::NAME] = key_name
584
+ field_detail[Constants::TYPE] = Constants::LAYOUT_NAMESPACE
585
+ field_detail[Constants::LOOKUP] = true
586
+ field_detail[Constants::STRUCTURE_NAME] = Constants::LAYOUT_NAMESPACE
587
+ return
588
+ elsif (key_name.downcase == Constants::TERRITORIES.downcase || key_name.downcase == Constants::TERRITORY.downcase) && !field_instance.custom_field.nil? && !field_instance.custom_field
589
+ field_detail[Constants::NAME] = key_name
590
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
591
+ field_detail[Constants::STRUCTURE_NAME] = Constants::TERRITORY_NAMESPACE
592
+ field_detail[Constants::LOOKUP] = true
593
+ return
594
+ elsif key_name.downcase == Constants::PRODUCT_NAME.downcase && Constants::INVENTORY_MODULES_ITEMS.include?(module_api_name.downcase)
595
+ field_detail[Constants::NAME] = key_name
596
+ field_detail[Constants::TYPE] = Constants::LINEITEM_PRODUCT
597
+ field_detail[Constants::STRUCTURE_NAME] = Constants::LINEITEM_PRODUCT
598
+ field_detail[Constants::SKIP_MANDATORY] = true
599
+ return
600
+ elsif key_name.downcase == Constants::DISCOUNT.downcase && Constants::INVENTORY_MODULES_ITEMS.include?(module_api_name.downcase)
601
+ field_detail[Constants::NAME] = key_name
602
+ field_detail[Constants::TYPE] = Constants::STRING
603
+ return
604
+ elsif key_name.downcase == Constants::TAX.downcase && module_api_name.downcase() == Constants::PRODUCTS.downcase
605
+ field_detail[Constants::NAME] = key_name
606
+ field_detail[Constants::TYPE] = Constants::LIST_NAMESPACE
607
+ field_detail[Constants::STRUCTURE_NAME] = Constants::TAX_NAMESPACE
608
+ return
609
+ elsif @@apitype_vs_datatype.include? data_type
610
+ field_detail[Constants::TYPE] = @@apitype_vs_datatype[data_type]
611
+ elsif data_type == Constants::FORMULA.downcase
612
+ unless field_instance.formula.nil?
613
+ return_type = field_instance.formula.return_type.value
614
+ unless @@apitype_vs_datatype[return_type].nil?
615
+ field_detail[Constants::TYPE] = @@apitype_vs_datatype[return_type]
616
+ end
617
+ field_detail[Constants::READ_ONLY] = true
618
+ end
619
+ else
620
+ return
621
+ end
622
+ field_detail[Constants::LOOKUP] = true if data_type.downcase.include? Constants::LOOKUP
623
+ if (data_type.downcase.include? Constants::CONSENT_LOOKUP) || (data_type.downcase.include? Constants::OWNER_LOOKUP)
624
+ field_detail[Constants::SKIP_MANDATORY] = true
625
+ end
626
+
627
+ if data_type.downcase.include? Constants::MULTI_SELECT_LOOKUP
628
+ field_detail[Constants::SKIP_MANDATORY] = true
629
+ unless field_instance.multiselectlookup.nil?
630
+ unless field_instance.multiselectlookup.linking_module.nil?
631
+ linking_module = field_instance.multiselectlookup.linking_module
632
+ field_detail[Constants::MODULE] = linking_module.api_name
633
+ module_name = linking_module
634
+ end
635
+ end
636
+ field_detail[Constants::SUBFORM] = true
637
+ end
638
+
639
+ if data_type.downcase.include? Constants::MULTI_USER_LOOKUP
640
+ field_detail[Constants::SKIP_MANDATORY] = true
641
+ unless field_instance.multiuserlookup.nil?
642
+ unless field_instance.multiuserlookup.linking_module.nil?
643
+ linking_module = field_instance.multiuserlookup.linking_module
644
+ field_detail[Constants::MODULE] = linking_module.api_name
645
+ module_name = linking_module
646
+ end
647
+ end
648
+ field_detail[Constants::SUBFORM] = true
649
+ end
650
+
651
+ if data_type.downcase.include? Constants::MULTI_MODULE_LOOKUP
652
+ field_detail[Constants::SKIP_MANDATORY, true]
653
+ field_detail[Constants::SUBFORM, true]
654
+ end
655
+
656
+ if @@apitype_vs_structurename.include? data_type
657
+ field_detail[Constants::STRUCTURE_NAME] = @@apitype_vs_structurename[data_type]
658
+ end
659
+
660
+ if (data_type.downcase == Constants::PICKLIST.downcase) && !field_instance.pick_list_values.nil? && !field_instance.pick_list_values.empty?
661
+ values = []
662
+
663
+ field_instance.pick_list_values.each do |pick_list_value|
664
+ values.push(pick_list_value.display_value)
665
+ end
666
+ field_detail[Constants::PICKLIST] = true
667
+ field_detail[Constants::VALUES] = values
668
+ end
669
+
670
+ if data_type.downcase == Constants::SUBFORM.downcase
671
+ module_name.api_name = field_instance.associated_module.module
672
+ field_detail[Constants::SUBFORM] = true
673
+ field_detail[Constants::SKIP_MANDATORY] = true
674
+ field_detail[Constants::MODULE] = module_name.api_name
675
+ end
676
+
677
+ if data_type.downcase == Constants::LOOKUP.downcase && !field_instance.lookup.nil?
678
+ module_1 = field_instance.lookup.module
679
+ if !module_1.nil? && (module_1.api_name.downcase != Constants::SE_MODULE.downcase)
680
+ module_name.api_name = module_1.api_name
681
+ module_name.id = module_1.id
682
+ field_detail[Constants::MODULE] = module_1.api_name
683
+ if (module_1.api_name.downcase == Constants::ACCOUNTS.downcase) && !field_instance.custom_field
684
+ field_detail[Constants::SKIP_MANDATORY] = true
685
+ end
686
+ else
687
+ module_name = Modules::MinifiedModule.new
688
+ end
689
+ field_detail[Constants::LOOKUP] = true
690
+ end
691
+ if !module_name.nil? && !module_name.api_name.nil? && module_name.api_name.length > 0
692
+ get_fields_info(module_name.api_name, nil)
693
+ end
694
+ field_detail[Constants::NAME] = key_name
695
+ end
696
+
697
+ def self.get_modules(header)
698
+ api_names = {}
699
+ header_map = HeaderMap.new
700
+ unless header.nil?
701
+ header_value = Time.at(header.to_i / 1000).iso8601
702
+ header_map.add(Modules::ModulesOperations::GetModulesHeader.If_modified_since, DateTime.parse(header_value))
703
+ end
704
+ response = Modules::ModulesOperations.new.get_modules(header_map)
705
+
706
+ unless response.nil?
707
+ if [Constants::RESPONSECODE_NO_CONTENT, Constants::RESPONSECODE_NOT_MODIFIED].include? response.status_code
708
+ return api_names
709
+ end
710
+
711
+ if response.is_expected
712
+ response_object = response.data_object
713
+ if response_object.is_a? Modules::ResponseWrapper
714
+ modules = response_object.modules
715
+ modules.each do |module_ins|
716
+ if module_ins.api_supported
717
+ module_details = {}
718
+ module_details[Constants::API_NAME] = module_ins.api_name
719
+ module_details[Constants::GENERATED_TYPE] = module_ins.generated_type.value
720
+ api_names[module_ins.api_name.downcase] = module_details
721
+ end
722
+ end
723
+ elsif response_object.is_a? Modules::APIException
724
+ error_response = {}
725
+ error_response[Constants::CODE] = response_object.code.value
726
+ error_response[Constants::STATUS] = response_object.status.value
727
+ error_response[Constants::MESSAGE] = response_object.message
728
+ raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
729
+ end
730
+ end
731
+ end
732
+ if header.nil?
733
+ begin
734
+ initializer = Initializer.get_initializer
735
+ resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
736
+ Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
737
+ record_field_details_path = get_record_json_file_path()
738
+ write_module_meta_data(record_field_details_path, api_names)
739
+ end
740
+ end
741
+ api_names
742
+ end
743
+
744
+ def self.check_related_list_exists(related_module_name, module_related_list_ja, common_api_handler)
745
+ (0..module_related_list_ja.length - 1).each do |i|
746
+ related_list_jo = module_related_list_ja[i]
747
+ if !related_list_jo[Constants::API_NAME].nil? && (related_list_jo[Constants::API_NAME].downcase == related_module_name.downcase)
748
+ if related_list_jo[Constants::HREF] == Constants::NULL_VALUE
749
+ raise SDKException.new(Constants::UNSUPPORTED_IN_API, common_api_handler.http_method + ' ' + common_api_handler.api_path + Constants::UNSUPPORTED_IN_API_MESSAGE)
750
+ end
751
+
752
+ if related_list_jo[Constants::MODULE] != Constants::NULL_VALUE
753
+ common_api_handler.module_api_name = related_list_jo[Constants::MODULE]
754
+ get_fields_info(related_list_jo[Constants::MODULE], common_api_handler)
755
+ end
756
+ return true
757
+ end
758
+ end
759
+ false
760
+ end
761
+
762
+ def self.verify_photo_support(module_api_name)
763
+ @@sync_lock.synchronize do
764
+ begin
765
+ module_api_name = verify_module_api_name(module_api_name)
766
+ if Constants::PHOTO_SUPPORTED_MODULES.include? module_api_name.downcase
767
+ return true
768
+ end
769
+ modules = get_module_names
770
+
771
+ if modules.key? module_api_name.downcase || !modules[module_api_name.downcase].nil?
772
+ module_meta_data = modules[module_api_name.downcase]
773
+
774
+ if module_meta_data.key? Constants::GENERATED_TYPE && module_meta_data[Constants::GENERATED_TYPE] != Constants::GENERATED_TYPE_CUSTOM
775
+ raise SDKException.new(Constants::UPLOAD_PHOTO_UNSUPPORTED_ERROR,Constants::UPLOAD_PHOTO_UNSUPPORTED_MESSAGE + module_api_name)
776
+ end
777
+ end
778
+ rescue SDKException => e
779
+ raise e
780
+ rescue StandardError => e
781
+ ex = SDKException.new(nil, Constants::EXCEPTION, nil, e)
782
+ SDKLog::SDKLogger.severe(Constants::EXCEPTION, ex)
783
+ raise ex
784
+ end
785
+ return true
786
+ end
787
+ end
788
+
789
+ def self.get_module_names
790
+ module_data = {}
791
+ initializer = Initializer.get_initializer
792
+ resoures_folder_path = initializer.resources_path + '/' + Constants::RESOURCES
793
+ Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
794
+
795
+ record_field_details_path = get_record_json_file_path
796
+
797
+ call_get_modules = false
798
+ if File.exists? record_field_details_path
799
+ json = JSON.parse(File.read(record_field_details_path))
800
+ if !json.key? Constants::SDK_MODULE_METADATA
801
+ call_get_modules = true
802
+ elsif json[Constants::SDK_MODULE_METADATA].nil? || json[Constants::SDK_MODULE_METADATA].length == 0
803
+ call_get_modules = true
804
+ end
805
+ else
806
+ call_get_modules = true
807
+ end
808
+ if call_get_modules
809
+ module_data = get_modules(nil)
810
+ write_module_meta_data(record_field_details_path, module_data)
811
+ return module_data
812
+ end
813
+ record_field_details_json = JSON.parse(File.read(record_field_details_path))
814
+ module_data = record_field_details_json[Constants::SDK_MODULE_METADATA]
815
+ return module_data
816
+ end
817
+
818
+ def self.write_module_meta_data(record_field_details_path, module_data)
819
+ field_details_json = (File.exist? record_field_details_path) ? JSON.parse(File.read(record_field_details_path)):{}
820
+ field_details_json[Constants::SDK_MODULE_METADATA] = module_data
821
+ write_to_file(record_field_details_path, field_details_json)
822
+ end
823
+
824
+ def self.get_related_list_details(module_api_name)
825
+ param_instance = ParameterMap.new
826
+ param_instance.add(RelatedLists::RelatedListsOperations::GetRelatedListsParam.module_1, module_api_name)
827
+ rlo = RelatedLists::RelatedListsOperations.new(nil)
828
+ response = rlo.get_related_lists(param_instance)
829
+ related_lists_ja = []
830
+ unless response.nil?
831
+ return related_lists_ja if response.status_code == Constants::RESPONSECODE_NO_CONTENT
832
+
833
+ if response.is_expected
834
+ response_handler = response.data_object
835
+ if response_handler.is_a? RelatedLists::ResponseWrapper
836
+ response_wrapper = response_handler
837
+ related_lists = response_wrapper.related_lists
838
+ related_lists.each do |related_list|
839
+ related_list_detail = {}
840
+ related_list_detail[Constants::API_NAME] = related_list.api_name
841
+ related_list_detail[Constants::MODULE] = related_list.module.nil? ? Constants::NULL_VALUE : related_list.module
842
+ related_list_detail[Constants::NAME] = related_list.name
843
+ related_list_detail[Constants::HREF] = related_list.href.nil? ? Constants::NULL_VALUE : related_list.href
844
+ related_lists_ja.push(related_list_detail)
845
+ end
846
+ elsif response_handler.is_a? RelatedLists::APIException
847
+ exception = response_handler
848
+ error_response = {}
849
+ error_response[Constants::CODE] = exception.code.value
850
+ error_response[Constants::STATUS] = exception.status.value
851
+ error_response[Constants::MESSAGE] = exception.message
852
+ raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
853
+ end
854
+ else
855
+ error_response = {}
856
+ error_response[Constants::CODE] = response.status_code
857
+ raise SDKException.new(Constants::API_EXCEPTION, nil, error_response)
858
+ end
859
+ end
860
+ related_lists_ja
861
+ end
862
+
863
+ def self.get_current_time_in_millis
864
+ (Time.now.to_f * 1000).to_i
865
+ end
866
+
867
+ def self.refresh_modules
868
+ @@force_refresh = true
869
+ get_fields_info(nil)
870
+ @@force_refresh = false
871
+ end
872
+
873
+ def self.classname_to_filename(class_name)
874
+ changed_class_name = ''
875
+ camel_case_split = (class_name.to_s.split(/([[:upper:]][[:lower:]]+)/)).delete_if(&:empty?)
876
+ camel_case_split.each_with_index do |each_name, i|
877
+ changed_class_name += Constants::UNDERSCORE if i.positive?
878
+ changed_class_name += each_name.to_s.downcase
879
+ end
880
+
881
+ changed_class_name
882
+ end
883
+
884
+ def self.class_to_load(class_path)
885
+ package_to_load = 'ZOHOCRMSDK::'
886
+
887
+ class_path = class_path.to_s
888
+
889
+ split_names = class_path.split(Constants::DOT)
890
+
891
+ package_name_split = split_names[-2].to_s.split(Constants::UNDERSCORE)
892
+
893
+ package_name_split.each do |name|
894
+ name[0] = name[0].to_s.upcase
895
+ package_to_load += name
896
+ end
897
+
898
+ package_to_load += Constants::DOUBLE_COLON
899
+
900
+ package_to_load += split_names[-1]
901
+
902
+ package_to_load
903
+ end
904
+
905
+ def self.path_to_package(class_path)
906
+ if class_path.to_s.include? Constants::DOUBLE_COLON
907
+ name = Constants::PACKAGE_PREFIX
908
+ class_path = class_path.to_s
909
+ class_split = class_path.to_s.split(Constants::DOUBLE_COLON)
910
+ class_split[1] = classname_to_filename(class_split[1])
911
+ name += class_split[1] + Constants::DOT + class_split[2]
912
+ name
913
+ else
914
+ class_path
915
+ end
916
+ end
917
+
918
+ def self.get_user_name(token)
919
+ user_name = nil
920
+ param_instance = ParameterMap.new
921
+ param_instance.add(Users::UsersOperations::GetUsersParam.type, Constants::CURRENTUSER)
922
+ header_instance = HeaderMap.new
923
+ handler_instance = Handler::CommonAPIHandler.new
924
+ api_path = String.new
925
+ api_path = api_path.concat("/crm/v5/users")
926
+ handler_instance.api_path = api_path
927
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
928
+ handler_instance.category_method = 'READ'
929
+ handler_instance.param = param_instance
930
+ header_instance.add(Header.new(Constants::AUTHORIZATION, Constants::STRING), Constants::OAUTH_HEADER_PREFIX + token)
931
+ handler_instance.header= header_instance
932
+ response = handler_instance.api_call(Users::ResponseHandler.name, 'application/json')
933
+ unless response.nil?
934
+ if [204, 304].include?(response.status_code)
935
+ return nil
936
+ end
937
+ if response.is_expected
938
+ response_handler = response.data_object
939
+ if response_handler.is_a? Users::ResponseWrapper
940
+ response_wrapper = response_handler
941
+ users = response_wrapper.users
942
+ users.each do |user|
943
+ user_name = user.email
944
+ break
945
+ end
946
+ elsif response_handler.is_a? Users::APIException
947
+ exception = response_handler
948
+ error_response = {}
949
+ error_response[Constants::CODE] = exception.code.value
950
+ error_response[Constants::STATUS] = exception.status.value
951
+ error_response[Constants::MESSAGE] = exception.message
952
+ raise SDKException.new(nil , Constants::API_EXCEPTION, error_response, nil)
953
+ end
954
+ end
955
+ end
956
+ user_name + ":" + get_user_org_id(token)
957
+ end
958
+
959
+ def self.get_user_org_id(token)
960
+ header_instance = HeaderMap.new
961
+ handler_instance = Handler::CommonAPIHandler.new
962
+ api_path = String.new
963
+ api_path = api_path.concat("/crm/v5/org")
964
+ handler_instance.api_path = api_path
965
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
966
+ handler_instance.category_method = 'READ'
967
+ header_instance.add(Header.new(Constants::AUTHORIZATION, Constants::STRING), Constants::OAUTH_HEADER_PREFIX + token)
968
+ handler_instance.header= header_instance
969
+ response = handler_instance.api_call(Org::ResponseHandler.name, 'application/json')
970
+ unless response.nil?
971
+ if response.is_expected
972
+ response_handler = response.data_object
973
+ if response_handler.is_a? Org::ResponseWrapper
974
+ response_wrapper = response_handler
975
+ orgs = response_wrapper.org
976
+ orgs.each do |org|
977
+ return org.zgid
978
+ end
979
+ elsif response_handler.is_a? Org::APIException
980
+ exception = response_handler
981
+ error_response = {}
982
+ error_response[Constants::CODE] = exception.code.value
983
+ error_response[Constants::STATUS] = exception.status.value
984
+ error_response[Constants::MESSAGE] = exception.message
985
+ raise SDKException.new(nil , Constants::API_EXCEPTION, error_response, nil)
986
+ end
987
+ end
988
+ end
989
+ nil
990
+ end
991
+ def self.check_data_type(value,type)
992
+ if value.nil?
993
+ return false
994
+ end
995
+ if type.downcase == Constants::OBJECT.downcase
996
+ return true
997
+ end
998
+ type = Constants::DATA_TYPE[type].downcase
999
+ class_name = value.class.name.downcase
1000
+ if type == Constants::BOOLEAN.downcase
1001
+ class_name = ([true, false].include? value) ? Constants::BOOLEAN.downcase : class_name
1002
+ end
1003
+ class_name == type
1004
+ end
1005
+ end
1006
+ end
1007
+ end