purecloud 0.25.0 → 0.26.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/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,32 +2,8 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class ContactList
|
5
|
-
# The globally unique identifier for the object.
|
6
5
|
attr_accessor :id
|
7
6
|
|
8
|
-
attr_accessor :name
|
9
|
-
|
10
|
-
# Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
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 :column_names
|
19
|
-
|
20
|
-
attr_accessor :phone_columns
|
21
|
-
|
22
|
-
attr_accessor :import_status
|
23
|
-
|
24
|
-
attr_accessor :preview_mode_column_name
|
25
|
-
|
26
|
-
attr_accessor :preview_mode_accepted_values
|
27
|
-
|
28
|
-
attr_accessor :size
|
29
|
-
|
30
|
-
# The URI for this object
|
31
7
|
attr_accessor :self_uri
|
32
8
|
|
33
9
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -36,26 +12,6 @@ module PureCloud
|
|
36
12
|
|
37
13
|
:'id' => :'id',
|
38
14
|
|
39
|
-
:'name' => :'name',
|
40
|
-
|
41
|
-
:'date_created' => :'dateCreated',
|
42
|
-
|
43
|
-
:'date_modified' => :'dateModified',
|
44
|
-
|
45
|
-
:'version' => :'version',
|
46
|
-
|
47
|
-
:'column_names' => :'columnNames',
|
48
|
-
|
49
|
-
:'phone_columns' => :'phoneColumns',
|
50
|
-
|
51
|
-
:'import_status' => :'importStatus',
|
52
|
-
|
53
|
-
:'preview_mode_column_name' => :'previewModeColumnName',
|
54
|
-
|
55
|
-
:'preview_mode_accepted_values' => :'previewModeAcceptedValues',
|
56
|
-
|
57
|
-
:'size' => :'size',
|
58
|
-
|
59
15
|
:'self_uri' => :'selfUri'
|
60
16
|
|
61
17
|
}
|
@@ -65,16 +21,6 @@ module PureCloud
|
|
65
21
|
def self.swagger_types
|
66
22
|
{
|
67
23
|
:'id' => :'String',
|
68
|
-
:'name' => :'String',
|
69
|
-
:'date_created' => :'DateTime',
|
70
|
-
:'date_modified' => :'DateTime',
|
71
|
-
:'version' => :'Integer',
|
72
|
-
:'column_names' => :'Array<String>',
|
73
|
-
:'phone_columns' => :'Array<PhoneNumberColumn>',
|
74
|
-
:'import_status' => :'ImportStatus',
|
75
|
-
:'preview_mode_column_name' => :'String',
|
76
|
-
:'preview_mode_accepted_values' => :'Array<String>',
|
77
|
-
:'size' => :'Integer',
|
78
24
|
:'self_uri' => :'String'
|
79
25
|
|
80
26
|
}
|
@@ -91,52 +37,6 @@ module PureCloud
|
|
91
37
|
self.id = attributes[:'id']
|
92
38
|
end
|
93
39
|
|
94
|
-
if attributes[:'name']
|
95
|
-
self.name = attributes[:'name']
|
96
|
-
end
|
97
|
-
|
98
|
-
if attributes[:'dateCreated']
|
99
|
-
self.date_created = attributes[:'dateCreated']
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes[:'dateModified']
|
103
|
-
self.date_modified = attributes[:'dateModified']
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes[:'version']
|
107
|
-
self.version = attributes[:'version']
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes[:'columnNames']
|
111
|
-
if (value = attributes[:'columnNames']).is_a?(Array)
|
112
|
-
self.column_names = value
|
113
|
-
end
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes[:'phoneColumns']
|
117
|
-
if (value = attributes[:'phoneColumns']).is_a?(Array)
|
118
|
-
self.phone_columns = value
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes[:'importStatus']
|
123
|
-
self.import_status = attributes[:'importStatus']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes[:'previewModeColumnName']
|
127
|
-
self.preview_mode_column_name = attributes[:'previewModeColumnName']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes[:'previewModeAcceptedValues']
|
131
|
-
if (value = attributes[:'previewModeAcceptedValues']).is_a?(Array)
|
132
|
-
self.preview_mode_accepted_values = value
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes[:'size']
|
137
|
-
self.size = attributes[:'size']
|
138
|
-
end
|
139
|
-
|
140
40
|
if attributes[:'selfUri']
|
141
41
|
self.self_uri = attributes[:'selfUri']
|
142
42
|
end
|
@@ -148,16 +48,6 @@ module PureCloud
|
|
148
48
|
return true if self.equal?(o)
|
149
49
|
self.class == o.class &&
|
150
50
|
id == o.id &&
|
151
|
-
name == o.name &&
|
152
|
-
date_created == o.date_created &&
|
153
|
-
date_modified == o.date_modified &&
|
154
|
-
version == o.version &&
|
155
|
-
column_names == o.column_names &&
|
156
|
-
phone_columns == o.phone_columns &&
|
157
|
-
import_status == o.import_status &&
|
158
|
-
preview_mode_column_name == o.preview_mode_column_name &&
|
159
|
-
preview_mode_accepted_values == o.preview_mode_accepted_values &&
|
160
|
-
size == o.size &&
|
161
51
|
self_uri == o.self_uri
|
162
52
|
end
|
163
53
|
|
@@ -168,7 +58,7 @@ module PureCloud
|
|
168
58
|
|
169
59
|
# Calculate hash code according to all attributes.
|
170
60
|
def hash
|
171
|
-
[id,
|
61
|
+
[id, self_uri].hash
|
172
62
|
end
|
173
63
|
|
174
64
|
# build the object from hash
|
@@ -1,26 +1,22 @@
|
|
1
1
|
require 'date'
|
2
2
|
|
3
3
|
module PureCloud
|
4
|
-
# Data elements associated with a history event
|
5
4
|
class DataItem
|
6
|
-
|
7
|
-
attr_accessor :parameter_name
|
5
|
+
attr_accessor :data_item_id
|
8
6
|
|
9
|
-
|
10
|
-
attr_accessor :parameter_type
|
7
|
+
attr_accessor :value
|
11
8
|
|
12
|
-
|
13
|
-
attr_accessor :parameter_values
|
9
|
+
attr_accessor :type
|
14
10
|
|
15
11
|
# Attribute mapping from ruby-style variable name to JSON key.
|
16
12
|
def self.attribute_map
|
17
13
|
{
|
18
14
|
|
19
|
-
:'
|
15
|
+
:'data_item_id' => :'dataItemId',
|
20
16
|
|
21
|
-
:'
|
17
|
+
:'value' => :'value',
|
22
18
|
|
23
|
-
:'
|
19
|
+
:'type' => :'type'
|
24
20
|
|
25
21
|
}
|
26
22
|
end
|
@@ -28,9 +24,9 @@ module PureCloud
|
|
28
24
|
# Attribute type mapping.
|
29
25
|
def self.swagger_types
|
30
26
|
{
|
31
|
-
:'
|
32
|
-
:'
|
33
|
-
:'
|
27
|
+
:'data_item_id' => :'String',
|
28
|
+
:'value' => :'String',
|
29
|
+
:'type' => :'String'
|
34
30
|
|
35
31
|
}
|
36
32
|
end
|
@@ -42,16 +38,16 @@ module PureCloud
|
|
42
38
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
43
39
|
|
44
40
|
|
45
|
-
if attributes[:'
|
46
|
-
self.
|
41
|
+
if attributes[:'dataItemId']
|
42
|
+
self.data_item_id = attributes[:'dataItemId']
|
47
43
|
end
|
48
44
|
|
49
|
-
if attributes[:'
|
50
|
-
self.
|
45
|
+
if attributes[:'value']
|
46
|
+
self.value = attributes[:'value']
|
51
47
|
end
|
52
48
|
|
53
|
-
if attributes[:'
|
54
|
-
self.
|
49
|
+
if attributes[:'type']
|
50
|
+
self.type = attributes[:'type']
|
55
51
|
end
|
56
52
|
|
57
53
|
end
|
@@ -60,9 +56,9 @@ module PureCloud
|
|
60
56
|
def ==(o)
|
61
57
|
return true if self.equal?(o)
|
62
58
|
self.class == o.class &&
|
63
|
-
|
64
|
-
|
65
|
-
|
59
|
+
data_item_id == o.data_item_id &&
|
60
|
+
value == o.value &&
|
61
|
+
type == o.type
|
66
62
|
end
|
67
63
|
|
68
64
|
# @see the `==` method
|
@@ -72,7 +68,7 @@ module PureCloud
|
|
72
68
|
|
73
69
|
# Calculate hash code according to all attributes.
|
74
70
|
def hash
|
75
|
-
[
|
71
|
+
[data_item_id, value, type].hash
|
76
72
|
end
|
77
73
|
|
78
74
|
# build the object from hash
|
@@ -2,37 +2,49 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class EmailMessage
|
5
|
-
|
6
|
-
|
7
|
-
attr_accessor :text_body
|
8
|
-
|
5
|
+
# The globally unique identifier for the object.
|
9
6
|
attr_accessor :id
|
10
7
|
|
8
|
+
attr_accessor :name
|
9
|
+
|
10
|
+
# The recipients of the email message.
|
11
11
|
attr_accessor :to
|
12
12
|
|
13
|
+
# The recipients that were copied on the email message.
|
13
14
|
attr_accessor :cc
|
14
15
|
|
16
|
+
# The recipients that were blind copied on the email message.
|
15
17
|
attr_accessor :bcc
|
16
18
|
|
19
|
+
# The sender of the email message.
|
17
20
|
attr_accessor :from
|
18
21
|
|
22
|
+
# The subject of the email message.
|
19
23
|
attr_accessor :subject
|
20
24
|
|
25
|
+
# The attachments of the email message.
|
21
26
|
attr_accessor :attachments
|
22
27
|
|
23
|
-
#
|
28
|
+
# The text body of the email message.
|
29
|
+
attr_accessor :text_body
|
30
|
+
|
31
|
+
# The html body of the email message.
|
32
|
+
attr_accessor :html_body
|
33
|
+
|
34
|
+
# The time when the message was received or sent. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
|
24
35
|
attr_accessor :time
|
25
36
|
|
37
|
+
# The URI for this object
|
38
|
+
attr_accessor :self_uri
|
39
|
+
|
26
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
41
|
def self.attribute_map
|
28
42
|
{
|
29
43
|
|
30
|
-
:'html_body' => :'htmlBody',
|
31
|
-
|
32
|
-
:'text_body' => :'textBody',
|
33
|
-
|
34
44
|
:'id' => :'id',
|
35
45
|
|
46
|
+
:'name' => :'name',
|
47
|
+
|
36
48
|
:'to' => :'to',
|
37
49
|
|
38
50
|
:'cc' => :'cc',
|
@@ -45,7 +57,13 @@ module PureCloud
|
|
45
57
|
|
46
58
|
:'attachments' => :'attachments',
|
47
59
|
|
48
|
-
:'
|
60
|
+
:'text_body' => :'textBody',
|
61
|
+
|
62
|
+
:'html_body' => :'htmlBody',
|
63
|
+
|
64
|
+
:'time' => :'time',
|
65
|
+
|
66
|
+
:'self_uri' => :'selfUri'
|
49
67
|
|
50
68
|
}
|
51
69
|
end
|
@@ -53,16 +71,18 @@ module PureCloud
|
|
53
71
|
# Attribute type mapping.
|
54
72
|
def self.swagger_types
|
55
73
|
{
|
56
|
-
:'html_body' => :'String',
|
57
|
-
:'text_body' => :'String',
|
58
74
|
:'id' => :'String',
|
75
|
+
:'name' => :'String',
|
59
76
|
:'to' => :'Array<EmailAddress>',
|
60
77
|
:'cc' => :'Array<EmailAddress>',
|
61
78
|
:'bcc' => :'Array<EmailAddress>',
|
62
79
|
:'from' => :'EmailAddress',
|
63
80
|
:'subject' => :'String',
|
64
|
-
:'attachments' => :'Array<
|
65
|
-
:'
|
81
|
+
:'attachments' => :'Array<Attachment>',
|
82
|
+
:'text_body' => :'String',
|
83
|
+
:'html_body' => :'String',
|
84
|
+
:'time' => :'DateTime',
|
85
|
+
:'self_uri' => :'String'
|
66
86
|
|
67
87
|
}
|
68
88
|
end
|
@@ -74,18 +94,14 @@ module PureCloud
|
|
74
94
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
75
95
|
|
76
96
|
|
77
|
-
if attributes[:'htmlBody']
|
78
|
-
self.html_body = attributes[:'htmlBody']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes[:'textBody']
|
82
|
-
self.text_body = attributes[:'textBody']
|
83
|
-
end
|
84
|
-
|
85
97
|
if attributes[:'id']
|
86
98
|
self.id = attributes[:'id']
|
87
99
|
end
|
88
100
|
|
101
|
+
if attributes[:'name']
|
102
|
+
self.name = attributes[:'name']
|
103
|
+
end
|
104
|
+
|
89
105
|
if attributes[:'to']
|
90
106
|
if (value = attributes[:'to']).is_a?(Array)
|
91
107
|
self.to = value
|
@@ -118,26 +134,40 @@ module PureCloud
|
|
118
134
|
end
|
119
135
|
end
|
120
136
|
|
137
|
+
if attributes[:'textBody']
|
138
|
+
self.text_body = attributes[:'textBody']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes[:'htmlBody']
|
142
|
+
self.html_body = attributes[:'htmlBody']
|
143
|
+
end
|
144
|
+
|
121
145
|
if attributes[:'time']
|
122
146
|
self.time = attributes[:'time']
|
123
147
|
end
|
124
148
|
|
149
|
+
if attributes[:'selfUri']
|
150
|
+
self.self_uri = attributes[:'selfUri']
|
151
|
+
end
|
152
|
+
|
125
153
|
end
|
126
154
|
|
127
155
|
# Check equality by comparing each attribute.
|
128
156
|
def ==(o)
|
129
157
|
return true if self.equal?(o)
|
130
158
|
self.class == o.class &&
|
131
|
-
html_body == o.html_body &&
|
132
|
-
text_body == o.text_body &&
|
133
159
|
id == o.id &&
|
160
|
+
name == o.name &&
|
134
161
|
to == o.to &&
|
135
162
|
cc == o.cc &&
|
136
163
|
bcc == o.bcc &&
|
137
164
|
from == o.from &&
|
138
165
|
subject == o.subject &&
|
139
166
|
attachments == o.attachments &&
|
140
|
-
|
167
|
+
text_body == o.text_body &&
|
168
|
+
html_body == o.html_body &&
|
169
|
+
time == o.time &&
|
170
|
+
self_uri == o.self_uri
|
141
171
|
end
|
142
172
|
|
143
173
|
# @see the `==` method
|
@@ -147,7 +177,7 @@ module PureCloud
|
|
147
177
|
|
148
178
|
# Calculate hash code according to all attributes.
|
149
179
|
def hash
|
150
|
-
[
|
180
|
+
[id, name, to, cc, bcc, from, subject, attachments, text_body, html_body, time, self_uri].hash
|
151
181
|
end
|
152
182
|
|
153
183
|
# build the object from hash
|
@@ -2,21 +2,25 @@ require 'date'
|
|
2
2
|
|
3
3
|
module PureCloud
|
4
4
|
class Entity
|
5
|
-
attr_accessor :
|
5
|
+
attr_accessor :type
|
6
6
|
|
7
7
|
attr_accessor :id
|
8
8
|
|
9
9
|
attr_accessor :name
|
10
10
|
|
11
|
+
attr_accessor :self_uri
|
12
|
+
|
11
13
|
# Attribute mapping from ruby-style variable name to JSON key.
|
12
14
|
def self.attribute_map
|
13
15
|
{
|
14
16
|
|
15
|
-
:'
|
17
|
+
:'type' => :'type',
|
16
18
|
|
17
19
|
:'id' => :'id',
|
18
20
|
|
19
|
-
:'name' => :'name'
|
21
|
+
:'name' => :'name',
|
22
|
+
|
23
|
+
:'self_uri' => :'selfUri'
|
20
24
|
|
21
25
|
}
|
22
26
|
end
|
@@ -24,9 +28,10 @@ module PureCloud
|
|
24
28
|
# Attribute type mapping.
|
25
29
|
def self.swagger_types
|
26
30
|
{
|
27
|
-
:'
|
31
|
+
:'type' => :'String',
|
28
32
|
:'id' => :'String',
|
29
|
-
:'name' => :'String'
|
33
|
+
:'name' => :'String',
|
34
|
+
:'self_uri' => :'String'
|
30
35
|
|
31
36
|
}
|
32
37
|
end
|
@@ -38,8 +43,8 @@ module PureCloud
|
|
38
43
|
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
39
44
|
|
40
45
|
|
41
|
-
if attributes[:'
|
42
|
-
self.
|
46
|
+
if attributes[:'type']
|
47
|
+
self.type = attributes[:'type']
|
43
48
|
end
|
44
49
|
|
45
50
|
if attributes[:'id']
|
@@ -50,15 +55,20 @@ module PureCloud
|
|
50
55
|
self.name = attributes[:'name']
|
51
56
|
end
|
52
57
|
|
58
|
+
if attributes[:'selfUri']
|
59
|
+
self.self_uri = attributes[:'selfUri']
|
60
|
+
end
|
61
|
+
|
53
62
|
end
|
54
63
|
|
55
64
|
# Check equality by comparing each attribute.
|
56
65
|
def ==(o)
|
57
66
|
return true if self.equal?(o)
|
58
67
|
self.class == o.class &&
|
59
|
-
|
68
|
+
type == o.type &&
|
60
69
|
id == o.id &&
|
61
|
-
name == o.name
|
70
|
+
name == o.name &&
|
71
|
+
self_uri == o.self_uri
|
62
72
|
end
|
63
73
|
|
64
74
|
# @see the `==` method
|
@@ -68,7 +78,7 @@ module PureCloud
|
|
68
78
|
|
69
79
|
# Calculate hash code according to all attributes.
|
70
80
|
def hash
|
71
|
-
[
|
81
|
+
[type, id, name, self_uri].hash
|
72
82
|
end
|
73
83
|
|
74
84
|
# build the object from hash
|