ultracart_api 4.1.39 → 4.1.41

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.
@@ -9,9 +9,11 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
9
9
  | [**delete_conversation_canned_message**](ConversationApi.md#delete_conversation_canned_message) | **DELETE** /conversation/canned_messages/{conversation_canned_message_oid} | Delete a conversation canned message |
10
10
  | [**delete_department**](ConversationApi.md#delete_department) | **DELETE** /conversation/departments/{conversation_department_oid} | Delete a conversation department |
11
11
  | [**delete_engagement**](ConversationApi.md#delete_engagement) | **DELETE** /conversation/engagements/{conversation_engagement_oid} | Delete a conversation engagement |
12
+ | [**delete_pbx_address**](ConversationApi.md#delete_pbx_address) | **DELETE** /conversation/pbx/address/{conversationPbxAddressUuid} | Delete pbx address |
12
13
  | [**delete_pbx_agent_voicemail**](ConversationApi.md#delete_pbx_agent_voicemail) | **DELETE** /conversation/pbx/agent/voicemails/{recording_sid} | Delete Agent Voicemail |
13
14
  | [**delete_pbx_audio**](ConversationApi.md#delete_pbx_audio) | **DELETE** /conversation/pbx/audio/{conversationPbxAudioUuid} | Delete pbx audio |
14
15
  | [**delete_pbx_menu**](ConversationApi.md#delete_pbx_menu) | **DELETE** /conversation/pbx/menu/{conversationPbxMenuUuid} | Delete pbx menu |
16
+ | [**delete_pbx_phone_number**](ConversationApi.md#delete_pbx_phone_number) | **DELETE** /conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid} | Delete pbx phoneNumber |
15
17
  | [**delete_pbx_queue**](ConversationApi.md#delete_pbx_queue) | **DELETE** /conversation/pbx/queue/{conversationPbxQueueUuid} | Delete pbx queue |
16
18
  | [**delete_pbx_queue_voicemail**](ConversationApi.md#delete_pbx_queue_voicemail) | **DELETE** /conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid} | Delete Queue Voicemail |
17
19
  | [**delete_pbx_time_based**](ConversationApi.md#delete_pbx_time_based) | **DELETE** /conversation/pbx/time_based/{conversationPbxTimeBasedUuid} | Delete pbx timeBased |
@@ -43,6 +45,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
43
45
  | [**get_conversations_autocomplete**](ConversationApi.md#get_conversations_autocomplete) | **POST** /conversation/conversations/autocomplete | Retrieve a list of matching terms for a search field |
44
46
  | [**get_conversations_search**](ConversationApi.md#get_conversations_search) | **POST** /conversation/conversations/search | Search conversations |
45
47
  | [**get_locations_for_engagement**](ConversationApi.md#get_locations_for_engagement) | **POST** /conversation/locations | Get location data for engagement configuration |
48
+ | [**get_pbx_address**](ConversationApi.md#get_pbx_address) | **GET** /conversation/pbx/address/{conversationPbxAddressUuid} | Get pbx address |
49
+ | [**get_pbx_addresses**](ConversationApi.md#get_pbx_addresses) | **GET** /conversation/pbx/address | Get pbx addresses |
46
50
  | [**get_pbx_agent**](ConversationApi.md#get_pbx_agent) | **GET** /conversation/pbx/agent/{conversationPbxAgentUuid} | Get pbx agent |
47
51
  | [**get_pbx_agent_voicemail**](ConversationApi.md#get_pbx_agent_voicemail) | **GET** /conversation/pbx/agent/voicemails/{recording_sid} | Get Agent Voicemail |
48
52
  | [**get_pbx_agent_voicemails**](ConversationApi.md#get_pbx_agent_voicemails) | **GET** /conversation/pbx/agent/voicemails | Get Agent Voicemails |
@@ -71,6 +75,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
71
75
  | [**insert_conversation_canned_message**](ConversationApi.md#insert_conversation_canned_message) | **POST** /conversation/canned_messages | Insert a canned message |
72
76
  | [**insert_conversation_department**](ConversationApi.md#insert_conversation_department) | **POST** /conversation/departments | Insert a department |
73
77
  | [**insert_conversation_engagement**](ConversationApi.md#insert_conversation_engagement) | **POST** /conversation/engagements | Insert a engagement |
78
+ | [**insert_pbx_address**](ConversationApi.md#insert_pbx_address) | **POST** /conversation/pbx/address | Insert pbx address |
74
79
  | [**insert_pbx_audio**](ConversationApi.md#insert_pbx_audio) | **POST** /conversation/pbx/audio | Insert pbx audio |
75
80
  | [**insert_pbx_menu**](ConversationApi.md#insert_pbx_menu) | **POST** /conversation/pbx/menu | Insert pbx menu |
76
81
  | [**insert_pbx_queue**](ConversationApi.md#insert_pbx_queue) | **POST** /conversation/pbx/queue | Insert pbx queue |
@@ -82,8 +87,11 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
82
87
  | [**listened_pbx_agent_voicemail**](ConversationApi.md#listened_pbx_agent_voicemail) | **GET** /conversation/pbx/agent/voicemails/{recording_sid}/listened | Listened Agent Voicemail |
83
88
  | [**listened_pbx_queue_voicemail**](ConversationApi.md#listened_pbx_queue_voicemail) | **GET** /conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}/listened | Listened Queue Voicemail |
84
89
  | [**mark_read_conversation**](ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read |
90
+ | [**protect_pbx_phone_number**](ConversationApi.md#protect_pbx_phone_number) | **PUT** /conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}/protect | Protect pbx phoneNumber from deletion |
91
+ | [**purchase_pbx_phone_number**](ConversationApi.md#purchase_pbx_phone_number) | **POST** /conversation/pbx/phone_number | Purchase pbx phone number |
85
92
  | [**reset_conversation_pbx_queue_statistics**](ConversationApi.md#reset_conversation_pbx_queue_statistics) | **POST** /conversation/pbx/queues/{queue_uuid}/reset_statistics | reset statistics within the queue |
86
93
  | [**search_conversation_canned_messages**](ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code |
94
+ | [**search_pbx_available_phone_numbers**](ConversationApi.md#search_pbx_available_phone_numbers) | **GET** /conversation/pbx/phone_number/search | Search for available phone numbers |
87
95
  | [**sms_unsubscribe_conversation**](ConversationApi.md#sms_unsubscribe_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/sms_unsubscribe | Unsubscribe any SMS participants in this conversation |
88
96
  | [**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation |
89
97
  | [**update_agent_profile**](ConversationApi.md#update_agent_profile) | **PUT** /conversation/agent/profile | Update agent profile |
@@ -92,6 +100,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
92
100
  | [**update_conversation_department**](ConversationApi.md#update_conversation_department) | **PUT** /conversation/departments/{conversation_department_oid} | Update a department |
93
101
  | [**update_conversation_engagement**](ConversationApi.md#update_conversation_engagement) | **PUT** /conversation/engagements/{conversation_engagement_oid} | Update a engagement |
94
102
  | [**update_conversation_webchat_queue_status**](ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue |
103
+ | [**update_pbx_address**](ConversationApi.md#update_pbx_address) | **PUT** /conversation/pbx/address/{conversationPbxAddressUuid} | Update pbx address |
95
104
  | [**update_pbx_agent**](ConversationApi.md#update_pbx_agent) | **PUT** /conversation/pbx/agent/{conversationPbxAgentUuid} | Update pbx agent |
96
105
  | [**update_pbx_audio**](ConversationApi.md#update_pbx_audio) | **PUT** /conversation/pbx/audio/{conversationPbxAudioUuid} | Update pbx audio |
97
106
  | [**update_pbx_menu**](ConversationApi.md#update_pbx_menu) | **PUT** /conversation/pbx/menu/{conversationPbxMenuUuid} | Update pbx menu |
@@ -374,6 +383,59 @@ nil (empty response body)
374
383
  - **Accept**: application/json
375
384
 
376
385
 
386
+ ## delete_pbx_address
387
+
388
+ > <ConversationPbxAddressResponse> delete_pbx_address(conversation_pbx_address_uuid)
389
+
390
+ Delete pbx address
391
+
392
+ Delete a pbx address
393
+
394
+
395
+ ### Examples
396
+
397
+
398
+ (No example for this operation).
399
+
400
+
401
+ #### Using the delete_pbx_address_with_http_info variant
402
+
403
+ This returns an Array which contains the response data, status code and headers.
404
+
405
+ > <Array(<ConversationPbxAddressResponse>, Integer, Hash)> delete_pbx_address_with_http_info(conversation_pbx_address_uuid)
406
+
407
+ ```ruby
408
+ begin
409
+ # Delete pbx address
410
+ data, status_code, headers = api_instance.delete_pbx_address_with_http_info(conversation_pbx_address_uuid)
411
+ p status_code # => 2xx
412
+ p headers # => { ... }
413
+ p data # => <ConversationPbxAddressResponse>
414
+ rescue UltracartClient::ApiError => e
415
+ puts "Error when calling ConversationApi->delete_pbx_address_with_http_info: #{e}"
416
+ end
417
+ ```
418
+
419
+ ### Parameters
420
+
421
+ | Name | Type | Description | Notes |
422
+ | ---- | ---- | ----------- | ----- |
423
+ | **conversation_pbx_address_uuid** | **String** | | |
424
+
425
+ ### Return type
426
+
427
+ [**ConversationPbxAddressResponse**](ConversationPbxAddressResponse.md)
428
+
429
+ ### Authorization
430
+
431
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
432
+
433
+ ### HTTP request headers
434
+
435
+ - **Content-Type**: Not defined
436
+ - **Accept**: application/json
437
+
438
+
377
439
  ## delete_pbx_agent_voicemail
378
440
 
379
441
  > delete_pbx_agent_voicemail(recording_sid)
@@ -536,6 +598,60 @@ end
536
598
  - **Accept**: application/json
537
599
 
538
600
 
601
+ ## delete_pbx_phone_number
602
+
603
+ > delete_pbx_phone_number(conversation_pbx_phone_number_uuid)
604
+
605
+ Delete pbx phoneNumber
606
+
607
+ Delete a pbx phoneNumber. Only works if deletion_protected is false.
608
+
609
+
610
+ ### Examples
611
+
612
+ ```ruby
613
+ # Internal API. No samples are provided as merchants will never need this api method
614
+ ```
615
+
616
+
617
+ #### Using the delete_pbx_phone_number_with_http_info variant
618
+
619
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
620
+
621
+ > <Array(nil, Integer, Hash)> delete_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid)
622
+
623
+ ```ruby
624
+ begin
625
+ # Delete pbx phoneNumber
626
+ data, status_code, headers = api_instance.delete_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid)
627
+ p status_code # => 2xx
628
+ p headers # => { ... }
629
+ p data # => nil
630
+ rescue UltracartClient::ApiError => e
631
+ puts "Error when calling ConversationApi->delete_pbx_phone_number_with_http_info: #{e}"
632
+ end
633
+ ```
634
+
635
+ ### Parameters
636
+
637
+ | Name | Type | Description | Notes |
638
+ | ---- | ---- | ----------- | ----- |
639
+ | **conversation_pbx_phone_number_uuid** | **String** | | |
640
+
641
+ ### Return type
642
+
643
+ nil (empty response body)
644
+
645
+ ### Authorization
646
+
647
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
648
+
649
+ ### HTTP request headers
650
+
651
+ - **Content-Type**: Not defined
652
+ - **Accept**: application/json
653
+
654
+
539
655
  ## delete_pbx_queue
540
656
 
541
657
  > <ConversationPbxQueueResponse> delete_pbx_queue(conversation_pbx_queue_uuid)
@@ -2192,6 +2308,110 @@ This endpoint does not need any parameter.
2192
2308
  - **Accept**: application/json
2193
2309
 
2194
2310
 
2311
+ ## get_pbx_address
2312
+
2313
+ > <ConversationPbxAddressResponse> get_pbx_address(conversation_pbx_address_uuid)
2314
+
2315
+ Get pbx address
2316
+
2317
+ Retrieve a pbx address
2318
+
2319
+
2320
+ ### Examples
2321
+
2322
+
2323
+ (No example for this operation).
2324
+
2325
+
2326
+ #### Using the get_pbx_address_with_http_info variant
2327
+
2328
+ This returns an Array which contains the response data, status code and headers.
2329
+
2330
+ > <Array(<ConversationPbxAddressResponse>, Integer, Hash)> get_pbx_address_with_http_info(conversation_pbx_address_uuid)
2331
+
2332
+ ```ruby
2333
+ begin
2334
+ # Get pbx address
2335
+ data, status_code, headers = api_instance.get_pbx_address_with_http_info(conversation_pbx_address_uuid)
2336
+ p status_code # => 2xx
2337
+ p headers # => { ... }
2338
+ p data # => <ConversationPbxAddressResponse>
2339
+ rescue UltracartClient::ApiError => e
2340
+ puts "Error when calling ConversationApi->get_pbx_address_with_http_info: #{e}"
2341
+ end
2342
+ ```
2343
+
2344
+ ### Parameters
2345
+
2346
+ | Name | Type | Description | Notes |
2347
+ | ---- | ---- | ----------- | ----- |
2348
+ | **conversation_pbx_address_uuid** | **String** | | |
2349
+
2350
+ ### Return type
2351
+
2352
+ [**ConversationPbxAddressResponse**](ConversationPbxAddressResponse.md)
2353
+
2354
+ ### Authorization
2355
+
2356
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2357
+
2358
+ ### HTTP request headers
2359
+
2360
+ - **Content-Type**: Not defined
2361
+ - **Accept**: application/json
2362
+
2363
+
2364
+ ## get_pbx_addresses
2365
+
2366
+ > <ConversationPbxAddressesResponse> get_pbx_addresses
2367
+
2368
+ Get pbx addresses
2369
+
2370
+ Retrieve pbx addresses
2371
+
2372
+
2373
+ ### Examples
2374
+
2375
+
2376
+ (No example for this operation).
2377
+
2378
+
2379
+ #### Using the get_pbx_addresses_with_http_info variant
2380
+
2381
+ This returns an Array which contains the response data, status code and headers.
2382
+
2383
+ > <Array(<ConversationPbxAddressesResponse>, Integer, Hash)> get_pbx_addresses_with_http_info
2384
+
2385
+ ```ruby
2386
+ begin
2387
+ # Get pbx addresses
2388
+ data, status_code, headers = api_instance.get_pbx_addresses_with_http_info
2389
+ p status_code # => 2xx
2390
+ p headers # => { ... }
2391
+ p data # => <ConversationPbxAddressesResponse>
2392
+ rescue UltracartClient::ApiError => e
2393
+ puts "Error when calling ConversationApi->get_pbx_addresses_with_http_info: #{e}"
2394
+ end
2395
+ ```
2396
+
2397
+ ### Parameters
2398
+
2399
+ This endpoint does not need any parameter.
2400
+
2401
+ ### Return type
2402
+
2403
+ [**ConversationPbxAddressesResponse**](ConversationPbxAddressesResponse.md)
2404
+
2405
+ ### Authorization
2406
+
2407
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2408
+
2409
+ ### HTTP request headers
2410
+
2411
+ - **Content-Type**: Not defined
2412
+ - **Accept**: application/json
2413
+
2414
+
2195
2415
  ## get_pbx_agent
2196
2416
 
2197
2417
  > <ConversationPbxAgentResponse> get_pbx_agent(conversation_pbx_agent_uuid)
@@ -3681,6 +3901,59 @@ end
3681
3901
  - **Accept**: application/json
3682
3902
 
3683
3903
 
3904
+ ## insert_pbx_address
3905
+
3906
+ > <ConversationPbxAddressResponse> insert_pbx_address(pbx_address)
3907
+
3908
+ Insert pbx address
3909
+
3910
+ Insert a pbx address
3911
+
3912
+
3913
+ ### Examples
3914
+
3915
+
3916
+ (No example for this operation).
3917
+
3918
+
3919
+ #### Using the insert_pbx_address_with_http_info variant
3920
+
3921
+ This returns an Array which contains the response data, status code and headers.
3922
+
3923
+ > <Array(<ConversationPbxAddressResponse>, Integer, Hash)> insert_pbx_address_with_http_info(pbx_address)
3924
+
3925
+ ```ruby
3926
+ begin
3927
+ # Insert pbx address
3928
+ data, status_code, headers = api_instance.insert_pbx_address_with_http_info(pbx_address)
3929
+ p status_code # => 2xx
3930
+ p headers # => { ... }
3931
+ p data # => <ConversationPbxAddressResponse>
3932
+ rescue UltracartClient::ApiError => e
3933
+ puts "Error when calling ConversationApi->insert_pbx_address_with_http_info: #{e}"
3934
+ end
3935
+ ```
3936
+
3937
+ ### Parameters
3938
+
3939
+ | Name | Type | Description | Notes |
3940
+ | ---- | ---- | ----------- | ----- |
3941
+ | **pbx_address** | [**ConversationPbxAddress**](ConversationPbxAddress.md) | Pbx Address | |
3942
+
3943
+ ### Return type
3944
+
3945
+ [**ConversationPbxAddressResponse**](ConversationPbxAddressResponse.md)
3946
+
3947
+ ### Authorization
3948
+
3949
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
3950
+
3951
+ ### HTTP request headers
3952
+
3953
+ - **Content-Type**: application/json
3954
+ - **Accept**: application/json
3955
+
3956
+
3684
3957
  ## insert_pbx_audio
3685
3958
 
3686
3959
  > <ConversationPbxAudioResponse> insert_pbx_audio(pbx_audio)
@@ -4277,6 +4550,112 @@ nil (empty response body)
4277
4550
  - **Accept**: application/json
4278
4551
 
4279
4552
 
4553
+ ## protect_pbx_phone_number
4554
+
4555
+ > <ConversationPbxPhoneNumberResponse> protect_pbx_phone_number(conversation_pbx_phone_number_uuid)
4556
+
4557
+ Protect pbx phoneNumber from deletion
4558
+
4559
+ Protect a pbx phoneNumber from deletion. This is a one-way operation and cannot be undone through the API.
4560
+
4561
+
4562
+ ### Examples
4563
+
4564
+
4565
+ (No example for this operation).
4566
+
4567
+
4568
+ #### Using the protect_pbx_phone_number_with_http_info variant
4569
+
4570
+ This returns an Array which contains the response data, status code and headers.
4571
+
4572
+ > <Array(<ConversationPbxPhoneNumberResponse>, Integer, Hash)> protect_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid)
4573
+
4574
+ ```ruby
4575
+ begin
4576
+ # Protect pbx phoneNumber from deletion
4577
+ data, status_code, headers = api_instance.protect_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid)
4578
+ p status_code # => 2xx
4579
+ p headers # => { ... }
4580
+ p data # => <ConversationPbxPhoneNumberResponse>
4581
+ rescue UltracartClient::ApiError => e
4582
+ puts "Error when calling ConversationApi->protect_pbx_phone_number_with_http_info: #{e}"
4583
+ end
4584
+ ```
4585
+
4586
+ ### Parameters
4587
+
4588
+ | Name | Type | Description | Notes |
4589
+ | ---- | ---- | ----------- | ----- |
4590
+ | **conversation_pbx_phone_number_uuid** | **String** | | |
4591
+
4592
+ ### Return type
4593
+
4594
+ [**ConversationPbxPhoneNumberResponse**](ConversationPbxPhoneNumberResponse.md)
4595
+
4596
+ ### Authorization
4597
+
4598
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
4599
+
4600
+ ### HTTP request headers
4601
+
4602
+ - **Content-Type**: Not defined
4603
+ - **Accept**: application/json
4604
+
4605
+
4606
+ ## purchase_pbx_phone_number
4607
+
4608
+ > <ConversationPbxPhoneNumberResponse> purchase_pbx_phone_number(phone_number_purchase_request)
4609
+
4610
+ Purchase pbx phone number
4611
+
4612
+ Purchase a phone number from Twilio. The phone_number must be from the available phone number search results.
4613
+
4614
+
4615
+ ### Examples
4616
+
4617
+
4618
+ (No example for this operation).
4619
+
4620
+
4621
+ #### Using the purchase_pbx_phone_number_with_http_info variant
4622
+
4623
+ This returns an Array which contains the response data, status code and headers.
4624
+
4625
+ > <Array(<ConversationPbxPhoneNumberResponse>, Integer, Hash)> purchase_pbx_phone_number_with_http_info(phone_number_purchase_request)
4626
+
4627
+ ```ruby
4628
+ begin
4629
+ # Purchase pbx phone number
4630
+ data, status_code, headers = api_instance.purchase_pbx_phone_number_with_http_info(phone_number_purchase_request)
4631
+ p status_code # => 2xx
4632
+ p headers # => { ... }
4633
+ p data # => <ConversationPbxPhoneNumberResponse>
4634
+ rescue UltracartClient::ApiError => e
4635
+ puts "Error when calling ConversationApi->purchase_pbx_phone_number_with_http_info: #{e}"
4636
+ end
4637
+ ```
4638
+
4639
+ ### Parameters
4640
+
4641
+ | Name | Type | Description | Notes |
4642
+ | ---- | ---- | ----------- | ----- |
4643
+ | **phone_number_purchase_request** | [**ConversationPbxPhoneNumberPurchaseRequest**](ConversationPbxPhoneNumberPurchaseRequest.md) | Phone number purchase request | |
4644
+
4645
+ ### Return type
4646
+
4647
+ [**ConversationPbxPhoneNumberResponse**](ConversationPbxPhoneNumberResponse.md)
4648
+
4649
+ ### Authorization
4650
+
4651
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
4652
+
4653
+ ### HTTP request headers
4654
+
4655
+ - **Content-Type**: application/json
4656
+ - **Accept**: application/json
4657
+
4658
+
4280
4659
  ## reset_conversation_pbx_queue_statistics
4281
4660
 
4282
4661
  > reset_conversation_pbx_queue_statistics(queue_uuid)
@@ -4385,6 +4764,65 @@ end
4385
4764
  - **Accept**: application/json
4386
4765
 
4387
4766
 
4767
+ ## search_pbx_available_phone_numbers
4768
+
4769
+ > <ConversationPbxAvailablePhoneNumbersResponse> search_pbx_available_phone_numbers(country, opts)
4770
+
4771
+ Search for available phone numbers
4772
+
4773
+ Search for available phone numbers from Twilio that can be purchased
4774
+
4775
+
4776
+ ### Examples
4777
+
4778
+
4779
+ (No example for this operation).
4780
+
4781
+
4782
+ #### Using the search_pbx_available_phone_numbers_with_http_info variant
4783
+
4784
+ This returns an Array which contains the response data, status code and headers.
4785
+
4786
+ > <Array(<ConversationPbxAvailablePhoneNumbersResponse>, Integer, Hash)> search_pbx_available_phone_numbers_with_http_info(country, opts)
4787
+
4788
+ ```ruby
4789
+ begin
4790
+ # Search for available phone numbers
4791
+ data, status_code, headers = api_instance.search_pbx_available_phone_numbers_with_http_info(country, opts)
4792
+ p status_code # => 2xx
4793
+ p headers # => { ... }
4794
+ p data # => <ConversationPbxAvailablePhoneNumbersResponse>
4795
+ rescue UltracartClient::ApiError => e
4796
+ puts "Error when calling ConversationApi->search_pbx_available_phone_numbers_with_http_info: #{e}"
4797
+ end
4798
+ ```
4799
+
4800
+ ### Parameters
4801
+
4802
+ | Name | Type | Description | Notes |
4803
+ | ---- | ---- | ----------- | ----- |
4804
+ | **country** | **String** | ISO country code (e.g., US, CA, GB) | |
4805
+ | **area_code** | **String** | Area code filter (e.g., 614) | [optional] |
4806
+ | **contains** | **String** | Pattern to match (e.g., 555, *PIZZA) | [optional] |
4807
+ | **sms_enabled** | **Boolean** | Filter for SMS capability | [optional] |
4808
+ | **voice_enabled** | **Boolean** | Filter for voice capability | [optional] |
4809
+ | **type** | **String** | Phone number type | [optional] |
4810
+ | **limit** | **Integer** | Max results (default 20, max 100) | [optional] |
4811
+
4812
+ ### Return type
4813
+
4814
+ [**ConversationPbxAvailablePhoneNumbersResponse**](ConversationPbxAvailablePhoneNumbersResponse.md)
4815
+
4816
+ ### Authorization
4817
+
4818
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
4819
+
4820
+ ### HTTP request headers
4821
+
4822
+ - **Content-Type**: Not defined
4823
+ - **Accept**: application/json
4824
+
4825
+
4388
4826
  ## sms_unsubscribe_conversation
4389
4827
 
4390
4828
  > sms_unsubscribe_conversation(conversation_uuid)
@@ -4822,6 +5260,60 @@ nil (empty response body)
4822
5260
  - **Accept**: application/json
4823
5261
 
4824
5262
 
5263
+ ## update_pbx_address
5264
+
5265
+ > <ConversationPbxAddressResponse> update_pbx_address(conversation_pbx_address_uuid, pbx_address)
5266
+
5267
+ Update pbx address
5268
+
5269
+ Update a pbx address
5270
+
5271
+
5272
+ ### Examples
5273
+
5274
+
5275
+ (No example for this operation).
5276
+
5277
+
5278
+ #### Using the update_pbx_address_with_http_info variant
5279
+
5280
+ This returns an Array which contains the response data, status code and headers.
5281
+
5282
+ > <Array(<ConversationPbxAddressResponse>, Integer, Hash)> update_pbx_address_with_http_info(conversation_pbx_address_uuid, pbx_address)
5283
+
5284
+ ```ruby
5285
+ begin
5286
+ # Update pbx address
5287
+ data, status_code, headers = api_instance.update_pbx_address_with_http_info(conversation_pbx_address_uuid, pbx_address)
5288
+ p status_code # => 2xx
5289
+ p headers # => { ... }
5290
+ p data # => <ConversationPbxAddressResponse>
5291
+ rescue UltracartClient::ApiError => e
5292
+ puts "Error when calling ConversationApi->update_pbx_address_with_http_info: #{e}"
5293
+ end
5294
+ ```
5295
+
5296
+ ### Parameters
5297
+
5298
+ | Name | Type | Description | Notes |
5299
+ | ---- | ---- | ----------- | ----- |
5300
+ | **conversation_pbx_address_uuid** | **String** | | |
5301
+ | **pbx_address** | [**ConversationPbxAddress**](ConversationPbxAddress.md) | Pbx Address | |
5302
+
5303
+ ### Return type
5304
+
5305
+ [**ConversationPbxAddressResponse**](ConversationPbxAddressResponse.md)
5306
+
5307
+ ### Authorization
5308
+
5309
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
5310
+
5311
+ ### HTTP request headers
5312
+
5313
+ - **Content-Type**: application/json
5314
+ - **Accept**: application/json
5315
+
5316
+
4825
5317
  ## update_pbx_agent
4826
5318
 
4827
5319
  > <ConversationPbxAgentResponse> update_pbx_agent(conversation_pbx_agent_uuid, pbx_agent)
@@ -0,0 +1,40 @@
1
+ # UltracartClient::ConversationPbxAddress
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address_sid** | **String** | Twilio Address SID | [optional] |
8
+ | **city** | **String** | City | [optional] |
9
+ | **conversation_pbx_address_uuid** | **String** | Conversation Pbx Address UUID | [optional] |
10
+ | **country_code** | **String** | ISO country code (2 characters) | [optional] |
11
+ | **customer_name** | **String** | Customer name | [optional] |
12
+ | **friendly_name** | **String** | Friendly name for the address | [optional] |
13
+ | **merchant_id** | **String** | Merchant Id | [optional] |
14
+ | **postal_code** | **String** | Postal code | [optional] |
15
+ | **region** | **String** | State/Province/Region | [optional] |
16
+ | **street** | **String** | Street address | [optional] |
17
+ | **validated** | **Boolean** | Whether the address has been validated by Twilio | [optional] |
18
+ | **verified** | **Boolean** | Whether the address has been verified by Twilio | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'ultracart_api'
24
+
25
+ instance = UltracartClient::ConversationPbxAddress.new(
26
+ address_sid: null,
27
+ city: null,
28
+ conversation_pbx_address_uuid: null,
29
+ country_code: null,
30
+ customer_name: null,
31
+ friendly_name: null,
32
+ merchant_id: null,
33
+ postal_code: null,
34
+ region: null,
35
+ street: null,
36
+ validated: null,
37
+ verified: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::ConversationPbxAddressResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address** | [**ConversationPbxAddress**](ConversationPbxAddress.md) | | [optional] |
8
+ | **error** | [**Error**](Error.md) | | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::ConversationPbxAddressResponse.new(
19
+ address: null,
20
+ error: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::ConversationPbxAddressesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **addresses** | [**Array&lt;ConversationPbxAddress&gt;**](ConversationPbxAddress.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::ConversationPbxAddressesResponse.new(
15
+ addresses: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,34 @@
1
+ # UltracartClient::ConversationPbxAvailablePhoneNumber
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address_requirements** | **String** | Address requirements | [optional] |
8
+ | **country** | **String** | ISO country code | [optional] |
9
+ | **friendly_name** | **String** | Friendly formatted phone number | [optional] |
10
+ | **locality** | **String** | City/Locality | [optional] |
11
+ | **mms** | **Boolean** | MMS capability | [optional] |
12
+ | **phone_number** | **String** | Phone number in E.164 format | [optional] |
13
+ | **region** | **String** | State/Province/Region | [optional] |
14
+ | **sms** | **Boolean** | SMS capability | [optional] |
15
+ | **voice** | **Boolean** | Voice capability | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ultracart_api'
21
+
22
+ instance = UltracartClient::ConversationPbxAvailablePhoneNumber.new(
23
+ address_requirements: null,
24
+ country: null,
25
+ friendly_name: null,
26
+ locality: null,
27
+ mms: null,
28
+ phone_number: null,
29
+ region: null,
30
+ sms: null,
31
+ voice: null
32
+ )
33
+ ```
34
+