ZCRMSDK 2.1.0 → 3.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/ZCRMSDK.rb +84 -1
- data/src/com/zoho/api/authenticator/oauth_token.rb +87 -31
- data/src/com/zoho/api/authenticator/store/db_store.rb +48 -28
- data/src/com/zoho/api/authenticator/store/file_store.rb +69 -21
- data/src/com/zoho/api/authenticator/store/token_store.rb +7 -0
- data/src/com/zoho/api/logger/sdk_logger.rb +19 -9
- data/src/com/zoho/crm/api/assignment_rules/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rule.rb +215 -0
- data/src/com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb +61 -0
- data/src/com/zoho/crm/api/assignment_rules/default_user.rb +80 -0
- data/src/com/zoho/crm/api/assignment_rules/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/assignment_rules/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/attachments/attachment.rb +4 -4
- data/src/com/zoho/crm/api/attachments/attachments_operations.rb +6 -6
- data/src/com/zoho/crm/api/blue_print/blue_print_operations.rb +2 -2
- data/src/com/zoho/crm/api/blue_print/escalation.rb +80 -0
- data/src/com/zoho/crm/api/blue_print/field.rb +1107 -0
- data/src/com/zoho/crm/api/blue_print/next_transition.rb +38 -0
- data/src/com/zoho/crm/api/blue_print/process_info.rb +4 -4
- data/src/com/zoho/crm/api/blue_print/transition.rb +19 -1
- data/src/com/zoho/crm/api/blue_print/validation_error.rb +57 -0
- data/src/com/zoho/crm/api/bulk_read/bulk_read_operations.rb +3 -3
- data/src/com/zoho/crm/api/bulk_read/criteria.rb +20 -0
- data/src/com/zoho/crm/api/bulk_read/query.rb +5 -4
- data/src/com/zoho/crm/api/bulk_write/bulk_write_operations.rb +3 -3
- data/src/com/zoho/crm/api/bulk_write/resource.rb +24 -4
- data/src/com/zoho/crm/api/contact_roles/contact_roles_operations.rb +7 -7
- data/src/com/zoho/crm/api/currencies/currencies_operations.rb +7 -7
- data/src/com/zoho/crm/api/custom_views/criteria.rb +5 -4
- data/src/com/zoho/crm/api/custom_views/custom_view.rb +100 -41
- data/src/com/zoho/crm/api/custom_views/custom_views_operations.rb +2 -2
- data/src/com/zoho/crm/api/custom_views/{shared_details.rb → shared_to.rb} +2 -2
- data/src/com/zoho/crm/api/dc/au_datacenter.rb +3 -3
- data/src/com/zoho/crm/api/dc/cn_datacenter.rb +3 -3
- data/src/com/zoho/crm/api/dc/datacenter.rb +3 -2
- data/src/com/zoho/crm/api/dc/eu_datacenter.rb +3 -3
- data/src/com/zoho/crm/api/dc/in_datacenter.rb +3 -3
- data/src/com/zoho/crm/api/dc/us_datacenter.rb +3 -3
- data/src/com/zoho/crm/api/email_templates/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/email_templates/attachment.rb +118 -0
- data/src/com/zoho/crm/api/email_templates/email_template.rb +390 -0
- data/src/com/zoho/crm/api/email_templates/email_templates_operations.rb +61 -0
- data/src/com/zoho/crm/api/email_templates/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/email_templates/response_wrapper.rb +83 -0
- data/src/com/zoho/crm/api/field_attachments/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/field_attachments/body_wrapper.rb +62 -0
- data/src/com/zoho/crm/api/field_attachments/field_attachments_operations.rb +52 -0
- data/src/com/zoho/crm/api/field_attachments/file_body_wrapper.rb +64 -0
- data/src/com/zoho/crm/api/field_attachments/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/fields/external.rb +99 -0
- data/src/com/zoho/crm/api/fields/field.rb +192 -38
- data/src/com/zoho/crm/api/fields/fields_operations.rb +2 -2
- data/src/com/zoho/crm/api/fields/history_tracking.rb +80 -0
- data/src/com/zoho/crm/api/fields/maps.rb +80 -0
- data/src/com/zoho/crm/api/fields/multi_select_lookup.rb +19 -0
- data/src/com/zoho/crm/api/fields/multi_user_lookup.rb +175 -0
- data/src/com/zoho/crm/api/fields/pick_list_value.rb +19 -0
- data/src/com/zoho/crm/api/fields/related_details.rb +19 -0
- data/src/com/zoho/crm/api/files/file_operations.rb +2 -2
- data/src/com/zoho/crm/api/initializer.rb +40 -15
- data/src/com/zoho/crm/api/inventory_templates/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_template.rb +352 -0
- data/src/com/zoho/crm/api/inventory_templates/inventory_templates_operations.rb +82 -0
- data/src/com/zoho/crm/api/inventory_templates/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/inventory_templates/response_wrapper.rb +83 -0
- data/src/com/zoho/crm/api/layouts/layout.rb +38 -0
- data/src/com/zoho/crm/api/layouts/layouts_operations.rb +2 -2
- data/src/com/zoho/crm/api/layouts/section.rb +19 -0
- data/src/com/zoho/crm/api/modules/module.rb +57 -0
- data/src/com/zoho/crm/api/modules/modules_operations.rb +4 -4
- data/src/com/zoho/crm/api/notes/notes_operations.rb +7 -7
- data/src/com/zoho/crm/api/notification/notification_operations.rb +6 -6
- data/src/com/zoho/crm/api/org/org_operations.rb +2 -2
- data/src/com/zoho/crm/api/pipeline/action_handler.rb +10 -0
- data/src/com/zoho/crm/api/pipeline/action_response.rb +10 -0
- data/src/com/zoho/crm/api/pipeline/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/api_exception.rb +129 -0
- data/src/com/zoho/crm/api/pipeline/body_wrapper.rb +61 -0
- data/src/com/zoho/crm/api/pipeline/forecast_category.rb +80 -0
- data/src/com/zoho/crm/api/pipeline/pick_list_value.rb +175 -0
- data/src/com/zoho/crm/api/pipeline/pipeline.rb +213 -0
- data/src/com/zoho/crm/api/pipeline/pipeline_operations.rb +165 -0
- data/src/com/zoho/crm/api/pipeline/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/pipeline/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/stage.rb +80 -0
- data/src/com/zoho/crm/api/pipeline/success_response.rb +123 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_handler.rb +10 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_response.rb +10 -0
- data/src/com/zoho/crm/api/pipeline/transfer_action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/pipeline/transfer_and_delete_wrapper.rb +61 -0
- data/src/com/zoho/crm/api/pipeline/transfer_pipe_line.rb +80 -0
- data/src/com/zoho/crm/api/profiles/default_view.rb +99 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +57 -0
- data/src/com/zoho/crm/api/profiles/profiles_operations.rb +2 -2
- data/src/com/zoho/crm/api/query/query_operations.rb +1 -1
- data/src/com/zoho/crm/api/record/api_exception.rb +2 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +0 -19
- data/src/com/zoho/crm/api/record/count_handler.rb +10 -0
- data/src/com/zoho/crm/api/record/count_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/record/field.rb +1 -0
- data/src/com/zoho/crm/api/record/image_upload.rb +213 -0
- data/src/com/zoho/crm/api/record/inventory_line_items.rb +56 -39
- data/src/com/zoho/crm/api/record/mass_update_body_wrapper.rb +4 -4
- data/src/com/zoho/crm/api/record/mass_update_territory.rb +80 -0
- data/src/com/zoho/crm/api/record/multi_select_lookup.rb +99 -0
- data/src/com/zoho/crm/api/record/multi_select_picklist.rb +80 -0
- data/src/com/zoho/crm/api/record/price_book.rb +31 -0
- data/src/com/zoho/crm/api/record/record_operations.rb +201 -111
- data/src/com/zoho/crm/api/record/tax.rb +80 -0
- data/src/com/zoho/crm/api/record/territory.rb +70 -12
- data/src/com/zoho/crm/api/record/widget.rb +80 -0
- data/src/com/zoho/crm/api/record/wizard.rb +80 -0
- data/src/com/zoho/crm/api/related_lists/related_lists_operations.rb +2 -2
- data/src/com/zoho/crm/api/related_records/related_records_operations.rb +8 -36
- data/src/com/zoho/crm/api/request_proxy.rb +3 -4
- data/src/com/zoho/crm/api/roles/roles_operations.rb +2 -2
- data/src/com/zoho/crm/api/sdk_config.rb +2 -68
- data/src/com/zoho/crm/api/send_mail/action_handler.rb +10 -0
- data/src/com/zoho/crm/api/send_mail/action_response.rb +10 -0
- data/src/com/zoho/crm/api/send_mail/action_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/send_mail/body_wrapper.rb +61 -0
- data/src/com/zoho/crm/api/send_mail/data_subject_request.rb +80 -0
- data/src/com/zoho/crm/api/send_mail/inventory_details.rb +100 -0
- data/src/com/zoho/crm/api/send_mail/mail.rb +423 -0
- data/src/com/zoho/crm/api/send_mail/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/send_mail/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/send_mail/send_mail_operations.rb +61 -0
- data/src/com/zoho/crm/api/send_mail/success_response.rb +121 -0
- data/src/com/zoho/crm/api/send_mail/template.rb +10 -0
- data/src/com/zoho/crm/api/send_mail/user_address.rb +137 -0
- data/src/com/zoho/crm/api/share_records/share_records_operations.rb +4 -4
- data/src/com/zoho/crm/api/tags/tag.rb +19 -0
- data/src/com/zoho/crm/api/tags/tags_operations.rb +11 -11
- data/src/com/zoho/crm/api/taxes/taxes_operations.rb +6 -6
- data/src/com/zoho/crm/api/territories/response_wrapper.rb +20 -0
- data/src/com/zoho/crm/api/territories/territories_operations.rb +2 -2
- data/src/com/zoho/crm/api/territories/territory.rb +61 -23
- data/src/com/zoho/crm/api/users/users_operations.rb +6 -6
- data/src/com/zoho/crm/api/util/api_http_connector.rb +5 -5
- data/src/com/zoho/crm/api/util/common_api_handler.rb +0 -1
- data/src/com/zoho/crm/api/util/constants.rb +140 -13
- data/src/com/zoho/crm/api/util/converter.rb +21 -4
- data/src/com/zoho/crm/api/util/form_data_converter.rb +3 -15
- data/src/com/zoho/crm/api/util/utility.rb +226 -86
- data/src/com/zoho/crm/api/variable_groups/variable_groups_operations.rb +3 -3
- data/src/com/zoho/crm/api/variables/variables_operations.rb +9 -9
- data/src/com/zoho/crm/api/wizards/api_exception.rb +121 -0
- data/src/com/zoho/crm/api/wizards/button.rb +214 -0
- data/src/com/zoho/crm/api/wizards/chart_data.rb +118 -0
- data/src/com/zoho/crm/api/wizards/connection.rb +80 -0
- data/src/com/zoho/crm/api/wizards/container.rb +119 -0
- data/src/com/zoho/crm/api/wizards/node.rb +118 -0
- data/src/com/zoho/crm/api/wizards/response_handler.rb +10 -0
- data/src/com/zoho/crm/api/wizards/response_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/wizards/screen.rb +99 -0
- data/src/com/zoho/crm/api/wizards/segment.rb +176 -0
- data/src/com/zoho/crm/api/wizards/wizard.rb +273 -0
- data/src/com/zoho/crm/api/wizards/wizards_operations.rb +61 -0
- data/src/resources/JSONDetails.json +1 -1
- data/src/version.rb +1 -1
- metadata +88 -5
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative '../record/record'
|
2
|
+
require_relative '../util/model'
|
3
|
+
|
4
|
+
module Record
|
5
|
+
class PriceBook < Record
|
6
|
+
include Util::Model
|
7
|
+
|
8
|
+
# Creates an instance of PriceBook
|
9
|
+
def initialize
|
10
|
+
super
|
11
|
+
end
|
12
|
+
|
13
|
+
# The method to get the name
|
14
|
+
# @return A String value
|
15
|
+
|
16
|
+
def name
|
17
|
+
get_key_value('name')
|
18
|
+
end
|
19
|
+
|
20
|
+
# The method to set the value to name
|
21
|
+
# @param name [String] A String
|
22
|
+
|
23
|
+
def name=(name)
|
24
|
+
if name!=nil and !name.is_a? String
|
25
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: String', nil, nil)
|
26
|
+
end
|
27
|
+
add_key_value('name', name)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -37,7 +37,7 @@ module Record
|
|
37
37
|
end
|
38
38
|
handler_instance = Handler::CommonAPIHandler.new
|
39
39
|
api_path = ''
|
40
|
-
api_path = api_path + '/crm/v2/'
|
40
|
+
api_path = api_path + '/crm/v2.1/'
|
41
41
|
api_path = api_path + module_api_name.to_s
|
42
42
|
api_path = api_path + '/'
|
43
43
|
api_path = api_path + id.to_s
|
@@ -46,7 +46,7 @@ module Record
|
|
46
46
|
handler_instance.category_method = 'READ'
|
47
47
|
handler_instance.param = param_instance
|
48
48
|
handler_instance.header = header_instance
|
49
|
-
Util::Utility.get_fields(module_api_name)
|
49
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
50
50
|
handler_instance.module_api_name = module_api_name
|
51
51
|
require_relative 'response_handler'
|
52
52
|
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
@@ -56,10 +56,9 @@ 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
|
60
59
|
# @return An instance of APIResponse
|
61
60
|
# @raise SDKException
|
62
|
-
def update_record(id, module_api_name, request
|
61
|
+
def update_record(id, module_api_name, request)
|
63
62
|
if !id.is_a? Integer
|
64
63
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
65
64
|
end
|
@@ -69,12 +68,9 @@ module Record
|
|
69
68
|
if request!=nil and !request.is_a? BodyWrapper
|
70
69
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
71
70
|
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
|
75
71
|
handler_instance = Handler::CommonAPIHandler.new
|
76
72
|
api_path = ''
|
77
|
-
api_path = api_path + '/crm/v2/'
|
73
|
+
api_path = api_path + '/crm/v2.1/'
|
78
74
|
api_path = api_path + module_api_name.to_s
|
79
75
|
api_path = api_path + '/'
|
80
76
|
api_path = api_path + id.to_s
|
@@ -83,8 +79,7 @@ module Record
|
|
83
79
|
handler_instance.category_method = 'UPDATE'
|
84
80
|
handler_instance.content_type = 'application/json'
|
85
81
|
handler_instance.request = request
|
86
|
-
|
87
|
-
Util::Utility.get_fields(module_api_name)
|
82
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
88
83
|
handler_instance.module_api_name = module_api_name
|
89
84
|
require_relative 'action_handler'
|
90
85
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
@@ -94,10 +89,9 @@ module Record
|
|
94
89
|
# @param id [Integer] A Integer
|
95
90
|
# @param module_api_name [String] A String
|
96
91
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
97
|
-
# @param header_instance [HeaderMap] An instance of HeaderMap
|
98
92
|
# @return An instance of APIResponse
|
99
93
|
# @raise SDKException
|
100
|
-
def delete_record(id, module_api_name, param_instance=nil
|
94
|
+
def delete_record(id, module_api_name, param_instance=nil)
|
101
95
|
if !id.is_a? Integer
|
102
96
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
103
97
|
end
|
@@ -107,12 +101,9 @@ module Record
|
|
107
101
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
108
102
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
109
103
|
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
|
113
104
|
handler_instance = Handler::CommonAPIHandler.new
|
114
105
|
api_path = ''
|
115
|
-
api_path = api_path + '/crm/v2/'
|
106
|
+
api_path = api_path + '/crm/v2.1/'
|
116
107
|
api_path = api_path + module_api_name.to_s
|
117
108
|
api_path = api_path + '/'
|
118
109
|
api_path = api_path + id.to_s
|
@@ -120,7 +111,6 @@ module Record
|
|
120
111
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
121
112
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
122
113
|
handler_instance.param = param_instance
|
123
|
-
handler_instance.header = header_instance
|
124
114
|
require_relative 'action_handler'
|
125
115
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
126
116
|
end
|
@@ -143,14 +133,14 @@ module Record
|
|
143
133
|
end
|
144
134
|
handler_instance = Handler::CommonAPIHandler.new
|
145
135
|
api_path = ''
|
146
|
-
api_path = api_path + '/crm/v2/'
|
136
|
+
api_path = api_path + '/crm/v2.1/'
|
147
137
|
api_path = api_path + module_api_name.to_s
|
148
138
|
handler_instance.api_path = api_path
|
149
139
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
150
140
|
handler_instance.category_method = 'READ'
|
151
141
|
handler_instance.param = param_instance
|
152
142
|
handler_instance.header = header_instance
|
153
|
-
Util::Utility.get_fields(module_api_name)
|
143
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
154
144
|
handler_instance.module_api_name = module_api_name
|
155
145
|
require_relative 'response_handler'
|
156
146
|
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
@@ -170,7 +160,7 @@ module Record
|
|
170
160
|
end
|
171
161
|
handler_instance = Handler::CommonAPIHandler.new
|
172
162
|
api_path = ''
|
173
|
-
api_path = api_path + '/crm/v2/'
|
163
|
+
api_path = api_path + '/crm/v2.1/'
|
174
164
|
api_path = api_path + module_api_name.to_s
|
175
165
|
handler_instance.api_path = api_path
|
176
166
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
@@ -178,7 +168,7 @@ module Record
|
|
178
168
|
handler_instance.content_type = 'application/json'
|
179
169
|
handler_instance.request = request
|
180
170
|
handler_instance.mandatory_checker = true
|
181
|
-
Util::Utility.get_fields(module_api_name)
|
171
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
182
172
|
handler_instance.module_api_name = module_api_name
|
183
173
|
require_relative 'action_handler'
|
184
174
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
@@ -187,22 +177,18 @@ module Record
|
|
187
177
|
# The method to update records
|
188
178
|
# @param module_api_name [String] A String
|
189
179
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
190
|
-
# @param header_instance [HeaderMap] An instance of HeaderMap
|
191
180
|
# @return An instance of APIResponse
|
192
181
|
# @raise SDKException
|
193
|
-
def update_records(module_api_name, request
|
182
|
+
def update_records(module_api_name, request)
|
194
183
|
if !module_api_name.is_a? String
|
195
184
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
196
185
|
end
|
197
186
|
if request!=nil and !request.is_a? BodyWrapper
|
198
187
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
199
188
|
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
|
203
189
|
handler_instance = Handler::CommonAPIHandler.new
|
204
190
|
api_path = ''
|
205
|
-
api_path = api_path + '/crm/v2/'
|
191
|
+
api_path = api_path + '/crm/v2.1/'
|
206
192
|
api_path = api_path + module_api_name.to_s
|
207
193
|
handler_instance.api_path = api_path
|
208
194
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
@@ -210,8 +196,7 @@ module Record
|
|
210
196
|
handler_instance.content_type = 'application/json'
|
211
197
|
handler_instance.request = request
|
212
198
|
handler_instance.mandatory_checker = true
|
213
|
-
|
214
|
-
Util::Utility.get_fields(module_api_name)
|
199
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
215
200
|
handler_instance.module_api_name = module_api_name
|
216
201
|
require_relative 'action_handler'
|
217
202
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
@@ -220,28 +205,23 @@ module Record
|
|
220
205
|
# The method to delete records
|
221
206
|
# @param module_api_name [String] A String
|
222
207
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
223
|
-
# @param header_instance [HeaderMap] An instance of HeaderMap
|
224
208
|
# @return An instance of APIResponse
|
225
209
|
# @raise SDKException
|
226
|
-
def delete_records(module_api_name, param_instance=nil
|
210
|
+
def delete_records(module_api_name, param_instance=nil)
|
227
211
|
if !module_api_name.is_a? String
|
228
212
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
229
213
|
end
|
230
214
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
231
215
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
232
216
|
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
|
236
217
|
handler_instance = Handler::CommonAPIHandler.new
|
237
218
|
api_path = ''
|
238
|
-
api_path = api_path + '/crm/v2/'
|
219
|
+
api_path = api_path + '/crm/v2.1/'
|
239
220
|
api_path = api_path + module_api_name.to_s
|
240
221
|
handler_instance.api_path = api_path
|
241
222
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
242
223
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
243
224
|
handler_instance.param = param_instance
|
244
|
-
handler_instance.header = header_instance
|
245
225
|
require_relative 'action_handler'
|
246
226
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
247
227
|
end
|
@@ -249,22 +229,18 @@ module Record
|
|
249
229
|
# The method to upsert records
|
250
230
|
# @param module_api_name [String] A String
|
251
231
|
# @param request [BodyWrapper] An instance of BodyWrapper
|
252
|
-
# @param header_instance [HeaderMap] An instance of HeaderMap
|
253
232
|
# @return An instance of APIResponse
|
254
233
|
# @raise SDKException
|
255
|
-
def upsert_records(module_api_name, request
|
234
|
+
def upsert_records(module_api_name, request)
|
256
235
|
if !module_api_name.is_a? String
|
257
236
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
258
237
|
end
|
259
238
|
if request!=nil and !request.is_a? BodyWrapper
|
260
239
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
261
240
|
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
|
265
241
|
handler_instance = Handler::CommonAPIHandler.new
|
266
242
|
api_path = ''
|
267
|
-
api_path = api_path + '/crm/v2/'
|
243
|
+
api_path = api_path + '/crm/v2.1/'
|
268
244
|
api_path = api_path + module_api_name.to_s
|
269
245
|
api_path = api_path + '/upsert'
|
270
246
|
handler_instance.api_path = api_path
|
@@ -272,8 +248,7 @@ module Record
|
|
272
248
|
handler_instance.category_method = 'ACTION'
|
273
249
|
handler_instance.content_type = 'application/json'
|
274
250
|
handler_instance.request = request
|
275
|
-
|
276
|
-
Util::Utility.get_fields(module_api_name)
|
251
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
277
252
|
handler_instance.module_api_name = module_api_name
|
278
253
|
require_relative 'action_handler'
|
279
254
|
handler_instance.api_call(ActionHandler.name, 'application/json')
|
@@ -297,7 +272,7 @@ module Record
|
|
297
272
|
end
|
298
273
|
handler_instance = Handler::CommonAPIHandler.new
|
299
274
|
api_path = ''
|
300
|
-
api_path = api_path + '/crm/v2/'
|
275
|
+
api_path = api_path + '/crm/v2.1/'
|
301
276
|
api_path = api_path + module_api_name.to_s
|
302
277
|
api_path = api_path + '/deleted'
|
303
278
|
handler_instance.api_path = api_path
|
@@ -312,30 +287,25 @@ module Record
|
|
312
287
|
# The method to search records
|
313
288
|
# @param module_api_name [String] A String
|
314
289
|
# @param param_instance [ParameterMap] An instance of ParameterMap
|
315
|
-
# @param header_instance [HeaderMap] An instance of HeaderMap
|
316
290
|
# @return An instance of APIResponse
|
317
291
|
# @raise SDKException
|
318
|
-
def search_records(module_api_name, param_instance=nil
|
292
|
+
def search_records(module_api_name, param_instance=nil)
|
319
293
|
if !module_api_name.is_a? String
|
320
294
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
321
295
|
end
|
322
296
|
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
323
297
|
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
324
298
|
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
|
328
299
|
handler_instance = Handler::CommonAPIHandler.new
|
329
300
|
api_path = ''
|
330
|
-
api_path = api_path + '/crm/v2/'
|
301
|
+
api_path = api_path + '/crm/v2.1/'
|
331
302
|
api_path = api_path + module_api_name.to_s
|
332
303
|
api_path = api_path + '/search'
|
333
304
|
handler_instance.api_path = api_path
|
334
305
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
335
306
|
handler_instance.category_method = 'READ'
|
336
307
|
handler_instance.param = param_instance
|
337
|
-
|
338
|
-
Util::Utility.get_fields(module_api_name)
|
308
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
339
309
|
handler_instance.module_api_name = module_api_name
|
340
310
|
require_relative 'response_handler'
|
341
311
|
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
@@ -355,7 +325,7 @@ module Record
|
|
355
325
|
end
|
356
326
|
handler_instance = Handler::CommonAPIHandler.new
|
357
327
|
api_path = ''
|
358
|
-
api_path = api_path + '/crm/v2/Leads/'
|
328
|
+
api_path = api_path + '/crm/v2.1/Leads/'
|
359
329
|
api_path = api_path + id.to_s
|
360
330
|
api_path = api_path + '/actions/convert'
|
361
331
|
handler_instance.api_path = api_path
|
@@ -364,7 +334,7 @@ module Record
|
|
364
334
|
handler_instance.content_type = 'application/json'
|
365
335
|
handler_instance.request = request
|
366
336
|
handler_instance.mandatory_checker = true
|
367
|
-
Util::Utility.get_fields("Deals")
|
337
|
+
Util::Utility.get_fields("Deals", handler_instance)
|
368
338
|
require_relative 'convert_action_handler'
|
369
339
|
handler_instance.api_call(ConvertActionHandler.name, 'application/json')
|
370
340
|
end
|
@@ -383,7 +353,7 @@ module Record
|
|
383
353
|
end
|
384
354
|
handler_instance = Handler::CommonAPIHandler.new
|
385
355
|
api_path = ''
|
386
|
-
api_path = api_path + '/crm/v2/'
|
356
|
+
api_path = api_path + '/crm/v2.1/'
|
387
357
|
api_path = api_path + module_api_name.to_s
|
388
358
|
api_path = api_path + '/'
|
389
359
|
api_path = api_path + id.to_s
|
@@ -413,7 +383,7 @@ module Record
|
|
413
383
|
end
|
414
384
|
handler_instance = Handler::CommonAPIHandler.new
|
415
385
|
api_path = ''
|
416
|
-
api_path = api_path + '/crm/v2/'
|
386
|
+
api_path = api_path + '/crm/v2.1/'
|
417
387
|
api_path = api_path + module_api_name.to_s
|
418
388
|
api_path = api_path + '/'
|
419
389
|
api_path = api_path + id.to_s
|
@@ -443,7 +413,7 @@ module Record
|
|
443
413
|
end
|
444
414
|
handler_instance = Handler::CommonAPIHandler.new
|
445
415
|
api_path = ''
|
446
|
-
api_path = api_path + '/crm/v2/'
|
416
|
+
api_path = api_path + '/crm/v2.1/'
|
447
417
|
api_path = api_path + module_api_name.to_s
|
448
418
|
api_path = api_path + '/'
|
449
419
|
api_path = api_path + id.to_s
|
@@ -469,7 +439,7 @@ module Record
|
|
469
439
|
end
|
470
440
|
handler_instance = Handler::CommonAPIHandler.new
|
471
441
|
api_path = ''
|
472
|
-
api_path = api_path + '/crm/v2/'
|
442
|
+
api_path = api_path + '/crm/v2.1/'
|
473
443
|
api_path = api_path + module_api_name.to_s
|
474
444
|
api_path = api_path + '/actions/mass_update'
|
475
445
|
handler_instance.api_path = api_path
|
@@ -478,7 +448,7 @@ module Record
|
|
478
448
|
handler_instance.content_type = 'application/json'
|
479
449
|
handler_instance.request = request
|
480
450
|
handler_instance.mandatory_checker = true
|
481
|
-
Util::Utility.get_fields(module_api_name)
|
451
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
482
452
|
handler_instance.module_api_name = module_api_name
|
483
453
|
require_relative 'mass_update_action_handler'
|
484
454
|
handler_instance.api_call(MassUpdateActionHandler.name, 'application/json')
|
@@ -498,7 +468,7 @@ module Record
|
|
498
468
|
end
|
499
469
|
handler_instance = Handler::CommonAPIHandler.new
|
500
470
|
api_path = ''
|
501
|
-
api_path = api_path + '/crm/v2/'
|
471
|
+
api_path = api_path + '/crm/v2.1/'
|
502
472
|
api_path = api_path + module_api_name.to_s
|
503
473
|
api_path = api_path + '/actions/mass_update'
|
504
474
|
handler_instance.api_path = api_path
|
@@ -509,6 +479,157 @@ module Record
|
|
509
479
|
handler_instance.api_call(MassUpdateResponseHandler.name, 'application/json')
|
510
480
|
end
|
511
481
|
|
482
|
+
# The method to assign territories to multiple records
|
483
|
+
# @param module_api_name [String] A String
|
484
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
485
|
+
# @return An instance of APIResponse
|
486
|
+
# @raise SDKException
|
487
|
+
def assign_territories_to_multiple_records(module_api_name, request)
|
488
|
+
if !module_api_name.is_a? String
|
489
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
490
|
+
end
|
491
|
+
if request!=nil and !request.is_a? BodyWrapper
|
492
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
493
|
+
end
|
494
|
+
handler_instance = Handler::CommonAPIHandler.new
|
495
|
+
api_path = ''
|
496
|
+
api_path = api_path + '/crm/v2.1/'
|
497
|
+
api_path = api_path + module_api_name.to_s
|
498
|
+
api_path = api_path + '/actions/assign_territories'
|
499
|
+
handler_instance.api_path = api_path
|
500
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
501
|
+
handler_instance.category_method = 'UPDATE'
|
502
|
+
handler_instance.content_type = 'application/json'
|
503
|
+
handler_instance.request = request
|
504
|
+
handler_instance.mandatory_checker = true
|
505
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
506
|
+
handler_instance.module_api_name = module_api_name
|
507
|
+
require_relative 'action_handler'
|
508
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
509
|
+
end
|
510
|
+
|
511
|
+
# The method to assign territory to record
|
512
|
+
# @param module_api_name [String] A String
|
513
|
+
# @param id [Integer] A Integer
|
514
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
515
|
+
# @return An instance of APIResponse
|
516
|
+
# @raise SDKException
|
517
|
+
def assign_territory_to_record(module_api_name, id, request)
|
518
|
+
if !module_api_name.is_a? String
|
519
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
520
|
+
end
|
521
|
+
if !id.is_a? Integer
|
522
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
523
|
+
end
|
524
|
+
if request!=nil and !request.is_a? BodyWrapper
|
525
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
526
|
+
end
|
527
|
+
handler_instance = Handler::CommonAPIHandler.new
|
528
|
+
api_path = ''
|
529
|
+
api_path = api_path + '/crm/v2.1/'
|
530
|
+
api_path = api_path + module_api_name.to_s
|
531
|
+
api_path = api_path + '/'
|
532
|
+
api_path = api_path + id.to_s
|
533
|
+
api_path = api_path + '/actions/assign_territories'
|
534
|
+
handler_instance.api_path = api_path
|
535
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
536
|
+
handler_instance.category_method = 'UPDATE'
|
537
|
+
handler_instance.content_type = 'application/json'
|
538
|
+
handler_instance.request = request
|
539
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
540
|
+
handler_instance.module_api_name = module_api_name
|
541
|
+
require_relative 'action_handler'
|
542
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
543
|
+
end
|
544
|
+
|
545
|
+
# The method to remove territories from multiple records
|
546
|
+
# @param module_api_name [String] A String
|
547
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
548
|
+
# @return An instance of APIResponse
|
549
|
+
# @raise SDKException
|
550
|
+
def remove_territories_from_multiple_records(module_api_name, request)
|
551
|
+
if !module_api_name.is_a? String
|
552
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
553
|
+
end
|
554
|
+
if request!=nil and !request.is_a? BodyWrapper
|
555
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
556
|
+
end
|
557
|
+
handler_instance = Handler::CommonAPIHandler.new
|
558
|
+
api_path = ''
|
559
|
+
api_path = api_path + '/crm/v2.1/'
|
560
|
+
api_path = api_path + module_api_name.to_s
|
561
|
+
api_path = api_path + '/actions/remove_territories'
|
562
|
+
handler_instance.api_path = api_path
|
563
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
564
|
+
handler_instance.category_method = 'UPDATE'
|
565
|
+
handler_instance.content_type = 'application/json'
|
566
|
+
handler_instance.request = request
|
567
|
+
handler_instance.mandatory_checker = true
|
568
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
569
|
+
handler_instance.module_api_name = module_api_name
|
570
|
+
require_relative 'action_handler'
|
571
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
572
|
+
end
|
573
|
+
|
574
|
+
# The method to remove territories from record
|
575
|
+
# @param module_api_name [String] A String
|
576
|
+
# @param id [Integer] A Integer
|
577
|
+
# @param request [BodyWrapper] An instance of BodyWrapper
|
578
|
+
# @return An instance of APIResponse
|
579
|
+
# @raise SDKException
|
580
|
+
def remove_territories_from_record(module_api_name, id, request)
|
581
|
+
if !module_api_name.is_a? String
|
582
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
583
|
+
end
|
584
|
+
if !id.is_a? Integer
|
585
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
|
586
|
+
end
|
587
|
+
if request!=nil and !request.is_a? BodyWrapper
|
588
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
|
589
|
+
end
|
590
|
+
handler_instance = Handler::CommonAPIHandler.new
|
591
|
+
api_path = ''
|
592
|
+
api_path = api_path + '/crm/v2.1/'
|
593
|
+
api_path = api_path + module_api_name.to_s
|
594
|
+
api_path = api_path + '/'
|
595
|
+
api_path = api_path + id.to_s
|
596
|
+
api_path = api_path + '/actions/remove_territories'
|
597
|
+
handler_instance.api_path = api_path
|
598
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
599
|
+
handler_instance.category_method = 'UPDATE'
|
600
|
+
handler_instance.content_type = 'application/json'
|
601
|
+
handler_instance.request = request
|
602
|
+
Util::Utility.get_fields(module_api_name, handler_instance)
|
603
|
+
handler_instance.module_api_name = module_api_name
|
604
|
+
require_relative 'action_handler'
|
605
|
+
handler_instance.api_call(ActionHandler.name, 'application/json')
|
606
|
+
end
|
607
|
+
|
608
|
+
# The method to record count
|
609
|
+
# @param module_api_name [String] A String
|
610
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
611
|
+
# @return An instance of APIResponse
|
612
|
+
# @raise SDKException
|
613
|
+
def record_count(module_api_name, param_instance=nil)
|
614
|
+
if !module_api_name.is_a? String
|
615
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_api_name EXPECTED TYPE: String', nil, nil)
|
616
|
+
end
|
617
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
618
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
619
|
+
end
|
620
|
+
handler_instance = Handler::CommonAPIHandler.new
|
621
|
+
api_path = ''
|
622
|
+
api_path = api_path + '/crm/v2.1/'
|
623
|
+
api_path = api_path + module_api_name.to_s
|
624
|
+
api_path = api_path + '/actions/count'
|
625
|
+
handler_instance.api_path = api_path
|
626
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
627
|
+
handler_instance.category_method = 'READ'
|
628
|
+
handler_instance.param = param_instance
|
629
|
+
require_relative 'count_handler'
|
630
|
+
handler_instance.api_call(CountHandler.name, 'application/json')
|
631
|
+
end
|
632
|
+
|
512
633
|
class GetRecordParam
|
513
634
|
@@approved = Param.new('approved', 'com.zoho.crm.api.Record.GetRecordParam')
|
514
635
|
def self.approved
|
@@ -553,17 +674,6 @@ module Record
|
|
553
674
|
def self.If_modified_since
|
554
675
|
@@If_modified_since
|
555
676
|
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
|
567
677
|
end
|
568
678
|
|
569
679
|
class DeleteRecordParam
|
@@ -573,13 +683,6 @@ module Record
|
|
573
683
|
end
|
574
684
|
end
|
575
685
|
|
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
|
-
|
583
686
|
class GetRecordsParam
|
584
687
|
@@approved = Param.new('approved', 'com.zoho.crm.api.Record.GetRecordsParam')
|
585
688
|
def self.approved
|
@@ -644,17 +747,6 @@ module Record
|
|
644
747
|
def self.If_modified_since
|
645
748
|
@@If_modified_since
|
646
749
|
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
|
658
750
|
end
|
659
751
|
|
660
752
|
class DeleteRecordsParam
|
@@ -668,20 +760,6 @@ module Record
|
|
668
760
|
end
|
669
761
|
end
|
670
762
|
|
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
|
-
|
685
763
|
class GetDeletedRecordsParam
|
686
764
|
@@type = Param.new('type', 'com.zoho.crm.api.Record.GetDeletedRecordsParam')
|
687
765
|
def self.type
|
@@ -739,13 +817,6 @@ module Record
|
|
739
817
|
end
|
740
818
|
end
|
741
819
|
|
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
|
-
|
749
820
|
class GetMassUpdateStatusParam
|
750
821
|
@@job_id = Param.new('job_id', 'com.zoho.crm.api.Record.GetMassUpdateStatusParam')
|
751
822
|
def self.job_id
|
@@ -753,5 +824,24 @@ module Record
|
|
753
824
|
end
|
754
825
|
end
|
755
826
|
|
827
|
+
class RecordCountParam
|
828
|
+
@@criteria = Param.new('criteria', 'com.zoho.crm.api.Record.RecordCountParam')
|
829
|
+
def self.criteria
|
830
|
+
@@criteria
|
831
|
+
end
|
832
|
+
@@email = Param.new('email', 'com.zoho.crm.api.Record.RecordCountParam')
|
833
|
+
def self.email
|
834
|
+
@@email
|
835
|
+
end
|
836
|
+
@@phone = Param.new('phone', 'com.zoho.crm.api.Record.RecordCountParam')
|
837
|
+
def self.phone
|
838
|
+
@@phone
|
839
|
+
end
|
840
|
+
@@word = Param.new('word', 'com.zoho.crm.api.Record.RecordCountParam')
|
841
|
+
def self.word
|
842
|
+
@@word
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
756
846
|
end
|
757
847
|
end
|