ultracart_api 4.1.51 → 4.1.54

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -2
  3. data/docs/ConversationApi.md +111 -0
  4. data/docs/ConversationPbxAgent.md +2 -0
  5. data/docs/ConversationPbxCall.md +60 -0
  6. data/docs/ConversationPbxCallAgent.md +34 -0
  7. data/docs/ConversationPbxCallAiCost.md +24 -0
  8. data/docs/ConversationPbxCallAiEngagement.md +36 -0
  9. data/docs/ConversationPbxCallAiToolCall.md +34 -0
  10. data/docs/ConversationPbxCallAiWhisper.md +24 -0
  11. data/docs/ConversationPbxCallCaller.md +26 -0
  12. data/docs/ConversationPbxCallFinancial.md +30 -0
  13. data/docs/ConversationPbxCallHold.md +24 -0
  14. data/docs/ConversationPbxCallQueue.md +28 -0
  15. data/docs/ConversationPbxCallRecording.md +30 -0
  16. data/docs/ConversationPbxCallResponse.md +26 -0
  17. data/docs/ConversationPbxCallRouting.md +22 -0
  18. data/docs/ConversationPbxCallSearchRequest.md +48 -0
  19. data/docs/ConversationPbxCallSearchResponse.md +26 -0
  20. data/docs/ConversationPbxCallTimeline.md +28 -0
  21. data/docs/ConversationPbxCallTranscript.md +30 -0
  22. data/docs/ConversationPbxCallTranscriptSegment.md +30 -0
  23. data/docs/ConversationPbxCallTransfer.md +26 -0
  24. data/docs/ConversationPbxPhoneNumber.md +2 -0
  25. data/lib/ultracart_api/api/conversation_api.rb +142 -0
  26. data/lib/ultracart_api/models/conversation_pbx_agent.rb +11 -1
  27. data/lib/ultracart_api/models/conversation_pbx_call.rb +438 -0
  28. data/lib/ultracart_api/models/conversation_pbx_call_agent.rb +300 -0
  29. data/lib/ultracart_api/models/conversation_pbx_call_ai_cost.rb +250 -0
  30. data/lib/ultracart_api/models/conversation_pbx_call_ai_engagement.rb +347 -0
  31. data/lib/ultracart_api/models/conversation_pbx_call_ai_tool_call.rb +300 -0
  32. data/lib/ultracart_api/models/conversation_pbx_call_ai_whisper.rb +250 -0
  33. data/lib/ultracart_api/models/conversation_pbx_call_caller.rb +260 -0
  34. data/lib/ultracart_api/models/conversation_pbx_call_financial.rb +280 -0
  35. data/lib/ultracart_api/models/conversation_pbx_call_hold.rb +250 -0
  36. data/lib/ultracart_api/models/conversation_pbx_call_queue.rb +270 -0
  37. data/lib/ultracart_api/models/conversation_pbx_call_recording.rb +279 -0
  38. data/lib/ultracart_api/models/conversation_pbx_call_response.rb +256 -0
  39. data/lib/ultracart_api/models/conversation_pbx_call_routing.rb +239 -0
  40. data/lib/ultracart_api/models/conversation_pbx_call_search_request.rb +376 -0
  41. data/lib/ultracart_api/models/conversation_pbx_call_search_response.rb +259 -0
  42. data/lib/ultracart_api/models/conversation_pbx_call_timeline.rb +270 -0
  43. data/lib/ultracart_api/models/conversation_pbx_call_transcript.rb +282 -0
  44. data/lib/ultracart_api/models/conversation_pbx_call_transcript_segment.rb +314 -0
  45. data/lib/ultracart_api/models/conversation_pbx_call_transfer.rb +260 -0
  46. data/lib/ultracart_api/models/conversation_pbx_phone_number.rb +11 -1
  47. data/lib/ultracart_api/version.rb +1 -1
  48. data/lib/ultracart_api.rb +19 -0
  49. metadata +40 -2
@@ -0,0 +1,314 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ConversationPbxCallTranscriptSegment
18
+ # Agent ID if speaker is an agent
19
+ attr_accessor :agent_id
20
+
21
+ # Audio channel identifier (e.g. ch_0, ch_1)
22
+ attr_accessor :channel
23
+
24
+ # Transcription confidence score (0-1)
25
+ attr_accessor :confidence
26
+
27
+ # End time in seconds from beginning of recording
28
+ attr_accessor :end_time
29
+
30
+ # Speaker role
31
+ attr_accessor :speaker
32
+
33
+ # Start time in seconds from beginning of recording
34
+ attr_accessor :start_time
35
+
36
+ # Transcribed text for this segment
37
+ attr_accessor :text
38
+
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
55
+
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
60
+
61
+ # Attribute mapping from ruby-style variable name to JSON key.
62
+ def self.attribute_map
63
+ {
64
+ :'agent_id' => :'agent_id',
65
+ :'channel' => :'channel',
66
+ :'confidence' => :'confidence',
67
+ :'end_time' => :'end_time',
68
+ :'speaker' => :'speaker',
69
+ :'start_time' => :'start_time',
70
+ :'text' => :'text'
71
+ }
72
+ end
73
+
74
+ # Returns all the JSON keys this model knows about
75
+ def self.acceptable_attributes
76
+ attribute_map.values
77
+ end
78
+
79
+ # Attribute type mapping.
80
+ def self.openapi_types
81
+ {
82
+ :'agent_id' => :'String',
83
+ :'channel' => :'String',
84
+ :'confidence' => :'Float',
85
+ :'end_time' => :'Float',
86
+ :'speaker' => :'String',
87
+ :'start_time' => :'Float',
88
+ :'text' => :'String'
89
+ }
90
+ end
91
+
92
+ # List of attributes with nullable: true
93
+ def self.openapi_nullable
94
+ Set.new([
95
+ ])
96
+ end
97
+
98
+ # Initializes the object
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ def initialize(attributes = {})
101
+ if (!attributes.is_a?(Hash))
102
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationPbxCallTranscriptSegment` initialize method"
103
+ end
104
+
105
+ # check to see if the attribute exists and convert string to symbol for hash key
106
+ attributes = attributes.each_with_object({}) { |(k, v), h|
107
+ if (!self.class.attribute_map.key?(k.to_sym))
108
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationPbxCallTranscriptSegment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
109
+ end
110
+ h[k.to_sym] = v
111
+ }
112
+
113
+ if attributes.key?(:'agent_id')
114
+ self.agent_id = attributes[:'agent_id']
115
+ end
116
+
117
+ if attributes.key?(:'channel')
118
+ self.channel = attributes[:'channel']
119
+ end
120
+
121
+ if attributes.key?(:'confidence')
122
+ self.confidence = attributes[:'confidence']
123
+ end
124
+
125
+ if attributes.key?(:'end_time')
126
+ self.end_time = attributes[:'end_time']
127
+ end
128
+
129
+ if attributes.key?(:'speaker')
130
+ self.speaker = attributes[:'speaker']
131
+ end
132
+
133
+ if attributes.key?(:'start_time')
134
+ self.start_time = attributes[:'start_time']
135
+ end
136
+
137
+ if attributes.key?(:'text')
138
+ self.text = attributes[:'text']
139
+ end
140
+ end
141
+
142
+ # Show invalid properties with the reasons. Usually used together with valid?
143
+ # @return Array for valid properties with the reasons
144
+ def list_invalid_properties
145
+ invalid_properties = Array.new
146
+ invalid_properties
147
+ end
148
+
149
+ # Check to see if the all the properties in the model are valid
150
+ # @return true if the model is valid
151
+ def valid?
152
+ speaker_validator = EnumAttributeValidator.new('String', ["customer", " agent"])
153
+ return false unless speaker_validator.valid?(@speaker)
154
+ true
155
+ end
156
+
157
+ # Custom attribute writer method checking allowed values (enum).
158
+ # @param [Object] speaker Object to be assigned
159
+ def speaker=(speaker)
160
+ validator = EnumAttributeValidator.new('String', ["customer", " agent"])
161
+ unless validator.valid?(speaker)
162
+ fail ArgumentError, "invalid value for \"speaker\", must be one of #{validator.allowable_values}."
163
+ end
164
+ @speaker = speaker
165
+ end
166
+
167
+ # Checks equality by comparing each attribute.
168
+ # @param [Object] Object to be compared
169
+ def ==(o)
170
+ return true if self.equal?(o)
171
+ self.class == o.class &&
172
+ agent_id == o.agent_id &&
173
+ channel == o.channel &&
174
+ confidence == o.confidence &&
175
+ end_time == o.end_time &&
176
+ speaker == o.speaker &&
177
+ start_time == o.start_time &&
178
+ text == o.text
179
+ end
180
+
181
+ # @see the `==` method
182
+ # @param [Object] Object to be compared
183
+ def eql?(o)
184
+ self == o
185
+ end
186
+
187
+ # Calculates hash code according to all attributes.
188
+ # @return [Integer] Hash code
189
+ def hash
190
+ [agent_id, channel, confidence, end_time, speaker, start_time, text].hash
191
+ end
192
+
193
+ # Builds the object from hash
194
+ # @param [Hash] attributes Model attributes in the form of hash
195
+ # @return [Object] Returns the model itself
196
+ def self.build_from_hash(attributes)
197
+ new.build_from_hash(attributes)
198
+ end
199
+
200
+ # Builds the object from hash
201
+ # @param [Hash] attributes Model attributes in the form of hash
202
+ # @return [Object] Returns the model itself
203
+ def build_from_hash(attributes)
204
+ return nil unless attributes.is_a?(Hash)
205
+ attributes = attributes.transform_keys(&:to_sym)
206
+ self.class.openapi_types.each_pair do |key, type|
207
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
208
+ self.send("#{key}=", nil)
209
+ elsif type =~ /\AArray<(.*)>/i
210
+ # check to ensure the input is an array given that the attribute
211
+ # is documented as an array but the input is not
212
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
213
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
214
+ end
215
+ elsif !attributes[self.class.attribute_map[key]].nil?
216
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
217
+ end
218
+ end
219
+
220
+ self
221
+ end
222
+
223
+ # Deserializes the data based on type
224
+ # @param string type Data type
225
+ # @param string value Value to be deserialized
226
+ # @return [Object] Deserialized data
227
+ def _deserialize(type, value)
228
+ case type.to_sym
229
+ when :Time
230
+ Time.parse(value)
231
+ when :Date
232
+ Date.parse(value)
233
+ when :String
234
+ value.to_s
235
+ when :Integer
236
+ value.to_i
237
+ when :Float
238
+ value.to_f
239
+ when :Boolean
240
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
241
+ true
242
+ else
243
+ false
244
+ end
245
+ when :Object
246
+ # generic object (usually a Hash), return directly
247
+ value
248
+ when /\AArray<(?<inner_type>.+)>\z/
249
+ inner_type = Regexp.last_match[:inner_type]
250
+ value.map { |v| _deserialize(inner_type, v) }
251
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
252
+ k_type = Regexp.last_match[:k_type]
253
+ v_type = Regexp.last_match[:v_type]
254
+ {}.tap do |hash|
255
+ value.each do |k, v|
256
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
257
+ end
258
+ end
259
+ else # model
260
+ # models (e.g. Pet) or oneOf
261
+ klass = UltracartClient.const_get(type)
262
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
263
+ end
264
+ end
265
+
266
+ # Returns the string representation of the object
267
+ # @return [String] String presentation of the object
268
+ def to_s
269
+ to_hash.to_s
270
+ end
271
+
272
+ # to_body is an alias to to_hash (backward compatibility)
273
+ # @return [Hash] Returns the object in the form of hash
274
+ def to_body
275
+ to_hash
276
+ end
277
+
278
+ # Returns the object in the form of hash
279
+ # @return [Hash] Returns the object in the form of hash
280
+ def to_hash
281
+ hash = {}
282
+ self.class.attribute_map.each_pair do |attr, param|
283
+ value = self.send(attr)
284
+ if value.nil?
285
+ is_nullable = self.class.openapi_nullable.include?(attr)
286
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
287
+ end
288
+
289
+ hash[param] = _to_hash(value)
290
+ end
291
+ hash
292
+ end
293
+
294
+ # Outputs non-array value in the form of hash
295
+ # For object, use to_hash. Otherwise, just return the value
296
+ # @param [Object] value Any valid value
297
+ # @return [Hash] Returns the value in the form of hash
298
+ def _to_hash(value)
299
+ if value.is_a?(Array)
300
+ value.compact.map { |v| _to_hash(v) }
301
+ elsif value.is_a?(Hash)
302
+ {}.tap do |hash|
303
+ value.each { |k, v| hash[k] = _to_hash(v) }
304
+ end
305
+ elsif value.respond_to? :to_hash
306
+ value.to_hash
307
+ else
308
+ value
309
+ end
310
+ end
311
+
312
+ end
313
+
314
+ end
@@ -0,0 +1,260 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ConversationPbxCallTransfer
18
+ # Reason provided for the transfer
19
+ attr_accessor :transfer_reason
20
+
21
+ # Type of transfer performed
22
+ attr_accessor :transfer_type
23
+
24
+ # Timestamp when the transfer occurred
25
+ attr_accessor :transferred_at_dts
26
+
27
+ # ID of the agent who initiated the transfer
28
+ attr_accessor :transferred_by_agent_id
29
+
30
+ # Destination of the transfer (agent ID, queue name, or phone number)
31
+ attr_accessor :transferred_to
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'transfer_reason' => :'transfer_reason',
37
+ :'transfer_type' => :'transfer_type',
38
+ :'transferred_at_dts' => :'transferred_at_dts',
39
+ :'transferred_by_agent_id' => :'transferred_by_agent_id',
40
+ :'transferred_to' => :'transferred_to'
41
+ }
42
+ end
43
+
44
+ # Returns all the JSON keys this model knows about
45
+ def self.acceptable_attributes
46
+ attribute_map.values
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.openapi_types
51
+ {
52
+ :'transfer_reason' => :'String',
53
+ :'transfer_type' => :'String',
54
+ :'transferred_at_dts' => :'String',
55
+ :'transferred_by_agent_id' => :'String',
56
+ :'transferred_to' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationPbxCallTransfer` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationPbxCallTransfer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'transfer_reason')
82
+ self.transfer_reason = attributes[:'transfer_reason']
83
+ end
84
+
85
+ if attributes.key?(:'transfer_type')
86
+ self.transfer_type = attributes[:'transfer_type']
87
+ end
88
+
89
+ if attributes.key?(:'transferred_at_dts')
90
+ self.transferred_at_dts = attributes[:'transferred_at_dts']
91
+ end
92
+
93
+ if attributes.key?(:'transferred_by_agent_id')
94
+ self.transferred_by_agent_id = attributes[:'transferred_by_agent_id']
95
+ end
96
+
97
+ if attributes.key?(:'transferred_to')
98
+ self.transferred_to = attributes[:'transferred_to']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ invalid_properties = Array.new
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ true
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ transfer_reason == o.transfer_reason &&
121
+ transfer_type == o.transfer_type &&
122
+ transferred_at_dts == o.transferred_at_dts &&
123
+ transferred_by_agent_id == o.transferred_by_agent_id &&
124
+ transferred_to == o.transferred_to
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 [Integer] Hash code
135
+ def hash
136
+ [transfer_reason, transfer_type, transferred_at_dts, transferred_by_agent_id, transferred_to].hash
137
+ end
138
+
139
+ # Builds the object from hash
140
+ # @param [Hash] attributes Model attributes in the form of hash
141
+ # @return [Object] Returns the model itself
142
+ def self.build_from_hash(attributes)
143
+ new.build_from_hash(attributes)
144
+ end
145
+
146
+ # Builds the object from hash
147
+ # @param [Hash] attributes Model attributes in the form of hash
148
+ # @return [Object] Returns the model itself
149
+ def build_from_hash(attributes)
150
+ return nil unless attributes.is_a?(Hash)
151
+ attributes = attributes.transform_keys(&:to_sym)
152
+ self.class.openapi_types.each_pair do |key, type|
153
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
154
+ self.send("#{key}=", nil)
155
+ elsif type =~ /\AArray<(.*)>/i
156
+ # check to ensure the input is an array given that the attribute
157
+ # is documented as an array but the input is not
158
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
160
+ end
161
+ elsif !attributes[self.class.attribute_map[key]].nil?
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
163
+ end
164
+ end
165
+
166
+ self
167
+ end
168
+
169
+ # Deserializes the data based on type
170
+ # @param string type Data type
171
+ # @param string value Value to be deserialized
172
+ # @return [Object] Deserialized data
173
+ def _deserialize(type, value)
174
+ case type.to_sym
175
+ when :Time
176
+ Time.parse(value)
177
+ when :Date
178
+ Date.parse(value)
179
+ when :String
180
+ value.to_s
181
+ when :Integer
182
+ value.to_i
183
+ when :Float
184
+ value.to_f
185
+ when :Boolean
186
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
187
+ true
188
+ else
189
+ false
190
+ end
191
+ when :Object
192
+ # generic object (usually a Hash), return directly
193
+ value
194
+ when /\AArray<(?<inner_type>.+)>\z/
195
+ inner_type = Regexp.last_match[:inner_type]
196
+ value.map { |v| _deserialize(inner_type, v) }
197
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
198
+ k_type = Regexp.last_match[:k_type]
199
+ v_type = Regexp.last_match[:v_type]
200
+ {}.tap do |hash|
201
+ value.each do |k, v|
202
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
203
+ end
204
+ end
205
+ else # model
206
+ # models (e.g. Pet) or oneOf
207
+ klass = UltracartClient.const_get(type)
208
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
209
+ end
210
+ end
211
+
212
+ # Returns the string representation of the object
213
+ # @return [String] String presentation of the object
214
+ def to_s
215
+ to_hash.to_s
216
+ end
217
+
218
+ # to_body is an alias to to_hash (backward compatibility)
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_body
221
+ to_hash
222
+ end
223
+
224
+ # Returns the object in the form of hash
225
+ # @return [Hash] Returns the object in the form of hash
226
+ def to_hash
227
+ hash = {}
228
+ self.class.attribute_map.each_pair do |attr, param|
229
+ value = self.send(attr)
230
+ if value.nil?
231
+ is_nullable = self.class.openapi_nullable.include?(attr)
232
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
+ end
234
+
235
+ hash[param] = _to_hash(value)
236
+ end
237
+ hash
238
+ end
239
+
240
+ # Outputs non-array value in the form of hash
241
+ # For object, use to_hash. Otherwise, just return the value
242
+ # @param [Object] value Any valid value
243
+ # @return [Hash] Returns the value in the form of hash
244
+ def _to_hash(value)
245
+ if value.is_a?(Array)
246
+ value.compact.map { |v| _to_hash(v) }
247
+ elsif value.is_a?(Hash)
248
+ {}.tap do |hash|
249
+ value.each { |k, v| hash[k] = _to_hash(v) }
250
+ end
251
+ elsif value.respond_to? :to_hash
252
+ value.to_hash
253
+ else
254
+ value
255
+ end
256
+ end
257
+
258
+ end
259
+
260
+ end
@@ -27,6 +27,9 @@ module UltracartClient
27
27
  # Conversation Pbx Phone Number UUID
28
28
  attr_accessor :conversation_pbx_phone_number_uuid
29
29
 
30
+ # Default phone number for outbound calling.
31
+ attr_accessor :default_phone_number
32
+
30
33
  # If true, this phone number cannot be deleted through the API. It must be deleted via the Twilio console.
31
34
  attr_accessor :deletion_protected
32
35
 
@@ -65,6 +68,7 @@ module UltracartClient
65
68
  :'action_target' => :'action_target',
66
69
  :'address_sid' => :'address_sid',
67
70
  :'conversation_pbx_phone_number_uuid' => :'conversation_pbx_phone_number_uuid',
71
+ :'default_phone_number' => :'default_phone_number',
68
72
  :'deletion_protected' => :'deletion_protected',
69
73
  :'merchant_id' => :'merchant_id',
70
74
  :'phone_number' => :'phone_number'
@@ -83,6 +87,7 @@ module UltracartClient
83
87
  :'action_target' => :'String',
84
88
  :'address_sid' => :'String',
85
89
  :'conversation_pbx_phone_number_uuid' => :'String',
90
+ :'default_phone_number' => :'Boolean',
86
91
  :'deletion_protected' => :'Boolean',
87
92
  :'merchant_id' => :'String',
88
93
  :'phone_number' => :'String'
@@ -126,6 +131,10 @@ module UltracartClient
126
131
  self.conversation_pbx_phone_number_uuid = attributes[:'conversation_pbx_phone_number_uuid']
127
132
  end
128
133
 
134
+ if attributes.key?(:'default_phone_number')
135
+ self.default_phone_number = attributes[:'default_phone_number']
136
+ end
137
+
129
138
  if attributes.key?(:'deletion_protected')
130
139
  self.deletion_protected = attributes[:'deletion_protected']
131
140
  end
@@ -253,6 +262,7 @@ module UltracartClient
253
262
  action_target == o.action_target &&
254
263
  address_sid == o.address_sid &&
255
264
  conversation_pbx_phone_number_uuid == o.conversation_pbx_phone_number_uuid &&
265
+ default_phone_number == o.default_phone_number &&
256
266
  deletion_protected == o.deletion_protected &&
257
267
  merchant_id == o.merchant_id &&
258
268
  phone_number == o.phone_number
@@ -267,7 +277,7 @@ module UltracartClient
267
277
  # Calculates hash code according to all attributes.
268
278
  # @return [Integer] Hash code
269
279
  def hash
270
- [action, action_target, address_sid, conversation_pbx_phone_number_uuid, deletion_protected, merchant_id, phone_number].hash
280
+ [action, action_target, address_sid, conversation_pbx_phone_number_uuid, default_phone_number, deletion_protected, merchant_id, phone_number].hash
271
281
  end
272
282
 
273
283
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.51'
14
+ VERSION = '4.1.54'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -212,6 +212,25 @@ require 'ultracart_api/models/conversation_pbx_audio_usage_response'
212
212
  require 'ultracart_api/models/conversation_pbx_audios_response'
213
213
  require 'ultracart_api/models/conversation_pbx_available_phone_number'
214
214
  require 'ultracart_api/models/conversation_pbx_available_phone_numbers_response'
215
+ require 'ultracart_api/models/conversation_pbx_call'
216
+ require 'ultracart_api/models/conversation_pbx_call_agent'
217
+ require 'ultracart_api/models/conversation_pbx_call_ai_cost'
218
+ require 'ultracart_api/models/conversation_pbx_call_ai_engagement'
219
+ require 'ultracart_api/models/conversation_pbx_call_ai_tool_call'
220
+ require 'ultracart_api/models/conversation_pbx_call_ai_whisper'
221
+ require 'ultracart_api/models/conversation_pbx_call_caller'
222
+ require 'ultracart_api/models/conversation_pbx_call_financial'
223
+ require 'ultracart_api/models/conversation_pbx_call_hold'
224
+ require 'ultracart_api/models/conversation_pbx_call_queue'
225
+ require 'ultracart_api/models/conversation_pbx_call_recording'
226
+ require 'ultracart_api/models/conversation_pbx_call_response'
227
+ require 'ultracart_api/models/conversation_pbx_call_routing'
228
+ require 'ultracart_api/models/conversation_pbx_call_search_request'
229
+ require 'ultracart_api/models/conversation_pbx_call_search_response'
230
+ require 'ultracart_api/models/conversation_pbx_call_timeline'
231
+ require 'ultracart_api/models/conversation_pbx_call_transcript'
232
+ require 'ultracart_api/models/conversation_pbx_call_transcript_segment'
233
+ require 'ultracart_api/models/conversation_pbx_call_transfer'
215
234
  require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
216
235
  require 'ultracart_api/models/conversation_pbx_customer_snapshot_response'
217
236
  require 'ultracart_api/models/conversation_pbx_hardware_phone'