purecloudplatformclientv2 46.0.0 → 46.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a64e44c4c4471260303541c282be74dac0d84895
4
- data.tar.gz: cf4d09aaa6e092886893f2ae0f8689b53808ec3d
3
+ metadata.gz: 92431551d5556e0975d32c8e419e47828ab0f827
4
+ data.tar.gz: 1818a22bbdb2dda19f33616fe65a0060fed74239
5
5
  SHA512:
6
- metadata.gz: 9b52203eb8a267d3dc9fab1c525a2a154ff7635de062aab1ee49fc8daee0b8929743d9f419c9ce9aa5342d87877a64bf1dfbfb8748b0a32e20b60b866418af04
7
- data.tar.gz: 0dfdeadd557de0d1ca2919e21b90f81602055cbb3db96c968653fb7f815559db44cc17c39ad2559774c1336c82085279914f21f1de75d848b1a1b3d96d80c902
6
+ metadata.gz: 9b3593e2a19c5a7ad2c61b40e5e2fea61fb8e0e20f7e04eed25b9d5f988e332a0b7b8179e4bbb1283e2776d06d0a1ce5e17c72198476649e3e45a2f1d39c2a1c
7
+ data.tar.gz: a7eb96339e711ee1ad28b8756c8eed4f1de0b48e68a6146c4f1e0cac094267a61619b5a3c781f3af51214887c050607d8bda27a92779275ae673206b8dff69a6
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  title: PureCloud Ruby Gem
3
3
  ---
4
- ![](http://ruby-gem-downloads-badge.herokuapp.com/purecloudplatformclientv2?label=46.0.0)
4
+ ![](http://ruby-gem-downloads-badge.herokuapp.com/purecloudplatformclientv2?label=46.1.0)
5
5
 
6
6
  Documentation can be found at [https://developer.mypurecloud.com/api/rest/client-libraries/ruby/](https://developer.mypurecloud.com/api/rest/client-libraries/ruby/)
7
7
 
@@ -10,7 +10,7 @@ Documentation can be found at [https://developer.mypurecloud.com/api/rest/client
10
10
  ### from rubygems.org
11
11
 
12
12
  ~~~ ruby
13
- gem install 'purecloudplatformclientv2', '~> 46.0.0'
13
+ gem install 'purecloudplatformclientv2', '~> 46.1.0'
14
14
  ~~~
15
15
 
16
16
  ### Install from Git
@@ -12,8 +12,8 @@ title: CertificateDetails
12
12
  | **expiration_date** | **DateTime** | The expiration date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
13
13
  | **issue_date** | **DateTime** | The issue date of the certificate. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ | [optional] |
14
14
  | **expired** | **BOOLEAN** | True if the certificate is expired, false otherwise. | [optional] |
15
- | **valid** | **BOOLEAN** | | [optional] |
16
15
  | **signature_valid** | **BOOLEAN** | | [optional] |
16
+ | **valid** | **BOOLEAN** | | [optional] |
17
17
  {: class="table table-striped"}
18
18
 
19
19
 
@@ -9,6 +9,7 @@ title: ServiceGoalGroupGoals
9
9
  |------------ | ------------- | ------------- | -------------|
10
10
  | **service_level** | [**WfmServiceLevel**](WfmServiceLevel.html) | Service level targets for this service goal group | |
11
11
  | **average_speed_of_answer** | [**WfmAverageSpeedOfAnswer**](WfmAverageSpeedOfAnswer.html) | Average speed of answer targets for this service goal group | |
12
+ | **abandon_rate** | [**WfmAbandonRate**](WfmAbandonRate.html) | Abandon rate targets for this service goal group | [optional] |
12
13
  {: class="table table-striped"}
13
14
 
14
15
 
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: WfmAbandonRate
3
+ ---
4
+ ## PureCloud::WfmAbandonRate
5
+
6
+ ## Properties
7
+
8
+ |Name | Type | Description | Notes|
9
+ |------------ | ------------- | ------------- | -------------|
10
+ | **include** | **BOOLEAN** | Whether to include abandon rate in the associated service goal group's configuration | |
11
+ | **percent** | **Integer** | Abandon rate percent goal for the associated service goal group. Required if include == true | [optional] |
12
+ {: class="table table-striped"}
13
+
14
+
@@ -1294,6 +1294,7 @@ require 'purecloudplatformclientv2/models/week_schedule_generation_result'
1294
1294
  require 'purecloudplatformclientv2/models/week_schedule_list_item_response'
1295
1295
  require 'purecloudplatformclientv2/models/week_schedule_list_response'
1296
1296
  require 'purecloudplatformclientv2/models/week_schedule_response'
1297
+ require 'purecloudplatformclientv2/models/wfm_abandon_rate'
1297
1298
  require 'purecloudplatformclientv2/models/wfm_agent'
1298
1299
  require 'purecloudplatformclientv2/models/wfm_agent_schedule_update_notification_notification'
1299
1300
  require 'purecloudplatformclientv2/models/wfm_agent_schedule_update_notification_notification_activities'
@@ -76,7 +76,7 @@ module PureCloud
76
76
  http_method = http_method.to_sym.downcase
77
77
 
78
78
  header_params = @default_headers.merge(opts[:header_params] || {})
79
- header_params['purecloud-sdk'] = '46.0.0'
79
+ header_params['purecloud-sdk'] = '46.1.0'
80
80
  query_params = opts[:query_params] || {}
81
81
  form_params = opts[:form_params] || {}
82
82
 
@@ -34,10 +34,10 @@ module PureCloud
34
34
  # True if the certificate is expired, false otherwise.
35
35
  attr_accessor :expired
36
36
 
37
- attr_accessor :valid
38
-
39
37
  attr_accessor :signature_valid
40
38
 
39
+ attr_accessor :valid
40
+
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
@@ -52,9 +52,9 @@ module PureCloud
52
52
 
53
53
  :'expired' => :'expired',
54
54
 
55
- :'valid' => :'valid',
55
+ :'signature_valid' => :'signatureValid',
56
56
 
57
- :'signature_valid' => :'signatureValid'
57
+ :'valid' => :'valid'
58
58
 
59
59
  }
60
60
  end
@@ -73,9 +73,9 @@ module PureCloud
73
73
 
74
74
  :'expired' => :'BOOLEAN',
75
75
 
76
- :'valid' => :'BOOLEAN',
76
+ :'signature_valid' => :'BOOLEAN',
77
77
 
78
- :'signature_valid' => :'BOOLEAN'
78
+ :'valid' => :'BOOLEAN'
79
79
 
80
80
  }
81
81
  end
@@ -134,19 +134,19 @@ module PureCloud
134
134
  end
135
135
 
136
136
 
137
- if attributes.has_key?(:'valid')
137
+ if attributes.has_key?(:'signatureValid')
138
138
 
139
139
 
140
- self.valid = attributes[:'valid']
140
+ self.signature_valid = attributes[:'signatureValid']
141
141
 
142
142
 
143
143
  end
144
144
 
145
145
 
146
- if attributes.has_key?(:'signatureValid')
146
+ if attributes.has_key?(:'valid')
147
147
 
148
148
 
149
- self.signature_valid = attributes[:'signatureValid']
149
+ self.valid = attributes[:'valid']
150
150
 
151
151
 
152
152
  end
@@ -243,8 +243,8 @@ module PureCloud
243
243
  expiration_date == o.expiration_date &&
244
244
  issue_date == o.issue_date &&
245
245
  expired == o.expired &&
246
- valid == o.valid &&
247
- signature_valid == o.signature_valid
246
+ signature_valid == o.signature_valid &&
247
+ valid == o.valid
248
248
  end
249
249
 
250
250
  # @see the `==` method
@@ -256,7 +256,7 @@ module PureCloud
256
256
  # Calculates hash code according to all attributes.
257
257
  # @return [Fixnum] Hash code
258
258
  def hash
259
- [issuer, subject, expiration_date, issue_date, expired, valid, signature_valid].hash
259
+ [issuer, subject, expiration_date, issue_date, expired, signature_valid, valid].hash
260
260
  end
261
261
 
262
262
  # build the object from hash
@@ -25,13 +25,18 @@ module PureCloud
25
25
  # Average speed of answer targets for this service goal group
26
26
  attr_accessor :average_speed_of_answer
27
27
 
28
+ # Abandon rate targets for this service goal group
29
+ attr_accessor :abandon_rate
30
+
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
29
32
  def self.attribute_map
30
33
  {
31
34
 
32
35
  :'service_level' => :'serviceLevel',
33
36
 
34
- :'average_speed_of_answer' => :'averageSpeedOfAnswer'
37
+ :'average_speed_of_answer' => :'averageSpeedOfAnswer',
38
+
39
+ :'abandon_rate' => :'abandonRate'
35
40
 
36
41
  }
37
42
  end
@@ -42,7 +47,9 @@ module PureCloud
42
47
 
43
48
  :'service_level' => :'WfmServiceLevel',
44
49
 
45
- :'average_speed_of_answer' => :'WfmAverageSpeedOfAnswer'
50
+ :'average_speed_of_answer' => :'WfmAverageSpeedOfAnswer',
51
+
52
+ :'abandon_rate' => :'WfmAbandonRate'
46
53
 
47
54
  }
48
55
  end
@@ -74,6 +81,15 @@ module PureCloud
74
81
  end
75
82
 
76
83
 
84
+ if attributes.has_key?(:'abandonRate')
85
+
86
+
87
+ self.abandon_rate = attributes[:'abandonRate']
88
+
89
+
90
+ end
91
+
92
+
77
93
  end
78
94
 
79
95
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -107,6 +123,10 @@ module PureCloud
107
123
 
108
124
 
109
125
 
126
+
127
+
128
+
129
+
110
130
  end
111
131
 
112
132
 
@@ -120,13 +140,19 @@ module PureCloud
120
140
 
121
141
 
122
142
 
143
+
144
+
145
+
146
+
147
+
123
148
  # Checks equality by comparing each attribute.
124
149
  # @param [Object] Object to be compared
125
150
  def ==(o)
126
151
  return true if self.equal?(o)
127
152
  self.class == o.class &&
128
153
  service_level == o.service_level &&
129
- average_speed_of_answer == o.average_speed_of_answer
154
+ average_speed_of_answer == o.average_speed_of_answer &&
155
+ abandon_rate == o.abandon_rate
130
156
  end
131
157
 
132
158
  # @see the `==` method
@@ -138,7 +164,7 @@ module PureCloud
138
164
  # Calculates hash code according to all attributes.
139
165
  # @return [Fixnum] Hash code
140
166
  def hash
141
- [service_level, average_speed_of_answer].hash
167
+ [service_level, average_speed_of_answer, abandon_rate].hash
142
168
  end
143
169
 
144
170
  # build the object from hash
@@ -0,0 +1,234 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ # Abandon rate configuration for a service goal group
21
+ class WfmAbandonRate
22
+ # Whether to include abandon rate in the associated service goal group's configuration
23
+ attr_accessor :include
24
+
25
+ # Abandon rate percent goal for the associated service goal group. Required if include == true
26
+ attr_accessor :percent
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+
32
+ :'include' => :'include',
33
+
34
+ :'percent' => :'percent'
35
+
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+
43
+ :'include' => :'BOOLEAN',
44
+
45
+ :'percent' => :'Integer'
46
+
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
57
+
58
+
59
+ if attributes.has_key?(:'include')
60
+
61
+
62
+ self.include = attributes[:'include']
63
+
64
+
65
+ end
66
+
67
+
68
+ if attributes.has_key?(:'percent')
69
+
70
+
71
+ self.percent = attributes[:'percent']
72
+
73
+
74
+ end
75
+
76
+
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+
84
+
85
+ return invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+
92
+
93
+ if @include.nil?
94
+ return false
95
+ end
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ end
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ include == o.include &&
124
+ percent == o.percent
125
+ end
126
+
127
+ # @see the `==` method
128
+ # @param [Object] Object to be compared
129
+ def eql?(o)
130
+ self == o
131
+ end
132
+
133
+ # Calculates hash code according to all attributes.
134
+ # @return [Fixnum] Hash code
135
+ def hash
136
+ [include, percent].hash
137
+ end
138
+
139
+ # build the object from hash
140
+ def build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ self.class.swagger_types.each_pair do |key, type|
143
+ if type =~ /^Array<(.*)>/i
144
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
145
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
146
+ else
147
+ #TODO show warning in debug mode
148
+ end
149
+ elsif !attributes[self.class.attribute_map[key]].nil?
150
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
151
+ else
152
+ # data not found in attributes(hash), not an issue as the data can be optional
153
+ end
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ _model = Object.const_get("PureCloud").const_get(type).new
193
+ _model.build_from_hash(value)
194
+ end
195
+ end
196
+
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_body (backward compatibility))
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # return the object in the form of hash
207
+ def to_hash
208
+ hash = {}
209
+ self.class.attribute_map.each_pair do |attr, param|
210
+ value = self.send(attr)
211
+ next if value.nil?
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Method to output non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map{ |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+ end
@@ -15,5 +15,5 @@ Terms of Service: https://developer.mypurecloud.com/tos
15
15
  =end
16
16
 
17
17
  module PureCloud
18
- VERSION = "46.0.0"
18
+ VERSION = "46.1.0"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: purecloudplatformclientv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 46.0.0
4
+ version: 46.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genesys Developer Evangelists
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-09 00:00:00.000000000 Z
11
+ date: 2018-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1535,6 +1535,7 @@ files:
1535
1535
  - docs/WeekScheduleListItemResponse.md
1536
1536
  - docs/WeekScheduleListResponse.md
1537
1537
  - docs/WeekScheduleResponse.md
1538
+ - docs/WfmAbandonRate.md
1538
1539
  - docs/WfmAgent.md
1539
1540
  - docs/WfmAgentScheduleUpdateNotificationNotification.md
1540
1541
  - docs/WfmAgentScheduleUpdateNotificationNotificationActivities.md
@@ -2911,6 +2912,7 @@ files:
2911
2912
  - lib/purecloudplatformclientv2/models/week_schedule_list_item_response.rb
2912
2913
  - lib/purecloudplatformclientv2/models/week_schedule_list_response.rb
2913
2914
  - lib/purecloudplatformclientv2/models/week_schedule_response.rb
2915
+ - lib/purecloudplatformclientv2/models/wfm_abandon_rate.rb
2914
2916
  - lib/purecloudplatformclientv2/models/wfm_agent.rb
2915
2917
  - lib/purecloudplatformclientv2/models/wfm_agent_schedule_update_notification_notification.rb
2916
2918
  - lib/purecloudplatformclientv2/models/wfm_agent_schedule_update_notification_notification_activities.rb