ultracart_api 4.0.211 → 4.0.212
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/docs/AutoOrderApi.md +78 -0
- data/docs/AutoOrderConsolidate.md +18 -0
- data/docs/ConversationApi.md +4 -4
- data/docs/ConversationPbxAudioUploadUrl.md +20 -0
- data/docs/ConversationPbxAudioUploadUrlResponse.md +26 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +2 -2
- data/lib/ultracart_api/api/auto_order_api.rb +78 -0
- data/lib/ultracart_api/api/conversation_api.rb +3 -3
- data/lib/ultracart_api/models/auto_order_consolidate.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb +228 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb +256 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb +9 -7
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e7e712f4270c55ed9409d21270b33752d8ab0b833ddaf6be214b68d48fc34b9
|
4
|
+
data.tar.gz: 3064fb944241341c889088914f04c268f6d8e4d3b6df5cbafd9e00443b645267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d07c348fb937c6e0ae64950ad79e9a25372a5b8dc7e4e8cc52fc3be67d755e52704fab99995286314fe19af52f712659ec0cdd1fcd07c97a26c4348bcac30778
|
7
|
+
data.tar.gz: 9b768fde871d5a5931858ee672448c074f36084874697868b2f5397216e11b96b8e3db14398062c8de589100347393f4bde9e241f40e9b75540ddb3e644d34e0
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.212
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.212.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.212.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.212'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -94,6 +94,7 @@ Class | Method | HTTP request | Description
|
|
94
94
|
------------ | ------------- | ------------- | -------------
|
95
95
|
*UltracartClient::AffiliateApi* | [**get_clicks_by_query**](docs/AffiliateApi.md#get_clicks_by_query) | **POST** /affiliate/clicks/query | Retrieve clicks
|
96
96
|
*UltracartClient::AffiliateApi* | [**get_ledgers_by_query**](docs/AffiliateApi.md#get_ledgers_by_query) | **POST** /affiliate/ledgers/query | Retrieve ledger entries
|
97
|
+
*UltracartClient::AutoOrderApi* | [**consolidate_auto_orders**](docs/AutoOrderApi.md#consolidate_auto_orders) | **PUT** /auto_order/auto_orders/{auto_order_oid}/consolidate | Consolidates multiple auto orders
|
97
98
|
*UltracartClient::AutoOrderApi* | [**establish_auto_order_by_reference_order_id**](docs/AutoOrderApi.md#establish_auto_order_by_reference_order_id) | **POST** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Establish an auto order by referencing a regular order id
|
98
99
|
*UltracartClient::AutoOrderApi* | [**get_auto_order**](docs/AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order by oid
|
99
100
|
*UltracartClient::AutoOrderApi* | [**get_auto_order_by_code**](docs/AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order by code
|
@@ -613,6 +614,7 @@ Class | Method | HTTP request | Description
|
|
613
614
|
- [UltracartClient::AutoOrder](docs/AutoOrder.md)
|
614
615
|
- [UltracartClient::AutoOrderAddonItem](docs/AutoOrderAddonItem.md)
|
615
616
|
- [UltracartClient::AutoOrderAddonItemOption](docs/AutoOrderAddonItemOption.md)
|
617
|
+
- [UltracartClient::AutoOrderConsolidate](docs/AutoOrderConsolidate.md)
|
616
618
|
- [UltracartClient::AutoOrderItem](docs/AutoOrderItem.md)
|
617
619
|
- [UltracartClient::AutoOrderItemFutureSchedule](docs/AutoOrderItemFutureSchedule.md)
|
618
620
|
- [UltracartClient::AutoOrderItemOption](docs/AutoOrderItemOption.md)
|
@@ -761,6 +763,8 @@ Class | Method | HTTP request | Description
|
|
761
763
|
- [UltracartClient::ConversationPbxAgentsResponse](docs/ConversationPbxAgentsResponse.md)
|
762
764
|
- [UltracartClient::ConversationPbxAudio](docs/ConversationPbxAudio.md)
|
763
765
|
- [UltracartClient::ConversationPbxAudioResponse](docs/ConversationPbxAudioResponse.md)
|
766
|
+
- [UltracartClient::ConversationPbxAudioUploadUrl](docs/ConversationPbxAudioUploadUrl.md)
|
767
|
+
- [UltracartClient::ConversationPbxAudioUploadUrlResponse](docs/ConversationPbxAudioUploadUrlResponse.md)
|
764
768
|
- [UltracartClient::ConversationPbxAudiosResponse](docs/ConversationPbxAudiosResponse.md)
|
765
769
|
- [UltracartClient::ConversationPbxCustomerSnapshotRequest](docs/ConversationPbxCustomerSnapshotRequest.md)
|
766
770
|
- [UltracartClient::ConversationPbxCustomerSnapshotResponse](docs/ConversationPbxCustomerSnapshotResponse.md)
|
@@ -1507,6 +1511,7 @@ Not every change is committed to every SDK.
|
|
1507
1511
|
|
1508
1512
|
| Version | Date | Comments |
|
1509
1513
|
| --: | :-: | --- |
|
1514
|
+
| 4.0.212 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
1510
1515
|
| 4.0.211 | 04/24/2024 | esp - add fields for external generation on email |
|
1511
1516
|
| 4.0.210 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
|
1512
1517
|
| 4.0.209 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
|
data/docs/AutoOrderApi.md
CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
+
| [**consolidate_auto_orders**](AutoOrderApi.md#consolidate_auto_orders) | **PUT** /auto_order/auto_orders/{auto_order_oid}/consolidate | Consolidates multiple auto orders |
|
7
8
|
| [**establish_auto_order_by_reference_order_id**](AutoOrderApi.md#establish_auto_order_by_reference_order_id) | **POST** /auto_order/auto_orders/reference_order_id/{reference_order_id} | Establish an auto order by referencing a regular order id |
|
8
9
|
| [**get_auto_order**](AutoOrderApi.md#get_auto_order) | **GET** /auto_order/auto_orders/{auto_order_oid} | Retrieve an auto order by oid |
|
9
10
|
| [**get_auto_order_by_code**](AutoOrderApi.md#get_auto_order_by_code) | **GET** /auto_order/auto_orders/code/{auto_order_code} | Retrieve an auto order by code |
|
@@ -15,6 +16,83 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
15
16
|
| [**update_auto_orders_batch**](AutoOrderApi.md#update_auto_orders_batch) | **PUT** /auto_order/auto_orders/batch | Update multiple auto orders |
|
16
17
|
|
17
18
|
|
19
|
+
## consolidate_auto_orders
|
20
|
+
|
21
|
+
> <AutoOrderResponse> consolidate_auto_orders(auto_order_oid, auto_order_consolidate, opts)
|
22
|
+
|
23
|
+
Consolidates multiple auto orders
|
24
|
+
|
25
|
+
Consolidates mutliple auto orders on the UltraCart account.
|
26
|
+
|
27
|
+
### Examples
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'time'
|
31
|
+
require 'ultracart_api'
|
32
|
+
require 'json'
|
33
|
+
require 'yaml'
|
34
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
35
|
+
|
36
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
37
|
+
# As such, this might not be the best way to use this object.
|
38
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
39
|
+
|
40
|
+
api = UltracartClient::AutoOrderApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
41
|
+
auto_order_oid = 56 # Integer | The auto order oid to consolidate into.
|
42
|
+
auto_order_consolidate = UltracartClient::AutoOrderConsolidate.new # AutoOrderConsolidate | Auto orders to consolidate
|
43
|
+
opts = {
|
44
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
45
|
+
}
|
46
|
+
|
47
|
+
begin
|
48
|
+
# Consolidates multiple auto orders
|
49
|
+
result = api_instance.consolidate_auto_orders(auto_order_oid, auto_order_consolidate, opts)
|
50
|
+
p result
|
51
|
+
rescue UltracartClient::ApiError => e
|
52
|
+
puts "Error when calling AutoOrderApi->consolidate_auto_orders: #{e}"
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
#### Using the consolidate_auto_orders_with_http_info variant
|
57
|
+
|
58
|
+
This returns an Array which contains the response data, status code and headers.
|
59
|
+
|
60
|
+
> <Array(<AutoOrderResponse>, Integer, Hash)> consolidate_auto_orders_with_http_info(auto_order_oid, auto_order_consolidate, opts)
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
begin
|
64
|
+
# Consolidates multiple auto orders
|
65
|
+
data, status_code, headers = api_instance.consolidate_auto_orders_with_http_info(auto_order_oid, auto_order_consolidate, opts)
|
66
|
+
p status_code # => 2xx
|
67
|
+
p headers # => { ... }
|
68
|
+
p data # => <AutoOrderResponse>
|
69
|
+
rescue UltracartClient::ApiError => e
|
70
|
+
puts "Error when calling AutoOrderApi->consolidate_auto_orders_with_http_info: #{e}"
|
71
|
+
end
|
72
|
+
```
|
73
|
+
|
74
|
+
### Parameters
|
75
|
+
|
76
|
+
| Name | Type | Description | Notes |
|
77
|
+
| ---- | ---- | ----------- | ----- |
|
78
|
+
| **auto_order_oid** | **Integer** | The auto order oid to consolidate into. | |
|
79
|
+
| **auto_order_consolidate** | [**AutoOrderConsolidate**](AutoOrderConsolidate.md) | Auto orders to consolidate | |
|
80
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
81
|
+
|
82
|
+
### Return type
|
83
|
+
|
84
|
+
[**AutoOrderResponse**](AutoOrderResponse.md)
|
85
|
+
|
86
|
+
### Authorization
|
87
|
+
|
88
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
89
|
+
|
90
|
+
### HTTP request headers
|
91
|
+
|
92
|
+
- **Content-Type**: application/json; charset=UTF-8
|
93
|
+
- **Accept**: application/json
|
94
|
+
|
95
|
+
|
18
96
|
## establish_auto_order_by_reference_order_id
|
19
97
|
|
20
98
|
> <AutoOrderResponse> establish_auto_order_by_reference_order_id(reference_order_id, opts)
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# UltracartClient::AutoOrderConsolidate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **source_auto_order_oids** | **Array<Integer>** | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'ultracart_api'
|
13
|
+
|
14
|
+
instance = UltracartClient::AutoOrderConsolidate.new(
|
15
|
+
source_auto_order_oids: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/ConversationApi.md
CHANGED
@@ -1854,7 +1854,7 @@ end
|
|
1854
1854
|
|
1855
1855
|
## get_conversation_pbx_audio_upload_url
|
1856
1856
|
|
1857
|
-
> <
|
1857
|
+
> <ConversationPbxAudioUploadUrlResponse> get_conversation_pbx_audio_upload_url(extension)
|
1858
1858
|
|
1859
1859
|
Get a pre-signed conversation multimedia upload URL
|
1860
1860
|
|
@@ -1889,7 +1889,7 @@ end
|
|
1889
1889
|
|
1890
1890
|
This returns an Array which contains the response data, status code and headers.
|
1891
1891
|
|
1892
|
-
> <Array(<
|
1892
|
+
> <Array(<ConversationPbxAudioUploadUrlResponse>, Integer, Hash)> get_conversation_pbx_audio_upload_url_with_http_info(extension)
|
1893
1893
|
|
1894
1894
|
```ruby
|
1895
1895
|
begin
|
@@ -1897,7 +1897,7 @@ begin
|
|
1897
1897
|
data, status_code, headers = api_instance.get_conversation_pbx_audio_upload_url_with_http_info(extension)
|
1898
1898
|
p status_code # => 2xx
|
1899
1899
|
p headers # => { ... }
|
1900
|
-
p data # => <
|
1900
|
+
p data # => <ConversationPbxAudioUploadUrlResponse>
|
1901
1901
|
rescue UltracartClient::ApiError => e
|
1902
1902
|
puts "Error when calling ConversationApi->get_conversation_pbx_audio_upload_url_with_http_info: #{e}"
|
1903
1903
|
end
|
@@ -1911,7 +1911,7 @@ end
|
|
1911
1911
|
|
1912
1912
|
### Return type
|
1913
1913
|
|
1914
|
-
[**
|
1914
|
+
[**ConversationPbxAudioUploadUrlResponse**](ConversationPbxAudioUploadUrlResponse.md)
|
1915
1915
|
|
1916
1916
|
### Authorization
|
1917
1917
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# UltracartClient::ConversationPbxAudioUploadUrl
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **key** | **String** | | [optional] |
|
8
|
+
| **url** | **String** | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'ultracart_api'
|
14
|
+
|
15
|
+
instance = UltracartClient::ConversationPbxAudioUploadUrl.new(
|
16
|
+
key: null,
|
17
|
+
url: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# UltracartClient::ConversationPbxAudioUploadUrlResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **conversation_pbx_audio_upload_url** | [**ConversationPbxAudioUploadUrl**](ConversationPbxAudioUploadUrl.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::ConversationPbxAudioUploadUrlResponse.new(
|
19
|
+
conversation_pbx_audio_upload_url: null,
|
20
|
+
error: null,
|
21
|
+
metadata: null,
|
22
|
+
success: null,
|
23
|
+
warning: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -5,7 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **auto_orders** | [**Array<AutoOrder>**](AutoOrder.md) | | [optional] |
|
8
|
-
| **
|
8
|
+
| **customers** | [**Array<Customer>**](Customer.md) | | [optional] |
|
9
9
|
| **error** | [**Error**](Error.md) | | [optional] |
|
10
10
|
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
11
11
|
| **orders** | [**Array<Order>**](Order.md) | | [optional] |
|
@@ -19,7 +19,7 @@ require 'ultracart_api'
|
|
19
19
|
|
20
20
|
instance = UltracartClient::ConversationPbxCustomerSnapshotResponse.new(
|
21
21
|
auto_orders: null,
|
22
|
-
|
22
|
+
customers: null,
|
23
23
|
error: null,
|
24
24
|
metadata: null,
|
25
25
|
orders: null,
|
@@ -32,6 +32,84 @@ module UltracartClient
|
|
32
32
|
UltracartClient::AutoOrderApi.new(api_client)
|
33
33
|
end
|
34
34
|
|
35
|
+
# Consolidates multiple auto orders
|
36
|
+
# Consolidates mutliple auto orders on the UltraCart account.
|
37
|
+
# @param auto_order_oid [Integer] The auto order oid to consolidate into.
|
38
|
+
# @param auto_order_consolidate [AutoOrderConsolidate] Auto orders to consolidate
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
41
|
+
# @return [AutoOrderResponse]
|
42
|
+
def consolidate_auto_orders(auto_order_oid, auto_order_consolidate, opts = {})
|
43
|
+
data, _status_code, _headers = consolidate_auto_orders_with_http_info(auto_order_oid, auto_order_consolidate, opts)
|
44
|
+
data
|
45
|
+
end
|
46
|
+
|
47
|
+
# Consolidates multiple auto orders
|
48
|
+
# Consolidates mutliple auto orders on the UltraCart account.
|
49
|
+
# @param auto_order_oid [Integer] The auto order oid to consolidate into.
|
50
|
+
# @param auto_order_consolidate [AutoOrderConsolidate] Auto orders to consolidate
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
|
53
|
+
# @return [Array<(AutoOrderResponse, Integer, Hash)>] AutoOrderResponse data, response status code and response headers
|
54
|
+
def consolidate_auto_orders_with_http_info(auto_order_oid, auto_order_consolidate, opts = {})
|
55
|
+
if @api_client.config.debugging
|
56
|
+
@api_client.config.logger.debug 'Calling API: AutoOrderApi.consolidate_auto_orders ...'
|
57
|
+
end
|
58
|
+
# verify the required parameter 'auto_order_oid' is set
|
59
|
+
if @api_client.config.client_side_validation && auto_order_oid.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'auto_order_oid' when calling AutoOrderApi.consolidate_auto_orders"
|
61
|
+
end
|
62
|
+
# verify the required parameter 'auto_order_consolidate' is set
|
63
|
+
if @api_client.config.client_side_validation && auto_order_consolidate.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'auto_order_consolidate' when calling AutoOrderApi.consolidate_auto_orders"
|
65
|
+
end
|
66
|
+
# resource path
|
67
|
+
local_var_path = '/auto_order/auto_orders/{auto_order_oid}/consolidate'.sub('{' + 'auto_order_oid' + '}', CGI.escape(auto_order_oid.to_s))
|
68
|
+
|
69
|
+
# query parameters
|
70
|
+
query_params = opts[:query_params] || {}
|
71
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = opts[:header_params] || {}
|
75
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
76
|
+
# HTTP header 'Accept' (if needed)
|
77
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
78
|
+
# HTTP header 'Content-Type'
|
79
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
80
|
+
if !content_type.nil?
|
81
|
+
header_params['Content-Type'] = content_type
|
82
|
+
end
|
83
|
+
|
84
|
+
# form parameters
|
85
|
+
form_params = opts[:form_params] || {}
|
86
|
+
|
87
|
+
# http body (model)
|
88
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auto_order_consolidate)
|
89
|
+
|
90
|
+
# return_type
|
91
|
+
return_type = opts[:debug_return_type] || 'AutoOrderResponse'
|
92
|
+
|
93
|
+
# auth_names
|
94
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
95
|
+
|
96
|
+
new_options = opts.merge(
|
97
|
+
:operation => :"AutoOrderApi.consolidate_auto_orders",
|
98
|
+
:header_params => header_params,
|
99
|
+
:query_params => query_params,
|
100
|
+
:form_params => form_params,
|
101
|
+
:body => post_body,
|
102
|
+
:auth_names => auth_names,
|
103
|
+
:return_type => return_type
|
104
|
+
)
|
105
|
+
|
106
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
107
|
+
if @api_client.config.debugging
|
108
|
+
@api_client.config.logger.debug "API called: AutoOrderApi#consolidate_auto_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
109
|
+
end
|
110
|
+
return data, status_code, headers
|
111
|
+
end
|
112
|
+
|
35
113
|
# Establish an auto order by referencing a regular order id
|
36
114
|
# Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
37
115
|
# @param reference_order_id [String] The order id to attach this auto order to
|
@@ -1612,7 +1612,7 @@ module UltracartClient
|
|
1612
1612
|
# Get a pre-signed conversation multimedia upload URL
|
1613
1613
|
# @param extension [String]
|
1614
1614
|
# @param [Hash] opts the optional parameters
|
1615
|
-
# @return [
|
1615
|
+
# @return [ConversationPbxAudioUploadUrlResponse]
|
1616
1616
|
def get_conversation_pbx_audio_upload_url(extension, opts = {})
|
1617
1617
|
data, _status_code, _headers = get_conversation_pbx_audio_upload_url_with_http_info(extension, opts)
|
1618
1618
|
data
|
@@ -1622,7 +1622,7 @@ module UltracartClient
|
|
1622
1622
|
# Get a pre-signed conversation multimedia upload URL
|
1623
1623
|
# @param extension [String]
|
1624
1624
|
# @param [Hash] opts the optional parameters
|
1625
|
-
# @return [Array<(
|
1625
|
+
# @return [Array<(ConversationPbxAudioUploadUrlResponse, Integer, Hash)>] ConversationPbxAudioUploadUrlResponse data, response status code and response headers
|
1626
1626
|
def get_conversation_pbx_audio_upload_url_with_http_info(extension, opts = {})
|
1627
1627
|
if @api_client.config.debugging
|
1628
1628
|
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_pbx_audio_upload_url ...'
|
@@ -1650,7 +1650,7 @@ module UltracartClient
|
|
1650
1650
|
post_body = opts[:debug_body]
|
1651
1651
|
|
1652
1652
|
# return_type
|
1653
|
-
return_type = opts[:debug_return_type] || '
|
1653
|
+
return_type = opts[:debug_return_type] || 'ConversationPbxAudioUploadUrlResponse'
|
1654
1654
|
|
1655
1655
|
# auth_names
|
1656
1656
|
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
@@ -0,0 +1,221 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class AutoOrderConsolidate
|
18
|
+
attr_accessor :source_auto_order_oids
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'source_auto_order_oids' => :'source_auto_order_oids'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'source_auto_order_oids' => :'Array<Integer>'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::AutoOrderConsolidate` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::AutoOrderConsolidate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'source_auto_order_oids')
|
61
|
+
if (value = attributes[:'source_auto_order_oids']).is_a?(Array)
|
62
|
+
self.source_auto_order_oids = value
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
+
# @return Array for valid properties with the reasons
|
69
|
+
def list_invalid_properties
|
70
|
+
invalid_properties = Array.new
|
71
|
+
invalid_properties
|
72
|
+
end
|
73
|
+
|
74
|
+
# Check to see if the all the properties in the model are valid
|
75
|
+
# @return true if the model is valid
|
76
|
+
def valid?
|
77
|
+
true
|
78
|
+
end
|
79
|
+
|
80
|
+
# Checks equality by comparing each attribute.
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def ==(o)
|
83
|
+
return true if self.equal?(o)
|
84
|
+
self.class == o.class &&
|
85
|
+
source_auto_order_oids == o.source_auto_order_oids
|
86
|
+
end
|
87
|
+
|
88
|
+
# @see the `==` method
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def eql?(o)
|
91
|
+
self == o
|
92
|
+
end
|
93
|
+
|
94
|
+
# Calculates hash code according to all attributes.
|
95
|
+
# @return [Integer] Hash code
|
96
|
+
def hash
|
97
|
+
[source_auto_order_oids].hash
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def self.build_from_hash(attributes)
|
104
|
+
new.build_from_hash(attributes)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def build_from_hash(attributes)
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
112
|
+
attributes = attributes.transform_keys(&:to_sym)
|
113
|
+
self.class.openapi_types.each_pair do |key, type|
|
114
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
115
|
+
self.send("#{key}=", nil)
|
116
|
+
elsif type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
121
|
+
end
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
self
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def _deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :Time
|
137
|
+
Time.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :Boolean
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
# models (e.g. Pet) or oneOf
|
168
|
+
klass = UltracartClient.const_get(type)
|
169
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the string representation of the object
|
174
|
+
# @return [String] String presentation of the object
|
175
|
+
def to_s
|
176
|
+
to_hash.to_s
|
177
|
+
end
|
178
|
+
|
179
|
+
# to_body is an alias to to_hash (backward compatibility)
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
181
|
+
def to_body
|
182
|
+
to_hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Returns the object in the form of hash
|
186
|
+
# @return [Hash] Returns the object in the form of hash
|
187
|
+
def to_hash
|
188
|
+
hash = {}
|
189
|
+
self.class.attribute_map.each_pair do |attr, param|
|
190
|
+
value = self.send(attr)
|
191
|
+
if value.nil?
|
192
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
193
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
194
|
+
end
|
195
|
+
|
196
|
+
hash[param] = _to_hash(value)
|
197
|
+
end
|
198
|
+
hash
|
199
|
+
end
|
200
|
+
|
201
|
+
# Outputs non-array value in the form of hash
|
202
|
+
# For object, use to_hash. Otherwise, just return the value
|
203
|
+
# @param [Object] value Any valid value
|
204
|
+
# @return [Hash] Returns the value in the form of hash
|
205
|
+
def _to_hash(value)
|
206
|
+
if value.is_a?(Array)
|
207
|
+
value.compact.map { |v| _to_hash(v) }
|
208
|
+
elsif value.is_a?(Hash)
|
209
|
+
{}.tap do |hash|
|
210
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
211
|
+
end
|
212
|
+
elsif value.respond_to? :to_hash
|
213
|
+
value.to_hash
|
214
|
+
else
|
215
|
+
value
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
@@ -0,0 +1,228 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class ConversationPbxAudioUploadUrl
|
18
|
+
attr_accessor :key
|
19
|
+
|
20
|
+
attr_accessor :url
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'key' => :'key',
|
26
|
+
:'url' => :'url'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'key' => :'String',
|
39
|
+
:'url' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationPbxAudioUploadUrl` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationPbxAudioUploadUrl`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'key')
|
65
|
+
self.key = attributes[:'key']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.key?(:'url')
|
69
|
+
self.url = attributes[:'url']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
key == o.key &&
|
92
|
+
url == o.url
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[key, url].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
attributes = attributes.transform_keys(&:to_sym)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = UltracartClient.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
@@ -0,0 +1,256 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module UltracartClient
|
17
|
+
class ConversationPbxAudioUploadUrlResponse
|
18
|
+
attr_accessor :conversation_pbx_audio_upload_url
|
19
|
+
|
20
|
+
attr_accessor :error
|
21
|
+
|
22
|
+
attr_accessor :metadata
|
23
|
+
|
24
|
+
# Indicates if API call was successful
|
25
|
+
attr_accessor :success
|
26
|
+
|
27
|
+
attr_accessor :warning
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'conversation_pbx_audio_upload_url' => :'conversation_pbx_audio_upload_url',
|
33
|
+
:'error' => :'error',
|
34
|
+
:'metadata' => :'metadata',
|
35
|
+
:'success' => :'success',
|
36
|
+
:'warning' => :'warning'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'conversation_pbx_audio_upload_url' => :'ConversationPbxAudioUploadUrl',
|
49
|
+
:'error' => :'Error',
|
50
|
+
:'metadata' => :'ResponseMetadata',
|
51
|
+
:'success' => :'Boolean',
|
52
|
+
:'warning' => :'Warning'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationPbxAudioUploadUrlResponse` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationPbxAudioUploadUrlResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'conversation_pbx_audio_upload_url')
|
78
|
+
self.conversation_pbx_audio_upload_url = attributes[:'conversation_pbx_audio_upload_url']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'error')
|
82
|
+
self.error = attributes[:'error']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'metadata')
|
86
|
+
self.metadata = attributes[:'metadata']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'success')
|
90
|
+
self.success = attributes[:'success']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'warning')
|
94
|
+
self.warning = attributes[:'warning']
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
99
|
+
# @return Array for valid properties with the reasons
|
100
|
+
def list_invalid_properties
|
101
|
+
invalid_properties = Array.new
|
102
|
+
invalid_properties
|
103
|
+
end
|
104
|
+
|
105
|
+
# Check to see if the all the properties in the model are valid
|
106
|
+
# @return true if the model is valid
|
107
|
+
def valid?
|
108
|
+
true
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
conversation_pbx_audio_upload_url == o.conversation_pbx_audio_upload_url &&
|
117
|
+
error == o.error &&
|
118
|
+
metadata == o.metadata &&
|
119
|
+
success == o.success &&
|
120
|
+
warning == o.warning
|
121
|
+
end
|
122
|
+
|
123
|
+
# @see the `==` method
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def eql?(o)
|
126
|
+
self == o
|
127
|
+
end
|
128
|
+
|
129
|
+
# Calculates hash code according to all attributes.
|
130
|
+
# @return [Integer] Hash code
|
131
|
+
def hash
|
132
|
+
[conversation_pbx_audio_upload_url, error, metadata, success, warning].hash
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the object from hash
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
# @return [Object] Returns the model itself
|
138
|
+
def self.build_from_hash(attributes)
|
139
|
+
new.build_from_hash(attributes)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Builds the object from hash
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
144
|
+
# @return [Object] Returns the model itself
|
145
|
+
def build_from_hash(attributes)
|
146
|
+
return nil unless attributes.is_a?(Hash)
|
147
|
+
attributes = attributes.transform_keys(&:to_sym)
|
148
|
+
self.class.openapi_types.each_pair do |key, type|
|
149
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
150
|
+
self.send("#{key}=", nil)
|
151
|
+
elsif type =~ /\AArray<(.*)>/i
|
152
|
+
# check to ensure the input is an array given that the attribute
|
153
|
+
# is documented as an array but the input is not
|
154
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
156
|
+
end
|
157
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :Time
|
172
|
+
Time.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value.to_s
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :Boolean
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
# models (e.g. Pet) or oneOf
|
203
|
+
klass = UltracartClient.const_get(type)
|
204
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
if value.nil?
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
|
+
end
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
class ConversationPbxCustomerSnapshotResponse
|
18
18
|
attr_accessor :auto_orders
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :customers
|
21
21
|
|
22
22
|
attr_accessor :error
|
23
23
|
|
@@ -34,7 +34,7 @@ module UltracartClient
|
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
36
|
:'auto_orders' => :'auto_orders',
|
37
|
-
:'
|
37
|
+
:'customers' => :'customers',
|
38
38
|
:'error' => :'error',
|
39
39
|
:'metadata' => :'metadata',
|
40
40
|
:'orders' => :'orders',
|
@@ -52,7 +52,7 @@ module UltracartClient
|
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
54
|
:'auto_orders' => :'Array<AutoOrder>',
|
55
|
-
:'
|
55
|
+
:'customers' => :'Array<Customer>',
|
56
56
|
:'error' => :'Error',
|
57
57
|
:'metadata' => :'ResponseMetadata',
|
58
58
|
:'orders' => :'Array<Order>',
|
@@ -88,8 +88,10 @@ module UltracartClient
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
|
91
|
+
if attributes.key?(:'customers')
|
92
|
+
if (value = attributes[:'customers']).is_a?(Array)
|
93
|
+
self.customers = value
|
94
|
+
end
|
93
95
|
end
|
94
96
|
|
95
97
|
if attributes.key?(:'error')
|
@@ -134,7 +136,7 @@ module UltracartClient
|
|
134
136
|
return true if self.equal?(o)
|
135
137
|
self.class == o.class &&
|
136
138
|
auto_orders == o.auto_orders &&
|
137
|
-
|
139
|
+
customers == o.customers &&
|
138
140
|
error == o.error &&
|
139
141
|
metadata == o.metadata &&
|
140
142
|
orders == o.orders &&
|
@@ -151,7 +153,7 @@ module UltracartClient
|
|
151
153
|
# Calculates hash code according to all attributes.
|
152
154
|
# @return [Integer] Hash code
|
153
155
|
def hash
|
154
|
-
[auto_orders,
|
156
|
+
[auto_orders, customers, error, metadata, orders, success, warning].hash
|
155
157
|
end
|
156
158
|
|
157
159
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -42,6 +42,7 @@ require 'ultracart_api/models/apply_library_item_response'
|
|
42
42
|
require 'ultracart_api/models/auto_order'
|
43
43
|
require 'ultracart_api/models/auto_order_addon_item'
|
44
44
|
require 'ultracart_api/models/auto_order_addon_item_option'
|
45
|
+
require 'ultracart_api/models/auto_order_consolidate'
|
45
46
|
require 'ultracart_api/models/auto_order_item'
|
46
47
|
require 'ultracart_api/models/auto_order_item_future_schedule'
|
47
48
|
require 'ultracart_api/models/auto_order_item_option'
|
@@ -190,6 +191,8 @@ require 'ultracart_api/models/conversation_pbx_agent_response'
|
|
190
191
|
require 'ultracart_api/models/conversation_pbx_agents_response'
|
191
192
|
require 'ultracart_api/models/conversation_pbx_audio'
|
192
193
|
require 'ultracart_api/models/conversation_pbx_audio_response'
|
194
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url'
|
195
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url_response'
|
193
196
|
require 'ultracart_api/models/conversation_pbx_audios_response'
|
194
197
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
|
195
198
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_response'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.212
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- docs/AutoOrderAddonItem.md
|
89
89
|
- docs/AutoOrderAddonItemOption.md
|
90
90
|
- docs/AutoOrderApi.md
|
91
|
+
- docs/AutoOrderConsolidate.md
|
91
92
|
- docs/AutoOrderItem.md
|
92
93
|
- docs/AutoOrderItemFutureSchedule.md
|
93
94
|
- docs/AutoOrderItemOption.md
|
@@ -240,6 +241,8 @@ files:
|
|
240
241
|
- docs/ConversationPbxAgentsResponse.md
|
241
242
|
- docs/ConversationPbxAudio.md
|
242
243
|
- docs/ConversationPbxAudioResponse.md
|
244
|
+
- docs/ConversationPbxAudioUploadUrl.md
|
245
|
+
- docs/ConversationPbxAudioUploadUrlResponse.md
|
243
246
|
- docs/ConversationPbxAudiosResponse.md
|
244
247
|
- docs/ConversationPbxCustomerSnapshotRequest.md
|
245
248
|
- docs/ConversationPbxCustomerSnapshotResponse.md
|
@@ -977,6 +980,7 @@ files:
|
|
977
980
|
- lib/ultracart_api/models/auto_order.rb
|
978
981
|
- lib/ultracart_api/models/auto_order_addon_item.rb
|
979
982
|
- lib/ultracart_api/models/auto_order_addon_item_option.rb
|
983
|
+
- lib/ultracart_api/models/auto_order_consolidate.rb
|
980
984
|
- lib/ultracart_api/models/auto_order_item.rb
|
981
985
|
- lib/ultracart_api/models/auto_order_item_future_schedule.rb
|
982
986
|
- lib/ultracart_api/models/auto_order_item_option.rb
|
@@ -1125,6 +1129,8 @@ files:
|
|
1125
1129
|
- lib/ultracart_api/models/conversation_pbx_agents_response.rb
|
1126
1130
|
- lib/ultracart_api/models/conversation_pbx_audio.rb
|
1127
1131
|
- lib/ultracart_api/models/conversation_pbx_audio_response.rb
|
1132
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb
|
1133
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb
|
1128
1134
|
- lib/ultracart_api/models/conversation_pbx_audios_response.rb
|
1129
1135
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
|
1130
1136
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb
|