ZCRMSDK 2.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/src/ZCRMSDK.rb +87 -2
- data/src/com/zoho/api/authenticator/oauth_token.rb +86 -31
- data/src/com/zoho/api/authenticator/store/db_store.rb +71 -29
- data/src/com/zoho/api/authenticator/store/file_store.rb +91 -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 +42 -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 +1127 -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 +215 -61
- 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_module_lookup.rb +99 -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 +45 -17
- 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/note.rb +19 -0
- 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/hierarchy_preference.rb +61 -0
- data/src/com/zoho/crm/api/org/org.rb +38 -0
- 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/category.rb +19 -0
- data/src/com/zoho/crm/api/profiles/default_view.rb +99 -0
- data/src/com/zoho/crm/api/profiles/profile.rb +49 -11
- 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 +17 -17
- data/src/com/zoho/crm/api/record/image_upload.rb +213 -0
- data/src/com/zoho/crm/api/record/line_tax.rb +19 -0
- 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/user.rb +34 -0
- data/src/com/zoho/crm/api/users/users_operations.rb +6 -6
- data/src/com/zoho/crm/api/util/api_http_connector.rb +6 -5
- data/src/com/zoho/crm/api/util/common_api_handler.rb +5 -3
- data/src/com/zoho/crm/api/util/constants.rb +140 -15
- data/src/com/zoho/crm/api/util/converter.rb +30 -7
- data/src/com/zoho/crm/api/util/data_type_converter.rb +8 -2
- data/src/com/zoho/crm/api/util/form_data_converter.rb +4 -15
- data/src/com/zoho/crm/api/util/json_converter.rb +7 -9
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +1 -1
- data/src/com/zoho/crm/api/util/utility.rb +274 -87
- 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 +252 -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/transition.rb +80 -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 +92 -7
- data/src/com/zoho/crm/api/record/inventory_line_items.rb +0 -235
@@ -0,0 +1,61 @@
|
|
1
|
+
require_relative '../param'
|
2
|
+
require_relative '../parameter_map'
|
3
|
+
require_relative '../exception/sdk_exception'
|
4
|
+
require_relative '../util/api_response'
|
5
|
+
require_relative '../util/common_api_handler'
|
6
|
+
require_relative '../util/constants'
|
7
|
+
|
8
|
+
module AssignmentRules
|
9
|
+
class AssignmentRulesOperations
|
10
|
+
|
11
|
+
# Creates an instance of AssignmentRulesOperations
|
12
|
+
def initialize
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get assignment rules
|
16
|
+
# @return An instance of APIResponse
|
17
|
+
# @raise SDKException
|
18
|
+
def get_assignment_rules
|
19
|
+
handler_instance = Handler::CommonAPIHandler.new
|
20
|
+
api_path = ''
|
21
|
+
api_path = api_path + '/crm/v2.1/settings/automation/assignment_rules'
|
22
|
+
handler_instance.api_path = api_path
|
23
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
24
|
+
handler_instance.category_method = 'READ'
|
25
|
+
require_relative 'response_handler'
|
26
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
27
|
+
end
|
28
|
+
|
29
|
+
# The method to get assignment rule
|
30
|
+
# @param rule_id [Integer] A Integer
|
31
|
+
# @param param_instance [ParameterMap] An instance of ParameterMap
|
32
|
+
# @return An instance of APIResponse
|
33
|
+
# @raise SDKException
|
34
|
+
def get_assignment_rule(rule_id, param_instance=nil)
|
35
|
+
if !rule_id.is_a? Integer
|
36
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: rule_id EXPECTED TYPE: Integer', nil, nil)
|
37
|
+
end
|
38
|
+
if param_instance!=nil and !param_instance.is_a? ParameterMap
|
39
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: param_instance EXPECTED TYPE: ParameterMap', nil, nil)
|
40
|
+
end
|
41
|
+
handler_instance = Handler::CommonAPIHandler.new
|
42
|
+
api_path = ''
|
43
|
+
api_path = api_path + '/crm/v2.1/settings/automation/assignment_rules/'
|
44
|
+
api_path = api_path + rule_id.to_s
|
45
|
+
handler_instance.api_path = api_path
|
46
|
+
handler_instance.http_method = Constants::REQUEST_METHOD_GET
|
47
|
+
handler_instance.category_method = 'READ'
|
48
|
+
handler_instance.param = param_instance
|
49
|
+
require_relative 'response_handler'
|
50
|
+
handler_instance.api_call(ResponseHandler.name, 'application/json')
|
51
|
+
end
|
52
|
+
|
53
|
+
class GetAssignmentRuleParam
|
54
|
+
@@module_1 = Param.new('module', 'com.zoho.crm.api.AssignmentRules.GetAssignmentRuleParam')
|
55
|
+
def self.module_1
|
56
|
+
@@module_1
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module AssignmentRules
|
4
|
+
class DefaultUser
|
5
|
+
include Util::Model
|
6
|
+
|
7
|
+
# Creates an instance of DefaultUser
|
8
|
+
def initialize
|
9
|
+
@name = nil
|
10
|
+
@id = nil
|
11
|
+
@key_modified = Hash.new
|
12
|
+
end
|
13
|
+
|
14
|
+
# The method to get the name
|
15
|
+
# @return A String value
|
16
|
+
|
17
|
+
def name
|
18
|
+
@name
|
19
|
+
end
|
20
|
+
|
21
|
+
# The method to set the value to name
|
22
|
+
# @param name [String] A String
|
23
|
+
|
24
|
+
def name=(name)
|
25
|
+
if name!=nil and !name.is_a? String
|
26
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: name EXPECTED TYPE: String', nil, nil)
|
27
|
+
end
|
28
|
+
@name = name
|
29
|
+
@key_modified['name'] = 1
|
30
|
+
end
|
31
|
+
|
32
|
+
# The method to get the id
|
33
|
+
# @return A String value
|
34
|
+
|
35
|
+
def id
|
36
|
+
@id
|
37
|
+
end
|
38
|
+
|
39
|
+
# The method to set the value to id
|
40
|
+
# @param id [String] A String
|
41
|
+
|
42
|
+
def id=(id)
|
43
|
+
if id!=nil and !id.is_a? String
|
44
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: String', nil, nil)
|
45
|
+
end
|
46
|
+
@id = id
|
47
|
+
@key_modified['id'] = 1
|
48
|
+
end
|
49
|
+
|
50
|
+
# The method to check if the user has modified the given key
|
51
|
+
# @param key [String] A String
|
52
|
+
# @return A Integer value
|
53
|
+
|
54
|
+
def is_key_modified(key)
|
55
|
+
if key!=nil and !key.is_a? String
|
56
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
57
|
+
end
|
58
|
+
if @key_modified.key?(key)
|
59
|
+
return @key_modified[key]
|
60
|
+
end
|
61
|
+
|
62
|
+
nil
|
63
|
+
end
|
64
|
+
|
65
|
+
# The method to mark the given key as modified
|
66
|
+
# @param key [String] A String
|
67
|
+
# @param modification [Integer] A Integer
|
68
|
+
|
69
|
+
def set_key_modified(key, modification)
|
70
|
+
if key!=nil and !key.is_a? String
|
71
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
72
|
+
end
|
73
|
+
if modification!=nil and !modification.is_a? Integer
|
74
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
75
|
+
end
|
76
|
+
@key_modified[key] = modification
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module AssignmentRules
|
4
|
+
require_relative 'response_handler'
|
5
|
+
class ResponseWrapper
|
6
|
+
include Util::Model
|
7
|
+
include ResponseHandler
|
8
|
+
|
9
|
+
# Creates an instance of ResponseWrapper
|
10
|
+
def initialize
|
11
|
+
@assignment_rules = nil
|
12
|
+
@key_modified = Hash.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# The method to get the assignment_rules
|
16
|
+
# @return An instance of Array
|
17
|
+
|
18
|
+
def assignment_rules
|
19
|
+
@assignment_rules
|
20
|
+
end
|
21
|
+
|
22
|
+
# The method to set the value to assignment_rules
|
23
|
+
# @param assignment_rules [Array] An instance of Array
|
24
|
+
|
25
|
+
def assignment_rules=(assignment_rules)
|
26
|
+
if assignment_rules!=nil and !assignment_rules.is_a? Array
|
27
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: assignment_rules EXPECTED TYPE: Array', nil, nil)
|
28
|
+
end
|
29
|
+
@assignment_rules = assignment_rules
|
30
|
+
@key_modified['assignment_rules'] = 1
|
31
|
+
end
|
32
|
+
|
33
|
+
# The method to check if the user has modified the given key
|
34
|
+
# @param key [String] A String
|
35
|
+
# @return A Integer value
|
36
|
+
|
37
|
+
def is_key_modified(key)
|
38
|
+
if key!=nil and !key.is_a? String
|
39
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
40
|
+
end
|
41
|
+
if @key_modified.key?(key)
|
42
|
+
return @key_modified[key]
|
43
|
+
end
|
44
|
+
|
45
|
+
nil
|
46
|
+
end
|
47
|
+
|
48
|
+
# The method to mark the given key as modified
|
49
|
+
# @param key [String] A String
|
50
|
+
# @param modification [Integer] A Integer
|
51
|
+
|
52
|
+
def set_key_modified(key, modification)
|
53
|
+
if key!=nil and !key.is_a? String
|
54
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
55
|
+
end
|
56
|
+
if modification!=nil and !modification.is_a? Integer
|
57
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
58
|
+
end
|
59
|
+
@key_modified[key] = modification
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -15,10 +15,12 @@ module Attachments
|
|
15
15
|
@size = nil
|
16
16
|
@parent_id = nil
|
17
17
|
@editable = nil
|
18
|
+
@sharing_permission = nil
|
18
19
|
@file_id = nil
|
19
20
|
@type = nil
|
20
21
|
@se_module = nil
|
21
22
|
@modified_by = nil
|
23
|
+
@attachment_type = nil
|
22
24
|
@state = nil
|
23
25
|
@id = nil
|
24
26
|
@created_by = nil
|
@@ -154,6 +156,24 @@ module Attachments
|
|
154
156
|
@key_modified['$editable'] = 1
|
155
157
|
end
|
156
158
|
|
159
|
+
# The method to get the sharing_permission
|
160
|
+
# @return A String value
|
161
|
+
|
162
|
+
def sharing_permission
|
163
|
+
@sharing_permission
|
164
|
+
end
|
165
|
+
|
166
|
+
# The method to set the value to sharing_permission
|
167
|
+
# @param sharing_permission [String] A String
|
168
|
+
|
169
|
+
def sharing_permission=(sharing_permission)
|
170
|
+
if sharing_permission!=nil and !sharing_permission.is_a? String
|
171
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: sharing_permission EXPECTED TYPE: String', nil, nil)
|
172
|
+
end
|
173
|
+
@sharing_permission = sharing_permission
|
174
|
+
@key_modified['$sharing_permission'] = 1
|
175
|
+
end
|
176
|
+
|
157
177
|
# The method to get the file_id
|
158
178
|
# @return A String value
|
159
179
|
|
@@ -226,6 +246,24 @@ module Attachments
|
|
226
246
|
@key_modified['Modified_By'] = 1
|
227
247
|
end
|
228
248
|
|
249
|
+
# The method to get the attachment_type
|
250
|
+
# @return A Integer value
|
251
|
+
|
252
|
+
def attachment_type
|
253
|
+
@attachment_type
|
254
|
+
end
|
255
|
+
|
256
|
+
# The method to set the value to attachment_type
|
257
|
+
# @param attachment_type [Integer] A Integer
|
258
|
+
|
259
|
+
def attachment_type=(attachment_type)
|
260
|
+
if attachment_type!=nil and !attachment_type.is_a? Integer
|
261
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: attachment_type EXPECTED TYPE: Integer', nil, nil)
|
262
|
+
end
|
263
|
+
@attachment_type = attachment_type
|
264
|
+
@key_modified['$attachment_type'] = 1
|
265
|
+
end
|
266
|
+
|
229
267
|
# The method to get the state
|
230
268
|
# @return A String value
|
231
269
|
|
@@ -245,18 +283,18 @@ module Attachments
|
|
245
283
|
end
|
246
284
|
|
247
285
|
# The method to get the id
|
248
|
-
# @return A
|
286
|
+
# @return A String value
|
249
287
|
|
250
288
|
def id
|
251
289
|
@id
|
252
290
|
end
|
253
291
|
|
254
292
|
# The method to set the value to id
|
255
|
-
# @param id [
|
293
|
+
# @param id [String] A String
|
256
294
|
|
257
295
|
def id=(id)
|
258
|
-
if id!=nil and !id.is_a?
|
259
|
-
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE:
|
296
|
+
if id!=nil and !id.is_a? String
|
297
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: String', nil, nil)
|
260
298
|
end
|
261
299
|
@id = id
|
262
300
|
@key_modified['id'] = 1
|
@@ -32,7 +32,7 @@ module Attachments
|
|
32
32
|
end
|
33
33
|
handler_instance = Handler::CommonAPIHandler.new
|
34
34
|
api_path = ''
|
35
|
-
api_path = api_path + '/crm/v2/'
|
35
|
+
api_path = api_path + '/crm/v2.1/'
|
36
36
|
api_path = api_path + @module_api_name.to_s
|
37
37
|
api_path = api_path + '/'
|
38
38
|
api_path = api_path + @record_id.to_s
|
@@ -55,7 +55,7 @@ module Attachments
|
|
55
55
|
end
|
56
56
|
handler_instance = Handler::CommonAPIHandler.new
|
57
57
|
api_path = ''
|
58
|
-
api_path = api_path + '/crm/v2/'
|
58
|
+
api_path = api_path + '/crm/v2.1/'
|
59
59
|
api_path = api_path + @module_api_name.to_s
|
60
60
|
api_path = api_path + '/'
|
61
61
|
api_path = api_path + @record_id.to_s
|
@@ -78,7 +78,7 @@ module Attachments
|
|
78
78
|
end
|
79
79
|
handler_instance = Handler::CommonAPIHandler.new
|
80
80
|
api_path = ''
|
81
|
-
api_path = api_path + '/crm/v2/'
|
81
|
+
api_path = api_path + '/crm/v2.1/'
|
82
82
|
api_path = api_path + @module_api_name.to_s
|
83
83
|
api_path = api_path + '/'
|
84
84
|
api_path = api_path + @record_id.to_s
|
@@ -101,7 +101,7 @@ module Attachments
|
|
101
101
|
end
|
102
102
|
handler_instance = Handler::CommonAPIHandler.new
|
103
103
|
api_path = ''
|
104
|
-
api_path = api_path + '/crm/v2/'
|
104
|
+
api_path = api_path + '/crm/v2.1/'
|
105
105
|
api_path = api_path + @module_api_name.to_s
|
106
106
|
api_path = api_path + '/'
|
107
107
|
api_path = api_path + @record_id.to_s
|
@@ -126,7 +126,7 @@ module Attachments
|
|
126
126
|
end
|
127
127
|
handler_instance = Handler::CommonAPIHandler.new
|
128
128
|
api_path = ''
|
129
|
-
api_path = api_path + '/crm/v2/'
|
129
|
+
api_path = api_path + '/crm/v2.1/'
|
130
130
|
api_path = api_path + @module_api_name.to_s
|
131
131
|
api_path = api_path + '/'
|
132
132
|
api_path = api_path + @record_id.to_s
|
@@ -150,7 +150,7 @@ module Attachments
|
|
150
150
|
end
|
151
151
|
handler_instance = Handler::CommonAPIHandler.new
|
152
152
|
api_path = ''
|
153
|
-
api_path = api_path + '/crm/v2/'
|
153
|
+
api_path = api_path + '/crm/v2.1/'
|
154
154
|
api_path = api_path + @module_api_name.to_s
|
155
155
|
api_path = api_path + '/'
|
156
156
|
api_path = api_path + @record_id.to_s
|
@@ -26,7 +26,7 @@ module BluePrint
|
|
26
26
|
def get_blueprint
|
27
27
|
handler_instance = Handler::CommonAPIHandler.new
|
28
28
|
api_path = ''
|
29
|
-
api_path = api_path + '/crm/v2/'
|
29
|
+
api_path = api_path + '/crm/v2.1/'
|
30
30
|
api_path = api_path + @module_api_name.to_s
|
31
31
|
api_path = api_path + '/'
|
32
32
|
api_path = api_path + @record_id.to_s
|
@@ -48,7 +48,7 @@ module BluePrint
|
|
48
48
|
end
|
49
49
|
handler_instance = Handler::CommonAPIHandler.new
|
50
50
|
api_path = ''
|
51
|
-
api_path = api_path + '/crm/v2/'
|
51
|
+
api_path = api_path + '/crm/v2.1/'
|
52
52
|
api_path = api_path + @module_api_name.to_s
|
53
53
|
api_path = api_path + '/'
|
54
54
|
api_path = api_path + @record_id.to_s
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require_relative '../util/model'
|
2
|
+
|
3
|
+
module BluePrint
|
4
|
+
class Escalation
|
5
|
+
include Util::Model
|
6
|
+
|
7
|
+
# Creates an instance of Escalation
|
8
|
+
def initialize
|
9
|
+
@days = nil
|
10
|
+
@status = nil
|
11
|
+
@key_modified = Hash.new
|
12
|
+
end
|
13
|
+
|
14
|
+
# The method to get the days
|
15
|
+
# @return A Integer value
|
16
|
+
|
17
|
+
def days
|
18
|
+
@days
|
19
|
+
end
|
20
|
+
|
21
|
+
# The method to set the value to days
|
22
|
+
# @param days [Integer] A Integer
|
23
|
+
|
24
|
+
def days=(days)
|
25
|
+
if days!=nil and !days.is_a? Integer
|
26
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: days EXPECTED TYPE: Integer', nil, nil)
|
27
|
+
end
|
28
|
+
@days = days
|
29
|
+
@key_modified['days'] = 1
|
30
|
+
end
|
31
|
+
|
32
|
+
# The method to get the status
|
33
|
+
# @return A String value
|
34
|
+
|
35
|
+
def status
|
36
|
+
@status
|
37
|
+
end
|
38
|
+
|
39
|
+
# The method to set the value to status
|
40
|
+
# @param status [String] A String
|
41
|
+
|
42
|
+
def status=(status)
|
43
|
+
if status!=nil and !status.is_a? String
|
44
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: String', nil, nil)
|
45
|
+
end
|
46
|
+
@status = status
|
47
|
+
@key_modified['status'] = 1
|
48
|
+
end
|
49
|
+
|
50
|
+
# The method to check if the user has modified the given key
|
51
|
+
# @param key [String] A String
|
52
|
+
# @return A Integer value
|
53
|
+
|
54
|
+
def is_key_modified(key)
|
55
|
+
if key!=nil and !key.is_a? String
|
56
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
57
|
+
end
|
58
|
+
if @key_modified.key?(key)
|
59
|
+
return @key_modified[key]
|
60
|
+
end
|
61
|
+
|
62
|
+
nil
|
63
|
+
end
|
64
|
+
|
65
|
+
# The method to mark the given key as modified
|
66
|
+
# @param key [String] A String
|
67
|
+
# @param modification [Integer] A Integer
|
68
|
+
|
69
|
+
def set_key_modified(key, modification)
|
70
|
+
if key!=nil and !key.is_a? String
|
71
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
|
72
|
+
end
|
73
|
+
if modification!=nil and !modification.is_a? Integer
|
74
|
+
raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
|
75
|
+
end
|
76
|
+
@key_modified[key] = modification
|
77
|
+
end
|
78
|
+
|
79
|
+
end
|
80
|
+
end
|