ZOHOCRMSDK2_1 1.0.0 → 2.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.
- checksums.yaml +4 -4
- data/src/ZOHOCRMSDK2_1.rb +11 -1
- data/src/com/zoho/crm/api/cancel_meetings/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_response.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/cancel_meetings/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/cancel_meetings/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/cancel_meetings_operations.rb +43 -0
- data/src/com/zoho/crm/api/cancel_meetings/notify.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/success_response.rb +123 -0
- data/src/com/zoho/crm/api/dc/jp_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/initializer.rb +17 -0
- data/src/com/zoho/crm/api/record/apply_feature_execution.rb +63 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +19 -0
- data/src/com/zoho/crm/api/util/constants.rb +1 -1
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +8 -1
- data/src/com/zoho/crm/api/util/utility.rb +14 -9
- data/src/resources/JSONDetails.json +1 -1
- data/src/version.rb +1 -1
- metadata +18 -7
@@ -9,6 +9,7 @@ module ZOHOCRMSDK
|
|
9
9
|
def initialize
|
10
10
|
@data = nil
|
11
11
|
@trigger = nil
|
12
|
+
@apply_feature_execution = nil
|
12
13
|
@process = nil
|
13
14
|
@duplicate_check_fields = nil
|
14
15
|
@wf_trigger = nil
|
@@ -52,6 +53,24 @@ module ZOHOCRMSDK
|
|
52
53
|
@key_modified['trigger'] = 1
|
53
54
|
end
|
54
55
|
|
56
|
+
# The method to get the apply_feature_execution
|
57
|
+
# @return An instance of Array
|
58
|
+
|
59
|
+
def apply_feature_execution
|
60
|
+
@apply_feature_execution
|
61
|
+
end
|
62
|
+
|
63
|
+
# The method to set the value to apply_feature_execution
|
64
|
+
# @param apply_feature_execution [Array] An instance of Array
|
65
|
+
|
66
|
+
def apply_feature_execution=(apply_feature_execution)
|
67
|
+
if apply_feature_execution!=nil and !apply_feature_execution.is_a? Array
|
68
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: apply_feature_execution EXPECTED TYPE: Array', nil, nil)
|
69
|
+
end
|
70
|
+
@apply_feature_execution = apply_feature_execution
|
71
|
+
@key_modified['apply_feature_execution'] = 1
|
72
|
+
end
|
73
|
+
|
55
74
|
# The method to get the process
|
56
75
|
# @return An instance of Array
|
57
76
|
|
@@ -34,6 +34,10 @@ module ZOHOCRMSDK
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def self.delete_fields(module_api_name)
|
37
|
+
|
38
|
+
if module_api_name.nil?
|
39
|
+
raise Exception.new("module_api_name should not be nil")
|
40
|
+
end
|
37
41
|
record_field_details_path = Converter.new(nil).get_record_json_file_path
|
38
42
|
if File.exist? record_field_details_path
|
39
43
|
record_field_details_json = JSON.parse(File.read(record_field_details_path))
|
@@ -51,6 +55,9 @@ module ZOHOCRMSDK
|
|
51
55
|
|
52
56
|
def self.refresh_fields(module_api_name)
|
53
57
|
@@sync_lock.synchronize do
|
58
|
+
if module_api_name.nil?
|
59
|
+
raise Exception.new("module_api_name should not be nil")
|
60
|
+
end
|
54
61
|
delete_fields(module_api_name)
|
55
62
|
Utility.get_fields_info(module_api_name)
|
56
63
|
end
|
@@ -59,7 +66,7 @@ module ZOHOCRMSDK
|
|
59
66
|
raise e
|
60
67
|
rescue StandardError => e
|
61
68
|
ex = SDKException.new(nil, nil, nil, e)
|
62
|
-
SDKLog::SDKLogger.severe(Constants::REFRESH_SINGLE_MODULE_FIELDS_ERROR
|
69
|
+
SDKLog::SDKLogger.severe(Constants::REFRESH_SINGLE_MODULE_FIELDS_ERROR , ex)
|
63
70
|
raise ex
|
64
71
|
end
|
65
72
|
|
@@ -122,22 +122,27 @@ module ZOHOCRMSDK
|
|
122
122
|
|
123
123
|
Dir.mkdir resoures_folder_path unless File.exist? resoures_folder_path
|
124
124
|
record_field_details_path = get_record_json_file_path()
|
125
|
-
|
126
|
-
|
125
|
+
unless module_api_name.nil?
|
126
|
+
module_api_name = verify_module_api_name(module_api_name)
|
127
|
+
set_handler_api_path(module_api_name, handler_instance)
|
127
128
|
|
128
|
-
|
129
|
-
|
129
|
+
return if !handler_instance.nil? && handler_instance.module_api_name.nil? && (!Constants::SKIP_MODULES.include? module_api_name.downcase)
|
130
|
+
end
|
130
131
|
if File.exist? record_field_details_path
|
131
132
|
file_exists_flow(module_api_name,record_field_details_path,last_modified_time)
|
132
133
|
elsif initializer.sdk_config.auto_refresh_fields
|
133
134
|
@@new_file = true
|
134
135
|
fill_data_type()
|
135
136
|
@@api_supported_module = @@api_supported_module.length == 0 ? get_modules(nil) : @@api_supported_module
|
136
|
-
|
137
|
-
record_field_details_json
|
138
|
-
|
139
|
-
|
140
|
-
|
137
|
+
|
138
|
+
record_field_details_json={}
|
139
|
+
|
140
|
+
if File.exists? record_field_details_path
|
141
|
+
record_field_details_json= JSON.parse(File.read(record_field_details_path))
|
142
|
+
end
|
143
|
+
|
144
|
+
record_field_details_json[Constants::FIELDS_LAST_MODIFIED_TIME] = get_current_time_in_millis
|
145
|
+
|
141
146
|
if @@api_supported_module.length > 0
|
142
147
|
@@api_supported_module.each_key do |module_name|
|
143
148
|
unless record_field_details_json.key? module_name.downcase
|