ZCRMSDK 2.0.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 +18 -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 +41 -16
- 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 +196 -26
- 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 +6 -6
- 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 -4
- 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 -14
- data/src/com/zoho/crm/api/util/utility.rb +226 -70
- 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
@@ -7,7 +7,9 @@ module BluePrint
|
|
7
7
|
# Creates an instance of NextTransition
|
8
8
|
def initialize
|
9
9
|
@id = nil
|
10
|
+
@criteria_matched = nil
|
10
11
|
@name = nil
|
12
|
+
@type = nil
|
11
13
|
@key_modified = Hash.new
|
12
14
|
end
|
13
15
|
|
@@ -29,6 +31,24 @@ module BluePrint
|
|
29
31
|
@key_modified['id'] = 1
|
30
32
|
end
|
31
33
|
|
34
|
+
# The method to get the criteria_matched
|
35
|
+
# @return A Boolean value
|
36
|
+
|
37
|
+
def criteria_matched
|
38
|
+
@criteria_matched
|
39
|
+
end
|
40
|
+
|
41
|
+
# The method to set the value to criteria_matched
|
42
|
+
# @param criteria_matched [Boolean] A Boolean
|
43
|
+
|
44
|
+
def criteria_matched=(criteria_matched)
|
45
|
+
if criteria_matched!=nil and ! [true, false].include?criteria_matched
|
46
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: criteria_matched EXPECTED TYPE: Boolean', nil, nil)
|
47
|
+
end
|
48
|
+
@criteria_matched = criteria_matched
|
49
|
+
@key_modified['criteria_matched'] = 1
|
50
|
+
end
|
51
|
+
|
32
52
|
# The method to get the name
|
33
53
|
# @return A String value
|
34
54
|
|
@@ -47,6 +67,24 @@ module BluePrint
|
|
47
67
|
@key_modified['name'] = 1
|
48
68
|
end
|
49
69
|
|
70
|
+
# The method to get the type
|
71
|
+
# @return A String value
|
72
|
+
|
73
|
+
def type
|
74
|
+
@type
|
75
|
+
end
|
76
|
+
|
77
|
+
# The method to set the value to type
|
78
|
+
# @param type [String] A String
|
79
|
+
|
80
|
+
def type=(type)
|
81
|
+
if type!=nil and !type.is_a? String
|
82
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
83
|
+
end
|
84
|
+
@type = type
|
85
|
+
@key_modified['type'] = 1
|
86
|
+
end
|
87
|
+
|
50
88
|
# The method to check if the user has modified the given key
|
51
89
|
# @param key [String] A String
|
52
90
|
# @return A Integer value
|
@@ -201,18 +201,18 @@ module BluePrint
|
|
201
201
|
end
|
202
202
|
|
203
203
|
# The method to get the escalation
|
204
|
-
# @return
|
204
|
+
# @return An instance of Escalation
|
205
205
|
|
206
206
|
def escalation
|
207
207
|
@escalation
|
208
208
|
end
|
209
209
|
|
210
210
|
# The method to set the value to escalation
|
211
|
-
# @param escalation [
|
211
|
+
# @param escalation [Escalation] An instance of Escalation
|
212
212
|
|
213
213
|
def escalation=(escalation)
|
214
|
-
if escalation!=nil and !escalation.is_a?
|
215
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: escalation EXPECTED TYPE:
|
214
|
+
if escalation!=nil and !escalation.is_a? Escalation
|
215
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: escalation EXPECTED TYPE: Escalation', nil, nil)
|
216
216
|
end
|
217
217
|
@escalation = escalation
|
218
218
|
@key_modified['escalation'] = 1
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require_relative '../fields/field'
|
2
1
|
require_relative '../record/record'
|
3
2
|
require_relative '../util/model'
|
4
3
|
|
@@ -9,6 +8,7 @@ module BluePrint
|
|
9
8
|
# Creates an instance of Transition
|
10
9
|
def initialize
|
11
10
|
@next_transitions = nil
|
11
|
+
@parent_transition = nil
|
12
12
|
@percent_partial_save = nil
|
13
13
|
@data = nil
|
14
14
|
@next_field_value = nil
|
@@ -40,6 +40,24 @@ module BluePrint
|
|
40
40
|
@key_modified['next_transitions'] = 1
|
41
41
|
end
|
42
42
|
|
43
|
+
# The method to get the parent_transition
|
44
|
+
# @return An instance of Transition
|
45
|
+
|
46
|
+
def parent_transition
|
47
|
+
@parent_transition
|
48
|
+
end
|
49
|
+
|
50
|
+
# The method to set the value to parent_transition
|
51
|
+
# @param parent_transition [Transition] An instance of Transition
|
52
|
+
|
53
|
+
def parent_transition=(parent_transition)
|
54
|
+
if parent_transition!=nil and !parent_transition.is_a? Transition
|
55
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: parent_transition EXPECTED TYPE: Transition', nil, nil)
|
56
|
+
end
|
57
|
+
@parent_transition = parent_transition
|
58
|
+
@key_modified['parent_transition'] = 1
|
59
|
+
end
|
60
|
+
|
43
61
|
# The method to get the percent_partial_save
|
44
62
|
# @return An instance of Float
|
45
63
|
|
@@ -7,7 +7,10 @@ module BluePrint
|
|
7
7
|
# Creates an instance of ValidationError
|
8
8
|
def initialize
|
9
9
|
@api_name = nil
|
10
|
+
@info_message = nil
|
10
11
|
@message = nil
|
12
|
+
@index = nil
|
13
|
+
@parent_api_name = nil
|
11
14
|
@key_modified = Hash.new
|
12
15
|
end
|
13
16
|
|
@@ -29,6 +32,24 @@ module BluePrint
|
|
29
32
|
@key_modified['api_name'] = 1
|
30
33
|
end
|
31
34
|
|
35
|
+
# The method to get the info_message
|
36
|
+
# @return A String value
|
37
|
+
|
38
|
+
def info_message
|
39
|
+
@info_message
|
40
|
+
end
|
41
|
+
|
42
|
+
# The method to set the value to info_message
|
43
|
+
# @param info_message [String] A String
|
44
|
+
|
45
|
+
def info_message=(info_message)
|
46
|
+
if info_message!=nil and !info_message.is_a? String
|
47
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: info_message EXPECTED TYPE: String', nil, nil)
|
48
|
+
end
|
49
|
+
@info_message = info_message
|
50
|
+
@key_modified['info_message'] = 1
|
51
|
+
end
|
52
|
+
|
32
53
|
# The method to get the message
|
33
54
|
# @return A String value
|
34
55
|
|
@@ -47,6 +68,42 @@ module BluePrint
|
|
47
68
|
@key_modified['message'] = 1
|
48
69
|
end
|
49
70
|
|
71
|
+
# The method to get the index
|
72
|
+
# @return A Integer value
|
73
|
+
|
74
|
+
def index
|
75
|
+
@index
|
76
|
+
end
|
77
|
+
|
78
|
+
# The method to set the value to index
|
79
|
+
# @param index [Integer] A Integer
|
80
|
+
|
81
|
+
def index=(index)
|
82
|
+
if index!=nil and !index.is_a? Integer
|
83
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: index EXPECTED TYPE: Integer', nil, nil)
|
84
|
+
end
|
85
|
+
@index = index
|
86
|
+
@key_modified['index'] = 1
|
87
|
+
end
|
88
|
+
|
89
|
+
# The method to get the parent_api_name
|
90
|
+
# @return A String value
|
91
|
+
|
92
|
+
def parent_api_name
|
93
|
+
@parent_api_name
|
94
|
+
end
|
95
|
+
|
96
|
+
# The method to set the value to parent_api_name
|
97
|
+
# @param parent_api_name [String] A String
|
98
|
+
|
99
|
+
def parent_api_name=(parent_api_name)
|
100
|
+
if parent_api_name!=nil and !parent_api_name.is_a? String
|
101
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: parent_api_name EXPECTED TYPE: String', nil, nil)
|
102
|
+
end
|
103
|
+
@parent_api_name = parent_api_name
|
104
|
+
@key_modified['parent_api_name'] = 1
|
105
|
+
end
|
106
|
+
|
50
107
|
# The method to check if the user has modified the given key
|
51
108
|
# @param key [String] A String
|
52
109
|
# @return A Integer value
|
@@ -20,7 +20,7 @@ module BulkRead
|
|
20
20
|
end
|
21
21
|
handler_instance = Handler::CommonAPIHandler.new
|
22
22
|
api_path = ''
|
23
|
-
api_path = api_path + '/crm/bulk/v2/read/'
|
23
|
+
api_path = api_path + '/crm/bulk/v2.1/read/'
|
24
24
|
api_path = api_path + job_id.to_s
|
25
25
|
handler_instance.api_path = api_path
|
26
26
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
@@ -39,7 +39,7 @@ module BulkRead
|
|
39
39
|
end
|
40
40
|
handler_instance = Handler::CommonAPIHandler.new
|
41
41
|
api_path = ''
|
42
|
-
api_path = api_path + '/crm/bulk/v2/read/'
|
42
|
+
api_path = api_path + '/crm/bulk/v2.1/read/'
|
43
43
|
api_path = api_path + job_id.to_s
|
44
44
|
api_path = api_path + '/result'
|
45
45
|
handler_instance.api_path = api_path
|
@@ -59,7 +59,7 @@ module BulkRead
|
|
59
59
|
end
|
60
60
|
handler_instance = Handler::CommonAPIHandler.new
|
61
61
|
api_path = ''
|
62
|
-
api_path = api_path + '/crm/bulk/v2/read'
|
62
|
+
api_path = api_path + '/crm/bulk/v2.1/read'
|
63
63
|
handler_instance.api_path = api_path
|
64
64
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
65
65
|
handler_instance.category_method = 'CREATE'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require_relative '../fields/field'
|
1
2
|
require_relative '../util/choice'
|
2
3
|
require_relative '../util/model'
|
3
4
|
|
@@ -11,6 +12,7 @@ module BulkRead
|
|
11
12
|
@value = nil
|
12
13
|
@group_operator = nil
|
13
14
|
@group = nil
|
15
|
+
@field = nil
|
14
16
|
@comparator = nil
|
15
17
|
@key_modified = Hash.new
|
16
18
|
end
|
@@ -84,6 +86,24 @@ module BulkRead
|
|
84
86
|
@key_modified['group'] = 1
|
85
87
|
end
|
86
88
|
|
89
|
+
# The method to get the field
|
90
|
+
# @return An instance of Fields::Field
|
91
|
+
|
92
|
+
def field
|
93
|
+
@field
|
94
|
+
end
|
95
|
+
|
96
|
+
# The method to set the value to field
|
97
|
+
# @param field [Fields::Field] An instance of Fields::Field
|
98
|
+
|
99
|
+
def field=(field)
|
100
|
+
if field!=nil and !field.is_a? Fields::Field
|
101
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: field EXPECTED TYPE: Field', nil, nil)
|
102
|
+
end
|
103
|
+
@field = field
|
104
|
+
@key_modified['field'] = 1
|
105
|
+
end
|
106
|
+
|
87
107
|
# The method to get the comparator
|
88
108
|
# @return An instance of Util::Choice
|
89
109
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require_relative '../modules/module'
|
1
2
|
require_relative '../util/model'
|
2
3
|
|
3
4
|
module BulkRead
|
@@ -15,18 +16,18 @@ module BulkRead
|
|
15
16
|
end
|
16
17
|
|
17
18
|
# The method to get the module
|
18
|
-
# @return
|
19
|
+
# @return An instance of Modules::Module
|
19
20
|
|
20
21
|
def module
|
21
22
|
@module_1
|
22
23
|
end
|
23
24
|
|
24
25
|
# The method to set the value to module
|
25
|
-
# @param module_1 [
|
26
|
+
# @param module_1 [Modules::Module] An instance of Modules::Module
|
26
27
|
|
27
28
|
def module=(module_1)
|
28
|
-
if module_1!=nil and !module_1.is_a?
|
29
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE:
|
29
|
+
if module_1!=nil and !module_1.is_a? Modules::Module
|
30
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE: Module', nil, nil)
|
30
31
|
end
|
31
32
|
@module_1 = module_1
|
32
33
|
@key_modified['module'] = 1
|
@@ -26,7 +26,7 @@ module BulkWrite
|
|
26
26
|
end
|
27
27
|
handler_instance = Handler::CommonAPIHandler.new
|
28
28
|
api_path = ''
|
29
|
-
api_path = api_path + 'https://content.zohoapis.com/crm/v2/upload'
|
29
|
+
api_path = api_path + 'https://content.zohoapis.com/crm/v2.1/upload'
|
30
30
|
handler_instance.api_path = api_path
|
31
31
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
32
32
|
handler_instance.category_method = 'CREATE'
|
@@ -48,7 +48,7 @@ module BulkWrite
|
|
48
48
|
end
|
49
49
|
handler_instance = Handler::CommonAPIHandler.new
|
50
50
|
api_path = ''
|
51
|
-
api_path = api_path + '/crm/bulk/v2/write'
|
51
|
+
api_path = api_path + '/crm/bulk/v2.1/write'
|
52
52
|
handler_instance.api_path = api_path
|
53
53
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
54
54
|
handler_instance.category_method = 'CREATE'
|
@@ -69,7 +69,7 @@ module BulkWrite
|
|
69
69
|
end
|
70
70
|
handler_instance = Handler::CommonAPIHandler.new
|
71
71
|
api_path = ''
|
72
|
-
api_path = api_path + '/crm/bulk/v2/write/'
|
72
|
+
api_path = api_path + '/crm/bulk/v2.1/write/'
|
73
73
|
api_path = api_path + job_id.to_s
|
74
74
|
handler_instance.api_path = api_path
|
75
75
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require_relative '../modules/module'
|
1
2
|
require_relative '../util/choice'
|
2
3
|
require_relative '../util/model'
|
3
4
|
|
@@ -10,6 +11,7 @@ module BulkWrite
|
|
10
11
|
@status = nil
|
11
12
|
@type = nil
|
12
13
|
@module_1 = nil
|
14
|
+
@code = nil
|
13
15
|
@file_id = nil
|
14
16
|
@ignore_empty = nil
|
15
17
|
@find_by = nil
|
@@ -55,23 +57,41 @@ module BulkWrite
|
|
55
57
|
end
|
56
58
|
|
57
59
|
# The method to get the module
|
58
|
-
# @return
|
60
|
+
# @return An instance of Modules::Module
|
59
61
|
|
60
62
|
def module
|
61
63
|
@module_1
|
62
64
|
end
|
63
65
|
|
64
66
|
# The method to set the value to module
|
65
|
-
# @param module_1 [
|
67
|
+
# @param module_1 [Modules::Module] An instance of Modules::Module
|
66
68
|
|
67
69
|
def module=(module_1)
|
68
|
-
if module_1!=nil and !module_1.is_a?
|
69
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE:
|
70
|
+
if module_1!=nil and !module_1.is_a? Modules::Module
|
71
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: module_1 EXPECTED TYPE: Module', nil, nil)
|
70
72
|
end
|
71
73
|
@module_1 = module_1
|
72
74
|
@key_modified['module'] = 1
|
73
75
|
end
|
74
76
|
|
77
|
+
# The method to get the code
|
78
|
+
# @return A String value
|
79
|
+
|
80
|
+
def code
|
81
|
+
@code
|
82
|
+
end
|
83
|
+
|
84
|
+
# The method to set the value to code
|
85
|
+
# @param code [String] A String
|
86
|
+
|
87
|
+
def code=(code)
|
88
|
+
if code!=nil and !code.is_a? String
|
89
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: String', nil, nil)
|
90
|
+
end
|
91
|
+
@code = code
|
92
|
+
@key_modified['code'] = 1
|
93
|
+
end
|
94
|
+
|
75
95
|
# The method to get the file_id
|
76
96
|
# @return A String value
|
77
97
|
|
@@ -18,7 +18,7 @@ module ContactRoles
|
|
18
18
|
def get_contact_roles
|
19
19
|
handler_instance = Handler::CommonAPIHandler.new
|
20
20
|
api_path = ''
|
21
|
-
api_path = api_path + '/crm/v2/Contacts/roles'
|
21
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles'
|
22
22
|
handler_instance.api_path = api_path
|
23
23
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
24
24
|
handler_instance.category_method = 'READ'
|
@@ -36,7 +36,7 @@ module ContactRoles
|
|
36
36
|
end
|
37
37
|
handler_instance = Handler::CommonAPIHandler.new
|
38
38
|
api_path = ''
|
39
|
-
api_path = api_path + '/crm/v2/Contacts/roles'
|
39
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles'
|
40
40
|
handler_instance.api_path = api_path
|
41
41
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
42
42
|
handler_instance.category_method = 'CREATE'
|
@@ -57,7 +57,7 @@ module ContactRoles
|
|
57
57
|
end
|
58
58
|
handler_instance = Handler::CommonAPIHandler.new
|
59
59
|
api_path = ''
|
60
|
-
api_path = api_path + '/crm/v2/Contacts/roles'
|
60
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles'
|
61
61
|
handler_instance.api_path = api_path
|
62
62
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
63
63
|
handler_instance.category_method = 'UPDATE'
|
@@ -78,7 +78,7 @@ module ContactRoles
|
|
78
78
|
end
|
79
79
|
handler_instance = Handler::CommonAPIHandler.new
|
80
80
|
api_path = ''
|
81
|
-
api_path = api_path + '/crm/v2/Contacts/roles'
|
81
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles'
|
82
82
|
handler_instance.api_path = api_path
|
83
83
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
84
84
|
handler_instance.category_method = Constants::REQUEST_METHOD_DELETE
|
@@ -97,7 +97,7 @@ module ContactRoles
|
|
97
97
|
end
|
98
98
|
handler_instance = Handler::CommonAPIHandler.new
|
99
99
|
api_path = ''
|
100
|
-
api_path = api_path + '/crm/v2/Contacts/roles/'
|
100
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles/'
|
101
101
|
api_path = api_path + id.to_s
|
102
102
|
handler_instance.api_path = api_path
|
103
103
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
@@ -120,7 +120,7 @@ module ContactRoles
|
|
120
120
|
end
|
121
121
|
handler_instance = Handler::CommonAPIHandler.new
|
122
122
|
api_path = ''
|
123
|
-
api_path = api_path + '/crm/v2/Contacts/roles/'
|
123
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles/'
|
124
124
|
api_path = api_path + id.to_s
|
125
125
|
handler_instance.api_path = api_path
|
126
126
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
@@ -141,7 +141,7 @@ module ContactRoles
|
|
141
141
|
end
|
142
142
|
handler_instance = Handler::CommonAPIHandler.new
|
143
143
|
api_path = ''
|
144
|
-
api_path = api_path + '/crm/v2/Contacts/roles/'
|
144
|
+
api_path = api_path + '/crm/v2.1/Contacts/roles/'
|
145
145
|
api_path = api_path + id.to_s
|
146
146
|
handler_instance.api_path = api_path
|
147
147
|
handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
|
@@ -16,7 +16,7 @@ module Currencies
|
|
16
16
|
def get_currencies
|
17
17
|
handler_instance = Handler::CommonAPIHandler.new
|
18
18
|
api_path = ''
|
19
|
-
api_path = api_path + '/crm/v2/org/currencies'
|
19
|
+
api_path = api_path + '/crm/v2.1/org/currencies'
|
20
20
|
handler_instance.api_path = api_path
|
21
21
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
22
22
|
handler_instance.category_method = 'READ'
|
@@ -34,7 +34,7 @@ module Currencies
|
|
34
34
|
end
|
35
35
|
handler_instance = Handler::CommonAPIHandler.new
|
36
36
|
api_path = ''
|
37
|
-
api_path = api_path + '/crm/v2/org/currencies'
|
37
|
+
api_path = api_path + '/crm/v2.1/org/currencies'
|
38
38
|
handler_instance.api_path = api_path
|
39
39
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
40
40
|
handler_instance.category_method = 'CREATE'
|
@@ -55,7 +55,7 @@ module Currencies
|
|
55
55
|
end
|
56
56
|
handler_instance = Handler::CommonAPIHandler.new
|
57
57
|
api_path = ''
|
58
|
-
api_path = api_path + '/crm/v2/org/currencies'
|
58
|
+
api_path = api_path + '/crm/v2.1/org/currencies'
|
59
59
|
handler_instance.api_path = api_path
|
60
60
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
61
61
|
handler_instance.category_method = 'UPDATE'
|
@@ -76,7 +76,7 @@ module Currencies
|
|
76
76
|
end
|
77
77
|
handler_instance = Handler::CommonAPIHandler.new
|
78
78
|
api_path = ''
|
79
|
-
api_path = api_path + '/crm/v2/org/currencies/actions/enable'
|
79
|
+
api_path = api_path + '/crm/v2.1/org/currencies/actions/enable'
|
80
80
|
handler_instance.api_path = api_path
|
81
81
|
handler_instance.http_method = Constants::REQUEST_METHOD_POST
|
82
82
|
handler_instance.category_method = 'CREATE'
|
@@ -97,7 +97,7 @@ module Currencies
|
|
97
97
|
end
|
98
98
|
handler_instance = Handler::CommonAPIHandler.new
|
99
99
|
api_path = ''
|
100
|
-
api_path = api_path + '/crm/v2/org/currencies/actions/enable'
|
100
|
+
api_path = api_path + '/crm/v2.1/org/currencies/actions/enable'
|
101
101
|
handler_instance.api_path = api_path
|
102
102
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|
103
103
|
handler_instance.category_method = 'UPDATE'
|
@@ -118,7 +118,7 @@ module Currencies
|
|
118
118
|
end
|
119
119
|
handler_instance = Handler::CommonAPIHandler.new
|
120
120
|
api_path = ''
|
121
|
-
api_path = api_path + '/crm/v2/org/currencies/'
|
121
|
+
api_path = api_path + '/crm/v2.1/org/currencies/'
|
122
122
|
api_path = api_path + id.to_s
|
123
123
|
handler_instance.api_path = api_path
|
124
124
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
@@ -141,7 +141,7 @@ module Currencies
|
|
141
141
|
end
|
142
142
|
handler_instance = Handler::CommonAPIHandler.new
|
143
143
|
api_path = ''
|
144
|
-
api_path = api_path + '/crm/v2/org/currencies/'
|
144
|
+
api_path = api_path + '/crm/v2.1/org/currencies/'
|
145
145
|
api_path = api_path + id.to_s
|
146
146
|
handler_instance.api_path = api_path
|
147
147
|
handler_instance.http_method = Constants::REQUEST_METHOD_PUT
|