ultracart_api 3.10.196 → 3.10.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -4
- data/docs/ChannelPartnerOrder.md +10 -0
- data/docs/ConversationApi.md +51 -0
- data/docs/ConversationPbxAudio.md +1 -0
- data/docs/ConversationPbxAudioUsageResponse.md +14 -0
- data/docs/OrderUtm.md +6 -0
- data/lib/ultracart_api/api/conversation_api.rb +55 -0
- data/lib/ultracart_api/models/channel_partner_order.rb +127 -3
- data/lib/ultracart_api/models/conversation_pbx_audio.rb +11 -1
- data/lib/ultracart_api/models/conversation_pbx_audio_usage_response.rb +245 -0
- data/lib/ultracart_api/models/order_utm.rb +55 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c84c57d52b189fdbbbc7b6becf0ef1c354e9d44ff1afae5810d8b75ffcd6533b
|
|
4
|
+
data.tar.gz: bd6405f95e198c627ee1c0119e76851373dba3b5c88caddb8b3ead940e3fac11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08a932bd333902b86534ae965df25323d16846f9e91e020771d657e501fcd48e12cdd60050f34bd0af41be2dfe30738619f604192e83b92c7c596270bc46648a'
|
|
7
|
+
data.tar.gz: b2121bb9449861bb8a7e1e72c343046fceb5ad037247c13da876ce01a08e0c60b9e954c3ab995e9b7b22dc43ecc8310cd347d262e59fa703e9d2ff7b41645a1a
|
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.198
|
|
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.198.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.198.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.198'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -171,6 +171,7 @@ Class | Method | HTTP request | Description
|
|
|
171
171
|
*UltracartClient::ConversationApi* | [**get_pbx_agent_voicemails**](docs/ConversationApi.md#get_pbx_agent_voicemails) | **GET** /conversation/pbx/agent/voicemails | Get Agent Voicemails
|
|
172
172
|
*UltracartClient::ConversationApi* | [**get_pbx_agents**](docs/ConversationApi.md#get_pbx_agents) | **GET** /conversation/pbx/agent | Get pbx agents
|
|
173
173
|
*UltracartClient::ConversationApi* | [**get_pbx_audio**](docs/ConversationApi.md#get_pbx_audio) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid} | Get pbx audio
|
|
174
|
+
*UltracartClient::ConversationApi* | [**get_pbx_audio_usage**](docs/ConversationApi.md#get_pbx_audio_usage) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid}/usage | Get pbx audio usage
|
|
174
175
|
*UltracartClient::ConversationApi* | [**get_pbx_audios**](docs/ConversationApi.md#get_pbx_audios) | **GET** /conversation/pbx/audio | Get pbx audios
|
|
175
176
|
*UltracartClient::ConversationApi* | [**get_pbx_menu**](docs/ConversationApi.md#get_pbx_menu) | **GET** /conversation/pbx/menu/{conversationPbxMenuUuid} | Get pbx menu
|
|
176
177
|
*UltracartClient::ConversationApi* | [**get_pbx_menus**](docs/ConversationApi.md#get_pbx_menus) | **GET** /conversation/pbx/menu | Get pbx menus
|
|
@@ -760,6 +761,7 @@ Class | Method | HTTP request | Description
|
|
|
760
761
|
- [UltracartClient::ConversationPbxAudioResponse](docs/ConversationPbxAudioResponse.md)
|
|
761
762
|
- [UltracartClient::ConversationPbxAudioUploadUrl](docs/ConversationPbxAudioUploadUrl.md)
|
|
762
763
|
- [UltracartClient::ConversationPbxAudioUploadUrlResponse](docs/ConversationPbxAudioUploadUrlResponse.md)
|
|
764
|
+
- [UltracartClient::ConversationPbxAudioUsageResponse](docs/ConversationPbxAudioUsageResponse.md)
|
|
763
765
|
- [UltracartClient::ConversationPbxAudiosResponse](docs/ConversationPbxAudiosResponse.md)
|
|
764
766
|
- [UltracartClient::ConversationPbxCustomerSnapshotRequest](docs/ConversationPbxCustomerSnapshotRequest.md)
|
|
765
767
|
- [UltracartClient::ConversationPbxCustomerSnapshotResponse](docs/ConversationPbxCustomerSnapshotResponse.md)
|
|
@@ -1503,6 +1505,8 @@ Not every change is committed to every SDK.
|
|
|
1503
1505
|
|
|
1504
1506
|
| Version | Date | Comments |
|
|
1505
1507
|
| --: | :-: | --- |
|
|
1508
|
+
| 3.10.198 | 05/08/2024 | added echeck fields to channel partner order import |
|
|
1509
|
+
| 3.10.197 | 05/02/2024 | conversation - new method to load pbx audio usage |
|
|
1506
1510
|
| 3.10.196 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
|
|
1507
1511
|
| 3.10.195 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
|
|
1508
1512
|
| 3.10.194 | 04/24/2024 | esp - add fields for external generation on email |
|
data/docs/ChannelPartnerOrder.md
CHANGED
|
@@ -42,6 +42,16 @@ Name | Type | Description | Notes
|
|
|
42
42
|
**custom_field6** | **String** | Custom field 6 | [optional]
|
|
43
43
|
**custom_field7** | **String** | Custom field 7 | [optional]
|
|
44
44
|
**delivery_date** | **String** | Date the customer is requesting delivery on. Typically used for perishable product delivery. | [optional]
|
|
45
|
+
**echeck_bank_aba_code** | **String** | eCheck bank ABA code | [optional]
|
|
46
|
+
**echeck_bank_account_name** | **String** | eCheck bank account name | [optional]
|
|
47
|
+
**echeck_bank_account_number** | **String** | eCheck bank account number | [optional]
|
|
48
|
+
**echeck_bank_account_type** | **String** | eCheck bank account type | [optional]
|
|
49
|
+
**echeck_bank_name** | **String** | eCheck bank name | [optional]
|
|
50
|
+
**echeck_bank_owner_type** | **String** | eCheck bank owner type | [optional]
|
|
51
|
+
**echeck_customer_tax_id** | **String** | eCheck customer tax id | [optional]
|
|
52
|
+
**echeck_drivers_license_dob** | **String** | eCheck drivers license dob | [optional]
|
|
53
|
+
**echeck_drivers_license_number** | **String** | eCheck drivers license number | [optional]
|
|
54
|
+
**echeck_drivers_license_state** | **String** | eCheck drivers license state | [optional]
|
|
45
55
|
**email** | **String** | Email | [optional]
|
|
46
56
|
**gift** | **BOOLEAN** | True if this order is a gift | [optional]
|
|
47
57
|
**gift_email** | **String** | Email address of the gift recipient | [optional]
|
data/docs/ConversationApi.md
CHANGED
|
@@ -42,6 +42,7 @@ Method | HTTP request | Description
|
|
|
42
42
|
[**get_pbx_agent_voicemails**](ConversationApi.md#get_pbx_agent_voicemails) | **GET** /conversation/pbx/agent/voicemails | Get Agent Voicemails
|
|
43
43
|
[**get_pbx_agents**](ConversationApi.md#get_pbx_agents) | **GET** /conversation/pbx/agent | Get pbx agents
|
|
44
44
|
[**get_pbx_audio**](ConversationApi.md#get_pbx_audio) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid} | Get pbx audio
|
|
45
|
+
[**get_pbx_audio_usage**](ConversationApi.md#get_pbx_audio_usage) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid}/usage | Get pbx audio usage
|
|
45
46
|
[**get_pbx_audios**](ConversationApi.md#get_pbx_audios) | **GET** /conversation/pbx/audio | Get pbx audios
|
|
46
47
|
[**get_pbx_menu**](ConversationApi.md#get_pbx_menu) | **GET** /conversation/pbx/menu/{conversationPbxMenuUuid} | Get pbx menu
|
|
47
48
|
[**get_pbx_menus**](ConversationApi.md#get_pbx_menus) | **GET** /conversation/pbx/menu | Get pbx menus
|
|
@@ -1947,6 +1948,56 @@ Name | Type | Description | Notes
|
|
|
1947
1948
|
|
|
1948
1949
|
|
|
1949
1950
|
|
|
1951
|
+
# **get_pbx_audio_usage**
|
|
1952
|
+
> ConversationPbxAudioUsageResponse get_pbx_audio_usage(conversation_pbx_audio_uuid)
|
|
1953
|
+
|
|
1954
|
+
Get pbx audio usage
|
|
1955
|
+
|
|
1956
|
+
Retrieve a pbx audio usage
|
|
1957
|
+
|
|
1958
|
+
### Example
|
|
1959
|
+
```ruby
|
|
1960
|
+
# load the gem
|
|
1961
|
+
require 'ultracart_api'
|
|
1962
|
+
|
|
1963
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
1964
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
1965
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
1966
|
+
|
|
1967
|
+
|
|
1968
|
+
conversation_pbx_audio_uuid = 'conversation_pbx_audio_uuid_example' # String |
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
begin
|
|
1972
|
+
#Get pbx audio usage
|
|
1973
|
+
result = api_instance.get_pbx_audio_usage(conversation_pbx_audio_uuid)
|
|
1974
|
+
p result
|
|
1975
|
+
rescue UltracartClient::ApiError => e
|
|
1976
|
+
puts "Exception when calling ConversationApi->get_pbx_audio_usage: #{e}"
|
|
1977
|
+
end
|
|
1978
|
+
```
|
|
1979
|
+
|
|
1980
|
+
### Parameters
|
|
1981
|
+
|
|
1982
|
+
Name | Type | Description | Notes
|
|
1983
|
+
------------- | ------------- | ------------- | -------------
|
|
1984
|
+
**conversation_pbx_audio_uuid** | **String**| |
|
|
1985
|
+
|
|
1986
|
+
### Return type
|
|
1987
|
+
|
|
1988
|
+
[**ConversationPbxAudioUsageResponse**](ConversationPbxAudioUsageResponse.md)
|
|
1989
|
+
|
|
1990
|
+
### Authorization
|
|
1991
|
+
|
|
1992
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
1993
|
+
|
|
1994
|
+
### HTTP request headers
|
|
1995
|
+
|
|
1996
|
+
- **Content-Type**: application/json
|
|
1997
|
+
- **Accept**: application/json
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
|
|
1950
2001
|
# **get_pbx_audios**
|
|
1951
2002
|
> ConversationPbxAudiosResponse get_pbx_audios
|
|
1952
2003
|
|
|
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**filename** | **String** | Filename | [optional]
|
|
11
11
|
**merchant_id** | **String** | Merchant Id | [optional]
|
|
12
12
|
**mime_type** | **String** | Mime Type | [optional]
|
|
13
|
+
**url** | **String** | URL | [optional]
|
|
13
14
|
**user_id** | **Integer** | User Id | [optional]
|
|
14
15
|
**version** | **Integer** | Version | [optional]
|
|
15
16
|
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# UltracartClient::ConversationPbxAudioUsageResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**menus** | [**Array<ConversationPbxMenu>**](ConversationPbxMenu.md) | | [optional]
|
|
8
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
9
|
+
**queues** | [**Array<ConversationPbxQueue>**](ConversationPbxQueue.md) | | [optional]
|
|
10
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
11
|
+
**voicemail_mailboxes** | [**Array<ConversationPbxVoicemailMailbox>**](ConversationPbxVoicemailMailbox.md) | | [optional]
|
|
12
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
13
|
+
|
|
14
|
+
|
data/docs/OrderUtm.md
CHANGED
|
@@ -16,6 +16,12 @@ Name | Type | Description | Notes
|
|
|
16
16
|
**fbclid** | **String** | | [optional]
|
|
17
17
|
**gbraid** | **String** | | [optional]
|
|
18
18
|
**glcid** | **String** | | [optional]
|
|
19
|
+
**itm_campaign** | **String** | | [optional]
|
|
20
|
+
**itm_content** | **String** | | [optional]
|
|
21
|
+
**itm_id** | **String** | | [optional]
|
|
22
|
+
**itm_medium** | **String** | | [optional]
|
|
23
|
+
**itm_source** | **String** | | [optional]
|
|
24
|
+
**itm_term** | **String** | | [optional]
|
|
19
25
|
**msclkid** | **String** | | [optional]
|
|
20
26
|
**ttclid** | **String** | | [optional]
|
|
21
27
|
**uc_message_id** | **String** | | [optional]
|
|
@@ -2068,6 +2068,61 @@ module UltracartClient
|
|
|
2068
2068
|
end
|
|
2069
2069
|
return data, status_code, headers
|
|
2070
2070
|
end
|
|
2071
|
+
# Get pbx audio usage
|
|
2072
|
+
# Retrieve a pbx audio usage
|
|
2073
|
+
# @param conversation_pbx_audio_uuid
|
|
2074
|
+
# @param [Hash] opts the optional parameters
|
|
2075
|
+
# @return [ConversationPbxAudioUsageResponse]
|
|
2076
|
+
def get_pbx_audio_usage(conversation_pbx_audio_uuid, opts = {})
|
|
2077
|
+
data, _status_code, _headers = get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid, opts)
|
|
2078
|
+
data
|
|
2079
|
+
end
|
|
2080
|
+
|
|
2081
|
+
# Get pbx audio usage
|
|
2082
|
+
# Retrieve a pbx audio usage
|
|
2083
|
+
# @param conversation_pbx_audio_uuid
|
|
2084
|
+
# @param [Hash] opts the optional parameters
|
|
2085
|
+
# @return [Array<(ConversationPbxAudioUsageResponse, Fixnum, Hash)>] ConversationPbxAudioUsageResponse data, response status code and response headers
|
|
2086
|
+
def get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid, opts = {})
|
|
2087
|
+
if @api_client.config.debugging
|
|
2088
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_audio_usage ...'
|
|
2089
|
+
end
|
|
2090
|
+
# verify the required parameter 'conversation_pbx_audio_uuid' is set
|
|
2091
|
+
if @api_client.config.client_side_validation && conversation_pbx_audio_uuid.nil?
|
|
2092
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_audio_uuid' when calling ConversationApi.get_pbx_audio_usage"
|
|
2093
|
+
end
|
|
2094
|
+
# resource path
|
|
2095
|
+
local_var_path = '/conversation/pbx/audio/{conversationPbxAudioUuid}/usage'.sub('{' + 'conversationPbxAudioUuid' + '}', conversation_pbx_audio_uuid.to_s)
|
|
2096
|
+
|
|
2097
|
+
# query parameters
|
|
2098
|
+
query_params = {}
|
|
2099
|
+
|
|
2100
|
+
# header parameters
|
|
2101
|
+
header_params = {}
|
|
2102
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
2103
|
+
# HTTP header 'Accept' (if needed)
|
|
2104
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2105
|
+
# HTTP header 'Content-Type'
|
|
2106
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2107
|
+
|
|
2108
|
+
# form parameters
|
|
2109
|
+
form_params = {}
|
|
2110
|
+
|
|
2111
|
+
# http body (model)
|
|
2112
|
+
post_body = nil
|
|
2113
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2114
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2115
|
+
:header_params => header_params,
|
|
2116
|
+
:query_params => query_params,
|
|
2117
|
+
:form_params => form_params,
|
|
2118
|
+
:body => post_body,
|
|
2119
|
+
:auth_names => auth_names,
|
|
2120
|
+
:return_type => 'ConversationPbxAudioUsageResponse')
|
|
2121
|
+
if @api_client.config.debugging
|
|
2122
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_audio_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2123
|
+
end
|
|
2124
|
+
return data, status_code, headers
|
|
2125
|
+
end
|
|
2071
2126
|
# Get pbx audios
|
|
2072
2127
|
# Retrieve pbx audios
|
|
2073
2128
|
# @param [Hash] opts the optional parameters
|
|
@@ -131,6 +131,36 @@ module UltracartClient
|
|
|
131
131
|
# Date the customer is requesting delivery on. Typically used for perishable product delivery.
|
|
132
132
|
attr_accessor :delivery_date
|
|
133
133
|
|
|
134
|
+
# eCheck bank ABA code
|
|
135
|
+
attr_accessor :echeck_bank_aba_code
|
|
136
|
+
|
|
137
|
+
# eCheck bank account name
|
|
138
|
+
attr_accessor :echeck_bank_account_name
|
|
139
|
+
|
|
140
|
+
# eCheck bank account number
|
|
141
|
+
attr_accessor :echeck_bank_account_number
|
|
142
|
+
|
|
143
|
+
# eCheck bank account type
|
|
144
|
+
attr_accessor :echeck_bank_account_type
|
|
145
|
+
|
|
146
|
+
# eCheck bank name
|
|
147
|
+
attr_accessor :echeck_bank_name
|
|
148
|
+
|
|
149
|
+
# eCheck bank owner type
|
|
150
|
+
attr_accessor :echeck_bank_owner_type
|
|
151
|
+
|
|
152
|
+
# eCheck customer tax id
|
|
153
|
+
attr_accessor :echeck_customer_tax_id
|
|
154
|
+
|
|
155
|
+
# eCheck drivers license dob
|
|
156
|
+
attr_accessor :echeck_drivers_license_dob
|
|
157
|
+
|
|
158
|
+
# eCheck drivers license number
|
|
159
|
+
attr_accessor :echeck_drivers_license_number
|
|
160
|
+
|
|
161
|
+
# eCheck drivers license state
|
|
162
|
+
attr_accessor :echeck_drivers_license_state
|
|
163
|
+
|
|
134
164
|
# Email
|
|
135
165
|
attr_accessor :email
|
|
136
166
|
|
|
@@ -320,6 +350,16 @@ module UltracartClient
|
|
|
320
350
|
:'custom_field6' => :'custom_field6',
|
|
321
351
|
:'custom_field7' => :'custom_field7',
|
|
322
352
|
:'delivery_date' => :'delivery_date',
|
|
353
|
+
:'echeck_bank_aba_code' => :'echeck_bank_aba_code',
|
|
354
|
+
:'echeck_bank_account_name' => :'echeck_bank_account_name',
|
|
355
|
+
:'echeck_bank_account_number' => :'echeck_bank_account_number',
|
|
356
|
+
:'echeck_bank_account_type' => :'echeck_bank_account_type',
|
|
357
|
+
:'echeck_bank_name' => :'echeck_bank_name',
|
|
358
|
+
:'echeck_bank_owner_type' => :'echeck_bank_owner_type',
|
|
359
|
+
:'echeck_customer_tax_id' => :'echeck_customer_tax_id',
|
|
360
|
+
:'echeck_drivers_license_dob' => :'echeck_drivers_license_dob',
|
|
361
|
+
:'echeck_drivers_license_number' => :'echeck_drivers_license_number',
|
|
362
|
+
:'echeck_drivers_license_state' => :'echeck_drivers_license_state',
|
|
323
363
|
:'email' => :'email',
|
|
324
364
|
:'gift' => :'gift',
|
|
325
365
|
:'gift_email' => :'gift_email',
|
|
@@ -407,6 +447,16 @@ module UltracartClient
|
|
|
407
447
|
:'custom_field6' => :'String',
|
|
408
448
|
:'custom_field7' => :'String',
|
|
409
449
|
:'delivery_date' => :'String',
|
|
450
|
+
:'echeck_bank_aba_code' => :'String',
|
|
451
|
+
:'echeck_bank_account_name' => :'String',
|
|
452
|
+
:'echeck_bank_account_number' => :'String',
|
|
453
|
+
:'echeck_bank_account_type' => :'String',
|
|
454
|
+
:'echeck_bank_name' => :'String',
|
|
455
|
+
:'echeck_bank_owner_type' => :'String',
|
|
456
|
+
:'echeck_customer_tax_id' => :'String',
|
|
457
|
+
:'echeck_drivers_license_dob' => :'String',
|
|
458
|
+
:'echeck_drivers_license_number' => :'String',
|
|
459
|
+
:'echeck_drivers_license_state' => :'String',
|
|
410
460
|
:'email' => :'String',
|
|
411
461
|
:'gift' => :'BOOLEAN',
|
|
412
462
|
:'gift_email' => :'String',
|
|
@@ -618,6 +668,46 @@ module UltracartClient
|
|
|
618
668
|
self.delivery_date = attributes[:'delivery_date']
|
|
619
669
|
end
|
|
620
670
|
|
|
671
|
+
if attributes.has_key?(:'echeck_bank_aba_code')
|
|
672
|
+
self.echeck_bank_aba_code = attributes[:'echeck_bank_aba_code']
|
|
673
|
+
end
|
|
674
|
+
|
|
675
|
+
if attributes.has_key?(:'echeck_bank_account_name')
|
|
676
|
+
self.echeck_bank_account_name = attributes[:'echeck_bank_account_name']
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
if attributes.has_key?(:'echeck_bank_account_number')
|
|
680
|
+
self.echeck_bank_account_number = attributes[:'echeck_bank_account_number']
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
if attributes.has_key?(:'echeck_bank_account_type')
|
|
684
|
+
self.echeck_bank_account_type = attributes[:'echeck_bank_account_type']
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
if attributes.has_key?(:'echeck_bank_name')
|
|
688
|
+
self.echeck_bank_name = attributes[:'echeck_bank_name']
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
if attributes.has_key?(:'echeck_bank_owner_type')
|
|
692
|
+
self.echeck_bank_owner_type = attributes[:'echeck_bank_owner_type']
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
if attributes.has_key?(:'echeck_customer_tax_id')
|
|
696
|
+
self.echeck_customer_tax_id = attributes[:'echeck_customer_tax_id']
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
if attributes.has_key?(:'echeck_drivers_license_dob')
|
|
700
|
+
self.echeck_drivers_license_dob = attributes[:'echeck_drivers_license_dob']
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
if attributes.has_key?(:'echeck_drivers_license_number')
|
|
704
|
+
self.echeck_drivers_license_number = attributes[:'echeck_drivers_license_number']
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
if attributes.has_key?(:'echeck_drivers_license_state')
|
|
708
|
+
self.echeck_drivers_license_state = attributes[:'echeck_drivers_license_state']
|
|
709
|
+
end
|
|
710
|
+
|
|
621
711
|
if attributes.has_key?(:'email')
|
|
622
712
|
self.email = attributes[:'email']
|
|
623
713
|
end
|
|
@@ -969,10 +1059,14 @@ module UltracartClient
|
|
|
969
1059
|
return false if !@custom_field5.nil? && @custom_field5.to_s.length > 75
|
|
970
1060
|
return false if !@custom_field6.nil? && @custom_field6.to_s.length > 50
|
|
971
1061
|
return false if !@custom_field7.nil? && @custom_field7.to_s.length > 50
|
|
1062
|
+
echeck_bank_account_type_validator = EnumAttributeValidator.new('String', ['Checking', 'Savings'])
|
|
1063
|
+
return false unless echeck_bank_account_type_validator.valid?(@echeck_bank_account_type)
|
|
1064
|
+
echeck_bank_owner_type_validator = EnumAttributeValidator.new('String', ['Business', 'Personal'])
|
|
1065
|
+
return false unless echeck_bank_owner_type_validator.valid?(@echeck_bank_owner_type)
|
|
972
1066
|
return false if !@email.nil? && @email.to_s.length > 100
|
|
973
1067
|
return false if !@gift_email.nil? && @gift_email.to_s.length > 100
|
|
974
1068
|
return false if !@gift_message.nil? && @gift_message.to_s.length > 10000
|
|
975
|
-
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Check', 'COD', 'Credit Card', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Wire Transfer'])
|
|
1069
|
+
payment_method_validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Wire Transfer'])
|
|
976
1070
|
return false unless payment_method_validator.valid?(@payment_method)
|
|
977
1071
|
return false if !@screen_branding_theme_code.nil? && @screen_branding_theme_code.to_s.length > 10
|
|
978
1072
|
return false if !@shipto_address1.nil? && @shipto_address1.to_s.length > 50
|
|
@@ -1191,6 +1285,26 @@ module UltracartClient
|
|
|
1191
1285
|
@custom_field7 = custom_field7
|
|
1192
1286
|
end
|
|
1193
1287
|
|
|
1288
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1289
|
+
# @param [Object] echeck_bank_account_type Object to be assigned
|
|
1290
|
+
def echeck_bank_account_type=(echeck_bank_account_type)
|
|
1291
|
+
validator = EnumAttributeValidator.new('String', ['Checking', 'Savings'])
|
|
1292
|
+
unless validator.valid?(echeck_bank_account_type)
|
|
1293
|
+
fail ArgumentError, 'invalid value for "echeck_bank_account_type", must be one of #{validator.allowable_values}.'
|
|
1294
|
+
end
|
|
1295
|
+
@echeck_bank_account_type = echeck_bank_account_type
|
|
1296
|
+
end
|
|
1297
|
+
|
|
1298
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
1299
|
+
# @param [Object] echeck_bank_owner_type Object to be assigned
|
|
1300
|
+
def echeck_bank_owner_type=(echeck_bank_owner_type)
|
|
1301
|
+
validator = EnumAttributeValidator.new('String', ['Business', 'Personal'])
|
|
1302
|
+
unless validator.valid?(echeck_bank_owner_type)
|
|
1303
|
+
fail ArgumentError, 'invalid value for "echeck_bank_owner_type", must be one of #{validator.allowable_values}.'
|
|
1304
|
+
end
|
|
1305
|
+
@echeck_bank_owner_type = echeck_bank_owner_type
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1194
1308
|
# Custom attribute writer method with validation
|
|
1195
1309
|
# @param [Object] email Value to be assigned
|
|
1196
1310
|
def email=(email)
|
|
@@ -1224,7 +1338,7 @@ module UltracartClient
|
|
|
1224
1338
|
# Custom attribute writer method checking allowed values (enum).
|
|
1225
1339
|
# @param [Object] payment_method Object to be assigned
|
|
1226
1340
|
def payment_method=(payment_method)
|
|
1227
|
-
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Check', 'COD', 'Credit Card', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Wire Transfer'])
|
|
1341
|
+
validator = EnumAttributeValidator.new('String', ['Affirm', 'Amazon', 'Check', 'COD', 'Credit Card', 'eCheck', 'LoanHero', 'Money Order', 'PayPal', 'Purchase Order', 'Quote Request', 'Wire Transfer'])
|
|
1228
1342
|
unless validator.valid?(payment_method)
|
|
1229
1343
|
fail ArgumentError, 'invalid value for "payment_method", must be one of #{validator.allowable_values}.'
|
|
1230
1344
|
end
|
|
@@ -1415,6 +1529,16 @@ module UltracartClient
|
|
|
1415
1529
|
custom_field6 == o.custom_field6 &&
|
|
1416
1530
|
custom_field7 == o.custom_field7 &&
|
|
1417
1531
|
delivery_date == o.delivery_date &&
|
|
1532
|
+
echeck_bank_aba_code == o.echeck_bank_aba_code &&
|
|
1533
|
+
echeck_bank_account_name == o.echeck_bank_account_name &&
|
|
1534
|
+
echeck_bank_account_number == o.echeck_bank_account_number &&
|
|
1535
|
+
echeck_bank_account_type == o.echeck_bank_account_type &&
|
|
1536
|
+
echeck_bank_name == o.echeck_bank_name &&
|
|
1537
|
+
echeck_bank_owner_type == o.echeck_bank_owner_type &&
|
|
1538
|
+
echeck_customer_tax_id == o.echeck_customer_tax_id &&
|
|
1539
|
+
echeck_drivers_license_dob == o.echeck_drivers_license_dob &&
|
|
1540
|
+
echeck_drivers_license_number == o.echeck_drivers_license_number &&
|
|
1541
|
+
echeck_drivers_license_state == o.echeck_drivers_license_state &&
|
|
1418
1542
|
email == o.email &&
|
|
1419
1543
|
gift == o.gift &&
|
|
1420
1544
|
gift_email == o.gift_email &&
|
|
@@ -1468,7 +1592,7 @@ module UltracartClient
|
|
|
1468
1592
|
# Calculates hash code according to all attributes.
|
|
1469
1593
|
# @return [Fixnum] Hash code
|
|
1470
1594
|
def hash
|
|
1471
|
-
[advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
|
|
1595
|
+
[advertising_source, affiliate_id, affiliate_sub_id, arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, associate_with_customer_profile_if_present, auto_approve_purchase_order, billto_address1, billto_address2, billto_city, billto_company, billto_country_code, billto_day_phone, billto_evening_phone, billto_first_name, billto_last_name, billto_postal_code, billto_state_region, billto_title, cc_email, channel_partner_order_id, consider_recurring, coupons, credit_card_authorization_amount, credit_card_authorization_dts, credit_card_authorization_number, credit_card_expiration_month, credit_card_expiration_year, credit_card_type, custom_field1, custom_field2, custom_field3, custom_field4, custom_field5, custom_field6, custom_field7, delivery_date, echeck_bank_aba_code, echeck_bank_account_name, echeck_bank_account_number, echeck_bank_account_type, echeck_bank_name, echeck_bank_owner_type, echeck_customer_tax_id, echeck_drivers_license_dob, echeck_drivers_license_number, echeck_drivers_license_state, email, gift, gift_email, gift_message, hosted_fields_card_token, hosted_fields_cvv_token, insurance_application_id, insurance_claim_id, ip_address, items, least_cost_route, least_cost_route_shipping_methods, mailing_list_opt_in, no_realtime_payment_processing, payment_method, purchase_order_number, rotating_transaction_gateway_code, sales_rep_code, screen_branding_theme_code, ship_on_date, ship_to_residential, shipping_method, shipto_address1, shipto_address2, shipto_city, shipto_company, shipto_country_code, shipto_day_phone, shipto_evening_phone, shipto_first_name, shipto_last_name, shipto_postal_code, shipto_state_region, shipto_title, skip_payment_processing, special_instructions, store_completed, store_if_payment_declines, tax_county, tax_exempt, transaction, treat_warnings_as_errors].hash
|
|
1472
1596
|
end
|
|
1473
1597
|
|
|
1474
1598
|
# Builds the object from hash
|
|
@@ -35,6 +35,9 @@ module UltracartClient
|
|
|
35
35
|
# Mime Type
|
|
36
36
|
attr_accessor :mime_type
|
|
37
37
|
|
|
38
|
+
# URL
|
|
39
|
+
attr_accessor :url
|
|
40
|
+
|
|
38
41
|
# User Id
|
|
39
42
|
attr_accessor :user_id
|
|
40
43
|
|
|
@@ -51,6 +54,7 @@ module UltracartClient
|
|
|
51
54
|
:'filename' => :'filename',
|
|
52
55
|
:'merchant_id' => :'merchant_id',
|
|
53
56
|
:'mime_type' => :'mime_type',
|
|
57
|
+
:'url' => :'url',
|
|
54
58
|
:'user_id' => :'user_id',
|
|
55
59
|
:'version' => :'version'
|
|
56
60
|
}
|
|
@@ -66,6 +70,7 @@ module UltracartClient
|
|
|
66
70
|
:'filename' => :'String',
|
|
67
71
|
:'merchant_id' => :'String',
|
|
68
72
|
:'mime_type' => :'String',
|
|
73
|
+
:'url' => :'String',
|
|
69
74
|
:'user_id' => :'Integer',
|
|
70
75
|
:'version' => :'Integer'
|
|
71
76
|
}
|
|
@@ -107,6 +112,10 @@ module UltracartClient
|
|
|
107
112
|
self.mime_type = attributes[:'mime_type']
|
|
108
113
|
end
|
|
109
114
|
|
|
115
|
+
if attributes.has_key?(:'url')
|
|
116
|
+
self.url = attributes[:'url']
|
|
117
|
+
end
|
|
118
|
+
|
|
110
119
|
if attributes.has_key?(:'user_id')
|
|
111
120
|
self.user_id = attributes[:'user_id']
|
|
112
121
|
end
|
|
@@ -231,6 +240,7 @@ module UltracartClient
|
|
|
231
240
|
filename == o.filename &&
|
|
232
241
|
merchant_id == o.merchant_id &&
|
|
233
242
|
mime_type == o.mime_type &&
|
|
243
|
+
url == o.url &&
|
|
234
244
|
user_id == o.user_id &&
|
|
235
245
|
version == o.version
|
|
236
246
|
end
|
|
@@ -244,7 +254,7 @@ module UltracartClient
|
|
|
244
254
|
# Calculates hash code according to all attributes.
|
|
245
255
|
# @return [Fixnum] Hash code
|
|
246
256
|
def hash
|
|
247
|
-
[audio_s3_listing_key, conversation_pbx_audio_uuid, default_hold_music, description, filename, merchant_id, mime_type, user_id, version].hash
|
|
257
|
+
[audio_s3_listing_key, conversation_pbx_audio_uuid, default_hold_music, description, filename, merchant_id, mime_type, url, user_id, version].hash
|
|
248
258
|
end
|
|
249
259
|
|
|
250
260
|
# Builds the object from hash
|
|
@@ -0,0 +1,245 @@
|
|
|
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 ConversationPbxAudioUsageResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :menus
|
|
20
|
+
|
|
21
|
+
attr_accessor :metadata
|
|
22
|
+
|
|
23
|
+
attr_accessor :queues
|
|
24
|
+
|
|
25
|
+
# Indicates if API call was successful
|
|
26
|
+
attr_accessor :success
|
|
27
|
+
|
|
28
|
+
attr_accessor :voicemail_mailboxes
|
|
29
|
+
|
|
30
|
+
attr_accessor :warning
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'error' => :'error',
|
|
36
|
+
:'menus' => :'menus',
|
|
37
|
+
:'metadata' => :'metadata',
|
|
38
|
+
:'queues' => :'queues',
|
|
39
|
+
:'success' => :'success',
|
|
40
|
+
:'voicemail_mailboxes' => :'voicemail_mailboxes',
|
|
41
|
+
:'warning' => :'warning'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.swagger_types
|
|
47
|
+
{
|
|
48
|
+
:'error' => :'Error',
|
|
49
|
+
:'menus' => :'Array<ConversationPbxMenu>',
|
|
50
|
+
:'metadata' => :'ResponseMetadata',
|
|
51
|
+
:'queues' => :'Array<ConversationPbxQueue>',
|
|
52
|
+
:'success' => :'BOOLEAN',
|
|
53
|
+
:'voicemail_mailboxes' => :'Array<ConversationPbxVoicemailMailbox>',
|
|
54
|
+
:'warning' => :'Warning'
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
return unless attributes.is_a?(Hash)
|
|
62
|
+
|
|
63
|
+
# convert string to symbol for hash key
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'error')
|
|
67
|
+
self.error = attributes[:'error']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'menus')
|
|
71
|
+
if (value = attributes[:'menus']).is_a?(Array)
|
|
72
|
+
self.menus = value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.has_key?(:'metadata')
|
|
77
|
+
self.metadata = attributes[:'metadata']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.has_key?(:'queues')
|
|
81
|
+
if (value = attributes[:'queues']).is_a?(Array)
|
|
82
|
+
self.queues = value
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.has_key?(:'success')
|
|
87
|
+
self.success = attributes[:'success']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.has_key?(:'voicemail_mailboxes')
|
|
91
|
+
if (value = attributes[:'voicemail_mailboxes']).is_a?(Array)
|
|
92
|
+
self.voicemail_mailboxes = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.has_key?(:'warning')
|
|
97
|
+
self.warning = attributes[:'warning']
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
|
+
# @return Array for valid properties with the reasons
|
|
103
|
+
def list_invalid_properties
|
|
104
|
+
invalid_properties = Array.new
|
|
105
|
+
invalid_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Check to see if the all the properties in the model are valid
|
|
109
|
+
# @return true if the model is valid
|
|
110
|
+
def valid?
|
|
111
|
+
true
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Checks equality by comparing each attribute.
|
|
115
|
+
# @param [Object] Object to be compared
|
|
116
|
+
def ==(o)
|
|
117
|
+
return true if self.equal?(o)
|
|
118
|
+
self.class == o.class &&
|
|
119
|
+
error == o.error &&
|
|
120
|
+
menus == o.menus &&
|
|
121
|
+
metadata == o.metadata &&
|
|
122
|
+
queues == o.queues &&
|
|
123
|
+
success == o.success &&
|
|
124
|
+
voicemail_mailboxes == o.voicemail_mailboxes &&
|
|
125
|
+
warning == o.warning
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @see the `==` method
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def eql?(o)
|
|
131
|
+
self == o
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Calculates hash code according to all attributes.
|
|
135
|
+
# @return [Fixnum] Hash code
|
|
136
|
+
def hash
|
|
137
|
+
[error, menus, metadata, queues, success, voicemail_mailboxes, warning].hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Builds the object from hash
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
# @return [Object] Returns the model itself
|
|
143
|
+
def build_from_hash(attributes)
|
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
|
145
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
|
147
|
+
# check to ensure the input is an array given that the attribute
|
|
148
|
+
# is documented as an array but the input is not
|
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
151
|
+
end
|
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
self
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Deserializes the data based on type
|
|
161
|
+
# @param string type Data type
|
|
162
|
+
# @param string value Value to be deserialized
|
|
163
|
+
# @return [Object] Deserialized data
|
|
164
|
+
def _deserialize(type, value)
|
|
165
|
+
case type.to_sym
|
|
166
|
+
when :DateTime
|
|
167
|
+
DateTime.parse(value)
|
|
168
|
+
when :Date
|
|
169
|
+
Date.parse(value)
|
|
170
|
+
when :String
|
|
171
|
+
value.to_s
|
|
172
|
+
when :Integer
|
|
173
|
+
value.to_i
|
|
174
|
+
when :Float
|
|
175
|
+
value.to_f
|
|
176
|
+
when :BOOLEAN
|
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
178
|
+
true
|
|
179
|
+
else
|
|
180
|
+
false
|
|
181
|
+
end
|
|
182
|
+
when :Object
|
|
183
|
+
# generic object (usually a Hash), return directly
|
|
184
|
+
value
|
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
|
191
|
+
{}.tap do |hash|
|
|
192
|
+
value.each do |k, v|
|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
else # model
|
|
197
|
+
temp_model = UltracartClient.const_get(type).new
|
|
198
|
+
temp_model.build_from_hash(value)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the string representation of the object
|
|
203
|
+
# @return [String] String presentation of the object
|
|
204
|
+
def to_s
|
|
205
|
+
to_hash.to_s
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_body
|
|
211
|
+
to_hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
next if value.nil?
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|
|
245
|
+
end
|
|
@@ -41,6 +41,18 @@ module UltracartClient
|
|
|
41
41
|
|
|
42
42
|
attr_accessor :glcid
|
|
43
43
|
|
|
44
|
+
attr_accessor :itm_campaign
|
|
45
|
+
|
|
46
|
+
attr_accessor :itm_content
|
|
47
|
+
|
|
48
|
+
attr_accessor :itm_id
|
|
49
|
+
|
|
50
|
+
attr_accessor :itm_medium
|
|
51
|
+
|
|
52
|
+
attr_accessor :itm_source
|
|
53
|
+
|
|
54
|
+
attr_accessor :itm_term
|
|
55
|
+
|
|
44
56
|
attr_accessor :msclkid
|
|
45
57
|
|
|
46
58
|
attr_accessor :ttclid
|
|
@@ -79,6 +91,12 @@ module UltracartClient
|
|
|
79
91
|
:'fbclid' => :'fbclid',
|
|
80
92
|
:'gbraid' => :'gbraid',
|
|
81
93
|
:'glcid' => :'glcid',
|
|
94
|
+
:'itm_campaign' => :'itm_campaign',
|
|
95
|
+
:'itm_content' => :'itm_content',
|
|
96
|
+
:'itm_id' => :'itm_id',
|
|
97
|
+
:'itm_medium' => :'itm_medium',
|
|
98
|
+
:'itm_source' => :'itm_source',
|
|
99
|
+
:'itm_term' => :'itm_term',
|
|
82
100
|
:'msclkid' => :'msclkid',
|
|
83
101
|
:'ttclid' => :'ttclid',
|
|
84
102
|
:'uc_message_id' => :'uc_message_id',
|
|
@@ -109,6 +127,12 @@ module UltracartClient
|
|
|
109
127
|
:'fbclid' => :'String',
|
|
110
128
|
:'gbraid' => :'String',
|
|
111
129
|
:'glcid' => :'String',
|
|
130
|
+
:'itm_campaign' => :'String',
|
|
131
|
+
:'itm_content' => :'String',
|
|
132
|
+
:'itm_id' => :'String',
|
|
133
|
+
:'itm_medium' => :'String',
|
|
134
|
+
:'itm_source' => :'String',
|
|
135
|
+
:'itm_term' => :'String',
|
|
112
136
|
:'msclkid' => :'String',
|
|
113
137
|
:'ttclid' => :'String',
|
|
114
138
|
:'uc_message_id' => :'String',
|
|
@@ -183,6 +207,30 @@ module UltracartClient
|
|
|
183
207
|
self.glcid = attributes[:'glcid']
|
|
184
208
|
end
|
|
185
209
|
|
|
210
|
+
if attributes.has_key?(:'itm_campaign')
|
|
211
|
+
self.itm_campaign = attributes[:'itm_campaign']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.has_key?(:'itm_content')
|
|
215
|
+
self.itm_content = attributes[:'itm_content']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.has_key?(:'itm_id')
|
|
219
|
+
self.itm_id = attributes[:'itm_id']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.has_key?(:'itm_medium')
|
|
223
|
+
self.itm_medium = attributes[:'itm_medium']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.has_key?(:'itm_source')
|
|
227
|
+
self.itm_source = attributes[:'itm_source']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.has_key?(:'itm_term')
|
|
231
|
+
self.itm_term = attributes[:'itm_term']
|
|
232
|
+
end
|
|
233
|
+
|
|
186
234
|
if attributes.has_key?(:'msclkid')
|
|
187
235
|
self.msclkid = attributes[:'msclkid']
|
|
188
236
|
end
|
|
@@ -259,6 +307,12 @@ module UltracartClient
|
|
|
259
307
|
fbclid == o.fbclid &&
|
|
260
308
|
gbraid == o.gbraid &&
|
|
261
309
|
glcid == o.glcid &&
|
|
310
|
+
itm_campaign == o.itm_campaign &&
|
|
311
|
+
itm_content == o.itm_content &&
|
|
312
|
+
itm_id == o.itm_id &&
|
|
313
|
+
itm_medium == o.itm_medium &&
|
|
314
|
+
itm_source == o.itm_source &&
|
|
315
|
+
itm_term == o.itm_term &&
|
|
262
316
|
msclkid == o.msclkid &&
|
|
263
317
|
ttclid == o.ttclid &&
|
|
264
318
|
uc_message_id == o.uc_message_id &&
|
|
@@ -281,7 +335,7 @@ module UltracartClient
|
|
|
281
335
|
# Calculates hash code according to all attributes.
|
|
282
336
|
# @return [Fixnum] Hash code
|
|
283
337
|
def hash
|
|
284
|
-
[attribution_first_click_subtotal, attribution_first_click_total, attribution_last_click_subtotal, attribution_last_click_total, attribution_linear_subtotal, attribution_linear_total, attribution_position_based_subtotal, attribution_position_based_total, click_dts, facebook_ad_id, fbclid, gbraid, glcid, msclkid, ttclid, uc_message_id, utm_campaign, utm_content, utm_id, utm_medium, utm_source, utm_term, vmcid, wbraid].hash
|
|
338
|
+
[attribution_first_click_subtotal, attribution_first_click_total, attribution_last_click_subtotal, attribution_last_click_total, attribution_linear_subtotal, attribution_linear_total, attribution_position_based_subtotal, attribution_position_based_total, click_dts, facebook_ad_id, fbclid, gbraid, glcid, itm_campaign, itm_content, itm_id, itm_medium, itm_source, itm_term, msclkid, ttclid, uc_message_id, utm_campaign, utm_content, utm_id, utm_medium, utm_source, utm_term, vmcid, wbraid].hash
|
|
285
339
|
end
|
|
286
340
|
|
|
287
341
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -194,6 +194,7 @@ require 'ultracart_api/models/conversation_pbx_audio'
|
|
|
194
194
|
require 'ultracart_api/models/conversation_pbx_audio_response'
|
|
195
195
|
require 'ultracart_api/models/conversation_pbx_audio_upload_url'
|
|
196
196
|
require 'ultracart_api/models/conversation_pbx_audio_upload_url_response'
|
|
197
|
+
require 'ultracart_api/models/conversation_pbx_audio_usage_response'
|
|
197
198
|
require 'ultracart_api/models/conversation_pbx_audios_response'
|
|
198
199
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
|
|
199
200
|
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.198
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-05-
|
|
11
|
+
date: 2024-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -404,6 +404,7 @@ files:
|
|
|
404
404
|
- docs/ConversationPbxAudioResponse.md
|
|
405
405
|
- docs/ConversationPbxAudioUploadUrl.md
|
|
406
406
|
- docs/ConversationPbxAudioUploadUrlResponse.md
|
|
407
|
+
- docs/ConversationPbxAudioUsageResponse.md
|
|
407
408
|
- docs/ConversationPbxAudiosResponse.md
|
|
408
409
|
- docs/ConversationPbxCustomerSnapshotRequest.md
|
|
409
410
|
- docs/ConversationPbxCustomerSnapshotResponse.md
|
|
@@ -1293,6 +1294,7 @@ files:
|
|
|
1293
1294
|
- lib/ultracart_api/models/conversation_pbx_audio_response.rb
|
|
1294
1295
|
- lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb
|
|
1295
1296
|
- lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb
|
|
1297
|
+
- lib/ultracart_api/models/conversation_pbx_audio_usage_response.rb
|
|
1296
1298
|
- lib/ultracart_api/models/conversation_pbx_audios_response.rb
|
|
1297
1299
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
|
|
1298
1300
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb
|