ultracart_api 4.1.76 → 4.1.78

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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -2
  3. data/docs/ConversationAgentAuth.md +4 -0
  4. data/docs/ConversationAgentAuthMerchant.md +22 -0
  5. data/docs/ConversationPbxAudio.md +2 -0
  6. data/docs/ConversationPbxCall.md +2 -0
  7. data/docs/ConversationPbxClassOfService.md +2 -0
  8. data/docs/ConversationPbxCustomerSnapshotRequest.md +2 -0
  9. data/docs/ConversationPbxMenu.md +2 -0
  10. data/docs/ConversationPbxPhoneNumber.md +2 -0
  11. data/docs/ConversationPbxQueue.md +2 -0
  12. data/docs/ConversationPbxTimeBased.md +2 -0
  13. data/docs/ConversationPbxTimeRange.md +2 -0
  14. data/docs/ConversationPbxVoicemailMailbox.md +2 -0
  15. data/lib/ultracart_api/models/conversation_agent_auth.rb +23 -1
  16. data/lib/ultracart_api/models/conversation_agent_auth_merchant.rb +255 -0
  17. data/lib/ultracart_api/models/conversation_pbx_audio.rb +26 -1
  18. data/lib/ultracart_api/models/conversation_pbx_call.rb +11 -1
  19. data/lib/ultracart_api/models/conversation_pbx_class_of_service.rb +26 -1
  20. data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb +10 -1
  21. data/lib/ultracart_api/models/conversation_pbx_menu.rb +26 -1
  22. data/lib/ultracart_api/models/conversation_pbx_phone_number.rb +26 -1
  23. data/lib/ultracart_api/models/conversation_pbx_queue.rb +26 -1
  24. data/lib/ultracart_api/models/conversation_pbx_time_based.rb +10 -1
  25. data/lib/ultracart_api/models/conversation_pbx_time_range.rb +26 -1
  26. data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb +26 -1
  27. data/lib/ultracart_api/version.rb +1 -1
  28. data/lib/ultracart_api.rb +1 -0
  29. metadata +4 -2
@@ -37,6 +37,9 @@ module UltracartClient
37
37
  # Twilio conference SID if this call used conferencing
38
38
  attr_accessor :conference_sid
39
39
 
40
+ # Optional child merchant ID this call is attributed to. Null = no child attribution (parent-level call).
41
+ attr_accessor :context_merchant_id
42
+
40
43
  # Timestamp when the call record was created
41
44
  attr_accessor :created_at_dts
42
45
 
@@ -96,6 +99,7 @@ module UltracartClient
96
99
  :'call_uuid' => :'call_uuid',
97
100
  :'caller' => :'caller',
98
101
  :'conference_sid' => :'conference_sid',
102
+ :'context_merchant_id' => :'context_merchant_id',
99
103
  :'created_at_dts' => :'created_at_dts',
100
104
  :'customer_name' => :'customer_name',
101
105
  :'customer_profile_oid' => :'customer_profile_oid',
@@ -132,6 +136,7 @@ module UltracartClient
132
136
  :'call_uuid' => :'String',
133
137
  :'caller' => :'ConversationPbxCallCaller',
134
138
  :'conference_sid' => :'String',
139
+ :'context_merchant_id' => :'String',
135
140
  :'created_at_dts' => :'String',
136
141
  :'customer_name' => :'String',
137
142
  :'customer_profile_oid' => :'String',
@@ -209,6 +214,10 @@ module UltracartClient
209
214
  self.conference_sid = attributes[:'conference_sid']
210
215
  end
211
216
 
217
+ if attributes.key?(:'context_merchant_id')
218
+ self.context_merchant_id = attributes[:'context_merchant_id']
219
+ end
220
+
212
221
  if attributes.key?(:'created_at_dts')
213
222
  self.created_at_dts = attributes[:'created_at_dts']
214
223
  end
@@ -312,6 +321,7 @@ module UltracartClient
312
321
  call_uuid == o.call_uuid &&
313
322
  caller == o.caller &&
314
323
  conference_sid == o.conference_sid &&
324
+ context_merchant_id == o.context_merchant_id &&
315
325
  created_at_dts == o.created_at_dts &&
316
326
  customer_name == o.customer_name &&
317
327
  customer_profile_oid == o.customer_profile_oid &&
@@ -340,7 +350,7 @@ module UltracartClient
340
350
  # Calculates hash code according to all attributes.
341
351
  # @return [Integer] Hash code
342
352
  def hash
343
- [account_sid, agents, ai_agent_engagements, ai_summary, call_sid, call_uuid, caller, conference_sid, created_at_dts, customer_name, customer_profile_oid, disposition, email, financial, holds, merchant_id, recording_sids, recordings, routing, status, timeline, transfers, updated_at_dts, zoho_desk_ticket_id, zoho_desk_ticket_url].hash
353
+ [account_sid, agents, ai_agent_engagements, ai_summary, call_sid, call_uuid, caller, conference_sid, context_merchant_id, created_at_dts, customer_name, customer_profile_oid, disposition, email, financial, holds, merchant_id, recording_sids, recordings, routing, status, timeline, transfers, updated_at_dts, zoho_desk_ticket_id, zoho_desk_ticket_url].hash
344
354
  end
345
355
 
346
356
  # Builds the object from hash
@@ -21,6 +21,9 @@ module UltracartClient
21
21
  # Block calls to 900, 976, premium-rate, and shortcode destinations
22
22
  attr_accessor :block_premium_numbers
23
23
 
24
+ # Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
25
+ attr_accessor :context_merchant_id
26
+
24
27
  # Class of Service unique identifier
25
28
  attr_accessor :conversation_pbx_class_of_service_uuid
26
29
 
@@ -47,6 +50,7 @@ module UltracartClient
47
50
  {
48
51
  :'allowed_countries' => :'allowed_countries',
49
52
  :'block_premium_numbers' => :'block_premium_numbers',
53
+ :'context_merchant_id' => :'context_merchant_id',
50
54
  :'conversation_pbx_class_of_service_uuid' => :'conversation_pbx_class_of_service_uuid',
51
55
  :'default_flag' => :'default_flag',
52
56
  :'description' => :'description',
@@ -67,6 +71,7 @@ module UltracartClient
67
71
  {
68
72
  :'allowed_countries' => :'Array<String>',
69
73
  :'block_premium_numbers' => :'Boolean',
74
+ :'context_merchant_id' => :'String',
70
75
  :'conversation_pbx_class_of_service_uuid' => :'String',
71
76
  :'default_flag' => :'Boolean',
72
77
  :'description' => :'String',
@@ -108,6 +113,10 @@ module UltracartClient
108
113
  self.block_premium_numbers = attributes[:'block_premium_numbers']
109
114
  end
110
115
 
116
+ if attributes.key?(:'context_merchant_id')
117
+ self.context_merchant_id = attributes[:'context_merchant_id']
118
+ end
119
+
111
120
  if attributes.key?(:'conversation_pbx_class_of_service_uuid')
112
121
  self.conversation_pbx_class_of_service_uuid = attributes[:'conversation_pbx_class_of_service_uuid']
113
122
  end
@@ -141,6 +150,10 @@ module UltracartClient
141
150
  # @return Array for valid properties with the reasons
142
151
  def list_invalid_properties
143
152
  invalid_properties = Array.new
153
+ if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
154
+ invalid_properties.push('invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.')
155
+ end
156
+
144
157
  if !@description.nil? && @description.to_s.length > 500
145
158
  invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 500.')
146
159
  end
@@ -159,12 +172,23 @@ module UltracartClient
159
172
  # Check to see if the all the properties in the model are valid
160
173
  # @return true if the model is valid
161
174
  def valid?
175
+ return false if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
162
176
  return false if !@description.nil? && @description.to_s.length > 500
163
177
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
164
178
  return false if !@name.nil? && @name.to_s.length > 100
165
179
  true
166
180
  end
167
181
 
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] context_merchant_id Value to be assigned
184
+ def context_merchant_id=(context_merchant_id)
185
+ if !context_merchant_id.nil? && context_merchant_id.to_s.length > 20
186
+ fail ArgumentError, 'invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.'
187
+ end
188
+
189
+ @context_merchant_id = context_merchant_id
190
+ end
191
+
168
192
  # Custom attribute writer method with validation
169
193
  # @param [Object] description Value to be assigned
170
194
  def description=(description)
@@ -202,6 +226,7 @@ module UltracartClient
202
226
  self.class == o.class &&
203
227
  allowed_countries == o.allowed_countries &&
204
228
  block_premium_numbers == o.block_premium_numbers &&
229
+ context_merchant_id == o.context_merchant_id &&
205
230
  conversation_pbx_class_of_service_uuid == o.conversation_pbx_class_of_service_uuid &&
206
231
  default_flag == o.default_flag &&
207
232
  description == o.description &&
@@ -220,7 +245,7 @@ module UltracartClient
220
245
  # Calculates hash code according to all attributes.
221
246
  # @return [Integer] Hash code
222
247
  def hash
223
- [allowed_countries, block_premium_numbers, conversation_pbx_class_of_service_uuid, default_flag, description, merchant_id, name, outbound_enabled, time_range_uuid].hash
248
+ [allowed_countries, block_premium_numbers, context_merchant_id, conversation_pbx_class_of_service_uuid, default_flag, description, merchant_id, name, outbound_enabled, time_range_uuid].hash
224
249
  end
225
250
 
226
251
  # Builds the object from hash
@@ -27,6 +27,8 @@ module UltracartClient
27
27
 
28
28
  attr_accessor :phone_number
29
29
 
30
+ attr_accessor :search_linked_accounts
31
+
30
32
  # Indicates if API call was successful
31
33
  attr_accessor :success
32
34
 
@@ -41,6 +43,7 @@ module UltracartClient
41
43
  :'metadata' => :'metadata',
42
44
  :'order_expand' => :'order_expand',
43
45
  :'phone_number' => :'phone_number',
46
+ :'search_linked_accounts' => :'search_linked_accounts',
44
47
  :'success' => :'success',
45
48
  :'warning' => :'warning'
46
49
  }
@@ -60,6 +63,7 @@ module UltracartClient
60
63
  :'metadata' => :'ResponseMetadata',
61
64
  :'order_expand' => :'String',
62
65
  :'phone_number' => :'String',
66
+ :'search_linked_accounts' => :'Boolean',
63
67
  :'success' => :'Boolean',
64
68
  :'warning' => :'Warning'
65
69
  }
@@ -110,6 +114,10 @@ module UltracartClient
110
114
  self.phone_number = attributes[:'phone_number']
111
115
  end
112
116
 
117
+ if attributes.key?(:'search_linked_accounts')
118
+ self.search_linked_accounts = attributes[:'search_linked_accounts']
119
+ end
120
+
113
121
  if attributes.key?(:'success')
114
122
  self.success = attributes[:'success']
115
123
  end
@@ -143,6 +151,7 @@ module UltracartClient
143
151
  metadata == o.metadata &&
144
152
  order_expand == o.order_expand &&
145
153
  phone_number == o.phone_number &&
154
+ search_linked_accounts == o.search_linked_accounts &&
146
155
  success == o.success &&
147
156
  warning == o.warning
148
157
  end
@@ -156,7 +165,7 @@ module UltracartClient
156
165
  # Calculates hash code according to all attributes.
157
166
  # @return [Integer] Hash code
158
167
  def hash
159
- [auto_order_expand, customer_expand, error, metadata, order_expand, phone_number, success, warning].hash
168
+ [auto_order_expand, customer_expand, error, metadata, order_expand, phone_number, search_linked_accounts, success, warning].hash
160
169
  end
161
170
 
162
171
  # Builds the object from hash
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # If true, the customer is allowed to input direct extensions within this menu
19
19
  attr_accessor :allow_direct_extensions
20
20
 
21
+ # Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
22
+ attr_accessor :context_merchant_id
23
+
21
24
  # Conversation Pbx Menu UUID
22
25
  attr_accessor :conversation_pbx_menu_uuid
23
26
 
@@ -74,6 +77,7 @@ module UltracartClient
74
77
  def self.attribute_map
75
78
  {
76
79
  :'allow_direct_extensions' => :'allow_direct_extensions',
80
+ :'context_merchant_id' => :'context_merchant_id',
77
81
  :'conversation_pbx_menu_uuid' => :'conversation_pbx_menu_uuid',
78
82
  :'default_action' => :'default_action',
79
83
  :'default_action_target' => :'default_action_target',
@@ -96,6 +100,7 @@ module UltracartClient
96
100
  def self.openapi_types
97
101
  {
98
102
  :'allow_direct_extensions' => :'Boolean',
103
+ :'context_merchant_id' => :'String',
99
104
  :'conversation_pbx_menu_uuid' => :'String',
100
105
  :'default_action' => :'String',
101
106
  :'default_action_target' => :'String',
@@ -134,6 +139,10 @@ module UltracartClient
134
139
  self.allow_direct_extensions = attributes[:'allow_direct_extensions']
135
140
  end
136
141
 
142
+ if attributes.key?(:'context_merchant_id')
143
+ self.context_merchant_id = attributes[:'context_merchant_id']
144
+ end
145
+
137
146
  if attributes.key?(:'conversation_pbx_menu_uuid')
138
147
  self.conversation_pbx_menu_uuid = attributes[:'conversation_pbx_menu_uuid']
139
148
  end
@@ -181,6 +190,10 @@ module UltracartClient
181
190
  # @return Array for valid properties with the reasons
182
191
  def list_invalid_properties
183
192
  invalid_properties = Array.new
193
+ if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
194
+ invalid_properties.push('invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.')
195
+ end
196
+
184
197
  if !@conversation_pbx_menu_uuid.nil? && @conversation_pbx_menu_uuid.to_s.length > 50
185
198
  invalid_properties.push('invalid value for "conversation_pbx_menu_uuid", the character length must be smaller than or equal to 50.')
186
199
  end
@@ -215,6 +228,7 @@ module UltracartClient
215
228
  # Check to see if the all the properties in the model are valid
216
229
  # @return true if the model is valid
217
230
  def valid?
231
+ return false if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
218
232
  return false if !@conversation_pbx_menu_uuid.nil? && @conversation_pbx_menu_uuid.to_s.length > 50
219
233
  return false if !@default_action.nil? && @default_action.to_s.length > 30
220
234
  return false if !@default_action_target.nil? && @default_action_target.to_s.length > 50
@@ -227,6 +241,16 @@ module UltracartClient
227
241
  true
228
242
  end
229
243
 
244
+ # Custom attribute writer method with validation
245
+ # @param [Object] context_merchant_id Value to be assigned
246
+ def context_merchant_id=(context_merchant_id)
247
+ if !context_merchant_id.nil? && context_merchant_id.to_s.length > 20
248
+ fail ArgumentError, 'invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.'
249
+ end
250
+
251
+ @context_merchant_id = context_merchant_id
252
+ end
253
+
230
254
  # Custom attribute writer method with validation
231
255
  # @param [Object] conversation_pbx_menu_uuid Value to be assigned
232
256
  def conversation_pbx_menu_uuid=(conversation_pbx_menu_uuid)
@@ -303,6 +327,7 @@ module UltracartClient
303
327
  return true if self.equal?(o)
304
328
  self.class == o.class &&
305
329
  allow_direct_extensions == o.allow_direct_extensions &&
330
+ context_merchant_id == o.context_merchant_id &&
306
331
  conversation_pbx_menu_uuid == o.conversation_pbx_menu_uuid &&
307
332
  default_action == o.default_action &&
308
333
  default_action_target == o.default_action_target &&
@@ -324,7 +349,7 @@ module UltracartClient
324
349
  # Calculates hash code according to all attributes.
325
350
  # @return [Integer] Hash code
326
351
  def 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
352
+ [allow_direct_extensions, context_merchant_id, conversation_pbx_menu_uuid, default_action, default_action_target, mappings, merchant_id, name, play_audio_uuid, say, say_voice, timeout].hash
328
353
  end
329
354
 
330
355
  # Builds the object from hash
@@ -24,6 +24,9 @@ module UltracartClient
24
24
  # Twilio Address SID linked to this phone number for regulatory compliance
25
25
  attr_accessor :address_sid
26
26
 
27
+ # Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
28
+ attr_accessor :context_merchant_id
29
+
27
30
  # Conversation Pbx Phone Number UUID
28
31
  attr_accessor :conversation_pbx_phone_number_uuid
29
32
 
@@ -67,6 +70,7 @@ module UltracartClient
67
70
  :'action' => :'action',
68
71
  :'action_target' => :'action_target',
69
72
  :'address_sid' => :'address_sid',
73
+ :'context_merchant_id' => :'context_merchant_id',
70
74
  :'conversation_pbx_phone_number_uuid' => :'conversation_pbx_phone_number_uuid',
71
75
  :'default_phone_number' => :'default_phone_number',
72
76
  :'deletion_protected' => :'deletion_protected',
@@ -86,6 +90,7 @@ module UltracartClient
86
90
  :'action' => :'String',
87
91
  :'action_target' => :'String',
88
92
  :'address_sid' => :'String',
93
+ :'context_merchant_id' => :'String',
89
94
  :'conversation_pbx_phone_number_uuid' => :'String',
90
95
  :'default_phone_number' => :'Boolean',
91
96
  :'deletion_protected' => :'Boolean',
@@ -127,6 +132,10 @@ module UltracartClient
127
132
  self.address_sid = attributes[:'address_sid']
128
133
  end
129
134
 
135
+ if attributes.key?(:'context_merchant_id')
136
+ self.context_merchant_id = attributes[:'context_merchant_id']
137
+ end
138
+
130
139
  if attributes.key?(:'conversation_pbx_phone_number_uuid')
131
140
  self.conversation_pbx_phone_number_uuid = attributes[:'conversation_pbx_phone_number_uuid']
132
141
  end
@@ -164,6 +173,10 @@ module UltracartClient
164
173
  invalid_properties.push('invalid value for "address_sid", the character length must be smaller than or equal to 50.')
165
174
  end
166
175
 
176
+ if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
177
+ invalid_properties.push('invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.')
178
+ end
179
+
167
180
  if !@conversation_pbx_phone_number_uuid.nil? && @conversation_pbx_phone_number_uuid.to_s.length > 50
168
181
  invalid_properties.push('invalid value for "conversation_pbx_phone_number_uuid", the character length must be smaller than or equal to 50.')
169
182
  end
@@ -187,6 +200,7 @@ module UltracartClient
187
200
  return false if !@action.nil? && @action.to_s.length > 30
188
201
  return false if !@action_target.nil? && @action_target.to_s.length > 50
189
202
  return false if !@address_sid.nil? && @address_sid.to_s.length > 50
203
+ return false if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
190
204
  return false if !@conversation_pbx_phone_number_uuid.nil? && @conversation_pbx_phone_number_uuid.to_s.length > 50
191
205
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
192
206
  return false if !@phone_number.nil? && @phone_number.to_s.length > 50
@@ -223,6 +237,16 @@ module UltracartClient
223
237
  @address_sid = address_sid
224
238
  end
225
239
 
240
+ # Custom attribute writer method with validation
241
+ # @param [Object] context_merchant_id Value to be assigned
242
+ def context_merchant_id=(context_merchant_id)
243
+ if !context_merchant_id.nil? && context_merchant_id.to_s.length > 20
244
+ fail ArgumentError, 'invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.'
245
+ end
246
+
247
+ @context_merchant_id = context_merchant_id
248
+ end
249
+
226
250
  # Custom attribute writer method with validation
227
251
  # @param [Object] conversation_pbx_phone_number_uuid Value to be assigned
228
252
  def conversation_pbx_phone_number_uuid=(conversation_pbx_phone_number_uuid)
@@ -261,6 +285,7 @@ module UltracartClient
261
285
  action == o.action &&
262
286
  action_target == o.action_target &&
263
287
  address_sid == o.address_sid &&
288
+ context_merchant_id == o.context_merchant_id &&
264
289
  conversation_pbx_phone_number_uuid == o.conversation_pbx_phone_number_uuid &&
265
290
  default_phone_number == o.default_phone_number &&
266
291
  deletion_protected == o.deletion_protected &&
@@ -277,7 +302,7 @@ module UltracartClient
277
302
  # Calculates hash code according to all attributes.
278
303
  # @return [Integer] Hash code
279
304
  def hash
280
- [action, action_target, address_sid, conversation_pbx_phone_number_uuid, default_phone_number, deletion_protected, merchant_id, phone_number].hash
305
+ [action, action_target, address_sid, context_merchant_id, conversation_pbx_phone_number_uuid, default_phone_number, deletion_protected, merchant_id, phone_number].hash
281
306
  end
282
307
 
283
308
  # Builds the object from hash
@@ -69,6 +69,9 @@ module UltracartClient
69
69
  # Delay in seconds between callback retry attempts
70
70
  attr_accessor :callback_retry_delay_seconds
71
71
 
72
+ # Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
73
+ attr_accessor :context_merchant_id
74
+
72
75
  # Conversation Pbx Queue unique identifier
73
76
  attr_accessor :conversation_pbx_queue_uuid
74
77
 
@@ -177,6 +180,7 @@ module UltracartClient
177
180
  :'callback_offer_after_seconds' => :'callback_offer_after_seconds',
178
181
  :'callback_offer_interval_seconds' => :'callback_offer_interval_seconds',
179
182
  :'callback_retry_delay_seconds' => :'callback_retry_delay_seconds',
183
+ :'context_merchant_id' => :'context_merchant_id',
180
184
  :'conversation_pbx_queue_uuid' => :'conversation_pbx_queue_uuid',
181
185
  :'conversation_voicemail_mailbox_uuid' => :'conversation_voicemail_mailbox_uuid',
182
186
  :'hold_conversation_pbx_audio_uuid' => :'hold_conversation_pbx_audio_uuid',
@@ -228,6 +232,7 @@ module UltracartClient
228
232
  :'callback_offer_after_seconds' => :'Integer',
229
233
  :'callback_offer_interval_seconds' => :'Integer',
230
234
  :'callback_retry_delay_seconds' => :'Integer',
235
+ :'context_merchant_id' => :'String',
231
236
  :'conversation_pbx_queue_uuid' => :'String',
232
237
  :'conversation_voicemail_mailbox_uuid' => :'String',
233
238
  :'hold_conversation_pbx_audio_uuid' => :'String',
@@ -346,6 +351,10 @@ module UltracartClient
346
351
  self.callback_retry_delay_seconds = attributes[:'callback_retry_delay_seconds']
347
352
  end
348
353
 
354
+ if attributes.key?(:'context_merchant_id')
355
+ self.context_merchant_id = attributes[:'context_merchant_id']
356
+ end
357
+
349
358
  if attributes.key?(:'conversation_pbx_queue_uuid')
350
359
  self.conversation_pbx_queue_uuid = attributes[:'conversation_pbx_queue_uuid']
351
360
  end
@@ -451,6 +460,10 @@ module UltracartClient
451
460
  invalid_properties.push('invalid value for "callback_confirm_audio_uuid", the character length must be smaller than or equal to 50.')
452
461
  end
453
462
 
463
+ if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
464
+ invalid_properties.push('invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.')
465
+ end
466
+
454
467
  if !@conversation_voicemail_mailbox_uuid.nil? && @conversation_voicemail_mailbox_uuid.to_s.length > 50
455
468
  invalid_properties.push('invalid value for "conversation_voicemail_mailbox_uuid", the character length must be smaller than or equal to 50.')
456
469
  end
@@ -506,6 +519,7 @@ module UltracartClient
506
519
  return false if !@ai_summary_instructions.nil? && @ai_summary_instructions.to_s.length > 100000
507
520
  return false if !@callback_announce_audio_uuid.nil? && @callback_announce_audio_uuid.to_s.length > 50
508
521
  return false if !@callback_confirm_audio_uuid.nil? && @callback_confirm_audio_uuid.to_s.length > 50
522
+ return false if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
509
523
  return false if !@conversation_voicemail_mailbox_uuid.nil? && @conversation_voicemail_mailbox_uuid.to_s.length > 50
510
524
  return false if !@hold_conversation_pbx_audio_uuid.nil? && @hold_conversation_pbx_audio_uuid.to_s.length > 50
511
525
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
@@ -564,6 +578,16 @@ module UltracartClient
564
578
  @callback_confirm_audio_uuid = callback_confirm_audio_uuid
565
579
  end
566
580
 
581
+ # Custom attribute writer method with validation
582
+ # @param [Object] context_merchant_id Value to be assigned
583
+ def context_merchant_id=(context_merchant_id)
584
+ if !context_merchant_id.nil? && context_merchant_id.to_s.length > 20
585
+ fail ArgumentError, 'invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.'
586
+ end
587
+
588
+ @context_merchant_id = context_merchant_id
589
+ end
590
+
567
591
  # Custom attribute writer method with validation
568
592
  # @param [Object] conversation_voicemail_mailbox_uuid Value to be assigned
569
593
  def conversation_voicemail_mailbox_uuid=(conversation_voicemail_mailbox_uuid)
@@ -697,6 +721,7 @@ module UltracartClient
697
721
  callback_offer_after_seconds == o.callback_offer_after_seconds &&
698
722
  callback_offer_interval_seconds == o.callback_offer_interval_seconds &&
699
723
  callback_retry_delay_seconds == o.callback_retry_delay_seconds &&
724
+ context_merchant_id == o.context_merchant_id &&
700
725
  conversation_pbx_queue_uuid == o.conversation_pbx_queue_uuid &&
701
726
  conversation_voicemail_mailbox_uuid == o.conversation_voicemail_mailbox_uuid &&
702
727
  hold_conversation_pbx_audio_uuid == o.hold_conversation_pbx_audio_uuid &&
@@ -730,7 +755,7 @@ module UltracartClient
730
755
  # Calculates hash code according to all attributes.
731
756
  # @return [Integer] Hash code
732
757
  def hash
733
- [ai_priority, ai_summary_enabled, ai_summary_instructions, ai_timeout_seconds, announce_queue_position, automatic_coach_agent_uuid, callback_announce_audio_uuid, callback_announce_say, callback_confirm_audio_uuid, callback_confirm_say, callback_enabled, callback_hours_only, callback_max_attempts, callback_max_offers, callback_max_pending, callback_offer_after_seconds, callback_offer_interval_seconds, callback_retry_delay_seconds, conversation_pbx_queue_uuid, conversation_voicemail_mailbox_uuid, hold_conversation_pbx_audio_uuid, max_hold_seconds, members, merchant_id, name, no_agent_available_play_audio_uuid, no_agent_available_say, no_agent_available_say_voice, play_audio_uuid, record_call, say, say_voice, twilio_taskrouter_workflow_sid, twilio_workspace_queue_sid, voicemail, wait_critical_seconds, wait_warning_seconds, wrap_up_seconds, zoho_desk_department_id, zoho_desk_ticket_enabled].hash
758
+ [ai_priority, ai_summary_enabled, ai_summary_instructions, ai_timeout_seconds, announce_queue_position, automatic_coach_agent_uuid, callback_announce_audio_uuid, callback_announce_say, callback_confirm_audio_uuid, callback_confirm_say, callback_enabled, callback_hours_only, callback_max_attempts, callback_max_offers, callback_max_pending, callback_offer_after_seconds, callback_offer_interval_seconds, callback_retry_delay_seconds, context_merchant_id, conversation_pbx_queue_uuid, conversation_voicemail_mailbox_uuid, hold_conversation_pbx_audio_uuid, max_hold_seconds, members, merchant_id, name, no_agent_available_play_audio_uuid, no_agent_available_say, no_agent_available_say_voice, play_audio_uuid, record_call, say, say_voice, twilio_taskrouter_workflow_sid, twilio_workspace_queue_sid, voicemail, wait_critical_seconds, wait_warning_seconds, wrap_up_seconds, zoho_desk_department_id, zoho_desk_ticket_enabled].hash
734
759
  end
735
760
 
736
761
  # Builds the object from hash
@@ -15,6 +15,8 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ConversationPbxTimeBased
18
+ attr_accessor :context_merchant_id
19
+
18
20
  attr_accessor :conversation_pbx_time_based_uuid
19
21
 
20
22
  attr_accessor :mapping_config
@@ -26,6 +28,7 @@ module UltracartClient
26
28
  # Attribute mapping from ruby-style variable name to JSON key.
27
29
  def self.attribute_map
28
30
  {
31
+ :'context_merchant_id' => :'context_merchant_id',
29
32
  :'conversation_pbx_time_based_uuid' => :'conversation_pbx_time_based_uuid',
30
33
  :'mapping_config' => :'mapping_config',
31
34
  :'merchant_id' => :'merchant_id',
@@ -41,6 +44,7 @@ module UltracartClient
41
44
  # Attribute type mapping.
42
45
  def self.openapi_types
43
46
  {
47
+ :'context_merchant_id' => :'String',
44
48
  :'conversation_pbx_time_based_uuid' => :'String',
45
49
  :'mapping_config' => :'ConversationPbxTimeBasedMappingConfig',
46
50
  :'merchant_id' => :'String',
@@ -69,6 +73,10 @@ module UltracartClient
69
73
  h[k.to_sym] = v
70
74
  }
71
75
 
76
+ if attributes.key?(:'context_merchant_id')
77
+ self.context_merchant_id = attributes[:'context_merchant_id']
78
+ end
79
+
72
80
  if attributes.key?(:'conversation_pbx_time_based_uuid')
73
81
  self.conversation_pbx_time_based_uuid = attributes[:'conversation_pbx_time_based_uuid']
74
82
  end
@@ -104,6 +112,7 @@ module UltracartClient
104
112
  def ==(o)
105
113
  return true if self.equal?(o)
106
114
  self.class == o.class &&
115
+ context_merchant_id == o.context_merchant_id &&
107
116
  conversation_pbx_time_based_uuid == o.conversation_pbx_time_based_uuid &&
108
117
  mapping_config == o.mapping_config &&
109
118
  merchant_id == o.merchant_id &&
@@ -119,7 +128,7 @@ module UltracartClient
119
128
  # Calculates hash code according to all attributes.
120
129
  # @return [Integer] Hash code
121
130
  def hash
122
- [conversation_pbx_time_based_uuid, mapping_config, merchant_id, time_based_name].hash
131
+ [context_merchant_id, conversation_pbx_time_based_uuid, mapping_config, merchant_id, time_based_name].hash
123
132
  end
124
133
 
125
134
  # Builds the object from hash
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # Configurations for all ranges in this time range
19
19
  attr_accessor :configs
20
20
 
21
+ # Optional child merchant ID this resource is assigned to. Null = shared across the linked merchant group.
22
+ attr_accessor :context_merchant_id
23
+
21
24
  # Conversation Pbx Time Range UUID
22
25
  attr_accessor :conversation_pbx_time_range_uuid
23
26
 
@@ -34,6 +37,7 @@ module UltracartClient
34
37
  def self.attribute_map
35
38
  {
36
39
  :'configs' => :'configs',
40
+ :'context_merchant_id' => :'context_merchant_id',
37
41
  :'conversation_pbx_time_range_uuid' => :'conversation_pbx_time_range_uuid',
38
42
  :'merchant_id' => :'merchant_id',
39
43
  :'time_range_name' => :'time_range_name',
@@ -50,6 +54,7 @@ module UltracartClient
50
54
  def self.openapi_types
51
55
  {
52
56
  :'configs' => :'Array<ConversationPbxTimeRangeConfig>',
57
+ :'context_merchant_id' => :'String',
53
58
  :'conversation_pbx_time_range_uuid' => :'String',
54
59
  :'merchant_id' => :'String',
55
60
  :'time_range_name' => :'String',
@@ -84,6 +89,10 @@ module UltracartClient
84
89
  end
85
90
  end
86
91
 
92
+ if attributes.key?(:'context_merchant_id')
93
+ self.context_merchant_id = attributes[:'context_merchant_id']
94
+ end
95
+
87
96
  if attributes.key?(:'conversation_pbx_time_range_uuid')
88
97
  self.conversation_pbx_time_range_uuid = attributes[:'conversation_pbx_time_range_uuid']
89
98
  end
@@ -105,6 +114,10 @@ module UltracartClient
105
114
  # @return Array for valid properties with the reasons
106
115
  def list_invalid_properties
107
116
  invalid_properties = Array.new
117
+ if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
118
+ invalid_properties.push('invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.')
119
+ end
120
+
108
121
  if !@conversation_pbx_time_range_uuid.nil? && @conversation_pbx_time_range_uuid.to_s.length > 50
109
122
  invalid_properties.push('invalid value for "conversation_pbx_time_range_uuid", the character length must be smaller than or equal to 50.')
110
123
  end
@@ -127,6 +140,7 @@ module UltracartClient
127
140
  # Check to see if the all the properties in the model are valid
128
141
  # @return true if the model is valid
129
142
  def valid?
143
+ return false if !@context_merchant_id.nil? && @context_merchant_id.to_s.length > 20
130
144
  return false if !@conversation_pbx_time_range_uuid.nil? && @conversation_pbx_time_range_uuid.to_s.length > 50
131
145
  return false if !@merchant_id.nil? && @merchant_id.to_s.length > 5
132
146
  return false if !@time_range_name.nil? && @time_range_name.to_s.length > 50
@@ -134,6 +148,16 @@ module UltracartClient
134
148
  true
135
149
  end
136
150
 
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] context_merchant_id Value to be assigned
153
+ def context_merchant_id=(context_merchant_id)
154
+ if !context_merchant_id.nil? && context_merchant_id.to_s.length > 20
155
+ fail ArgumentError, 'invalid value for "context_merchant_id", the character length must be smaller than or equal to 20.'
156
+ end
157
+
158
+ @context_merchant_id = context_merchant_id
159
+ end
160
+
137
161
  # Custom attribute writer method with validation
138
162
  # @param [Object] conversation_pbx_time_range_uuid Value to be assigned
139
163
  def conversation_pbx_time_range_uuid=(conversation_pbx_time_range_uuid)
@@ -180,6 +204,7 @@ module UltracartClient
180
204
  return true if self.equal?(o)
181
205
  self.class == o.class &&
182
206
  configs == o.configs &&
207
+ context_merchant_id == o.context_merchant_id &&
183
208
  conversation_pbx_time_range_uuid == o.conversation_pbx_time_range_uuid &&
184
209
  merchant_id == o.merchant_id &&
185
210
  time_range_name == o.time_range_name &&
@@ -195,7 +220,7 @@ module UltracartClient
195
220
  # Calculates hash code according to all attributes.
196
221
  # @return [Integer] Hash code
197
222
  def hash
198
- [configs, conversation_pbx_time_range_uuid, merchant_id, time_range_name, timezone].hash
223
+ [configs, context_merchant_id, conversation_pbx_time_range_uuid, merchant_id, time_range_name, timezone].hash
199
224
  end
200
225
 
201
226
  # Builds the object from hash