ultracart_api 4.0.46.rc → 4.0.49.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -4
- data/docs/ConversationEventRRWeb.md +30 -0
- data/docs/ConversationEventTyping.md +22 -0
- data/docs/ConversationMessage.md +2 -0
- data/docs/ConversationWebsocketMessage.md +4 -0
- data/docs/EmailCommseqSequenceTestRequest.md +32 -0
- data/docs/EmailCommseqSequenceTestResponse.md +24 -0
- data/docs/StorefrontApi.md +74 -0
- data/lib/ultracart_api/api/storefront_api.rb +79 -0
- data/lib/ultracart_api/models/conversation_event_rr_web.rb +308 -0
- data/lib/ultracart_api/models/conversation_event_typing.rb +237 -0
- data/lib/ultracart_api/models/conversation_message.rb +45 -1
- data/lib/ultracart_api/models/conversation_websocket_message.rb +23 -5
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +284 -0
- data/lib/ultracart_api/models/email_commseq_sequence_test_response.rb +247 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21232f4f3169a87005e158e4cc3d4471098bda6b3759bc1817a9b7bf3bcf37c
|
4
|
+
data.tar.gz: 9e08a6150ec2fb2d1051fa746a70b25fb7f216b070924f248dace927b85278f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5cfc69ce8da5fa375ba5477f84e4990156f7fd8cc5501f316e2d794438e9bc0cd0c9ff58e9c1dfd4391d701ebb19aface2b33a1e8f9b923d6af38d72ad42ba
|
7
|
+
data.tar.gz: 5eb966eaed532b56a06cff6362b24d3882953ea6566ea56fd3679ba1ba2491468a9cfa67caaf2d0b2457aa2c71f2f9144742afdd1fb16b398a0e558548074feb
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.49.rc
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.49.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.49.rc.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.49.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -370,6 +370,7 @@ Class | Method | HTTP request | Description
|
|
370
370
|
*UltracartClient::StorefrontApi* | [**send_email_test**](docs/StorefrontApi.md#send_email_test) | **POST** /storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/test | Send email test
|
371
371
|
*UltracartClient::StorefrontApi* | [**send_postcard_test**](docs/StorefrontApi.md#send_postcard_test) | **POST** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid}/test | Send postcard test
|
372
372
|
*UltracartClient::StorefrontApi* | [**send_webhook_test**](docs/StorefrontApi.md#send_webhook_test) | **POST** /storefront/{storefront_oid}/email/webhooks/test | Send webhook test
|
373
|
+
*UltracartClient::StorefrontApi* | [**sequence_test**](docs/StorefrontApi.md#sequence_test) | **POST** /storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test | Sequence test
|
373
374
|
*UltracartClient::StorefrontApi* | [**start_email_campaign**](docs/StorefrontApi.md#start_email_campaign) | **PUT** /storefront/{storefront_oid}/email/campaigns/{email_campaign_uuid}/start | Start email campaign
|
374
375
|
*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
|
375
376
|
*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
|
@@ -568,6 +569,8 @@ Class | Method | HTTP request | Description
|
|
568
569
|
- [UltracartClient::ConversationAgentAuth](docs/ConversationAgentAuth.md)
|
569
570
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
570
571
|
- [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
|
572
|
+
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
573
|
+
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
571
574
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
572
575
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
573
576
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
@@ -706,6 +709,8 @@ Class | Method | HTTP request | Description
|
|
706
709
|
- [UltracartClient::EmailCommseqPostcardsRequest](docs/EmailCommseqPostcardsRequest.md)
|
707
710
|
- [UltracartClient::EmailCommseqPostcardsResponse](docs/EmailCommseqPostcardsResponse.md)
|
708
711
|
- [UltracartClient::EmailCommseqResponse](docs/EmailCommseqResponse.md)
|
712
|
+
- [UltracartClient::EmailCommseqSequenceTestRequest](docs/EmailCommseqSequenceTestRequest.md)
|
713
|
+
- [UltracartClient::EmailCommseqSequenceTestResponse](docs/EmailCommseqSequenceTestResponse.md)
|
709
714
|
- [UltracartClient::EmailCommseqStat](docs/EmailCommseqStat.md)
|
710
715
|
- [UltracartClient::EmailCommseqStatResponse](docs/EmailCommseqStatResponse.md)
|
711
716
|
- [UltracartClient::EmailCommseqStep](docs/EmailCommseqStep.md)
|
@@ -1175,6 +1180,9 @@ Not every change is committed to every SDK.
|
|
1175
1180
|
|
1176
1181
|
| Version | Date | Comments |
|
1177
1182
|
| --: | :-: | --- |
|
1183
|
+
| 4.0.49-RC | 08/03/2022 | more conversation events |
|
1184
|
+
| 4.0.48-RC | 08/02/2022 | storefront communication sequence test method |
|
1185
|
+
| 4.0.47-RC | 08/01/2022 | conversation event refinement |
|
1178
1186
|
| 4.0.46-RC | 07/29/2022 | conversation development |
|
1179
1187
|
| 4.0.45-RC | 07/28/2022 | conversation bug fixes |
|
1180
1188
|
| 4.0.44-RC | 07/28/2022 | conversation message upload keys property |
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# UltracartClient::ConversationEventRRWeb
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | **String** | | [optional] |
|
8
|
+
| **data_part** | **Integer** | | [optional] |
|
9
|
+
| **data_sha256** | **String** | | [optional] |
|
10
|
+
| **data_total_parts** | **Integer** | | [optional] |
|
11
|
+
| **data_total_sha256** | **String** | | [optional] |
|
12
|
+
| **event_index** | **Integer** | | [optional] |
|
13
|
+
| **type** | **String** | Type of event | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'ultracart_api'
|
19
|
+
|
20
|
+
instance = UltracartClient::ConversationEventRRWeb.new(
|
21
|
+
data: null,
|
22
|
+
data_part: null,
|
23
|
+
data_sha256: null,
|
24
|
+
data_total_parts: null,
|
25
|
+
data_total_sha256: null,
|
26
|
+
event_index: null,
|
27
|
+
type: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# UltracartClient::ConversationEventTyping
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **author_conversation_participant_arn** | **String** | | [optional] |
|
8
|
+
| **author_conversation_participant_name** | **String** | | [optional] |
|
9
|
+
| **value** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'ultracart_api'
|
15
|
+
|
16
|
+
instance = UltracartClient::ConversationEventTyping.new(
|
17
|
+
author_conversation_participant_arn: null,
|
18
|
+
author_conversation_participant_name: null,
|
19
|
+
value: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/ConversationMessage.md
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
| **media_urls** | **Array<String>** | | [optional] |
|
12
12
|
| **message_dts** | **String** | Message date/time | [optional] |
|
13
13
|
| **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
|
14
|
+
| **type** | **String** | Message type | [optional] |
|
14
15
|
| **upload_keys** | **Array<String>** | | [optional] |
|
15
16
|
|
16
17
|
## Example
|
@@ -26,6 +27,7 @@ instance = UltracartClient::ConversationMessage.new(
|
|
26
27
|
media_urls: null,
|
27
28
|
message_dts: null,
|
28
29
|
transport_statuses: null,
|
30
|
+
type: null,
|
29
31
|
upload_keys: null
|
30
32
|
)
|
31
33
|
```
|
@@ -10,7 +10,9 @@
|
|
10
10
|
| **event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
11
11
|
| **event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional] |
|
12
12
|
| **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional] |
|
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] |
|
@@ -27,7 +29,9 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
|
|
27
29
|
event_new_message: null,
|
28
30
|
event_queue_position: null,
|
29
31
|
event_queue_status_update: null,
|
32
|
+
event_rrweb: null,
|
30
33
|
event_type: null,
|
34
|
+
event_typing: null,
|
31
35
|
event_updated_message: null,
|
32
36
|
message: null,
|
33
37
|
type: null
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# UltracartClient::EmailCommseqSequenceTestRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cart_id** | **String** | | [optional] |
|
8
|
+
| **cart_item_ids** | **Array<String>** | | [optional] |
|
9
|
+
| **esp_commseq_uuid** | **String** | | [optional] |
|
10
|
+
| **name** | **String** | | [optional] |
|
11
|
+
| **order_id** | **String** | | [optional] |
|
12
|
+
| **please_review** | **Boolean** | | [optional] |
|
13
|
+
| **send_to_email** | **String** | | [optional] |
|
14
|
+
| **send_to_logged_in_user** | **Boolean** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'ultracart_api'
|
20
|
+
|
21
|
+
instance = UltracartClient::EmailCommseqSequenceTestRequest.new(
|
22
|
+
cart_id: null,
|
23
|
+
cart_item_ids: null,
|
24
|
+
esp_commseq_uuid: null,
|
25
|
+
name: null,
|
26
|
+
order_id: null,
|
27
|
+
please_review: null,
|
28
|
+
send_to_email: null,
|
29
|
+
send_to_logged_in_user: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# UltracartClient::EmailCommseqSequenceTestResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
9
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
10
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'ultracart_api'
|
16
|
+
|
17
|
+
instance = UltracartClient::EmailCommseqSequenceTestResponse.new(
|
18
|
+
error: null,
|
19
|
+
metadata: null,
|
20
|
+
success: null,
|
21
|
+
warning: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/StorefrontApi.md
CHANGED
@@ -140,6 +140,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
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 |
|
@@ -9911,6 +9912,79 @@ end
|
|
9911
9912
|
- **Accept**: application/json
|
9912
9913
|
|
9913
9914
|
|
9915
|
+
## sequence_test
|
9916
|
+
|
9917
|
+
> <EmailCommseqSequenceTestResponse> sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
9918
|
+
|
9919
|
+
Sequence test
|
9920
|
+
|
9921
|
+
### Examples
|
9922
|
+
|
9923
|
+
```ruby
|
9924
|
+
require 'time'
|
9925
|
+
require 'ultracart_api'
|
9926
|
+
require 'json'
|
9927
|
+
require 'yaml'
|
9928
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
9929
|
+
|
9930
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
9931
|
+
# As such, this might not be the best way to use this object.
|
9932
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
9933
|
+
|
9934
|
+
api = UltracartClient::StorefrontApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
9935
|
+
storefront_oid = 56 # Integer |
|
9936
|
+
commseq_uuid = 'commseq_uuid_example' # String |
|
9937
|
+
email_commseq_sequence_test_request = UltracartClient::EmailCommseqSequenceTestRequest.new # EmailCommseqSequenceTestRequest | Commseq test request
|
9938
|
+
|
9939
|
+
begin
|
9940
|
+
# Sequence test
|
9941
|
+
result = api_instance.sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
9942
|
+
p result
|
9943
|
+
rescue UltracartClient::ApiError => e
|
9944
|
+
puts "Error when calling StorefrontApi->sequence_test: #{e}"
|
9945
|
+
end
|
9946
|
+
```
|
9947
|
+
|
9948
|
+
#### Using the sequence_test_with_http_info variant
|
9949
|
+
|
9950
|
+
This returns an Array which contains the response data, status code and headers.
|
9951
|
+
|
9952
|
+
> <Array(<EmailCommseqSequenceTestResponse>, Integer, Hash)> sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
9953
|
+
|
9954
|
+
```ruby
|
9955
|
+
begin
|
9956
|
+
# Sequence test
|
9957
|
+
data, status_code, headers = api_instance.sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request)
|
9958
|
+
p status_code # => 2xx
|
9959
|
+
p headers # => { ... }
|
9960
|
+
p data # => <EmailCommseqSequenceTestResponse>
|
9961
|
+
rescue UltracartClient::ApiError => e
|
9962
|
+
puts "Error when calling StorefrontApi->sequence_test_with_http_info: #{e}"
|
9963
|
+
end
|
9964
|
+
```
|
9965
|
+
|
9966
|
+
### Parameters
|
9967
|
+
|
9968
|
+
| Name | Type | Description | Notes |
|
9969
|
+
| ---- | ---- | ----------- | ----- |
|
9970
|
+
| **storefront_oid** | **Integer** | | |
|
9971
|
+
| **commseq_uuid** | **String** | | |
|
9972
|
+
| **email_commseq_sequence_test_request** | [**EmailCommseqSequenceTestRequest**](EmailCommseqSequenceTestRequest.md) | Commseq test request | |
|
9973
|
+
|
9974
|
+
### Return type
|
9975
|
+
|
9976
|
+
[**EmailCommseqSequenceTestResponse**](EmailCommseqSequenceTestResponse.md)
|
9977
|
+
|
9978
|
+
### Authorization
|
9979
|
+
|
9980
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
9981
|
+
|
9982
|
+
### HTTP request headers
|
9983
|
+
|
9984
|
+
- **Content-Type**: application/json
|
9985
|
+
- **Accept**: application/json
|
9986
|
+
|
9987
|
+
|
9914
9988
|
## start_email_campaign
|
9915
9989
|
|
9916
9990
|
> <BaseResponse> start_email_campaign(storefront_oid, email_campaign_uuid)
|
@@ -9412,6 +9412,85 @@ module UltracartClient
|
|
9412
9412
|
return data, status_code, headers
|
9413
9413
|
end
|
9414
9414
|
|
9415
|
+
# Sequence test
|
9416
|
+
# @param storefront_oid [Integer]
|
9417
|
+
# @param commseq_uuid [String]
|
9418
|
+
# @param email_commseq_sequence_test_request [EmailCommseqSequenceTestRequest] Commseq test request
|
9419
|
+
# @param [Hash] opts the optional parameters
|
9420
|
+
# @return [EmailCommseqSequenceTestResponse]
|
9421
|
+
def sequence_test(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts = {})
|
9422
|
+
data, _status_code, _headers = sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts)
|
9423
|
+
data
|
9424
|
+
end
|
9425
|
+
|
9426
|
+
# Sequence test
|
9427
|
+
# @param storefront_oid [Integer]
|
9428
|
+
# @param commseq_uuid [String]
|
9429
|
+
# @param email_commseq_sequence_test_request [EmailCommseqSequenceTestRequest] Commseq test request
|
9430
|
+
# @param [Hash] opts the optional parameters
|
9431
|
+
# @return [Array<(EmailCommseqSequenceTestResponse, Integer, Hash)>] EmailCommseqSequenceTestResponse data, response status code and response headers
|
9432
|
+
def sequence_test_with_http_info(storefront_oid, commseq_uuid, email_commseq_sequence_test_request, opts = {})
|
9433
|
+
if @api_client.config.debugging
|
9434
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.sequence_test ...'
|
9435
|
+
end
|
9436
|
+
# verify the required parameter 'storefront_oid' is set
|
9437
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
9438
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.sequence_test"
|
9439
|
+
end
|
9440
|
+
# verify the required parameter 'commseq_uuid' is set
|
9441
|
+
if @api_client.config.client_side_validation && commseq_uuid.nil?
|
9442
|
+
fail ArgumentError, "Missing the required parameter 'commseq_uuid' when calling StorefrontApi.sequence_test"
|
9443
|
+
end
|
9444
|
+
# verify the required parameter 'email_commseq_sequence_test_request' is set
|
9445
|
+
if @api_client.config.client_side_validation && email_commseq_sequence_test_request.nil?
|
9446
|
+
fail ArgumentError, "Missing the required parameter 'email_commseq_sequence_test_request' when calling StorefrontApi.sequence_test"
|
9447
|
+
end
|
9448
|
+
# resource path
|
9449
|
+
local_var_path = '/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/test'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'commseq_uuid' + '}', CGI.escape(commseq_uuid.to_s))
|
9450
|
+
|
9451
|
+
# query parameters
|
9452
|
+
query_params = opts[:query_params] || {}
|
9453
|
+
|
9454
|
+
# header parameters
|
9455
|
+
header_params = opts[:header_params] || {}
|
9456
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
9457
|
+
# HTTP header 'Accept' (if needed)
|
9458
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
9459
|
+
# HTTP header 'Content-Type'
|
9460
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
9461
|
+
if !content_type.nil?
|
9462
|
+
header_params['Content-Type'] = content_type
|
9463
|
+
end
|
9464
|
+
|
9465
|
+
# form parameters
|
9466
|
+
form_params = opts[:form_params] || {}
|
9467
|
+
|
9468
|
+
# http body (model)
|
9469
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_commseq_sequence_test_request)
|
9470
|
+
|
9471
|
+
# return_type
|
9472
|
+
return_type = opts[:debug_return_type] || 'EmailCommseqSequenceTestResponse'
|
9473
|
+
|
9474
|
+
# auth_names
|
9475
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
9476
|
+
|
9477
|
+
new_options = opts.merge(
|
9478
|
+
:operation => :"StorefrontApi.sequence_test",
|
9479
|
+
:header_params => header_params,
|
9480
|
+
:query_params => query_params,
|
9481
|
+
:form_params => form_params,
|
9482
|
+
:body => post_body,
|
9483
|
+
:auth_names => auth_names,
|
9484
|
+
:return_type => return_type
|
9485
|
+
)
|
9486
|
+
|
9487
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
9488
|
+
if @api_client.config.debugging
|
9489
|
+
@api_client.config.logger.debug "API called: StorefrontApi#sequence_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
9490
|
+
end
|
9491
|
+
return data, status_code, headers
|
9492
|
+
end
|
9493
|
+
|
9415
9494
|
# Start email campaign
|
9416
9495
|
# @param storefront_oid [Integer]
|
9417
9496
|
# @param email_campaign_uuid [String]
|