ZCRMSDK 2.0.0 → 3.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/src/ZCRMSDK.rb +84 -1
  3. data/src/com/zoho/api/authenticator/oauth_token.rb +87 -31
  4. data/src/com/zoho/api/authenticator/store/db_store.rb +48 -28
  5. data/src/com/zoho/api/authenticator/store/file_store.rb +69 -21
  6. data/src/com/zoho/api/authenticator/store/token_store.rb +7 -0
  7. data/src/com/zoho/api/logger/sdk_logger.rb +18 -9
  8. data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +121 -0
  9. data/src/com/zoho/crm/api/assignment_rules/assignment_rule.rb +215 -0
  10. data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +61 -0
  11. data/src/com/zoho/crm/api/assignment_rules/default_user.rb +80 -0
  12. data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +10 -0
  13. data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +63 -0
  14. data/src/com/zoho/crm/api/attachments/attachment.rb +4 -4
  15. data/src/com/zoho/crm/api/attachments/attachments_operations.rb +6 -6
  16. data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +2 -2
  17. data/src/com/zoho/crm/api/blue_print/escalation.rb +80 -0
  18. data/src/com/zoho/crm/api/blue_print/field.rb +1107 -0
  19. data/src/com/zoho/crm/api/blue_print/next_transition.rb +38 -0
  20. data/src/com/zoho/crm/api/blue_print/process_info.rb +4 -4
  21. data/src/com/zoho/crm/api/blue_print/transition.rb +19 -1
  22. data/src/com/zoho/crm/api/blue_print/validation_error.rb +57 -0
  23. data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +3 -3
  24. data/src/com/zoho/crm/api/bulk_read/criteria.rb +20 -0
  25. data/src/com/zoho/crm/api/bulk_read/query.rb +5 -4
  26. data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +3 -3
  27. data/src/com/zoho/crm/api/bulk_write/resource.rb +24 -4
  28. data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +7 -7
  29. data/src/com/zoho/crm/api/currencies/currencies_operations.rb +7 -7
  30. data/src/com/zoho/crm/api/custom_views/criteria.rb +5 -4
  31. data/src/com/zoho/crm/api/custom_views/custom_view.rb +100 -41
  32. data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +2 -2
  33. data/src/com/zoho/crm/api/custom_views/{shared_details.rb → shared_to.rb} +2 -2
  34. data/src/com/zoho/crm/api/dc/au_datacenter.rb +3 -3
  35. data/src/com/zoho/crm/api/dc/cn_datacenter.rb +3 -3
  36. data/src/com/zoho/crm/api/dc/datacenter.rb +3 -2
  37. data/src/com/zoho/crm/api/dc/eu_datacenter.rb +3 -3
  38. data/src/com/zoho/crm/api/dc/in_datacenter.rb +3 -3
  39. data/src/com/zoho/crm/api/dc/us_datacenter.rb +3 -3
  40. data/src/com/zoho/crm/api/email_templates/api_exception.rb +121 -0
  41. data/src/com/zoho/crm/api/email_templates/attachment.rb +118 -0
  42. data/src/com/zoho/crm/api/email_templates/email_template.rb +390 -0
  43. data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +61 -0
  44. data/src/com/zoho/crm/api/email_templates/response_handler.rb +10 -0
  45. data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +83 -0
  46. data/src/com/zoho/crm/api/field_attachments/api_exception.rb +121 -0
  47. data/src/com/zoho/crm/api/field_attachments/body_wrapper.rb +62 -0
  48. data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +52 -0
  49. data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +64 -0
  50. data/src/com/zoho/crm/api/field_attachments/response_handler.rb +10 -0
  51. data/src/com/zoho/crm/api/fields/external.rb +99 -0
  52. data/src/com/zoho/crm/api/fields/field.rb +192 -38
  53. data/src/com/zoho/crm/api/fields/fields_operations.rb +2 -2
  54. data/src/com/zoho/crm/api/fields/history_tracking.rb +80 -0
  55. data/src/com/zoho/crm/api/fields/maps.rb +80 -0
  56. data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +19 -0
  57. data/src/com/zoho/crm/api/fields/multi_user_lookup.rb +175 -0
  58. data/src/com/zoho/crm/api/fields/pick_list_value.rb +19 -0
  59. data/src/com/zoho/crm/api/fields/related_details.rb +19 -0
  60. data/src/com/zoho/crm/api/files/file_operations.rb +2 -2
  61. data/src/com/zoho/crm/api/initializer.rb +41 -16
  62. data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +121 -0
  63. data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +352 -0
  64. data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +82 -0
  65. data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +10 -0
  66. data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +83 -0
  67. data/src/com/zoho/crm/api/layouts/layout.rb +38 -0
  68. data/src/com/zoho/crm/api/layouts/layouts_operations.rb +2 -2
  69. data/src/com/zoho/crm/api/layouts/section.rb +19 -0
  70. data/src/com/zoho/crm/api/modules/module.rb +57 -0
  71. data/src/com/zoho/crm/api/modules/modules_operations.rb +4 -4
  72. data/src/com/zoho/crm/api/notes/notes_operations.rb +7 -7
  73. data/src/com/zoho/crm/api/notification/notification_operations.rb +6 -6
  74. data/src/com/zoho/crm/api/org/org_operations.rb +2 -2
  75. data/src/com/zoho/crm/api/pipeline/action_handler.rb +10 -0
  76. data/src/com/zoho/crm/api/pipeline/action_response.rb +10 -0
  77. data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +63 -0
  78. data/src/com/zoho/crm/api/pipeline/api_exception.rb +129 -0
  79. data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +61 -0
  80. data/src/com/zoho/crm/api/pipeline/forecast_category.rb +80 -0
  81. data/src/com/zoho/crm/api/pipeline/pick_list_value.rb +175 -0
  82. data/src/com/zoho/crm/api/pipeline/pipeline.rb +213 -0
  83. data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +165 -0
  84. data/src/com/zoho/crm/api/pipeline/response_handler.rb +10 -0
  85. data/src/com/zoho/crm/api/pipeline/response_wrapper.rb +63 -0
  86. data/src/com/zoho/crm/api/pipeline/stage.rb +80 -0
  87. data/src/com/zoho/crm/api/pipeline/success_response.rb +123 -0
  88. data/src/com/zoho/crm/api/pipeline/transfer_action_handler.rb +10 -0
  89. data/src/com/zoho/crm/api/pipeline/transfer_action_response.rb +10 -0
  90. data/src/com/zoho/crm/api/pipeline/transfer_action_wrapper.rb +63 -0
  91. data/src/com/zoho/crm/api/pipeline/transfer_and_delete_wrapper.rb +61 -0
  92. data/src/com/zoho/crm/api/pipeline/transfer_pipe_line.rb +80 -0
  93. data/src/com/zoho/crm/api/profiles/default_view.rb +99 -0
  94. data/src/com/zoho/crm/api/profiles/profile.rb +57 -0
  95. data/src/com/zoho/crm/api/profiles/profiles_operations.rb +2 -2
  96. data/src/com/zoho/crm/api/query/query_operations.rb +1 -1
  97. data/src/com/zoho/crm/api/record/api_exception.rb +2 -0
  98. data/src/com/zoho/crm/api/record/body_wrapper.rb +0 -19
  99. data/src/com/zoho/crm/api/record/count_handler.rb +10 -0
  100. data/src/com/zoho/crm/api/record/count_wrapper.rb +63 -0
  101. data/src/com/zoho/crm/api/record/field.rb +1 -0
  102. data/src/com/zoho/crm/api/record/image_upload.rb +213 -0
  103. data/src/com/zoho/crm/api/record/inventory_line_items.rb +56 -39
  104. data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +4 -4
  105. data/src/com/zoho/crm/api/record/mass_update_territory.rb +80 -0
  106. data/src/com/zoho/crm/api/record/multi_select_lookup.rb +99 -0
  107. data/src/com/zoho/crm/api/record/multi_select_picklist.rb +80 -0
  108. data/src/com/zoho/crm/api/record/price_book.rb +31 -0
  109. data/src/com/zoho/crm/api/record/record_operations.rb +196 -26
  110. data/src/com/zoho/crm/api/record/tax.rb +80 -0
  111. data/src/com/zoho/crm/api/record/territory.rb +70 -12
  112. data/src/com/zoho/crm/api/record/widget.rb +80 -0
  113. data/src/com/zoho/crm/api/record/wizard.rb +80 -0
  114. data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +2 -2
  115. data/src/com/zoho/crm/api/related_records/related_records_operations.rb +6 -6
  116. data/src/com/zoho/crm/api/request_proxy.rb +3 -4
  117. data/src/com/zoho/crm/api/roles/roles_operations.rb +2 -2
  118. data/src/com/zoho/crm/api/sdk_config.rb +2 -68
  119. data/src/com/zoho/crm/api/send_mail/action_handler.rb +10 -0
  120. data/src/com/zoho/crm/api/send_mail/action_response.rb +10 -0
  121. data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +63 -0
  122. data/src/com/zoho/crm/api/send_mail/api_exception.rb +125 -0
  123. data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +61 -0
  124. data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +80 -0
  125. data/src/com/zoho/crm/api/send_mail/inventory_details.rb +100 -0
  126. data/src/com/zoho/crm/api/send_mail/mail.rb +423 -0
  127. data/src/com/zoho/crm/api/send_mail/response_handler.rb +10 -0
  128. data/src/com/zoho/crm/api/send_mail/response_wrapper.rb +63 -0
  129. data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +61 -0
  130. data/src/com/zoho/crm/api/send_mail/success_response.rb +121 -0
  131. data/src/com/zoho/crm/api/send_mail/template.rb +10 -0
  132. data/src/com/zoho/crm/api/send_mail/user_address.rb +137 -0
  133. data/src/com/zoho/crm/api/share_records/share_records_operations.rb +4 -4
  134. data/src/com/zoho/crm/api/tags/tag.rb +19 -0
  135. data/src/com/zoho/crm/api/tags/tags_operations.rb +11 -11
  136. data/src/com/zoho/crm/api/taxes/taxes_operations.rb +6 -6
  137. data/src/com/zoho/crm/api/territories/response_wrapper.rb +20 -0
  138. data/src/com/zoho/crm/api/territories/territories_operations.rb +2 -2
  139. data/src/com/zoho/crm/api/territories/territory.rb +61 -23
  140. data/src/com/zoho/crm/api/users/users_operations.rb +6 -6
  141. data/src/com/zoho/crm/api/util/api_http_connector.rb +5 -4
  142. data/src/com/zoho/crm/api/util/constants.rb +140 -13
  143. data/src/com/zoho/crm/api/util/converter.rb +21 -4
  144. data/src/com/zoho/crm/api/util/form_data_converter.rb +3 -14
  145. data/src/com/zoho/crm/api/util/utility.rb +226 -70
  146. data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +3 -3
  147. data/src/com/zoho/crm/api/variables/variables_operations.rb +9 -9
  148. data/src/com/zoho/crm/api/wizards/api_exception.rb +121 -0
  149. data/src/com/zoho/crm/api/wizards/button.rb +214 -0
  150. data/src/com/zoho/crm/api/wizards/chart_data.rb +118 -0
  151. data/src/com/zoho/crm/api/wizards/connection.rb +80 -0
  152. data/src/com/zoho/crm/api/wizards/container.rb +119 -0
  153. data/src/com/zoho/crm/api/wizards/node.rb +118 -0
  154. data/src/com/zoho/crm/api/wizards/response_handler.rb +10 -0
  155. data/src/com/zoho/crm/api/wizards/response_wrapper.rb +63 -0
  156. data/src/com/zoho/crm/api/wizards/screen.rb +99 -0
  157. data/src/com/zoho/crm/api/wizards/segment.rb +176 -0
  158. data/src/com/zoho/crm/api/wizards/wizard.rb +273 -0
  159. data/src/com/zoho/crm/api/wizards/wizards_operations.rb +61 -0
  160. data/src/resources/JSONDetails.json +1 -1
  161. data/src/version.rb +1 -1
  162. metadata +88 -5
@@ -0,0 +1,82 @@
1
+ require_relative '../param'
2
+ require_relative '../exception/sdk_exception'
3
+ require_relative '../util/api_response'
4
+ require_relative '../util/common_api_handler'
5
+ require_relative '../util/constants'
6
+
7
+ module InventoryTemplates
8
+ class InventoryTemplatesOperations
9
+
10
+ # Creates an instance of InventoryTemplatesOperations with the given parameters
11
+ # @param module_1 [String] A String
12
+ # @param sort_by [String] A String
13
+ # @param sort_order [String] A String
14
+ # @param category [String] A String
15
+ def initialize(module_1=nil, sort_by=nil, sort_order=nil, category=nil)
16
+ if module_1!=nil and !module_1.is_a? String
17
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE: String', nil, nil)
18
+ end
19
+ if sort_by!=nil and !sort_by.is_a? String
20
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sort_by EXPECTED TYPE: String', nil, nil)
21
+ end
22
+ if sort_order!=nil and !sort_order.is_a? String
23
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sort_order EXPECTED TYPE: String', nil, nil)
24
+ end
25
+ if category!=nil and !category.is_a? String
26
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: category EXPECTED TYPE: String', nil, nil)
27
+ end
28
+ @module_1 = module_1
29
+ @sort_by = sort_by
30
+ @sort_order = sort_order
31
+ @category = category
32
+ end
33
+
34
+ # The method to get inventory templates
35
+ # @return An instance of APIResponse
36
+ # @raise SDKException
37
+ def get_inventory_templates
38
+ handler_instance = Handler::CommonAPIHandler.new
39
+ api_path = ''
40
+ api_path = api_path + '/crm/v2.1/settings/inventory_templates'
41
+ handler_instance.api_path = api_path
42
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
43
+ handler_instance.category_method = 'READ'
44
+ handler_instance.add_param(Param.new('module', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatesParam'), @module_1)
45
+ handler_instance.add_param(Param.new('sort_by', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatesParam'), @sort_by)
46
+ handler_instance.add_param(Param.new('sort_order', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatesParam'), @sort_order)
47
+ handler_instance.add_param(Param.new('category', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatesParam'), @category)
48
+ require_relative 'response_handler'
49
+ handler_instance.api_call(ResponseHandler.name, 'application/json')
50
+ end
51
+
52
+ # The method to get inventory template by id
53
+ # @param id [Integer] A Integer
54
+ # @return An instance of APIResponse
55
+ # @raise SDKException
56
+ def get_inventory_template_by_id(id)
57
+ if !id.is_a? Integer
58
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
59
+ end
60
+ handler_instance = Handler::CommonAPIHandler.new
61
+ api_path = ''
62
+ api_path = api_path + '/crm/v2.1/settings/inventory_templates/'
63
+ api_path = api_path + id.to_s
64
+ handler_instance.api_path = api_path
65
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
66
+ handler_instance.category_method = 'READ'
67
+ handler_instance.add_param(Param.new('module', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatebyIDParam'), @module_1)
68
+ handler_instance.add_param(Param.new('sort_by', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatebyIDParam'), @sort_by)
69
+ handler_instance.add_param(Param.new('sort_order', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatebyIDParam'), @sort_order)
70
+ handler_instance.add_param(Param.new('category', 'com.zoho.crm.api.InventoryTemplates.GetInventoryTemplatebyIDParam'), @category)
71
+ require_relative 'response_handler'
72
+ handler_instance.api_call(ResponseHandler.name, 'application/json')
73
+ end
74
+
75
+ class GetInventoryTemplatesParam
76
+ end
77
+
78
+ class GetInventoryTemplatebyIDParam
79
+ end
80
+
81
+ end
82
+ end
@@ -0,0 +1,10 @@
1
+ module InventoryTemplates
2
+ module ResponseHandler
3
+
4
+ # Creates an instance of ResponseHandler
5
+ def initialize
6
+ end
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,83 @@
1
+ require_relative '../record/info'
2
+ require_relative '../util/model'
3
+
4
+ module InventoryTemplates
5
+ require_relative 'response_handler'
6
+ class ResponseWrapper
7
+ include Util::Model
8
+ include ResponseHandler
9
+
10
+ # Creates an instance of ResponseWrapper
11
+ def initialize
12
+ @inventory_templates = nil
13
+ @info = nil
14
+ @key_modified = Hash.new
15
+ end
16
+
17
+ # The method to get the inventory_templates
18
+ # @return An instance of Array
19
+
20
+ def inventory_templates
21
+ @inventory_templates
22
+ end
23
+
24
+ # The method to set the value to inventory_templates
25
+ # @param inventory_templates [Array] An instance of Array
26
+
27
+ def inventory_templates=(inventory_templates)
28
+ if inventory_templates!=nil and !inventory_templates.is_a? Array
29
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: inventory_templates EXPECTED TYPE: Array', nil, nil)
30
+ end
31
+ @inventory_templates = inventory_templates
32
+ @key_modified['inventory_templates'] = 1
33
+ end
34
+
35
+ # The method to get the info
36
+ # @return An instance of Record::Info
37
+
38
+ def info
39
+ @info
40
+ end
41
+
42
+ # The method to set the value to info
43
+ # @param info [Record::Info] An instance of Record::Info
44
+
45
+ def info=(info)
46
+ if info!=nil and !info.is_a? Record::Info
47
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: info EXPECTED TYPE: Info', nil, nil)
48
+ end
49
+ @info = info
50
+ @key_modified['info'] = 1
51
+ end
52
+
53
+ # The method to check if the user has modified the given key
54
+ # @param key [String] A String
55
+ # @return A Integer value
56
+
57
+ def is_key_modified(key)
58
+ if key!=nil and !key.is_a? String
59
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
60
+ end
61
+ if @key_modified.key?(key)
62
+ return @key_modified[key]
63
+ end
64
+
65
+ nil
66
+ end
67
+
68
+ # The method to mark the given key as modified
69
+ # @param key [String] A String
70
+ # @param modification [Integer] A Integer
71
+
72
+ def set_key_modified(key, modification)
73
+ if key!=nil and !key.is_a? String
74
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
75
+ end
76
+ if modification!=nil and !modification.is_a? Integer
77
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
78
+ end
79
+ @key_modified[key] = modification
80
+ end
81
+
82
+ end
83
+ end
@@ -20,6 +20,8 @@ module Layouts
20
20
  @created_by = nil
21
21
  @sections = nil
22
22
  @status = nil
23
+ @display_type = nil
24
+ @show_business_card = nil
23
25
  @key_modified = Hash.new
24
26
  end
25
27
 
@@ -239,6 +241,42 @@ module Layouts
239
241
  @key_modified['status'] = 1
240
242
  end
241
243
 
244
+ # The method to get the display_type
245
+ # @return A Integer value
246
+
247
+ def display_type
248
+ @display_type
249
+ end
250
+
251
+ # The method to set the value to display_type
252
+ # @param display_type [Integer] A Integer
253
+
254
+ def display_type=(display_type)
255
+ if display_type!=nil and !display_type.is_a? Integer
256
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: display_type EXPECTED TYPE: Integer', nil, nil)
257
+ end
258
+ @display_type = display_type
259
+ @key_modified['display_type'] = 1
260
+ end
261
+
262
+ # The method to get the show_business_card
263
+ # @return A Boolean value
264
+
265
+ def show_business_card
266
+ @show_business_card
267
+ end
268
+
269
+ # The method to set the value to show_business_card
270
+ # @param show_business_card [Boolean] A Boolean
271
+
272
+ def show_business_card=(show_business_card)
273
+ if show_business_card!=nil and ! [true, false].include?show_business_card
274
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: show_business_card EXPECTED TYPE: Boolean', nil, nil)
275
+ end
276
+ @show_business_card = show_business_card
277
+ @key_modified['show_business_card'] = 1
278
+ end
279
+
242
280
  # The method to check if the user has modified the given key
243
281
  # @param key [String] A String
244
282
  # @return A Integer value
@@ -22,7 +22,7 @@ module Layouts
22
22
  def get_layouts
23
23
  handler_instance = Handler::CommonAPIHandler.new
24
24
  api_path = ''
25
- api_path = api_path + '/crm/v2/settings/layouts'
25
+ api_path = api_path + '/crm/v2.1/settings/layouts'
26
26
  handler_instance.api_path = api_path
27
27
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
28
28
  handler_instance.category_method = 'READ'
@@ -41,7 +41,7 @@ module Layouts
41
41
  end
42
42
  handler_instance = Handler::CommonAPIHandler.new
43
43
  api_path = ''
44
- api_path = api_path + '/crm/v2/settings/layouts/'
44
+ api_path = api_path + '/crm/v2.1/settings/layouts/'
45
45
  api_path = api_path + id.to_s
46
46
  handler_instance.api_path = api_path
47
47
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -17,6 +17,7 @@ module Layouts
17
17
  @generated_type = nil
18
18
  @fields = nil
19
19
  @properties = nil
20
+ @type = nil
20
21
  @key_modified = Hash.new
21
22
  end
22
23
 
@@ -200,6 +201,24 @@ module Layouts
200
201
  @key_modified['properties'] = 1
201
202
  end
202
203
 
204
+ # The method to get the type
205
+ # @return A String value
206
+
207
+ def type
208
+ @type
209
+ end
210
+
211
+ # The method to set the value to type
212
+ # @param type [String] A String
213
+
214
+ def type=(type)
215
+ if type!=nil and !type.is_a? String
216
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
217
+ end
218
+ @type = type
219
+ @key_modified['type'] = 1
220
+ end
221
+
203
222
  # The method to check if the user has modified the given key
204
223
  # @param key [String] A String
205
224
  # @return A Integer value
@@ -21,12 +21,15 @@ module Modules
21
21
  @modified_time = nil
22
22
  @plural_label = nil
23
23
  @presence_sub_menu = nil
24
+ @isblueprintsupported = nil
24
25
  @triggers_supported = nil
25
26
  @id = nil
26
27
  @related_list_properties = nil
27
28
  @properties = nil
29
+ @on_demand_properties = nil
28
30
  @per_page = nil
29
31
  @visibility = nil
32
+ @visible = nil
30
33
  @convertable = nil
31
34
  @editable = nil
32
35
  @emailtemplate_support = nil
@@ -255,6 +258,24 @@ module Modules
255
258
  @key_modified['presence_sub_menu'] = 1
256
259
  end
257
260
 
261
+ # The method to get the isblueprintsupported
262
+ # @return A Boolean value
263
+
264
+ def isblueprintsupported
265
+ @isblueprintsupported
266
+ end
267
+
268
+ # The method to set the value to isblueprintsupported
269
+ # @param isblueprintsupported [Boolean] A Boolean
270
+
271
+ def isblueprintsupported=(isblueprintsupported)
272
+ if isblueprintsupported!=nil and ! [true, false].include?isblueprintsupported
273
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: isblueprintsupported EXPECTED TYPE: Boolean', nil, nil)
274
+ end
275
+ @isblueprintsupported = isblueprintsupported
276
+ @key_modified['isBlueprintSupported'] = 1
277
+ end
278
+
258
279
  # The method to get the triggers_supported
259
280
  # @return A Boolean value
260
281
 
@@ -327,6 +348,24 @@ module Modules
327
348
  @key_modified['$properties'] = 1
328
349
  end
329
350
 
351
+ # The method to get the on_demand_properties
352
+ # @return An instance of Array
353
+
354
+ def on_demand_properties
355
+ @on_demand_properties
356
+ end
357
+
358
+ # The method to set the value to on_demand_properties
359
+ # @param on_demand_properties [Array] An instance of Array
360
+
361
+ def on_demand_properties=(on_demand_properties)
362
+ if on_demand_properties!=nil and !on_demand_properties.is_a? Array
363
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: on_demand_properties EXPECTED TYPE: Array', nil, nil)
364
+ end
365
+ @on_demand_properties = on_demand_properties
366
+ @key_modified['$on_demand_properties'] = 1
367
+ end
368
+
330
369
  # The method to get the per_page
331
370
  # @return A Integer value
332
371
 
@@ -363,6 +402,24 @@ module Modules
363
402
  @key_modified['visibility'] = 1
364
403
  end
365
404
 
405
+ # The method to get the visible
406
+ # @return A Boolean value
407
+
408
+ def visible
409
+ @visible
410
+ end
411
+
412
+ # The method to set the value to visible
413
+ # @param visible [Boolean] A Boolean
414
+
415
+ def visible=(visible)
416
+ if visible!=nil and ! [true, false].include?visible
417
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: visible EXPECTED TYPE: Boolean', nil, nil)
418
+ end
419
+ @visible = visible
420
+ @key_modified['visible'] = 1
421
+ end
422
+
366
423
  # The method to get the convertable
367
424
  # @return A Boolean value
368
425
 
@@ -22,7 +22,7 @@ module Modules
22
22
  end
23
23
  handler_instance = Handler::CommonAPIHandler.new
24
24
  api_path = ''
25
- api_path = api_path + '/crm/v2/settings/modules'
25
+ api_path = api_path + '/crm/v2.1/settings/modules'
26
26
  handler_instance.api_path = api_path
27
27
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
28
28
  handler_instance.category_method = 'READ'
@@ -41,7 +41,7 @@ module Modules
41
41
  end
42
42
  handler_instance = Handler::CommonAPIHandler.new
43
43
  api_path = ''
44
- api_path = api_path + '/crm/v2/settings/modules/'
44
+ api_path = api_path + '/crm/v2.1/settings/modules/'
45
45
  api_path = api_path + api_name.to_s
46
46
  handler_instance.api_path = api_path
47
47
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -64,7 +64,7 @@ module Modules
64
64
  end
65
65
  handler_instance = Handler::CommonAPIHandler.new
66
66
  api_path = ''
67
- api_path = api_path + '/crm/v2/settings/modules/'
67
+ api_path = api_path + '/crm/v2.1/settings/modules/'
68
68
  api_path = api_path + api_name.to_s
69
69
  handler_instance.api_path = api_path
70
70
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -89,7 +89,7 @@ module Modules
89
89
  end
90
90
  handler_instance = Handler::CommonAPIHandler.new
91
91
  api_path = ''
92
- api_path = api_path + '/crm/v2/settings/modules/'
92
+ api_path = api_path + '/crm/v2.1/settings/modules/'
93
93
  api_path = api_path + id.to_s
94
94
  handler_instance.api_path = api_path
95
95
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -28,7 +28,7 @@ module Notes
28
28
  end
29
29
  handler_instance = Handler::CommonAPIHandler.new
30
30
  api_path = ''
31
- api_path = api_path + '/crm/v2/Notes'
31
+ api_path = api_path + '/crm/v2.1/Notes'
32
32
  handler_instance.api_path = api_path
33
33
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
34
34
  handler_instance.category_method = 'READ'
@@ -48,7 +48,7 @@ module Notes
48
48
  end
49
49
  handler_instance = Handler::CommonAPIHandler.new
50
50
  api_path = ''
51
- api_path = api_path + '/crm/v2/Notes'
51
+ api_path = api_path + '/crm/v2.1/Notes'
52
52
  handler_instance.api_path = api_path
53
53
  handler_instance.http_method = Constants::REQUEST_METHOD_POST
54
54
  handler_instance.category_method = 'CREATE'
@@ -69,7 +69,7 @@ module Notes
69
69
  end
70
70
  handler_instance = Handler::CommonAPIHandler.new
71
71
  api_path = ''
72
- api_path = api_path + '/crm/v2/Notes'
72
+ api_path = api_path + '/crm/v2.1/Notes'
73
73
  handler_instance.api_path = api_path
74
74
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
75
75
  handler_instance.category_method = 'UPDATE'
@@ -90,7 +90,7 @@ module Notes
90
90
  end
91
91
  handler_instance = Handler::CommonAPIHandler.new
92
92
  api_path = ''
93
- api_path = api_path + '/crm/v2/Notes'
93
+ api_path = api_path + '/crm/v2.1/Notes'
94
94
  handler_instance.api_path = api_path
95
95
  handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
96
96
  handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
@@ -117,7 +117,7 @@ module Notes
117
117
  end
118
118
  handler_instance = Handler::CommonAPIHandler.new
119
119
  api_path = ''
120
- api_path = api_path + '/crm/v2/Notes/'
120
+ api_path = api_path + '/crm/v2.1/Notes/'
121
121
  api_path = api_path + id.to_s
122
122
  handler_instance.api_path = api_path
123
123
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -142,7 +142,7 @@ module Notes
142
142
  end
143
143
  handler_instance = Handler::CommonAPIHandler.new
144
144
  api_path = ''
145
- api_path = api_path + '/crm/v2/Notes/'
145
+ api_path = api_path + '/crm/v2.1/Notes/'
146
146
  api_path = api_path + id.to_s
147
147
  handler_instance.api_path = api_path
148
148
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -163,7 +163,7 @@ module Notes
163
163
  end
164
164
  handler_instance = Handler::CommonAPIHandler.new
165
165
  api_path = ''
166
- api_path = api_path + '/crm/v2/Notes/'
166
+ api_path = api_path + '/crm/v2.1/Notes/'
167
167
  api_path = api_path + id.to_s
168
168
  handler_instance.api_path = api_path
169
169
  handler_instance.http_method = Constants::REQUEST_METHOD_DELETE