purecloud 0.26.0 → 0.27.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.
@@ -2,18 +2,60 @@ require 'date'
2
2
 
3
3
  module PureCloud
4
4
  class Campaign
5
+ # The globally unique identifier for the object.
5
6
  attr_accessor :id
6
7
 
7
8
  attr_accessor :name
8
9
 
9
- attr_accessor :self_uri
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 :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
10
33
 
11
- attr_accessor :phone_number_columns
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
47
+
48
+ attr_accessor :rule_sets
12
49
 
13
50
  attr_accessor :skip_preview_disabled
14
51
 
15
52
  attr_accessor :preview_time_out_seconds
16
53
 
54
+ attr_accessor :single_number_preview
55
+
56
+ # The URI for this object
57
+ attr_accessor :self_uri
58
+
17
59
  # Attribute mapping from ruby-style variable name to JSON key.
18
60
  def self.attribute_map
19
61
  {
@@ -22,13 +64,51 @@ module PureCloud
22
64
 
23
65
  :'name' => :'name',
24
66
 
25
- :'self_uri' => :'selfUri',
67
+ :'date_created' => :'dateCreated',
68
+
69
+ :'date_modified' => :'dateModified',
26
70
 
27
- :'phone_number_columns' => :'phoneNumberColumns',
71
+ :'version' => :'version',
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',
28
104
 
29
105
  :'skip_preview_disabled' => :'skipPreviewDisabled',
30
106
 
31
- :'preview_time_out_seconds' => :'previewTimeOutSeconds'
107
+ :'preview_time_out_seconds' => :'previewTimeOutSeconds',
108
+
109
+ :'single_number_preview' => :'singleNumberPreview',
110
+
111
+ :'self_uri' => :'selfUri'
32
112
 
33
113
  }
34
114
  end
@@ -38,10 +118,29 @@ module PureCloud
38
118
  {
39
119
  :'id' => :'String',
40
120
  :'name' => :'String',
41
- :'self_uri' => :'String',
42
- :'phone_number_columns' => :'Array<PhoneNumberColumn>',
121
+ :'date_created' => :'DateTime',
122
+ :'date_modified' => :'DateTime',
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>',
43
140
  :'skip_preview_disabled' => :'BOOLEAN',
44
- :'preview_time_out_seconds' => :'Integer'
141
+ :'preview_time_out_seconds' => :'Integer',
142
+ :'single_number_preview' => :'BOOLEAN',
143
+ :'self_uri' => :'String'
45
144
 
46
145
  }
47
146
  end
@@ -61,13 +160,87 @@ module PureCloud
61
160
  self.name = attributes[:'name']
62
161
  end
63
162
 
64
- if attributes[:'selfUri']
65
- self.self_uri = attributes[:'selfUri']
163
+ if attributes[:'dateCreated']
164
+ self.date_created = attributes[:'dateCreated']
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']
66
189
  end
67
190
 
68
- if attributes[:'phoneNumberColumns']
69
- if (value = attributes[:'phoneNumberColumns']).is_a?(Array)
70
- self.phone_number_columns = value
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']
239
+ end
240
+
241
+ if attributes[:'ruleSets']
242
+ if (value = attributes[:'ruleSets']).is_a?(Array)
243
+ self.rule_sets = value
71
244
  end
72
245
  end
73
246
 
@@ -81,6 +254,16 @@ module PureCloud
81
254
  self.preview_time_out_seconds = attributes[:'previewTimeOutSeconds']
82
255
  end
83
256
 
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
+
84
267
  end
85
268
 
86
269
  # Check equality by comparing each attribute.
@@ -89,10 +272,29 @@ module PureCloud
89
272
  self.class == o.class &&
90
273
  id == o.id &&
91
274
  name == o.name &&
92
- self_uri == o.self_uri &&
93
- phone_number_columns == o.phone_number_columns &&
275
+ date_created == o.date_created &&
276
+ date_modified == o.date_modified &&
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 &&
94
294
  skip_preview_disabled == o.skip_preview_disabled &&
95
- preview_time_out_seconds == o.preview_time_out_seconds
295
+ preview_time_out_seconds == o.preview_time_out_seconds &&
296
+ single_number_preview == o.single_number_preview &&
297
+ self_uri == o.self_uri
96
298
  end
97
299
 
98
300
  # @see the `==` method
@@ -102,7 +304,7 @@ module PureCloud
102
304
 
103
305
  # Calculate hash code according to all attributes.
104
306
  def hash
105
- [id, name, self_uri, phone_number_columns, skip_preview_disabled, preview_time_out_seconds].hash
307
+ [id, name, date_created, date_modified, version, contact_list, queue, dialing_mode, script, edge_group, campaign_status, phone_columns, abandon_rate, dnc_lists, callable_time_set, call_analysis_response_set, errors, caller_name, caller_address, outbound_line_count, rule_sets, skip_preview_disabled, preview_time_out_seconds, single_number_preview, self_uri].hash
106
308
  end
107
309
 
108
310
  # build the object from hash
@@ -1,22 +1,26 @@
1
1
  require 'date'
2
2
 
3
3
  module PureCloud
4
+ # Data elements associated with a history event
4
5
  class DataItem
5
- attr_accessor :data_item_id
6
+ # The name of the data element associated with a history event.
7
+ attr_accessor :parameter_name
6
8
 
7
- attr_accessor :value
9
+ # The type of the data element associated with a history event.
10
+ attr_accessor :parameter_type
8
11
 
9
- attr_accessor :type
12
+ # The values of the data element associated with a history event.
13
+ attr_accessor :parameter_values
10
14
 
11
15
  # Attribute mapping from ruby-style variable name to JSON key.
12
16
  def self.attribute_map
13
17
  {
14
18
 
15
- :'data_item_id' => :'dataItemId',
19
+ :'parameter_name' => :'parameterName',
16
20
 
17
- :'value' => :'value',
21
+ :'parameter_type' => :'parameterType',
18
22
 
19
- :'type' => :'type'
23
+ :'parameter_values' => :'parameterValues'
20
24
 
21
25
  }
22
26
  end
@@ -24,9 +28,9 @@ module PureCloud
24
28
  # Attribute type mapping.
25
29
  def self.swagger_types
26
30
  {
27
- :'data_item_id' => :'String',
28
- :'value' => :'String',
29
- :'type' => :'String'
31
+ :'parameter_name' => :'String',
32
+ :'parameter_type' => :'String',
33
+ :'parameter_values' => :'Value'
30
34
 
31
35
  }
32
36
  end
@@ -38,16 +42,16 @@ module PureCloud
38
42
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
39
43
 
40
44
 
41
- if attributes[:'dataItemId']
42
- self.data_item_id = attributes[:'dataItemId']
45
+ if attributes[:'parameterName']
46
+ self.parameter_name = attributes[:'parameterName']
43
47
  end
44
48
 
45
- if attributes[:'value']
46
- self.value = attributes[:'value']
49
+ if attributes[:'parameterType']
50
+ self.parameter_type = attributes[:'parameterType']
47
51
  end
48
52
 
49
- if attributes[:'type']
50
- self.type = attributes[:'type']
53
+ if attributes[:'parameterValues']
54
+ self.parameter_values = attributes[:'parameterValues']
51
55
  end
52
56
 
53
57
  end
@@ -56,9 +60,9 @@ module PureCloud
56
60
  def ==(o)
57
61
  return true if self.equal?(o)
58
62
  self.class == o.class &&
59
- data_item_id == o.data_item_id &&
60
- value == o.value &&
61
- type == o.type
63
+ parameter_name == o.parameter_name &&
64
+ parameter_type == o.parameter_type &&
65
+ parameter_values == o.parameter_values
62
66
  end
63
67
 
64
68
  # @see the `==` method
@@ -68,7 +72,7 @@ module PureCloud
68
72
 
69
73
  # Calculate hash code according to all attributes.
70
74
  def hash
71
- [data_item_id, value, type].hash
75
+ [parameter_name, parameter_type, parameter_values].hash
72
76
  end
73
77
 
74
78
  # build the object from hash
@@ -2,48 +2,36 @@ require 'date'
2
2
 
3
3
  module PureCloud
4
4
  class EmailMessage
5
- # The globally unique identifier for the object.
6
- attr_accessor :id
5
+ attr_accessor :html_body
6
+
7
+ attr_accessor :text_body
7
8
 
8
- attr_accessor :name
9
+ attr_accessor :id
9
10
 
10
- # The recipients of the email message.
11
11
  attr_accessor :to
12
12
 
13
- # The recipients that were copied on the email message.
14
13
  attr_accessor :cc
15
14
 
16
- # The recipients that were blind copied on the email message.
17
15
  attr_accessor :bcc
18
16
 
19
- # The sender of the email message.
20
17
  attr_accessor :from
21
18
 
22
- # The subject of the email message.
23
19
  attr_accessor :subject
24
20
 
25
- # The attachments of the email message.
26
21
  attr_accessor :attachments
27
22
 
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
23
+ # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
35
24
  attr_accessor :time
36
25
 
37
- # The URI for this object
38
- attr_accessor :self_uri
39
-
40
26
  # Attribute mapping from ruby-style variable name to JSON key.
41
27
  def self.attribute_map
42
28
  {
43
29
 
44
- :'id' => :'id',
30
+ :'html_body' => :'htmlBody',
45
31
 
46
- :'name' => :'name',
32
+ :'text_body' => :'textBody',
33
+
34
+ :'id' => :'id',
47
35
 
48
36
  :'to' => :'to',
49
37
 
@@ -57,13 +45,7 @@ module PureCloud
57
45
 
58
46
  :'attachments' => :'attachments',
59
47
 
60
- :'text_body' => :'textBody',
61
-
62
- :'html_body' => :'htmlBody',
63
-
64
- :'time' => :'time',
65
-
66
- :'self_uri' => :'selfUri'
48
+ :'time' => :'time'
67
49
 
68
50
  }
69
51
  end
@@ -71,18 +53,16 @@ module PureCloud
71
53
  # Attribute type mapping.
72
54
  def self.swagger_types
73
55
  {
56
+ :'html_body' => :'String',
57
+ :'text_body' => :'String',
74
58
  :'id' => :'String',
75
- :'name' => :'String',
76
59
  :'to' => :'Array<EmailAddress>',
77
60
  :'cc' => :'Array<EmailAddress>',
78
61
  :'bcc' => :'Array<EmailAddress>',
79
62
  :'from' => :'EmailAddress',
80
63
  :'subject' => :'String',
81
- :'attachments' => :'Array<Attachment>',
82
- :'text_body' => :'String',
83
- :'html_body' => :'String',
84
- :'time' => :'DateTime',
85
- :'self_uri' => :'String'
64
+ :'attachments' => :'Array<EmailAttachment>',
65
+ :'time' => :'DateTime'
86
66
 
87
67
  }
88
68
  end
@@ -94,12 +74,16 @@ module PureCloud
94
74
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
95
75
 
96
76
 
97
- if attributes[:'id']
98
- self.id = attributes[:'id']
77
+ if attributes[:'htmlBody']
78
+ self.html_body = attributes[:'htmlBody']
79
+ end
80
+
81
+ if attributes[:'textBody']
82
+ self.text_body = attributes[:'textBody']
99
83
  end
100
84
 
101
- if attributes[:'name']
102
- self.name = attributes[:'name']
85
+ if attributes[:'id']
86
+ self.id = attributes[:'id']
103
87
  end
104
88
 
105
89
  if attributes[:'to']
@@ -134,40 +118,26 @@ module PureCloud
134
118
  end
135
119
  end
136
120
 
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
-
145
121
  if attributes[:'time']
146
122
  self.time = attributes[:'time']
147
123
  end
148
124
 
149
- if attributes[:'selfUri']
150
- self.self_uri = attributes[:'selfUri']
151
- end
152
-
153
125
  end
154
126
 
155
127
  # Check equality by comparing each attribute.
156
128
  def ==(o)
157
129
  return true if self.equal?(o)
158
130
  self.class == o.class &&
131
+ html_body == o.html_body &&
132
+ text_body == o.text_body &&
159
133
  id == o.id &&
160
- name == o.name &&
161
134
  to == o.to &&
162
135
  cc == o.cc &&
163
136
  bcc == o.bcc &&
164
137
  from == o.from &&
165
138
  subject == o.subject &&
166
139
  attachments == o.attachments &&
167
- text_body == o.text_body &&
168
- html_body == o.html_body &&
169
- time == o.time &&
170
- self_uri == o.self_uri
140
+ time == o.time
171
141
  end
172
142
 
173
143
  # @see the `==` method
@@ -177,7 +147,7 @@ module PureCloud
177
147
 
178
148
  # Calculate hash code according to all attributes.
179
149
  def hash
180
- [id, name, to, cc, bcc, from, subject, attachments, text_body, html_body, time, self_uri].hash
150
+ [html_body, text_body, id, to, cc, bcc, from, subject, attachments, time].hash
181
151
  end
182
152
 
183
153
  # build the object from hash