ZOHOCRMSDK6_0 1.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/src/ZOHOCRMSDK6_0.rb +4 -1
  3. data/src/com/zoho/api/authenticator/store/db_store.rb +1 -1
  4. data/src/com/zoho/api/logger/sdk_logger.rb +19 -43
  5. data/src/com/zoho/crm/api/change_owner/mass_wrapper.rb +1 -1
  6. data/src/com/zoho/crm/api/convert_lead/lead_converter.rb +19 -0
  7. data/src/com/zoho/crm/api/convert_lead/move_attachments_to.rb +82 -0
  8. data/src/com/zoho/crm/api/custom_views/action_wrapper.rb +2 -0
  9. data/src/com/zoho/crm/api/custom_views/custom_views.rb +4 -4
  10. data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +79 -0
  11. data/src/com/zoho/crm/api/deal_contact_roles/data.rb +1 -1
  12. data/src/com/zoho/crm/api/email_related_records/status.rb +19 -0
  13. data/src/com/zoho/crm/api/email_templates/email_template.rb +1 -1
  14. data/src/com/zoho/crm/api/features/detail.rb +19 -0
  15. data/src/com/zoho/crm/api/features/features_operations.rb +14 -0
  16. data/src/com/zoho/crm/api/layouts/section_field.rb +1 -1
  17. data/src/com/zoho/crm/api/layouts/sections.rb +4 -4
  18. data/src/com/zoho/crm/api/modules/module_field_lookup.rb +1 -1
  19. data/src/com/zoho/crm/api/modules/module_fields.rb +1 -1
  20. data/src/com/zoho/crm/api/record/consent.rb +1 -1
  21. data/src/com/zoho/crm/api/record/line_item_product.rb +1 -1
  22. data/src/com/zoho/crm/api/record/participants.rb +1 -1
  23. data/src/com/zoho/crm/api/record/price_book.rb +1 -1
  24. data/src/com/zoho/crm/api/record/pricing_details.rb +1 -1
  25. data/src/com/zoho/crm/api/record_locking/record_lock.rb +1 -1
  26. data/src/com/zoho/crm/api/reschedule_history/reschedule_history_operations.rb +10 -6
  27. data/src/com/zoho/crm/api/scoring_rules/scoring_rules_operations.rb +5 -5
  28. data/src/com/zoho/crm/api/users/api_exception.rb +2 -0
  29. data/src/com/zoho/crm/api/users/count_handler.rb +12 -0
  30. data/src/com/zoho/crm/api/users/count_wrapper.rb +65 -0
  31. data/src/com/zoho/crm/api/users/users.rb +9 -9
  32. data/src/com/zoho/crm/api/users/users_operations.rb +26 -0
  33. data/src/com/zoho/crm/api/util/constants.rb +1 -1
  34. data/src/resources/json_details.json +1 -1
  35. data/src/version.rb +1 -1
  36. metadata +12 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df03134d69d2be679fa12f0fbb0ec43d979dad4616f031d5e0a63f83ad70e4eb
4
- data.tar.gz: b5ec010e7e042d5ccf19c24992580dd18019aef19c9a9f7edc5cc96e86993aa4
3
+ metadata.gz: 4de82be1c481af4eb5c5f5592948750cd40f2f018ccad782fa319db323bd4786
4
+ data.tar.gz: 2bcf247dd3f9020fc36649d824c3ea13bb0e4fa03ca9cf3949e2b8b22f284c5b
5
5
  SHA512:
6
- metadata.gz: 193b09c8097ea7b190d1a610d20444a8679cc5f892bfd42146c4f69089528a48df80a49b233d24dbc43f41b638d0cbe36f321e051bfd895c201d59f2a71c15ea
7
- data.tar.gz: 134e51ad63761a05ef1fe1c1fde13bdac39ab14c92cbfffc8fb952226c752ff390cd8a2b8329bca7f15ec9f60e88ebeedb19dd3bd68cdcc6dd0759b5cef0da87
6
+ metadata.gz: 41206e67c5339028b5bfbf1afb88b345592955813a3f8d1975bd61854b46672647019710d8a95b76a3abde291b4af4168545496a4e9ab63587a80749792c39cd
7
+ data.tar.gz: 15b1f931837496238352c4521a7aa4e809c93a0a5a15cf393df15ca8970f09b10fae05e132fa5ece87b6335716f866abaca211ad1ce50e7b2e5c6a5b2f92562f
data/src/ZOHOCRMSDK6_0.rb CHANGED
@@ -1299,4 +1299,7 @@ require 'com/zoho/api/authenticator/oauth_token.rb'
1299
1299
  require 'com/zoho/api/authenticator/token.rb'
1300
1300
  require 'com/zoho/api/authenticator/store/db_store.rb'
1301
1301
  require 'com/zoho/api/authenticator/store/token_store.rb'
1302
- require 'com/zoho/api/authenticator/store/file_store.rb'
1302
+ require 'com/zoho/api/authenticator/store/file_store.rb'
1303
+ require 'com/zoho/crm/api/users/count_handler.rb'
1304
+ require 'com/zoho/crm/api/users/count_wrapper.rb'
1305
+ require 'com/zoho/crm/api/convert_lead/move_attachments_to.rb'
@@ -1,4 +1,3 @@
1
- require 'mysql2'
2
1
  require_relative 'token_store'
3
2
  require_relative '../oauth_token'
4
3
  require_relative '../../../crm/api/util/constants'
@@ -17,6 +16,7 @@ module ZOHOCRMSDK
17
16
  # @param password A String containing the DataBase password.
18
17
  # @param port_number A String containing the DataBase port number.
19
18
  def initialize(host: Constants::MYSQL_HOST, database_name: Constants::MYSQL_DATABASE_NAME , table_name: Constants::MYSQL_TABLE_NAME, user_name: Constants::MYSQL_USER_NAME, password: '', port_number: Constants::MYSQL_PORT_NUMBER )
19
+ require 'mysql2' unless Object.const_defined?(:Mysql2)
20
20
  @host = host
21
21
  @database_name = database_name
22
22
  @table_name = table_name
@@ -1,5 +1,3 @@
1
- require 'webrick/log'
2
- require 'webrick/accesslog'
3
1
  require 'logger'
4
2
 
5
3
  module ZOHOCRMSDK
@@ -14,74 +12,52 @@ module ZOHOCRMSDK
14
12
  def self.initialize(level:, path:nil)
15
13
  Log.new(level, path)
16
14
  end
17
-
18
- end
19
15
 
20
- class SilentLogger < WEBrick::BasicLog
21
- def log(level, data) end # override log method for avoiding logs
16
+ def as_logger
17
+ return Logger.new(File.open(File::NULL, 'w')) if self.level == Levels::OFF || self.path.nil? || self.path == ""
18
+
19
+ logger = self.path.nil? ? Logger.new(STDOUT) : Logger.new(self.path)
20
+ logger.level = self.level ? Object.const_get("Logger::#{self.level}") : Logger::INFO
21
+ logger
22
+ end
22
23
  end
23
24
 
25
+ # Generic logger to support passing in a custom logger i.e. your application's Rails.logger
24
26
  class SDKLogger
25
- @@path = nil
26
- @@level = nil
27
- @@log_levels_precedence = { 'FATAL' => 1, 'SEVERE' => 1, 'ERROR' => 2, 'WARN' => 3, 'INFO' => 4, 'ALL' => 5, 'DEBUG' => 5 , 'OFF' => 5}
28
- @@logger = nil
29
-
30
27
  def self.initialize(log)
31
-
32
- if (!log.level.nil? && (log.level == Levels::OFF || log.path.nil? || log.path == "") )
33
- sdk_logger = SilentLogger.new.log(log.level, log.path)
34
- else
35
- if !log.level.nil? && log.level != Levels::OFF && !log.path.nil? && log.path.length > 0
36
- if @@log_levels_precedence.key? log.level
37
- File.new(log.path, 'w') unless File.exist? log.path if log.path != nil
38
- sdk_logger = WEBrick::BasicLog.new(log.path, @@log_levels_precedence[log.level])
39
- end
40
- end
41
-
42
- if !log.level.nil? && log.path.nil?
43
- if @@log_levels_precedence.key? log.level
44
- sdk_logger = WEBrick::BasicLog.new(nil, @@log_levels_precedence[log.level])
45
- end
46
- end
47
- end
48
-
49
- @@logger = sdk_logger
28
+ return @logger = log.as_logger if log.is_a?(Log)
29
+ @logger = log
50
30
  rescue StandardError => e
51
31
  raise SDKException.new(nil, Constants::LOGGER_INITIALIZATION_ERROR, nil, e)
52
32
  end
53
33
 
54
34
  def self.info(message)
55
- @@logger&.info(Time.new.to_s + ' ' + message)
35
+ @logger&.info("#{Time.new} #{message}")
56
36
  end
57
37
 
58
38
  def self.error(message, exception = nil)
59
- unless exception.nil?
60
- exception.to_s
61
- message = message + exception.to_s + exception.backtrace.join("\n")
62
- end
63
- @@logger&.error(Time.new.to_s + ' ' + message)
39
+ message = "#{message}#{exception}#{exception.backtrace&.join("\n")}" unless exception.nil?
40
+ @logger&.error("#{Time.new} #{message}")
64
41
  end
65
42
 
66
43
  def self.warn(message)
67
- @@logger&.warn(Time.new.to_s + ' ' + message)
44
+ @logger&.warn("#{Time.new} #{message}")
68
45
  end
69
46
 
70
47
  def self.severe(message, exception = nil)
71
-
72
- message = message + exception.to_s + exception.backtrace.join("\n") unless exception.nil? || exception.backtrace.nil?
73
- @@logger&.fatal(Time.new.to_s + ' ' + message)
48
+ message = "#{message}#{exception}#{exception.backtrace&.join("\n")}" unless exception.nil?
49
+ @logger&.fatal("#{Time.new} #{message}")
74
50
  end
75
51
  end
76
52
  end
77
53
 
78
54
  module Levels
79
- SEVERE = 'SEVERE'
55
+ SEVERE = 'FATAL'
80
56
  INFO = 'INFO'
81
- WARNING = 'WARNING'
57
+ WARNING = 'WARN'
82
58
  ERROR = 'ERROR'
83
59
  DEBUG = 'DEBUG'
84
- ALL = 'ALL'
60
+ ALL = 'DEBUG'
85
61
  OFF = 'OFF'
86
62
  FATAL = 'FATAL'
87
63
  end
@@ -3,7 +3,7 @@ require_relative '../util/model'
3
3
 
4
4
  module ZOHOCRMSDK
5
5
  module ChangeOwner
6
- class MassWrapper < ChangeOwner::BodyWrapper
6
+ class MassWrapper < BodyWrapper
7
7
  include Util::Model
8
8
 
9
9
  # Creates an instance of MassWrapper
@@ -13,6 +13,7 @@ module ZOHOCRMSDK
13
13
  @overwrite = nil
14
14
  @notify_lead_owner = nil
15
15
  @notify_new_entity_owner = nil
16
+ @move_attachments_to = nil
16
17
  @accounts = nil
17
18
  @contacts = nil
18
19
  @assign_to = nil
@@ -76,6 +77,24 @@ module ZOHOCRMSDK
76
77
  @key_modified['notify_new_entity_owner'] = 1
77
78
  end
78
79
 
80
+ # The method to get the move_attachments_to
81
+ # @return An instance of MoveAttachmentsTo
82
+
83
+ def move_attachments_to
84
+ @move_attachments_to
85
+ end
86
+
87
+ # The method to set the value to move_attachments_to
88
+ # @param move_attachments_to [MoveAttachmentsTo] An instance of MoveAttachmentsTo
89
+
90
+ def move_attachments_to=(move_attachments_to)
91
+ if move_attachments_to!=nil and !move_attachments_to.is_a? MoveAttachmentsTo
92
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: move_attachments_to EXPECTED TYPE: MoveAttachmentsTo', nil, nil)
93
+ end
94
+ @move_attachments_to = move_attachments_to
95
+ @key_modified['move_attachments_to'] = 1
96
+ end
97
+
79
98
  # The method to get the accounts
80
99
  # @return An instance of Record::Record
81
100
 
@@ -0,0 +1,82 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module ConvertLead
5
+ class MoveAttachmentsTo
6
+ include Util::Model
7
+
8
+ # Creates an instance of MoveAttachmentsTo
9
+ def initialize
10
+ @id = nil
11
+ @api_name = nil
12
+ @key_modified = Hash.new
13
+ end
14
+
15
+ # The method to get the id
16
+ # @return A Integer value
17
+
18
+ def id
19
+ @id
20
+ end
21
+
22
+ # The method to set the value to id
23
+ # @param id [Integer] A Integer
24
+
25
+ def id=(id)
26
+ if id!=nil and !id.is_a? Integer
27
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
28
+ end
29
+ @id = id
30
+ @key_modified['id'] = 1
31
+ end
32
+
33
+ # The method to get the api_name
34
+ # @return A String value
35
+
36
+ def api_name
37
+ @api_name
38
+ end
39
+
40
+ # The method to set the value to api_name
41
+ # @param api_name [String] A String
42
+
43
+ def api_name=(api_name)
44
+ if api_name!=nil and !api_name.is_a? String
45
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: String', nil, nil)
46
+ end
47
+ @api_name = api_name
48
+ @key_modified['api_name'] = 1
49
+ end
50
+
51
+ # The method to check if the user has modified the given key
52
+ # @param key [String] A String
53
+ # @return A Integer value
54
+
55
+ def is_key_modified(key)
56
+ if key!=nil and !key.is_a? String
57
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
58
+ end
59
+ if @key_modified.key?(key)
60
+ return @key_modified[key]
61
+ end
62
+
63
+ nil
64
+ end
65
+
66
+ # The method to mark the given key as modified
67
+ # @param key [String] A String
68
+ # @param modification [Integer] A Integer
69
+
70
+ def set_key_modified(key, modification)
71
+ if key!=nil and !key.is_a? String
72
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
73
+ end
74
+ if modification!=nil and !modification.is_a? Integer
75
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
76
+ end
77
+ @key_modified[key] = modification
78
+ end
79
+
80
+ end
81
+ end
82
+ end
@@ -2,8 +2,10 @@ require_relative '../util/model'
2
2
 
3
3
  module ZOHOCRMSDK
4
4
  module CustomViews
5
+ require_relative 'action_handler'
5
6
  class ActionWrapper
6
7
  include Util::Model
8
+ include ActionHandler
7
9
 
8
10
  # Creates an instance of ActionWrapper
9
11
  def initialize
@@ -286,18 +286,18 @@ module ZOHOCRMSDK
286
286
  end
287
287
 
288
288
  # The method to get the favorite
289
- # @return A Boolean value
289
+ # @return A Integer value
290
290
 
291
291
  def favorite
292
292
  @favorite
293
293
  end
294
294
 
295
295
  # The method to set the value to favorite
296
- # @param favorite [Boolean] A Boolean
296
+ # @param favorite [Integer] A Integer
297
297
 
298
298
  def favorite=(favorite)
299
- if favorite!=nil and ! [true, false].include?favorite
300
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: favorite EXPECTED TYPE: Boolean', nil, nil)
299
+ if favorite!=nil and !favorite.is_a? Integer
300
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: favorite EXPECTED TYPE: Integer', nil, nil)
301
301
  end
302
302
  @favorite = favorite
303
303
  @key_modified['favorite'] = 1
@@ -56,11 +56,76 @@ module ZOHOCRMSDK
56
56
  handler_instance.api_call(ResponseHandler.name, 'application/json')
57
57
  end
58
58
 
59
+ # The method to change sort order of custom views
60
+ # @param request [BodyWrapper] An instance of BodyWrapper
61
+ # @param param_instance [ParameterMap] An instance of ParameterMap
62
+ # @return An instance of APIResponse
63
+ # @raise SDKException
64
+ def change_sort_order_of_custom_views(request, param_instance=nil)
65
+ if request!=nil and !request.is_a? BodyWrapper
66
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
67
+ end
68
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
69
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
70
+ end
71
+ handler_instance = Handler::CommonAPIHandler.new
72
+ api_path = ''
73
+ api_path = api_path + '/crm/v6/settings/custom_views/actions/change_sort'
74
+ handler_instance.api_path = api_path
75
+ handler_instance.http_method = Constants::REQUEST_METHOD_PUT
76
+ handler_instance.category_method = 'UPDATE'
77
+ handler_instance.content_type = 'application/json'
78
+ handler_instance.request = request
79
+ handler_instance.mandatory_checker = true
80
+ handler_instance.param = param_instance
81
+ require_relative 'action_handler'
82
+ handler_instance.api_call(ActionHandler.name, 'application/json')
83
+ end
84
+
85
+ # The method to change sort order of custom view
86
+ # @param id [Integer] A Integer
87
+ # @param request [BodyWrapper] An instance of BodyWrapper
88
+ # @param param_instance [ParameterMap] An instance of ParameterMap
89
+ # @return An instance of APIResponse
90
+ # @raise SDKException
91
+ def change_sort_order_of_custom_view(id, request, param_instance=nil)
92
+ if !id.is_a? Integer
93
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
94
+ end
95
+ if request!=nil and !request.is_a? BodyWrapper
96
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
97
+ end
98
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
99
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
100
+ end
101
+ handler_instance = Handler::CommonAPIHandler.new
102
+ api_path = ''
103
+ api_path = api_path + '/crm/v6/settings/custom_views/'
104
+ api_path = api_path + id.to_s
105
+ api_path = api_path + '/actions/change_sort'
106
+ handler_instance.api_path = api_path
107
+ handler_instance.http_method = Constants::REQUEST_METHOD_PUT
108
+ handler_instance.category_method = 'UPDATE'
109
+ handler_instance.content_type = 'application/json'
110
+ handler_instance.request = request
111
+ handler_instance.param = param_instance
112
+ require_relative 'action_handler'
113
+ handler_instance.api_call(ActionHandler.name, 'application/json')
114
+ end
115
+
59
116
  class GetCustomViewsParam
60
117
  @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
61
118
  def self.module_1
62
119
  @@module_1
63
120
  end
121
+ @@page = Param.new('page', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
122
+ def self.page
123
+ @@page
124
+ end
125
+ @@per_page = Param.new('per_page', 'com.zoho.crm.api.CustomViews.GetCustomViewsParam')
126
+ def self.per_page
127
+ @@per_page
128
+ end
64
129
  end
65
130
 
66
131
  class GetCustomViewParam
@@ -70,6 +135,20 @@ module ZOHOCRMSDK
70
135
  end
71
136
  end
72
137
 
138
+ class ChangeSortOrderOfCustomViewsParam
139
+ @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.ChangeSortOrderOfCustomViewsParam')
140
+ def self.module_1
141
+ @@module_1
142
+ end
143
+ end
144
+
145
+ class ChangeSortOrderOfCustomViewParam
146
+ @@module_1 = Param.new('module', 'com.zoho.crm.api.CustomViews.ChangeSortOrderOfCustomViewParam')
147
+ def self.module_1
148
+ @@module_1
149
+ end
150
+ end
151
+
73
152
  end
74
153
  end
75
154
  end
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -14,6 +14,7 @@ module ZOHOCRMSDK
14
14
  @bounced_time = nil
15
15
  @bounced_reason = nil
16
16
  @category = nil
17
+ @sub_category = nil
17
18
  @key_modified = Hash.new
18
19
  end
19
20
 
@@ -143,6 +144,24 @@ module ZOHOCRMSDK
143
144
  @key_modified['category'] = 1
144
145
  end
145
146
 
147
+ # The method to get the sub_category
148
+ # @return A String value
149
+
150
+ def sub_category
151
+ @sub_category
152
+ end
153
+
154
+ # The method to set the value to sub_category
155
+ # @param sub_category [String] A String
156
+
157
+ def sub_category=(sub_category)
158
+ if sub_category!=nil and !sub_category.is_a? String
159
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sub_category EXPECTED TYPE: String', nil, nil)
160
+ end
161
+ @sub_category = sub_category
162
+ @key_modified['sub_category'] = 1
163
+ end
164
+
146
165
  # The method to check if the user has modified the given key
147
166
  # @param key [String] A String
148
167
  # @return A Integer value
@@ -1,8 +1,8 @@
1
1
  require_relative '../inventory_templates/folder'
2
+ require_relative '../inventory_templates/inventory_templates'
2
3
  require_relative '../inventory_templates/module_map'
3
4
  require_relative '../inventory_templates/user'
4
5
  require_relative '../send_mail/template'
5
- require_relative '../inventory_templates/inventory_templates'
6
6
  require_relative '../util/model'
7
7
 
8
8
  module ZOHOCRMSDK
@@ -7,11 +7,30 @@ module ZOHOCRMSDK
7
7
 
8
8
  # Creates an instance of Detail
9
9
  def initialize
10
+ @available_count = nil
10
11
  @limits = nil
11
12
  @used_count = nil
12
13
  @key_modified = Hash.new
13
14
  end
14
15
 
16
+ # The method to get the available_count
17
+ # @return An instance of Limit
18
+
19
+ def available_count
20
+ @available_count
21
+ end
22
+
23
+ # The method to set the value to available_count
24
+ # @param available_count [Limit] An instance of Limit
25
+
26
+ def available_count=(available_count)
27
+ if available_count!=nil and !available_count.is_a? Limit
28
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: available_count EXPECTED TYPE: Limit', nil, nil)
29
+ end
30
+ @available_count = available_count
31
+ @key_modified['available_count'] = 1
32
+ end
33
+
15
34
  # The method to get the limits
16
35
  # @return An instance of Limit
17
36
 
@@ -70,6 +70,20 @@ module ZOHOCRMSDK
70
70
  handler_instance.api_call(ResponseHandler.name, 'application/json')
71
71
  end
72
72
 
73
+ # The method to get user licences count
74
+ # @return An instance of APIResponse
75
+ # @raise SDKException
76
+ def get_user_licences_count
77
+ handler_instance = Handler::CommonAPIHandler.new
78
+ api_path = ''
79
+ api_path = api_path + '/crm/v6/__features/user_licenses'
80
+ handler_instance.api_path = api_path
81
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
82
+ handler_instance.category_method = 'READ'
83
+ require_relative 'response_handler'
84
+ handler_instance.api_call(ResponseHandler.name, 'application/json')
85
+ end
86
+
73
87
  class GetFeatureDetailsParam
74
88
  @@module_1 = Param.new('module', 'com.zoho.crm.api.Features.GetFeatureDetailsParam')
75
89
  def self.module_1
@@ -5,6 +5,7 @@ require_relative '../fields/crypt'
5
5
  require_relative '../fields/currency'
6
6
  require_relative '../fields/email_parser'
7
7
  require_relative '../fields/external'
8
+ require_relative '../fields/fields'
8
9
  require_relative '../fields/file_upolad_option'
9
10
  require_relative '../fields/formula'
10
11
  require_relative '../fields/hipaa_compliance'
@@ -25,7 +26,6 @@ require_relative '../fields/unique'
25
26
  require_relative '../fields/view_type'
26
27
  require_relative '../modules/minified_module'
27
28
  require_relative '../modules/sharing_properties'
28
- require_relative '../fields/fields'
29
29
  require_relative '../util/model'
30
30
 
31
31
  module ZOHOCRMSDK
@@ -77,18 +77,18 @@ module ZOHOCRMSDK
77
77
  end
78
78
 
79
79
  # The method to get the tab_traversal
80
- # @return A Integer value
80
+ # @return A String value
81
81
 
82
82
  def tab_traversal
83
83
  @tab_traversal
84
84
  end
85
85
 
86
86
  # The method to set the value to tab_traversal
87
- # @param tab_traversal [Integer] A Integer
87
+ # @param tab_traversal [String] A String
88
88
 
89
89
  def tab_traversal=(tab_traversal)
90
- if tab_traversal!=nil and !tab_traversal.is_a? Integer
91
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: tab_traversal EXPECTED TYPE: Integer', nil, nil)
90
+ if tab_traversal!=nil and !tab_traversal.is_a? String
91
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: tab_traversal EXPECTED TYPE: String', nil, nil)
92
92
  end
93
93
  @tab_traversal = tab_traversal
94
94
  @key_modified['tab_traversal'] = 1
@@ -1,6 +1,6 @@
1
+ require_relative '../fields/lookup'
1
2
  require_relative '../fields/query_details'
2
3
  require_relative '../fields/show_fields'
3
- require_relative '../fields/lookup'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -5,6 +5,7 @@ require_relative '../fields/crypt'
5
5
  require_relative '../fields/currency'
6
6
  require_relative '../fields/email_parser'
7
7
  require_relative '../fields/external'
8
+ require_relative '../fields/fields'
8
9
  require_relative '../fields/file_upolad_option'
9
10
  require_relative '../fields/formula'
10
11
  require_relative '../fields/hipaa_compliance'
@@ -23,7 +24,6 @@ require_relative '../fields/textarea'
23
24
  require_relative '../fields/tooltip'
24
25
  require_relative '../fields/unique'
25
26
  require_relative '../fields/view_type'
26
- require_relative '../fields/fields'
27
27
  require_relative '../util/model'
28
28
 
29
29
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/choice'
5
5
  require_relative '../util/model'
6
6