ZOHOCRMSDK2_1 1.0.0 → 2.0.0
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/ZOHOCRMSDK2_1.rb +11 -1
- data/src/com/zoho/crm/api/cancel_meetings/action_handler.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_response.rb +12 -0
- data/src/com/zoho/crm/api/cancel_meetings/action_wrapper.rb +65 -0
- data/src/com/zoho/crm/api/cancel_meetings/api_exception.rb +125 -0
- data/src/com/zoho/crm/api/cancel_meetings/body_wrapper.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/cancel_meetings_operations.rb +43 -0
- data/src/com/zoho/crm/api/cancel_meetings/notify.rb +63 -0
- data/src/com/zoho/crm/api/cancel_meetings/success_response.rb +123 -0
- data/src/com/zoho/crm/api/dc/jp_datacenter.rb +21 -0
- data/src/com/zoho/crm/api/initializer.rb +17 -0
- data/src/com/zoho/crm/api/record/apply_feature_execution.rb +63 -0
- data/src/com/zoho/crm/api/record/body_wrapper.rb +19 -0
- data/src/com/zoho/crm/api/util/constants.rb +1 -1
- data/src/com/zoho/crm/api/util/module_fields_handler.rb +8 -1
- data/src/com/zoho/crm/api/util/utility.rb +14 -9
- data/src/resources/JSONDetails.json +1 -1
- data/src/version.rb +1 -1
- metadata +18 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb388fbf82b718cea0b1b5980210239d0f183746a170a5611f3a779fa250f504
|
4
|
+
data.tar.gz: c18b0fa37d54c4e9b1d2e97751e9a093fdd2745c21151fa4939af11d600014e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -311,6 +312,7 @@ require 'com/zoho/crm/api/dc/au_datacenter.rb'
|
|
311
312
|
require 'com/zoho/crm/api/dc/cn_datacenter.rb'
|
312
313
|
require 'com/zoho/crm/api/dc/us_datacenter.rb'
|
313
314
|
require 'com/zoho/crm/api/dc/datacenter.rb'
|
315
|
+
require 'com/zoho/crm/api/dc/jp_datacenter.rb'
|
314
316
|
require 'com/zoho/crm/api/assignment_rules/assignment_rules_operations.rb'
|
315
317
|
require 'com/zoho/crm/api/assignment_rules/assignment_rule.rb'
|
316
318
|
require 'com/zoho/crm/api/assignment_rules/response_wrapper.rb'
|
@@ -450,4 +452,12 @@ require 'com/zoho/api/authenticator/oauth_token.rb'
|
|
450
452
|
require 'com/zoho/api/authenticator/token.rb'
|
451
453
|
require 'com/zoho/api/authenticator/store/db_store.rb'
|
452
454
|
require 'com/zoho/api/authenticator/store/token_store.rb'
|
453
|
-
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'
|
@@ -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
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative 'datacenter'
|
2
|
+
|
3
|
+
module ZOHOCRMSDK
|
4
|
+
module DC
|
5
|
+
class JPDataCenter < DataCenter
|
6
|
+
def initialize; end
|
7
|
+
|
8
|
+
def get_iam_url
|
9
|
+
'https://accounts.zoho.jp/oauth/v2/token'
|
10
|
+
end
|
11
|
+
|
12
|
+
def get_file_upload_url
|
13
|
+
'https://content.zohoapis.jp'
|
14
|
+
end
|
15
|
+
|
16
|
+
PRODUCTION = Environment.new('https://www.zohoapis.jp', JPDataCenter.new.get_iam_url, JPDataCenter.new.get_file_upload_url,"jp_prd")
|
17
|
+
SANDBOX = Environment.new('https://sandbox.zohoapis.jp', JPDataCenter.new.get_iam_url, JPDataCenter.new.get_file_upload_url,"jp_sdb")
|
18
|
+
DEVELOPER = Environment.new('https://developer.zohoapis.jp', JPDataCenter.new.get_iam_url, JPDataCenter.new.get_file_upload_url,"jp_dev")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -1,3 +1,20 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2021, ZOHO CORPORATION PRIVATE LIMITED
|
3
|
+
All rights reserved.
|
4
|
+
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
you may not use this file except in compliance with the License.
|
7
|
+
You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
=end
|
17
|
+
|
1
18
|
require 'uri'
|
2
19
|
require 'net/http'
|
3
20
|
require 'cgi'
|
@@ -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
|