ultracart_api 3.10.30 → 3.10.33
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 +11 -4
- data/docs/ConversationEventTyping.md +10 -0
- data/docs/ConversationSummary.md +1 -0
- data/docs/ConversationWebsocketMessage.md +2 -0
- data/docs/EmailCommseqSequenceTestRequest.md +15 -0
- data/docs/EmailCommseqSequenceTestResponse.md +11 -0
- data/docs/StorefrontApi.md +55 -0
- data/lib/ultracart_api/api/storefront_api.rb +65 -0
- data/lib/ultracart_api/models/conversation_event_typing.rb +202 -0
- data/lib/ultracart_api/models/conversation_summary.rb +12 -1
- data/lib/ultracart_api/models/conversation_websocket_message.rb +21 -3
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +249 -0
- data/lib/ultracart_api/models/email_commseq_sequence_test_response.rb +212 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b8d8596e85e94c5c7340d24fc86583c22136dd7daf5bd2e6573544aa27d4502
|
|
4
|
+
data.tar.gz: 2e9a0d126b6dba45d9d725521e550db4db29bf1b3dc497b9c2ea1523ba8b50dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ad8dc43d42359596d5489d79e9072b307157d3c4ce744e45c9e41257a9b223ff949ea4e06176ce1305631ee627cd0af7ec79064454c3417502cffbb4890d2f1
|
|
7
|
+
data.tar.gz: f563b828346a77fc63a2307cc6b048cec736835ff349c098f4bfac43048173308ca113495aae66ec3f59cc70f18c9d867b11d1bc5ee2a166074f920ec414cf44
|
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.33
|
|
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.33.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.33.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.33'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -364,6 +364,7 @@ Class | Method | HTTP request | Description
|
|
|
364
364
|
*UltracartClient::StorefrontApi* | [**send_email_test**](docs/StorefrontApi.md#send_email_test) | **POST** /storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/test | Send email test
|
|
365
365
|
*UltracartClient::StorefrontApi* | [**send_postcard_test**](docs/StorefrontApi.md#send_postcard_test) | **POST** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/test | Send postcard test
|
|
366
366
|
*UltracartClient::StorefrontApi* | [**send_webhook_test**](docs/StorefrontApi.md#send_webhook_test) | **POST** /storefront/{storefront_oid}/email/webhooks/test | Send webhook test
|
|
367
|
+
*UltracartClient::StorefrontApi* | [**sequence_test**](docs/StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test
|
|
367
368
|
*UltracartClient::StorefrontApi* | [**start_email_campaign**](docs/StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign
|
|
368
369
|
*UltracartClient::StorefrontApi* | [**subscribe_to_email_list**](docs/StorefrontApi.md#subscribe_to_email_list) | **POST** /storefront/{storefront_oid}/email/lists/{email_list_uuid}/subscribe | Subscribe customers to email list
|
|
369
370
|
*UltracartClient::StorefrontApi* | [**unfavorite_screen_recording**](docs/StorefrontApi.md#unfavorite_screen_recording) | **DELETE** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/favorite | Remove favorite flag on screen recording
|
|
@@ -563,6 +564,7 @@ Class | Method | HTTP request | Description
|
|
|
563
564
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
|
564
565
|
- [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
|
|
565
566
|
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
|
567
|
+
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
|
566
568
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
|
567
569
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
|
568
570
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
|
@@ -702,6 +704,8 @@ Class | Method | HTTP request | Description
|
|
|
702
704
|
- [UltracartClient::EmailCommseqPostcardsRequest](docs/EmailCommseqPostcardsRequest.md)
|
|
703
705
|
- [UltracartClient::EmailCommseqPostcardsResponse](docs/EmailCommseqPostcardsResponse.md)
|
|
704
706
|
- [UltracartClient::EmailCommseqResponse](docs/EmailCommseqResponse.md)
|
|
707
|
+
- [UltracartClient::EmailCommseqSequenceTestRequest](docs/EmailCommseqSequenceTestRequest.md)
|
|
708
|
+
- [UltracartClient::EmailCommseqSequenceTestResponse](docs/EmailCommseqSequenceTestResponse.md)
|
|
705
709
|
- [UltracartClient::EmailCommseqStat](docs/EmailCommseqStat.md)
|
|
706
710
|
- [UltracartClient::EmailCommseqStatResponse](docs/EmailCommseqStatResponse.md)
|
|
707
711
|
- [UltracartClient::EmailCommseqStep](docs/EmailCommseqStep.md)
|
|
@@ -1168,6 +1172,9 @@ Not every change is committed to every SDK.
|
|
|
1168
1172
|
|
|
1169
1173
|
| Version | Date | Comments |
|
|
1170
1174
|
| --: | :-: | --- |
|
|
1175
|
+
| 3.10.33 | 08/03/2022 | conversation summary participants |
|
|
1176
|
+
| 3.10.32 | 08/03/2022 | more conversation events |
|
|
1177
|
+
| 3.10.31 | 08/02/2022 | storefront communication sequence test method |
|
|
1171
1178
|
| 3.10.30 | 08/01/2022 | conversation event refinement |
|
|
1172
1179
|
| 3.10.29 | 07/29/2022 | conversation development |
|
|
1173
1180
|
| 3.10.28 | 07/28/2022 | conversation bug fixes |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# UltracartClient::ConversationEventTyping
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**author_conversation_participant_arn** | **String** | | [optional]
|
|
7
|
+
**author_conversation_participant_name** | **String** | | [optional]
|
|
8
|
+
**value** | **String** | | [optional]
|
|
9
|
+
|
|
10
|
+
|
data/docs/ConversationSummary.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**last_message_dts** | **String** | Last message date/time | [optional]
|
|
13
13
|
**merchant_id** | **String** | | [optional]
|
|
14
14
|
**message_count** | **Integer** | | [optional]
|
|
15
|
+
**participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional]
|
|
15
16
|
**start_dts** | **String** | Start of the conversation date/time | [optional]
|
|
16
17
|
**unread_messages** | **BOOLEAN** | | [optional]
|
|
17
18
|
**visible** | **BOOLEAN** | | [optional]
|
|
@@ -7,10 +7,12 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**event_conversation_closed** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
8
8
|
**event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
9
9
|
**event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
10
|
+
**event_participant_update** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
10
11
|
**event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional]
|
|
11
12
|
**event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
|
|
12
13
|
**event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional]
|
|
13
14
|
**event_type** | **String** | Type of event | [optional]
|
|
15
|
+
**event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional]
|
|
14
16
|
**event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
|
15
17
|
**message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
|
16
18
|
**type** | **String** | Type of message | [optional]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqSequenceTestRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**cart_id** | **String** | | [optional]
|
|
7
|
+
**cart_item_ids** | **Array<String>** | | [optional]
|
|
8
|
+
**esp_commseq_uuid** | **String** | | [optional]
|
|
9
|
+
**name** | **String** | | [optional]
|
|
10
|
+
**order_id** | **String** | | [optional]
|
|
11
|
+
**please_review** | **BOOLEAN** | | [optional]
|
|
12
|
+
**send_to_email** | **String** | | [optional]
|
|
13
|
+
**send_to_logged_in_user** | **BOOLEAN** | | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqSequenceTestResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
8
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
9
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
10
|
+
|
|
11
|
+
|
data/docs/StorefrontApi.md
CHANGED
|
@@ -140,6 +140,7 @@ Method | HTTP request | Description
|
|
|
140
140
|
[**send_email_test**](StorefrontApi.md#send_email_test) | **POST** /storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/test | Send email test
|
|
141
141
|
[**send_postcard_test**](StorefrontApi.md#send_postcard_test) | **POST** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/test | Send postcard test
|
|
142
142
|
[**send_webhook_test**](StorefrontApi.md#send_webhook_test) | **POST** /storefront/{storefront_oid}/email/webhooks/test | Send webhook test
|
|
143
|
+
[**sequence_test**](StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test
|
|
143
144
|
[**start_email_campaign**](StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign
|
|
144
145
|
[**subscribe_to_email_list**](StorefrontApi.md#subscribe_to_email_list) | **POST** /storefront/{storefront_oid}/email/lists/{email_list_uuid}/subscribe | Subscribe customers to email list
|
|
145
146
|
[**unfavorite_screen_recording**](StorefrontApi.md#unfavorite_screen_recording) | **DELETE** /storefront/{storefront_oid}/screen_recordings/{screen_recording_uuid}/favorite | Remove favorite flag on screen recording
|
|
@@ -7145,6 +7146,60 @@ Name | Type | Description | Notes
|
|
|
7145
7146
|
|
|
7146
7147
|
|
|
7147
7148
|
|
|
7149
|
+
# **sequence_test**
|
|
7150
|
+
> EmailCommseqSequenceTestResponse sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
|
7151
|
+
|
|
7152
|
+
Sequence test
|
|
7153
|
+
|
|
7154
|
+
### Example
|
|
7155
|
+
```ruby
|
|
7156
|
+
# load the gem
|
|
7157
|
+
require 'ultracart_api'
|
|
7158
|
+
|
|
7159
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
7160
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
7161
|
+
api_instance = UltracartClient::StorefrontApi.new_using_api_key(simple_key, false, false)
|
|
7162
|
+
|
|
7163
|
+
|
|
7164
|
+
storefront_oid = 56 # Integer |
|
|
7165
|
+
|
|
7166
|
+
commseq_uuid = 'commseq_uuid_example' # String |
|
|
7167
|
+
|
|
7168
|
+
email_commseq_sequence_test_request = UltracartClient::EmailCommseqSequenceTestRequest.new # EmailCommseqSequenceTestRequest | Commseq test request
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
begin
|
|
7172
|
+
#Sequence test
|
|
7173
|
+
result = api_instance.sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
|
7174
|
+
p result
|
|
7175
|
+
rescue UltracartClient::ApiError => e
|
|
7176
|
+
puts "Exception when calling StorefrontApi->sequence_test: #{e}"
|
|
7177
|
+
end
|
|
7178
|
+
```
|
|
7179
|
+
|
|
7180
|
+
### Parameters
|
|
7181
|
+
|
|
7182
|
+
Name | Type | Description | Notes
|
|
7183
|
+
------------- | ------------- | ------------- | -------------
|
|
7184
|
+
**storefront_oid** | **Integer**| |
|
|
7185
|
+
**commseq_uuid** | **String**| |
|
|
7186
|
+
**email_commseq_sequence_test_request** | [**EmailCommseqSequenceTestRequest**](EmailCommseqSequenceTestRequest.md)| Commseq test request |
|
|
7187
|
+
|
|
7188
|
+
### Return type
|
|
7189
|
+
|
|
7190
|
+
[**EmailCommseqSequenceTestResponse**](EmailCommseqSequenceTestResponse.md)
|
|
7191
|
+
|
|
7192
|
+
### Authorization
|
|
7193
|
+
|
|
7194
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
7195
|
+
|
|
7196
|
+
### HTTP request headers
|
|
7197
|
+
|
|
7198
|
+
- **Content-Type**: application/json
|
|
7199
|
+
- **Accept**: application/json
|
|
7200
|
+
|
|
7201
|
+
|
|
7202
|
+
|
|
7148
7203
|
# **start_email_campaign**
|
|
7149
7204
|
> BaseResponse start_email_campaign(storefront_oid, email_campaign_uuid)
|
|
7150
7205
|
|
|
@@ -7979,6 +7979,71 @@ module UltracartClient
|
|
|
7979
7979
|
end
|
|
7980
7980
|
return data, status_code, headers
|
|
7981
7981
|
end
|
|
7982
|
+
# Sequence test
|
|
7983
|
+
# @param storefront_oid
|
|
7984
|
+
# @param commseq_uuid
|
|
7985
|
+
# @param email_commseq_sequence_test_request Commseq test request
|
|
7986
|
+
# @param [Hash] opts the optional parameters
|
|
7987
|
+
# @return [EmailCommseqSequenceTestResponse]
|
|
7988
|
+
def sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts = {})
|
|
7989
|
+
data, _status_code, _headers = sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts)
|
|
7990
|
+
data
|
|
7991
|
+
end
|
|
7992
|
+
|
|
7993
|
+
# Sequence test
|
|
7994
|
+
# @param storefront_oid
|
|
7995
|
+
# @param commseq_uuid
|
|
7996
|
+
# @param email_commseq_sequence_test_request Commseq test request
|
|
7997
|
+
# @param [Hash] opts the optional parameters
|
|
7998
|
+
# @return [Array<(EmailCommseqSequenceTestResponse, Fixnum, Hash)>] EmailCommseqSequenceTestResponse data, response status code and response headers
|
|
7999
|
+
def sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts = {})
|
|
8000
|
+
if @api_client.config.debugging
|
|
8001
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.sequence_test ...'
|
|
8002
|
+
end
|
|
8003
|
+
# verify the required parameter 'storefront_oid' is set
|
|
8004
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
8005
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.sequence_test"
|
|
8006
|
+
end
|
|
8007
|
+
# verify the required parameter 'commseq_uuid' is set
|
|
8008
|
+
if @api_client.config.client_side_validation && commseq_uuid.nil?
|
|
8009
|
+
fail ArgumentError, "Missing the required parameter 'commseq_uuid' when calling StorefrontApi.sequence_test"
|
|
8010
|
+
end
|
|
8011
|
+
# verify the required parameter 'email_commseq_sequence_test_request' is set
|
|
8012
|
+
if @api_client.config.client_side_validation && email_commseq_sequence_test_request.nil?
|
|
8013
|
+
fail ArgumentError, "Missing the required parameter 'email_commseq_sequence_test_request' when calling StorefrontApi.sequence_test"
|
|
8014
|
+
end
|
|
8015
|
+
# resource path
|
|
8016
|
+
local_var_path = '/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test'.sub('{' + 'storefront_oid' + '}', storefront_oid.to_s).sub('{' + 'commseq_uuid' + '}', commseq_uuid.to_s)
|
|
8017
|
+
|
|
8018
|
+
# query parameters
|
|
8019
|
+
query_params = {}
|
|
8020
|
+
|
|
8021
|
+
# header parameters
|
|
8022
|
+
header_params = {}
|
|
8023
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
8024
|
+
# HTTP header 'Accept' (if needed)
|
|
8025
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
8026
|
+
# HTTP header 'Content-Type'
|
|
8027
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
8028
|
+
|
|
8029
|
+
# form parameters
|
|
8030
|
+
form_params = {}
|
|
8031
|
+
|
|
8032
|
+
# http body (model)
|
|
8033
|
+
post_body = @api_client.object_to_http_body(email_commseq_sequence_test_request)
|
|
8034
|
+
auth_names = ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
8035
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
8036
|
+
:header_params => header_params,
|
|
8037
|
+
:query_params => query_params,
|
|
8038
|
+
:form_params => form_params,
|
|
8039
|
+
:body => post_body,
|
|
8040
|
+
:auth_names => auth_names,
|
|
8041
|
+
:return_type => 'EmailCommseqSequenceTestResponse')
|
|
8042
|
+
if @api_client.config.debugging
|
|
8043
|
+
@api_client.config.logger.debug "API called: StorefrontApi#sequence_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
8044
|
+
end
|
|
8045
|
+
return data, status_code, headers
|
|
8046
|
+
end
|
|
7982
8047
|
# Start email campaign
|
|
7983
8048
|
# @param storefront_oid
|
|
7984
8049
|
# @param email_campaign_uuid
|
|
@@ -0,0 +1,202 @@
|
|
|
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 ConversationEventTyping
|
|
17
|
+
attr_accessor :author_conversation_participant_arn
|
|
18
|
+
|
|
19
|
+
attr_accessor :author_conversation_participant_name
|
|
20
|
+
|
|
21
|
+
attr_accessor :value
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'author_conversation_participant_arn' => :'author_conversation_participant_arn',
|
|
27
|
+
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
|
28
|
+
:'value' => :'value'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.swagger_types
|
|
34
|
+
{
|
|
35
|
+
:'author_conversation_participant_arn' => :'String',
|
|
36
|
+
:'author_conversation_participant_name' => :'String',
|
|
37
|
+
:'value' => :'String'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Initializes the object
|
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
43
|
+
def initialize(attributes = {})
|
|
44
|
+
return unless attributes.is_a?(Hash)
|
|
45
|
+
|
|
46
|
+
# convert string to symbol for hash key
|
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
48
|
+
|
|
49
|
+
if attributes.has_key?(:'author_conversation_participant_arn')
|
|
50
|
+
self.author_conversation_participant_arn = attributes[:'author_conversation_participant_arn']
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
if attributes.has_key?(:'author_conversation_participant_name')
|
|
54
|
+
self.author_conversation_participant_name = attributes[:'author_conversation_participant_name']
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
if attributes.has_key?(:'value')
|
|
58
|
+
self.value = attributes[:'value']
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
63
|
+
# @return Array for valid properties with the reasons
|
|
64
|
+
def list_invalid_properties
|
|
65
|
+
invalid_properties = Array.new
|
|
66
|
+
invalid_properties
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Check to see if the all the properties in the model are valid
|
|
70
|
+
# @return true if the model is valid
|
|
71
|
+
def valid?
|
|
72
|
+
true
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Checks equality by comparing each attribute.
|
|
76
|
+
# @param [Object] Object to be compared
|
|
77
|
+
def ==(o)
|
|
78
|
+
return true if self.equal?(o)
|
|
79
|
+
self.class == o.class &&
|
|
80
|
+
author_conversation_participant_arn == o.author_conversation_participant_arn &&
|
|
81
|
+
author_conversation_participant_name == o.author_conversation_participant_name &&
|
|
82
|
+
value == o.value
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# @see the `==` method
|
|
86
|
+
# @param [Object] Object to be compared
|
|
87
|
+
def eql?(o)
|
|
88
|
+
self == o
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Calculates hash code according to all attributes.
|
|
92
|
+
# @return [Fixnum] Hash code
|
|
93
|
+
def hash
|
|
94
|
+
[author_conversation_participant_arn, author_conversation_participant_name, value].hash
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Builds the object from hash
|
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
|
+
# @return [Object] Returns the model itself
|
|
100
|
+
def build_from_hash(attributes)
|
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
|
104
|
+
# check to ensure the input is an array given that the attribute
|
|
105
|
+
# is documented as an array but the input is not
|
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
108
|
+
end
|
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
111
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
self
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Deserializes the data based on type
|
|
118
|
+
# @param string type Data type
|
|
119
|
+
# @param string value Value to be deserialized
|
|
120
|
+
# @return [Object] Deserialized data
|
|
121
|
+
def _deserialize(type, value)
|
|
122
|
+
case type.to_sym
|
|
123
|
+
when :DateTime
|
|
124
|
+
DateTime.parse(value)
|
|
125
|
+
when :Date
|
|
126
|
+
Date.parse(value)
|
|
127
|
+
when :String
|
|
128
|
+
value.to_s
|
|
129
|
+
when :Integer
|
|
130
|
+
value.to_i
|
|
131
|
+
when :Float
|
|
132
|
+
value.to_f
|
|
133
|
+
when :BOOLEAN
|
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
|
+
true
|
|
136
|
+
else
|
|
137
|
+
false
|
|
138
|
+
end
|
|
139
|
+
when :Object
|
|
140
|
+
# generic object (usually a Hash), return directly
|
|
141
|
+
value
|
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
|
148
|
+
{}.tap do |hash|
|
|
149
|
+
value.each do |k, v|
|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
else # model
|
|
154
|
+
temp_model = UltracartClient.const_get(type).new
|
|
155
|
+
temp_model.build_from_hash(value)
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Returns the string representation of the object
|
|
160
|
+
# @return [String] String presentation of the object
|
|
161
|
+
def to_s
|
|
162
|
+
to_hash.to_s
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
|
167
|
+
def to_body
|
|
168
|
+
to_hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Returns the object in the form of hash
|
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
|
173
|
+
def to_hash
|
|
174
|
+
hash = {}
|
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
176
|
+
value = self.send(attr)
|
|
177
|
+
next if value.nil?
|
|
178
|
+
hash[param] = _to_hash(value)
|
|
179
|
+
end
|
|
180
|
+
hash
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Outputs non-array value in the form of hash
|
|
184
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
185
|
+
# @param [Object] value Any valid value
|
|
186
|
+
# @return [Hash] Returns the value in the form of hash
|
|
187
|
+
def _to_hash(value)
|
|
188
|
+
if value.is_a?(Array)
|
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
|
190
|
+
elsif value.is_a?(Hash)
|
|
191
|
+
{}.tap do |hash|
|
|
192
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
193
|
+
end
|
|
194
|
+
elsif value.respond_to? :to_hash
|
|
195
|
+
value.to_hash
|
|
196
|
+
else
|
|
197
|
+
value
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
end
|
|
202
|
+
end
|
|
@@ -33,6 +33,8 @@ module UltracartClient
|
|
|
33
33
|
|
|
34
34
|
attr_accessor :message_count
|
|
35
35
|
|
|
36
|
+
attr_accessor :participants
|
|
37
|
+
|
|
36
38
|
# Start of the conversation date/time
|
|
37
39
|
attr_accessor :start_dts
|
|
38
40
|
|
|
@@ -52,6 +54,7 @@ module UltracartClient
|
|
|
52
54
|
:'last_message_dts' => :'last_message_dts',
|
|
53
55
|
:'merchant_id' => :'merchant_id',
|
|
54
56
|
:'message_count' => :'message_count',
|
|
57
|
+
:'participants' => :'participants',
|
|
55
58
|
:'start_dts' => :'start_dts',
|
|
56
59
|
:'unread_messages' => :'unread_messages',
|
|
57
60
|
:'visible' => :'visible'
|
|
@@ -70,6 +73,7 @@ module UltracartClient
|
|
|
70
73
|
:'last_message_dts' => :'String',
|
|
71
74
|
:'merchant_id' => :'String',
|
|
72
75
|
:'message_count' => :'Integer',
|
|
76
|
+
:'participants' => :'Array<ConversationParticipant>',
|
|
73
77
|
:'start_dts' => :'String',
|
|
74
78
|
:'unread_messages' => :'BOOLEAN',
|
|
75
79
|
:'visible' => :'BOOLEAN'
|
|
@@ -120,6 +124,12 @@ module UltracartClient
|
|
|
120
124
|
self.message_count = attributes[:'message_count']
|
|
121
125
|
end
|
|
122
126
|
|
|
127
|
+
if attributes.has_key?(:'participants')
|
|
128
|
+
if (value = attributes[:'participants']).is_a?(Array)
|
|
129
|
+
self.participants = value
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
123
133
|
if attributes.has_key?(:'start_dts')
|
|
124
134
|
self.start_dts = attributes[:'start_dts']
|
|
125
135
|
end
|
|
@@ -160,6 +170,7 @@ module UltracartClient
|
|
|
160
170
|
last_message_dts == o.last_message_dts &&
|
|
161
171
|
merchant_id == o.merchant_id &&
|
|
162
172
|
message_count == o.message_count &&
|
|
173
|
+
participants == o.participants &&
|
|
163
174
|
start_dts == o.start_dts &&
|
|
164
175
|
unread_messages == o.unread_messages &&
|
|
165
176
|
visible == o.visible
|
|
@@ -174,7 +185,7 @@ module UltracartClient
|
|
|
174
185
|
# Calculates hash code according to all attributes.
|
|
175
186
|
# @return [Fixnum] Hash code
|
|
176
187
|
def hash
|
|
177
|
-
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, start_dts, unread_messages, visible].hash
|
|
188
|
+
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, participants, start_dts, unread_messages, visible].hash
|
|
178
189
|
end
|
|
179
190
|
|
|
180
191
|
# Builds the object from hash
|
|
@@ -23,6 +23,8 @@ module UltracartClient
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :event_new_message
|
|
25
25
|
|
|
26
|
+
attr_accessor :event_participant_update
|
|
27
|
+
|
|
26
28
|
attr_accessor :event_queue_position
|
|
27
29
|
|
|
28
30
|
attr_accessor :event_queue_status_update
|
|
@@ -32,6 +34,8 @@ module UltracartClient
|
|
|
32
34
|
# Type of event
|
|
33
35
|
attr_accessor :event_type
|
|
34
36
|
|
|
37
|
+
attr_accessor :event_typing
|
|
38
|
+
|
|
35
39
|
attr_accessor :event_updated_message
|
|
36
40
|
|
|
37
41
|
attr_accessor :message
|
|
@@ -68,10 +72,12 @@ module UltracartClient
|
|
|
68
72
|
:'event_conversation_closed' => :'event_conversation_closed',
|
|
69
73
|
:'event_new_conversation' => :'event_new_conversation',
|
|
70
74
|
:'event_new_message' => :'event_new_message',
|
|
75
|
+
:'event_participant_update' => :'event_participant_update',
|
|
71
76
|
:'event_queue_position' => :'event_queue_position',
|
|
72
77
|
:'event_queue_status_update' => :'event_queue_status_update',
|
|
73
78
|
:'event_rrweb' => :'event_rrweb',
|
|
74
79
|
:'event_type' => :'event_type',
|
|
80
|
+
:'event_typing' => :'event_typing',
|
|
75
81
|
:'event_updated_message' => :'event_updated_message',
|
|
76
82
|
:'message' => :'message',
|
|
77
83
|
:'type' => :'type'
|
|
@@ -85,10 +91,12 @@ module UltracartClient
|
|
|
85
91
|
:'event_conversation_closed' => :'ConversationSummary',
|
|
86
92
|
:'event_new_conversation' => :'ConversationSummary',
|
|
87
93
|
:'event_new_message' => :'ConversationSummary',
|
|
94
|
+
:'event_participant_update' => :'ConversationSummary',
|
|
88
95
|
:'event_queue_position' => :'ConversationEventQueuePosition',
|
|
89
96
|
:'event_queue_status_update' => :'ConversationWebchatQueueStatus',
|
|
90
97
|
:'event_rrweb' => :'ConversationEventRRWeb',
|
|
91
98
|
:'event_type' => :'String',
|
|
99
|
+
:'event_typing' => :'ConversationEventTyping',
|
|
92
100
|
:'event_updated_message' => :'ConversationMessage',
|
|
93
101
|
:'message' => :'ConversationMessage',
|
|
94
102
|
:'type' => :'String'
|
|
@@ -119,6 +127,10 @@ module UltracartClient
|
|
|
119
127
|
self.event_new_message = attributes[:'event_new_message']
|
|
120
128
|
end
|
|
121
129
|
|
|
130
|
+
if attributes.has_key?(:'event_participant_update')
|
|
131
|
+
self.event_participant_update = attributes[:'event_participant_update']
|
|
132
|
+
end
|
|
133
|
+
|
|
122
134
|
if attributes.has_key?(:'event_queue_position')
|
|
123
135
|
self.event_queue_position = attributes[:'event_queue_position']
|
|
124
136
|
end
|
|
@@ -135,6 +147,10 @@ module UltracartClient
|
|
|
135
147
|
self.event_type = attributes[:'event_type']
|
|
136
148
|
end
|
|
137
149
|
|
|
150
|
+
if attributes.has_key?(:'event_typing')
|
|
151
|
+
self.event_typing = attributes[:'event_typing']
|
|
152
|
+
end
|
|
153
|
+
|
|
138
154
|
if attributes.has_key?(:'event_updated_message')
|
|
139
155
|
self.event_updated_message = attributes[:'event_updated_message']
|
|
140
156
|
end
|
|
@@ -158,7 +174,7 @@ module UltracartClient
|
|
|
158
174
|
# Check to see if the all the properties in the model are valid
|
|
159
175
|
# @return true if the model is valid
|
|
160
176
|
def valid?
|
|
161
|
-
event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
|
|
177
|
+
event_type_validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update'])
|
|
162
178
|
return false unless event_type_validator.valid?(@event_type)
|
|
163
179
|
type_validator = EnumAttributeValidator.new('String', ['message', 'event', 'ping', 'check queue position'])
|
|
164
180
|
return false unless type_validator.valid?(@type)
|
|
@@ -168,7 +184,7 @@ module UltracartClient
|
|
|
168
184
|
# Custom attribute writer method checking allowed values (enum).
|
|
169
185
|
# @param [Object] event_type Object to be assigned
|
|
170
186
|
def event_type=(event_type)
|
|
171
|
-
validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb'])
|
|
187
|
+
validator = EnumAttributeValidator.new('String', ['queue position', 'webchat start conversation', 'conversation closed', 'new conversation', 'new message', 'updated message', 'queue status update', 'rrweb', 'participant update'])
|
|
172
188
|
unless validator.valid?(event_type)
|
|
173
189
|
fail ArgumentError, 'invalid value for "event_type", must be one of #{validator.allowable_values}.'
|
|
174
190
|
end
|
|
@@ -194,10 +210,12 @@ module UltracartClient
|
|
|
194
210
|
event_conversation_closed == o.event_conversation_closed &&
|
|
195
211
|
event_new_conversation == o.event_new_conversation &&
|
|
196
212
|
event_new_message == o.event_new_message &&
|
|
213
|
+
event_participant_update == o.event_participant_update &&
|
|
197
214
|
event_queue_position == o.event_queue_position &&
|
|
198
215
|
event_queue_status_update == o.event_queue_status_update &&
|
|
199
216
|
event_rrweb == o.event_rrweb &&
|
|
200
217
|
event_type == o.event_type &&
|
|
218
|
+
event_typing == o.event_typing &&
|
|
201
219
|
event_updated_message == o.event_updated_message &&
|
|
202
220
|
message == o.message &&
|
|
203
221
|
type == o.type
|
|
@@ -212,7 +230,7 @@ module UltracartClient
|
|
|
212
230
|
# Calculates hash code according to all attributes.
|
|
213
231
|
# @return [Fixnum] Hash code
|
|
214
232
|
def hash
|
|
215
|
-
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_updated_message, message, type].hash
|
|
233
|
+
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
|
|
216
234
|
end
|
|
217
235
|
|
|
218
236
|
# Builds the object from hash
|
|
@@ -0,0 +1,249 @@
|
|
|
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 EmailCommseqSequenceTestRequest
|
|
17
|
+
attr_accessor :cart_id
|
|
18
|
+
|
|
19
|
+
attr_accessor :cart_item_ids
|
|
20
|
+
|
|
21
|
+
attr_accessor :esp_commseq_uuid
|
|
22
|
+
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
attr_accessor :order_id
|
|
26
|
+
|
|
27
|
+
attr_accessor :please_review
|
|
28
|
+
|
|
29
|
+
attr_accessor :send_to_email
|
|
30
|
+
|
|
31
|
+
attr_accessor :send_to_logged_in_user
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'cart_id' => :'cart_id',
|
|
37
|
+
:'cart_item_ids' => :'cart_item_ids',
|
|
38
|
+
:'esp_commseq_uuid' => :'esp_commseq_uuid',
|
|
39
|
+
:'name' => :'name',
|
|
40
|
+
:'order_id' => :'order_id',
|
|
41
|
+
:'please_review' => :'please_review',
|
|
42
|
+
:'send_to_email' => :'send_to_email',
|
|
43
|
+
:'send_to_logged_in_user' => :'send_to_logged_in_user'
|
|
44
|
+
}
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Attribute type mapping.
|
|
48
|
+
def self.swagger_types
|
|
49
|
+
{
|
|
50
|
+
:'cart_id' => :'String',
|
|
51
|
+
:'cart_item_ids' => :'Array<String>',
|
|
52
|
+
:'esp_commseq_uuid' => :'String',
|
|
53
|
+
:'name' => :'String',
|
|
54
|
+
:'order_id' => :'String',
|
|
55
|
+
:'please_review' => :'BOOLEAN',
|
|
56
|
+
:'send_to_email' => :'String',
|
|
57
|
+
:'send_to_logged_in_user' => :'BOOLEAN'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
return unless attributes.is_a?(Hash)
|
|
65
|
+
|
|
66
|
+
# convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'cart_id')
|
|
70
|
+
self.cart_id = attributes[:'cart_id']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'cart_item_ids')
|
|
74
|
+
if (value = attributes[:'cart_item_ids']).is_a?(Array)
|
|
75
|
+
self.cart_item_ids = value
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'esp_commseq_uuid')
|
|
80
|
+
self.esp_commseq_uuid = attributes[:'esp_commseq_uuid']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.has_key?(:'name')
|
|
84
|
+
self.name = attributes[:'name']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'order_id')
|
|
88
|
+
self.order_id = attributes[:'order_id']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.has_key?(:'please_review')
|
|
92
|
+
self.please_review = attributes[:'please_review']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'send_to_email')
|
|
96
|
+
self.send_to_email = attributes[:'send_to_email']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.has_key?(:'send_to_logged_in_user')
|
|
100
|
+
self.send_to_logged_in_user = attributes[:'send_to_logged_in_user']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
invalid_properties = Array.new
|
|
108
|
+
invalid_properties
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Check to see if the all the properties in the model are valid
|
|
112
|
+
# @return true if the model is valid
|
|
113
|
+
def valid?
|
|
114
|
+
true
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Checks equality by comparing each attribute.
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def ==(o)
|
|
120
|
+
return true if self.equal?(o)
|
|
121
|
+
self.class == o.class &&
|
|
122
|
+
cart_id == o.cart_id &&
|
|
123
|
+
cart_item_ids == o.cart_item_ids &&
|
|
124
|
+
esp_commseq_uuid == o.esp_commseq_uuid &&
|
|
125
|
+
name == o.name &&
|
|
126
|
+
order_id == o.order_id &&
|
|
127
|
+
please_review == o.please_review &&
|
|
128
|
+
send_to_email == o.send_to_email &&
|
|
129
|
+
send_to_logged_in_user == o.send_to_logged_in_user
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# @see the `==` method
|
|
133
|
+
# @param [Object] Object to be compared
|
|
134
|
+
def eql?(o)
|
|
135
|
+
self == o
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Calculates hash code according to all attributes.
|
|
139
|
+
# @return [Fixnum] Hash code
|
|
140
|
+
def hash
|
|
141
|
+
[cart_id, cart_item_ids, esp_commseq_uuid, name, order_id, please_review, send_to_email, send_to_logged_in_user].hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Builds the object from hash
|
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
146
|
+
# @return [Object] Returns the model itself
|
|
147
|
+
def build_from_hash(attributes)
|
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
|
149
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
150
|
+
if type =~ /\AArray<(.*)>/i
|
|
151
|
+
# check to ensure the input is an array given that the attribute
|
|
152
|
+
# is documented as an array but the input is not
|
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
155
|
+
end
|
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
157
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
158
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
self
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Deserializes the data based on type
|
|
165
|
+
# @param string type Data type
|
|
166
|
+
# @param string value Value to be deserialized
|
|
167
|
+
# @return [Object] Deserialized data
|
|
168
|
+
def _deserialize(type, value)
|
|
169
|
+
case type.to_sym
|
|
170
|
+
when :DateTime
|
|
171
|
+
DateTime.parse(value)
|
|
172
|
+
when :Date
|
|
173
|
+
Date.parse(value)
|
|
174
|
+
when :String
|
|
175
|
+
value.to_s
|
|
176
|
+
when :Integer
|
|
177
|
+
value.to_i
|
|
178
|
+
when :Float
|
|
179
|
+
value.to_f
|
|
180
|
+
when :BOOLEAN
|
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
182
|
+
true
|
|
183
|
+
else
|
|
184
|
+
false
|
|
185
|
+
end
|
|
186
|
+
when :Object
|
|
187
|
+
# generic object (usually a Hash), return directly
|
|
188
|
+
value
|
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
|
195
|
+
{}.tap do |hash|
|
|
196
|
+
value.each do |k, v|
|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
else # model
|
|
201
|
+
temp_model = UltracartClient.const_get(type).new
|
|
202
|
+
temp_model.build_from_hash(value)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns the string representation of the object
|
|
207
|
+
# @return [String] String presentation of the object
|
|
208
|
+
def to_s
|
|
209
|
+
to_hash.to_s
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
|
214
|
+
def to_body
|
|
215
|
+
to_hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Returns the object in the form of hash
|
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
|
220
|
+
def to_hash
|
|
221
|
+
hash = {}
|
|
222
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
223
|
+
value = self.send(attr)
|
|
224
|
+
next if value.nil?
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Outputs non-array value in the form of hash
|
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
+
# @param [Object] value Any valid value
|
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
|
234
|
+
def _to_hash(value)
|
|
235
|
+
if value.is_a?(Array)
|
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
|
237
|
+
elsif value.is_a?(Hash)
|
|
238
|
+
{}.tap do |hash|
|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
+
end
|
|
241
|
+
elsif value.respond_to? :to_hash
|
|
242
|
+
value.to_hash
|
|
243
|
+
else
|
|
244
|
+
value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
end
|
|
@@ -0,0 +1,212 @@
|
|
|
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 EmailCommseqSequenceTestResponse
|
|
17
|
+
attr_accessor :error
|
|
18
|
+
|
|
19
|
+
attr_accessor :metadata
|
|
20
|
+
|
|
21
|
+
# Indicates if API call was successful
|
|
22
|
+
attr_accessor :success
|
|
23
|
+
|
|
24
|
+
attr_accessor :warning
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'error' => :'error',
|
|
30
|
+
:'metadata' => :'metadata',
|
|
31
|
+
:'success' => :'success',
|
|
32
|
+
:'warning' => :'warning'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.swagger_types
|
|
38
|
+
{
|
|
39
|
+
:'error' => :'Error',
|
|
40
|
+
:'metadata' => :'ResponseMetadata',
|
|
41
|
+
:'success' => :'BOOLEAN',
|
|
42
|
+
:'warning' => :'Warning'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Initializes the object
|
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
return unless attributes.is_a?(Hash)
|
|
50
|
+
|
|
51
|
+
# convert string to symbol for hash key
|
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
53
|
+
|
|
54
|
+
if attributes.has_key?(:'error')
|
|
55
|
+
self.error = attributes[:'error']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'metadata')
|
|
59
|
+
self.metadata = attributes[:'metadata']
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'success')
|
|
63
|
+
self.success = attributes[:'success']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'warning')
|
|
67
|
+
self.warning = attributes[:'warning']
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
72
|
+
# @return Array for valid properties with the reasons
|
|
73
|
+
def list_invalid_properties
|
|
74
|
+
invalid_properties = Array.new
|
|
75
|
+
invalid_properties
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Check to see if the all the properties in the model are valid
|
|
79
|
+
# @return true if the model is valid
|
|
80
|
+
def valid?
|
|
81
|
+
true
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Checks equality by comparing each attribute.
|
|
85
|
+
# @param [Object] Object to be compared
|
|
86
|
+
def ==(o)
|
|
87
|
+
return true if self.equal?(o)
|
|
88
|
+
self.class == o.class &&
|
|
89
|
+
error == o.error &&
|
|
90
|
+
metadata == o.metadata &&
|
|
91
|
+
success == o.success &&
|
|
92
|
+
warning == o.warning
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @see the `==` method
|
|
96
|
+
# @param [Object] Object to be compared
|
|
97
|
+
def eql?(o)
|
|
98
|
+
self == o
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Calculates hash code according to all attributes.
|
|
102
|
+
# @return [Fixnum] Hash code
|
|
103
|
+
def hash
|
|
104
|
+
[error, metadata, success, warning].hash
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Builds the object from hash
|
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
109
|
+
# @return [Object] Returns the model itself
|
|
110
|
+
def build_from_hash(attributes)
|
|
111
|
+
return nil unless attributes.is_a?(Hash)
|
|
112
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
113
|
+
if type =~ /\AArray<(.*)>/i
|
|
114
|
+
# check to ensure the input is an array given that the attribute
|
|
115
|
+
# is documented as an array but the input is not
|
|
116
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
117
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
118
|
+
end
|
|
119
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
120
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
121
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
self
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Deserializes the data based on type
|
|
128
|
+
# @param string type Data type
|
|
129
|
+
# @param string value Value to be deserialized
|
|
130
|
+
# @return [Object] Deserialized data
|
|
131
|
+
def _deserialize(type, value)
|
|
132
|
+
case type.to_sym
|
|
133
|
+
when :DateTime
|
|
134
|
+
DateTime.parse(value)
|
|
135
|
+
when :Date
|
|
136
|
+
Date.parse(value)
|
|
137
|
+
when :String
|
|
138
|
+
value.to_s
|
|
139
|
+
when :Integer
|
|
140
|
+
value.to_i
|
|
141
|
+
when :Float
|
|
142
|
+
value.to_f
|
|
143
|
+
when :BOOLEAN
|
|
144
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
145
|
+
true
|
|
146
|
+
else
|
|
147
|
+
false
|
|
148
|
+
end
|
|
149
|
+
when :Object
|
|
150
|
+
# generic object (usually a Hash), return directly
|
|
151
|
+
value
|
|
152
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
153
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
154
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
155
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
156
|
+
k_type = Regexp.last_match[:k_type]
|
|
157
|
+
v_type = Regexp.last_match[:v_type]
|
|
158
|
+
{}.tap do |hash|
|
|
159
|
+
value.each do |k, v|
|
|
160
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
else # model
|
|
164
|
+
temp_model = UltracartClient.const_get(type).new
|
|
165
|
+
temp_model.build_from_hash(value)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Returns the string representation of the object
|
|
170
|
+
# @return [String] String presentation of the object
|
|
171
|
+
def to_s
|
|
172
|
+
to_hash.to_s
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
176
|
+
# @return [Hash] Returns the object in the form of hash
|
|
177
|
+
def to_body
|
|
178
|
+
to_hash
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Returns the object in the form of hash
|
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
|
183
|
+
def to_hash
|
|
184
|
+
hash = {}
|
|
185
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
186
|
+
value = self.send(attr)
|
|
187
|
+
next if value.nil?
|
|
188
|
+
hash[param] = _to_hash(value)
|
|
189
|
+
end
|
|
190
|
+
hash
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Outputs non-array value in the form of hash
|
|
194
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
195
|
+
# @param [Object] value Any valid value
|
|
196
|
+
# @return [Hash] Returns the value in the form of hash
|
|
197
|
+
def _to_hash(value)
|
|
198
|
+
if value.is_a?(Array)
|
|
199
|
+
value.compact.map { |v| _to_hash(v) }
|
|
200
|
+
elsif value.is_a?(Hash)
|
|
201
|
+
{}.tap do |hash|
|
|
202
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
203
|
+
end
|
|
204
|
+
elsif value.respond_to? :to_hash
|
|
205
|
+
value.to_hash
|
|
206
|
+
else
|
|
207
|
+
value
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
end
|
|
212
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -139,6 +139,7 @@ require 'ultracart_api/models/conversation_agent_auth'
|
|
|
139
139
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
|
140
140
|
require 'ultracart_api/models/conversation_event_queue_position'
|
|
141
141
|
require 'ultracart_api/models/conversation_event_rr_web'
|
|
142
|
+
require 'ultracart_api/models/conversation_event_typing'
|
|
142
143
|
require 'ultracart_api/models/conversation_message'
|
|
143
144
|
require 'ultracart_api/models/conversation_message_transport_status'
|
|
144
145
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
|
@@ -278,6 +279,8 @@ require 'ultracart_api/models/email_commseq_postcard_send_test_response'
|
|
|
278
279
|
require 'ultracart_api/models/email_commseq_postcards_request'
|
|
279
280
|
require 'ultracart_api/models/email_commseq_postcards_response'
|
|
280
281
|
require 'ultracart_api/models/email_commseq_response'
|
|
282
|
+
require 'ultracart_api/models/email_commseq_sequence_test_request'
|
|
283
|
+
require 'ultracart_api/models/email_commseq_sequence_test_response'
|
|
281
284
|
require 'ultracart_api/models/email_commseq_stat'
|
|
282
285
|
require 'ultracart_api/models/email_commseq_stat_response'
|
|
283
286
|
require 'ultracart_api/models/email_commseq_step'
|
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.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -349,6 +349,7 @@ files:
|
|
|
349
349
|
- docs/ConversationApi.md
|
|
350
350
|
- docs/ConversationEventQueuePosition.md
|
|
351
351
|
- docs/ConversationEventRRWeb.md
|
|
352
|
+
- docs/ConversationEventTyping.md
|
|
352
353
|
- docs/ConversationMessage.md
|
|
353
354
|
- docs/ConversationMessageTransportStatus.md
|
|
354
355
|
- docs/ConversationMultimediaUploadUrl.md
|
|
@@ -490,6 +491,8 @@ files:
|
|
|
490
491
|
- docs/EmailCommseqPostcardsRequest.md
|
|
491
492
|
- docs/EmailCommseqPostcardsResponse.md
|
|
492
493
|
- docs/EmailCommseqResponse.md
|
|
494
|
+
- docs/EmailCommseqSequenceTestRequest.md
|
|
495
|
+
- docs/EmailCommseqSequenceTestResponse.md
|
|
493
496
|
- docs/EmailCommseqStat.md
|
|
494
497
|
- docs/EmailCommseqStatResponse.md
|
|
495
498
|
- docs/EmailCommseqStep.md
|
|
@@ -1043,6 +1046,7 @@ files:
|
|
|
1043
1046
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
|
1044
1047
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
|
1045
1048
|
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
|
1049
|
+
- lib/ultracart_api/models/conversation_event_typing.rb
|
|
1046
1050
|
- lib/ultracart_api/models/conversation_message.rb
|
|
1047
1051
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
|
1048
1052
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|
|
@@ -1182,6 +1186,8 @@ files:
|
|
|
1182
1186
|
- lib/ultracart_api/models/email_commseq_postcards_request.rb
|
|
1183
1187
|
- lib/ultracart_api/models/email_commseq_postcards_response.rb
|
|
1184
1188
|
- lib/ultracart_api/models/email_commseq_response.rb
|
|
1189
|
+
- lib/ultracart_api/models/email_commseq_sequence_test_request.rb
|
|
1190
|
+
- lib/ultracart_api/models/email_commseq_sequence_test_response.rb
|
|
1185
1191
|
- lib/ultracart_api/models/email_commseq_stat.rb
|
|
1186
1192
|
- lib/ultracart_api/models/email_commseq_stat_response.rb
|
|
1187
1193
|
- lib/ultracart_api/models/email_commseq_step.rb
|