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
@@ -0,0 +1,99 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module Fields
|
4
|
+
class External
|
5
|
+
include Util::Model
|
6
|
+
|
7
|
+
# Creates an instance of External
|
8
|
+
def initialize
|
9
|
+
@show = nil
|
10
|
+
@type = nil
|
11
|
+
@allow_multiple_config = nil
|
12
|
+
@key_modified = Hash.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get the show
|
16
|
+
# @return A Boolean value
|
17
|
+
|
18
|
+
def show
|
19
|
+
@show
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to set the value to show
|
23
|
+
# @param show [Boolean] A Boolean
|
24
|
+
|
25
|
+
def show=(show)
|
26
|
+
if show!=nil and ! [true, false].include?show
|
27
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: show EXPECTED TYPE: Boolean', nil, nil)
|
28
|
+
end
|
29
|
+
@show = show
|
30
|
+
@key_modified['show'] = 1
|
31
|
+
end
|
32
|
+
|
33
|
+
# The method to get the type
|
34
|
+
# @return A String value
|
35
|
+
|
36
|
+
def type
|
37
|
+
@type
|
38
|
+
end
|
39
|
+
|
40
|
+
# The method to set the value to type
|
41
|
+
# @param type [String] A String
|
42
|
+
|
43
|
+
def type=(type)
|
44
|
+
if type!=nil and !type.is_a? String
|
45
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
46
|
+
end
|
47
|
+
@type = type
|
48
|
+
@key_modified['type'] = 1
|
49
|
+
end
|
50
|
+
|
51
|
+
# The method to get the allow_multiple_config
|
52
|
+
# @return A Boolean value
|
53
|
+
|
54
|
+
def allow_multiple_config
|
55
|
+
@allow_multiple_config
|
56
|
+
end
|
57
|
+
|
58
|
+
# The method to set the value to allow_multiple_config
|
59
|
+
# @param allow_multiple_config [Boolean] A Boolean
|
60
|
+
|
61
|
+
def allow_multiple_config=(allow_multiple_config)
|
62
|
+
if allow_multiple_config!=nil and ! [true, false].include?allow_multiple_config
|
63
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: allow_multiple_config EXPECTED TYPE: Boolean', nil, nil)
|
64
|
+
end
|
65
|
+
@allow_multiple_config = allow_multiple_config
|
66
|
+
@key_modified['allow_multiple_config'] = 1
|
67
|
+
end
|
68
|
+
|
69
|
+
# The method to check if the user has modified the given key
|
70
|
+
# @param key [String] A String
|
71
|
+
# @return A Integer value
|
72
|
+
|
73
|
+
def is_key_modified(key)
|
74
|
+
if key!=nil and !key.is_a? String
|
75
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
76
|
+
end
|
77
|
+
if @key_modified.key?(key)
|
78
|
+
return @key_modified[key]
|
79
|
+
end
|
80
|
+
|
81
|
+
nil
|
82
|
+
end
|
83
|
+
|
84
|
+
# The method to mark the given key as modified
|
85
|
+
# @param key [String] A String
|
86
|
+
# @param modification [Integer] A Integer
|
87
|
+
|
88
|
+
def set_key_modified(key, modification)
|
89
|
+
if key!=nil and !key.is_a? String
|
90
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
91
|
+
end
|
92
|
+
if modification!=nil and !modification.is_a? Integer
|
93
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
94
|
+
end
|
95
|
+
@key_modified[key] = modification
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
require_relative '../custom_views/criteria'
|
2
2
|
require_relative '../layouts/layout'
|
3
|
+
require_relative '../profiles/profile'
|
4
|
+
require_relative '../util/choice'
|
3
5
|
require_relative '../util/model'
|
4
6
|
|
5
7
|
module Fields
|
@@ -12,9 +14,10 @@ module Fields
|
|
12
14
|
@webhook = nil
|
13
15
|
@private = nil
|
14
16
|
@layouts = nil
|
17
|
+
@profiles = nil
|
18
|
+
@sequence_number = nil
|
15
19
|
@content = nil
|
16
20
|
@column_name = nil
|
17
|
-
@type = nil
|
18
21
|
@transition_sequence = nil
|
19
22
|
@personality_name = nil
|
20
23
|
@message = nil
|
@@ -28,6 +31,7 @@ module Fields
|
|
28
31
|
@created_source = nil
|
29
32
|
@field_read_only = nil
|
30
33
|
@display_label = nil
|
34
|
+
@ui_type = nil
|
31
35
|
@read_only = nil
|
32
36
|
@association_details = nil
|
33
37
|
@quick_sequence_number = nil
|
@@ -38,24 +42,30 @@ module Fields
|
|
38
42
|
@custom_field = nil
|
39
43
|
@lookup = nil
|
40
44
|
@visible = nil
|
45
|
+
@pick_list_values_sorted_lexically = nil
|
41
46
|
@length = nil
|
42
47
|
@view_type = nil
|
43
48
|
@subform = nil
|
44
49
|
@api_name = nil
|
50
|
+
@sortable = nil
|
45
51
|
@unique = nil
|
46
|
-
@history_tracking = nil
|
47
52
|
@data_type = nil
|
48
53
|
@formula = nil
|
49
54
|
@decimal_place = nil
|
50
55
|
@mass_update = nil
|
51
56
|
@blueprint_supported = nil
|
52
57
|
@multiselectlookup = nil
|
58
|
+
@multiuserlookup = nil
|
53
59
|
@pick_list_values = nil
|
54
60
|
@auto_number = nil
|
55
61
|
@default_value = nil
|
56
62
|
@section_id = nil
|
57
63
|
@validation_rule = nil
|
58
64
|
@convert_mapping = nil
|
65
|
+
@type = nil
|
66
|
+
@external = nil
|
67
|
+
@history_tracking = nil
|
68
|
+
@display_type = nil
|
59
69
|
@key_modified = Hash.new
|
60
70
|
end
|
61
71
|
|
@@ -131,6 +141,42 @@ module Fields
|
|
131
141
|
@key_modified['layouts'] = 1
|
132
142
|
end
|
133
143
|
|
144
|
+
# The method to get the profiles
|
145
|
+
# @return An instance of Array
|
146
|
+
|
147
|
+
def profiles
|
148
|
+
@profiles
|
149
|
+
end
|
150
|
+
|
151
|
+
# The method to set the value to profiles
|
152
|
+
# @param profiles [Array] An instance of Array
|
153
|
+
|
154
|
+
def profiles=(profiles)
|
155
|
+
if profiles!=nil and !profiles.is_a? Array
|
156
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: profiles EXPECTED TYPE: Array', nil, nil)
|
157
|
+
end
|
158
|
+
@profiles = profiles
|
159
|
+
@key_modified['profiles'] = 1
|
160
|
+
end
|
161
|
+
|
162
|
+
# The method to get the sequence_number
|
163
|
+
# @return A Integer value
|
164
|
+
|
165
|
+
def sequence_number
|
166
|
+
@sequence_number
|
167
|
+
end
|
168
|
+
|
169
|
+
# The method to set the value to sequence_number
|
170
|
+
# @param sequence_number [Integer] A Integer
|
171
|
+
|
172
|
+
def sequence_number=(sequence_number)
|
173
|
+
if sequence_number!=nil and !sequence_number.is_a? Integer
|
174
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sequence_number EXPECTED TYPE: Integer', nil, nil)
|
175
|
+
end
|
176
|
+
@sequence_number = sequence_number
|
177
|
+
@key_modified['sequence_number'] = 1
|
178
|
+
end
|
179
|
+
|
134
180
|
# The method to get the content
|
135
181
|
# @return A String value
|
136
182
|
|
@@ -167,24 +213,6 @@ module Fields
|
|
167
213
|
@key_modified['column_name'] = 1
|
168
214
|
end
|
169
215
|
|
170
|
-
# The method to get the type
|
171
|
-
# @return A String value
|
172
|
-
|
173
|
-
def type
|
174
|
-
@type
|
175
|
-
end
|
176
|
-
|
177
|
-
# The method to set the value to type
|
178
|
-
# @param type [String] A String
|
179
|
-
|
180
|
-
def type=(type)
|
181
|
-
if type!=nil and !type.is_a? String
|
182
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
183
|
-
end
|
184
|
-
@type = type
|
185
|
-
@key_modified['_type'] = 1
|
186
|
-
end
|
187
|
-
|
188
216
|
# The method to get the transition_sequence
|
189
217
|
# @return A Integer value
|
190
218
|
|
@@ -419,6 +447,24 @@ module Fields
|
|
419
447
|
@key_modified['display_label'] = 1
|
420
448
|
end
|
421
449
|
|
450
|
+
# The method to get the ui_type
|
451
|
+
# @return A Integer value
|
452
|
+
|
453
|
+
def ui_type
|
454
|
+
@ui_type
|
455
|
+
end
|
456
|
+
|
457
|
+
# The method to set the value to ui_type
|
458
|
+
# @param ui_type [Integer] A Integer
|
459
|
+
|
460
|
+
def ui_type=(ui_type)
|
461
|
+
if ui_type!=nil and !ui_type.is_a? Integer
|
462
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: ui_type EXPECTED TYPE: Integer', nil, nil)
|
463
|
+
end
|
464
|
+
@ui_type = ui_type
|
465
|
+
@key_modified['ui_type'] = 1
|
466
|
+
end
|
467
|
+
|
422
468
|
# The method to get the read_only
|
423
469
|
# @return A Boolean value
|
424
470
|
|
@@ -599,6 +645,24 @@ module Fields
|
|
599
645
|
@key_modified['visible'] = 1
|
600
646
|
end
|
601
647
|
|
648
|
+
# The method to get the pick_list_values_sorted_lexically
|
649
|
+
# @return A Boolean value
|
650
|
+
|
651
|
+
def pick_list_values_sorted_lexically
|
652
|
+
@pick_list_values_sorted_lexically
|
653
|
+
end
|
654
|
+
|
655
|
+
# The method to set the value to pick_list_values_sorted_lexically
|
656
|
+
# @param pick_list_values_sorted_lexically [Boolean] A Boolean
|
657
|
+
|
658
|
+
def pick_list_values_sorted_lexically=(pick_list_values_sorted_lexically)
|
659
|
+
if pick_list_values_sorted_lexically!=nil and ! [true, false].include?pick_list_values_sorted_lexically
|
660
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: pick_list_values_sorted_lexically EXPECTED TYPE: Boolean', nil, nil)
|
661
|
+
end
|
662
|
+
@pick_list_values_sorted_lexically = pick_list_values_sorted_lexically
|
663
|
+
@key_modified['pick_list_values_sorted_lexically'] = 1
|
664
|
+
end
|
665
|
+
|
602
666
|
# The method to get the length
|
603
667
|
# @return A Integer value
|
604
668
|
|
@@ -671,6 +735,24 @@ module Fields
|
|
671
735
|
@key_modified['api_name'] = 1
|
672
736
|
end
|
673
737
|
|
738
|
+
# The method to get the sortable
|
739
|
+
# @return A Boolean value
|
740
|
+
|
741
|
+
def sortable
|
742
|
+
@sortable
|
743
|
+
end
|
744
|
+
|
745
|
+
# The method to set the value to sortable
|
746
|
+
# @param sortable [Boolean] A Boolean
|
747
|
+
|
748
|
+
def sortable=(sortable)
|
749
|
+
if sortable!=nil and ! [true, false].include?sortable
|
750
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sortable EXPECTED TYPE: Boolean', nil, nil)
|
751
|
+
end
|
752
|
+
@sortable = sortable
|
753
|
+
@key_modified['sortable'] = 1
|
754
|
+
end
|
755
|
+
|
674
756
|
# The method to get the unique
|
675
757
|
# @return An instance of Unique
|
676
758
|
|
@@ -689,24 +771,6 @@ module Fields
|
|
689
771
|
@key_modified['unique'] = 1
|
690
772
|
end
|
691
773
|
|
692
|
-
# The method to get the history_tracking
|
693
|
-
# @return A Boolean value
|
694
|
-
|
695
|
-
def history_tracking
|
696
|
-
@history_tracking
|
697
|
-
end
|
698
|
-
|
699
|
-
# The method to set the value to history_tracking
|
700
|
-
# @param history_tracking [Boolean] A Boolean
|
701
|
-
|
702
|
-
def history_tracking=(history_tracking)
|
703
|
-
if history_tracking!=nil and ! [true, false].include?history_tracking
|
704
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: history_tracking EXPECTED TYPE: Boolean', nil, nil)
|
705
|
-
end
|
706
|
-
@history_tracking = history_tracking
|
707
|
-
@key_modified['history_tracking'] = 1
|
708
|
-
end
|
709
|
-
|
710
774
|
# The method to get the data_type
|
711
775
|
# @return A String value
|
712
776
|
|
@@ -815,6 +879,24 @@ module Fields
|
|
815
879
|
@key_modified['multiselectlookup'] = 1
|
816
880
|
end
|
817
881
|
|
882
|
+
# The method to get the multiuserlookup
|
883
|
+
# @return An instance of MultiUserLookup
|
884
|
+
|
885
|
+
def multiuserlookup
|
886
|
+
@multiuserlookup
|
887
|
+
end
|
888
|
+
|
889
|
+
# The method to set the value to multiuserlookup
|
890
|
+
# @param multiuserlookup [MultiUserLookup] An instance of MultiUserLookup
|
891
|
+
|
892
|
+
def multiuserlookup=(multiuserlookup)
|
893
|
+
if multiuserlookup!=nil and !multiuserlookup.is_a? MultiUserLookup
|
894
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: multiuserlookup EXPECTED TYPE: MultiUserLookup', nil, nil)
|
895
|
+
end
|
896
|
+
@multiuserlookup = multiuserlookup
|
897
|
+
@key_modified['multiuserlookup'] = 1
|
898
|
+
end
|
899
|
+
|
818
900
|
# The method to get the pick_list_values
|
819
901
|
# @return An instance of Array
|
820
902
|
|
@@ -923,6 +1005,78 @@ module Fields
|
|
923
1005
|
@key_modified['convert_mapping'] = 1
|
924
1006
|
end
|
925
1007
|
|
1008
|
+
# The method to get the type
|
1009
|
+
# @return A String value
|
1010
|
+
|
1011
|
+
def type
|
1012
|
+
@type
|
1013
|
+
end
|
1014
|
+
|
1015
|
+
# The method to set the value to type
|
1016
|
+
# @param type [String] A String
|
1017
|
+
|
1018
|
+
def type=(type)
|
1019
|
+
if type!=nil and !type.is_a? String
|
1020
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: type EXPECTED TYPE: String', nil, nil)
|
1021
|
+
end
|
1022
|
+
@type = type
|
1023
|
+
@key_modified['type'] = 1
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# The method to get the external
|
1027
|
+
# @return An instance of External
|
1028
|
+
|
1029
|
+
def external
|
1030
|
+
@external
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
# The method to set the value to external
|
1034
|
+
# @param external [External] An instance of External
|
1035
|
+
|
1036
|
+
def external=(external)
|
1037
|
+
if external!=nil and !external.is_a? External
|
1038
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: external EXPECTED TYPE: External', nil, nil)
|
1039
|
+
end
|
1040
|
+
@external = external
|
1041
|
+
@key_modified['external'] = 1
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# The method to get the history_tracking
|
1045
|
+
# @return An instance of HistoryTracking
|
1046
|
+
|
1047
|
+
def history_tracking
|
1048
|
+
@history_tracking
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
# The method to set the value to history_tracking
|
1052
|
+
# @param history_tracking [HistoryTracking] An instance of HistoryTracking
|
1053
|
+
|
1054
|
+
def history_tracking=(history_tracking)
|
1055
|
+
if history_tracking!=nil and !history_tracking.is_a? HistoryTracking
|
1056
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: history_tracking EXPECTED TYPE: HistoryTracking', nil, nil)
|
1057
|
+
end
|
1058
|
+
@history_tracking = history_tracking
|
1059
|
+
@key_modified['history_tracking'] = 1
|
1060
|
+
end
|
1061
|
+
|
1062
|
+
# The method to get the display_type
|
1063
|
+
# @return An instance of Util::Choice
|
1064
|
+
|
1065
|
+
def display_type
|
1066
|
+
@display_type
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
# The method to set the value to display_type
|
1070
|
+
# @param display_type [Util::Choice] An instance of Util::Choice
|
1071
|
+
|
1072
|
+
def display_type=(display_type)
|
1073
|
+
if display_type!=nil and !display_type.is_a? Util::Choice
|
1074
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: display_type EXPECTED TYPE: Util::Choice', nil, nil)
|
1075
|
+
end
|
1076
|
+
@display_type = display_type
|
1077
|
+
@key_modified['display_type'] = 1
|
1078
|
+
end
|
1079
|
+
|
926
1080
|
# The method to check if the user has modified the given key
|
927
1081
|
# @param key [String] A String
|
928
1082
|
# @return A Integer value
|
@@ -27,7 +27,7 @@ module Fields
|
|
27
27
|
end
|
28
28
|
handler_instance = Handler::CommonAPIHandler.new
|
29
29
|
api_path = ''
|
30
|
-
api_path = api_path + '/crm/v2/settings/fields'
|
30
|
+
api_path = api_path + '/crm/v2.1/settings/fields'
|
31
31
|
handler_instance.api_path = api_path
|
32
32
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
33
33
|
handler_instance.category_method = 'READ'
|
@@ -47,7 +47,7 @@ module Fields
|
|
47
47
|
end
|
48
48
|
handler_instance = Handler::CommonAPIHandler.new
|
49
49
|
api_path = ''
|
50
|
-
api_path = api_path + '/crm/v2/settings/fields/'
|
50
|
+
api_path = api_path + '/crm/v2.1/settings/fields/'
|
51
51
|
api_path = api_path + id.to_s
|
52
52
|
handler_instance.api_path = api_path
|
53
53
|
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|