ultracart_api 3.10.211 → 3.10.212
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: c12cca624c17cf16a4570451e2a94b8c038c36a590bf78b8533da664d2792de9
|
4
|
+
data.tar.gz: a908babf975de9b03d99533f8a3268cda2789d76ee8de174d47a2dfbb6d4263b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b9a74442d0101d903d33199ec2c70419696e7b0ff2b942dcf83822e795b39fd98b1cacbe6866d2ebeab6178a8763126569aab69f19d44baf9326a688cd2a993
|
7
|
+
data.tar.gz: cab14be1e1a672ee0333ded5ebda8050a7cc3a87e3527f554e14934a49c23aabd21a1270c74b5b2805b68c5050273aa6cfd4123ab9c99646e1d1be3004258dda
|
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.10.
|
10
|
+
- Package version: 3.10.212
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
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.10.
|
27
|
+
gem install ./ultracart_api-3.10.212.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.212.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.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.212'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1509,6 +1509,7 @@ Not every change is committed to every SDK.
|
|
1509
1509
|
|
1510
1510
|
| Version | Date | Comments |
|
1511
1511
|
| --: | :-: | --- |
|
1512
|
+
| 3.10.212 | 06/14/2024 | pbx menu - add say voice property |
|
1512
1513
|
| 3.10.211 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
|
1513
1514
|
| 3.10.210 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
|
1514
1515
|
| 3.10.209 | 05/31/2024 | ItemApi.getInventorySnapshot method |
|
data/docs/ConversationPbxMenu.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**name** | **String** | Menu name | [optional]
|
13
13
|
**play_audio_uuid** | **String** | An optional audio clip that plays when a customer enters this menu | [optional]
|
14
14
|
**say** | **String** | An optional saying that plays when a customer enters this menu | [optional]
|
15
|
+
**say_voice** | **String** | say voice | [optional]
|
15
16
|
**timeout** | **Integer** | The idle seconds before this menu times out | [optional]
|
16
17
|
|
17
18
|
|
@@ -41,9 +41,34 @@ module UltracartClient
|
|
41
41
|
# An optional saying that plays when a customer enters this menu
|
42
42
|
attr_accessor :say
|
43
43
|
|
44
|
+
# say voice
|
45
|
+
attr_accessor :say_voice
|
46
|
+
|
44
47
|
# The idle seconds before this menu times out
|
45
48
|
attr_accessor :timeout
|
46
49
|
|
50
|
+
class EnumAttributeValidator
|
51
|
+
attr_reader :datatype
|
52
|
+
attr_reader :allowable_values
|
53
|
+
|
54
|
+
def initialize(datatype, allowable_values)
|
55
|
+
@allowable_values = allowable_values.map do |value|
|
56
|
+
case datatype.to_s
|
57
|
+
when /Integer/i
|
58
|
+
value.to_i
|
59
|
+
when /Float/i
|
60
|
+
value.to_f
|
61
|
+
else
|
62
|
+
value
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def valid?(value)
|
68
|
+
!value || allowable_values.include?(value)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
47
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
73
|
def self.attribute_map
|
49
74
|
{
|
@@ -56,6 +81,7 @@ module UltracartClient
|
|
56
81
|
:'name' => :'name',
|
57
82
|
:'play_audio_uuid' => :'play_audio_uuid',
|
58
83
|
:'say' => :'say',
|
84
|
+
:'say_voice' => :'say_voice',
|
59
85
|
:'timeout' => :'timeout'
|
60
86
|
}
|
61
87
|
end
|
@@ -72,6 +98,7 @@ module UltracartClient
|
|
72
98
|
:'name' => :'String',
|
73
99
|
:'play_audio_uuid' => :'String',
|
74
100
|
:'say' => :'String',
|
101
|
+
:'say_voice' => :'String',
|
75
102
|
:'timeout' => :'Integer'
|
76
103
|
}
|
77
104
|
end
|
@@ -122,6 +149,10 @@ module UltracartClient
|
|
122
149
|
self.say = attributes[:'say']
|
123
150
|
end
|
124
151
|
|
152
|
+
if attributes.has_key?(:'say_voice')
|
153
|
+
self.say_voice = attributes[:'say_voice']
|
154
|
+
end
|
155
|
+
|
125
156
|
if attributes.has_key?(:'timeout')
|
126
157
|
self.timeout = attributes[:'timeout']
|
127
158
|
end
|
@@ -155,6 +186,10 @@ module UltracartClient
|
|
155
186
|
invalid_properties.push('invalid value for "play_audio_uuid", the character length must be smaller than or equal to 50.')
|
156
187
|
end
|
157
188
|
|
189
|
+
if !@say_voice.nil? && @say_voice.to_s.length > 50
|
190
|
+
invalid_properties.push('invalid value for "say_voice", the character length must be smaller than or equal to 50.')
|
191
|
+
end
|
192
|
+
|
158
193
|
invalid_properties
|
159
194
|
end
|
160
195
|
|
@@ -167,6 +202,9 @@ module UltracartClient
|
|
167
202
|
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
|
168
203
|
return false if !@name.nil? && @name.to_s.length > 50
|
169
204
|
return false if !@play_audio_uuid.nil? && @play_audio_uuid.to_s.length > 50
|
205
|
+
say_voice_validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
206
|
+
return false unless say_voice_validator.valid?(@say_voice)
|
207
|
+
return false if !@say_voice.nil? && @say_voice.to_s.length > 50
|
170
208
|
true
|
171
209
|
end
|
172
210
|
|
@@ -230,6 +268,16 @@ module UltracartClient
|
|
230
268
|
@play_audio_uuid = play_audio_uuid
|
231
269
|
end
|
232
270
|
|
271
|
+
# Custom attribute writer method checking allowed values (enum).
|
272
|
+
# @param [Object] say_voice Object to be assigned
|
273
|
+
def say_voice=(say_voice)
|
274
|
+
validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
275
|
+
unless validator.valid?(say_voice)
|
276
|
+
fail ArgumentError, 'invalid value for "say_voice", must be one of #{validator.allowable_values}.'
|
277
|
+
end
|
278
|
+
@say_voice = say_voice
|
279
|
+
end
|
280
|
+
|
233
281
|
# Checks equality by comparing each attribute.
|
234
282
|
# @param [Object] Object to be compared
|
235
283
|
def ==(o)
|
@@ -244,6 +292,7 @@ module UltracartClient
|
|
244
292
|
name == o.name &&
|
245
293
|
play_audio_uuid == o.play_audio_uuid &&
|
246
294
|
say == o.say &&
|
295
|
+
say_voice == o.say_voice &&
|
247
296
|
timeout == o.timeout
|
248
297
|
end
|
249
298
|
|
@@ -256,7 +305,7 @@ module UltracartClient
|
|
256
305
|
# Calculates hash code according to all attributes.
|
257
306
|
# @return [Fixnum] Hash code
|
258
307
|
def hash
|
259
|
-
[allow_direct_extensions, conversation_pbx_menu_uuid, default_action, default_action_target, mappings, merchant_id, name, play_audio_uuid, say, timeout].hash
|
308
|
+
[allow_direct_extensions, conversation_pbx_menu_uuid, default_action, default_action_target, mappings, merchant_id, name, play_audio_uuid, say, say_voice, timeout].hash
|
260
309
|
end
|
261
310
|
|
262
311
|
# Builds the object from hash
|
@@ -215,12 +215,16 @@ module UltracartClient
|
|
215
215
|
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
|
216
216
|
return false if !@send_notices_to_email.nil? && @send_notices_to_email.to_s.length > 250
|
217
217
|
return false if !@voicemail_followup_play_audio_uuid.nil? && @voicemail_followup_play_audio_uuid.to_s.length > 50
|
218
|
+
voicemail_followup_say_voice_validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
219
|
+
return false unless voicemail_followup_say_voice_validator.valid?(@voicemail_followup_say_voice)
|
218
220
|
return false if !@voicemail_followup_say_voice.nil? && @voicemail_followup_say_voice.to_s.length > 50
|
219
221
|
return false if !@voicemail_mailbox_id.nil? && @voicemail_mailbox_id.to_s.length > 50
|
220
222
|
voicemail_mailbox_type_validator = EnumAttributeValidator.new('String', ['agent', 'shared'])
|
221
223
|
return false unless voicemail_mailbox_type_validator.valid?(@voicemail_mailbox_type)
|
222
224
|
return false if !@voicemail_mailbox_type.nil? && @voicemail_mailbox_type.to_s.length > 50
|
223
225
|
return false if !@voicemail_prompt_play_audio_uuid.nil? && @voicemail_prompt_play_audio_uuid.to_s.length > 50
|
226
|
+
voicemail_prompt_say_voice_validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
227
|
+
return false unless voicemail_prompt_say_voice_validator.valid?(@voicemail_prompt_say_voice)
|
224
228
|
return false if !@voicemail_prompt_say_voice.nil? && @voicemail_prompt_say_voice.to_s.length > 50
|
225
229
|
true
|
226
230
|
end
|
@@ -265,13 +269,13 @@ module UltracartClient
|
|
265
269
|
@voicemail_followup_play_audio_uuid = voicemail_followup_play_audio_uuid
|
266
270
|
end
|
267
271
|
|
268
|
-
# Custom attribute writer method
|
269
|
-
# @param [Object] voicemail_followup_say_voice
|
272
|
+
# Custom attribute writer method checking allowed values (enum).
|
273
|
+
# @param [Object] voicemail_followup_say_voice Object to be assigned
|
270
274
|
def voicemail_followup_say_voice=(voicemail_followup_say_voice)
|
271
|
-
|
272
|
-
|
275
|
+
validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
276
|
+
unless validator.valid?(voicemail_followup_say_voice)
|
277
|
+
fail ArgumentError, 'invalid value for "voicemail_followup_say_voice", must be one of #{validator.allowable_values}.'
|
273
278
|
end
|
274
|
-
|
275
279
|
@voicemail_followup_say_voice = voicemail_followup_say_voice
|
276
280
|
end
|
277
281
|
|
@@ -305,13 +309,13 @@ module UltracartClient
|
|
305
309
|
@voicemail_prompt_play_audio_uuid = voicemail_prompt_play_audio_uuid
|
306
310
|
end
|
307
311
|
|
308
|
-
# Custom attribute writer method
|
309
|
-
# @param [Object] voicemail_prompt_say_voice
|
312
|
+
# Custom attribute writer method checking allowed values (enum).
|
313
|
+
# @param [Object] voicemail_prompt_say_voice Object to be assigned
|
310
314
|
def voicemail_prompt_say_voice=(voicemail_prompt_say_voice)
|
311
|
-
|
312
|
-
|
315
|
+
validator = EnumAttributeValidator.new('String', ['man', 'woman'])
|
316
|
+
unless validator.valid?(voicemail_prompt_say_voice)
|
317
|
+
fail ArgumentError, 'invalid value for "voicemail_prompt_say_voice", must be one of #{validator.allowable_values}.'
|
313
318
|
end
|
314
|
-
|
315
319
|
@voicemail_prompt_say_voice = voicemail_prompt_say_voice
|
316
320
|
end
|
317
321
|
|
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.212
|
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
|