ultracart_api 4.0.228 → 4.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c62128e1dbf30d44830aa3a3c6e8cf46711a5db7e9ca4b8f41d8e434ff1d6d45
|
4
|
+
data.tar.gz: f6ad2bcde2593443d1e197da8e4b5e61d97516960e369a73ffd609d0052972e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d73950f7668ce84376204a2aee27b3113310d820c6c6d09a73f6134ac45d5980a3eb30da519b165a9644f3bbd31235be934f453531ff0db017965c818a216d1
|
7
|
+
data.tar.gz: 8a5d17361aa10a27bdb1faf46650d30464e628398db137a63152431ba7d204edf1ee243f8b078af1b23b0abbeaa044a86bbceee1e95a7da3c42092038fb6f764
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.229
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.229.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.229.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.229'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1517,6 +1517,7 @@ Not every change is committed to every SDK.
|
|
1517
1517
|
|
1518
1518
|
| Version | Date | Comments |
|
1519
1519
|
| --: | :-: | --- |
|
1520
|
+
| 4.0.229 | 06/14/2024 | pbx menu - add say voice property |
|
1520
1521
|
| 4.0.228 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
|
1521
1522
|
| 4.0.227 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
|
1522
1523
|
| 4.0.226 | 05/31/2024 | ItemApi.getInventorySnapshot method |
|
data/docs/ConversationPbxMenu.md
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
| **name** | **String** | Menu name | [optional] |
|
14
14
|
| **play_audio_uuid** | **String** | An optional audio clip that plays when a customer enters this menu | [optional] |
|
15
15
|
| **say** | **String** | An optional saying that plays when a customer enters this menu | [optional] |
|
16
|
+
| **say_voice** | **String** | say voice | [optional] |
|
16
17
|
| **timeout** | **Integer** | The idle seconds before this menu times out | [optional] |
|
17
18
|
|
18
19
|
## Example
|
@@ -30,6 +31,7 @@ instance = UltracartClient::ConversationPbxMenu.new(
|
|
30
31
|
name: null,
|
31
32
|
play_audio_uuid: null,
|
32
33
|
say: null,
|
34
|
+
say_voice: null,
|
33
35
|
timeout: null
|
34
36
|
)
|
35
37
|
```
|
@@ -42,9 +42,34 @@ module UltracartClient
|
|
42
42
|
# An optional saying that plays when a customer enters this menu
|
43
43
|
attr_accessor :say
|
44
44
|
|
45
|
+
# say voice
|
46
|
+
attr_accessor :say_voice
|
47
|
+
|
45
48
|
# The idle seconds before this menu times out
|
46
49
|
attr_accessor :timeout
|
47
50
|
|
51
|
+
class EnumAttributeValidator
|
52
|
+
attr_reader :datatype
|
53
|
+
attr_reader :allowable_values
|
54
|
+
|
55
|
+
def initialize(datatype, allowable_values)
|
56
|
+
@allowable_values = allowable_values.map do |value|
|
57
|
+
case datatype.to_s
|
58
|
+
when /Integer/i
|
59
|
+
value.to_i
|
60
|
+
when /Float/i
|
61
|
+
value.to_f
|
62
|
+
else
|
63
|
+
value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def valid?(value)
|
69
|
+
!value || allowable_values.include?(value)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
48
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
74
|
def self.attribute_map
|
50
75
|
{
|
@@ -57,6 +82,7 @@ module UltracartClient
|
|
57
82
|
:'name' => :'name',
|
58
83
|
:'play_audio_uuid' => :'play_audio_uuid',
|
59
84
|
:'say' => :'say',
|
85
|
+
:'say_voice' => :'say_voice',
|
60
86
|
:'timeout' => :'timeout'
|
61
87
|
}
|
62
88
|
end
|
@@ -78,6 +104,7 @@ module UltracartClient
|
|
78
104
|
:'name' => :'String',
|
79
105
|
:'play_audio_uuid' => :'String',
|
80
106
|
:'say' => :'String',
|
107
|
+
:'say_voice' => :'String',
|
81
108
|
:'timeout' => :'Integer'
|
82
109
|
}
|
83
110
|
end
|
@@ -141,6 +168,10 @@ module UltracartClient
|
|
141
168
|
self.say = attributes[:'say']
|
142
169
|
end
|
143
170
|
|
171
|
+
if attributes.key?(:'say_voice')
|
172
|
+
self.say_voice = attributes[:'say_voice']
|
173
|
+
end
|
174
|
+
|
144
175
|
if attributes.key?(:'timeout')
|
145
176
|
self.timeout = attributes[:'timeout']
|
146
177
|
end
|
@@ -174,6 +205,10 @@ module UltracartClient
|
|
174
205
|
invalid_properties.push('invalid value for "play_audio_uuid", the character length must be smaller than or equal to 50.')
|
175
206
|
end
|
176
207
|
|
208
|
+
if !@say_voice.nil? && @say_voice.to_s.length > 50
|
209
|
+
invalid_properties.push('invalid value for "say_voice", the character length must be smaller than or equal to 50.')
|
210
|
+
end
|
211
|
+
|
177
212
|
invalid_properties
|
178
213
|
end
|
179
214
|
|
@@ -186,6 +221,9 @@ module UltracartClient
|
|
186
221
|
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
|
187
222
|
return false if !@name.nil? && @name.to_s.length > 50
|
188
223
|
return false if !@play_audio_uuid.nil? && @play_audio_uuid.to_s.length > 50
|
224
|
+
say_voice_validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
225
|
+
return false unless say_voice_validator.valid?(@say_voice)
|
226
|
+
return false if !@say_voice.nil? && @say_voice.to_s.length > 50
|
189
227
|
true
|
190
228
|
end
|
191
229
|
|
@@ -249,6 +287,16 @@ module UltracartClient
|
|
249
287
|
@play_audio_uuid = play_audio_uuid
|
250
288
|
end
|
251
289
|
|
290
|
+
# Custom attribute writer method checking allowed values (enum).
|
291
|
+
# @param [Object] say_voice Object to be assigned
|
292
|
+
def say_voice=(say_voice)
|
293
|
+
validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
294
|
+
unless validator.valid?(say_voice)
|
295
|
+
fail ArgumentError, "invalid value for \"say_voice\", must be one of #{validator.allowable_values}."
|
296
|
+
end
|
297
|
+
@say_voice = say_voice
|
298
|
+
end
|
299
|
+
|
252
300
|
# Checks equality by comparing each attribute.
|
253
301
|
# @param [Object] Object to be compared
|
254
302
|
def ==(o)
|
@@ -263,6 +311,7 @@ module UltracartClient
|
|
263
311
|
name == o.name &&
|
264
312
|
play_audio_uuid == o.play_audio_uuid &&
|
265
313
|
say == o.say &&
|
314
|
+
say_voice == o.say_voice &&
|
266
315
|
timeout == o.timeout
|
267
316
|
end
|
268
317
|
|
@@ -275,7 +324,7 @@ module UltracartClient
|
|
275
324
|
# Calculates hash code according to all attributes.
|
276
325
|
# @return [Integer] Hash code
|
277
326
|
def hash
|
278
|
-
[allow_direct_extensions, conversation_pbx_menu_uuid, default_action, default_action_target, mappings, merchant_id, name, play_audio_uuid, say, timeout].hash
|
327
|
+
[allow_direct_extensions, conversation_pbx_menu_uuid, default_action, default_action_target, mappings, merchant_id, name, play_audio_uuid, say, say_voice, timeout].hash
|
279
328
|
end
|
280
329
|
|
281
330
|
# Builds the object from hash
|
@@ -234,12 +234,16 @@ module UltracartClient
|
|
234
234
|
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
|
235
235
|
return false if !@send_notices_to_email.nil? && @send_notices_to_email.to_s.length > 250
|
236
236
|
return false if !@voicemail_followup_play_audio_uuid.nil? && @voicemail_followup_play_audio_uuid.to_s.length > 50
|
237
|
+
voicemail_followup_say_voice_validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
238
|
+
return false unless voicemail_followup_say_voice_validator.valid?(@voicemail_followup_say_voice)
|
237
239
|
return false if !@voicemail_followup_say_voice.nil? && @voicemail_followup_say_voice.to_s.length > 50
|
238
240
|
return false if !@voicemail_mailbox_id.nil? && @voicemail_mailbox_id.to_s.length > 50
|
239
241
|
voicemail_mailbox_type_validator = EnumAttributeValidator.new('String', ["agent", "shared"])
|
240
242
|
return false unless voicemail_mailbox_type_validator.valid?(@voicemail_mailbox_type)
|
241
243
|
return false if !@voicemail_mailbox_type.nil? && @voicemail_mailbox_type.to_s.length > 50
|
242
244
|
return false if !@voicemail_prompt_play_audio_uuid.nil? && @voicemail_prompt_play_audio_uuid.to_s.length > 50
|
245
|
+
voicemail_prompt_say_voice_validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
246
|
+
return false unless voicemail_prompt_say_voice_validator.valid?(@voicemail_prompt_say_voice)
|
243
247
|
return false if !@voicemail_prompt_say_voice.nil? && @voicemail_prompt_say_voice.to_s.length > 50
|
244
248
|
true
|
245
249
|
end
|
@@ -284,13 +288,13 @@ module UltracartClient
|
|
284
288
|
@voicemail_followup_play_audio_uuid = voicemail_followup_play_audio_uuid
|
285
289
|
end
|
286
290
|
|
287
|
-
# Custom attribute writer method
|
288
|
-
# @param [Object] voicemail_followup_say_voice
|
291
|
+
# Custom attribute writer method checking allowed values (enum).
|
292
|
+
# @param [Object] voicemail_followup_say_voice Object to be assigned
|
289
293
|
def voicemail_followup_say_voice=(voicemail_followup_say_voice)
|
290
|
-
|
291
|
-
|
294
|
+
validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
295
|
+
unless validator.valid?(voicemail_followup_say_voice)
|
296
|
+
fail ArgumentError, "invalid value for \"voicemail_followup_say_voice\", must be one of #{validator.allowable_values}."
|
292
297
|
end
|
293
|
-
|
294
298
|
@voicemail_followup_say_voice = voicemail_followup_say_voice
|
295
299
|
end
|
296
300
|
|
@@ -324,13 +328,13 @@ module UltracartClient
|
|
324
328
|
@voicemail_prompt_play_audio_uuid = voicemail_prompt_play_audio_uuid
|
325
329
|
end
|
326
330
|
|
327
|
-
# Custom attribute writer method
|
328
|
-
# @param [Object] voicemail_prompt_say_voice
|
331
|
+
# Custom attribute writer method checking allowed values (enum).
|
332
|
+
# @param [Object] voicemail_prompt_say_voice Object to be assigned
|
329
333
|
def voicemail_prompt_say_voice=(voicemail_prompt_say_voice)
|
330
|
-
|
331
|
-
|
334
|
+
validator = EnumAttributeValidator.new('String', ["man", "woman"])
|
335
|
+
unless validator.valid?(voicemail_prompt_say_voice)
|
336
|
+
fail ArgumentError, "invalid value for \"voicemail_prompt_say_voice\", must be one of #{validator.allowable_values}."
|
332
337
|
end
|
333
|
-
|
334
338
|
@voicemail_prompt_say_voice = voicemail_prompt_say_voice
|
335
339
|
end
|
336
340
|
|
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: 4.0.
|
4
|
+
version: 4.0.229
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|