ultracart_api 3.10.191 → 3.10.192
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 +4 -4
- data/README.md +15 -4
- data/docs/AutoOrder.md +1 -0
- data/docs/AutoOrderItem.md +1 -0
- data/docs/ConversationApi.md +302 -0
- data/docs/ConversationPbxVoicemailMessage.md +20 -0
- data/docs/ConversationPbxVoicemailMessageResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMessageSummariesResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMessageSummary.md +17 -0
- data/lib/ultracart_api/api/conversation_api.rb +328 -0
- data/lib/ultracart_api/models/auto_order.rb +11 -1
- data/lib/ultracart_api/models/auto_order_item.rb +11 -1
- data/lib/ultracart_api/models/conversation_pbx_phone_number_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_phone_numbers_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_time_based_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_time_baseds_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_time_range_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_time_ranges_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb +29 -5
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailboxes_response.rb +3 -3
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message.rb +339 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_summaries_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_summary.rb +309 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
@@ -249,6 +249,60 @@ module UltracartClient
|
|
249
249
|
end
|
250
250
|
return data, status_code, headers
|
251
251
|
end
|
252
|
+
# Delete Agent Voicemail
|
253
|
+
# Delete pbx agent Voicemail
|
254
|
+
# @param recording_sid
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @return [nil]
|
257
|
+
def delete_pbx_agent_voicemail(recording_sid, opts = {})
|
258
|
+
delete_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
259
|
+
nil
|
260
|
+
end
|
261
|
+
|
262
|
+
# Delete Agent Voicemail
|
263
|
+
# Delete pbx agent Voicemail
|
264
|
+
# @param recording_sid
|
265
|
+
# @param [Hash] opts the optional parameters
|
266
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
267
|
+
def delete_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
268
|
+
if @api_client.config.debugging
|
269
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_agent_voicemail ...'
|
270
|
+
end
|
271
|
+
# verify the required parameter 'recording_sid' is set
|
272
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
273
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.delete_pbx_agent_voicemail"
|
274
|
+
end
|
275
|
+
# resource path
|
276
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}'.sub('{' + 'recording_sid' + '}', recording_sid.to_s)
|
277
|
+
|
278
|
+
# query parameters
|
279
|
+
query_params = {}
|
280
|
+
|
281
|
+
# header parameters
|
282
|
+
header_params = {}
|
283
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
284
|
+
# HTTP header 'Accept' (if needed)
|
285
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
286
|
+
# HTTP header 'Content-Type'
|
287
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
288
|
+
|
289
|
+
# form parameters
|
290
|
+
form_params = {}
|
291
|
+
|
292
|
+
# http body (model)
|
293
|
+
post_body = nil
|
294
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
295
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
296
|
+
:header_params => header_params,
|
297
|
+
:query_params => query_params,
|
298
|
+
:form_params => form_params,
|
299
|
+
:body => post_body,
|
300
|
+
:auth_names => auth_names)
|
301
|
+
if @api_client.config.debugging
|
302
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
303
|
+
end
|
304
|
+
return data, status_code, headers
|
305
|
+
end
|
252
306
|
# Delete pbx audio
|
253
307
|
# Delete a pbx audio
|
254
308
|
# @param conversation_pbx_audio_uuid
|
@@ -1746,6 +1800,110 @@ module UltracartClient
|
|
1746
1800
|
end
|
1747
1801
|
return data, status_code, headers
|
1748
1802
|
end
|
1803
|
+
# Get Agent Voicemail
|
1804
|
+
# Retrieve pbx agent Voicemail
|
1805
|
+
# @param recording_sid
|
1806
|
+
# @param [Hash] opts the optional parameters
|
1807
|
+
# @return [ConversationPbxVoicemailMessageResponse]
|
1808
|
+
def get_pbx_agent_voicemail(recording_sid, opts = {})
|
1809
|
+
data, _status_code, _headers = get_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
1810
|
+
data
|
1811
|
+
end
|
1812
|
+
|
1813
|
+
# Get Agent Voicemail
|
1814
|
+
# Retrieve pbx agent Voicemail
|
1815
|
+
# @param recording_sid
|
1816
|
+
# @param [Hash] opts the optional parameters
|
1817
|
+
# @return [Array<(ConversationPbxVoicemailMessageResponse, Fixnum, Hash)>] ConversationPbxVoicemailMessageResponse data, response status code and response headers
|
1818
|
+
def get_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
1819
|
+
if @api_client.config.debugging
|
1820
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agent_voicemail ...'
|
1821
|
+
end
|
1822
|
+
# verify the required parameter 'recording_sid' is set
|
1823
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
1824
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.get_pbx_agent_voicemail"
|
1825
|
+
end
|
1826
|
+
# resource path
|
1827
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}'.sub('{' + 'recording_sid' + '}', recording_sid.to_s)
|
1828
|
+
|
1829
|
+
# query parameters
|
1830
|
+
query_params = {}
|
1831
|
+
|
1832
|
+
# header parameters
|
1833
|
+
header_params = {}
|
1834
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1835
|
+
# HTTP header 'Accept' (if needed)
|
1836
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1837
|
+
# HTTP header 'Content-Type'
|
1838
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1839
|
+
|
1840
|
+
# form parameters
|
1841
|
+
form_params = {}
|
1842
|
+
|
1843
|
+
# http body (model)
|
1844
|
+
post_body = nil
|
1845
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1846
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1847
|
+
:header_params => header_params,
|
1848
|
+
:query_params => query_params,
|
1849
|
+
:form_params => form_params,
|
1850
|
+
:body => post_body,
|
1851
|
+
:auth_names => auth_names,
|
1852
|
+
:return_type => 'ConversationPbxVoicemailMessageResponse')
|
1853
|
+
if @api_client.config.debugging
|
1854
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1855
|
+
end
|
1856
|
+
return data, status_code, headers
|
1857
|
+
end
|
1858
|
+
# Get Agent Voicemails
|
1859
|
+
# Retrieve pbx agent Voicemails
|
1860
|
+
# @param [Hash] opts the optional parameters
|
1861
|
+
# @return [ConversationPbxVoicemailMessageSummariesResponse]
|
1862
|
+
def get_pbx_agent_voicemails(opts = {})
|
1863
|
+
data, _status_code, _headers = get_pbx_agent_voicemails_with_http_info(opts)
|
1864
|
+
data
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
# Get Agent Voicemails
|
1868
|
+
# Retrieve pbx agent Voicemails
|
1869
|
+
# @param [Hash] opts the optional parameters
|
1870
|
+
# @return [Array<(ConversationPbxVoicemailMessageSummariesResponse, Fixnum, Hash)>] ConversationPbxVoicemailMessageSummariesResponse data, response status code and response headers
|
1871
|
+
def get_pbx_agent_voicemails_with_http_info(opts = {})
|
1872
|
+
if @api_client.config.debugging
|
1873
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agent_voicemails ...'
|
1874
|
+
end
|
1875
|
+
# resource path
|
1876
|
+
local_var_path = '/conversation/pbx/agent/voicemails'
|
1877
|
+
|
1878
|
+
# query parameters
|
1879
|
+
query_params = {}
|
1880
|
+
|
1881
|
+
# header parameters
|
1882
|
+
header_params = {}
|
1883
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1884
|
+
# HTTP header 'Accept' (if needed)
|
1885
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1886
|
+
# HTTP header 'Content-Type'
|
1887
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1888
|
+
|
1889
|
+
# form parameters
|
1890
|
+
form_params = {}
|
1891
|
+
|
1892
|
+
# http body (model)
|
1893
|
+
post_body = nil
|
1894
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1895
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1896
|
+
:header_params => header_params,
|
1897
|
+
:query_params => query_params,
|
1898
|
+
:form_params => form_params,
|
1899
|
+
:body => post_body,
|
1900
|
+
:auth_names => auth_names,
|
1901
|
+
:return_type => 'ConversationPbxVoicemailMessageSummariesResponse')
|
1902
|
+
if @api_client.config.debugging
|
1903
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agent_voicemails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1904
|
+
end
|
1905
|
+
return data, status_code, headers
|
1906
|
+
end
|
1749
1907
|
# Get pbx agents
|
1750
1908
|
# Retrieve pbx agents
|
1751
1909
|
# @param [Hash] opts the optional parameters
|
@@ -2162,6 +2320,122 @@ module UltracartClient
|
|
2162
2320
|
end
|
2163
2321
|
return data, status_code, headers
|
2164
2322
|
end
|
2323
|
+
# Get Queue Voicemail
|
2324
|
+
# Retrieve pbx queue Voicemail
|
2325
|
+
# @param queue_uuid
|
2326
|
+
# @param recording_sid
|
2327
|
+
# @param [Hash] opts the optional parameters
|
2328
|
+
# @return [ConversationPbxVoicemailMessageResponse]
|
2329
|
+
def get_pbx_queue_voicemail(queue_uuid, recording_sid, opts = {})
|
2330
|
+
data, _status_code, _headers = get_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts)
|
2331
|
+
data
|
2332
|
+
end
|
2333
|
+
|
2334
|
+
# Get Queue Voicemail
|
2335
|
+
# Retrieve pbx queue Voicemail
|
2336
|
+
# @param queue_uuid
|
2337
|
+
# @param recording_sid
|
2338
|
+
# @param [Hash] opts the optional parameters
|
2339
|
+
# @return [Array<(ConversationPbxVoicemailMessageResponse, Fixnum, Hash)>] ConversationPbxVoicemailMessageResponse data, response status code and response headers
|
2340
|
+
def get_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts = {})
|
2341
|
+
if @api_client.config.debugging
|
2342
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queue_voicemail ...'
|
2343
|
+
end
|
2344
|
+
# verify the required parameter 'queue_uuid' is set
|
2345
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
2346
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.get_pbx_queue_voicemail"
|
2347
|
+
end
|
2348
|
+
# verify the required parameter 'recording_sid' is set
|
2349
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
2350
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.get_pbx_queue_voicemail"
|
2351
|
+
end
|
2352
|
+
# resource path
|
2353
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}'.sub('{' + 'queue_uuid' + '}', queue_uuid.to_s).sub('{' + 'recording_sid' + '}', recording_sid.to_s)
|
2354
|
+
|
2355
|
+
# query parameters
|
2356
|
+
query_params = {}
|
2357
|
+
|
2358
|
+
# header parameters
|
2359
|
+
header_params = {}
|
2360
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2361
|
+
# HTTP header 'Accept' (if needed)
|
2362
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2363
|
+
# HTTP header 'Content-Type'
|
2364
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2365
|
+
|
2366
|
+
# form parameters
|
2367
|
+
form_params = {}
|
2368
|
+
|
2369
|
+
# http body (model)
|
2370
|
+
post_body = nil
|
2371
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2372
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2373
|
+
:header_params => header_params,
|
2374
|
+
:query_params => query_params,
|
2375
|
+
:form_params => form_params,
|
2376
|
+
:body => post_body,
|
2377
|
+
:auth_names => auth_names,
|
2378
|
+
:return_type => 'ConversationPbxVoicemailMessageResponse')
|
2379
|
+
if @api_client.config.debugging
|
2380
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queue_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2381
|
+
end
|
2382
|
+
return data, status_code, headers
|
2383
|
+
end
|
2384
|
+
# Get Queue Voicemails
|
2385
|
+
# Retrieve pbx queue voicemails
|
2386
|
+
# @param queue_uuid
|
2387
|
+
# @param [Hash] opts the optional parameters
|
2388
|
+
# @return [ConversationPbxVoicemailMessageSummariesResponse]
|
2389
|
+
def get_pbx_queue_voicemails(queue_uuid, opts = {})
|
2390
|
+
data, _status_code, _headers = get_pbx_queue_voicemails_with_http_info(queue_uuid, opts)
|
2391
|
+
data
|
2392
|
+
end
|
2393
|
+
|
2394
|
+
# Get Queue Voicemails
|
2395
|
+
# Retrieve pbx queue voicemails
|
2396
|
+
# @param queue_uuid
|
2397
|
+
# @param [Hash] opts the optional parameters
|
2398
|
+
# @return [Array<(ConversationPbxVoicemailMessageSummariesResponse, Fixnum, Hash)>] ConversationPbxVoicemailMessageSummariesResponse data, response status code and response headers
|
2399
|
+
def get_pbx_queue_voicemails_with_http_info(queue_uuid, opts = {})
|
2400
|
+
if @api_client.config.debugging
|
2401
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queue_voicemails ...'
|
2402
|
+
end
|
2403
|
+
# verify the required parameter 'queue_uuid' is set
|
2404
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
2405
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.get_pbx_queue_voicemails"
|
2406
|
+
end
|
2407
|
+
# resource path
|
2408
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/voicemails'.sub('{' + 'queue_uuid' + '}', queue_uuid.to_s)
|
2409
|
+
|
2410
|
+
# query parameters
|
2411
|
+
query_params = {}
|
2412
|
+
|
2413
|
+
# header parameters
|
2414
|
+
header_params = {}
|
2415
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2416
|
+
# HTTP header 'Accept' (if needed)
|
2417
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2418
|
+
# HTTP header 'Content-Type'
|
2419
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2420
|
+
|
2421
|
+
# form parameters
|
2422
|
+
form_params = {}
|
2423
|
+
|
2424
|
+
# http body (model)
|
2425
|
+
post_body = nil
|
2426
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2427
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2428
|
+
:header_params => header_params,
|
2429
|
+
:query_params => query_params,
|
2430
|
+
:form_params => form_params,
|
2431
|
+
:body => post_body,
|
2432
|
+
:auth_names => auth_names,
|
2433
|
+
:return_type => 'ConversationPbxVoicemailMessageSummariesResponse')
|
2434
|
+
if @api_client.config.debugging
|
2435
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queue_voicemails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2436
|
+
end
|
2437
|
+
return data, status_code, headers
|
2438
|
+
end
|
2165
2439
|
# Get pbx queues
|
2166
2440
|
# Retrieve pbx queues
|
2167
2441
|
# @param [Hash] opts the optional parameters
|
@@ -3238,6 +3512,60 @@ module UltracartClient
|
|
3238
3512
|
end
|
3239
3513
|
return data, status_code, headers
|
3240
3514
|
end
|
3515
|
+
# Listened Agent Voicemail
|
3516
|
+
# Listened pbx agent Voicemail
|
3517
|
+
# @param recording_sid
|
3518
|
+
# @param [Hash] opts the optional parameters
|
3519
|
+
# @return [nil]
|
3520
|
+
def listened_pbx_agent_voicemail(recording_sid, opts = {})
|
3521
|
+
listened_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
3522
|
+
nil
|
3523
|
+
end
|
3524
|
+
|
3525
|
+
# Listened Agent Voicemail
|
3526
|
+
# Listened pbx agent Voicemail
|
3527
|
+
# @param recording_sid
|
3528
|
+
# @param [Hash] opts the optional parameters
|
3529
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3530
|
+
def listened_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
3531
|
+
if @api_client.config.debugging
|
3532
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.listened_pbx_agent_voicemail ...'
|
3533
|
+
end
|
3534
|
+
# verify the required parameter 'recording_sid' is set
|
3535
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
3536
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.listened_pbx_agent_voicemail"
|
3537
|
+
end
|
3538
|
+
# resource path
|
3539
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}/listened'.sub('{' + 'recording_sid' + '}', recording_sid.to_s)
|
3540
|
+
|
3541
|
+
# query parameters
|
3542
|
+
query_params = {}
|
3543
|
+
|
3544
|
+
# header parameters
|
3545
|
+
header_params = {}
|
3546
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3547
|
+
# HTTP header 'Accept' (if needed)
|
3548
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3549
|
+
# HTTP header 'Content-Type'
|
3550
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3551
|
+
|
3552
|
+
# form parameters
|
3553
|
+
form_params = {}
|
3554
|
+
|
3555
|
+
# http body (model)
|
3556
|
+
post_body = nil
|
3557
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3558
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
3559
|
+
:header_params => header_params,
|
3560
|
+
:query_params => query_params,
|
3561
|
+
:form_params => form_params,
|
3562
|
+
:body => post_body,
|
3563
|
+
:auth_names => auth_names)
|
3564
|
+
if @api_client.config.debugging
|
3565
|
+
@api_client.config.logger.debug "API called: ConversationApi#listened_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3566
|
+
end
|
3567
|
+
return data, status_code, headers
|
3568
|
+
end
|
3241
3569
|
# Mark a conversation as read
|
3242
3570
|
# Mark a conversation as read
|
3243
3571
|
# @param conversation_uuid
|
@@ -64,6 +64,9 @@ module UltracartClient
|
|
64
64
|
|
65
65
|
attr_accessor :management
|
66
66
|
|
67
|
+
# UltraCart merchant ID owning this order
|
68
|
+
attr_accessor :merchant_id
|
69
|
+
|
67
70
|
# The next time that the auto order will be attempted for processing
|
68
71
|
attr_accessor :next_attempt
|
69
72
|
|
@@ -126,6 +129,7 @@ module UltracartClient
|
|
126
129
|
:'items' => :'items',
|
127
130
|
:'logs' => :'logs',
|
128
131
|
:'management' => :'management',
|
132
|
+
:'merchant_id' => :'merchant_id',
|
129
133
|
:'next_attempt' => :'next_attempt',
|
130
134
|
:'original_order' => :'original_order',
|
131
135
|
:'original_order_id' => :'original_order_id',
|
@@ -156,6 +160,7 @@ module UltracartClient
|
|
156
160
|
:'items' => :'Array<AutoOrderItem>',
|
157
161
|
:'logs' => :'Array<AutoOrderLog>',
|
158
162
|
:'management' => :'AutoOrderManagement',
|
163
|
+
:'merchant_id' => :'String',
|
159
164
|
:'next_attempt' => :'String',
|
160
165
|
:'original_order' => :'Order',
|
161
166
|
:'original_order_id' => :'String',
|
@@ -248,6 +253,10 @@ module UltracartClient
|
|
248
253
|
self.management = attributes[:'management']
|
249
254
|
end
|
250
255
|
|
256
|
+
if attributes.has_key?(:'merchant_id')
|
257
|
+
self.merchant_id = attributes[:'merchant_id']
|
258
|
+
end
|
259
|
+
|
251
260
|
if attributes.has_key?(:'next_attempt')
|
252
261
|
self.next_attempt = attributes[:'next_attempt']
|
253
262
|
end
|
@@ -326,6 +335,7 @@ module UltracartClient
|
|
326
335
|
items == o.items &&
|
327
336
|
logs == o.logs &&
|
328
337
|
management == o.management &&
|
338
|
+
merchant_id == o.merchant_id &&
|
329
339
|
next_attempt == o.next_attempt &&
|
330
340
|
original_order == o.original_order &&
|
331
341
|
original_order_id == o.original_order_id &&
|
@@ -344,7 +354,7 @@ module UltracartClient
|
|
344
354
|
# Calculates hash code according to all attributes.
|
345
355
|
# @return [Fixnum] Hash code
|
346
356
|
def hash
|
347
|
-
[add_ons, auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, management, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
357
|
+
[add_ons, auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_reason, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, management, merchant_id, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
348
358
|
end
|
349
359
|
|
350
360
|
# Builds the object from hash
|
@@ -50,6 +50,9 @@ module UltracartClient
|
|
50
50
|
# The life time value of this item including the original purchase
|
51
51
|
attr_accessor :life_time_value
|
52
52
|
|
53
|
+
# Calculated next item id
|
54
|
+
attr_accessor :next_item_id
|
55
|
+
|
53
56
|
# The date/time of when the next pre-shipment notice should be sent
|
54
57
|
attr_accessor :next_preshipment_notice_dts
|
55
58
|
|
@@ -128,6 +131,7 @@ module UltracartClient
|
|
128
131
|
:'future_schedules' => :'future_schedules',
|
129
132
|
:'last_order_dts' => :'last_order_dts',
|
130
133
|
:'life_time_value' => :'life_time_value',
|
134
|
+
:'next_item_id' => :'next_item_id',
|
131
135
|
:'next_preshipment_notice_dts' => :'next_preshipment_notice_dts',
|
132
136
|
:'next_shipment_dts' => :'next_shipment_dts',
|
133
137
|
:'no_order_after_dts' => :'no_order_after_dts',
|
@@ -160,6 +164,7 @@ module UltracartClient
|
|
160
164
|
:'future_schedules' => :'Array<AutoOrderItemFutureSchedule>',
|
161
165
|
:'last_order_dts' => :'String',
|
162
166
|
:'life_time_value' => :'Float',
|
167
|
+
:'next_item_id' => :'String',
|
163
168
|
:'next_preshipment_notice_dts' => :'String',
|
164
169
|
:'next_shipment_dts' => :'String',
|
165
170
|
:'no_order_after_dts' => :'String',
|
@@ -235,6 +240,10 @@ module UltracartClient
|
|
235
240
|
self.life_time_value = attributes[:'life_time_value']
|
236
241
|
end
|
237
242
|
|
243
|
+
if attributes.has_key?(:'next_item_id')
|
244
|
+
self.next_item_id = attributes[:'next_item_id']
|
245
|
+
end
|
246
|
+
|
238
247
|
if attributes.has_key?(:'next_preshipment_notice_dts')
|
239
248
|
self.next_preshipment_notice_dts = attributes[:'next_preshipment_notice_dts']
|
240
249
|
end
|
@@ -336,6 +345,7 @@ module UltracartClient
|
|
336
345
|
future_schedules == o.future_schedules &&
|
337
346
|
last_order_dts == o.last_order_dts &&
|
338
347
|
life_time_value == o.life_time_value &&
|
348
|
+
next_item_id == o.next_item_id &&
|
339
349
|
next_preshipment_notice_dts == o.next_preshipment_notice_dts &&
|
340
350
|
next_shipment_dts == o.next_shipment_dts &&
|
341
351
|
no_order_after_dts == o.no_order_after_dts &&
|
@@ -361,7 +371,7 @@ module UltracartClient
|
|
361
371
|
# Calculates hash code according to all attributes.
|
362
372
|
# @return [Fixnum] Hash code
|
363
373
|
def hash
|
364
|
-
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
374
|
+
[arbitrary_item_id, arbitrary_percentage_discount, arbitrary_quantity, arbitrary_schedule_days, arbitrary_unit_cost, arbitrary_unit_cost_remaining_orders, auto_order_item_oid, first_order_dts, frequency, future_schedules, last_order_dts, life_time_value, next_item_id, next_preshipment_notice_dts, next_shipment_dts, no_order_after_dts, number_of_rebills, options, original_item_id, original_quantity, paused, paypal_payer_id, paypal_recurring_payment_profile_id, preshipment_notice_sent, rebill_value, remaining_repeat_count, simple_schedule].hash
|
365
375
|
end
|
366
376
|
|
367
377
|
# Builds the object from hash
|
@@ -30,7 +30,7 @@ module UltracartClient
|
|
30
30
|
{
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
|
-
:'phone_number' => :'
|
33
|
+
:'phone_number' => :'phone_number',
|
34
34
|
:'success' => :'success',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
@@ -63,8 +63,8 @@ module UltracartClient
|
|
63
63
|
self.metadata = attributes[:'metadata']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.has_key?(:'
|
67
|
-
self.phone_number = attributes[:'
|
66
|
+
if attributes.has_key?(:'phone_number')
|
67
|
+
self.phone_number = attributes[:'phone_number']
|
68
68
|
end
|
69
69
|
|
70
70
|
if attributes.has_key?(:'success')
|
@@ -30,7 +30,7 @@ module UltracartClient
|
|
30
30
|
{
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
|
-
:'phone_numbers' => :'
|
33
|
+
:'phone_numbers' => :'phone_numbers',
|
34
34
|
:'success' => :'success',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
@@ -63,8 +63,8 @@ module UltracartClient
|
|
63
63
|
self.metadata = attributes[:'metadata']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.has_key?(:'
|
67
|
-
if (value = attributes[:'
|
66
|
+
if attributes.has_key?(:'phone_numbers')
|
67
|
+
if (value = attributes[:'phone_numbers']).is_a?(Array)
|
68
68
|
self.phone_numbers = value
|
69
69
|
end
|
70
70
|
end
|
@@ -31,7 +31,7 @@ module UltracartClient
|
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
33
|
:'success' => :'success',
|
34
|
-
:'time_based' => :'
|
34
|
+
:'time_based' => :'time_based',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
@@ -67,8 +67,8 @@ module UltracartClient
|
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
self.time_based = attributes[:'
|
70
|
+
if attributes.has_key?(:'time_based')
|
71
|
+
self.time_based = attributes[:'time_based']
|
72
72
|
end
|
73
73
|
|
74
74
|
if attributes.has_key?(:'warning')
|
@@ -31,7 +31,7 @@ module UltracartClient
|
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
33
|
:'success' => :'success',
|
34
|
-
:'time_baseds' => :'
|
34
|
+
:'time_baseds' => :'time_baseds',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
@@ -67,8 +67,8 @@ module UltracartClient
|
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
if (value = attributes[:'
|
70
|
+
if attributes.has_key?(:'time_baseds')
|
71
|
+
if (value = attributes[:'time_baseds']).is_a?(Array)
|
72
72
|
self.time_baseds = value
|
73
73
|
end
|
74
74
|
end
|
@@ -31,7 +31,7 @@ module UltracartClient
|
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
33
|
:'success' => :'success',
|
34
|
-
:'time_range' => :'
|
34
|
+
:'time_range' => :'time_range',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
@@ -67,8 +67,8 @@ module UltracartClient
|
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
self.time_range = attributes[:'
|
70
|
+
if attributes.has_key?(:'time_range')
|
71
|
+
self.time_range = attributes[:'time_range']
|
72
72
|
end
|
73
73
|
|
74
74
|
if attributes.has_key?(:'warning')
|
@@ -31,7 +31,7 @@ module UltracartClient
|
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
33
|
:'success' => :'success',
|
34
|
-
:'time_ranges' => :'
|
34
|
+
:'time_ranges' => :'time_ranges',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
@@ -67,8 +67,8 @@ module UltracartClient
|
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
if (value = attributes[:'
|
70
|
+
if attributes.has_key?(:'time_ranges')
|
71
|
+
if (value = attributes[:'time_ranges']).is_a?(Array)
|
72
72
|
self.time_ranges = value
|
73
73
|
end
|
74
74
|
end
|
@@ -47,6 +47,28 @@ module UltracartClient
|
|
47
47
|
# Voicemail say voice
|
48
48
|
attr_accessor :voicemail_say_voice
|
49
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
|
+
|
50
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
73
|
def self.attribute_map
|
52
74
|
{
|
@@ -181,6 +203,8 @@ module UltracartClient
|
|
181
203
|
return false if !@send_notices_to_email.nil? && @send_notices_to_email.to_s.length > 250
|
182
204
|
return false if !@voicemail_follow_play_audio_uuid.nil? && @voicemail_follow_play_audio_uuid.to_s.length > 50
|
183
205
|
return false if !@voicemail_mailbox_id.nil? && @voicemail_mailbox_id.to_s.length > 50
|
206
|
+
voicemail_mailbox_type_validator = EnumAttributeValidator.new('String', ['agent', 'shared'])
|
207
|
+
return false unless voicemail_mailbox_type_validator.valid?(@voicemail_mailbox_type)
|
184
208
|
return false if !@voicemail_mailbox_type.nil? && @voicemail_mailbox_type.to_s.length > 50
|
185
209
|
return false if !@voicemail_prompt_play_audio_uuid.nil? && @voicemail_prompt_play_audio_uuid.to_s.length > 50
|
186
210
|
return false if !@voicemail_say_voice.nil? && @voicemail_say_voice.to_s.length > 50
|
@@ -237,13 +261,13 @@ module UltracartClient
|
|
237
261
|
@voicemail_mailbox_id = voicemail_mailbox_id
|
238
262
|
end
|
239
263
|
|
240
|
-
# Custom attribute writer method
|
241
|
-
# @param [Object] voicemail_mailbox_type
|
264
|
+
# Custom attribute writer method checking allowed values (enum).
|
265
|
+
# @param [Object] voicemail_mailbox_type Object to be assigned
|
242
266
|
def voicemail_mailbox_type=(voicemail_mailbox_type)
|
243
|
-
|
244
|
-
|
267
|
+
validator = EnumAttributeValidator.new('String', ['agent', 'shared'])
|
268
|
+
unless validator.valid?(voicemail_mailbox_type)
|
269
|
+
fail ArgumentError, 'invalid value for "voicemail_mailbox_type", must be one of #{validator.allowable_values}.'
|
245
270
|
end
|
246
|
-
|
247
271
|
@voicemail_mailbox_type = voicemail_mailbox_type
|
248
272
|
end
|
249
273
|
|
@@ -31,7 +31,7 @@ module UltracartClient
|
|
31
31
|
:'error' => :'error',
|
32
32
|
:'metadata' => :'metadata',
|
33
33
|
:'success' => :'success',
|
34
|
-
:'voicemail_mailbox' => :'
|
34
|
+
:'voicemail_mailbox' => :'voicemail_mailbox',
|
35
35
|
:'warning' => :'warning'
|
36
36
|
}
|
37
37
|
end
|
@@ -67,8 +67,8 @@ module UltracartClient
|
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
self.voicemail_mailbox = attributes[:'
|
70
|
+
if attributes.has_key?(:'voicemail_mailbox')
|
71
|
+
self.voicemail_mailbox = attributes[:'voicemail_mailbox']
|
72
72
|
end
|
73
73
|
|
74
74
|
if attributes.has_key?(:'warning')
|