ultracart_api 3.11.17 → 3.11.19
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 +10 -4
- data/docs/ConversationVirtualAgentCapabilities.md +3 -0
- data/docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md +9 -0
- data/docs/CustomDashboard.md +1 -0
- data/docs/CustomDashboardExecutionParameter.md +11 -0
- data/docs/CustomReportExecutionParameter.md +1 -0
- data/docs/EmailEditorValuesResponse.md +12 -0
- data/docs/EmailWebhookEditorValuesResponse.md +0 -1
- data/docs/StorefrontApi.md +49 -0
- data/lib/ultracart_api/api/storefront_api.rb +53 -0
- data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +38 -6
- data/lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb +193 -0
- data/lib/ultracart_api/models/custom_dashboard.rb +15 -4
- data/lib/ultracart_api/models/custom_dashboard_execution_parameter.rb +211 -0
- data/lib/ultracart_api/models/custom_report_execution_parameter.rb +10 -1
- data/lib/ultracart_api/models/email_editor_values_response.rb +223 -0
- data/lib/ultracart_api/models/email_webhook_editor_values_response.rb +1 -12
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e732d8cc0f0d4a756220396cf16ae8d67d3421e003504600772831fb44338017
|
4
|
+
data.tar.gz: 2236cbf50c29c360b03640870b4f8a66926100724af7009d1e7f5466243d7f7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b1efa6024cfd94dbb4f30e42802400ced7217413f7fcac312b00791678b04316ea514cc3c0e0769f31c4008e678298c54d279072ea1a1c8d50984b093051d10
|
7
|
+
data.tar.gz: 9208add239c38ec5bf0d68e785350aaa46bec7308ec47fc27f562f46e9723fc033017af8bbf1b88ec081862846e79b162bdf2cb780fe3ab1a1ef55b2bfb9891b
|
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.11.
|
10
|
+
- Package version: 3.11.19
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
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.11.
|
27
|
+
gem install ./ultracart_api-3.11.19.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.11.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.11.19.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.11.
|
35
|
+
gem 'ultracart_api', '~> 3.11.19'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -410,6 +410,7 @@ Class | Method | HTTP request | Description
|
|
410
410
|
*UltracartClient::StorefrontApi* | [**get_email_campaigns**](docs/StorefrontApi.md#get_email_campaigns) | **GET** /storefront/{storefront_oid}/email/campaigns | Get email campaigns
|
411
411
|
*UltracartClient::StorefrontApi* | [**get_email_campaigns_with_stats**](docs/StorefrontApi.md#get_email_campaigns_with_stats) | **GET** /storefront/{storefront_oid}/email/campaignsWithStats/{stat_days} | Get email campaigns with stats
|
412
412
|
*UltracartClient::StorefrontApi* | [**get_email_commseq**](docs/StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
|
413
|
+
*UltracartClient::StorefrontApi* | [**get_email_commseq_editor_values**](docs/StorefrontApi.md#get_email_commseq_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/editorValues | Get email merchant specific editor values
|
413
414
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_email_stats**](docs/StorefrontApi.md#get_email_commseq_email_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/emailStats | Get email communication sequence emails stats
|
414
415
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_postcard_stats**](docs/StorefrontApi.md#get_email_commseq_postcard_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/postcardStats | Get email communication sequence postcard stats
|
415
416
|
*UltracartClient::StorefrontApi* | [**get_email_commseq_postcard_tracking**](docs/StorefrontApi.md#get_email_commseq_postcard_tracking) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking | Get email communication postcard tracking
|
@@ -836,6 +837,7 @@ Class | Method | HTTP request | Description
|
|
836
837
|
- [UltracartClient::ConversationVirtualAgentBudgetResponse](docs/ConversationVirtualAgentBudgetResponse.md)
|
837
838
|
- [UltracartClient::ConversationVirtualAgentCapabilities](docs/ConversationVirtualAgentCapabilities.md)
|
838
839
|
- [UltracartClient::ConversationVirtualAgentCapabilitiesResponse](docs/ConversationVirtualAgentCapabilitiesResponse.md)
|
840
|
+
- [UltracartClient::ConversationVirtualAgentCapabilityZohoDeskDepartment](docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md)
|
839
841
|
- [UltracartClient::ConversationWebchatContext](docs/ConversationWebchatContext.md)
|
840
842
|
- [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
|
841
843
|
- [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
|
@@ -917,6 +919,7 @@ Class | Method | HTTP request | Description
|
|
917
919
|
- [UltracartClient::CouponsResponse](docs/CouponsResponse.md)
|
918
920
|
- [UltracartClient::Currency](docs/Currency.md)
|
919
921
|
- [UltracartClient::CustomDashboard](docs/CustomDashboard.md)
|
922
|
+
- [UltracartClient::CustomDashboardExecutionParameter](docs/CustomDashboardExecutionParameter.md)
|
920
923
|
- [UltracartClient::CustomDashboardPage](docs/CustomDashboardPage.md)
|
921
924
|
- [UltracartClient::CustomDashboardPageReport](docs/CustomDashboardPageReport.md)
|
922
925
|
- [UltracartClient::CustomDashboardResponse](docs/CustomDashboardResponse.md)
|
@@ -1018,6 +1021,7 @@ Class | Method | HTTP request | Description
|
|
1018
1021
|
- [UltracartClient::EmailDashboardStatsResponse](docs/EmailDashboardStatsResponse.md)
|
1019
1022
|
- [UltracartClient::EmailDomain](docs/EmailDomain.md)
|
1020
1023
|
- [UltracartClient::EmailEditorTokenResponse](docs/EmailEditorTokenResponse.md)
|
1024
|
+
- [UltracartClient::EmailEditorValuesResponse](docs/EmailEditorValuesResponse.md)
|
1021
1025
|
- [UltracartClient::EmailFlow](docs/EmailFlow.md)
|
1022
1026
|
- [UltracartClient::EmailFlowBackPopulateRequest](docs/EmailFlowBackPopulateRequest.md)
|
1023
1027
|
- [UltracartClient::EmailFlowBackPopulateResponse](docs/EmailFlowBackPopulateResponse.md)
|
@@ -1567,6 +1571,8 @@ Not every change is committed to every SDK.
|
|
1567
1571
|
|
1568
1572
|
| Version | Date | Comments |
|
1569
1573
|
| --: | :-: | --- |
|
1574
|
+
| 3.11.19 | 08/04/2025 | conversations api - add zoho departments to getCapabilities call |
|
1575
|
+
| 3.11.18 | 08/04/2025 | more internal development on loyalty step for storefront flows |
|
1570
1576
|
| 3.11.17 | 08/04/2025 | small changes to internal flow app to support loyalty tier moves |
|
1571
1577
|
| 3.11.16 | 07/28/2025 | updated doc samples |
|
1572
1578
|
| 3.11.15 | 07/28/2025 | new order methods for blocking and unblocking refunds |
|
@@ -10,9 +10,12 @@ Name | Type | Description | Notes
|
|
10
10
|
**open_support_ticket** | **BOOLEAN** | | [optional]
|
11
11
|
**open_support_ticket_channel** | **String** | Channel to use to open the support ticket | [optional]
|
12
12
|
**open_support_ticket_channel_email** | **String** | Email to send support ticket to | [optional]
|
13
|
+
**open_support_ticket_zoho_desk_department_id** | **String** | Department ID to open a Zoho Desk ticket for | [optional]
|
13
14
|
**pause_subscription** | **BOOLEAN** | | [optional]
|
14
15
|
**resume_subscription** | **BOOLEAN** | | [optional]
|
15
16
|
**transfer_chat_to_live_agent** | **BOOLEAN** | | [optional]
|
16
17
|
**update_subscription_credit_card** | **BOOLEAN** | | [optional]
|
18
|
+
**zoho_desk_available** | **BOOLEAN** | True if Zoho Desk is connected to UltraCart | [optional]
|
19
|
+
**zoho_desk_departments** | [**Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>**](ConversationVirtualAgentCapabilityZohoDeskDepartment.md) | Array of Zoho Desk Department if zoho desk is connected to UltraCart | [optional]
|
17
20
|
|
18
21
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# UltracartClient::ConversationVirtualAgentCapabilityZohoDeskDepartment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**department_id** | **String** | | [optional]
|
7
|
+
**department_name** | **String** | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/CustomDashboard.md
CHANGED
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
|
7
7
|
**merchant_id** | **String** | | [optional]
|
8
8
|
**name** | **String** | | [optional]
|
9
9
|
**pages** | [**Array<CustomDashboardPage>**](CustomDashboardPage.md) | | [optional]
|
10
|
+
**parameters** | [**Array<CustomDashboardExecutionParameter>**](CustomDashboardExecutionParameter.md) | | [optional]
|
10
11
|
|
11
12
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# UltracartClient::CustomDashboardExecutionParameter
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | | [optional]
|
7
|
+
**quick_pick_key** | **String** | | [optional]
|
8
|
+
**type** | **String** | | [optional]
|
9
|
+
**value** | **String** | | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# UltracartClient::EmailEditorValuesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
7
|
+
**loyalty_tiers** | **Array<String>** | | [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
|
+
|
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
|
|
6
6
|
**available_expansions** | **Array<String>** | | [optional]
|
7
7
|
**available_tokens** | **Array<String>** | | [optional]
|
8
8
|
**error** | [**Error**](Error.md) | | [optional]
|
9
|
-
**loyalty_tiers** | **Array<String>** | | [optional]
|
10
9
|
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
11
10
|
**rest_object_type** | **String** | | [optional]
|
12
11
|
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
data/docs/StorefrontApi.md
CHANGED
@@ -44,6 +44,7 @@ Method | HTTP request | Description
|
|
44
44
|
[**get_email_campaigns**](StorefrontApi.md#get_email_campaigns) | **GET** /storefront/{storefront_oid}/email/campaigns | Get email campaigns
|
45
45
|
[**get_email_campaigns_with_stats**](StorefrontApi.md#get_email_campaigns_with_stats) | **GET** /storefront/{storefront_oid}/email/campaignsWithStats/{stat_days} | Get email campaigns with stats
|
46
46
|
[**get_email_commseq**](StorefrontApi.md#get_email_commseq) | **GET** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid} | Get email commseq
|
47
|
+
[**get_email_commseq_editor_values**](StorefrontApi.md#get_email_commseq_editor_values) | **GET** /storefront/{storefront_oid}/email/commseqs/editorValues | Get email merchant specific editor values
|
47
48
|
[**get_email_commseq_email_stats**](StorefrontApi.md#get_email_commseq_email_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/emailStats | Get email communication sequence emails stats
|
48
49
|
[**get_email_commseq_postcard_stats**](StorefrontApi.md#get_email_commseq_postcard_stats) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/postcardStats | Get email communication sequence postcard stats
|
49
50
|
[**get_email_commseq_postcard_tracking**](StorefrontApi.md#get_email_commseq_postcard_tracking) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/tracking | Get email communication postcard tracking
|
@@ -2203,6 +2204,54 @@ Name | Type | Description | Notes
|
|
2203
2204
|
|
2204
2205
|
|
2205
2206
|
|
2207
|
+
# **get_email_commseq_editor_values**
|
2208
|
+
> EmailEditorValuesResponse get_email_commseq_editor_values(storefront_oid)
|
2209
|
+
|
2210
|
+
Get email merchant specific editor values
|
2211
|
+
|
2212
|
+
### Example
|
2213
|
+
```ruby
|
2214
|
+
# load the gem
|
2215
|
+
require 'ultracart_api'
|
2216
|
+
|
2217
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
2218
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
2219
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
2220
|
+
|
2221
|
+
|
2222
|
+
storefront_oid = 56 # Integer |
|
2223
|
+
|
2224
|
+
|
2225
|
+
begin
|
2226
|
+
#Get email merchant specific editor values
|
2227
|
+
result = api_instance.get_email_commseq_editor_values(storefront_oid)
|
2228
|
+
p result
|
2229
|
+
rescue UltracartClient::ApiError => e
|
2230
|
+
puts "Exception when calling StorefrontApi->get_email_commseq_editor_values: #{e}"
|
2231
|
+
end
|
2232
|
+
```
|
2233
|
+
|
2234
|
+
### Parameters
|
2235
|
+
|
2236
|
+
Name | Type | Description | Notes
|
2237
|
+
------------- | ------------- | ------------- | -------------
|
2238
|
+
**storefront_oid** | **Integer**| |
|
2239
|
+
|
2240
|
+
### Return type
|
2241
|
+
|
2242
|
+
[**EmailEditorValuesResponse**](EmailEditorValuesResponse.md)
|
2243
|
+
|
2244
|
+
### Authorization
|
2245
|
+
|
2246
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
2247
|
+
|
2248
|
+
### HTTP request headers
|
2249
|
+
|
2250
|
+
- **Content-Type**: application/json
|
2251
|
+
- **Accept**: application/json
|
2252
|
+
|
2253
|
+
|
2254
|
+
|
2206
2255
|
# **get_email_commseq_email_stats**
|
2207
2256
|
> EmailStatSummaryResponse get_email_commseq_email_stats(storefront_oid, commseq_uuid, stats_request)
|
2208
2257
|
|
@@ -2327,6 +2327,59 @@ module UltracartClient
|
|
2327
2327
|
end
|
2328
2328
|
return data, status_code, headers
|
2329
2329
|
end
|
2330
|
+
# Get email merchant specific editor values
|
2331
|
+
# @param storefront_oid
|
2332
|
+
# @param [Hash] opts the optional parameters
|
2333
|
+
# @return [EmailEditorValuesResponse]
|
2334
|
+
def get_email_commseq_editor_values(storefront_oid, opts = {})
|
2335
|
+
data, _status_code, _headers = get_email_commseq_editor_values_with_http_info(storefront_oid, opts)
|
2336
|
+
data
|
2337
|
+
end
|
2338
|
+
|
2339
|
+
# Get email merchant specific editor values
|
2340
|
+
# @param storefront_oid
|
2341
|
+
# @param [Hash] opts the optional parameters
|
2342
|
+
# @return [Array<(EmailEditorValuesResponse, Fixnum, Hash)>] EmailEditorValuesResponse data, response status code and response headers
|
2343
|
+
def get_email_commseq_editor_values_with_http_info(storefront_oid, opts = {})
|
2344
|
+
if @api_client.config.debugging
|
2345
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_commseq_editor_values ...'
|
2346
|
+
end
|
2347
|
+
# verify the required parameter 'storefront_oid' is set
|
2348
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
2349
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_commseq_editor_values"
|
2350
|
+
end
|
2351
|
+
# resource path
|
2352
|
+
local_var_path = '/storefront/{storefront_oid}/email/commseqs/editorValues'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s)
|
2353
|
+
|
2354
|
+
# query parameters
|
2355
|
+
query_params = {}
|
2356
|
+
|
2357
|
+
# header parameters
|
2358
|
+
header_params = {}
|
2359
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2360
|
+
# HTTP header 'Accept' (if needed)
|
2361
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2362
|
+
# HTTP header 'Content-Type'
|
2363
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2364
|
+
|
2365
|
+
# form parameters
|
2366
|
+
form_params = {}
|
2367
|
+
|
2368
|
+
# http body (model)
|
2369
|
+
post_body = nil
|
2370
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
2371
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2372
|
+
:header_params => header_params,
|
2373
|
+
:query_params => query_params,
|
2374
|
+
:form_params => form_params,
|
2375
|
+
:body => post_body,
|
2376
|
+
:auth_names => auth_names,
|
2377
|
+
:return_type => 'EmailEditorValuesResponse')
|
2378
|
+
if @api_client.config.debugging
|
2379
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_email_commseq_editor_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2380
|
+
end
|
2381
|
+
return data, status_code, headers
|
2382
|
+
end
|
2330
2383
|
# Get email communication sequence emails stats
|
2331
2384
|
# @param storefront_oid
|
2332
2385
|
# @param commseq_uuid
|
@@ -30,6 +30,9 @@ module UltracartClient
|
|
30
30
|
# Email to send support ticket to
|
31
31
|
attr_accessor :open_support_ticket_channel_email
|
32
32
|
|
33
|
+
# Department ID to open a Zoho Desk ticket for
|
34
|
+
attr_accessor :open_support_ticket_zoho_desk_department_id
|
35
|
+
|
33
36
|
attr_accessor :pause_subscription
|
34
37
|
|
35
38
|
attr_accessor :resume_subscription
|
@@ -38,6 +41,12 @@ module UltracartClient
|
|
38
41
|
|
39
42
|
attr_accessor :update_subscription_credit_card
|
40
43
|
|
44
|
+
# True if Zoho Desk is connected to UltraCart
|
45
|
+
attr_accessor :zoho_desk_available
|
46
|
+
|
47
|
+
# Array of Zoho Desk Department if zoho desk is connected to UltraCart
|
48
|
+
attr_accessor :zoho_desk_departments
|
49
|
+
|
41
50
|
class EnumAttributeValidator
|
42
51
|
attr_reader :datatype
|
43
52
|
attr_reader :allowable_values
|
@@ -70,10 +79,13 @@ module UltracartClient
|
|
70
79
|
:'open_support_ticket' => :'open_support_ticket',
|
71
80
|
:'open_support_ticket_channel' => :'open_support_ticket_channel',
|
72
81
|
:'open_support_ticket_channel_email' => :'open_support_ticket_channel_email',
|
82
|
+
:'open_support_ticket_zoho_desk_department_id' => :'open_support_ticket_zoho_desk_department_id',
|
73
83
|
:'pause_subscription' => :'pause_subscription',
|
74
84
|
:'resume_subscription' => :'resume_subscription',
|
75
85
|
:'transfer_chat_to_live_agent' => :'transfer_chat_to_live_agent',
|
76
|
-
:'update_subscription_credit_card' => :'update_subscription_credit_card'
|
86
|
+
:'update_subscription_credit_card' => :'update_subscription_credit_card',
|
87
|
+
:'zoho_desk_available' => :'zoho_desk_available',
|
88
|
+
:'zoho_desk_departments' => :'zoho_desk_departments'
|
77
89
|
}
|
78
90
|
end
|
79
91
|
|
@@ -87,10 +99,13 @@ module UltracartClient
|
|
87
99
|
:'open_support_ticket' => :'BOOLEAN',
|
88
100
|
:'open_support_ticket_channel' => :'String',
|
89
101
|
:'open_support_ticket_channel_email' => :'String',
|
102
|
+
:'open_support_ticket_zoho_desk_department_id' => :'String',
|
90
103
|
:'pause_subscription' => :'BOOLEAN',
|
91
104
|
:'resume_subscription' => :'BOOLEAN',
|
92
105
|
:'transfer_chat_to_live_agent' => :'BOOLEAN',
|
93
|
-
:'update_subscription_credit_card' => :'BOOLEAN'
|
106
|
+
:'update_subscription_credit_card' => :'BOOLEAN',
|
107
|
+
:'zoho_desk_available' => :'BOOLEAN',
|
108
|
+
:'zoho_desk_departments' => :'Array<ConversationVirtualAgentCapabilityZohoDeskDepartment>'
|
94
109
|
}
|
95
110
|
end
|
96
111
|
|
@@ -130,6 +145,10 @@ module UltracartClient
|
|
130
145
|
self.open_support_ticket_channel_email = attributes[:'open_support_ticket_channel_email']
|
131
146
|
end
|
132
147
|
|
148
|
+
if attributes.has_key?(:'open_support_ticket_zoho_desk_department_id')
|
149
|
+
self.open_support_ticket_zoho_desk_department_id = attributes[:'open_support_ticket_zoho_desk_department_id']
|
150
|
+
end
|
151
|
+
|
133
152
|
if attributes.has_key?(:'pause_subscription')
|
134
153
|
self.pause_subscription = attributes[:'pause_subscription']
|
135
154
|
end
|
@@ -145,6 +164,16 @@ module UltracartClient
|
|
145
164
|
if attributes.has_key?(:'update_subscription_credit_card')
|
146
165
|
self.update_subscription_credit_card = attributes[:'update_subscription_credit_card']
|
147
166
|
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'zoho_desk_available')
|
169
|
+
self.zoho_desk_available = attributes[:'zoho_desk_available']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'zoho_desk_departments')
|
173
|
+
if (value = attributes[:'zoho_desk_departments']).is_a?(Array)
|
174
|
+
self.zoho_desk_departments = value
|
175
|
+
end
|
176
|
+
end
|
148
177
|
end
|
149
178
|
|
150
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,7 +186,7 @@ module UltracartClient
|
|
157
186
|
# Check to see if the all the properties in the model are valid
|
158
187
|
# @return true if the model is valid
|
159
188
|
def valid?
|
160
|
-
open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', '
|
189
|
+
open_support_ticket_channel_validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
|
161
190
|
return false unless open_support_ticket_channel_validator.valid?(@open_support_ticket_channel)
|
162
191
|
true
|
163
192
|
end
|
@@ -165,7 +194,7 @@ module UltracartClient
|
|
165
194
|
# Custom attribute writer method checking allowed values (enum).
|
166
195
|
# @param [Object] open_support_ticket_channel Object to be assigned
|
167
196
|
def open_support_ticket_channel=(open_support_ticket_channel)
|
168
|
-
validator = EnumAttributeValidator.new('String', ['none', 'email', '
|
197
|
+
validator = EnumAttributeValidator.new('String', ['none', 'email', 'ultracart_task', 'zoho_desk_ticket'])
|
169
198
|
unless validator.valid?(open_support_ticket_channel)
|
170
199
|
fail ArgumentError, 'invalid value for "open_support_ticket_channel", must be one of #{validator.allowable_values}.'
|
171
200
|
end
|
@@ -184,10 +213,13 @@ module UltracartClient
|
|
184
213
|
open_support_ticket == o.open_support_ticket &&
|
185
214
|
open_support_ticket_channel == o.open_support_ticket_channel &&
|
186
215
|
open_support_ticket_channel_email == o.open_support_ticket_channel_email &&
|
216
|
+
open_support_ticket_zoho_desk_department_id == o.open_support_ticket_zoho_desk_department_id &&
|
187
217
|
pause_subscription == o.pause_subscription &&
|
188
218
|
resume_subscription == o.resume_subscription &&
|
189
219
|
transfer_chat_to_live_agent == o.transfer_chat_to_live_agent &&
|
190
|
-
update_subscription_credit_card == o.update_subscription_credit_card
|
220
|
+
update_subscription_credit_card == o.update_subscription_credit_card &&
|
221
|
+
zoho_desk_available == o.zoho_desk_available &&
|
222
|
+
zoho_desk_departments == o.zoho_desk_departments
|
191
223
|
end
|
192
224
|
|
193
225
|
# @see the `==` method
|
@@ -199,7 +231,7 @@ module UltracartClient
|
|
199
231
|
# Calculates hash code according to all attributes.
|
200
232
|
# @return [Fixnum] Hash code
|
201
233
|
def hash
|
202
|
-
[cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card].hash
|
234
|
+
[cancel_subscription, delay_subscription, lookup_order_information, lookup_subscription_information, open_support_ticket, open_support_ticket_channel, open_support_ticket_channel_email, open_support_ticket_zoho_desk_department_id, pause_subscription, resume_subscription, transfer_chat_to_live_agent, update_subscription_credit_card, zoho_desk_available, zoho_desk_departments].hash
|
203
235
|
end
|
204
236
|
|
205
237
|
# Builds the object from hash
|
@@ -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 ConversationVirtualAgentCapabilityZohoDeskDepartment
|
17
|
+
attr_accessor :department_id
|
18
|
+
|
19
|
+
attr_accessor :department_name
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'department_id' => :'department_id',
|
25
|
+
:'department_name' => :'department_name'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'department_id' => :'String',
|
33
|
+
:'department_name' => :'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?(:'department_id')
|
46
|
+
self.department_id = attributes[:'department_id']
|
47
|
+
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'department_name')
|
50
|
+
self.department_name = attributes[:'department_name']
|
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
|
+
department_id == o.department_id &&
|
73
|
+
department_name == o.department_name
|
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
|
+
[department_id, department_name].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
|
@@ -22,13 +22,16 @@ module UltracartClient
|
|
22
22
|
|
23
23
|
attr_accessor :pages
|
24
24
|
|
25
|
+
attr_accessor :parameters
|
26
|
+
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
28
30
|
:'data_warehouse_custom_dashboard_oid' => :'data_warehouse_custom_dashboard_oid',
|
29
31
|
:'merchant_id' => :'merchant_id',
|
30
32
|
:'name' => :'name',
|
31
|
-
:'pages' => :'pages'
|
33
|
+
:'pages' => :'pages',
|
34
|
+
:'parameters' => :'parameters'
|
32
35
|
}
|
33
36
|
end
|
34
37
|
|
@@ -38,7 +41,8 @@ module UltracartClient
|
|
38
41
|
:'data_warehouse_custom_dashboard_oid' => :'Integer',
|
39
42
|
:'merchant_id' => :'String',
|
40
43
|
:'name' => :'String',
|
41
|
-
:'pages' => :'Array<CustomDashboardPage>'
|
44
|
+
:'pages' => :'Array<CustomDashboardPage>',
|
45
|
+
:'parameters' => :'Array<CustomDashboardExecutionParameter>'
|
42
46
|
}
|
43
47
|
end
|
44
48
|
|
@@ -67,6 +71,12 @@ module UltracartClient
|
|
67
71
|
self.pages = value
|
68
72
|
end
|
69
73
|
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'parameters')
|
76
|
+
if (value = attributes[:'parameters']).is_a?(Array)
|
77
|
+
self.parameters = value
|
78
|
+
end
|
79
|
+
end
|
70
80
|
end
|
71
81
|
|
72
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -90,7 +100,8 @@ module UltracartClient
|
|
90
100
|
data_warehouse_custom_dashboard_oid == o.data_warehouse_custom_dashboard_oid &&
|
91
101
|
merchant_id == o.merchant_id &&
|
92
102
|
name == o.name &&
|
93
|
-
pages == o.pages
|
103
|
+
pages == o.pages &&
|
104
|
+
parameters == o.parameters
|
94
105
|
end
|
95
106
|
|
96
107
|
# @see the `==` method
|
@@ -102,7 +113,7 @@ module UltracartClient
|
|
102
113
|
# Calculates hash code according to all attributes.
|
103
114
|
# @return [Fixnum] Hash code
|
104
115
|
def hash
|
105
|
-
[data_warehouse_custom_dashboard_oid, merchant_id, name, pages].hash
|
116
|
+
[data_warehouse_custom_dashboard_oid, merchant_id, name, pages, parameters].hash
|
106
117
|
end
|
107
118
|
|
108
119
|
# Builds the object from hash
|
@@ -0,0 +1,211 @@
|
|
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 CustomDashboardExecutionParameter
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
attr_accessor :quick_pick_key
|
20
|
+
|
21
|
+
attr_accessor :type
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'name' => :'name',
|
29
|
+
:'quick_pick_key' => :'quick_pick_key',
|
30
|
+
:'type' => :'type',
|
31
|
+
:'value' => :'value'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.swagger_types
|
37
|
+
{
|
38
|
+
:'name' => :'String',
|
39
|
+
:'quick_pick_key' => :'String',
|
40
|
+
:'type' => :'String',
|
41
|
+
:'value' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
return unless attributes.is_a?(Hash)
|
49
|
+
|
50
|
+
# convert string to symbol for hash key
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
52
|
+
|
53
|
+
if attributes.has_key?(:'name')
|
54
|
+
self.name = attributes[:'name']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'quick_pick_key')
|
58
|
+
self.quick_pick_key = attributes[:'quick_pick_key']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'type')
|
62
|
+
self.type = attributes[:'type']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'value')
|
66
|
+
self.value = attributes[:'value']
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
71
|
+
# @return Array for valid properties with the reasons
|
72
|
+
def list_invalid_properties
|
73
|
+
invalid_properties = Array.new
|
74
|
+
invalid_properties
|
75
|
+
end
|
76
|
+
|
77
|
+
# Check to see if the all the properties in the model are valid
|
78
|
+
# @return true if the model is valid
|
79
|
+
def valid?
|
80
|
+
true
|
81
|
+
end
|
82
|
+
|
83
|
+
# Checks equality by comparing each attribute.
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
name == o.name &&
|
89
|
+
quick_pick_key == o.quick_pick_key &&
|
90
|
+
type == o.type &&
|
91
|
+
value == o.value
|
92
|
+
end
|
93
|
+
|
94
|
+
# @see the `==` method
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def eql?(o)
|
97
|
+
self == o
|
98
|
+
end
|
99
|
+
|
100
|
+
# Calculates hash code according to all attributes.
|
101
|
+
# @return [Fixnum] Hash code
|
102
|
+
def hash
|
103
|
+
[name, quick_pick_key, type, value].hash
|
104
|
+
end
|
105
|
+
|
106
|
+
# Builds the object from hash
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
108
|
+
# @return [Object] Returns the model itself
|
109
|
+
def build_from_hash(attributes)
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
111
|
+
self.class.swagger_types.each_pair do |key, type|
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
116
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
119
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
121
|
+
end
|
122
|
+
|
123
|
+
self
|
124
|
+
end
|
125
|
+
|
126
|
+
# Deserializes the data based on type
|
127
|
+
# @param string type Data type
|
128
|
+
# @param string value Value to be deserialized
|
129
|
+
# @return [Object] Deserialized data
|
130
|
+
def _deserialize(type, value)
|
131
|
+
case type.to_sym
|
132
|
+
when :DateTime
|
133
|
+
DateTime.parse(value)
|
134
|
+
when :Date
|
135
|
+
Date.parse(value)
|
136
|
+
when :String
|
137
|
+
value.to_s
|
138
|
+
when :Integer
|
139
|
+
value.to_i
|
140
|
+
when :Float
|
141
|
+
value.to_f
|
142
|
+
when :BOOLEAN
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
144
|
+
true
|
145
|
+
else
|
146
|
+
false
|
147
|
+
end
|
148
|
+
when :Object
|
149
|
+
# generic object (usually a Hash), return directly
|
150
|
+
value
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
157
|
+
{}.tap do |hash|
|
158
|
+
value.each do |k, v|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
160
|
+
end
|
161
|
+
end
|
162
|
+
else # model
|
163
|
+
temp_model = UltracartClient.const_get(type).new
|
164
|
+
temp_model.build_from_hash(value)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the string representation of the object
|
169
|
+
# @return [String] String presentation of the object
|
170
|
+
def to_s
|
171
|
+
to_hash.to_s
|
172
|
+
end
|
173
|
+
|
174
|
+
# to_body is an alias to to_hash (backward compatibility)
|
175
|
+
# @return [Hash] Returns the object in the form of hash
|
176
|
+
def to_body
|
177
|
+
to_hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the object in the form of hash
|
181
|
+
# @return [Hash] Returns the object in the form of hash
|
182
|
+
def to_hash
|
183
|
+
hash = {}
|
184
|
+
self.class.attribute_map.each_pair do |attr, param|
|
185
|
+
value = self.send(attr)
|
186
|
+
next if value.nil?
|
187
|
+
hash[param] = _to_hash(value)
|
188
|
+
end
|
189
|
+
hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Outputs non-array value in the form of hash
|
193
|
+
# For object, use to_hash. Otherwise, just return the value
|
194
|
+
# @param [Object] value Any valid value
|
195
|
+
# @return [Hash] Returns the value in the form of hash
|
196
|
+
def _to_hash(value)
|
197
|
+
if value.is_a?(Array)
|
198
|
+
value.compact.map { |v| _to_hash(v) }
|
199
|
+
elsif value.is_a?(Hash)
|
200
|
+
{}.tap do |hash|
|
201
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
202
|
+
end
|
203
|
+
elsif value.respond_to? :to_hash
|
204
|
+
value.to_hash
|
205
|
+
else
|
206
|
+
value
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
end
|
211
|
+
end
|
@@ -16,6 +16,8 @@ module UltracartClient
|
|
16
16
|
class CustomReportExecutionParameter
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
|
+
attr_accessor :quick_pick_key
|
20
|
+
|
19
21
|
attr_accessor :type
|
20
22
|
|
21
23
|
attr_accessor :value
|
@@ -24,6 +26,7 @@ module UltracartClient
|
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
26
28
|
:'name' => :'name',
|
29
|
+
:'quick_pick_key' => :'quick_pick_key',
|
27
30
|
:'type' => :'type',
|
28
31
|
:'value' => :'value'
|
29
32
|
}
|
@@ -33,6 +36,7 @@ module UltracartClient
|
|
33
36
|
def self.swagger_types
|
34
37
|
{
|
35
38
|
:'name' => :'String',
|
39
|
+
:'quick_pick_key' => :'String',
|
36
40
|
:'type' => :'String',
|
37
41
|
:'value' => :'String'
|
38
42
|
}
|
@@ -50,6 +54,10 @@ module UltracartClient
|
|
50
54
|
self.name = attributes[:'name']
|
51
55
|
end
|
52
56
|
|
57
|
+
if attributes.has_key?(:'quick_pick_key')
|
58
|
+
self.quick_pick_key = attributes[:'quick_pick_key']
|
59
|
+
end
|
60
|
+
|
53
61
|
if attributes.has_key?(:'type')
|
54
62
|
self.type = attributes[:'type']
|
55
63
|
end
|
@@ -78,6 +86,7 @@ module UltracartClient
|
|
78
86
|
return true if self.equal?(o)
|
79
87
|
self.class == o.class &&
|
80
88
|
name == o.name &&
|
89
|
+
quick_pick_key == o.quick_pick_key &&
|
81
90
|
type == o.type &&
|
82
91
|
value == o.value
|
83
92
|
end
|
@@ -91,7 +100,7 @@ module UltracartClient
|
|
91
100
|
# Calculates hash code according to all attributes.
|
92
101
|
# @return [Fixnum] Hash code
|
93
102
|
def hash
|
94
|
-
[name, type, value].hash
|
103
|
+
[name, quick_pick_key, type, value].hash
|
95
104
|
end
|
96
105
|
|
97
106
|
# Builds the object from hash
|
@@ -0,0 +1,223 @@
|
|
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 EmailEditorValuesResponse
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
attr_accessor :loyalty_tiers
|
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
|
+
:'error' => :'error',
|
32
|
+
:'loyalty_tiers' => :'loyalty_tiers',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'success' => :'success',
|
35
|
+
:'warning' => :'warning'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'error' => :'Error',
|
43
|
+
:'loyalty_tiers' => :'Array<String>',
|
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?(:'error')
|
59
|
+
self.error = attributes[:'error']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'loyalty_tiers')
|
63
|
+
if (value = attributes[:'loyalty_tiers']).is_a?(Array)
|
64
|
+
self.loyalty_tiers = value
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'metadata')
|
69
|
+
self.metadata = attributes[:'metadata']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'success')
|
73
|
+
self.success = attributes[:'success']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'warning')
|
77
|
+
self.warning = attributes[:'warning']
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
invalid_properties
|
86
|
+
end
|
87
|
+
|
88
|
+
# Check to see if the all the properties in the model are valid
|
89
|
+
# @return true if the model is valid
|
90
|
+
def valid?
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Checks equality by comparing each attribute.
|
95
|
+
# @param [Object] Object to be compared
|
96
|
+
def ==(o)
|
97
|
+
return true if self.equal?(o)
|
98
|
+
self.class == o.class &&
|
99
|
+
error == o.error &&
|
100
|
+
loyalty_tiers == o.loyalty_tiers &&
|
101
|
+
metadata == o.metadata &&
|
102
|
+
success == o.success &&
|
103
|
+
warning == o.warning
|
104
|
+
end
|
105
|
+
|
106
|
+
# @see the `==` method
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def eql?(o)
|
109
|
+
self == o
|
110
|
+
end
|
111
|
+
|
112
|
+
# Calculates hash code according to all attributes.
|
113
|
+
# @return [Fixnum] Hash code
|
114
|
+
def hash
|
115
|
+
[error, loyalty_tiers, metadata, success, warning].hash
|
116
|
+
end
|
117
|
+
|
118
|
+
# Builds the object from hash
|
119
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
120
|
+
# @return [Object] Returns the model itself
|
121
|
+
def build_from_hash(attributes)
|
122
|
+
return nil unless attributes.is_a?(Hash)
|
123
|
+
self.class.swagger_types.each_pair do |key, type|
|
124
|
+
if type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :DateTime
|
145
|
+
DateTime.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :BOOLEAN
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
temp_model = UltracartClient.const_get(type).new
|
176
|
+
temp_model.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
next if value.nil?
|
199
|
+
hash[param] = _to_hash(value)
|
200
|
+
end
|
201
|
+
hash
|
202
|
+
end
|
203
|
+
|
204
|
+
# Outputs non-array value in the form of hash
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
206
|
+
# @param [Object] value Any valid value
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
208
|
+
def _to_hash(value)
|
209
|
+
if value.is_a?(Array)
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
211
|
+
elsif value.is_a?(Hash)
|
212
|
+
{}.tap do |hash|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
214
|
+
end
|
215
|
+
elsif value.respond_to? :to_hash
|
216
|
+
value.to_hash
|
217
|
+
else
|
218
|
+
value
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
end
|
223
|
+
end
|
@@ -20,8 +20,6 @@ module UltracartClient
|
|
20
20
|
|
21
21
|
attr_accessor :error
|
22
22
|
|
23
|
-
attr_accessor :loyalty_tiers
|
24
|
-
|
25
23
|
attr_accessor :metadata
|
26
24
|
|
27
25
|
attr_accessor :rest_object_type
|
@@ -37,7 +35,6 @@ module UltracartClient
|
|
37
35
|
:'available_expansions' => :'available_expansions',
|
38
36
|
:'available_tokens' => :'available_tokens',
|
39
37
|
:'error' => :'error',
|
40
|
-
:'loyalty_tiers' => :'loyalty_tiers',
|
41
38
|
:'metadata' => :'metadata',
|
42
39
|
:'rest_object_type' => :'rest_object_type',
|
43
40
|
:'success' => :'success',
|
@@ -51,7 +48,6 @@ module UltracartClient
|
|
51
48
|
:'available_expansions' => :'Array<String>',
|
52
49
|
:'available_tokens' => :'Array<String>',
|
53
50
|
:'error' => :'Error',
|
54
|
-
:'loyalty_tiers' => :'Array<String>',
|
55
51
|
:'metadata' => :'ResponseMetadata',
|
56
52
|
:'rest_object_type' => :'String',
|
57
53
|
:'success' => :'BOOLEAN',
|
@@ -83,12 +79,6 @@ module UltracartClient
|
|
83
79
|
self.error = attributes[:'error']
|
84
80
|
end
|
85
81
|
|
86
|
-
if attributes.has_key?(:'loyalty_tiers')
|
87
|
-
if (value = attributes[:'loyalty_tiers']).is_a?(Array)
|
88
|
-
self.loyalty_tiers = value
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
82
|
if attributes.has_key?(:'metadata')
|
93
83
|
self.metadata = attributes[:'metadata']
|
94
84
|
end
|
@@ -127,7 +117,6 @@ module UltracartClient
|
|
127
117
|
available_expansions == o.available_expansions &&
|
128
118
|
available_tokens == o.available_tokens &&
|
129
119
|
error == o.error &&
|
130
|
-
loyalty_tiers == o.loyalty_tiers &&
|
131
120
|
metadata == o.metadata &&
|
132
121
|
rest_object_type == o.rest_object_type &&
|
133
122
|
success == o.success &&
|
@@ -143,7 +132,7 @@ module UltracartClient
|
|
143
132
|
# Calculates hash code according to all attributes.
|
144
133
|
# @return [Fixnum] Hash code
|
145
134
|
def hash
|
146
|
-
[available_expansions, available_tokens, error,
|
135
|
+
[available_expansions, available_tokens, error, metadata, rest_object_type, success, warning].hash
|
147
136
|
end
|
148
137
|
|
149
138
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -242,6 +242,7 @@ require 'ultracart_api/models/conversation_virtual_agent_budget'
|
|
242
242
|
require 'ultracart_api/models/conversation_virtual_agent_budget_response'
|
243
243
|
require 'ultracart_api/models/conversation_virtual_agent_capabilities'
|
244
244
|
require 'ultracart_api/models/conversation_virtual_agent_capabilities_response'
|
245
|
+
require 'ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department'
|
245
246
|
require 'ultracart_api/models/conversation_webchat_context'
|
246
247
|
require 'ultracart_api/models/conversation_webchat_queue_status'
|
247
248
|
require 'ultracart_api/models/conversation_webchat_queue_status_agent'
|
@@ -323,6 +324,7 @@ require 'ultracart_api/models/coupons_request'
|
|
323
324
|
require 'ultracart_api/models/coupons_response'
|
324
325
|
require 'ultracart_api/models/currency'
|
325
326
|
require 'ultracart_api/models/custom_dashboard'
|
327
|
+
require 'ultracart_api/models/custom_dashboard_execution_parameter'
|
326
328
|
require 'ultracart_api/models/custom_dashboard_page'
|
327
329
|
require 'ultracart_api/models/custom_dashboard_page_report'
|
328
330
|
require 'ultracart_api/models/custom_dashboard_response'
|
@@ -424,6 +426,7 @@ require 'ultracart_api/models/email_dashboard_activity_response'
|
|
424
426
|
require 'ultracart_api/models/email_dashboard_stats_response'
|
425
427
|
require 'ultracart_api/models/email_domain'
|
426
428
|
require 'ultracart_api/models/email_editor_token_response'
|
429
|
+
require 'ultracart_api/models/email_editor_values_response'
|
427
430
|
require 'ultracart_api/models/email_flow'
|
428
431
|
require 'ultracart_api/models/email_flow_back_populate_request'
|
429
432
|
require 'ultracart_api/models/email_flow_back_populate_response'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultracart_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.11.
|
4
|
+
version: 3.11.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
@@ -452,6 +452,7 @@ files:
|
|
452
452
|
- docs/ConversationVirtualAgentBudgetResponse.md
|
453
453
|
- docs/ConversationVirtualAgentCapabilities.md
|
454
454
|
- docs/ConversationVirtualAgentCapabilitiesResponse.md
|
455
|
+
- docs/ConversationVirtualAgentCapabilityZohoDeskDepartment.md
|
455
456
|
- docs/ConversationWebchatContext.md
|
456
457
|
- docs/ConversationWebchatQueueStatus.md
|
457
458
|
- docs/ConversationWebchatQueueStatusAgent.md
|
@@ -534,6 +535,7 @@ files:
|
|
534
535
|
- docs/CouponsResponse.md
|
535
536
|
- docs/Currency.md
|
536
537
|
- docs/CustomDashboard.md
|
538
|
+
- docs/CustomDashboardExecutionParameter.md
|
537
539
|
- docs/CustomDashboardPage.md
|
538
540
|
- docs/CustomDashboardPageReport.md
|
539
541
|
- docs/CustomDashboardResponse.md
|
@@ -637,6 +639,7 @@ files:
|
|
637
639
|
- docs/EmailDashboardStatsResponse.md
|
638
640
|
- docs/EmailDomain.md
|
639
641
|
- docs/EmailEditorTokenResponse.md
|
642
|
+
- docs/EmailEditorValuesResponse.md
|
640
643
|
- docs/EmailFlow.md
|
641
644
|
- docs/EmailFlowBackPopulateRequest.md
|
642
645
|
- docs/EmailFlowBackPopulateResponse.md
|
@@ -1377,6 +1380,7 @@ files:
|
|
1377
1380
|
- lib/ultracart_api/models/conversation_virtual_agent_budget_response.rb
|
1378
1381
|
- lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb
|
1379
1382
|
- lib/ultracart_api/models/conversation_virtual_agent_capabilities_response.rb
|
1383
|
+
- lib/ultracart_api/models/conversation_virtual_agent_capability_zoho_desk_department.rb
|
1380
1384
|
- lib/ultracart_api/models/conversation_webchat_context.rb
|
1381
1385
|
- lib/ultracart_api/models/conversation_webchat_queue_status.rb
|
1382
1386
|
- lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
|
@@ -1458,6 +1462,7 @@ files:
|
|
1458
1462
|
- lib/ultracart_api/models/coupons_response.rb
|
1459
1463
|
- lib/ultracart_api/models/currency.rb
|
1460
1464
|
- lib/ultracart_api/models/custom_dashboard.rb
|
1465
|
+
- lib/ultracart_api/models/custom_dashboard_execution_parameter.rb
|
1461
1466
|
- lib/ultracart_api/models/custom_dashboard_page.rb
|
1462
1467
|
- lib/ultracart_api/models/custom_dashboard_page_report.rb
|
1463
1468
|
- lib/ultracart_api/models/custom_dashboard_response.rb
|
@@ -1559,6 +1564,7 @@ files:
|
|
1559
1564
|
- lib/ultracart_api/models/email_dashboard_stats_response.rb
|
1560
1565
|
- lib/ultracart_api/models/email_domain.rb
|
1561
1566
|
- lib/ultracart_api/models/email_editor_token_response.rb
|
1567
|
+
- lib/ultracart_api/models/email_editor_values_response.rb
|
1562
1568
|
- lib/ultracart_api/models/email_flow.rb
|
1563
1569
|
- lib/ultracart_api/models/email_flow_back_populate_request.rb
|
1564
1570
|
- lib/ultracart_api/models/email_flow_back_populate_response.rb
|