ZOHOCRMSDK6_0 1.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -23,7 +23,7 @@ module ZOHOCRMSDK
23
23
  end
24
24
  handler_instance = Handler::CommonAPIHandler.new
25
25
  api_path = ''
26
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
26
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
27
27
  handler_instance.api_path = api_path
28
28
  handler_instance.http_method = Constants::REQUEST_METHOD_POST
29
29
  handler_instance.category_method = 'CREATE'
@@ -44,7 +44,7 @@ module ZOHOCRMSDK
44
44
  end
45
45
  handler_instance = Handler::CommonAPIHandler.new
46
46
  api_path = ''
47
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
47
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
48
48
  handler_instance.api_path = api_path
49
49
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
50
50
  handler_instance.category_method = 'UPDATE'
@@ -65,7 +65,7 @@ module ZOHOCRMSDK
65
65
  end
66
66
  handler_instance = Handler::CommonAPIHandler.new
67
67
  api_path = ''
68
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
68
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
69
69
  handler_instance.api_path = api_path
70
70
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
71
71
  handler_instance.category_method = 'READ'
@@ -88,7 +88,7 @@ module ZOHOCRMSDK
88
88
  end
89
89
  handler_instance = Handler::CommonAPIHandler.new
90
90
  api_path = ''
91
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
91
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
92
92
  api_path = api_path + id.to_s
93
93
  handler_instance.api_path = api_path
94
94
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -113,7 +113,7 @@ module ZOHOCRMSDK
113
113
  end
114
114
  handler_instance = Handler::CommonAPIHandler.new
115
115
  api_path = ''
116
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
116
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
117
117
  api_path = api_path + id.to_s
118
118
  handler_instance.api_path = api_path
119
119
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -133,7 +133,7 @@ module ZOHOCRMSDK
133
133
  end
134
134
  handler_instance = Handler::CommonAPIHandler.new
135
135
  api_path = ''
136
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
136
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
137
137
  api_path = api_path + id.to_s
138
138
  handler_instance.api_path = api_path
139
139
  handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
@@ -163,6 +163,10 @@ module ZOHOCRMSDK
163
163
  def self.sort_by
164
164
  @@sort_by
165
165
  end
166
+ @@ids = Param.new('ids', 'com.zoho.crm.api.RescheduleHistory.GetAppointmentsRescheduledHistoryParam')
167
+ def self.ids
168
+ @@ids
169
+ end
166
170
  end
167
171
 
168
172
  class GetAppointmentRescheduledHistoryParam
@@ -176,7 +176,7 @@ module ZOHOCRMSDK
176
176
  end
177
177
  handler_instance = Handler::CommonAPIHandler.new
178
178
  api_path = ''
179
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
179
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
180
180
  api_path = api_path + id.to_s
181
181
  api_path = api_path + '/actions/activate'
182
182
  handler_instance.api_path = api_path
@@ -196,7 +196,7 @@ module ZOHOCRMSDK
196
196
  end
197
197
  handler_instance = Handler::CommonAPIHandler.new
198
198
  api_path = ''
199
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
199
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
200
200
  api_path = api_path + id.to_s
201
201
  api_path = api_path + '/actions/activate'
202
202
  handler_instance.api_path = api_path
@@ -216,7 +216,7 @@ module ZOHOCRMSDK
216
216
  end
217
217
  handler_instance = Handler::CommonAPIHandler.new
218
218
  api_path = ''
219
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
219
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
220
220
  api_path = api_path + id.to_s
221
221
  api_path = api_path + '/actions/clone'
222
222
  handler_instance.api_path = api_path
@@ -240,7 +240,7 @@ module ZOHOCRMSDK
240
240
  end
241
241
  handler_instance = Handler::CommonAPIHandler.new
242
242
  api_path = ''
243
- api_path = api_path + 'crm/v6/'
243
+ api_path = api_path + '/crm/v6/'
244
244
  api_path = api_path + module_1.to_s
245
245
  api_path = api_path + '/actions/run_scoring_rules'
246
246
  handler_instance.api_path = api_path
@@ -266,7 +266,7 @@ module ZOHOCRMSDK
266
266
  end
267
267
  handler_instance = Handler::CommonAPIHandler.new
268
268
  api_path = ''
269
- api_path = api_path + 'crm/v6/'
269
+ api_path = api_path + '/crm/v6/'
270
270
  api_path = api_path + module_1.to_s
271
271
  api_path = api_path + '/actions/run_scoring_rules'
272
272
  handler_instance.api_path = api_path
@@ -6,11 +6,13 @@ module ZOHOCRMSDK
6
6
  require_relative 'action_response'
7
7
  require_relative 'response_handler'
8
8
  require_relative 'action_handler'
9
+ require_relative 'count_handler'
9
10
  class APIException
10
11
  include Util::Model
11
12
  include ActionResponse
12
13
  include ResponseHandler
13
14
  include ActionHandler
15
+ include CountHandler
14
16
 
15
17
  # Creates an instance of APIException
16
18
  def initialize
@@ -0,0 +1,12 @@
1
+ module ZOHOCRMSDK
2
+ module Users
3
+ module CountHandler
4
+
5
+ # Creates an instance of CountHandler
6
+ def initialize
7
+ end
8
+
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,65 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module Users
5
+ require_relative 'count_handler'
6
+ class CountWrapper
7
+ include Util::Model
8
+ include CountHandler
9
+
10
+ # Creates an instance of CountWrapper
11
+ def initialize
12
+ @count = nil
13
+ @key_modified = Hash.new
14
+ end
15
+
16
+ # The method to get the count
17
+ # @return A Integer value
18
+
19
+ def count
20
+ @count
21
+ end
22
+
23
+ # The method to set the value to count
24
+ # @param count [Integer] A Integer
25
+
26
+ def count=(count)
27
+ if count!=nil and !count.is_a? Integer
28
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: count EXPECTED TYPE: Integer', nil, nil)
29
+ end
30
+ @count = count
31
+ @key_modified['count'] = 1
32
+ end
33
+
34
+ # The method to check if the user has modified the given key
35
+ # @param key [String] A String
36
+ # @return A Integer value
37
+
38
+ def is_key_modified(key)
39
+ if key!=nil and !key.is_a? String
40
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
41
+ end
42
+ if @key_modified.key?(key)
43
+ return @key_modified[key]
44
+ end
45
+
46
+ nil
47
+ end
48
+
49
+ # The method to mark the given key as modified
50
+ # @param key [String] A String
51
+ # @param modification [Integer] A Integer
52
+
53
+ def set_key_modified(key, modification)
54
+ if key!=nil and !key.is_a? String
55
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
56
+ end
57
+ if modification!=nil and !modification.is_a? Integer
58
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
59
+ end
60
+ @key_modified[key] = modification
61
+ end
62
+
63
+ end
64
+ end
65
+ end
@@ -1,5 +1,5 @@
1
- require_relative '../tags/tag'
2
1
  require_relative '../record/record'
2
+ require_relative '../tags/tag'
3
3
  require_relative '../util/choice'
4
4
  require_relative '../util/model'
5
5
 
@@ -351,18 +351,18 @@ module ZOHOCRMSDK
351
351
  end
352
352
 
353
353
  # The method to get the phone
354
- # @return A Integer value
354
+ # @return A String value
355
355
 
356
356
  def phone
357
357
  get_key_value('phone')
358
358
  end
359
359
 
360
360
  # The method to set the value to phone
361
- # @param phone [Integer] A Integer
361
+ # @param phone [String] A String
362
362
 
363
363
  def phone=(phone)
364
- if phone!=nil and !phone.is_a? Integer
365
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: phone EXPECTED TYPE: Integer', nil, nil)
364
+ if phone!=nil and !phone.is_a? String
365
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: phone EXPECTED TYPE: String', nil, nil)
366
366
  end
367
367
  add_key_value('phone', phone)
368
368
  end
@@ -589,18 +589,18 @@ module ZOHOCRMSDK
589
589
  end
590
590
 
591
591
  # The method to get the mobile
592
- # @return A Integer value
592
+ # @return A String value
593
593
 
594
594
  def mobile
595
595
  get_key_value('mobile')
596
596
  end
597
597
 
598
598
  # The method to set the value to mobile
599
- # @param mobile [Integer] A Integer
599
+ # @param mobile [String] A String
600
600
 
601
601
  def mobile=(mobile)
602
- if mobile!=nil and !mobile.is_a? Integer
603
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: mobile EXPECTED TYPE: Integer', nil, nil)
602
+ if mobile!=nil and !mobile.is_a? String
603
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: mobile EXPECTED TYPE: String', nil, nil)
604
604
  end
605
605
  add_key_value('mobile', mobile)
606
606
  end
@@ -171,6 +171,25 @@ module ZOHOCRMSDK
171
171
  handler_instance.api_call(ResponseHandler.name, 'application/json')
172
172
  end
173
173
 
174
+ # The method to users count
175
+ # @param param_instance [ParameterMap] An instance of ParameterMap
176
+ # @return An instance of APIResponse
177
+ # @raise SDKException
178
+ def users_count(param_instance=nil)
179
+ if param_instance!=nil and !param_instance.is_a? ParameterMap
180
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
181
+ end
182
+ handler_instance = Handler::CommonAPIHandler.new
183
+ api_path = ''
184
+ api_path = api_path + '/crm/v6/users/actions/count'
185
+ handler_instance.api_path = api_path
186
+ handler_instance.http_method = Constants::REQUEST_METHOD_GET
187
+ handler_instance.category_method = 'READ'
188
+ handler_instance.param = param_instance
189
+ require_relative 'count_handler'
190
+ handler_instance.api_call(CountHandler.name, 'application/json')
191
+ end
192
+
174
193
  class GetUsersParam
175
194
  @@type = Param.new('type', 'com.zoho.crm.api.Users.GetUsersParam')
176
195
  def self.type
@@ -204,6 +223,13 @@ module ZOHOCRMSDK
204
223
  end
205
224
  end
206
225
 
226
+ class UsersCountParam
227
+ @@type = Param.new('type', 'com.zoho.crm.api.Users.UsersCountParam')
228
+ def self.type
229
+ @@type
230
+ end
231
+ end
232
+
207
233
  end
208
234
  end
209
235
  end
@@ -175,7 +175,7 @@ module ZOHOCRMSDK
175
175
 
176
176
  ZOHO_SDK = 'X-ZOHO-SDK'
177
177
 
178
- SDK_VERSION = '1.0.0'
178
+ SDK_VERSION = '3.0.0'
179
179
 
180
180
  SET_CONTENT_TYPE_HEADER = ['/crm/bulk/v6/read', '/crm/bulk/v6/write']
181
181