ZCRMSDK 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/com/zoho/api/logger/sdk_logger.rb +0 -1
- data/src/com/zoho/crm/api/initializer.rb +1 -1
- data/src/com/zoho/crm/api/record/record_operations.rb +87 -7
- data/src/com/zoho/crm/api/related_records/related_records_operations.rb +30 -2
- data/src/com/zoho/crm/api/sdk_config.rb +1 -1
- data/src/com/zoho/crm/api/util/api_http_connector.rb +1 -0
- data/src/com/zoho/crm/api/util/common_api_handler.rb +1 -0
- data/src/com/zoho/crm/api/util/constants.rb +1 -1
- data/src/com/zoho/crm/api/util/form_data_converter.rb +1 -0
- data/src/com/zoho/crm/api/util/utility.rb +21 -5
- data/src/resources/JSONDetails.json +1 -1
- data/src/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4754097d74e87ebd8d343c0667ba59a07c2ad8b91e60f93dfbcac3ac05bd7391
|
4
|
+
data.tar.gz: 9528461fca077395fe305ea54af17b06275ebcfa00cfb052f1414eb27df3cd9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 434c2b3a036e8c48f334cfefb23d45307331cf508d284a56b05ad40d856cd20661c69f126624d2fa040be43dd383ad30c5526b195ecfadddb210878f1fc15d90
|
7
|
+
data.tar.gz: d6ed7370f2a3ce9ff9b3654ee35368daed99212397bafe772a0edeb43c8f2a5abb711fbc060839cb28a2c75a2a23d8fc514ad23e34dce5bdb9cb52c2440b38ce
|
@@ -56,9 +56,10 @@ module Record
|
|
56
56
|
# @param id [Integer] A Integer
|
57
57
|
# @param module_api_name [String] A String
|
58
58
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
59
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
59
60
|
# @return An instance of APIResponse
|
60
61
|
# @raise SDKException
|
61
|
-
def update_record(id, module_api_name, request)
|
62
|
+
def update_record(id, module_api_name, request, header_instance=nil)
|
62
63
|
if !id.is_a? Integer
|
63
64
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
64
65
|
end
|
@@ -68,6 +69,9 @@ module Record
|
|
68
69
|
if request!=nil and !request.is_a? BodyWrapper
|
69
70
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
70
71
|
end
|
72
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
73
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
74
|
+
end
|
71
75
|
handler_instance = Handler::CommonAPIHandler.new
|
72
76
|
api_path = ''
|
73
77
|
api_path = api_path + '/crm/v2/'
|
@@ -79,6 +83,7 @@ module Record
|
|
79
83
|
handler_instance.category_method = 'UPDATE'
|
80
84
|
handler_instance.content_type = 'application/json'
|
81
85
|
handler_instance.request = request
|
86
|
+
handler_instance.header = header_instance
|
82
87
|
Util::Utility.get_fields(module_api_name)
|
83
88
|
handler_instance.module_api_name = module_api_name
|
84
89
|
require_relative 'action_handler'
|
@@ -89,9 +94,10 @@ module Record
|
|
89
94
|
# @param id [Integer] A Integer
|
90
95
|
# @param module_api_name [String] A String
|
91
96
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
97
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
92
98
|
# @return An instance of APIResponse
|
93
99
|
# @raise SDKException
|
94
|
-
def delete_record(id, module_api_name, param_instance=nil)
|
100
|
+
def delete_record(id, module_api_name, param_instance=nil, header_instance=nil)
|
95
101
|
if !id.is_a? Integer
|
96
102
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
97
103
|
end
|
@@ -101,6 +107,9 @@ module Record
|
|
101
107
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
102
108
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
103
109
|
end
|
110
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
111
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
112
|
+
end
|
104
113
|
handler_instance = Handler::CommonAPIHandler.new
|
105
114
|
api_path = ''
|
106
115
|
api_path = api_path + '/crm/v2/'
|
@@ -111,6 +120,7 @@ module Record
|
|
111
120
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
112
121
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
113
122
|
handler_instance.param = param_instance
|
123
|
+
handler_instance.header = header_instance
|
114
124
|
require_relative 'action_handler'
|
115
125
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
116
126
|
end
|
@@ -177,15 +187,19 @@ module Record
|
|
177
187
|
# The method to update records
|
178
188
|
# @param module_api_name [String] A String
|
179
189
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
190
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
180
191
|
# @return An instance of APIResponse
|
181
192
|
# @raise SDKException
|
182
|
-
def update_records(module_api_name, request)
|
193
|
+
def update_records(module_api_name, request, header_instance=nil)
|
183
194
|
if !module_api_name.is_a? String
|
184
195
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
185
196
|
end
|
186
197
|
if request!=nil and !request.is_a? BodyWrapper
|
187
198
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
188
199
|
end
|
200
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
201
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
202
|
+
end
|
189
203
|
handler_instance = Handler::CommonAPIHandler.new
|
190
204
|
api_path = ''
|
191
205
|
api_path = api_path + '/crm/v2/'
|
@@ -196,6 +210,7 @@ module Record
|
|
196
210
|
handler_instance.content_type = 'application/json'
|
197
211
|
handler_instance.request = request
|
198
212
|
handler_instance.mandatory_checker = true
|
213
|
+
handler_instance.header = header_instance
|
199
214
|
Util::Utility.get_fields(module_api_name)
|
200
215
|
handler_instance.module_api_name = module_api_name
|
201
216
|
require_relative 'action_handler'
|
@@ -205,15 +220,19 @@ module Record
|
|
205
220
|
# The method to delete records
|
206
221
|
# @param module_api_name [String] A String
|
207
222
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
223
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
208
224
|
# @return An instance of APIResponse
|
209
225
|
# @raise SDKException
|
210
|
-
def delete_records(module_api_name, param_instance=nil)
|
226
|
+
def delete_records(module_api_name, param_instance=nil, header_instance=nil)
|
211
227
|
if !module_api_name.is_a? String
|
212
228
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
213
229
|
end
|
214
230
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
215
231
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
216
232
|
end
|
233
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
234
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
235
|
+
end
|
217
236
|
handler_instance = Handler::CommonAPIHandler.new
|
218
237
|
api_path = ''
|
219
238
|
api_path = api_path + '/crm/v2/'
|
@@ -222,6 +241,7 @@ module Record
|
|
222
241
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
223
242
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
224
243
|
handler_instance.param = param_instance
|
244
|
+
handler_instance.header = header_instance
|
225
245
|
require_relative 'action_handler'
|
226
246
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
227
247
|
end
|
@@ -229,15 +249,19 @@ module Record
|
|
229
249
|
# The method to upsert records
|
230
250
|
# @param module_api_name [String] A String
|
231
251
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
252
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
232
253
|
# @return An instance of APIResponse
|
233
254
|
# @raise SDKException
|
234
|
-
def upsert_records(module_api_name, request)
|
255
|
+
def upsert_records(module_api_name, request, header_instance=nil)
|
235
256
|
if !module_api_name.is_a? String
|
236
257
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
237
258
|
end
|
238
259
|
if request!=nil and !request.is_a? BodyWrapper
|
239
260
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
240
261
|
end
|
262
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
263
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
264
|
+
end
|
241
265
|
handler_instance = Handler::CommonAPIHandler.new
|
242
266
|
api_path = ''
|
243
267
|
api_path = api_path + '/crm/v2/'
|
@@ -248,6 +272,7 @@ module Record
|
|
248
272
|
handler_instance.category_method = 'ACTION'
|
249
273
|
handler_instance.content_type = 'application/json'
|
250
274
|
handler_instance.request = request
|
275
|
+
handler_instance.header = header_instance
|
251
276
|
Util::Utility.get_fields(module_api_name)
|
252
277
|
handler_instance.module_api_name = module_api_name
|
253
278
|
require_relative 'action_handler'
|
@@ -287,15 +312,19 @@ module Record
|
|
287
312
|
# The method to search records
|
288
313
|
# @param module_api_name [String] A String
|
289
314
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
315
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
290
316
|
# @return An instance of APIResponse
|
291
317
|
# @raise SDKException
|
292
|
-
def search_records(module_api_name, param_instance=nil)
|
318
|
+
def search_records(module_api_name, param_instance=nil, header_instance=nil)
|
293
319
|
if !module_api_name.is_a? String
|
294
320
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
295
321
|
end
|
296
322
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
297
323
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
298
324
|
end
|
325
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
326
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
327
|
+
end
|
299
328
|
handler_instance = Handler::CommonAPIHandler.new
|
300
329
|
api_path = ''
|
301
330
|
api_path = api_path + '/crm/v2/'
|
@@ -305,6 +334,7 @@ module Record
|
|
305
334
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
306
335
|
handler_instance.category_method = 'READ'
|
307
336
|
handler_instance.param = param_instance
|
337
|
+
handler_instance.header = header_instance
|
308
338
|
Util::Utility.get_fields(module_api_name)
|
309
339
|
handler_instance.module_api_name = module_api_name
|
310
340
|
require_relative 'response_handler'
|
@@ -394,7 +424,7 @@ module Record
|
|
394
424
|
handler_instance.content_type = 'multipart/form-data'
|
395
425
|
handler_instance.request = request
|
396
426
|
handler_instance.mandatory_checker = true
|
397
|
-
Util::Utility.
|
427
|
+
Util::Utility.verify_photo_support(module_api_name)
|
398
428
|
require_relative 'file_handler'
|
399
429
|
handler_instance.api_call(FileHandler.name, 'application/json')
|
400
430
|
end
|
@@ -523,6 +553,17 @@ module Record
|
|
523
553
|
def self.If_modified_since
|
524
554
|
@@If_modified_since
|
525
555
|
end
|
556
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.GetRecordHeader')
|
557
|
+
def self.X_external
|
558
|
+
@@X_external
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
562
|
+
class UpdateRecordHeader
|
563
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.UpdateRecordHeader')
|
564
|
+
def self.X_external
|
565
|
+
@@X_external
|
566
|
+
end
|
526
567
|
end
|
527
568
|
|
528
569
|
class DeleteRecordParam
|
@@ -532,6 +573,13 @@ module Record
|
|
532
573
|
end
|
533
574
|
end
|
534
575
|
|
576
|
+
class DeleteRecordHeader
|
577
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.DeleteRecordHeader')
|
578
|
+
def self.X_external
|
579
|
+
@@X_external
|
580
|
+
end
|
581
|
+
end
|
582
|
+
|
535
583
|
class GetRecordsParam
|
536
584
|
@@approved = Param.new('approved', 'com.zoho.crm.api.Record.GetRecordsParam')
|
537
585
|
def self.approved
|
@@ -596,6 +644,17 @@ module Record
|
|
596
644
|
def self.If_modified_since
|
597
645
|
@@If_modified_since
|
598
646
|
end
|
647
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.GetRecordsHeader')
|
648
|
+
def self.X_external
|
649
|
+
@@X_external
|
650
|
+
end
|
651
|
+
end
|
652
|
+
|
653
|
+
class UpdateRecordsHeader
|
654
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.UpdateRecordsHeader')
|
655
|
+
def self.X_external
|
656
|
+
@@X_external
|
657
|
+
end
|
599
658
|
end
|
600
659
|
|
601
660
|
class DeleteRecordsParam
|
@@ -609,6 +668,20 @@ module Record
|
|
609
668
|
end
|
610
669
|
end
|
611
670
|
|
671
|
+
class DeleteRecordsHeader
|
672
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.DeleteRecordsHeader')
|
673
|
+
def self.X_external
|
674
|
+
@@X_external
|
675
|
+
end
|
676
|
+
end
|
677
|
+
|
678
|
+
class UpsertRecordsHeader
|
679
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.UpsertRecordsHeader')
|
680
|
+
def self.X_external
|
681
|
+
@@X_external
|
682
|
+
end
|
683
|
+
end
|
684
|
+
|
612
685
|
class GetDeletedRecordsParam
|
613
686
|
@@type = Param.new('type', 'com.zoho.crm.api.Record.GetDeletedRecordsParam')
|
614
687
|
def self.type
|
@@ -666,6 +739,13 @@ module Record
|
|
666
739
|
end
|
667
740
|
end
|
668
741
|
|
742
|
+
class SearchRecordsHeader
|
743
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.Record.SearchRecordsHeader')
|
744
|
+
def self.X_external
|
745
|
+
@@X_external
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
669
749
|
class GetMassUpdateStatusParam
|
670
750
|
@@job_id = Param.new('job_id', 'com.zoho.crm.api.Record.GetMassUpdateStatusParam')
|
671
751
|
def self.job_id
|
@@ -145,15 +145,19 @@ module RelatedRecords
|
|
145
145
|
# The method to update related record
|
146
146
|
# @param related_record_id [Integer] A Integer
|
147
147
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
148
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
148
149
|
# @return An instance of APIResponse
|
149
150
|
# @raise SDKException
|
150
|
-
def update_related_record(related_record_id, request)
|
151
|
+
def update_related_record(related_record_id, request, header_instance=nil)
|
151
152
|
if !related_record_id.is_a? Integer
|
152
153
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: related_record_id EXPECTED TYPE: Integer', nil, nil)
|
153
154
|
end
|
154
155
|
if request!=nil and !request.is_a? BodyWrapper
|
155
156
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
156
157
|
end
|
158
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
159
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
160
|
+
end
|
157
161
|
handler_instance = Handler::CommonAPIHandler.new
|
158
162
|
api_path = ''
|
159
163
|
api_path = api_path + '/crm/v2/'
|
@@ -169,6 +173,7 @@ module RelatedRecords
|
|
169
173
|
handler_instance.category_method = 'UPDATE'
|
170
174
|
handler_instance.content_type = 'application/json'
|
171
175
|
handler_instance.request = request
|
176
|
+
handler_instance.header = header_instance
|
172
177
|
Util::Utility.get_related_lists(@related_list_api_name, @module_api_name, handler_instance)
|
173
178
|
require_relative 'action_handler'
|
174
179
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
@@ -176,12 +181,16 @@ module RelatedRecords
|
|
176
181
|
|
177
182
|
# The method to delink record
|
178
183
|
# @param related_record_id [Integer] A Integer
|
184
|
+
# @param header_instance [HeaderMap] An instance of HeaderMap
|
179
185
|
# @return An instance of APIResponse
|
180
186
|
# @raise SDKException
|
181
|
-
def delink_record(related_record_id)
|
187
|
+
def delink_record(related_record_id, header_instance=nil)
|
182
188
|
if !related_record_id.is_a? Integer
|
183
189
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: related_record_id EXPECTED TYPE: Integer', nil, nil)
|
184
190
|
end
|
191
|
+
if header_instance!=nil and !header_instance.is_a? HeaderMap
|
192
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: header_instance EXPECTED TYPE: HeaderMap', nil, nil)
|
193
|
+
end
|
185
194
|
handler_instance = Handler::CommonAPIHandler.new
|
186
195
|
api_path = ''
|
187
196
|
api_path = api_path + '/crm/v2/'
|
@@ -195,6 +204,7 @@ module RelatedRecords
|
|
195
204
|
handler_instance.api_path = api_path
|
196
205
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
197
206
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
207
|
+
handler_instance.header = header_instance
|
198
208
|
require_relative 'action_handler'
|
199
209
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
200
210
|
end
|
@@ -215,6 +225,10 @@ module RelatedRecords
|
|
215
225
|
def self.If_modified_since
|
216
226
|
@@If_modified_since
|
217
227
|
end
|
228
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.RelatedRecords.GetRelatedRecordsHeader')
|
229
|
+
def self.X_external
|
230
|
+
@@X_external
|
231
|
+
end
|
218
232
|
end
|
219
233
|
|
220
234
|
class DelinkRecordsParam
|
@@ -231,5 +245,19 @@ module RelatedRecords
|
|
231
245
|
end
|
232
246
|
end
|
233
247
|
|
248
|
+
class UpdateRelatedRecordHeader
|
249
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.RelatedRecords.UpdateRelatedRecordHeader')
|
250
|
+
def self.X_external
|
251
|
+
@@X_external
|
252
|
+
end
|
253
|
+
end
|
254
|
+
|
255
|
+
class DelinkRecordHeader
|
256
|
+
@@X_external = Header.new('X-EXTERNAL', 'com.zoho.crm.api.RelatedRecords.DelinkRecordHeader')
|
257
|
+
def self.X_external
|
258
|
+
@@X_external
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
234
262
|
end
|
235
263
|
end
|
@@ -29,10 +29,22 @@ module Util
|
|
29
29
|
@@get_modified_modules = false
|
30
30
|
|
31
31
|
@@force_refresh = false
|
32
|
+
|
33
|
+
@@module_api_name = nil
|
32
34
|
def self.api_supported_module
|
33
35
|
@@api_supported_module
|
34
36
|
end
|
37
|
+
def self.verify_photo_support(module_api_name)
|
38
|
+
end
|
35
39
|
def self.get_fields(module_api_name)
|
40
|
+
@@sync_lock.synchronize do
|
41
|
+
begin
|
42
|
+
@@module_api_name = module_api_name
|
43
|
+
get_fields_info(@@module_api_name)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
def self.get_fields_info(module_api_name)
|
36
48
|
require_relative '../initializer'
|
37
49
|
initializer = Initializer.get_initializer
|
38
50
|
record_field_details_path = nil
|
@@ -189,7 +201,7 @@ module Util
|
|
189
201
|
f.write(record_field_details_json.to_json)
|
190
202
|
end
|
191
203
|
modified_modules.each_key do |module_api_name|
|
192
|
-
|
204
|
+
get_fields_info(module_api_name)
|
193
205
|
end
|
194
206
|
end
|
195
207
|
|
@@ -306,7 +318,11 @@ module Util
|
|
306
318
|
error_response[Constants::STATUS] = data_object.status.value
|
307
319
|
error_response[Constants::MESSAGE] = data_object.message.value
|
308
320
|
error_response[Constants::DETAILS] = data_object.details
|
309
|
-
|
321
|
+
exception = SDKException.new(Constants::API_EXCEPTION, nil, error_response)
|
322
|
+
if @@module_api_name.downcase == module_api_name.downcase
|
323
|
+
raise exception
|
324
|
+
end
|
325
|
+
SDKLog::SDKLogger.severe(Constants::API_EXCEPTION,exception)
|
310
326
|
end
|
311
327
|
else
|
312
328
|
error_response = {}
|
@@ -557,7 +573,7 @@ module Util
|
|
557
573
|
end
|
558
574
|
field_detail[Constants::LOOKUP] = true
|
559
575
|
end
|
560
|
-
|
576
|
+
get_fields_info(module_name) if !module_name.nil? && !module_name.empty?
|
561
577
|
field_detail[Constants::NAME] = key_name
|
562
578
|
end
|
563
579
|
|
@@ -609,7 +625,7 @@ module Util
|
|
609
625
|
|
610
626
|
if related_list_jo[Constants::MODULE] != Constants::NULL_VALUE
|
611
627
|
common_api_handler.module_api_name = related_list_jo[Constants::MODULE]
|
612
|
-
|
628
|
+
get_fields_info(related_list_jo[Constants::MODULE])
|
613
629
|
end
|
614
630
|
return true
|
615
631
|
end
|
@@ -660,7 +676,7 @@ module Util
|
|
660
676
|
|
661
677
|
def self.refresh_modules
|
662
678
|
@@force_refresh = true
|
663
|
-
|
679
|
+
get_fields_info(nil)
|
664
680
|
@@force_refresh = false
|
665
681
|
end
|
666
682
|
|