ultracart_api 3.11.49 → 3.11.50
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 +4 -4
- data/README.md +5 -4
- data/docs/ConversationPbxAgent.md +3 -1
- data/docs/ConversationPbxHardwarePhone.md +5 -1
- data/lib/ultracart_api/models/conversation_pbx_agent.rb +67 -11
- data/lib/ultracart_api/models/conversation_pbx_hardware_phone.rb +57 -2
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3372c4eb65673c14a350a2decd1c1348939e81d255eedb7b26069256651db5c
|
|
4
|
+
data.tar.gz: ab8dbc82c4983071f22b8da3c7262989e456279ac939372da186f4e458d6e4d7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a98fbdfb7c8baae5c186ec90a9d6fe54dcdd6aacf812e49bd72e8ed9beae839eb94f9e53460d7264451771f1a94b29e1d047555b82b585c1d92e6cfa955810e
|
|
7
|
+
data.tar.gz: 4ccfd0cdd727ece5f4a46adbf354f08a6e9cdf03276343245dc84af7aa3efab85fe89b9ac728aab2b1d75e05321551043507a837c7e9690a5dc214d56a925d9c
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: 2.0.0
|
|
10
|
-
- Package version: 3.11.
|
|
10
|
+
- Package version: 3.11.50
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ultracart_api-3.11.
|
|
27
|
+
gem install ./ultracart_api-3.11.50.gem
|
|
28
28
|
```
|
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.50.gem` to install the development dependencies)
|
|
30
30
|
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
32
|
|
|
33
33
|
Finally add this to the Gemfile:
|
|
34
34
|
|
|
35
|
-
gem 'ultracart_api', '~> 3.11.
|
|
35
|
+
gem 'ultracart_api', '~> 3.11.50'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -1637,6 +1637,7 @@ Not every change is committed to every SDK.
|
|
|
1637
1637
|
|
|
1638
1638
|
| Version | Date | Comments |
|
|
1639
1639
|
| --: | :-: | --- |
|
|
1640
|
+
| 3.11.50 | 01/27/2026 | conversations - refinements to support hardware phones |
|
|
1640
1641
|
| 3.11.49 | 01/26/2026 | no changes - testing changes to build automation |
|
|
1641
1642
|
| 3.11.48 | 01/26/2026 | conversation - hardware phone methods and objects |
|
|
1642
1643
|
| 3.11.47 | 01/26/2026 | conversation - agent auth object chat admin/user properties |
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
6
|
**ai** | **BOOLEAN** | Flag to indicate if the agent is AI | [optional]
|
|
7
|
+
**call_routing_preference** | **String** | The call routing preference | [optional]
|
|
7
8
|
**cellphone** | **String** | Cellphone number of agent in E.164 format | [optional]
|
|
8
9
|
**conversation_pbx_agent_uuid** | **String** | Conversation Pbx Agent unique identifier | [optional]
|
|
9
10
|
**extension** | **Integer** | Extension | [optional]
|
|
10
|
-
**forward_calls_to_cellphone** | **BOOLEAN** | True if calls to this agent should be forwarded to their cellphone | [optional]
|
|
11
11
|
**full_name** | **String** | Full name | [optional]
|
|
12
|
+
**hardware_phone_uuids** | **Array<String>** | Array of hardware phones UUIDs associated with this agent | [optional]
|
|
12
13
|
**login** | **String** | Agent login | [optional]
|
|
13
14
|
**merchant_id** | **String** | Merchant Id | [optional]
|
|
14
15
|
**personal_conversation_pbx_voicemail_mailbox_uuid** | **String** | Personal Conversation Pbx Voicemail Mailbox UUID | [optional]
|
|
16
|
+
**preferred_hardware_phone_uuid** | **String** | The hardware phone that will be dialed on an incoming call if routing preference is hardware_phone | [optional]
|
|
15
17
|
**record_outgoing_automatically** | **BOOLEAN** | True if outgoing calls should be automatically recorded | [optional]
|
|
16
18
|
**shared_conversation_pbx_voicemail_mailbox_uuid** | **String** | Shared Conversation Pbx Voicemail Mailbox UUID | [optional]
|
|
17
19
|
**twilio_taskrouter_worker_id** | **String** | Twilio taskrouter worker Id | [optional]
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
## Properties
|
|
4
4
|
Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**admin_username** | **String** | Admin Username | [optional]
|
|
7
|
+
**conversation_pbx_agent_uuid** | **String** | Associated Agent UUID | [optional]
|
|
6
8
|
**conversation_pbx_hardware_phone_uuid** | **String** | Conversation Pbx Hardware Phone UUID | [optional]
|
|
7
9
|
**created_at** | **Object** | Created At | [optional]
|
|
8
10
|
**description** | **String** | Description | [optional]
|
|
@@ -13,8 +15,10 @@ Name | Type | Description | Notes
|
|
|
13
15
|
**name** | **String** | Name | [optional]
|
|
14
16
|
**provisioning_url** | **String** | Auto-provisioning URL for phone configuration | [optional]
|
|
15
17
|
**sip_domain** | **String** | SIP Domain | [optional]
|
|
16
|
-
**
|
|
18
|
+
**sip_edge_location** | **String** | SIP Edge Location | [optional]
|
|
19
|
+
**sip_password** | **String** | SIP Password (only on create or regenerate password requests) | [optional]
|
|
17
20
|
**sip_username** | **String** | SIP Username | [optional]
|
|
21
|
+
**twilio_credential_sid** | **String** | Twilio Credential SID | [optional]
|
|
18
22
|
**updated_at** | **Object** | Updated At | [optional]
|
|
19
23
|
|
|
20
24
|
|
|
@@ -17,6 +17,9 @@ module UltracartClient
|
|
|
17
17
|
# Flag to indicate if the agent is AI
|
|
18
18
|
attr_accessor :ai
|
|
19
19
|
|
|
20
|
+
# The call routing preference
|
|
21
|
+
attr_accessor :call_routing_preference
|
|
22
|
+
|
|
20
23
|
# Cellphone number of agent in E.164 format
|
|
21
24
|
attr_accessor :cellphone
|
|
22
25
|
|
|
@@ -26,12 +29,12 @@ module UltracartClient
|
|
|
26
29
|
# Extension
|
|
27
30
|
attr_accessor :extension
|
|
28
31
|
|
|
29
|
-
# True if calls to this agent should be forwarded to their cellphone
|
|
30
|
-
attr_accessor :forward_calls_to_cellphone
|
|
31
|
-
|
|
32
32
|
# Full name
|
|
33
33
|
attr_accessor :full_name
|
|
34
34
|
|
|
35
|
+
# Array of hardware phones UUIDs associated with this agent
|
|
36
|
+
attr_accessor :hardware_phone_uuids
|
|
37
|
+
|
|
35
38
|
# Agent login
|
|
36
39
|
attr_accessor :login
|
|
37
40
|
|
|
@@ -41,6 +44,9 @@ module UltracartClient
|
|
|
41
44
|
# Personal Conversation Pbx Voicemail Mailbox UUID
|
|
42
45
|
attr_accessor :personal_conversation_pbx_voicemail_mailbox_uuid
|
|
43
46
|
|
|
47
|
+
# The hardware phone that will be dialed on an incoming call if routing preference is hardware_phone
|
|
48
|
+
attr_accessor :preferred_hardware_phone_uuid
|
|
49
|
+
|
|
44
50
|
# True if outgoing calls should be automatically recorded
|
|
45
51
|
attr_accessor :record_outgoing_automatically
|
|
46
52
|
|
|
@@ -65,18 +71,42 @@ module UltracartClient
|
|
|
65
71
|
# True if this agent has voicemail configured
|
|
66
72
|
attr_accessor :voicemail
|
|
67
73
|
|
|
74
|
+
class EnumAttributeValidator
|
|
75
|
+
attr_reader :datatype
|
|
76
|
+
attr_reader :allowable_values
|
|
77
|
+
|
|
78
|
+
def initialize(datatype, allowable_values)
|
|
79
|
+
@allowable_values = allowable_values.map do |value|
|
|
80
|
+
case datatype.to_s
|
|
81
|
+
when /Integer/i
|
|
82
|
+
value.to_i
|
|
83
|
+
when /Float/i
|
|
84
|
+
value.to_f
|
|
85
|
+
else
|
|
86
|
+
value
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def valid?(value)
|
|
92
|
+
!value || allowable_values.include?(value)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
68
96
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
69
97
|
def self.attribute_map
|
|
70
98
|
{
|
|
71
99
|
:'ai' => :'ai',
|
|
100
|
+
:'call_routing_preference' => :'call_routing_preference',
|
|
72
101
|
:'cellphone' => :'cellphone',
|
|
73
102
|
:'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
|
|
74
103
|
:'extension' => :'extension',
|
|
75
|
-
:'forward_calls_to_cellphone' => :'forward_calls_to_cellphone',
|
|
76
104
|
:'full_name' => :'full_name',
|
|
105
|
+
:'hardware_phone_uuids' => :'hardware_phone_uuids',
|
|
77
106
|
:'login' => :'login',
|
|
78
107
|
:'merchant_id' => :'merchant_id',
|
|
79
108
|
:'personal_conversation_pbx_voicemail_mailbox_uuid' => :'personal_conversation_pbx_voicemail_mailbox_uuid',
|
|
109
|
+
:'preferred_hardware_phone_uuid' => :'preferred_hardware_phone_uuid',
|
|
80
110
|
:'record_outgoing_automatically' => :'record_outgoing_automatically',
|
|
81
111
|
:'shared_conversation_pbx_voicemail_mailbox_uuid' => :'shared_conversation_pbx_voicemail_mailbox_uuid',
|
|
82
112
|
:'twilio_taskrouter_worker_id' => :'twilio_taskrouter_worker_id',
|
|
@@ -92,14 +122,16 @@ module UltracartClient
|
|
|
92
122
|
def self.swagger_types
|
|
93
123
|
{
|
|
94
124
|
:'ai' => :'BOOLEAN',
|
|
125
|
+
:'call_routing_preference' => :'String',
|
|
95
126
|
:'cellphone' => :'String',
|
|
96
127
|
:'conversation_pbx_agent_uuid' => :'String',
|
|
97
128
|
:'extension' => :'Integer',
|
|
98
|
-
:'forward_calls_to_cellphone' => :'BOOLEAN',
|
|
99
129
|
:'full_name' => :'String',
|
|
130
|
+
:'hardware_phone_uuids' => :'Array<String>',
|
|
100
131
|
:'login' => :'String',
|
|
101
132
|
:'merchant_id' => :'String',
|
|
102
133
|
:'personal_conversation_pbx_voicemail_mailbox_uuid' => :'String',
|
|
134
|
+
:'preferred_hardware_phone_uuid' => :'String',
|
|
103
135
|
:'record_outgoing_automatically' => :'BOOLEAN',
|
|
104
136
|
:'shared_conversation_pbx_voicemail_mailbox_uuid' => :'String',
|
|
105
137
|
:'twilio_taskrouter_worker_id' => :'String',
|
|
@@ -123,6 +155,10 @@ module UltracartClient
|
|
|
123
155
|
self.ai = attributes[:'ai']
|
|
124
156
|
end
|
|
125
157
|
|
|
158
|
+
if attributes.has_key?(:'call_routing_preference')
|
|
159
|
+
self.call_routing_preference = attributes[:'call_routing_preference']
|
|
160
|
+
end
|
|
161
|
+
|
|
126
162
|
if attributes.has_key?(:'cellphone')
|
|
127
163
|
self.cellphone = attributes[:'cellphone']
|
|
128
164
|
end
|
|
@@ -135,14 +171,16 @@ module UltracartClient
|
|
|
135
171
|
self.extension = attributes[:'extension']
|
|
136
172
|
end
|
|
137
173
|
|
|
138
|
-
if attributes.has_key?(:'forward_calls_to_cellphone')
|
|
139
|
-
self.forward_calls_to_cellphone = attributes[:'forward_calls_to_cellphone']
|
|
140
|
-
end
|
|
141
|
-
|
|
142
174
|
if attributes.has_key?(:'full_name')
|
|
143
175
|
self.full_name = attributes[:'full_name']
|
|
144
176
|
end
|
|
145
177
|
|
|
178
|
+
if attributes.has_key?(:'hardware_phone_uuids')
|
|
179
|
+
if (value = attributes[:'hardware_phone_uuids']).is_a?(Array)
|
|
180
|
+
self.hardware_phone_uuids = value
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
146
184
|
if attributes.has_key?(:'login')
|
|
147
185
|
self.login = attributes[:'login']
|
|
148
186
|
end
|
|
@@ -155,6 +193,10 @@ module UltracartClient
|
|
|
155
193
|
self.personal_conversation_pbx_voicemail_mailbox_uuid = attributes[:'personal_conversation_pbx_voicemail_mailbox_uuid']
|
|
156
194
|
end
|
|
157
195
|
|
|
196
|
+
if attributes.has_key?(:'preferred_hardware_phone_uuid')
|
|
197
|
+
self.preferred_hardware_phone_uuid = attributes[:'preferred_hardware_phone_uuid']
|
|
198
|
+
end
|
|
199
|
+
|
|
158
200
|
if attributes.has_key?(:'record_outgoing_automatically')
|
|
159
201
|
self.record_outgoing_automatically = attributes[:'record_outgoing_automatically']
|
|
160
202
|
end
|
|
@@ -226,6 +268,8 @@ module UltracartClient
|
|
|
226
268
|
# Check to see if the all the properties in the model are valid
|
|
227
269
|
# @return true if the model is valid
|
|
228
270
|
def valid?
|
|
271
|
+
call_routing_preference_validator = EnumAttributeValidator.new('String', ['softphone', 'hardware_phone', 'cellphone'])
|
|
272
|
+
return false unless call_routing_preference_validator.valid?(@call_routing_preference)
|
|
229
273
|
return false if !@cellphone.nil? && @cellphone.to_s.length > 50
|
|
230
274
|
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
|
|
231
275
|
return false if !@personal_conversation_pbx_voicemail_mailbox_uuid.nil? && @personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
|
|
@@ -236,6 +280,16 @@ module UltracartClient
|
|
|
236
280
|
true
|
|
237
281
|
end
|
|
238
282
|
|
|
283
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
284
|
+
# @param [Object] call_routing_preference Object to be assigned
|
|
285
|
+
def call_routing_preference=(call_routing_preference)
|
|
286
|
+
validator = EnumAttributeValidator.new('String', ['softphone', 'hardware_phone', 'cellphone'])
|
|
287
|
+
unless validator.valid?(call_routing_preference)
|
|
288
|
+
fail ArgumentError, 'invalid value for "call_routing_preference", must be one of #{validator.allowable_values}.'
|
|
289
|
+
end
|
|
290
|
+
@call_routing_preference = call_routing_preference
|
|
291
|
+
end
|
|
292
|
+
|
|
239
293
|
# Custom attribute writer method with validation
|
|
240
294
|
# @param [Object] cellphone Value to be assigned
|
|
241
295
|
def cellphone=(cellphone)
|
|
@@ -312,14 +366,16 @@ module UltracartClient
|
|
|
312
366
|
return true if self.equal?(o)
|
|
313
367
|
self.class == o.class &&
|
|
314
368
|
ai == o.ai &&
|
|
369
|
+
call_routing_preference == o.call_routing_preference &&
|
|
315
370
|
cellphone == o.cellphone &&
|
|
316
371
|
conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
|
|
317
372
|
extension == o.extension &&
|
|
318
|
-
forward_calls_to_cellphone == o.forward_calls_to_cellphone &&
|
|
319
373
|
full_name == o.full_name &&
|
|
374
|
+
hardware_phone_uuids == o.hardware_phone_uuids &&
|
|
320
375
|
login == o.login &&
|
|
321
376
|
merchant_id == o.merchant_id &&
|
|
322
377
|
personal_conversation_pbx_voicemail_mailbox_uuid == o.personal_conversation_pbx_voicemail_mailbox_uuid &&
|
|
378
|
+
preferred_hardware_phone_uuid == o.preferred_hardware_phone_uuid &&
|
|
323
379
|
record_outgoing_automatically == o.record_outgoing_automatically &&
|
|
324
380
|
shared_conversation_pbx_voicemail_mailbox_uuid == o.shared_conversation_pbx_voicemail_mailbox_uuid &&
|
|
325
381
|
twilio_taskrouter_worker_id == o.twilio_taskrouter_worker_id &&
|
|
@@ -339,7 +395,7 @@ module UltracartClient
|
|
|
339
395
|
# Calculates hash code according to all attributes.
|
|
340
396
|
# @return [Fixnum] Hash code
|
|
341
397
|
def hash
|
|
342
|
-
[ai, cellphone, conversation_pbx_agent_uuid, extension,
|
|
398
|
+
[ai, call_routing_preference, cellphone, conversation_pbx_agent_uuid, extension, full_name, hardware_phone_uuids, login, merchant_id, personal_conversation_pbx_voicemail_mailbox_uuid, preferred_hardware_phone_uuid, record_outgoing_automatically, shared_conversation_pbx_voicemail_mailbox_uuid, twilio_taskrouter_worker_id, unavailable_play_audio_uuid, unavailable_say, unavailable_say_voice, user_id, voicemail].hash
|
|
343
399
|
end
|
|
344
400
|
|
|
345
401
|
# Builds the object from hash
|
|
@@ -14,6 +14,12 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module UltracartClient
|
|
16
16
|
class ConversationPbxHardwarePhone
|
|
17
|
+
# Admin Username
|
|
18
|
+
attr_accessor :admin_username
|
|
19
|
+
|
|
20
|
+
# Associated Agent UUID
|
|
21
|
+
attr_accessor :conversation_pbx_agent_uuid
|
|
22
|
+
|
|
17
23
|
# Conversation Pbx Hardware Phone UUID
|
|
18
24
|
attr_accessor :conversation_pbx_hardware_phone_uuid
|
|
19
25
|
|
|
@@ -44,18 +50,26 @@ module UltracartClient
|
|
|
44
50
|
# SIP Domain
|
|
45
51
|
attr_accessor :sip_domain
|
|
46
52
|
|
|
47
|
-
# SIP
|
|
53
|
+
# SIP Edge Location
|
|
54
|
+
attr_accessor :sip_edge_location
|
|
55
|
+
|
|
56
|
+
# SIP Password (only on create or regenerate password requests)
|
|
48
57
|
attr_accessor :sip_password
|
|
49
58
|
|
|
50
59
|
# SIP Username
|
|
51
60
|
attr_accessor :sip_username
|
|
52
61
|
|
|
62
|
+
# Twilio Credential SID
|
|
63
|
+
attr_accessor :twilio_credential_sid
|
|
64
|
+
|
|
53
65
|
# Updated At
|
|
54
66
|
attr_accessor :updated_at
|
|
55
67
|
|
|
56
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
57
69
|
def self.attribute_map
|
|
58
70
|
{
|
|
71
|
+
:'admin_username' => :'admin_username',
|
|
72
|
+
:'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
|
|
59
73
|
:'conversation_pbx_hardware_phone_uuid' => :'conversation_pbx_hardware_phone_uuid',
|
|
60
74
|
:'created_at' => :'created_at',
|
|
61
75
|
:'description' => :'description',
|
|
@@ -66,8 +80,10 @@ module UltracartClient
|
|
|
66
80
|
:'name' => :'name',
|
|
67
81
|
:'provisioning_url' => :'provisioning_url',
|
|
68
82
|
:'sip_domain' => :'sip_domain',
|
|
83
|
+
:'sip_edge_location' => :'sip_edge_location',
|
|
69
84
|
:'sip_password' => :'sip_password',
|
|
70
85
|
:'sip_username' => :'sip_username',
|
|
86
|
+
:'twilio_credential_sid' => :'twilio_credential_sid',
|
|
71
87
|
:'updated_at' => :'updated_at'
|
|
72
88
|
}
|
|
73
89
|
end
|
|
@@ -75,6 +91,8 @@ module UltracartClient
|
|
|
75
91
|
# Attribute type mapping.
|
|
76
92
|
def self.swagger_types
|
|
77
93
|
{
|
|
94
|
+
:'admin_username' => :'String',
|
|
95
|
+
:'conversation_pbx_agent_uuid' => :'String',
|
|
78
96
|
:'conversation_pbx_hardware_phone_uuid' => :'String',
|
|
79
97
|
:'created_at' => :'Object',
|
|
80
98
|
:'description' => :'String',
|
|
@@ -85,8 +103,10 @@ module UltracartClient
|
|
|
85
103
|
:'name' => :'String',
|
|
86
104
|
:'provisioning_url' => :'String',
|
|
87
105
|
:'sip_domain' => :'String',
|
|
106
|
+
:'sip_edge_location' => :'String',
|
|
88
107
|
:'sip_password' => :'String',
|
|
89
108
|
:'sip_username' => :'String',
|
|
109
|
+
:'twilio_credential_sid' => :'String',
|
|
90
110
|
:'updated_at' => :'Object'
|
|
91
111
|
}
|
|
92
112
|
end
|
|
@@ -99,6 +119,14 @@ module UltracartClient
|
|
|
99
119
|
# convert string to symbol for hash key
|
|
100
120
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
101
121
|
|
|
122
|
+
if attributes.has_key?(:'admin_username')
|
|
123
|
+
self.admin_username = attributes[:'admin_username']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.has_key?(:'conversation_pbx_agent_uuid')
|
|
127
|
+
self.conversation_pbx_agent_uuid = attributes[:'conversation_pbx_agent_uuid']
|
|
128
|
+
end
|
|
129
|
+
|
|
102
130
|
if attributes.has_key?(:'conversation_pbx_hardware_phone_uuid')
|
|
103
131
|
self.conversation_pbx_hardware_phone_uuid = attributes[:'conversation_pbx_hardware_phone_uuid']
|
|
104
132
|
end
|
|
@@ -139,6 +167,10 @@ module UltracartClient
|
|
|
139
167
|
self.sip_domain = attributes[:'sip_domain']
|
|
140
168
|
end
|
|
141
169
|
|
|
170
|
+
if attributes.has_key?(:'sip_edge_location')
|
|
171
|
+
self.sip_edge_location = attributes[:'sip_edge_location']
|
|
172
|
+
end
|
|
173
|
+
|
|
142
174
|
if attributes.has_key?(:'sip_password')
|
|
143
175
|
self.sip_password = attributes[:'sip_password']
|
|
144
176
|
end
|
|
@@ -147,6 +179,10 @@ module UltracartClient
|
|
|
147
179
|
self.sip_username = attributes[:'sip_username']
|
|
148
180
|
end
|
|
149
181
|
|
|
182
|
+
if attributes.has_key?(:'twilio_credential_sid')
|
|
183
|
+
self.twilio_credential_sid = attributes[:'twilio_credential_sid']
|
|
184
|
+
end
|
|
185
|
+
|
|
150
186
|
if attributes.has_key?(:'updated_at')
|
|
151
187
|
self.updated_at = attributes[:'updated_at']
|
|
152
188
|
end
|
|
@@ -188,6 +224,10 @@ module UltracartClient
|
|
|
188
224
|
invalid_properties.push('invalid value for "sip_domain", the character length must be smaller than or equal to 200.')
|
|
189
225
|
end
|
|
190
226
|
|
|
227
|
+
if !@sip_edge_location.nil? && @sip_edge_location.to_s.length > 50
|
|
228
|
+
invalid_properties.push('invalid value for "sip_edge_location", the character length must be smaller than or equal to 50.')
|
|
229
|
+
end
|
|
230
|
+
|
|
191
231
|
if !@sip_password.nil? && @sip_password.to_s.length > 100
|
|
192
232
|
invalid_properties.push('invalid value for "sip_password", the character length must be smaller than or equal to 100.')
|
|
193
233
|
end
|
|
@@ -210,6 +250,7 @@ module UltracartClient
|
|
|
210
250
|
return false if !@model.nil? && @model.to_s.length > 100
|
|
211
251
|
return false if !@name.nil? && @name.to_s.length > 100
|
|
212
252
|
return false if !@sip_domain.nil? && @sip_domain.to_s.length > 200
|
|
253
|
+
return false if !@sip_edge_location.nil? && @sip_edge_location.to_s.length > 50
|
|
213
254
|
return false if !@sip_password.nil? && @sip_password.to_s.length > 100
|
|
214
255
|
return false if !@sip_username.nil? && @sip_username.to_s.length > 100
|
|
215
256
|
true
|
|
@@ -295,6 +336,16 @@ module UltracartClient
|
|
|
295
336
|
@sip_domain = sip_domain
|
|
296
337
|
end
|
|
297
338
|
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] sip_edge_location Value to be assigned
|
|
341
|
+
def sip_edge_location=(sip_edge_location)
|
|
342
|
+
if !sip_edge_location.nil? && sip_edge_location.to_s.length > 50
|
|
343
|
+
fail ArgumentError, 'invalid value for "sip_edge_location", the character length must be smaller than or equal to 50.'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@sip_edge_location = sip_edge_location
|
|
347
|
+
end
|
|
348
|
+
|
|
298
349
|
# Custom attribute writer method with validation
|
|
299
350
|
# @param [Object] sip_password Value to be assigned
|
|
300
351
|
def sip_password=(sip_password)
|
|
@@ -320,6 +371,8 @@ module UltracartClient
|
|
|
320
371
|
def ==(o)
|
|
321
372
|
return true if self.equal?(o)
|
|
322
373
|
self.class == o.class &&
|
|
374
|
+
admin_username == o.admin_username &&
|
|
375
|
+
conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
|
|
323
376
|
conversation_pbx_hardware_phone_uuid == o.conversation_pbx_hardware_phone_uuid &&
|
|
324
377
|
created_at == o.created_at &&
|
|
325
378
|
description == o.description &&
|
|
@@ -330,8 +383,10 @@ module UltracartClient
|
|
|
330
383
|
name == o.name &&
|
|
331
384
|
provisioning_url == o.provisioning_url &&
|
|
332
385
|
sip_domain == o.sip_domain &&
|
|
386
|
+
sip_edge_location == o.sip_edge_location &&
|
|
333
387
|
sip_password == o.sip_password &&
|
|
334
388
|
sip_username == o.sip_username &&
|
|
389
|
+
twilio_credential_sid == o.twilio_credential_sid &&
|
|
335
390
|
updated_at == o.updated_at
|
|
336
391
|
end
|
|
337
392
|
|
|
@@ -344,7 +399,7 @@ module UltracartClient
|
|
|
344
399
|
# Calculates hash code according to all attributes.
|
|
345
400
|
# @return [Fixnum] Hash code
|
|
346
401
|
def hash
|
|
347
|
-
[conversation_pbx_hardware_phone_uuid, created_at, description, mac_address, manufacturer, merchant_id, model, name, provisioning_url, sip_domain, sip_password, sip_username, updated_at].hash
|
|
402
|
+
[admin_username, conversation_pbx_agent_uuid, conversation_pbx_hardware_phone_uuid, created_at, description, mac_address, manufacturer, merchant_id, model, name, provisioning_url, sip_domain, sip_edge_location, sip_password, sip_username, twilio_credential_sid, updated_at].hash
|
|
348
403
|
end
|
|
349
404
|
|
|
350
405
|
# Builds the object from hash
|
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.11.
|
|
4
|
+
version: 3.11.50
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|