purecloud 0.41.1 → 0.42.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/config-ruby.json +1 -1
  4. data/doc_out/ADFS.html.md +20 -0
  5. data/doc_out/CodesRequest.html.md +14 -0
  6. data/doc_out/ContactSort.html.md +1 -0
  7. data/doc_out/ContentQueryRequest.html.md +1 -0
  8. data/doc_out/ConversationAssociation.html.md +15 -0
  9. data/doc_out/CreateCallbackCommand.html.md +9 -9
  10. data/doc_out/CreateIntegrationRequest.html.md +16 -0
  11. data/doc_out/CustomerInteractionCenter.html.md +1 -0
  12. data/doc_out/DocusignTemplateMapping.html.md +16 -0
  13. data/doc_out/DomainEdgeSoftwareVersionDto.html.md +1 -1
  14. data/doc_out/EmbeddedSignatureView.html.md +1 -0
  15. data/doc_out/IdentityProviderApi.html.md +158 -0
  16. data/doc_out/Integration.html.md +4 -4
  17. data/doc_out/IntegrationConfiguration.html.md +3 -3
  18. data/doc_out/IntegrationStatusInfo.html.md +3 -3
  19. data/doc_out/IntegrationType.html.md +4 -4
  20. data/doc_out/JsonNode.html.md +4 -4
  21. data/doc_out/NumberOrder.html.md +2 -0
  22. data/doc_out/OAuthProvider.html.md +1 -0
  23. data/doc_out/Okta.html.md +1 -0
  24. data/doc_out/OneLogin.html.md +1 -0
  25. data/doc_out/PolicyActions.html.md +3 -2
  26. data/doc_out/PureCloud.html.md +1 -0
  27. data/doc_out/QueryRequest.html.md +1 -0
  28. data/doc_out/Response.html.md +1 -0
  29. data/doc_out/RoutingData.html.md +5 -5
  30. data/doc_out/Salesforce.html.md +1 -0
  31. data/doc_out/Script.html.md +1 -0
  32. data/doc_out/SignatureDocumentInfo.html.md +1 -0
  33. data/doc_out/TelephonyProvidersEdgeApi.html.md +15 -15
  34. data/doc_out/index.html.md +3 -3
  35. data/lib/purecloud.rb +5 -0
  36. data/lib/purecloud/api/identity_provider_api.rb +165 -0
  37. data/lib/purecloud/api/telephony_providers_edge_api.rb +10 -10
  38. data/lib/purecloud/api_client.rb +1 -1
  39. data/lib/purecloud/models/adfs.rb +239 -0
  40. data/lib/purecloud/models/codes_request.rb +175 -0
  41. data/lib/purecloud/models/contact_sort.rb +16 -4
  42. data/lib/purecloud/models/content_query_request.rb +16 -4
  43. data/lib/purecloud/models/conversation_association.rb +197 -0
  44. data/lib/purecloud/models/create_callback_command.rb +18 -8
  45. data/lib/purecloud/models/create_integration_request.rb +200 -0
  46. data/lib/purecloud/models/customer_interaction_center.rb +13 -1
  47. data/lib/purecloud/models/dependency.rb +1 -1
  48. data/lib/purecloud/models/dependency_object.rb +1 -1
  49. data/lib/purecloud/models/docusign_template_mapping.rb +197 -0
  50. data/lib/purecloud/models/domain_edge_software_version_dto.rb +13 -13
  51. data/lib/purecloud/models/embedded_signature_view.rb +15 -4
  52. data/lib/purecloud/models/flow.rb +1 -1
  53. data/lib/purecloud/models/integration.rb +2 -1
  54. data/lib/purecloud/models/integration_type.rb +1 -10
  55. data/lib/purecloud/models/json_node.rb +49 -49
  56. data/lib/purecloud/models/number_order.rb +23 -1
  57. data/lib/purecloud/models/o_auth_provider.rb +13 -1
  58. data/lib/purecloud/models/okta.rb +13 -1
  59. data/lib/purecloud/models/one_login.rb +13 -1
  60. data/lib/purecloud/models/policy_actions.rb +16 -1
  61. data/lib/purecloud/models/pure_cloud.rb +13 -1
  62. data/lib/purecloud/models/query_request.rb +16 -4
  63. data/lib/purecloud/models/response.rb +21 -1
  64. data/lib/purecloud/models/response_text.rb +9 -0
  65. data/lib/purecloud/models/routing_data.rb +5 -0
  66. data/lib/purecloud/models/salesforce.rb +13 -1
  67. data/lib/purecloud/models/script.rb +13 -1
  68. data/lib/purecloud/models/signature_document_info.rb +15 -4
  69. data/lib/purecloud/version.rb +1 -1
  70. data/newVersion.md +1 -1
  71. data/swagger.json +1 -1
  72. data/version.json +1 -1
  73. metadata +12 -2
@@ -29,6 +29,8 @@ module PureCloud
29
29
 
30
30
  attr_accessor :sso_target_uri
31
31
 
32
+ attr_accessor :disabled
33
+
32
34
  # The URI for this object
33
35
  attr_accessor :self_uri
34
36
 
@@ -46,6 +48,8 @@ module PureCloud
46
48
 
47
49
  :'sso_target_uri' => :'ssoTargetURI',
48
50
 
51
+ :'disabled' => :'disabled',
52
+
49
53
  :'self_uri' => :'selfUri'
50
54
 
51
55
  }
@@ -59,6 +63,7 @@ module PureCloud
59
63
  :'certificate' => :'String',
60
64
  :'issuer_uri' => :'String',
61
65
  :'sso_target_uri' => :'String',
66
+ :'disabled' => :'BOOLEAN',
62
67
  :'self_uri' => :'String'
63
68
 
64
69
  }
@@ -91,6 +96,12 @@ module PureCloud
91
96
  self.sso_target_uri = attributes[:'ssoTargetURI']
92
97
  end
93
98
 
99
+ if attributes[:'disabled']
100
+ self.disabled = attributes[:'disabled']
101
+ else
102
+ self.disabled = false
103
+ end
104
+
94
105
  if attributes[:'selfUri']
95
106
  self.self_uri = attributes[:'selfUri']
96
107
  end
@@ -106,6 +117,7 @@ module PureCloud
106
117
  certificate == o.certificate &&
107
118
  issuer_uri == o.issuer_uri &&
108
119
  sso_target_uri == o.sso_target_uri &&
120
+ disabled == o.disabled &&
109
121
  self_uri == o.self_uri
110
122
  end
111
123
 
@@ -116,7 +128,7 @@ module PureCloud
116
128
 
117
129
  # Calculate hash code according to all attributes.
118
130
  def hash
119
- [id, name, certificate, issuer_uri, sso_target_uri, self_uri].hash
131
+ [id, name, certificate, issuer_uri, sso_target_uri, disabled, self_uri].hash
120
132
  end
121
133
 
122
134
  # build the object from hash
@@ -112,7 +112,7 @@ module PureCloud
112
112
 
113
113
  # Custom attribute writer method checking allowed values (enum).
114
114
  def type=(type)
115
- allowed_values = ["ACDLANGUAGE", "ACDSKILL", "ACDWRAPUPCODE", "BRIDGEACTION", "COMPOSERSCRIPT", "CONTACTLIST", "INBOUNDCALLFLOW", "INQUEUECALLFLOW", "IVRCONFIGURATION", "LANGUAGE", "OUTBOUNDCALLFLOW", "QUEUE", "SYSTEMPROMPT", "USER", "USERPROMPT", "VOICEXML"]
115
+ allowed_values = ["ACDLANGUAGE", "ACDSKILL", "ACDWRAPUPCODE", "BRIDGEACTION", "COMPOSERSCRIPT", "CONTACTLIST", "INBOUNDCALLFLOW", "INQUEUECALLFLOW", "IVRCONFIGURATION", "LANGUAGE", "OUTBOUNDCALLFLOW", "QUEUE", "SUBFLOWCALLFLOW", "SYSTEMPROMPT", "USER", "USERPROMPT", "VOICEXML"]
116
116
  if type && !allowed_values.include?(type)
117
117
  fail "invalid value for 'type', must be one of #{allowed_values}"
118
118
  end
@@ -134,7 +134,7 @@ module PureCloud
134
134
 
135
135
  # Custom attribute writer method checking allowed values (enum).
136
136
  def type=(type)
137
- allowed_values = ["ACDLANGUAGE", "ACDSKILL", "ACDWRAPUPCODE", "BRIDGEACTION", "COMPOSERSCRIPT", "CONTACTLIST", "INBOUNDCALLFLOW", "INQUEUECALLFLOW", "IVRCONFIGURATION", "LANGUAGE", "OUTBOUNDCALLFLOW", "QUEUE", "SYSTEMPROMPT", "USER", "USERPROMPT", "VOICEXML"]
137
+ allowed_values = ["ACDLANGUAGE", "ACDSKILL", "ACDWRAPUPCODE", "BRIDGEACTION", "COMPOSERSCRIPT", "CONTACTLIST", "INBOUNDCALLFLOW", "INQUEUECALLFLOW", "IVRCONFIGURATION", "LANGUAGE", "OUTBOUNDCALLFLOW", "QUEUE", "SUBFLOWCALLFLOW", "SYSTEMPROMPT", "USER", "USERPROMPT", "VOICEXML"]
138
138
  if type && !allowed_values.include?(type)
139
139
  fail "invalid value for 'type', must be one of #{allowed_values}"
140
140
  end
@@ -0,0 +1,197 @@
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@inin.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
+ class DocusignTemplateMapping
21
+ # The globally unique identifier for the object.
22
+ attr_accessor :id
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :docusign_template_id
27
+
28
+ # The URI for this object
29
+ attr_accessor :self_uri
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+
35
+ :'id' => :'id',
36
+
37
+ :'name' => :'name',
38
+
39
+ :'docusign_template_id' => :'docusignTemplateId',
40
+
41
+ :'self_uri' => :'selfUri'
42
+
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'id' => :'String',
50
+ :'name' => :'String',
51
+ :'docusign_template_id' => :'String',
52
+ :'self_uri' => :'String'
53
+
54
+ }
55
+ end
56
+
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
62
+
63
+
64
+ if attributes[:'id']
65
+ self.id = attributes[:'id']
66
+ end
67
+
68
+ if attributes[:'name']
69
+ self.name = attributes[:'name']
70
+ end
71
+
72
+ if attributes[:'docusignTemplateId']
73
+ self.docusign_template_id = attributes[:'docusignTemplateId']
74
+ end
75
+
76
+ if attributes[:'selfUri']
77
+ self.self_uri = attributes[:'selfUri']
78
+ end
79
+
80
+ end
81
+
82
+ # Check equality by comparing each attribute.
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ id == o.id &&
87
+ name == o.name &&
88
+ docusign_template_id == o.docusign_template_id &&
89
+ self_uri == o.self_uri
90
+ end
91
+
92
+ # @see the `==` method
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculate hash code according to all attributes.
98
+ def hash
99
+ [id, name, docusign_template_id, self_uri].hash
100
+ end
101
+
102
+ # build the object from hash
103
+ def build_from_hash(attributes)
104
+ return nil unless attributes.is_a?(Hash)
105
+ self.class.swagger_types.each_pair do |key, type|
106
+ if type =~ /^Array<(.*)>/i
107
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
108
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
109
+ else
110
+ #TODO show warning in debug mode
111
+ end
112
+ elsif !attributes[self.class.attribute_map[key]].nil?
113
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
114
+ else
115
+ # data not found in attributes(hash), not an issue as the data can be optional
116
+ end
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ def _deserialize(type, value)
123
+ case type.to_sym
124
+ when :DateTime
125
+ DateTime.parse(value)
126
+ when :Date
127
+ Date.parse(value)
128
+ when :String
129
+ value.to_s
130
+ when :Integer
131
+ value.to_i
132
+ when :Float
133
+ value.to_f
134
+ when :BOOLEAN
135
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
136
+ true
137
+ else
138
+ false
139
+ end
140
+ when :Object
141
+ # generic object (usually a Hash), return directly
142
+ value
143
+ when /\AArray<(?<inner_type>.+)>\z/
144
+ inner_type = Regexp.last_match[:inner_type]
145
+ value.map { |v| _deserialize(inner_type, v) }
146
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
147
+ k_type = Regexp.last_match[:k_type]
148
+ v_type = Regexp.last_match[:v_type]
149
+ {}.tap do |hash|
150
+ value.each do |k, v|
151
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
152
+ end
153
+ end
154
+ else # model
155
+ _model = Object.const_get("PureCloud").const_get(type).new
156
+ _model.build_from_hash(value)
157
+ end
158
+ end
159
+
160
+ def to_s
161
+ to_hash.to_s
162
+ end
163
+
164
+ # to_body is an alias to to_body (backward compatibility))
165
+ def to_body
166
+ to_hash
167
+ end
168
+
169
+ # return the object in the form of hash
170
+ def to_hash
171
+ hash = {}
172
+ self.class.attribute_map.each_pair do |attr, param|
173
+ value = self.send(attr)
174
+ next if value.nil?
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ # Method to output non-array value in the form of hash
181
+ # For object, use to_hash. Otherwise, just return the value
182
+ def _to_hash(value)
183
+ if value.is_a?(Array)
184
+ value.compact.map{ |v| _to_hash(v) }
185
+ elsif value.is_a?(Hash)
186
+ {}.tap do |hash|
187
+ value.each { |k, v| hash[k] = _to_hash(v) }
188
+ end
189
+ elsif value.respond_to? :to_hash
190
+ value.to_hash
191
+ else
192
+ value
193
+ end
194
+ end
195
+
196
+ end
197
+ end
@@ -30,10 +30,10 @@ module PureCloud
30
30
 
31
31
  attr_accessor :edge_uri
32
32
 
33
- attr_accessor :latest_release
34
-
35
33
  attr_accessor :current
36
34
 
35
+ attr_accessor :latest_release
36
+
37
37
  # The URI for this object
38
38
  attr_accessor :self_uri
39
39
 
@@ -51,10 +51,10 @@ module PureCloud
51
51
 
52
52
  :'edge_uri' => :'edgeUri',
53
53
 
54
- :'latest_release' => :'latestRelease',
55
-
56
54
  :'current' => :'current',
57
55
 
56
+ :'latest_release' => :'latestRelease',
57
+
58
58
  :'self_uri' => :'selfUri'
59
59
 
60
60
  }
@@ -68,8 +68,8 @@ module PureCloud
68
68
  :'edge_version' => :'String',
69
69
  :'publish_date' => :'DateTime',
70
70
  :'edge_uri' => :'String',
71
- :'latest_release' => :'BOOLEAN',
72
71
  :'current' => :'BOOLEAN',
72
+ :'latest_release' => :'BOOLEAN',
73
73
  :'self_uri' => :'String'
74
74
 
75
75
  }
@@ -102,18 +102,18 @@ module PureCloud
102
102
  self.edge_uri = attributes[:'edgeUri']
103
103
  end
104
104
 
105
- if attributes[:'latestRelease']
106
- self.latest_release = attributes[:'latestRelease']
107
- else
108
- self.latest_release = false
109
- end
110
-
111
105
  if attributes[:'current']
112
106
  self.current = attributes[:'current']
113
107
  else
114
108
  self.current = false
115
109
  end
116
110
 
111
+ if attributes[:'latestRelease']
112
+ self.latest_release = attributes[:'latestRelease']
113
+ else
114
+ self.latest_release = false
115
+ end
116
+
117
117
  if attributes[:'selfUri']
118
118
  self.self_uri = attributes[:'selfUri']
119
119
  end
@@ -129,8 +129,8 @@ module PureCloud
129
129
  edge_version == o.edge_version &&
130
130
  publish_date == o.publish_date &&
131
131
  edge_uri == o.edge_uri &&
132
- latest_release == o.latest_release &&
133
132
  current == o.current &&
133
+ latest_release == o.latest_release &&
134
134
  self_uri == o.self_uri
135
135
  end
136
136
 
@@ -141,7 +141,7 @@ module PureCloud
141
141
 
142
142
  # Calculate hash code according to all attributes.
143
143
  def hash
144
- [id, name, edge_version, publish_date, edge_uri, latest_release, current, self_uri].hash
144
+ [id, name, edge_version, publish_date, edge_uri, current, latest_release, self_uri].hash
145
145
  end
146
146
 
147
147
  # build the object from hash
@@ -20,11 +20,16 @@ module PureCloud
20
20
  class EmbeddedSignatureView
21
21
  attr_accessor :view
22
22
 
23
+ # Envelope id for the terms and conditions associated with this request.
24
+ attr_accessor :envelope_id
25
+
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
26
29
 
27
- :'view' => :'view'
30
+ :'view' => :'view',
31
+
32
+ :'envelope_id' => :'envelopeId'
28
33
 
29
34
  }
30
35
  end
@@ -32,7 +37,8 @@ module PureCloud
32
37
  # Attribute type mapping.
33
38
  def self.swagger_types
34
39
  {
35
- :'view' => :'View'
40
+ :'view' => :'View',
41
+ :'envelope_id' => :'String'
36
42
 
37
43
  }
38
44
  end
@@ -48,13 +54,18 @@ module PureCloud
48
54
  self.view = attributes[:'view']
49
55
  end
50
56
 
57
+ if attributes[:'envelopeId']
58
+ self.envelope_id = attributes[:'envelopeId']
59
+ end
60
+
51
61
  end
52
62
 
53
63
  # Check equality by comparing each attribute.
54
64
  def ==(o)
55
65
  return true if self.equal?(o)
56
66
  self.class == o.class &&
57
- view == o.view
67
+ view == o.view &&
68
+ envelope_id == o.envelope_id
58
69
  end
59
70
 
60
71
  # @see the `==` method
@@ -64,7 +75,7 @@ module PureCloud
64
75
 
65
76
  # Calculate hash code according to all attributes.
66
77
  def hash
67
- [view].hash
78
+ [view, envelope_id].hash
68
79
  end
69
80
 
70
81
  # build the object from hash
@@ -177,7 +177,7 @@ module PureCloud
177
177
 
178
178
  # Custom attribute writer method checking allowed values (enum).
179
179
  def type=(type)
180
- allowed_values = ["INBOUNDCALL", "OUTBOUNDCALL", "INQUEUECALL", "SPEECH"]
180
+ allowed_values = ["INBOUNDCALL", "OUTBOUNDCALL", "INQUEUECALL", "SPEECH", "SUBFLOWCALL"]
181
181
  if type && !allowed_values.include?(type)
182
182
  fail "invalid value for 'type', must be one of #{allowed_values}"
183
183
  end
@@ -22,9 +22,10 @@ module PureCloud
22
22
  # The globally unique identifier for the object.
23
23
  attr_accessor :id
24
24
 
25
+ # The name of the integration, used to distinguish this integration from others of the same type.
25
26
  attr_accessor :name
26
27
 
27
- # Type of the integration.
28
+ # Type of the integration
28
29
  attr_accessor :integration_type
29
30
 
30
31
  # Configured state of the integration.
@@ -19,7 +19,7 @@ require 'date'
19
19
  module PureCloud
20
20
  # Descriptor for a type of Integration.
21
21
  class IntegrationType
22
- # The globally unique identifier for the object.
22
+ # The ID of the integration type.
23
23
  attr_accessor :id
24
24
 
25
25
  attr_accessor :name
@@ -123,15 +123,6 @@ module PureCloud
123
123
 
124
124
  end
125
125
 
126
- # Custom attribute writer method checking allowed values (enum).
127
- def provider=(provider)
128
- allowed_values = ["BRIDGE", "WEBHOOKS", "REALTIME"]
129
- if provider && !allowed_values.include?(provider)
130
- fail "invalid value for 'provider', must be one of #{allowed_values}"
131
- end
132
- @provider = provider
133
- end
134
-
135
126
  # Check equality by comparing each attribute.
136
127
  def ==(o)
137
128
  return true if self.equal?(o)