ultracart_api 3.10.210 → 3.10.212

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: b403a2062b04d6314a96984f128de4de451a802ebdd4b8d6429149a6ae5e2a68
4
- data.tar.gz: bfccba20cd04d268f88e2bc991e7a1e4397320aef5f0479686a7227e08bc67b6
3
+ metadata.gz: c12cca624c17cf16a4570451e2a94b8c038c36a590bf78b8533da664d2792de9
4
+ data.tar.gz: a908babf975de9b03d99533f8a3268cda2789d76ee8de174d47a2dfbb6d4263b
5
5
  SHA512:
6
- metadata.gz: b55ff67aacd614722052d6ec7c89036a6c028b363e1a25be4a35bdf7f1c00e9dfb1b81d4bd97f8c8d8c65092c8d20e9f619d7c62938b09c3d3bd2cfabac3f4c9
7
- data.tar.gz: 8afa6c1c224dbffed8c98aaddb1438a5b216e9de8d43ae4857d59541653943a8511e375975d85857f842f5f801273e7c86fb6897eca51e614306c047dd85ed53
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.210
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.210.gem
27
+ gem install ./ultracart_api-3.10.212.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.210.gem` to install the development dependencies)
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.210'
35
+ gem 'ultracart_api', '~> 3.10.212'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1509,6 +1509,8 @@ 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 |
1513
+ | 3.10.211 | 06/07/2024 | conversation pbx - adjust agent voicemail box uuid fields |
1512
1514
  | 3.10.210 | 06/03/2024 | conversationPbxPhoneNumber - fix serialized name for phone number UUID |
1513
1515
  | 3.10.209 | 05/31/2024 | ItemApi.getInventorySnapshot method |
1514
1516
  | 3.10.208 | 05/30/2024 | add adult sig req. to the merchant item destination markup for items |
@@ -5,13 +5,14 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **cellphone** | **String** | Cellphone number of agent in E.164 format | [optional]
7
7
  **conversation_pbx_agent_uuid** | **String** | Conversation Pbx Agent unique identifier | [optional]
8
- **conversation_pbx_voicemail_mailbox_uuid** | **String** | Conversation Pbx Voicemail Mailbox UUID | [optional]
9
8
  **extension** | **Integer** | Extension | [optional]
10
9
  **forward_calls_to_cellphone** | **BOOLEAN** | True if calls to this agent should be forwarded to their cellphone | [optional]
11
10
  **full_name** | **String** | Full name | [optional]
12
11
  **login** | **String** | Agent login | [optional]
13
12
  **merchant_id** | **String** | Merchant Id | [optional]
13
+ **personal_conversation_pbx_voicemail_mailbox_uuid** | **String** | Personal Conversation Pbx Voicemail Mailbox UUID | [optional]
14
14
  **record_outgoing_automatically** | **BOOLEAN** | True if outgoing calls should be automatically recorded | [optional]
15
+ **shared_conversation_pbx_voicemail_mailbox_uuid** | **String** | Shared Conversation Pbx Voicemail Mailbox UUID | [optional]
15
16
  **twilio_taskrouter_worker_id** | **String** | Twilio taskrouter worker Id | [optional]
16
17
  **unavailable_play_audio_uuid** | **String** | Unavailable play audio UUID | [optional]
17
18
  **unavailable_say** | **String** | Unavailable say | [optional]
@@ -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
 
@@ -4,6 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **report_as_upsell** | **BOOLEAN** | Report as an upsell | [optional]
7
- **report_pickable_quantities** | **Array<Integer>** | Report pickable quantities | [optional]
7
+ **report_pickable_quantities** | **Array<Integer>** | Report pickable quantities (deprecated) | [optional]
8
8
 
9
9
 
@@ -20,9 +20,6 @@ module UltracartClient
20
20
  # Conversation Pbx Agent unique identifier
21
21
  attr_accessor :conversation_pbx_agent_uuid
22
22
 
23
- # Conversation Pbx Voicemail Mailbox UUID
24
- attr_accessor :conversation_pbx_voicemail_mailbox_uuid
25
-
26
23
  # Extension
27
24
  attr_accessor :extension
28
25
 
@@ -38,9 +35,15 @@ module UltracartClient
38
35
  # Merchant Id
39
36
  attr_accessor :merchant_id
40
37
 
38
+ # Personal Conversation Pbx Voicemail Mailbox UUID
39
+ attr_accessor :personal_conversation_pbx_voicemail_mailbox_uuid
40
+
41
41
  # True if outgoing calls should be automatically recorded
42
42
  attr_accessor :record_outgoing_automatically
43
43
 
44
+ # Shared Conversation Pbx Voicemail Mailbox UUID
45
+ attr_accessor :shared_conversation_pbx_voicemail_mailbox_uuid
46
+
44
47
  # Twilio taskrouter worker Id
45
48
  attr_accessor :twilio_taskrouter_worker_id
46
49
 
@@ -64,13 +67,14 @@ module UltracartClient
64
67
  {
65
68
  :'cellphone' => :'cellphone',
66
69
  :'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
67
- :'conversation_pbx_voicemail_mailbox_uuid' => :'conversation_pbx_voicemail_mailbox_uuid',
68
70
  :'extension' => :'extension',
69
71
  :'forward_calls_to_cellphone' => :'forward_calls_to_cellphone',
70
72
  :'full_name' => :'full_name',
71
73
  :'login' => :'login',
72
74
  :'merchant_id' => :'merchant_id',
75
+ :'personal_conversation_pbx_voicemail_mailbox_uuid' => :'personal_conversation_pbx_voicemail_mailbox_uuid',
73
76
  :'record_outgoing_automatically' => :'record_outgoing_automatically',
77
+ :'shared_conversation_pbx_voicemail_mailbox_uuid' => :'shared_conversation_pbx_voicemail_mailbox_uuid',
74
78
  :'twilio_taskrouter_worker_id' => :'twilio_taskrouter_worker_id',
75
79
  :'unavailable_play_audio_uuid' => :'unavailable_play_audio_uuid',
76
80
  :'unavailable_say' => :'unavailable_say',
@@ -85,13 +89,14 @@ module UltracartClient
85
89
  {
86
90
  :'cellphone' => :'String',
87
91
  :'conversation_pbx_agent_uuid' => :'String',
88
- :'conversation_pbx_voicemail_mailbox_uuid' => :'String',
89
92
  :'extension' => :'Integer',
90
93
  :'forward_calls_to_cellphone' => :'BOOLEAN',
91
94
  :'full_name' => :'String',
92
95
  :'login' => :'String',
93
96
  :'merchant_id' => :'String',
97
+ :'personal_conversation_pbx_voicemail_mailbox_uuid' => :'String',
94
98
  :'record_outgoing_automatically' => :'BOOLEAN',
99
+ :'shared_conversation_pbx_voicemail_mailbox_uuid' => :'String',
95
100
  :'twilio_taskrouter_worker_id' => :'String',
96
101
  :'unavailable_play_audio_uuid' => :'String',
97
102
  :'unavailable_say' => :'String',
@@ -117,10 +122,6 @@ module UltracartClient
117
122
  self.conversation_pbx_agent_uuid = attributes[:'conversation_pbx_agent_uuid']
118
123
  end
119
124
 
120
- if attributes.has_key?(:'conversation_pbx_voicemail_mailbox_uuid')
121
- self.conversation_pbx_voicemail_mailbox_uuid = attributes[:'conversation_pbx_voicemail_mailbox_uuid']
122
- end
123
-
124
125
  if attributes.has_key?(:'extension')
125
126
  self.extension = attributes[:'extension']
126
127
  end
@@ -141,10 +142,18 @@ module UltracartClient
141
142
  self.merchant_id = attributes[:'merchant_id']
142
143
  end
143
144
 
145
+ if attributes.has_key?(:'personal_conversation_pbx_voicemail_mailbox_uuid')
146
+ self.personal_conversation_pbx_voicemail_mailbox_uuid = attributes[:'personal_conversation_pbx_voicemail_mailbox_uuid']
147
+ end
148
+
144
149
  if attributes.has_key?(:'record_outgoing_automatically')
145
150
  self.record_outgoing_automatically = attributes[:'record_outgoing_automatically']
146
151
  end
147
152
 
153
+ if attributes.has_key?(:'shared_conversation_pbx_voicemail_mailbox_uuid')
154
+ self.shared_conversation_pbx_voicemail_mailbox_uuid = attributes[:'shared_conversation_pbx_voicemail_mailbox_uuid']
155
+ end
156
+
148
157
  if attributes.has_key?(:'twilio_taskrouter_worker_id')
149
158
  self.twilio_taskrouter_worker_id = attributes[:'twilio_taskrouter_worker_id']
150
159
  end
@@ -178,14 +187,18 @@ module UltracartClient
178
187
  invalid_properties.push('invalid value for "cellphone", the character length must be smaller than or equal to 50.')
179
188
  end
180
189
 
181
- if !@conversation_pbx_voicemail_mailbox_uuid.nil? && @conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
182
- invalid_properties.push('invalid value for "conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
183
- end
184
-
185
190
  if !@merchant_id.nil? && @merchant_id.to_s.length > 5
186
191
  invalid_properties.push('invalid value for "merchant_id", the character length must be smaller than or equal to 5.')
187
192
  end
188
193
 
194
+ if !@personal_conversation_pbx_voicemail_mailbox_uuid.nil? && @personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
195
+ invalid_properties.push('invalid value for "personal_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
196
+ end
197
+
198
+ if !@shared_conversation_pbx_voicemail_mailbox_uuid.nil? && @shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
199
+ invalid_properties.push('invalid value for "shared_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
200
+ end
201
+
189
202
  if !@twilio_taskrouter_worker_id.nil? && @twilio_taskrouter_worker_id.to_s.length > 100
190
203
  invalid_properties.push('invalid value for "twilio_taskrouter_worker_id", the character length must be smaller than or equal to 100.')
191
204
  end
@@ -205,8 +218,9 @@ module UltracartClient
205
218
  # @return true if the model is valid
206
219
  def valid?
207
220
  return false if !@cellphone.nil? && @cellphone.to_s.length > 50
208
- return false if !@conversation_pbx_voicemail_mailbox_uuid.nil? && @conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
209
221
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
222
+ return false if !@personal_conversation_pbx_voicemail_mailbox_uuid.nil? && @personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
223
+ return false if !@shared_conversation_pbx_voicemail_mailbox_uuid.nil? && @shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
210
224
  return false if !@twilio_taskrouter_worker_id.nil? && @twilio_taskrouter_worker_id.to_s.length > 100
211
225
  return false if !@unavailable_play_audio_uuid.nil? && @unavailable_play_audio_uuid.to_s.length > 50
212
226
  return false if !@unavailable_say_voice.nil? && @unavailable_say_voice.to_s.length > 50
@@ -223,16 +237,6 @@ module UltracartClient
223
237
  @cellphone = cellphone
224
238
  end
225
239
 
226
- # Custom attribute writer method with validation
227
- # @param [Object] conversation_pbx_voicemail_mailbox_uuid Value to be assigned
228
- def conversation_pbx_voicemail_mailbox_uuid=(conversation_pbx_voicemail_mailbox_uuid)
229
- if !conversation_pbx_voicemail_mailbox_uuid.nil? && conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
230
- fail ArgumentError, 'invalid value for "conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
231
- end
232
-
233
- @conversation_pbx_voicemail_mailbox_uuid = conversation_pbx_voicemail_mailbox_uuid
234
- end
235
-
236
240
  # Custom attribute writer method with validation
237
241
  # @param [Object] merchant_id Value to be assigned
238
242
  def merchant_id=(merchant_id)
@@ -243,6 +247,26 @@ module UltracartClient
243
247
  @merchant_id = merchant_id
244
248
  end
245
249
 
250
+ # Custom attribute writer method with validation
251
+ # @param [Object] personal_conversation_pbx_voicemail_mailbox_uuid Value to be assigned
252
+ def personal_conversation_pbx_voicemail_mailbox_uuid=(personal_conversation_pbx_voicemail_mailbox_uuid)
253
+ if !personal_conversation_pbx_voicemail_mailbox_uuid.nil? && personal_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
254
+ fail ArgumentError, 'invalid value for "personal_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
255
+ end
256
+
257
+ @personal_conversation_pbx_voicemail_mailbox_uuid = personal_conversation_pbx_voicemail_mailbox_uuid
258
+ end
259
+
260
+ # Custom attribute writer method with validation
261
+ # @param [Object] shared_conversation_pbx_voicemail_mailbox_uuid Value to be assigned
262
+ def shared_conversation_pbx_voicemail_mailbox_uuid=(shared_conversation_pbx_voicemail_mailbox_uuid)
263
+ if !shared_conversation_pbx_voicemail_mailbox_uuid.nil? && shared_conversation_pbx_voicemail_mailbox_uuid.to_s.length > 50
264
+ fail ArgumentError, 'invalid value for "shared_conversation_pbx_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.'
265
+ end
266
+
267
+ @shared_conversation_pbx_voicemail_mailbox_uuid = shared_conversation_pbx_voicemail_mailbox_uuid
268
+ end
269
+
246
270
  # Custom attribute writer method with validation
247
271
  # @param [Object] twilio_taskrouter_worker_id Value to be assigned
248
272
  def twilio_taskrouter_worker_id=(twilio_taskrouter_worker_id)
@@ -280,13 +304,14 @@ module UltracartClient
280
304
  self.class == o.class &&
281
305
  cellphone == o.cellphone &&
282
306
  conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
283
- conversation_pbx_voicemail_mailbox_uuid == o.conversation_pbx_voicemail_mailbox_uuid &&
284
307
  extension == o.extension &&
285
308
  forward_calls_to_cellphone == o.forward_calls_to_cellphone &&
286
309
  full_name == o.full_name &&
287
310
  login == o.login &&
288
311
  merchant_id == o.merchant_id &&
312
+ personal_conversation_pbx_voicemail_mailbox_uuid == o.personal_conversation_pbx_voicemail_mailbox_uuid &&
289
313
  record_outgoing_automatically == o.record_outgoing_automatically &&
314
+ shared_conversation_pbx_voicemail_mailbox_uuid == o.shared_conversation_pbx_voicemail_mailbox_uuid &&
290
315
  twilio_taskrouter_worker_id == o.twilio_taskrouter_worker_id &&
291
316
  unavailable_play_audio_uuid == o.unavailable_play_audio_uuid &&
292
317
  unavailable_say == o.unavailable_say &&
@@ -304,7 +329,7 @@ module UltracartClient
304
329
  # Calculates hash code according to all attributes.
305
330
  # @return [Fixnum] Hash code
306
331
  def hash
307
- [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
332
+ [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
308
333
  end
309
334
 
310
335
  # Builds the object from hash
@@ -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 with validation
269
- # @param [Object] voicemail_followup_say_voice Value to be assigned
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
- if !voicemail_followup_say_voice.nil? && voicemail_followup_say_voice.to_s.length > 50
272
- fail ArgumentError, 'invalid value for "voicemail_followup_say_voice", the character length must be smaller than or equal to 50.'
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 with validation
309
- # @param [Object] voicemail_prompt_say_voice Value to be assigned
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
- if !voicemail_prompt_say_voice.nil? && voicemail_prompt_say_voice.to_s.length > 50
312
- fail ArgumentError, 'invalid value for "voicemail_prompt_say_voice", the character length must be smaller than or equal to 50.'
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
 
@@ -17,7 +17,7 @@ module UltracartClient
17
17
  # Report as an upsell
18
18
  attr_accessor :report_as_upsell
19
19
 
20
- # Report pickable quantities
20
+ # Report pickable quantities (deprecated)
21
21
  attr_accessor :report_pickable_quantities
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.210'
14
+ VERSION = '3.10.212'
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: 3.10.210
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-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