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,61 @@
1
+ require_relative '../exception/sdk_exception'
2
+ require_relative '../util/api_response'
3
+ require_relative '../util/common_api_handler'
4
+ require_relative '../util/constants'
5
+
6
+ module SendMail
7
+ class SendMailOperations
8
+
9
+ # Creates an instance of SendMailOperations
10
+ def initialize
11
+ end
12
+
13
+ # The method to get email addresses
14
+ # @return An instance of APIResponse
15
+ # @raise SDKException
16
+ def get_email_addresses
17
+ handler_instance = Handler::CommonAPIHandler.new
18
+ api_path = ''
19
+ api_path = api_path + '/crm/v2.1/settings/emails/actions/from_addresses'
20
+ handler_instance.api_path = api_path
21
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
22
+ handler_instance.category_method = 'READ'
23
+ require_relative 'response_handler'
24
+ handler_instance.api_call(ResponseHandler.name, 'application/json')
25
+ end
26
+
27
+ # The method to send mail
28
+ # @param record_id [Integer] A Integer
29
+ # @param module_api_name [String] A String
30
+ # @param request [BodyWrapper] An instance of BodyWrapper
31
+ # @return An instance of APIResponse
32
+ # @raise SDKException
33
+ def send_mail(record_id, module_api_name, request)
34
+ if !record_id.is_a? Integer
35
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: record_id EXPECTED TYPE: Integer', nil, nil)
36
+ end
37
+ if !module_api_name.is_a? String
38
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
39
+ end
40
+ if request!=nil and !request.is_a? BodyWrapper
41
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
42
+ end
43
+ handler_instance = Handler::CommonAPIHandler.new
44
+ api_path = ''
45
+ api_path = api_path + '/crm/v2.1/'
46
+ api_path = api_path + module_api_name.to_s
47
+ api_path = api_path + '/'
48
+ api_path = api_path + record_id.to_s
49
+ api_path = api_path + '/actions/send_mail'
50
+ handler_instance.api_path = api_path
51
+ handler_instance.http_method = Constants::REQUEST_METHOD_POST
52
+ handler_instance.category_method = 'CREATE'
53
+ handler_instance.content_type = 'application/json'
54
+ handler_instance.request = request
55
+ handler_instance.mandatory_checker = true
56
+ require_relative 'action_handler'
57
+ handler_instance.api_call(ActionHandler.name, 'application/json')
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,121 @@
1
+ require_relative '../util/choice'
2
+ require_relative '../util/model'
3
+
4
+ module SendMail
5
+ require_relative 'action_response'
6
+ class SuccessResponse
7
+ include Util::Model
8
+ include ActionResponse
9
+
10
+ # Creates an instance of SuccessResponse
11
+ def initialize
12
+ @status = nil
13
+ @code = nil
14
+ @message = nil
15
+ @details = nil
16
+ @key_modified = Hash.new
17
+ end
18
+
19
+ # The method to get the status
20
+ # @return An instance of Util::Choice
21
+
22
+ def status
23
+ @status
24
+ end
25
+
26
+ # The method to set the value to status
27
+ # @param status [Util::Choice] An instance of Util::Choice
28
+
29
+ def status=(status)
30
+ if status!=nil and !status.is_a? Util::Choice
31
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
32
+ end
33
+ @status = status
34
+ @key_modified['status'] = 1
35
+ end
36
+
37
+ # The method to get the code
38
+ # @return An instance of Util::Choice
39
+
40
+ def code
41
+ @code
42
+ end
43
+
44
+ # The method to set the value to code
45
+ # @param code [Util::Choice] An instance of Util::Choice
46
+
47
+ def code=(code)
48
+ if code!=nil and !code.is_a? Util::Choice
49
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
50
+ end
51
+ @code = code
52
+ @key_modified['code'] = 1
53
+ end
54
+
55
+ # The method to get the message
56
+ # @return An instance of Util::Choice
57
+
58
+ def message
59
+ @message
60
+ end
61
+
62
+ # The method to set the value to message
63
+ # @param message [Util::Choice] An instance of Util::Choice
64
+
65
+ def message=(message)
66
+ if message!=nil and !message.is_a? Util::Choice
67
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
68
+ end
69
+ @message = message
70
+ @key_modified['message'] = 1
71
+ end
72
+
73
+ # The method to get the details
74
+ # @return An instance of Hash
75
+
76
+ def details
77
+ @details
78
+ end
79
+
80
+ # The method to set the value to details
81
+ # @param details [Hash] An instance of Hash
82
+
83
+ def details=(details)
84
+ if details!=nil and !details.is_a? Hash
85
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
86
+ end
87
+ @details = details
88
+ @key_modified['details'] = 1
89
+ end
90
+
91
+ # The method to check if the user has modified the given key
92
+ # @param key [String] A String
93
+ # @return A Integer value
94
+
95
+ def is_key_modified(key)
96
+ if key!=nil and !key.is_a? String
97
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
98
+ end
99
+ if @key_modified.key?(key)
100
+ return @key_modified[key]
101
+ end
102
+
103
+ nil
104
+ end
105
+
106
+ # The method to mark the given key as modified
107
+ # @param key [String] A String
108
+ # @param modification [Integer] A Integer
109
+
110
+ def set_key_modified(key, modification)
111
+ if key!=nil and !key.is_a? String
112
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
113
+ end
114
+ if modification!=nil and !modification.is_a? Integer
115
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
116
+ end
117
+ @key_modified[key] = modification
118
+ end
119
+
120
+ end
121
+ end
@@ -0,0 +1,10 @@
1
+ module SendMail
2
+ module Template
3
+
4
+ # Creates an instance of Template
5
+ def initialize
6
+ end
7
+
8
+
9
+ end
10
+ end
@@ -0,0 +1,137 @@
1
+ require_relative '../util/model'
2
+
3
+ module SendMail
4
+ class UserAddress
5
+ include Util::Model
6
+
7
+ # Creates an instance of UserAddress
8
+ def initialize
9
+ @user_name = nil
10
+ @type = nil
11
+ @email = nil
12
+ @id = nil
13
+ @default = nil
14
+ @key_modified = Hash.new
15
+ end
16
+
17
+ # The method to get the user_name
18
+ # @return A String value
19
+
20
+ def user_name
21
+ @user_name
22
+ end
23
+
24
+ # The method to set the value to user_name
25
+ # @param user_name [String] A String
26
+
27
+ def user_name=(user_name)
28
+ if user_name!=nil and !user_name.is_a? String
29
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: user_name EXPECTED TYPE: String', nil, nil)
30
+ end
31
+ @user_name = user_name
32
+ @key_modified['user_name'] = 1
33
+ end
34
+
35
+ # The method to get the type
36
+ # @return A String value
37
+
38
+ def type
39
+ @type
40
+ end
41
+
42
+ # The method to set the value to type
43
+ # @param type [String] A String
44
+
45
+ def type=(type)
46
+ if type!=nil and !type.is_a? String
47
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
48
+ end
49
+ @type = type
50
+ @key_modified['type'] = 1
51
+ end
52
+
53
+ # The method to get the email
54
+ # @return A String value
55
+
56
+ def email
57
+ @email
58
+ end
59
+
60
+ # The method to set the value to email
61
+ # @param email [String] A String
62
+
63
+ def email=(email)
64
+ if email!=nil and !email.is_a? String
65
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: email EXPECTED TYPE: String', nil, nil)
66
+ end
67
+ @email = email
68
+ @key_modified['email'] = 1
69
+ end
70
+
71
+ # The method to get the id
72
+ # @return A Integer value
73
+
74
+ def id
75
+ @id
76
+ end
77
+
78
+ # The method to set the value to id
79
+ # @param id [Integer] A Integer
80
+
81
+ def id=(id)
82
+ if id!=nil and !id.is_a? Integer
83
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
84
+ end
85
+ @id = id
86
+ @key_modified['id'] = 1
87
+ end
88
+
89
+ # The method to get the default
90
+ # @return A Boolean value
91
+
92
+ def default
93
+ @default
94
+ end
95
+
96
+ # The method to set the value to default
97
+ # @param default [Boolean] A Boolean
98
+
99
+ def default=(default)
100
+ if default!=nil and ! [true, false].include?default
101
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: default EXPECTED TYPE: Boolean', nil, nil)
102
+ end
103
+ @default = default
104
+ @key_modified['default'] = 1
105
+ end
106
+
107
+ # The method to check if the user has modified the given key
108
+ # @param key [String] A String
109
+ # @return A Integer value
110
+
111
+ def is_key_modified(key)
112
+ if key!=nil and !key.is_a? String
113
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
114
+ end
115
+ if @key_modified.key?(key)
116
+ return @key_modified[key]
117
+ end
118
+
119
+ nil
120
+ end
121
+
122
+ # The method to mark the given key as modified
123
+ # @param key [String] A String
124
+ # @param modification [Integer] A Integer
125
+
126
+ def set_key_modified(key, modification)
127
+ if key!=nil and !key.is_a? String
128
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
129
+ end
130
+ if modification!=nil and !modification.is_a? Integer
131
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
132
+ end
133
+ @key_modified[key] = modification
134
+ end
135
+
136
+ end
137
+ end
@@ -32,7 +32,7 @@ module ShareRecords
32
32
  end
33
33
  handler_instance = Handler::CommonAPIHandler.new
34
34
  api_path = ''
35
- api_path = api_path + '/crm/v2/'
35
+ api_path = api_path + '/crm/v2.1/'
36
36
  api_path = api_path + @module_api_name.to_s
37
37
  api_path = api_path + '/'
38
38
  api_path = api_path + @record_id.to_s
@@ -55,7 +55,7 @@ module ShareRecords
55
55
  end
56
56
  handler_instance = Handler::CommonAPIHandler.new
57
57
  api_path = ''
58
- api_path = api_path + '/crm/v2/'
58
+ api_path = api_path + '/crm/v2.1/'
59
59
  api_path = api_path + @module_api_name.to_s
60
60
  api_path = api_path + '/'
61
61
  api_path = api_path + @record_id.to_s
@@ -80,7 +80,7 @@ module ShareRecords
80
80
  end
81
81
  handler_instance = Handler::CommonAPIHandler.new
82
82
  api_path = ''
83
- api_path = api_path + '/crm/v2/'
83
+ api_path = api_path + '/crm/v2.1/'
84
84
  api_path = api_path + @module_api_name.to_s
85
85
  api_path = api_path + '/'
86
86
  api_path = api_path + @record_id.to_s
@@ -101,7 +101,7 @@ module ShareRecords
101
101
  def revoke_shared_record
102
102
  handler_instance = Handler::CommonAPIHandler.new
103
103
  api_path = ''
104
- api_path = api_path + '/crm/v2/'
104
+ api_path = api_path + '/crm/v2.1/'
105
105
  api_path = api_path + @module_api_name.to_s
106
106
  api_path = api_path + '/'
107
107
  api_path = api_path + @record_id.to_s
@@ -11,6 +11,7 @@ module Tags
11
11
  @modified_time = nil
12
12
  @name = nil
13
13
  @modified_by = nil
14
+ @color_code = nil
14
15
  @id = nil
15
16
  @created_by = nil
16
17
  @key_modified = Hash.new
@@ -88,6 +89,24 @@ module Tags
88
89
  @key_modified['modified_by'] = 1
89
90
  end
90
91
 
92
+ # The method to get the color_code
93
+ # @return A String value
94
+
95
+ def color_code
96
+ @color_code
97
+ end
98
+
99
+ # The method to set the value to color_code
100
+ # @param color_code [String] A String
101
+
102
+ def color_code=(color_code)
103
+ if color_code!=nil and !color_code.is_a? String
104
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: color_code EXPECTED TYPE: String', nil, nil)
105
+ end
106
+ @color_code = color_code
107
+ @key_modified['color_code'] = 1
108
+ end
109
+
91
110
  # The method to get the id
92
111
  # @return A Integer value
93
112
 
@@ -22,7 +22,7 @@ module Tags
22
22
  end
23
23
  handler_instance = Handler::CommonAPIHandler.new
24
24
  api_path = ''
25
- api_path = api_path + '/crm/v2/settings/tags'
25
+ api_path = api_path + '/crm/v2.1/settings/tags'
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'
@@ -45,7 +45,7 @@ module Tags
45
45
  end
46
46
  handler_instance = Handler::CommonAPIHandler.new
47
47
  api_path = ''
48
- api_path = api_path + '/crm/v2/settings/tags'
48
+ api_path = api_path + '/crm/v2.1/settings/tags'
49
49
  handler_instance.api_path = api_path
50
50
  handler_instance.http_method = Constants::REQUEST_METHOD_POST
51
51
  handler_instance.category_method = 'CREATE'
@@ -71,7 +71,7 @@ module Tags
71
71
  end
72
72
  handler_instance = Handler::CommonAPIHandler.new
73
73
  api_path = ''
74
- api_path = api_path + '/crm/v2/settings/tags'
74
+ api_path = api_path + '/crm/v2.1/settings/tags'
75
75
  handler_instance.api_path = api_path
76
76
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
77
77
  handler_instance.category_method = 'UPDATE'
@@ -101,7 +101,7 @@ module Tags
101
101
  end
102
102
  handler_instance = Handler::CommonAPIHandler.new
103
103
  api_path = ''
104
- api_path = api_path + '/crm/v2/settings/tags/'
104
+ api_path = api_path + '/crm/v2.1/settings/tags/'
105
105
  api_path = api_path + id.to_s
106
106
  handler_instance.api_path = api_path
107
107
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -123,7 +123,7 @@ module Tags
123
123
  end
124
124
  handler_instance = Handler::CommonAPIHandler.new
125
125
  api_path = ''
126
- api_path = api_path + '/crm/v2/settings/tags/'
126
+ api_path = api_path + '/crm/v2.1/settings/tags/'
127
127
  api_path = api_path + id.to_s
128
128
  handler_instance.api_path = api_path
129
129
  handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
@@ -146,7 +146,7 @@ module Tags
146
146
  end
147
147
  handler_instance = Handler::CommonAPIHandler.new
148
148
  api_path = ''
149
- api_path = api_path + '/crm/v2/settings/tags/'
149
+ api_path = api_path + '/crm/v2.1/settings/tags/'
150
150
  api_path = api_path + id.to_s
151
151
  api_path = api_path + '/actions/merge'
152
152
  handler_instance.api_path = api_path
@@ -177,7 +177,7 @@ module Tags
177
177
  end
178
178
  handler_instance = Handler::CommonAPIHandler.new
179
179
  api_path = ''
180
- api_path = api_path + '/crm/v2/'
180
+ api_path = api_path + '/crm/v2.1/'
181
181
  api_path = api_path + module_api_name.to_s
182
182
  api_path = api_path + '/'
183
183
  api_path = api_path + record_id.to_s
@@ -209,7 +209,7 @@ module Tags
209
209
  end
210
210
  handler_instance = Handler::CommonAPIHandler.new
211
211
  api_path = ''
212
- api_path = api_path + '/crm/v2/'
212
+ api_path = api_path + '/crm/v2.1/'
213
213
  api_path = api_path + module_api_name.to_s
214
214
  api_path = api_path + '/'
215
215
  api_path = api_path + record_id.to_s
@@ -237,7 +237,7 @@ module Tags
237
237
  end
238
238
  handler_instance = Handler::CommonAPIHandler.new
239
239
  api_path = ''
240
- api_path = api_path + '/crm/v2/'
240
+ api_path = api_path + '/crm/v2.1/'
241
241
  api_path = api_path + module_api_name.to_s
242
242
  api_path = api_path + '/actions/add_tags'
243
243
  handler_instance.api_path = api_path
@@ -263,7 +263,7 @@ module Tags
263
263
  end
264
264
  handler_instance = Handler::CommonAPIHandler.new
265
265
  api_path = ''
266
- api_path = api_path + '/crm/v2/'
266
+ api_path = api_path + '/crm/v2.1/'
267
267
  api_path = api_path + module_api_name.to_s
268
268
  api_path = api_path + '/actions/remove_tags'
269
269
  handler_instance.api_path = api_path
@@ -289,7 +289,7 @@ module Tags
289
289
  end
290
290
  handler_instance = Handler::CommonAPIHandler.new
291
291
  api_path = ''
292
- api_path = api_path + '/crm/v2/settings/tags/'
292
+ api_path = api_path + '/crm/v2.1/settings/tags/'
293
293
  api_path = api_path + id.to_s
294
294
  api_path = api_path + '/actions/records_count'
295
295
  handler_instance.api_path = api_path