ultracart_api 3.10.184 → 3.10.185
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +80 -4
- data/docs/ConversationApi.md +2466 -340
- data/docs/ConversationPbxAgent.md +16 -0
- data/docs/ConversationPbxAgentResponse.md +12 -0
- data/docs/ConversationPbxAgentsResponse.md +12 -0
- data/docs/ConversationPbxAudio.md +16 -0
- data/docs/ConversationPbxAudioResponse.md +12 -0
- data/docs/ConversationPbxAudiosResponse.md +12 -0
- data/docs/ConversationPbxCustomerSnapshotRequest.md +15 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +14 -0
- data/docs/ConversationPbxMenu.md +17 -0
- data/docs/ConversationPbxMenuMapping.md +11 -0
- data/docs/ConversationPbxMenuResponse.md +12 -0
- data/docs/ConversationPbxMenusResponse.md +12 -0
- data/docs/ConversationPbxPhoneNumber.md +12 -0
- data/docs/ConversationPbxPhoneNumberResponse.md +12 -0
- data/docs/ConversationPbxPhoneNumbersResponse.md +12 -0
- data/docs/ConversationPbxQueue.md +25 -0
- data/docs/ConversationPbxQueueMembers.md +9 -0
- data/docs/ConversationPbxQueueResponse.md +12 -0
- data/docs/ConversationPbxQueuesResponse.md +12 -0
- data/docs/ConversationPbxTimeBased.md +11 -0
- data/docs/ConversationPbxTimeBasedMapping.md +11 -0
- data/docs/ConversationPbxTimeBasedMappingConfig.md +9 -0
- data/docs/ConversationPbxTimeBasedResponse.md +12 -0
- data/docs/ConversationPbxTimeBasedsResponse.md +12 -0
- data/docs/ConversationPbxTimeRange.md +12 -0
- data/docs/ConversationPbxTimeRangeConfig.md +13 -0
- data/docs/ConversationPbxTimeRangeResponse.md +12 -0
- data/docs/ConversationPbxTimeRangesResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMailbox.md +18 -0
- data/docs/ConversationPbxVoicemailMailboxResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMailboxesResponse.md +12 -0
- data/docs/WorkflowApi.md +46 -0
- data/docs/WorkflowTaskTagsResponse.md +12 -0
- data/lib/ultracart_api/api/conversation_api.rb +2919 -609
- data/lib/ultracart_api/api/workflow_api.rb +49 -0
- data/lib/ultracart_api/models/conversation_pbx_agent.rb +325 -0
- data/lib/ultracart_api/models/conversation_pbx_agent_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_agents_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_audio.rb +355 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_audios_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb +248 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb +243 -0
- data/lib/ultracart_api/models/conversation_pbx_menu.rb +367 -0
- data/lib/ultracart_api/models/conversation_pbx_menu_mapping.rb +215 -0
- data/lib/ultracart_api/models/conversation_pbx_menu_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_menus_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_number.rb +300 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_number_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_numbers_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_queue.rb +504 -0
- data/lib/ultracart_api/models/conversation_pbx_queue_members.rb +197 -0
- data/lib/ultracart_api/models/conversation_pbx_queue_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_queues_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based.rb +211 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping.rb +275 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping_config.rb +196 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_time_baseds_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range.rb +287 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range_config.rb +235 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_time_ranges_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb +405 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailboxes_response.rb +223 -0
- data/lib/ultracart_api/models/workflow_task_tags_response.rb +224 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +32 -0
- metadata +66 -2
@@ -0,0 +1,223 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationPbxVoicemailMailboxesResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :metadata
|
20
|
+
|
21
|
+
# Indicates if API call was successful
|
22
|
+
attr_accessor :success
|
23
|
+
|
24
|
+
attr_accessor :voicemail_mailboxes
|
25
|
+
|
26
|
+
attr_accessor :warning
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'error' => :'error',
|
32
|
+
:'metadata' => :'metadata',
|
33
|
+
:'success' => :'success',
|
34
|
+
:'voicemail_mailboxes' => :'voicemailMailboxes',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'error' => :'Error',
|
43
|
+
:'metadata' => :'ResponseMetadata',
|
44
|
+
:'success' => :'BOOLEAN',
|
45
|
+
:'voicemail_mailboxes' => :'Array<ConversationPbxVoicemailMailbox>',
|
46
|
+
:'warning' => :'Warning'
|
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
|
+
if attributes.has_key?(:'error')
|
59
|
+
self.error = attributes[:'error']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'metadata')
|
63
|
+
self.metadata = attributes[:'metadata']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'success')
|
67
|
+
self.success = attributes[:'success']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'voicemailMailboxes')
|
71
|
+
if (value = attributes[:'voicemailMailboxes']).is_a?(Array)
|
72
|
+
self.voicemail_mailboxes = value
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'warning')
|
77
|
+
self.warning = attributes[:'warning']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
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
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
error == o.error &&
|
100
|
+
metadata == o.metadata &&
|
101
|
+
success == o.success &&
|
102
|
+
voicemail_mailboxes == o.voicemail_mailboxes &&
|
103
|
+
warning == o.warning
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[error, metadata, success, voicemail_mailboxes, warning].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def build_from_hash(attributes)
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :DateTime
|
145
|
+
DateTime.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :BOOLEAN
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
@@ -0,0 +1,224 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class WorkflowTaskTagsResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :metadata
|
20
|
+
|
21
|
+
# Indicates if API call was successful
|
22
|
+
attr_accessor :success
|
23
|
+
|
24
|
+
# Tags
|
25
|
+
attr_accessor :tags
|
26
|
+
|
27
|
+
attr_accessor :warning
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'tags' => :'tags',
|
36
|
+
:'warning' => :'warning'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Attribute type mapping.
|
41
|
+
def self.swagger_types
|
42
|
+
{
|
43
|
+
:'error' => :'Error',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'tags' => :'Array<String>',
|
47
|
+
:'warning' => :'Warning'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
return unless attributes.is_a?(Hash)
|
55
|
+
|
56
|
+
# convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
|
+
|
59
|
+
if attributes.has_key?(:'error')
|
60
|
+
self.error = attributes[:'error']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.has_key?(:'metadata')
|
64
|
+
self.metadata = attributes[:'metadata']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'success')
|
68
|
+
self.success = attributes[:'success']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'tags')
|
72
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
73
|
+
self.tags = value
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'warning')
|
78
|
+
self.warning = attributes[:'warning']
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
83
|
+
# @return Array for valid properties with the reasons
|
84
|
+
def list_invalid_properties
|
85
|
+
invalid_properties = Array.new
|
86
|
+
invalid_properties
|
87
|
+
end
|
88
|
+
|
89
|
+
# Check to see if the all the properties in the model are valid
|
90
|
+
# @return true if the model is valid
|
91
|
+
def valid?
|
92
|
+
true
|
93
|
+
end
|
94
|
+
|
95
|
+
# Checks equality by comparing each attribute.
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def ==(o)
|
98
|
+
return true if self.equal?(o)
|
99
|
+
self.class == o.class &&
|
100
|
+
error == o.error &&
|
101
|
+
metadata == o.metadata &&
|
102
|
+
success == o.success &&
|
103
|
+
tags == o.tags &&
|
104
|
+
warning == o.warning
|
105
|
+
end
|
106
|
+
|
107
|
+
# @see the `==` method
|
108
|
+
# @param [Object] Object to be compared
|
109
|
+
def eql?(o)
|
110
|
+
self == o
|
111
|
+
end
|
112
|
+
|
113
|
+
# Calculates hash code according to all attributes.
|
114
|
+
# @return [Fixnum] Hash code
|
115
|
+
def hash
|
116
|
+
[error, metadata, success, tags, warning].hash
|
117
|
+
end
|
118
|
+
|
119
|
+
# Builds the object from hash
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
+
# @return [Object] Returns the model itself
|
122
|
+
def build_from_hash(attributes)
|
123
|
+
return nil unless attributes.is_a?(Hash)
|
124
|
+
self.class.swagger_types.each_pair do |key, type|
|
125
|
+
if type =~ /\AArray<(.*)>/i
|
126
|
+
# check to ensure the input is an array given that the attribute
|
127
|
+
# is documented as an array but the input is not
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
130
|
+
end
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
133
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
134
|
+
end
|
135
|
+
|
136
|
+
self
|
137
|
+
end
|
138
|
+
|
139
|
+
# Deserializes the data based on type
|
140
|
+
# @param string type Data type
|
141
|
+
# @param string value Value to be deserialized
|
142
|
+
# @return [Object] Deserialized data
|
143
|
+
def _deserialize(type, value)
|
144
|
+
case type.to_sym
|
145
|
+
when :DateTime
|
146
|
+
DateTime.parse(value)
|
147
|
+
when :Date
|
148
|
+
Date.parse(value)
|
149
|
+
when :String
|
150
|
+
value.to_s
|
151
|
+
when :Integer
|
152
|
+
value.to_i
|
153
|
+
when :Float
|
154
|
+
value.to_f
|
155
|
+
when :BOOLEAN
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
157
|
+
true
|
158
|
+
else
|
159
|
+
false
|
160
|
+
end
|
161
|
+
when :Object
|
162
|
+
# generic object (usually a Hash), return directly
|
163
|
+
value
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
170
|
+
{}.tap do |hash|
|
171
|
+
value.each do |k, v|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
else # model
|
176
|
+
temp_model = UltracartClient.const_get(type).new
|
177
|
+
temp_model.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
next if value.nil?
|
200
|
+
hash[param] = _to_hash(value)
|
201
|
+
end
|
202
|
+
hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Outputs non-array value in the form of hash
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
207
|
+
# @param [Object] value Any valid value
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
209
|
+
def _to_hash(value)
|
210
|
+
if value.is_a?(Array)
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
212
|
+
elsif value.is_a?(Hash)
|
213
|
+
{}.tap do |hash|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
+
end
|
216
|
+
elsif value.respond_to? :to_hash
|
217
|
+
value.to_hash
|
218
|
+
else
|
219
|
+
value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -186,6 +186,37 @@ require 'ultracart_api/models/conversation_messages_response'
|
|
186
186
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
187
187
|
require 'ultracart_api/models/conversation_multimedia_upload_url_response'
|
188
188
|
require 'ultracart_api/models/conversation_participant'
|
189
|
+
require 'ultracart_api/models/conversation_pbx_agent'
|
190
|
+
require 'ultracart_api/models/conversation_pbx_agent_response'
|
191
|
+
require 'ultracart_api/models/conversation_pbx_agents_response'
|
192
|
+
require 'ultracart_api/models/conversation_pbx_audio'
|
193
|
+
require 'ultracart_api/models/conversation_pbx_audio_response'
|
194
|
+
require 'ultracart_api/models/conversation_pbx_audios_response'
|
195
|
+
require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
|
196
|
+
require 'ultracart_api/models/conversation_pbx_customer_snapshot_response'
|
197
|
+
require 'ultracart_api/models/conversation_pbx_menu'
|
198
|
+
require 'ultracart_api/models/conversation_pbx_menu_mapping'
|
199
|
+
require 'ultracart_api/models/conversation_pbx_menu_response'
|
200
|
+
require 'ultracart_api/models/conversation_pbx_menus_response'
|
201
|
+
require 'ultracart_api/models/conversation_pbx_phone_number'
|
202
|
+
require 'ultracart_api/models/conversation_pbx_phone_number_response'
|
203
|
+
require 'ultracart_api/models/conversation_pbx_phone_numbers_response'
|
204
|
+
require 'ultracart_api/models/conversation_pbx_queue'
|
205
|
+
require 'ultracart_api/models/conversation_pbx_queue_members'
|
206
|
+
require 'ultracart_api/models/conversation_pbx_queue_response'
|
207
|
+
require 'ultracart_api/models/conversation_pbx_queues_response'
|
208
|
+
require 'ultracart_api/models/conversation_pbx_time_based'
|
209
|
+
require 'ultracart_api/models/conversation_pbx_time_based_mapping'
|
210
|
+
require 'ultracart_api/models/conversation_pbx_time_based_mapping_config'
|
211
|
+
require 'ultracart_api/models/conversation_pbx_time_based_response'
|
212
|
+
require 'ultracart_api/models/conversation_pbx_time_baseds_response'
|
213
|
+
require 'ultracart_api/models/conversation_pbx_time_range'
|
214
|
+
require 'ultracart_api/models/conversation_pbx_time_range_config'
|
215
|
+
require 'ultracart_api/models/conversation_pbx_time_range_response'
|
216
|
+
require 'ultracart_api/models/conversation_pbx_time_ranges_response'
|
217
|
+
require 'ultracart_api/models/conversation_pbx_voicemail_mailbox'
|
218
|
+
require 'ultracart_api/models/conversation_pbx_voicemail_mailbox_response'
|
219
|
+
require 'ultracart_api/models/conversation_pbx_voicemail_mailboxes_response'
|
189
220
|
require 'ultracart_api/models/conversation_permissions'
|
190
221
|
require 'ultracart_api/models/conversation_permissions_response'
|
191
222
|
require 'ultracart_api/models/conversation_response'
|
@@ -818,6 +849,7 @@ require 'ultracart_api/models/workflow_note'
|
|
818
849
|
require 'ultracart_api/models/workflow_task'
|
819
850
|
require 'ultracart_api/models/workflow_task_history'
|
820
851
|
require 'ultracart_api/models/workflow_task_response'
|
852
|
+
require 'ultracart_api/models/workflow_task_tags_response'
|
821
853
|
require 'ultracart_api/models/workflow_tasks_request'
|
822
854
|
require 'ultracart_api/models/workflow_tasks_response'
|
823
855
|
require 'ultracart_api/models/workflow_user'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.10.
|
4
|
+
version: 3.10.185
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -396,6 +396,37 @@ files:
|
|
396
396
|
- docs/ConversationMultimediaUploadUrl.md
|
397
397
|
- docs/ConversationMultimediaUploadUrlResponse.md
|
398
398
|
- docs/ConversationParticipant.md
|
399
|
+
- docs/ConversationPbxAgent.md
|
400
|
+
- docs/ConversationPbxAgentResponse.md
|
401
|
+
- docs/ConversationPbxAgentsResponse.md
|
402
|
+
- docs/ConversationPbxAudio.md
|
403
|
+
- docs/ConversationPbxAudioResponse.md
|
404
|
+
- docs/ConversationPbxAudiosResponse.md
|
405
|
+
- docs/ConversationPbxCustomerSnapshotRequest.md
|
406
|
+
- docs/ConversationPbxCustomerSnapshotResponse.md
|
407
|
+
- docs/ConversationPbxMenu.md
|
408
|
+
- docs/ConversationPbxMenuMapping.md
|
409
|
+
- docs/ConversationPbxMenuResponse.md
|
410
|
+
- docs/ConversationPbxMenusResponse.md
|
411
|
+
- docs/ConversationPbxPhoneNumber.md
|
412
|
+
- docs/ConversationPbxPhoneNumberResponse.md
|
413
|
+
- docs/ConversationPbxPhoneNumbersResponse.md
|
414
|
+
- docs/ConversationPbxQueue.md
|
415
|
+
- docs/ConversationPbxQueueMembers.md
|
416
|
+
- docs/ConversationPbxQueueResponse.md
|
417
|
+
- docs/ConversationPbxQueuesResponse.md
|
418
|
+
- docs/ConversationPbxTimeBased.md
|
419
|
+
- docs/ConversationPbxTimeBasedMapping.md
|
420
|
+
- docs/ConversationPbxTimeBasedMappingConfig.md
|
421
|
+
- docs/ConversationPbxTimeBasedResponse.md
|
422
|
+
- docs/ConversationPbxTimeBasedsResponse.md
|
423
|
+
- docs/ConversationPbxTimeRange.md
|
424
|
+
- docs/ConversationPbxTimeRangeConfig.md
|
425
|
+
- docs/ConversationPbxTimeRangeResponse.md
|
426
|
+
- docs/ConversationPbxTimeRangesResponse.md
|
427
|
+
- docs/ConversationPbxVoicemailMailbox.md
|
428
|
+
- docs/ConversationPbxVoicemailMailboxResponse.md
|
429
|
+
- docs/ConversationPbxVoicemailMailboxesResponse.md
|
399
430
|
- docs/ConversationPermissions.md
|
400
431
|
- docs/ConversationPermissionsResponse.md
|
401
432
|
- docs/ConversationResponse.md
|
@@ -1043,6 +1074,7 @@ files:
|
|
1043
1074
|
- docs/WorkflowTask.md
|
1044
1075
|
- docs/WorkflowTaskHistory.md
|
1045
1076
|
- docs/WorkflowTaskResponse.md
|
1077
|
+
- docs/WorkflowTaskTagsResponse.md
|
1046
1078
|
- docs/WorkflowTasksRequest.md
|
1047
1079
|
- docs/WorkflowTasksResponse.md
|
1048
1080
|
- docs/WorkflowUser.md
|
@@ -1243,6 +1275,37 @@ files:
|
|
1243
1275
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|
1244
1276
|
- lib/ultracart_api/models/conversation_multimedia_upload_url_response.rb
|
1245
1277
|
- lib/ultracart_api/models/conversation_participant.rb
|
1278
|
+
- lib/ultracart_api/models/conversation_pbx_agent.rb
|
1279
|
+
- lib/ultracart_api/models/conversation_pbx_agent_response.rb
|
1280
|
+
- lib/ultracart_api/models/conversation_pbx_agents_response.rb
|
1281
|
+
- lib/ultracart_api/models/conversation_pbx_audio.rb
|
1282
|
+
- lib/ultracart_api/models/conversation_pbx_audio_response.rb
|
1283
|
+
- lib/ultracart_api/models/conversation_pbx_audios_response.rb
|
1284
|
+
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
|
1285
|
+
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb
|
1286
|
+
- lib/ultracart_api/models/conversation_pbx_menu.rb
|
1287
|
+
- lib/ultracart_api/models/conversation_pbx_menu_mapping.rb
|
1288
|
+
- lib/ultracart_api/models/conversation_pbx_menu_response.rb
|
1289
|
+
- lib/ultracart_api/models/conversation_pbx_menus_response.rb
|
1290
|
+
- lib/ultracart_api/models/conversation_pbx_phone_number.rb
|
1291
|
+
- lib/ultracart_api/models/conversation_pbx_phone_number_response.rb
|
1292
|
+
- lib/ultracart_api/models/conversation_pbx_phone_numbers_response.rb
|
1293
|
+
- lib/ultracart_api/models/conversation_pbx_queue.rb
|
1294
|
+
- lib/ultracart_api/models/conversation_pbx_queue_members.rb
|
1295
|
+
- lib/ultracart_api/models/conversation_pbx_queue_response.rb
|
1296
|
+
- lib/ultracart_api/models/conversation_pbx_queues_response.rb
|
1297
|
+
- lib/ultracart_api/models/conversation_pbx_time_based.rb
|
1298
|
+
- lib/ultracart_api/models/conversation_pbx_time_based_mapping.rb
|
1299
|
+
- lib/ultracart_api/models/conversation_pbx_time_based_mapping_config.rb
|
1300
|
+
- lib/ultracart_api/models/conversation_pbx_time_based_response.rb
|
1301
|
+
- lib/ultracart_api/models/conversation_pbx_time_baseds_response.rb
|
1302
|
+
- lib/ultracart_api/models/conversation_pbx_time_range.rb
|
1303
|
+
- lib/ultracart_api/models/conversation_pbx_time_range_config.rb
|
1304
|
+
- lib/ultracart_api/models/conversation_pbx_time_range_response.rb
|
1305
|
+
- lib/ultracart_api/models/conversation_pbx_time_ranges_response.rb
|
1306
|
+
- lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb
|
1307
|
+
- lib/ultracart_api/models/conversation_pbx_voicemail_mailbox_response.rb
|
1308
|
+
- lib/ultracart_api/models/conversation_pbx_voicemail_mailboxes_response.rb
|
1246
1309
|
- lib/ultracart_api/models/conversation_permissions.rb
|
1247
1310
|
- lib/ultracart_api/models/conversation_permissions_response.rb
|
1248
1311
|
- lib/ultracart_api/models/conversation_response.rb
|
@@ -1875,6 +1938,7 @@ files:
|
|
1875
1938
|
- lib/ultracart_api/models/workflow_task.rb
|
1876
1939
|
- lib/ultracart_api/models/workflow_task_history.rb
|
1877
1940
|
- lib/ultracart_api/models/workflow_task_response.rb
|
1941
|
+
- lib/ultracart_api/models/workflow_task_tags_response.rb
|
1878
1942
|
- lib/ultracart_api/models/workflow_tasks_request.rb
|
1879
1943
|
- lib/ultracart_api/models/workflow_tasks_response.rb
|
1880
1944
|
- lib/ultracart_api/models/workflow_user.rb
|