ultracart_api 4.0.227 → 4.0.229

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac2366fac2ae6a387c3ca288316a55495125d2f860179af6742755f41a191750
4
- data.tar.gz: cda25eece20b319afd74cbbbf400fbc8b1b750f5020cd2f64c53d948294fa886
3
+ metadata.gz: c62128e1dbf30d44830aa3a3c6e8cf46711a5db7e9ca4b8f41d8e434ff1d6d45
4
+ data.tar.gz: f6ad2bcde2593443d1e197da8e4b5e61d97516960e369a73ffd609d0052972e6
5
5
  SHA512:
6
- metadata.gz: 4b552ade3a551cee9b4bf9ded6075d5f44f1e51ff23a3987d4eabf5797efdd7d4fbdadade839f32a7f2e707728b491d26b21f4eca0f24d629fcf87c21cfe4bf9
7
- data.tar.gz: df91ec48fb312ffb57bd16dffd08d2ce0151b9cf77bca479fcb9c14acf25512196144808fd5fbb97c0311e546f0ca8bff3757eafc6ed09fa6b8f2099cc18d61b
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.227
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.227.gem
27
+ gem install ./ultracart_api-4.0.229.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.227.gem` to install the development dependencies)
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.227'
36
+ gem 'ultracart_api', '~> 4.0.229'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1517,6 +1517,8 @@ 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 |
1521
+ | 4.0.228 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
1520
1522
  | 4.0.227 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
1521
1523
  | 4.0.226 | 05/31/2024 | ItemApi.getInventorySnapshot method |
1522
1524
  | 4.0.225 | 05/30/2024 | add adult sig req. to the merchant item destination markup for items |
@@ -6,13 +6,14 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **cellphone** | **String** | Cellphone number of agent in E.164 format | [optional] |
8
8
  | **conversation_pbx_agent_uuid** | **String** | Conversation Pbx Agent unique identifier | [optional] |
9
- | **conversation_pbx_voicemail_mailbox_uuid** | **String** | Conversation Pbx Voicemail Mailbox UUID | [optional] |
10
9
  | **extension** | **Integer** | Extension | [optional] |
11
10
  | **forward_calls_to_cellphone** | **Boolean** | True if calls to this agent should be forwarded to their cellphone | [optional] |
12
11
  | **full_name** | **String** | Full name | [optional] |
13
12
  | **login** | **String** | Agent login | [optional] |
14
13
  | **merchant_id** | **String** | Merchant Id | [optional] |
14
+ | **personal_conversation_pbx_voicemail_mailbox_uuid** | **String** | Personal Conversation Pbx Voicemail Mailbox UUID | [optional] |
15
15
  | **record_outgoing_automatically** | **Boolean** | True if outgoing calls should be automatically recorded | [optional] |
16
+ | **shared_conversation_pbx_voicemail_mailbox_uuid** | **String** | Shared Conversation Pbx Voicemail Mailbox UUID | [optional] |
16
17
  | **twilio_taskrouter_worker_id** | **String** | Twilio taskrouter worker Id | [optional] |
17
18
  | **unavailable_play_audio_uuid** | **String** | Unavailable play audio UUID | [optional] |
18
19
  | **unavailable_say** | **String** | Unavailable say | [optional] |
@@ -28,13 +29,14 @@ require 'ultracart_api'
28
29
  instance = UltracartClient::ConversationPbxAgent.new(
29
30
  cellphone: null,
30
31
  conversation_pbx_agent_uuid: null,
31
- conversation_pbx_voicemail_mailbox_uuid: null,
32
32
  extension: null,
33
33
  forward_calls_to_cellphone: null,
34
34
  full_name: null,
35
35
  login: null,
36
36
  merchant_id: null,
37
+ personal_conversation_pbx_voicemail_mailbox_uuid: null,
37
38
  record_outgoing_automatically: null,
39
+ shared_conversation_pbx_voicemail_mailbox_uuid: null,
38
40
  twilio_taskrouter_worker_id: null,
39
41
  unavailable_play_audio_uuid: null,
40
42
  unavailable_say: null,
@@ -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
  ```
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **report_as_upsell** | **Boolean** | Report as an upsell | [optional] |
8
- | **report_pickable_quantities** | **Array<Integer>** | Report pickable quantities | [optional] |
8
+ | **report_pickable_quantities** | **Array<Integer>** | Report pickable quantities (deprecated) | [optional] |
9
9
 
10
10
  ## Example
11
11
 
@@ -21,9 +21,6 @@ module UltracartClient
21
21
  # Conversation Pbx Agent unique identifier
22
22
  attr_accessor :conversation_pbx_agent_uuid
23
23
 
24
- # Conversation Pbx Voicemail Mailbox UUID
25
- attr_accessor :conversation_pbx_voicemail_mailbox_uuid
26
-
27
24
  # Extension
28
25
  attr_accessor :extension
29
26
 
@@ -39,9 +36,15 @@ module UltracartClient
39
36
  # Merchant Id
40
37
  attr_accessor :merchant_id
41
38
 
39
+ # Personal Conversation Pbx Voicemail Mailbox UUID
40
+ attr_accessor :personal_conversation_pbx_voicemail_mailbox_uuid
41
+
42
42
  # True if outgoing calls should be automatically recorded
43
43
  attr_accessor :record_outgoing_automatically
44
44
 
45
+ # Shared Conversation Pbx Voicemail Mailbox UUID
46
+ attr_accessor :shared_conversation_pbx_voicemail_mailbox_uuid
47
+
45
48
  # Twilio taskrouter worker Id
46
49
  attr_accessor :twilio_taskrouter_worker_id
47
50
 
@@ -65,13 +68,14 @@ module UltracartClient
65
68
  {
66
69
  :'cellphone' => :'cellphone',
67
70
  :'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
68
- :'conversation_pbx_voicemail_mailbox_uuid' => :'conversation_pbx_voicemail_mailbox_uuid',
69
71
  :'extension' => :'extension',
70
72
  :'forward_calls_to_cellphone' => :'forward_calls_to_cellphone',
71
73
  :'full_name' => :'full_name',
72
74
  :'login' => :'login',
73
75
  :'merchant_id' => :'merchant_id',
76
+ :'personal_conversation_pbx_voicemail_mailbox_uuid' => :'personal_conversation_pbx_voicemail_mailbox_uuid',
74
77
  :'record_outgoing_automatically' => :'record_outgoing_automatically',
78
+ :'shared_conversation_pbx_voicemail_mailbox_uuid' => :'shared_conversation_pbx_voicemail_mailbox_uuid',
75
79
  :'twilio_taskrouter_worker_id' => :'twilio_taskrouter_worker_id',
76
80
  :'unavailable_play_audio_uuid' => :'unavailable_play_audio_uuid',
77
81
  :'unavailable_say' => :'unavailable_say',
@@ -91,13 +95,14 @@ module UltracartClient
91
95
  {
92
96
  :'cellphone' => :'String',
93
97
  :'conversation_pbx_agent_uuid' => :'String',
94
- :'conversation_pbx_voicemail_mailbox_uuid' => :'String',
95
98
  :'extension' => :'Integer',
96
99
  :'forward_calls_to_cellphone' => :'Boolean',
97
100
  :'full_name' => :'String',
98
101
  :'login' => :'String',
99
102
  :'merchant_id' => :'String',
103
+ :'personal_conversation_pbx_voicemail_mailbox_uuid' => :'String',
100
104
  :'record_outgoing_automatically' => :'Boolean',
105
+ :'shared_conversation_pbx_voicemail_mailbox_uuid' => :'String',
101
106
  :'twilio_taskrouter_worker_id' => :'String',
102
107
  :'unavailable_play_audio_uuid' => :'String',
103
108
  :'unavailable_say' => :'String',
@@ -136,10 +141,6 @@ module UltracartClient
136
141
  self.conversation_pbx_agent_uuid = attributes[:'conversation_pbx_agent_uuid']
137
142
  end
138
143
 
139
- if attributes.key?(:'conversation_pbx_voicemail_mailbox_uuid')
140
- self.conversation_pbx_voicemail_mailbox_uuid = attributes[:'conversation_pbx_voicemail_mailbox_uuid']
141
- end
142
-
143
144
  if attributes.key?(:'extension')
144
145
  self.extension = attributes[:'extension']
145
146
  end
@@ -160,10 +161,18 @@ module UltracartClient
160
161
  self.merchant_id = attributes[:'merchant_id']
161
162
  end
162
163
 
164
+ if attributes.key?(:'personal_conversation_pbx_voicemail_mailbox_uuid')
165
+ self.personal_conversation_pbx_voicemail_mailbox_uuid = attributes[:'personal_conversation_pbx_voicemail_mailbox_uuid']
166
+ end
167
+
163
168
  if attributes.key?(:'record_outgoing_automatically')
164
169
  self.record_outgoing_automatically = attributes[:'record_outgoing_automatically']
165
170
  end
166
171
 
172
+ if attributes.key?(:'shared_conversation_pbx_voicemail_mailbox_uuid')
173
+ self.shared_conversation_pbx_voicemail_mailbox_uuid = attributes[:'shared_conversation_pbx_voicemail_mailbox_uuid']
174
+ end
175
+
167
176
  if attributes.key?(:'twilio_taskrouter_worker_id')
168
177
  self.twilio_taskrouter_worker_id = attributes[:'twilio_taskrouter_worker_id']
169
178
  end
@@ -197,14 +206,18 @@ module UltracartClient
197
206
  invalid_properties.push('invalid value for "cellphone", the character length must be smaller than or equal to 50.')
198
207
  end
199
208
 
200
- if !@conversation_pbx_voicemail_mailbox_uuid.nil? && @conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
201
- invalid_properties.push('invalid value for "conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
202
- end
203
-
204
209
  if !@merchant_id.nil? && @merchant_id.to_s.length > 5
205
210
  invalid_properties.push('invalid value for "merchant_id", the character length must be smaller than or equal to 5.')
206
211
  end
207
212
 
213
+ if !@personal_conversation_pbx_voicemail_mailbox_uuid.nil? && @personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
214
+ invalid_properties.push('invalid value for "personal_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
215
+ end
216
+
217
+ if !@shared_conversation_pbx_voicemail_mailbox_uuid.nil? && @shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
218
+ invalid_properties.push('invalid value for "shared_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
219
+ end
220
+
208
221
  if !@twilio_taskrouter_worker_id.nil? && @twilio_taskrouter_worker_id.to_s.length > 100
209
222
  invalid_properties.push('invalid value for "twilio_taskrouter_worker_id", the character length must be smaller than or equal to 100.')
210
223
  end
@@ -224,8 +237,9 @@ module UltracartClient
224
237
  # @return true if the model is valid
225
238
  def valid?
226
239
  return false if !@cellphone.nil? && @cellphone.to_s.length > 50
227
- return false if !@conversation_pbx_voicemail_mailbox_uuid.nil? && @conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
228
240
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
241
+ return false if !@personal_conversation_pbx_voicemail_mailbox_uuid.nil? && @personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
242
+ return false if !@shared_conversation_pbx_voicemail_mailbox_uuid.nil? && @shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
229
243
  return false if !@twilio_taskrouter_worker_id.nil? && @twilio_taskrouter_worker_id.to_s.length > 100
230
244
  return false if !@unavailable_play_audio_uuid.nil? && @unavailable_play_audio_uuid.to_s.length > 50
231
245
  return false if !@unavailable_say_voice.nil? && @unavailable_say_voice.to_s.length > 50
@@ -242,16 +256,6 @@ module UltracartClient
242
256
  @cellphone = cellphone
243
257
  end
244
258
 
245
- # Custom attribute writer method with validation
246
- # @param [Object] conversation_pbx_voicemail_mailbox_uuid Value to be assigned
247
- def conversation_pbx_voicemail_mailbox_uuid=(conversation_pbx_voicemail_mailbox_uuid)
248
- if !conversation_pbx_voicemail_mailbox_uuid.nil? && conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
249
- fail ArgumentError, 'invalid value for "conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
250
- end
251
-
252
- @conversation_pbx_voicemail_mailbox_uuid = conversation_pbx_voicemail_mailbox_uuid
253
- end
254
-
255
259
  # Custom attribute writer method with validation
256
260
  # @param [Object] merchant_id Value to be assigned
257
261
  def merchant_id=(merchant_id)
@@ -262,6 +266,26 @@ module UltracartClient
262
266
  @merchant_id = merchant_id
263
267
  end
264
268
 
269
+ # Custom attribute writer method with validation
270
+ # @param [Object] personal_conversation_pbx_voicemail_mailbox_uuid Value to be assigned
271
+ def personal_conversation_pbx_voicemail_mailbox_uuid=(personal_conversation_pbx_voicemail_mailbox_uuid)
272
+ if !personal_conversation_pbx_voicemail_mailbox_uuid.nil? && personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
273
+ fail ArgumentError, 'invalid value for "personal_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
274
+ end
275
+
276
+ @personal_conversation_pbx_voicemail_mailbox_uuid = personal_conversation_pbx_voicemail_mailbox_uuid
277
+ end
278
+
279
+ # Custom attribute writer method with validation
280
+ # @param [Object] shared_conversation_pbx_voicemail_mailbox_uuid Value to be assigned
281
+ def shared_conversation_pbx_voicemail_mailbox_uuid=(shared_conversation_pbx_voicemail_mailbox_uuid)
282
+ if !shared_conversation_pbx_voicemail_mailbox_uuid.nil? && shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
283
+ fail ArgumentError, 'invalid value for "shared_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
284
+ end
285
+
286
+ @shared_conversation_pbx_voicemail_mailbox_uuid = shared_conversation_pbx_voicemail_mailbox_uuid
287
+ end
288
+
265
289
  # Custom attribute writer method with validation
266
290
  # @param [Object] twilio_taskrouter_worker_id Value to be assigned
267
291
  def twilio_taskrouter_worker_id=(twilio_taskrouter_worker_id)
@@ -299,13 +323,14 @@ module UltracartClient
299
323
  self.class == o.class &&
300
324
  cellphone == o.cellphone &&
301
325
  conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
302
- conversation_pbx_voicemail_mailbox_uuid == o.conversation_pbx_voicemail_mailbox_uuid &&
303
326
  extension == o.extension &&
304
327
  forward_calls_to_cellphone == o.forward_calls_to_cellphone &&
305
328
  full_name == o.full_name &&
306
329
  login == o.login &&
307
330
  merchant_id == o.merchant_id &&
331
+ personal_conversation_pbx_voicemail_mailbox_uuid == o.personal_conversation_pbx_voicemail_mailbox_uuid &&
308
332
  record_outgoing_automatically == o.record_outgoing_automatically &&
333
+ shared_conversation_pbx_voicemail_mailbox_uuid == o.shared_conversation_pbx_voicemail_mailbox_uuid &&
309
334
  twilio_taskrouter_worker_id == o.twilio_taskrouter_worker_id &&
310
335
  unavailable_play_audio_uuid == o.unavailable_play_audio_uuid &&
311
336
  unavailable_say == o.unavailable_say &&
@@ -323,7 +348,7 @@ module UltracartClient
323
348
  # Calculates hash code according to all attributes.
324
349
  # @return [Integer] Hash code
325
350
  def hash
326
- [cellphone, conversation_pbx_agent_uuid, conversation_pbx_voicemail_mailbox_uuid, extension, forward_calls_to_cellphone, full_name, login, merchant_id, record_outgoing_automatically, twilio_taskrouter_worker_id, unavailable_play_audio_uuid, unavailable_say, unavailable_say_voice, user_id, voicemail].hash
351
+ [cellphone, conversation_pbx_agent_uuid, extension, forward_calls_to_cellphone, full_name, login, merchant_id, personal_conversation_pbx_voicemail_mailbox_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
327
352
  end
328
353
 
329
354
  # Builds the object from hash
@@ -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 with validation
288
- # @param [Object] voicemail_followup_say_voice Value to be assigned
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
- if !voicemail_followup_say_voice.nil? && voicemail_followup_say_voice.to_s.length > 50
291
- fail ArgumentError, 'invalid value for "voicemail_followup_say_voice", the character length must be smaller than or equal to 50.'
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 with validation
328
- # @param [Object] voicemail_prompt_say_voice Value to be assigned
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
- if !voicemail_prompt_say_voice.nil? && voicemail_prompt_say_voice.to_s.length > 50
331
- fail ArgumentError, 'invalid value for "voicemail_prompt_say_voice", the character length must be smaller than or equal to 50.'
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
 
@@ -18,7 +18,7 @@ module UltracartClient
18
18
  # Report as an upsell
19
19
  attr_accessor :report_as_upsell
20
20
 
21
- # Report pickable quantities
21
+ # Report pickable quantities (deprecated)
22
22
  attr_accessor :report_pickable_quantities
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.227'
14
+ VERSION = '4.0.229'
15
15
  end
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.227
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-03 00:00:00.000000000 Z
11
+ date: 2024-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus