ultracart_api 3.10.194 → 3.10.196
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/docs/AutoOrder.md +2 -0
- data/docs/AutoOrderApi.md +58 -0
- data/docs/AutoOrderConsolidate.md +8 -0
- data/docs/ConversationApi.md +2 -2
- data/docs/ConversationPbxAudioUploadUrl.md +9 -0
- data/docs/ConversationPbxAudioUploadUrlResponse.md +12 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +1 -1
- data/lib/ultracart_api/api/auto_order_api.rb +64 -0
- data/lib/ultracart_api/api/conversation_api.rb +3 -3
- data/lib/ultracart_api/models/auto_order.rb +23 -3
- data/lib/ultracart_api/models/auto_order_consolidate.rb +186 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb +193 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb +221 -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: 803da8ea91fc29479152b108e448463384fb0628ef534c607c52b26ce4e6e34c
|
4
|
+
data.tar.gz: 8750f128d900ef7873cb9cea1cdfeb173bcc7ebc4ed16025efb816856b5a49b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86333aca0a9ee3046fa6747f094c321a393366d4c81c3b8ec33a74ae0258f723dfac75bd5f4516ebeb78d953ccc20f3ebd5c4c8c8240459712c679a9a5f1478
|
7
|
+
data.tar.gz: a371a8599c34f89604d33bbbfb63e41a94bfb234214e0444247cb925f8b3902665f542db442f2e738f079712e3fb044b7315ecff2ab7fb666b02f76d60bc9896
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.196
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.196.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.196.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.196'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -88,6 +88,7 @@ Class | Method | HTTP request | Description
|
|
88
88
|
------------ | ------------- | ------------- | -------------
|
89
89
|
*UltracartClient::AffiliateApi* | [**get_clicks_by_query**](docs/AffiliateApi.md#get_clicks_by_query) | **POST** /affiliate/clicks/query | Retrieve clicks
|
90
90
|
*UltracartClient::AffiliateApi* | [**get_ledgers_by_query**](docs/AffiliateApi.md#get_ledgers_by_query) | **POST** /affiliate/ledgers/query | Retrieve ledger entries
|
91
|
+
*UltracartClient::AutoOrderApi* | [**consolidate_auto_orders**](docs/AutoOrderApi.md#consolidate_auto_orders) | **PUT** /auto_order/auto_orders/{auto_order_oid}/consolidate | Consolidates multiple auto orders
|
91
92
|
*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
|
92
93
|
*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
|
93
94
|
*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
|
@@ -607,6 +608,7 @@ Class | Method | HTTP request | Description
|
|
607
608
|
- [UltracartClient::AutoOrder](docs/AutoOrder.md)
|
608
609
|
- [UltracartClient::AutoOrderAddonItem](docs/AutoOrderAddonItem.md)
|
609
610
|
- [UltracartClient::AutoOrderAddonItemOption](docs/AutoOrderAddonItemOption.md)
|
611
|
+
- [UltracartClient::AutoOrderConsolidate](docs/AutoOrderConsolidate.md)
|
610
612
|
- [UltracartClient::AutoOrderItem](docs/AutoOrderItem.md)
|
611
613
|
- [UltracartClient::AutoOrderItemFutureSchedule](docs/AutoOrderItemFutureSchedule.md)
|
612
614
|
- [UltracartClient::AutoOrderItemOption](docs/AutoOrderItemOption.md)
|
@@ -756,6 +758,8 @@ Class | Method | HTTP request | Description
|
|
756
758
|
- [UltracartClient::ConversationPbxAgentsResponse](docs/ConversationPbxAgentsResponse.md)
|
757
759
|
- [UltracartClient::ConversationPbxAudio](docs/ConversationPbxAudio.md)
|
758
760
|
- [UltracartClient::ConversationPbxAudioResponse](docs/ConversationPbxAudioResponse.md)
|
761
|
+
- [UltracartClient::ConversationPbxAudioUploadUrl](docs/ConversationPbxAudioUploadUrl.md)
|
762
|
+
- [UltracartClient::ConversationPbxAudioUploadUrlResponse](docs/ConversationPbxAudioUploadUrlResponse.md)
|
759
763
|
- [UltracartClient::ConversationPbxAudiosResponse](docs/ConversationPbxAudiosResponse.md)
|
760
764
|
- [UltracartClient::ConversationPbxCustomerSnapshotRequest](docs/ConversationPbxCustomerSnapshotRequest.md)
|
761
765
|
- [UltracartClient::ConversationPbxCustomerSnapshotResponse](docs/ConversationPbxCustomerSnapshotResponse.md)
|
@@ -1499,6 +1503,8 @@ Not every change is committed to every SDK.
|
|
1499
1503
|
|
1500
1504
|
| Version | Date | Comments |
|
1501
1505
|
| --: | :-: | --- |
|
1506
|
+
| 3.10.196 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
|
1507
|
+
| 3.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
1502
1508
|
| 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
|
1503
1509
|
| 3.10.193 | 04/04/2024 | AutoOrder.calculated_next_shipment_dts |
|
1504
1510
|
| 3.10.192 | 04/01/2024 | added merchant_id as read-only top level property of AutoOrder object |
|
data/docs/AutoOrder.md
CHANGED
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
|
|
21
21
|
**logs** | [**Array<AutoOrderLog>**](AutoOrderLog.md) | Logs associated with this auto order | [optional]
|
22
22
|
**management** | [**AutoOrderManagement**](AutoOrderManagement.md) | | [optional]
|
23
23
|
**merchant_id** | **String** | UltraCart merchant ID owning this order | [optional]
|
24
|
+
**merged_dts** | **String** | The date/time the auto order was merged into another auto order | [optional]
|
25
|
+
**merged_into_auto_order_oid** | **Integer** | The auto order that this auto order was merged into | [optional]
|
24
26
|
**next_attempt** | **String** | The next time that the auto order will be attempted for processing | [optional]
|
25
27
|
**original_order** | [**Order**](Order.md) | | [optional]
|
26
28
|
**original_order_id** | **String** | The original order id that this auto order is associated with. | [optional]
|
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,63 @@ Method | HTTP request | Description
|
|
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
|
+
> AutoOrderResponse consolidate_auto_orders(auto_order_consolidate, auto_order_oid, opts)
|
21
|
+
|
22
|
+
Consolidates multiple auto orders
|
23
|
+
|
24
|
+
Consolidates mutliple auto orders on the UltraCart account.
|
25
|
+
|
26
|
+
### Example
|
27
|
+
```ruby
|
28
|
+
# load the gem
|
29
|
+
require 'ultracart_api'
|
30
|
+
|
31
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
32
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
33
|
+
api_instance = UltracartClient::AutoOrderApi.new_using_api_key(simple_key, false, false)
|
34
|
+
|
35
|
+
|
36
|
+
auto_order_consolidate = UltracartClient::AutoOrderConsolidate.new # AutoOrderConsolidate | Auto orders to consolidate
|
37
|
+
|
38
|
+
auto_order_oid = 56 # Integer | The auto order oid to consolidate into.
|
39
|
+
|
40
|
+
opts = {
|
41
|
+
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
42
|
+
}
|
43
|
+
|
44
|
+
begin
|
45
|
+
#Consolidates multiple auto orders
|
46
|
+
result = api_instance.consolidate_auto_orders(auto_order_consolidate, auto_order_oid, opts)
|
47
|
+
p result
|
48
|
+
rescue UltracartClient::ApiError => e
|
49
|
+
puts "Exception when calling AutoOrderApi->consolidate_auto_orders: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
### Parameters
|
54
|
+
|
55
|
+
Name | Type | Description | Notes
|
56
|
+
------------- | ------------- | ------------- | -------------
|
57
|
+
**auto_order_consolidate** | [**AutoOrderConsolidate**](AutoOrderConsolidate.md)| Auto orders to consolidate |
|
58
|
+
**auto_order_oid** | **Integer**| The auto order oid to consolidate into. |
|
59
|
+
**_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
|
60
|
+
|
61
|
+
### Return type
|
62
|
+
|
63
|
+
[**AutoOrderResponse**](AutoOrderResponse.md)
|
64
|
+
|
65
|
+
### Authorization
|
66
|
+
|
67
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
68
|
+
|
69
|
+
### HTTP request headers
|
70
|
+
|
71
|
+
- **Content-Type**: application/json; charset=UTF-8
|
72
|
+
- **Accept**: application/json
|
73
|
+
|
74
|
+
|
75
|
+
|
18
76
|
# **establish_auto_order_by_reference_order_id**
|
19
77
|
> AutoOrderResponse establish_auto_order_by_reference_order_id(reference_order_id, opts)
|
20
78
|
|
data/docs/ConversationApi.md
CHANGED
@@ -1316,7 +1316,7 @@ Name | Type | Description | Notes
|
|
1316
1316
|
|
1317
1317
|
|
1318
1318
|
# **get_conversation_pbx_audio_upload_url**
|
1319
|
-
>
|
1319
|
+
> ConversationPbxAudioUploadUrlResponse get_conversation_pbx_audio_upload_url(extension)
|
1320
1320
|
|
1321
1321
|
Get a pre-signed conversation multimedia upload URL
|
1322
1322
|
|
@@ -1352,7 +1352,7 @@ Name | Type | Description | Notes
|
|
1352
1352
|
|
1353
1353
|
### Return type
|
1354
1354
|
|
1355
|
-
[**
|
1355
|
+
[**ConversationPbxAudioUploadUrlResponse**](ConversationPbxAudioUploadUrlResponse.md)
|
1356
1356
|
|
1357
1357
|
### Authorization
|
1358
1358
|
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::ConversationPbxAudioUploadUrlResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**conversation_pbx_audio_upload_url** | [**ConversationPbxAudioUploadUrl**](ConversationPbxAudioUploadUrl.md) | | [optional]
|
7
|
+
**error** | [**Error**](Error.md) | | [optional]
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -4,7 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**auto_orders** | [**Array<AutoOrder>**](AutoOrder.md) | | [optional]
|
7
|
-
**
|
7
|
+
**customers** | [**Array<Customer>**](Customer.md) | | [optional]
|
8
8
|
**error** | [**Error**](Error.md) | | [optional]
|
9
9
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
10
10
|
**orders** | [**Array<Order>**](Order.md) | | [optional]
|
@@ -32,6 +32,70 @@ 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_consolidate Auto orders to consolidate
|
38
|
+
# @param auto_order_oid The auto order oid to consolidate into.
|
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_consolidate, auto_order_oid, opts = {})
|
43
|
+
data, _status_code, _headers = consolidate_auto_orders_with_http_info(auto_order_consolidate, auto_order_oid, opts)
|
44
|
+
data
|
45
|
+
end
|
46
|
+
|
47
|
+
# Consolidates multiple auto orders
|
48
|
+
# Consolidates mutliple auto orders on the UltraCart account.
|
49
|
+
# @param auto_order_consolidate Auto orders to consolidate
|
50
|
+
# @param auto_order_oid The auto order oid to consolidate into.
|
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, Fixnum, Hash)>] AutoOrderResponse data, response status code and response headers
|
54
|
+
def consolidate_auto_orders_with_http_info(auto_order_consolidate, auto_order_oid, 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_consolidate' is set
|
59
|
+
if @api_client.config.client_side_validation && auto_order_consolidate.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'auto_order_consolidate' when calling AutoOrderApi.consolidate_auto_orders"
|
61
|
+
end
|
62
|
+
# verify the required parameter 'auto_order_oid' is set
|
63
|
+
if @api_client.config.client_side_validation && auto_order_oid.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'auto_order_oid' 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' + '}', auto_order_oid.to_s)
|
68
|
+
|
69
|
+
# query parameters
|
70
|
+
query_params = {}
|
71
|
+
query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
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
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
80
|
+
|
81
|
+
# form parameters
|
82
|
+
form_params = {}
|
83
|
+
|
84
|
+
# http body (model)
|
85
|
+
post_body = @api_client.object_to_http_body(auto_order_consolidate)
|
86
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
87
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
88
|
+
:header_params => header_params,
|
89
|
+
:query_params => query_params,
|
90
|
+
:form_params => form_params,
|
91
|
+
:body => post_body,
|
92
|
+
:auth_names => auth_names,
|
93
|
+
:return_type => 'AutoOrderResponse')
|
94
|
+
if @api_client.config.debugging
|
95
|
+
@api_client.config.logger.debug "API called: AutoOrderApi#consolidate_auto_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
96
|
+
end
|
97
|
+
return data, status_code, headers
|
98
|
+
end
|
35
99
|
# Establish an auto order by referencing a regular order id
|
36
100
|
# 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
101
|
# @param reference_order_id The order id to attach this auto order to
|
@@ -1381,7 +1381,7 @@ module UltracartClient
|
|
1381
1381
|
# Get a pre-signed conversation multimedia upload URL
|
1382
1382
|
# @param extension
|
1383
1383
|
# @param [Hash] opts the optional parameters
|
1384
|
-
# @return [
|
1384
|
+
# @return [ConversationPbxAudioUploadUrlResponse]
|
1385
1385
|
def get_conversation_pbx_audio_upload_url(extension, opts = {})
|
1386
1386
|
data, _status_code, _headers = get_conversation_pbx_audio_upload_url_with_http_info(extension, opts)
|
1387
1387
|
data
|
@@ -1391,7 +1391,7 @@ module UltracartClient
|
|
1391
1391
|
# Get a pre-signed conversation multimedia upload URL
|
1392
1392
|
# @param extension
|
1393
1393
|
# @param [Hash] opts the optional parameters
|
1394
|
-
# @return [Array<(
|
1394
|
+
# @return [Array<(ConversationPbxAudioUploadUrlResponse, Fixnum, Hash)>] ConversationPbxAudioUploadUrlResponse data, response status code and response headers
|
1395
1395
|
def get_conversation_pbx_audio_upload_url_with_http_info(extension, opts = {})
|
1396
1396
|
if @api_client.config.debugging
|
1397
1397
|
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_pbx_audio_upload_url ...'
|
@@ -1426,7 +1426,7 @@ module UltracartClient
|
|
1426
1426
|
:form_params => form_params,
|
1427
1427
|
:body => post_body,
|
1428
1428
|
:auth_names => auth_names,
|
1429
|
-
:return_type => '
|
1429
|
+
:return_type => 'ConversationPbxAudioUploadUrlResponse')
|
1430
1430
|
if @api_client.config.debugging
|
1431
1431
|
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_pbx_audio_upload_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1432
1432
|
end
|
@@ -67,6 +67,12 @@ module UltracartClient
|
|
67
67
|
# UltraCart merchant ID owning this order
|
68
68
|
attr_accessor :merchant_id
|
69
69
|
|
70
|
+
# The date/time the auto order was merged into another auto order
|
71
|
+
attr_accessor :merged_dts
|
72
|
+
|
73
|
+
# The auto order that this auto order was merged into
|
74
|
+
attr_accessor :merged_into_auto_order_oid
|
75
|
+
|
70
76
|
# The next time that the auto order will be attempted for processing
|
71
77
|
attr_accessor :next_attempt
|
72
78
|
|
@@ -130,6 +136,8 @@ module UltracartClient
|
|
130
136
|
:'logs' => :'logs',
|
131
137
|
:'management' => :'management',
|
132
138
|
:'merchant_id' => :'merchant_id',
|
139
|
+
:'merged_dts' => :'merged_dts',
|
140
|
+
:'merged_into_auto_order_oid' => :'merged_into_auto_order_oid',
|
133
141
|
:'next_attempt' => :'next_attempt',
|
134
142
|
:'original_order' => :'original_order',
|
135
143
|
:'original_order_id' => :'original_order_id',
|
@@ -161,6 +169,8 @@ module UltracartClient
|
|
161
169
|
:'logs' => :'Array<AutoOrderLog>',
|
162
170
|
:'management' => :'AutoOrderManagement',
|
163
171
|
:'merchant_id' => :'String',
|
172
|
+
:'merged_dts' => :'String',
|
173
|
+
:'merged_into_auto_order_oid' => :'Integer',
|
164
174
|
:'next_attempt' => :'String',
|
165
175
|
:'original_order' => :'Order',
|
166
176
|
:'original_order_id' => :'String',
|
@@ -257,6 +267,14 @@ module UltracartClient
|
|
257
267
|
self.merchant_id = attributes[:'merchant_id']
|
258
268
|
end
|
259
269
|
|
270
|
+
if attributes.has_key?(:'merged_dts')
|
271
|
+
self.merged_dts = attributes[:'merged_dts']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.has_key?(:'merged_into_auto_order_oid')
|
275
|
+
self.merged_into_auto_order_oid = attributes[:'merged_into_auto_order_oid']
|
276
|
+
end
|
277
|
+
|
260
278
|
if attributes.has_key?(:'next_attempt')
|
261
279
|
self.next_attempt = attributes[:'next_attempt']
|
262
280
|
end
|
@@ -298,7 +316,7 @@ module UltracartClient
|
|
298
316
|
# Check to see if the all the properties in the model are valid
|
299
317
|
# @return true if the model is valid
|
300
318
|
def valid?
|
301
|
-
status_validator = EnumAttributeValidator.new('String', ['active', 'canceled', 'disabled'])
|
319
|
+
status_validator = EnumAttributeValidator.new('String', ['active', 'canceled', 'disabled', 'merged'])
|
302
320
|
return false unless status_validator.valid?(@status)
|
303
321
|
true
|
304
322
|
end
|
@@ -306,7 +324,7 @@ module UltracartClient
|
|
306
324
|
# Custom attribute writer method checking allowed values (enum).
|
307
325
|
# @param [Object] status Object to be assigned
|
308
326
|
def status=(status)
|
309
|
-
validator = EnumAttributeValidator.new('String', ['active', 'canceled', 'disabled'])
|
327
|
+
validator = EnumAttributeValidator.new('String', ['active', 'canceled', 'disabled', 'merged'])
|
310
328
|
unless validator.valid?(status)
|
311
329
|
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
312
330
|
end
|
@@ -336,6 +354,8 @@ module UltracartClient
|
|
336
354
|
logs == o.logs &&
|
337
355
|
management == o.management &&
|
338
356
|
merchant_id == o.merchant_id &&
|
357
|
+
merged_dts == o.merged_dts &&
|
358
|
+
merged_into_auto_order_oid == o.merged_into_auto_order_oid &&
|
339
359
|
next_attempt == o.next_attempt &&
|
340
360
|
original_order == o.original_order &&
|
341
361
|
original_order_id == o.original_order_id &&
|
@@ -354,7 +374,7 @@ module UltracartClient
|
|
354
374
|
# Calculates hash code according to all attributes.
|
355
375
|
# @return [Fixnum] Hash code
|
356
376
|
def 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
|
377
|
+
[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, merged_dts, merged_into_auto_order_oid, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
358
378
|
end
|
359
379
|
|
360
380
|
# Builds the object from hash
|
@@ -0,0 +1,186 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class AutoOrderConsolidate
|
17
|
+
attr_accessor :source_auto_order_oids
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'source_auto_order_oids' => :'source_auto_order_oids'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'source_auto_order_oids' => :'Array<Integer>'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'source_auto_order_oids')
|
42
|
+
if (value = attributes[:'source_auto_order_oids']).is_a?(Array)
|
43
|
+
self.source_auto_order_oids = value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
+
# @return Array for valid properties with the reasons
|
50
|
+
def list_invalid_properties
|
51
|
+
invalid_properties = Array.new
|
52
|
+
invalid_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check to see if the all the properties in the model are valid
|
56
|
+
# @return true if the model is valid
|
57
|
+
def valid?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
61
|
+
# Checks equality by comparing each attribute.
|
62
|
+
# @param [Object] Object to be compared
|
63
|
+
def ==(o)
|
64
|
+
return true if self.equal?(o)
|
65
|
+
self.class == o.class &&
|
66
|
+
source_auto_order_oids == o.source_auto_order_oids
|
67
|
+
end
|
68
|
+
|
69
|
+
# @see the `==` method
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def eql?(o)
|
72
|
+
self == o
|
73
|
+
end
|
74
|
+
|
75
|
+
# Calculates hash code according to all attributes.
|
76
|
+
# @return [Fixnum] Hash code
|
77
|
+
def hash
|
78
|
+
[source_auto_order_oids].hash
|
79
|
+
end
|
80
|
+
|
81
|
+
# Builds the object from hash
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
+
# @return [Object] Returns the model itself
|
84
|
+
def build_from_hash(attributes)
|
85
|
+
return nil unless attributes.is_a?(Hash)
|
86
|
+
self.class.swagger_types.each_pair do |key, type|
|
87
|
+
if type =~ /\AArray<(.*)>/i
|
88
|
+
# check to ensure the input is an array given that the attribute
|
89
|
+
# is documented as an array but the input is not
|
90
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
91
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
92
|
+
end
|
93
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
94
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
95
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
96
|
+
end
|
97
|
+
|
98
|
+
self
|
99
|
+
end
|
100
|
+
|
101
|
+
# Deserializes the data based on type
|
102
|
+
# @param string type Data type
|
103
|
+
# @param string value Value to be deserialized
|
104
|
+
# @return [Object] Deserialized data
|
105
|
+
def _deserialize(type, value)
|
106
|
+
case type.to_sym
|
107
|
+
when :DateTime
|
108
|
+
DateTime.parse(value)
|
109
|
+
when :Date
|
110
|
+
Date.parse(value)
|
111
|
+
when :String
|
112
|
+
value.to_s
|
113
|
+
when :Integer
|
114
|
+
value.to_i
|
115
|
+
when :Float
|
116
|
+
value.to_f
|
117
|
+
when :BOOLEAN
|
118
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
119
|
+
true
|
120
|
+
else
|
121
|
+
false
|
122
|
+
end
|
123
|
+
when :Object
|
124
|
+
# generic object (usually a Hash), return directly
|
125
|
+
value
|
126
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
127
|
+
inner_type = Regexp.last_match[:inner_type]
|
128
|
+
value.map { |v| _deserialize(inner_type, v) }
|
129
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
130
|
+
k_type = Regexp.last_match[:k_type]
|
131
|
+
v_type = Regexp.last_match[:v_type]
|
132
|
+
{}.tap do |hash|
|
133
|
+
value.each do |k, v|
|
134
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
else # model
|
138
|
+
temp_model = UltracartClient.const_get(type).new
|
139
|
+
temp_model.build_from_hash(value)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Returns the string representation of the object
|
144
|
+
# @return [String] String presentation of the object
|
145
|
+
def to_s
|
146
|
+
to_hash.to_s
|
147
|
+
end
|
148
|
+
|
149
|
+
# to_body is an alias to to_hash (backward compatibility)
|
150
|
+
# @return [Hash] Returns the object in the form of hash
|
151
|
+
def to_body
|
152
|
+
to_hash
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns the object in the form of hash
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_hash
|
158
|
+
hash = {}
|
159
|
+
self.class.attribute_map.each_pair do |attr, param|
|
160
|
+
value = self.send(attr)
|
161
|
+
next if value.nil?
|
162
|
+
hash[param] = _to_hash(value)
|
163
|
+
end
|
164
|
+
hash
|
165
|
+
end
|
166
|
+
|
167
|
+
# Outputs non-array value in the form of hash
|
168
|
+
# For object, use to_hash. Otherwise, just return the value
|
169
|
+
# @param [Object] value Any valid value
|
170
|
+
# @return [Hash] Returns the value in the form of hash
|
171
|
+
def _to_hash(value)
|
172
|
+
if value.is_a?(Array)
|
173
|
+
value.compact.map { |v| _to_hash(v) }
|
174
|
+
elsif value.is_a?(Hash)
|
175
|
+
{}.tap do |hash|
|
176
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
177
|
+
end
|
178
|
+
elsif value.respond_to? :to_hash
|
179
|
+
value.to_hash
|
180
|
+
else
|
181
|
+
value
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
185
|
+
end
|
186
|
+
end
|
@@ -0,0 +1,193 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationPbxAudioUploadUrl
|
17
|
+
attr_accessor :key
|
18
|
+
|
19
|
+
attr_accessor :url
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'key' => :'key',
|
25
|
+
:'url' => :'url'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'key' => :'String',
|
33
|
+
:'url' => :'String'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Initializes the object
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
39
|
+
def initialize(attributes = {})
|
40
|
+
return unless attributes.is_a?(Hash)
|
41
|
+
|
42
|
+
# convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
|
+
|
45
|
+
if attributes.has_key?(:'key')
|
46
|
+
self.key = attributes[:'key']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'url')
|
50
|
+
self.url = attributes[:'url']
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
55
|
+
# @return Array for valid properties with the reasons
|
56
|
+
def list_invalid_properties
|
57
|
+
invalid_properties = Array.new
|
58
|
+
invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
true
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
key == o.key &&
|
73
|
+
url == o.url
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[key, url].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = UltracartClient.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map { |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
end
|
@@ -0,0 +1,221 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationPbxAudioUploadUrlResponse
|
17
|
+
attr_accessor :conversation_pbx_audio_upload_url
|
18
|
+
|
19
|
+
attr_accessor :error
|
20
|
+
|
21
|
+
attr_accessor :metadata
|
22
|
+
|
23
|
+
# Indicates if API call was successful
|
24
|
+
attr_accessor :success
|
25
|
+
|
26
|
+
attr_accessor :warning
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'conversation_pbx_audio_upload_url' => :'conversation_pbx_audio_upload_url',
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'conversation_pbx_audio_upload_url' => :'ConversationPbxAudioUploadUrl',
|
43
|
+
:'error' => :'Error',
|
44
|
+
:'metadata' => :'ResponseMetadata',
|
45
|
+
:'success' => :'BOOLEAN',
|
46
|
+
:'warning' => :'Warning'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
return unless attributes.is_a?(Hash)
|
54
|
+
|
55
|
+
# convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
|
+
|
58
|
+
if attributes.has_key?(:'conversation_pbx_audio_upload_url')
|
59
|
+
self.conversation_pbx_audio_upload_url = attributes[:'conversation_pbx_audio_upload_url']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'error')
|
63
|
+
self.error = attributes[:'error']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'metadata')
|
67
|
+
self.metadata = attributes[:'metadata']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'success')
|
71
|
+
self.success = attributes[:'success']
|
72
|
+
end
|
73
|
+
|
74
|
+
if attributes.has_key?(:'warning')
|
75
|
+
self.warning = attributes[:'warning']
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
+
# @return Array for valid properties with the reasons
|
81
|
+
def list_invalid_properties
|
82
|
+
invalid_properties = Array.new
|
83
|
+
invalid_properties
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
def valid?
|
89
|
+
true
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
conversation_pbx_audio_upload_url == o.conversation_pbx_audio_upload_url &&
|
98
|
+
error == o.error &&
|
99
|
+
metadata == o.metadata &&
|
100
|
+
success == o.success &&
|
101
|
+
warning == o.warning
|
102
|
+
end
|
103
|
+
|
104
|
+
# @see the `==` method
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def eql?(o)
|
107
|
+
self == o
|
108
|
+
end
|
109
|
+
|
110
|
+
# Calculates hash code according to all attributes.
|
111
|
+
# @return [Fixnum] Hash code
|
112
|
+
def hash
|
113
|
+
[conversation_pbx_audio_upload_url, error, metadata, success, warning].hash
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
|
+
end
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
131
|
+
end
|
132
|
+
|
133
|
+
self
|
134
|
+
end
|
135
|
+
|
136
|
+
# Deserializes the data based on type
|
137
|
+
# @param string type Data type
|
138
|
+
# @param string value Value to be deserialized
|
139
|
+
# @return [Object] Deserialized data
|
140
|
+
def _deserialize(type, value)
|
141
|
+
case type.to_sym
|
142
|
+
when :DateTime
|
143
|
+
DateTime.parse(value)
|
144
|
+
when :Date
|
145
|
+
Date.parse(value)
|
146
|
+
when :String
|
147
|
+
value.to_s
|
148
|
+
when :Integer
|
149
|
+
value.to_i
|
150
|
+
when :Float
|
151
|
+
value.to_f
|
152
|
+
when :BOOLEAN
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
154
|
+
true
|
155
|
+
else
|
156
|
+
false
|
157
|
+
end
|
158
|
+
when :Object
|
159
|
+
# generic object (usually a Hash), return directly
|
160
|
+
value
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
167
|
+
{}.tap do |hash|
|
168
|
+
value.each do |k, v|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
else # model
|
173
|
+
temp_model = UltracartClient.const_get(type).new
|
174
|
+
temp_model.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
next if value.nil?
|
197
|
+
hash[param] = _to_hash(value)
|
198
|
+
end
|
199
|
+
hash
|
200
|
+
end
|
201
|
+
|
202
|
+
# Outputs non-array value in the form of hash
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
204
|
+
# @param [Object] value Any valid value
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
206
|
+
def _to_hash(value)
|
207
|
+
if value.is_a?(Array)
|
208
|
+
value.compact.map { |v| _to_hash(v) }
|
209
|
+
elsif value.is_a?(Hash)
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
212
|
+
end
|
213
|
+
elsif value.respond_to? :to_hash
|
214
|
+
value.to_hash
|
215
|
+
else
|
216
|
+
value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
end
|
221
|
+
end
|
@@ -16,7 +16,7 @@ module UltracartClient
|
|
16
16
|
class ConversationPbxCustomerSnapshotResponse
|
17
17
|
attr_accessor :auto_orders
|
18
18
|
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :customers
|
20
20
|
|
21
21
|
attr_accessor :error
|
22
22
|
|
@@ -33,7 +33,7 @@ module UltracartClient
|
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'auto_orders' => :'auto_orders',
|
36
|
-
:'
|
36
|
+
:'customers' => :'customers',
|
37
37
|
:'error' => :'error',
|
38
38
|
:'metadata' => :'metadata',
|
39
39
|
:'orders' => :'orders',
|
@@ -46,7 +46,7 @@ module UltracartClient
|
|
46
46
|
def self.swagger_types
|
47
47
|
{
|
48
48
|
:'auto_orders' => :'Array<AutoOrder>',
|
49
|
-
:'
|
49
|
+
:'customers' => :'Array<Customer>',
|
50
50
|
:'error' => :'Error',
|
51
51
|
:'metadata' => :'ResponseMetadata',
|
52
52
|
:'orders' => :'Array<Order>',
|
@@ -69,8 +69,10 @@ module UltracartClient
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
if attributes.has_key?(:'
|
73
|
-
|
72
|
+
if attributes.has_key?(:'customers')
|
73
|
+
if (value = attributes[:'customers']).is_a?(Array)
|
74
|
+
self.customers = value
|
75
|
+
end
|
74
76
|
end
|
75
77
|
|
76
78
|
if attributes.has_key?(:'error')
|
@@ -115,7 +117,7 @@ module UltracartClient
|
|
115
117
|
return true if self.equal?(o)
|
116
118
|
self.class == o.class &&
|
117
119
|
auto_orders == o.auto_orders &&
|
118
|
-
|
120
|
+
customers == o.customers &&
|
119
121
|
error == o.error &&
|
120
122
|
metadata == o.metadata &&
|
121
123
|
orders == o.orders &&
|
@@ -132,7 +134,7 @@ module UltracartClient
|
|
132
134
|
# Calculates hash code according to all attributes.
|
133
135
|
# @return [Fixnum] Hash code
|
134
136
|
def hash
|
135
|
-
[auto_orders,
|
137
|
+
[auto_orders, customers, error, metadata, orders, success, warning].hash
|
136
138
|
end
|
137
139
|
|
138
140
|
# 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'
|
@@ -191,6 +192,8 @@ require 'ultracart_api/models/conversation_pbx_agent_response'
|
|
191
192
|
require 'ultracart_api/models/conversation_pbx_agents_response'
|
192
193
|
require 'ultracart_api/models/conversation_pbx_audio'
|
193
194
|
require 'ultracart_api/models/conversation_pbx_audio_response'
|
195
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url'
|
196
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url_response'
|
194
197
|
require 'ultracart_api/models/conversation_pbx_audios_response'
|
195
198
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
|
196
199
|
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: 3.10.
|
4
|
+
version: 3.10.196
|
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-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -248,6 +248,7 @@ files:
|
|
248
248
|
- docs/AutoOrderAddonItem.md
|
249
249
|
- docs/AutoOrderAddonItemOption.md
|
250
250
|
- docs/AutoOrderApi.md
|
251
|
+
- docs/AutoOrderConsolidate.md
|
251
252
|
- docs/AutoOrderItem.md
|
252
253
|
- docs/AutoOrderItemFutureSchedule.md
|
253
254
|
- docs/AutoOrderItemOption.md
|
@@ -401,6 +402,8 @@ files:
|
|
401
402
|
- docs/ConversationPbxAgentsResponse.md
|
402
403
|
- docs/ConversationPbxAudio.md
|
403
404
|
- docs/ConversationPbxAudioResponse.md
|
405
|
+
- docs/ConversationPbxAudioUploadUrl.md
|
406
|
+
- docs/ConversationPbxAudioUploadUrlResponse.md
|
404
407
|
- docs/ConversationPbxAudiosResponse.md
|
405
408
|
- docs/ConversationPbxCustomerSnapshotRequest.md
|
406
409
|
- docs/ConversationPbxCustomerSnapshotResponse.md
|
@@ -1138,6 +1141,7 @@ files:
|
|
1138
1141
|
- lib/ultracart_api/models/auto_order.rb
|
1139
1142
|
- lib/ultracart_api/models/auto_order_addon_item.rb
|
1140
1143
|
- lib/ultracart_api/models/auto_order_addon_item_option.rb
|
1144
|
+
- lib/ultracart_api/models/auto_order_consolidate.rb
|
1141
1145
|
- lib/ultracart_api/models/auto_order_item.rb
|
1142
1146
|
- lib/ultracart_api/models/auto_order_item_future_schedule.rb
|
1143
1147
|
- lib/ultracart_api/models/auto_order_item_option.rb
|
@@ -1287,6 +1291,8 @@ files:
|
|
1287
1291
|
- lib/ultracart_api/models/conversation_pbx_agents_response.rb
|
1288
1292
|
- lib/ultracart_api/models/conversation_pbx_audio.rb
|
1289
1293
|
- lib/ultracart_api/models/conversation_pbx_audio_response.rb
|
1294
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb
|
1295
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb
|
1290
1296
|
- lib/ultracart_api/models/conversation_pbx_audios_response.rb
|
1291
1297
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
|
1292
1298
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb
|