ZOHOCRMSDK6_0 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2a6cea40a51128eb5eb3c8d898bc7017730874c6119a2890896df45901a633a
4
- data.tar.gz: 341bd0e2717043d7d0e4a22b20e227a5b3a8b805e9ff26d4b35d876991c5fa34
3
+ metadata.gz: 4de82be1c481af4eb5c5f5592948750cd40f2f018ccad782fa319db323bd4786
4
+ data.tar.gz: 2bcf247dd3f9020fc36649d824c3ea13bb0e4fa03ca9cf3949e2b8b22f284c5b
5
5
  SHA512:
6
- metadata.gz: 579fdf4bd68f15c0af345b9609bd968c01b7f6444c64c82c95fca1d115e25867f1d2fe8fba9d95da49b212362aac58deb2f5925685ec33ea97ee5c90ee796605
7
- data.tar.gz: cd6718343a7a72fdcb8775c2e432ab33043863fd76ba06819255bd36c0cb1598d107e834b69e73c5e637044456a610ae120f0390c979252ac21de966125f51a6
6
+ metadata.gz: 41206e67c5339028b5bfbf1afb88b345592955813a3f8d1975bd61854b46672647019710d8a95b76a3abde291b4af4168545496a4e9ab63587a80749792c39cd
7
+ data.tar.gz: 15b1f931837496238352c4521a7aa4e809c93a0a5a15cf393df15ca8970f09b10fae05e132fa5ece87b6335716f866abaca211ad1ce50e7b2e5c6a5b2f92562f
data/src/ZOHOCRMSDK6_0.rb CHANGED
@@ -1301,4 +1301,5 @@ require 'com/zoho/api/authenticator/store/db_store.rb'
1301
1301
  require 'com/zoho/api/authenticator/store/token_store.rb'
1302
1302
  require 'com/zoho/api/authenticator/store/file_store.rb'
1303
1303
  require 'com/zoho/crm/api/users/count_handler.rb'
1304
- require 'com/zoho/crm/api/users/count_wrapper.rb'
1304
+ require 'com/zoho/crm/api/users/count_wrapper.rb'
1305
+ require 'com/zoho/crm/api/convert_lead/move_attachments_to.rb'
@@ -3,7 +3,7 @@ require_relative '../util/model'
3
3
 
4
4
  module ZOHOCRMSDK
5
5
  module ChangeOwner
6
- class MassWrapper < ChangeOwner::BodyWrapper
6
+ class MassWrapper < BodyWrapper
7
7
  include Util::Model
8
8
 
9
9
  # Creates an instance of MassWrapper
@@ -13,6 +13,7 @@ module ZOHOCRMSDK
13
13
  @overwrite = nil
14
14
  @notify_lead_owner = nil
15
15
  @notify_new_entity_owner = nil
16
+ @move_attachments_to = nil
16
17
  @accounts = nil
17
18
  @contacts = nil
18
19
  @assign_to = nil
@@ -76,6 +77,24 @@ module ZOHOCRMSDK
76
77
  @key_modified['notify_new_entity_owner'] = 1
77
78
  end
78
79
 
80
+ # The method to get the move_attachments_to
81
+ # @return An instance of MoveAttachmentsTo
82
+
83
+ def move_attachments_to
84
+ @move_attachments_to
85
+ end
86
+
87
+ # The method to set the value to move_attachments_to
88
+ # @param move_attachments_to [MoveAttachmentsTo] An instance of MoveAttachmentsTo
89
+
90
+ def move_attachments_to=(move_attachments_to)
91
+ if move_attachments_to!=nil and !move_attachments_to.is_a? MoveAttachmentsTo
92
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: move_attachments_to EXPECTED TYPE: MoveAttachmentsTo', nil, nil)
93
+ end
94
+ @move_attachments_to = move_attachments_to
95
+ @key_modified['move_attachments_to'] = 1
96
+ end
97
+
79
98
  # The method to get the accounts
80
99
  # @return An instance of Record::Record
81
100
 
@@ -0,0 +1,82 @@
1
+ require_relative '../util/model'
2
+
3
+ module ZOHOCRMSDK
4
+ module ConvertLead
5
+ class MoveAttachmentsTo
6
+ include Util::Model
7
+
8
+ # Creates an instance of MoveAttachmentsTo
9
+ def initialize
10
+ @id = nil
11
+ @api_name = nil
12
+ @key_modified = Hash.new
13
+ end
14
+
15
+ # The method to get the id
16
+ # @return A Integer value
17
+
18
+ def id
19
+ @id
20
+ end
21
+
22
+ # The method to set the value to id
23
+ # @param id [Integer] A Integer
24
+
25
+ def id=(id)
26
+ if id!=nil and !id.is_a? Integer
27
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: Integer', nil, nil)
28
+ end
29
+ @id = id
30
+ @key_modified['id'] = 1
31
+ end
32
+
33
+ # The method to get the api_name
34
+ # @return A String value
35
+
36
+ def api_name
37
+ @api_name
38
+ end
39
+
40
+ # The method to set the value to api_name
41
+ # @param api_name [String] A String
42
+
43
+ def api_name=(api_name)
44
+ if api_name!=nil and !api_name.is_a? String
45
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: api_name EXPECTED TYPE: String', nil, nil)
46
+ end
47
+ @api_name = api_name
48
+ @key_modified['api_name'] = 1
49
+ end
50
+
51
+ # The method to check if the user has modified the given key
52
+ # @param key [String] A String
53
+ # @return A Integer value
54
+
55
+ def is_key_modified(key)
56
+ if key!=nil and !key.is_a? String
57
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
58
+ end
59
+ if @key_modified.key?(key)
60
+ return @key_modified[key]
61
+ end
62
+
63
+ nil
64
+ end
65
+
66
+ # The method to mark the given key as modified
67
+ # @param key [String] A String
68
+ # @param modification [Integer] A Integer
69
+
70
+ def set_key_modified(key, modification)
71
+ if key!=nil and !key.is_a? String
72
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: key EXPECTED TYPE: String', nil, nil)
73
+ end
74
+ if modification!=nil and !modification.is_a? Integer
75
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: modification EXPECTED TYPE: Integer', nil, nil)
76
+ end
77
+ @key_modified[key] = modification
78
+ end
79
+
80
+ end
81
+ end
82
+ end
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -1,6 +1,6 @@
1
+ require_relative '../record/record'
1
2
  require_relative '../tags/tag'
2
3
  require_relative '../users/minified_user'
3
- require_relative '../record/record'
4
4
  require_relative '../util/model'
5
5
 
6
6
  module ZOHOCRMSDK
@@ -23,7 +23,7 @@ module ZOHOCRMSDK
23
23
  end
24
24
  handler_instance = Handler::CommonAPIHandler.new
25
25
  api_path = ''
26
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
26
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
27
27
  handler_instance.api_path = api_path
28
28
  handler_instance.http_method = Constants::REQUEST_METHOD_POST
29
29
  handler_instance.category_method = 'CREATE'
@@ -44,7 +44,7 @@ module ZOHOCRMSDK
44
44
  end
45
45
  handler_instance = Handler::CommonAPIHandler.new
46
46
  api_path = ''
47
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
47
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
48
48
  handler_instance.api_path = api_path
49
49
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
50
50
  handler_instance.category_method = 'UPDATE'
@@ -65,7 +65,7 @@ module ZOHOCRMSDK
65
65
  end
66
66
  handler_instance = Handler::CommonAPIHandler.new
67
67
  api_path = ''
68
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s'
68
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s'
69
69
  handler_instance.api_path = api_path
70
70
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
71
71
  handler_instance.category_method = 'READ'
@@ -88,7 +88,7 @@ module ZOHOCRMSDK
88
88
  end
89
89
  handler_instance = Handler::CommonAPIHandler.new
90
90
  api_path = ''
91
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
91
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
92
92
  api_path = api_path + id.to_s
93
93
  handler_instance.api_path = api_path
94
94
  handler_instance.http_method = Constants::REQUEST_METHOD_PUT
@@ -113,7 +113,7 @@ module ZOHOCRMSDK
113
113
  end
114
114
  handler_instance = Handler::CommonAPIHandler.new
115
115
  api_path = ''
116
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
116
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
117
117
  api_path = api_path + id.to_s
118
118
  handler_instance.api_path = api_path
119
119
  handler_instance.http_method = Constants::REQUEST_METHOD_GET
@@ -133,7 +133,7 @@ module ZOHOCRMSDK
133
133
  end
134
134
  handler_instance = Handler::CommonAPIHandler.new
135
135
  api_path = ''
136
- api_path = api_path + 'crm/v6/Appointments_Rescheduled_History__s/'
136
+ api_path = api_path + '/crm/v6/Appointments_Rescheduled_History__s/'
137
137
  api_path = api_path + id.to_s
138
138
  handler_instance.api_path = api_path
139
139
  handler_instance.http_method = Constants::REQUEST_METHOD_DELETE
@@ -163,6 +163,10 @@ module ZOHOCRMSDK
163
163
  def self.sort_by
164
164
  @@sort_by
165
165
  end
166
+ @@ids = Param.new('ids', 'com.zoho.crm.api.RescheduleHistory.GetAppointmentsRescheduledHistoryParam')
167
+ def self.ids
168
+ @@ids
169
+ end
166
170
  end
167
171
 
168
172
  class GetAppointmentRescheduledHistoryParam
@@ -176,7 +176,7 @@ module ZOHOCRMSDK
176
176
  end
177
177
  handler_instance = Handler::CommonAPIHandler.new
178
178
  api_path = ''
179
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
179
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
180
180
  api_path = api_path + id.to_s
181
181
  api_path = api_path + '/actions/activate'
182
182
  handler_instance.api_path = api_path
@@ -196,7 +196,7 @@ module ZOHOCRMSDK
196
196
  end
197
197
  handler_instance = Handler::CommonAPIHandler.new
198
198
  api_path = ''
199
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
199
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
200
200
  api_path = api_path + id.to_s
201
201
  api_path = api_path + '/actions/activate'
202
202
  handler_instance.api_path = api_path
@@ -216,7 +216,7 @@ module ZOHOCRMSDK
216
216
  end
217
217
  handler_instance = Handler::CommonAPIHandler.new
218
218
  api_path = ''
219
- api_path = api_path + 'crm/v6/settings/automation/scoring_rules/'
219
+ api_path = api_path + '/crm/v6/settings/automation/scoring_rules/'
220
220
  api_path = api_path + id.to_s
221
221
  api_path = api_path + '/actions/clone'
222
222
  handler_instance.api_path = api_path
@@ -240,7 +240,7 @@ module ZOHOCRMSDK
240
240
  end
241
241
  handler_instance = Handler::CommonAPIHandler.new
242
242
  api_path = ''
243
- api_path = api_path + 'crm/v6/'
243
+ api_path = api_path + '/crm/v6/'
244
244
  api_path = api_path + module_1.to_s
245
245
  api_path = api_path + '/actions/run_scoring_rules'
246
246
  handler_instance.api_path = api_path
@@ -266,7 +266,7 @@ module ZOHOCRMSDK
266
266
  end
267
267
  handler_instance = Handler::CommonAPIHandler.new
268
268
  api_path = ''
269
- api_path = api_path + 'crm/v6/'
269
+ api_path = api_path + '/crm/v6/'
270
270
  api_path = api_path + module_1.to_s
271
271
  api_path = api_path + '/actions/run_scoring_rules'
272
272
  handler_instance.api_path = api_path
@@ -351,18 +351,18 @@ module ZOHOCRMSDK
351
351
  end
352
352
 
353
353
  # The method to get the phone
354
- # @return A Integer value
354
+ # @return A String value
355
355
 
356
356
  def phone
357
357
  get_key_value('phone')
358
358
  end
359
359
 
360
360
  # The method to set the value to phone
361
- # @param phone [Integer] A Integer
361
+ # @param phone [String] A String
362
362
 
363
363
  def phone=(phone)
364
- if phone!=nil and !phone.is_a? Integer
365
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: phone EXPECTED TYPE: Integer', nil, nil)
364
+ if phone!=nil and !phone.is_a? String
365
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: phone EXPECTED TYPE: String', nil, nil)
366
366
  end
367
367
  add_key_value('phone', phone)
368
368
  end
@@ -589,18 +589,18 @@ module ZOHOCRMSDK
589
589
  end
590
590
 
591
591
  # The method to get the mobile
592
- # @return A Integer value
592
+ # @return A String value
593
593
 
594
594
  def mobile
595
595
  get_key_value('mobile')
596
596
  end
597
597
 
598
598
  # The method to set the value to mobile
599
- # @param mobile [Integer] A Integer
599
+ # @param mobile [String] A String
600
600
 
601
601
  def mobile=(mobile)
602
- if mobile!=nil and !mobile.is_a? Integer
603
- raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: mobile EXPECTED TYPE: Integer', nil, nil)
602
+ if mobile!=nil and !mobile.is_a? String
603
+ raise SDKException.new(Constants::DATA_TYPE_ERROR, 'KEY: mobile EXPECTED TYPE: String', nil, nil)
604
604
  end
605
605
  add_key_value('mobile', mobile)
606
606
  end
@@ -175,7 +175,7 @@ module ZOHOCRMSDK
175
175
 
176
176
  ZOHO_SDK = 'X-ZOHO-SDK'
177
177
 
178
- SDK_VERSION = '2.0.0'
178
+ SDK_VERSION = '3.0.0'
179
179
 
180
180
  SET_CONTENT_TYPE_HEADER = ['/crm/bulk/v6/read', '/crm/bulk/v6/write']
181
181