ZOHOCRMSDK2_1 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/src/ZOHOCRMSDK2_1.rb +10 -1
  3. data/src/com/zoho/api/authenticator/oauth_token.rb +0 -0
  4. data/src/com/zoho/api/authenticator/store/db_store.rb +0 -0
  5. data/src/com/zoho/api/authenticator/store/file_store.rb +0 -0
  6. data/src/com/zoho/api/authenticator/store/token_store.rb +0 -0
  7. data/src/com/zoho/api/authenticator/token.rb +0 -0
  8. data/src/com/zoho/api/logger/sdk_logger.rb +0 -0
  9. data/src/com/zoho/crm/api/cancel_meetings/action_handler.rb +12 -0
  10. data/src/com/zoho/crm/api/cancel_meetings/action_response.rb +12 -0
  11. data/src/com/zoho/crm/api/cancel_meetings/action_wrapper.rb +65 -0
  12. data/src/com/zoho/crm/api/cancel_meetings/api_exception.rb +125 -0
  13. data/src/com/zoho/crm/api/cancel_meetings/body_wrapper.rb +63 -0
  14. data/src/com/zoho/crm/api/cancel_meetings/cancel_meetings_operations.rb +43 -0
  15. data/src/com/zoho/crm/api/cancel_meetings/notify.rb +63 -0
  16. data/src/com/zoho/crm/api/cancel_meetings/success_response.rb +123 -0
  17. data/src/com/zoho/crm/api/dc/au_datacenter.rb +0 -0
  18. data/src/com/zoho/crm/api/dc/cn_datacenter.rb +0 -0
  19. data/src/com/zoho/crm/api/dc/datacenter.rb +0 -0
  20. data/src/com/zoho/crm/api/dc/eu_datacenter.rb +0 -0
  21. data/src/com/zoho/crm/api/dc/in_datacenter.rb +0 -0
  22. data/src/com/zoho/crm/api/dc/us_datacenter.rb +0 -0
  23. data/src/com/zoho/crm/api/exception/sdk_exception.rb +0 -0
  24. data/src/com/zoho/crm/api/header.rb +0 -0
  25. data/src/com/zoho/crm/api/header_map.rb +0 -0
  26. data/src/com/zoho/crm/api/initializer.rb +0 -0
  27. data/src/com/zoho/crm/api/param.rb +0 -0
  28. data/src/com/zoho/crm/api/parameter_map.rb +0 -0
  29. data/src/com/zoho/crm/api/record/apply_feature_execution.rb +63 -0
  30. data/src/com/zoho/crm/api/record/body_wrapper.rb +19 -0
  31. data/src/com/zoho/crm/api/request_proxy.rb +0 -0
  32. data/src/com/zoho/crm/api/sdk_config.rb +0 -0
  33. data/src/com/zoho/crm/api/user_signature.rb +0 -0
  34. data/src/com/zoho/crm/api/util/api_http_connector.rb +0 -0
  35. data/src/com/zoho/crm/api/util/api_response.rb +0 -0
  36. data/src/com/zoho/crm/api/util/choice.rb +0 -0
  37. data/src/com/zoho/crm/api/util/common_api_handler.rb +0 -0
  38. data/src/com/zoho/crm/api/util/constants.rb +1 -1
  39. data/src/com/zoho/crm/api/util/converter.rb +0 -0
  40. data/src/com/zoho/crm/api/util/data_type_converter.rb +0 -0
  41. data/src/com/zoho/crm/api/util/downloader.rb +0 -0
  42. data/src/com/zoho/crm/api/util/form_data_converter.rb +0 -0
  43. data/src/com/zoho/crm/api/util/header_param_validator.rb +0 -0
  44. data/src/com/zoho/crm/api/util/json_converter.rb +0 -0
  45. data/src/com/zoho/crm/api/util/model.rb +0 -0
  46. data/src/com/zoho/crm/api/util/module_fields_handler.rb +8 -1
  47. data/src/com/zoho/crm/api/util/stream_wrapper.rb +0 -0
  48. data/src/com/zoho/crm/api/util/utility.rb +14 -9
  49. data/src/resources/JSONDetails.json +1 -1
  50. data/src/version.rb +1 -1
  51. metadata +15 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29a91b72ce71becc94eef1396b25748e81f549bd8a788e88eac97639656602ba
4
- data.tar.gz: 0160dae0d67c55318f416aeff7d96225b5fb6cb6f297d796ee805bdb8ce2c736
3
+ metadata.gz: bb388fbf82b718cea0b1b5980210239d0f183746a170a5611f3a779fa250f504
4
+ data.tar.gz: c18b0fa37d54c4e9b1d2e97751e9a093fdd2745c21151fa4939af11d600014e4
5
5
  SHA512:
6
- metadata.gz: bca014f9c5d511622e51926f2d5e69d39dfebc4d361f01e270f35f4f41dec09d3982f0930d357bb2570bfd0034c51d57a439ac2f405a7d23da99fb43d428c453
7
- data.tar.gz: 3e63bc92601ea63a6d68b2fab06e95aa4b2a5b19444178bb194d757c1237a3278228883fbf06f46552ddc3ad631630ccf4323187f180807c5eafee05e498d371
6
+ metadata.gz: 5988685210db8a13d7e4e08c3c9006897b1c3a14926ab20afd464646f36b4c04ce884177bcbbdfa8e5ac4171ecde46cd296ca0df3970e96ae5ae3aa5ced9201b
7
+ data.tar.gz: 8c36829a932c62288987a1c3e46e26d12f42f4ad731c42dead03d40911085f49b6fc509e680881f2c5715daec909cefba3546cd64ea3dc1f8d7ddb53c1e957ad
data/src/ZOHOCRMSDK2_1.rb CHANGED
@@ -37,6 +37,7 @@ require 'com/zoho/crm/api/territories/territory.rb'
37
37
  require 'com/zoho/crm/api/territories/response_wrapper.rb'
38
38
  require 'com/zoho/crm/api/territories/api_exception.rb'
39
39
  require 'com/zoho/crm/api/territories/response_handler.rb'
40
+ require 'com/zoho/crm/api/record/apply_feature_execution'
40
41
  require 'com/zoho/crm/api/record/consent.rb'
41
42
  require 'com/zoho/crm/api/record/line_tax.rb'
42
43
  require 'com/zoho/crm/api/record/reminder.rb'
@@ -451,4 +452,12 @@ require 'com/zoho/api/authenticator/oauth_token.rb'
451
452
  require 'com/zoho/api/authenticator/token.rb'
452
453
  require 'com/zoho/api/authenticator/store/db_store.rb'
453
454
  require 'com/zoho/api/authenticator/store/token_store.rb'
454
- require 'com/zoho/api/authenticator/store/file_store.rb'
455
+ require 'com/zoho/api/authenticator/store/file_store.rb'
456
+ require 'com/zoho/crm/api/cancel_meetings/action_handler'
457
+ require 'com/zoho/crm/api/cancel_meetings/action_response'
458
+ require 'com/zoho/crm/api/cancel_meetings/api_exception'
459
+ require 'com/zoho/crm/api/cancel_meetings/action_wrapper'
460
+ require 'com/zoho/crm/api/cancel_meetings/body_wrapper'
461
+ require 'com/zoho/crm/api/cancel_meetings/cancel_meetings_operations'
462
+ require 'com/zoho/crm/api/cancel_meetings/notify'
463
+ require 'com/zoho/crm/api/cancel_meetings/success_response'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ module ZOHOCRMSDK
2
+ module CancelMeetings
3
+ module ActionHandler
4
+
5
+ # Creates an instance of ActionHandler
6
+ def initialize
7
+ end
8
+
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module ZOHOCRMSDK
2
+ module CancelMeetings
3
+ module ActionResponse
4
+
5
+ # Creates an instance of ActionResponse
6
+ def initialize
7
+ end
8
+
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,65 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module CancelMeetings
5
+ require_relative 'action_handler'
6
+ class ActionWrapper
7
+ include Util::Model
8
+ include ActionHandler
9
+
10
+ # Creates an instance of ActionWrapper
11
+ def initialize
12
+ @data = nil
13
+ @key_modified = Hash.new
14
+ end
15
+
16
+ # The method to get the data
17
+ # @return An instance of Array
18
+
19
+ def data
20
+ @data
21
+ end
22
+
23
+ # The method to set the value to data
24
+ # @param data [Array] An instance of Array
25
+
26
+ def data=(data)
27
+ if data!=nil and !data.is_a? Array
28
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: data EXPECTED TYPE: Array', nil, nil)
29
+ end
30
+ @data = data
31
+ @key_modified['data'] = 1
32
+ end
33
+
34
+ # The method to check if the user has modified the given key
35
+ # @param key [String] A String
36
+ # @return A Integer value
37
+
38
+ def is_key_modified(key)
39
+ if key!=nil and !key.is_a? String
40
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
41
+ end
42
+ if @key_modified.key?(key)
43
+ return @key_modified[key]
44
+ end
45
+
46
+ nil
47
+ end
48
+
49
+ # The method to mark the given key as modified
50
+ # @param key [String] A String
51
+ # @param modification [Integer] A Integer
52
+
53
+ def set_key_modified(key, modification)
54
+ if key!=nil and !key.is_a? String
55
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
56
+ end
57
+ if modification!=nil and !modification.is_a? Integer
58
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
59
+ end
60
+ @key_modified[key] = modification
61
+ end
62
+
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,125 @@
1
+ require_relative '../util/choice'
2
+ require_relative '../util/model'
3
+
4
+ module ZOHOCRMSDK
5
+ module CancelMeetings
6
+ require_relative 'action_response'
7
+ require_relative 'action_handler'
8
+ class APIException
9
+ include Util::Model
10
+ include ActionResponse
11
+ include ActionHandler
12
+
13
+ # Creates an instance of APIException
14
+ def initialize
15
+ @status = nil
16
+ @code = nil
17
+ @message = nil
18
+ @details = nil
19
+ @key_modified = Hash.new
20
+ end
21
+
22
+ # The method to get the status
23
+ # @return An instance of Util::Choice
24
+
25
+ def status
26
+ @status
27
+ end
28
+
29
+ # The method to set the value to status
30
+ # @param status [Util::Choice] An instance of Util::Choice
31
+
32
+ def status=(status)
33
+ if status!=nil and !status.is_a? Util::Choice
34
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
35
+ end
36
+ @status = status
37
+ @key_modified['status'] = 1
38
+ end
39
+
40
+ # The method to get the code
41
+ # @return An instance of Util::Choice
42
+
43
+ def code
44
+ @code
45
+ end
46
+
47
+ # The method to set the value to code
48
+ # @param code [Util::Choice] An instance of Util::Choice
49
+
50
+ def code=(code)
51
+ if code!=nil and !code.is_a? Util::Choice
52
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
53
+ end
54
+ @code = code
55
+ @key_modified['code'] = 1
56
+ end
57
+
58
+ # The method to get the message
59
+ # @return An instance of Util::Choice
60
+
61
+ def message
62
+ @message
63
+ end
64
+
65
+ # The method to set the value to message
66
+ # @param message [Util::Choice] An instance of Util::Choice
67
+
68
+ def message=(message)
69
+ if message!=nil and !message.is_a? Util::Choice
70
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
71
+ end
72
+ @message = message
73
+ @key_modified['message'] = 1
74
+ end
75
+
76
+ # The method to get the details
77
+ # @return An instance of Hash
78
+
79
+ def details
80
+ @details
81
+ end
82
+
83
+ # The method to set the value to details
84
+ # @param details [Hash] An instance of Hash
85
+
86
+ def details=(details)
87
+ if details!=nil and !details.is_a? Hash
88
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
89
+ end
90
+ @details = details
91
+ @key_modified['details'] = 1
92
+ end
93
+
94
+ # The method to check if the user has modified the given key
95
+ # @param key [String] A String
96
+ # @return A Integer value
97
+
98
+ def is_key_modified(key)
99
+ if key!=nil and !key.is_a? String
100
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
101
+ end
102
+ if @key_modified.key?(key)
103
+ return @key_modified[key]
104
+ end
105
+
106
+ nil
107
+ end
108
+
109
+ # The method to mark the given key as modified
110
+ # @param key [String] A String
111
+ # @param modification [Integer] A Integer
112
+
113
+ def set_key_modified(key, modification)
114
+ if key!=nil and !key.is_a? String
115
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
116
+ end
117
+ if modification!=nil and !modification.is_a? Integer
118
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
119
+ end
120
+ @key_modified[key] = modification
121
+ end
122
+
123
+ end
124
+ end
125
+ end
@@ -0,0 +1,63 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module CancelMeetings
5
+ class BodyWrapper
6
+ include Util::Model
7
+
8
+ # Creates an instance of BodyWrapper
9
+ def initialize
10
+ @data = nil
11
+ @key_modified = Hash.new
12
+ end
13
+
14
+ # The method to get the data
15
+ # @return An instance of Array
16
+
17
+ def data
18
+ @data
19
+ end
20
+
21
+ # The method to set the value to data
22
+ # @param data [Array] An instance of Array
23
+
24
+ def data=(data)
25
+ if data!=nil and !data.is_a? Array
26
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: data EXPECTED TYPE: Array', nil, nil)
27
+ end
28
+ @data = data
29
+ @key_modified['data'] = 1
30
+ end
31
+
32
+ # The method to check if the user has modified the given key
33
+ # @param key [String] A String
34
+ # @return A Integer value
35
+
36
+ def is_key_modified(key)
37
+ if key!=nil and !key.is_a? String
38
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
39
+ end
40
+ if @key_modified.key?(key)
41
+ return @key_modified[key]
42
+ end
43
+
44
+ nil
45
+ end
46
+
47
+ # The method to mark the given key as modified
48
+ # @param key [String] A String
49
+ # @param modification [Integer] A Integer
50
+
51
+ def set_key_modified(key, modification)
52
+ if key!=nil and !key.is_a? String
53
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
54
+ end
55
+ if modification!=nil and !modification.is_a? Integer
56
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
57
+ end
58
+ @key_modified[key] = modification
59
+ end
60
+
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,43 @@
1
+ require_relative '../exception/sdk_exception'
2
+ require_relative '../util/api_response'
3
+ require_relative '../util/common_api_handler'
4
+ require_relative '../util/constants'
5
+
6
+ module ZOHOCRMSDK
7
+ module CancelMeetings
8
+ class CancelMeetingsOperations
9
+
10
+ # Creates an instance of CancelMeetingsOperations with the given parameters
11
+ # @param event_id [Integer] A Integer
12
+ def initialize(event_id)
13
+ if !event_id.is_a? Integer
14
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: event_id EXPECTED TYPE: Integer', nil, nil)
15
+ end
16
+ @event_id = event_id
17
+ end
18
+
19
+ # The method to cancel meetings
20
+ # @param request [BodyWrapper] An instance of BodyWrapper
21
+ # @return An instance of APIResponse
22
+ # @raise SDKException
23
+ def cancel_meetings(request)
24
+ if request!=nil and !request.is_a? BodyWrapper
25
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: request EXPECTED TYPE: BodyWrapper', nil, nil)
26
+ end
27
+ handler_instance = Handler::CommonAPIHandler.new
28
+ api_path = ''
29
+ api_path = api_path + '/crm/v2.1/Events/'
30
+ api_path = api_path + @event_id.to_s
31
+ api_path = api_path + '/actions/cancel'
32
+ handler_instance.api_path = api_path
33
+ handler_instance.http_method = Constants::REQUEST_METHOD_POST
34
+ handler_instance.category_method = 'ACTION'
35
+ handler_instance.content_type = 'application/json'
36
+ handler_instance.request = request
37
+ require_relative 'action_handler'
38
+ handler_instance.api_call(ActionHandler.name, 'application/json')
39
+ end
40
+
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,63 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module CancelMeetings
5
+ class Notify
6
+ include Util::Model
7
+
8
+ # Creates an instance of Notify
9
+ def initialize
10
+ @send_cancelling_mail = nil
11
+ @key_modified = Hash.new
12
+ end
13
+
14
+ # The method to get the send_cancelling_mail
15
+ # @return A Boolean value
16
+
17
+ def send_cancelling_mail
18
+ @send_cancelling_mail
19
+ end
20
+
21
+ # The method to set the value to send_cancelling_mail
22
+ # @param send_cancelling_mail [Boolean] A Boolean
23
+
24
+ def send_cancelling_mail=(send_cancelling_mail)
25
+ if send_cancelling_mail!=nil and ! [true, false].include?send_cancelling_mail
26
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: send_cancelling_mail EXPECTED TYPE: Boolean', nil, nil)
27
+ end
28
+ @send_cancelling_mail = send_cancelling_mail
29
+ @key_modified['send_cancelling_mail'] = 1
30
+ end
31
+
32
+ # The method to check if the user has modified the given key
33
+ # @param key [String] A String
34
+ # @return A Integer value
35
+
36
+ def is_key_modified(key)
37
+ if key!=nil and !key.is_a? String
38
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
39
+ end
40
+ if @key_modified.key?(key)
41
+ return @key_modified[key]
42
+ end
43
+
44
+ nil
45
+ end
46
+
47
+ # The method to mark the given key as modified
48
+ # @param key [String] A String
49
+ # @param modification [Integer] A Integer
50
+
51
+ def set_key_modified(key, modification)
52
+ if key!=nil and !key.is_a? String
53
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
54
+ end
55
+ if modification!=nil and !modification.is_a? Integer
56
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
57
+ end
58
+ @key_modified[key] = modification
59
+ end
60
+
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,123 @@
1
+ require_relative '../util/choice'
2
+ require_relative '../util/model'
3
+
4
+ module ZOHOCRMSDK
5
+ module CancelMeetings
6
+ require_relative 'action_response'
7
+ class SuccessResponse
8
+ include Util::Model
9
+ include ActionResponse
10
+
11
+ # Creates an instance of SuccessResponse
12
+ def initialize
13
+ @code = nil
14
+ @message = nil
15
+ @status = nil
16
+ @details = nil
17
+ @key_modified = Hash.new
18
+ end
19
+
20
+ # The method to get the code
21
+ # @return An instance of Util::Choice
22
+
23
+ def code
24
+ @code
25
+ end
26
+
27
+ # The method to set the value to code
28
+ # @param code [Util::Choice] An instance of Util::Choice
29
+
30
+ def code=(code)
31
+ if code!=nil and !code.is_a? Util::Choice
32
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: code EXPECTED TYPE: Util::Choice', nil, nil)
33
+ end
34
+ @code = code
35
+ @key_modified['code'] = 1
36
+ end
37
+
38
+ # The method to get the message
39
+ # @return An instance of Util::Choice
40
+
41
+ def message
42
+ @message
43
+ end
44
+
45
+ # The method to set the value to message
46
+ # @param message [Util::Choice] An instance of Util::Choice
47
+
48
+ def message=(message)
49
+ if message!=nil and !message.is_a? Util::Choice
50
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: message EXPECTED TYPE: Util::Choice', nil, nil)
51
+ end
52
+ @message = message
53
+ @key_modified['message'] = 1
54
+ end
55
+
56
+ # The method to get the status
57
+ # @return An instance of Util::Choice
58
+
59
+ def status
60
+ @status
61
+ end
62
+
63
+ # The method to set the value to status
64
+ # @param status [Util::Choice] An instance of Util::Choice
65
+
66
+ def status=(status)
67
+ if status!=nil and !status.is_a? Util::Choice
68
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: status EXPECTED TYPE: Util::Choice', nil, nil)
69
+ end
70
+ @status = status
71
+ @key_modified['status'] = 1
72
+ end
73
+
74
+ # The method to get the details
75
+ # @return An instance of Hash
76
+
77
+ def details
78
+ @details
79
+ end
80
+
81
+ # The method to set the value to details
82
+ # @param details [Hash] An instance of Hash
83
+
84
+ def details=(details)
85
+ if details!=nil and !details.is_a? Hash
86
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: details EXPECTED TYPE: Hash', nil, nil)
87
+ end
88
+ @details = details
89
+ @key_modified['details'] = 1
90
+ end
91
+
92
+ # The method to check if the user has modified the given key
93
+ # @param key [String] A String
94
+ # @return A Integer value
95
+
96
+ def is_key_modified(key)
97
+ if key!=nil and !key.is_a? String
98
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
99
+ end
100
+ if @key_modified.key?(key)
101
+ return @key_modified[key]
102
+ end
103
+
104
+ nil
105
+ end
106
+
107
+ # The method to mark the given key as modified
108
+ # @param key [String] A String
109
+ # @param modification [Integer] A Integer
110
+
111
+ def set_key_modified(key, modification)
112
+ if key!=nil and !key.is_a? String
113
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
114
+ end
115
+ if modification!=nil and !modification.is_a? Integer
116
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
117
+ end
118
+ @key_modified[key] = modification
119
+ end
120
+
121
+ end
122
+ end
123
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,63 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module Record
5
+ class ApplyFeatureExecution
6
+ include Util::Model
7
+
8
+ # Creates an instance of ApplyFeatureExecution
9
+ def initialize
10
+ @name = 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 check if the user has modified the given key
33
+ # @param key [String] A String
34
+ # @return A Integer value
35
+
36
+ def is_key_modified(key)
37
+ if key!=nil and !key.is_a? String
38
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
39
+ end
40
+ if @key_modified.key?(key)
41
+ return @key_modified[key]
42
+ end
43
+
44
+ nil
45
+ end
46
+
47
+ # The method to mark the given key as modified
48
+ # @param key [String] A String
49
+ # @param modification [Integer] A Integer
50
+
51
+ def set_key_modified(key, modification)
52
+ if key!=nil and !key.is_a? String
53
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
54
+ end
55
+ if modification!=nil and !modification.is_a? Integer
56
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
57
+ end
58
+ @key_modified[key] = modification
59
+ end
60
+
61
+ end
62
+ end
63
+ end