purecloud 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -10
- data/config-ruby.json +1 -1
- data/lib/purecloud.rb +73 -73
- data/lib/purecloud/models/address.rb +37 -57
- data/lib/purecloud/models/campaign.rb +17 -219
- data/lib/purecloud/models/contact_list.rb +1 -111
- data/lib/purecloud/models/data_item.rb +19 -23
- data/lib/purecloud/models/email_message.rb +56 -26
- data/lib/purecloud/models/entity.rb +20 -10
- data/lib/purecloud/models/quality_audit.rb +11 -11
- data/lib/purecloud/models/response.rb +84 -14
- data/lib/purecloud/models/rule.rb +120 -28
- data/lib/purecloud/models/time_slot.rb +0 -3
- data/lib/purecloud/version.rb +1 -1
- data/newVersion.md +1 -0
- data/swagger.json +1 -1
- data/version.json +1 -1
- metadata +3 -2
@@ -2,41 +2,33 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class Address
|
5
|
-
attr_accessor :
|
5
|
+
attr_accessor :address1
|
6
6
|
|
7
|
-
attr_accessor :
|
7
|
+
attr_accessor :address2
|
8
8
|
|
9
|
-
attr_accessor :
|
9
|
+
attr_accessor :city
|
10
10
|
|
11
|
-
attr_accessor :
|
11
|
+
attr_accessor :state
|
12
12
|
|
13
|
-
attr_accessor :
|
13
|
+
attr_accessor :postal_code
|
14
14
|
|
15
|
-
attr_accessor :
|
16
|
-
|
17
|
-
attr_accessor :nam
|
18
|
-
|
19
|
-
attr_accessor :pc
|
15
|
+
attr_accessor :country_code
|
20
16
|
|
21
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
18
|
def self.attribute_map
|
23
19
|
{
|
24
20
|
|
25
|
-
:'
|
26
|
-
|
27
|
-
:'a1' => :'A1',
|
28
|
-
|
29
|
-
:'a3' => :'A3',
|
21
|
+
:'address1' => :'address1',
|
30
22
|
|
31
|
-
:'
|
23
|
+
:'address2' => :'address2',
|
32
24
|
|
33
|
-
:'
|
25
|
+
:'city' => :'city',
|
34
26
|
|
35
|
-
:'
|
27
|
+
:'state' => :'state',
|
36
28
|
|
37
|
-
:'
|
29
|
+
:'postal_code' => :'postalCode',
|
38
30
|
|
39
|
-
:'
|
31
|
+
:'country_code' => :'countryCode'
|
40
32
|
|
41
33
|
}
|
42
34
|
end
|
@@ -44,14 +36,12 @@ module PureCloud
|
|
44
36
|
# Attribute type mapping.
|
45
37
|
def self.swagger_types
|
46
38
|
{
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'nam' => :'String',
|
54
|
-
:'pc' => :'String'
|
39
|
+
:'address1' => :'String',
|
40
|
+
:'address2' => :'String',
|
41
|
+
:'city' => :'String',
|
42
|
+
:'state' => :'String',
|
43
|
+
:'postal_code' => :'String',
|
44
|
+
:'country_code' => :'String'
|
55
45
|
|
56
46
|
}
|
57
47
|
end
|
@@ -63,36 +53,28 @@ module PureCloud
|
|
63
53
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
64
54
|
|
65
55
|
|
66
|
-
if attributes[:'
|
67
|
-
self.
|
68
|
-
end
|
69
|
-
|
70
|
-
if attributes[:'A1']
|
71
|
-
self.a1 = attributes[:'A1']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes[:'A3']
|
75
|
-
self.a3 = attributes[:'A3']
|
56
|
+
if attributes[:'address1']
|
57
|
+
self.address1 = attributes[:'address1']
|
76
58
|
end
|
77
59
|
|
78
|
-
if attributes[:'
|
79
|
-
self.
|
60
|
+
if attributes[:'address2']
|
61
|
+
self.address2 = attributes[:'address2']
|
80
62
|
end
|
81
63
|
|
82
|
-
if attributes[:'
|
83
|
-
self.
|
64
|
+
if attributes[:'city']
|
65
|
+
self.city = attributes[:'city']
|
84
66
|
end
|
85
67
|
|
86
|
-
if attributes[:'
|
87
|
-
self.
|
68
|
+
if attributes[:'state']
|
69
|
+
self.state = attributes[:'state']
|
88
70
|
end
|
89
71
|
|
90
|
-
if attributes[:'
|
91
|
-
self.
|
72
|
+
if attributes[:'postalCode']
|
73
|
+
self.postal_code = attributes[:'postalCode']
|
92
74
|
end
|
93
75
|
|
94
|
-
if attributes[:'
|
95
|
-
self.
|
76
|
+
if attributes[:'countryCode']
|
77
|
+
self.country_code = attributes[:'countryCode']
|
96
78
|
end
|
97
79
|
|
98
80
|
end
|
@@ -101,14 +83,12 @@ module PureCloud
|
|
101
83
|
def ==(o)
|
102
84
|
return true if self.equal?(o)
|
103
85
|
self.class == o.class &&
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
nam == o.nam &&
|
111
|
-
pc == o.pc
|
86
|
+
address1 == o.address1 &&
|
87
|
+
address2 == o.address2 &&
|
88
|
+
city == o.city &&
|
89
|
+
state == o.state &&
|
90
|
+
postal_code == o.postal_code &&
|
91
|
+
country_code == o.country_code
|
112
92
|
end
|
113
93
|
|
114
94
|
# @see the `==` method
|
@@ -118,7 +98,7 @@ module PureCloud
|
|
118
98
|
|
119
99
|
# Calculate hash code according to all attributes.
|
120
100
|
def hash
|
121
|
-
[
|
101
|
+
[address1, address2, city, state, postal_code, country_code].hash
|
122
102
|
end
|
123
103
|
|
124
104
|
# build the object from hash
|
@@ -2,60 +2,18 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class Campaign
|
5
|
-
# The globally unique identifier for the object.
|
6
5
|
attr_accessor :id
|
7
6
|
|
8
7
|
attr_accessor :name
|
9
8
|
|
10
|
-
|
11
|
-
attr_accessor :date_created
|
12
|
-
|
13
|
-
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
14
|
-
attr_accessor :date_modified
|
15
|
-
|
16
|
-
attr_accessor :version
|
17
|
-
|
18
|
-
attr_accessor :contact_list
|
19
|
-
|
20
|
-
attr_accessor :queue
|
21
|
-
|
22
|
-
attr_accessor :dialing_mode
|
23
|
-
|
24
|
-
attr_accessor :script
|
25
|
-
|
26
|
-
attr_accessor :edge_group
|
27
|
-
|
28
|
-
attr_accessor :campaign_status
|
29
|
-
|
30
|
-
attr_accessor :phone_columns
|
31
|
-
|
32
|
-
attr_accessor :abandon_rate
|
33
|
-
|
34
|
-
attr_accessor :dnc_lists
|
35
|
-
|
36
|
-
attr_accessor :callable_time_set
|
37
|
-
|
38
|
-
attr_accessor :call_analysis_response_set
|
39
|
-
|
40
|
-
attr_accessor :errors
|
41
|
-
|
42
|
-
attr_accessor :caller_name
|
43
|
-
|
44
|
-
attr_accessor :caller_address
|
45
|
-
|
46
|
-
attr_accessor :outbound_line_count
|
9
|
+
attr_accessor :self_uri
|
47
10
|
|
48
|
-
attr_accessor :
|
11
|
+
attr_accessor :phone_number_columns
|
49
12
|
|
50
13
|
attr_accessor :skip_preview_disabled
|
51
14
|
|
52
15
|
attr_accessor :preview_time_out_seconds
|
53
16
|
|
54
|
-
attr_accessor :single_number_preview
|
55
|
-
|
56
|
-
# The URI for this object
|
57
|
-
attr_accessor :self_uri
|
58
|
-
|
59
17
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
18
|
def self.attribute_map
|
61
19
|
{
|
@@ -64,51 +22,13 @@ module PureCloud
|
|
64
22
|
|
65
23
|
:'name' => :'name',
|
66
24
|
|
67
|
-
:'
|
68
|
-
|
69
|
-
:'date_modified' => :'dateModified',
|
25
|
+
:'self_uri' => :'selfUri',
|
70
26
|
|
71
|
-
:'
|
72
|
-
|
73
|
-
:'contact_list' => :'contactList',
|
74
|
-
|
75
|
-
:'queue' => :'queue',
|
76
|
-
|
77
|
-
:'dialing_mode' => :'dialingMode',
|
78
|
-
|
79
|
-
:'script' => :'script',
|
80
|
-
|
81
|
-
:'edge_group' => :'edgeGroup',
|
82
|
-
|
83
|
-
:'campaign_status' => :'campaignStatus',
|
84
|
-
|
85
|
-
:'phone_columns' => :'phoneColumns',
|
86
|
-
|
87
|
-
:'abandon_rate' => :'abandonRate',
|
88
|
-
|
89
|
-
:'dnc_lists' => :'dncLists',
|
90
|
-
|
91
|
-
:'callable_time_set' => :'callableTimeSet',
|
92
|
-
|
93
|
-
:'call_analysis_response_set' => :'callAnalysisResponseSet',
|
94
|
-
|
95
|
-
:'errors' => :'errors',
|
96
|
-
|
97
|
-
:'caller_name' => :'callerName',
|
98
|
-
|
99
|
-
:'caller_address' => :'callerAddress',
|
100
|
-
|
101
|
-
:'outbound_line_count' => :'outboundLineCount',
|
102
|
-
|
103
|
-
:'rule_sets' => :'ruleSets',
|
27
|
+
:'phone_number_columns' => :'phoneNumberColumns',
|
104
28
|
|
105
29
|
:'skip_preview_disabled' => :'skipPreviewDisabled',
|
106
30
|
|
107
|
-
:'preview_time_out_seconds' => :'previewTimeOutSeconds'
|
108
|
-
|
109
|
-
:'single_number_preview' => :'singleNumberPreview',
|
110
|
-
|
111
|
-
:'self_uri' => :'selfUri'
|
31
|
+
:'preview_time_out_seconds' => :'previewTimeOutSeconds'
|
112
32
|
|
113
33
|
}
|
114
34
|
end
|
@@ -118,29 +38,10 @@ module PureCloud
|
|
118
38
|
{
|
119
39
|
:'id' => :'String',
|
120
40
|
:'name' => :'String',
|
121
|
-
:'
|
122
|
-
:'
|
123
|
-
:'version' => :'Integer',
|
124
|
-
:'contact_list' => :'UriReference',
|
125
|
-
:'queue' => :'UriReference',
|
126
|
-
:'dialing_mode' => :'String',
|
127
|
-
:'script' => :'UriReference',
|
128
|
-
:'edge_group' => :'UriReference',
|
129
|
-
:'campaign_status' => :'String',
|
130
|
-
:'phone_columns' => :'Array<PhoneColumn>',
|
131
|
-
:'abandon_rate' => :'Float',
|
132
|
-
:'dnc_lists' => :'Array<UriReference>',
|
133
|
-
:'callable_time_set' => :'UriReference',
|
134
|
-
:'call_analysis_response_set' => :'UriReference',
|
135
|
-
:'errors' => :'Array<RestErrorDetail>',
|
136
|
-
:'caller_name' => :'String',
|
137
|
-
:'caller_address' => :'String',
|
138
|
-
:'outbound_line_count' => :'Integer',
|
139
|
-
:'rule_sets' => :'Array<UriReference>',
|
41
|
+
:'self_uri' => :'String',
|
42
|
+
:'phone_number_columns' => :'Array<PhoneNumberColumn>',
|
140
43
|
:'skip_preview_disabled' => :'BOOLEAN',
|
141
|
-
:'preview_time_out_seconds' => :'Integer'
|
142
|
-
:'single_number_preview' => :'BOOLEAN',
|
143
|
-
:'self_uri' => :'String'
|
44
|
+
:'preview_time_out_seconds' => :'Integer'
|
144
45
|
|
145
46
|
}
|
146
47
|
end
|
@@ -160,87 +61,13 @@ module PureCloud
|
|
160
61
|
self.name = attributes[:'name']
|
161
62
|
end
|
162
63
|
|
163
|
-
if attributes[:'
|
164
|
-
self.
|
165
|
-
end
|
166
|
-
|
167
|
-
if attributes[:'dateModified']
|
168
|
-
self.date_modified = attributes[:'dateModified']
|
169
|
-
end
|
170
|
-
|
171
|
-
if attributes[:'version']
|
172
|
-
self.version = attributes[:'version']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes[:'contactList']
|
176
|
-
self.contact_list = attributes[:'contactList']
|
177
|
-
end
|
178
|
-
|
179
|
-
if attributes[:'queue']
|
180
|
-
self.queue = attributes[:'queue']
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes[:'dialingMode']
|
184
|
-
self.dialing_mode = attributes[:'dialingMode']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes[:'script']
|
188
|
-
self.script = attributes[:'script']
|
189
|
-
end
|
190
|
-
|
191
|
-
if attributes[:'edgeGroup']
|
192
|
-
self.edge_group = attributes[:'edgeGroup']
|
193
|
-
end
|
194
|
-
|
195
|
-
if attributes[:'campaignStatus']
|
196
|
-
self.campaign_status = attributes[:'campaignStatus']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes[:'phoneColumns']
|
200
|
-
if (value = attributes[:'phoneColumns']).is_a?(Array)
|
201
|
-
self.phone_columns = value
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes[:'abandonRate']
|
206
|
-
self.abandon_rate = attributes[:'abandonRate']
|
207
|
-
end
|
208
|
-
|
209
|
-
if attributes[:'dncLists']
|
210
|
-
if (value = attributes[:'dncLists']).is_a?(Array)
|
211
|
-
self.dnc_lists = value
|
212
|
-
end
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes[:'callableTimeSet']
|
216
|
-
self.callable_time_set = attributes[:'callableTimeSet']
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes[:'callAnalysisResponseSet']
|
220
|
-
self.call_analysis_response_set = attributes[:'callAnalysisResponseSet']
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes[:'errors']
|
224
|
-
if (value = attributes[:'errors']).is_a?(Array)
|
225
|
-
self.errors = value
|
226
|
-
end
|
227
|
-
end
|
228
|
-
|
229
|
-
if attributes[:'callerName']
|
230
|
-
self.caller_name = attributes[:'callerName']
|
231
|
-
end
|
232
|
-
|
233
|
-
if attributes[:'callerAddress']
|
234
|
-
self.caller_address = attributes[:'callerAddress']
|
235
|
-
end
|
236
|
-
|
237
|
-
if attributes[:'outboundLineCount']
|
238
|
-
self.outbound_line_count = attributes[:'outboundLineCount']
|
64
|
+
if attributes[:'selfUri']
|
65
|
+
self.self_uri = attributes[:'selfUri']
|
239
66
|
end
|
240
67
|
|
241
|
-
if attributes[:'
|
242
|
-
if (value = attributes[:'
|
243
|
-
self.
|
68
|
+
if attributes[:'phoneNumberColumns']
|
69
|
+
if (value = attributes[:'phoneNumberColumns']).is_a?(Array)
|
70
|
+
self.phone_number_columns = value
|
244
71
|
end
|
245
72
|
end
|
246
73
|
|
@@ -254,16 +81,6 @@ module PureCloud
|
|
254
81
|
self.preview_time_out_seconds = attributes[:'previewTimeOutSeconds']
|
255
82
|
end
|
256
83
|
|
257
|
-
if attributes[:'singleNumberPreview']
|
258
|
-
self.single_number_preview = attributes[:'singleNumberPreview']
|
259
|
-
else
|
260
|
-
self.single_number_preview = false
|
261
|
-
end
|
262
|
-
|
263
|
-
if attributes[:'selfUri']
|
264
|
-
self.self_uri = attributes[:'selfUri']
|
265
|
-
end
|
266
|
-
|
267
84
|
end
|
268
85
|
|
269
86
|
# Check equality by comparing each attribute.
|
@@ -272,29 +89,10 @@ module PureCloud
|
|
272
89
|
self.class == o.class &&
|
273
90
|
id == o.id &&
|
274
91
|
name == o.name &&
|
275
|
-
|
276
|
-
|
277
|
-
version == o.version &&
|
278
|
-
contact_list == o.contact_list &&
|
279
|
-
queue == o.queue &&
|
280
|
-
dialing_mode == o.dialing_mode &&
|
281
|
-
script == o.script &&
|
282
|
-
edge_group == o.edge_group &&
|
283
|
-
campaign_status == o.campaign_status &&
|
284
|
-
phone_columns == o.phone_columns &&
|
285
|
-
abandon_rate == o.abandon_rate &&
|
286
|
-
dnc_lists == o.dnc_lists &&
|
287
|
-
callable_time_set == o.callable_time_set &&
|
288
|
-
call_analysis_response_set == o.call_analysis_response_set &&
|
289
|
-
errors == o.errors &&
|
290
|
-
caller_name == o.caller_name &&
|
291
|
-
caller_address == o.caller_address &&
|
292
|
-
outbound_line_count == o.outbound_line_count &&
|
293
|
-
rule_sets == o.rule_sets &&
|
92
|
+
self_uri == o.self_uri &&
|
93
|
+
phone_number_columns == o.phone_number_columns &&
|
294
94
|
skip_preview_disabled == o.skip_preview_disabled &&
|
295
|
-
preview_time_out_seconds == o.preview_time_out_seconds
|
296
|
-
single_number_preview == o.single_number_preview &&
|
297
|
-
self_uri == o.self_uri
|
95
|
+
preview_time_out_seconds == o.preview_time_out_seconds
|
298
96
|
end
|
299
97
|
|
300
98
|
# @see the `==` method
|
@@ -304,7 +102,7 @@ module PureCloud
|
|
304
102
|
|
305
103
|
# Calculate hash code according to all attributes.
|
306
104
|
def hash
|
307
|
-
[id, name,
|
105
|
+
[id, name, self_uri, phone_number_columns, skip_preview_disabled, preview_time_out_seconds].hash
|
308
106
|
end
|
309
107
|
|
310
108
|
# build the object from hash
|