ultracart_api 4.1.164 → 4.1.166
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 -2
- data/docs/EmailCommseqEmailReviewStatus.md +32 -0
- data/docs/EmailCommseqEmailReviewStatusResponse.md +26 -0
- data/docs/EmailCommseqEmailReviewStatusesRequest.md +18 -0
- data/docs/EmailCommseqEmailReviewStatusesResponse.md +26 -0
- data/docs/StorefrontApi.md +108 -0
- data/lib/ultracart_api/api/storefront_api.rb +143 -0
- data/lib/ultracart_api/models/email_commseq_email_review_status.rb +324 -0
- data/lib/ultracart_api/models/email_commseq_email_review_status_response.rb +256 -0
- data/lib/ultracart_api/models/email_commseq_email_review_statuses_request.rb +222 -0
- data/lib/ultracart_api/models/email_commseq_email_review_statuses_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +9 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 266c6007956d258a4240b14379ada7f14eaa2353428b8dba0e517e9447137b21
|
|
4
|
+
data.tar.gz: c70906cfe8fc4cc482e4262912f479df7ff51fe718eddb8e124c0cd2067e4e07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b5d76248013766630fb40ce05c9f9fe81eb09ab1ae75a02e640cda002c8f872136c0ffef8bcc28a3fa0c0fe5f51a8a43ee9d59c4d8cb7cc72fc853d41766059
|
|
7
|
+
data.tar.gz: 59b3956e2c8e68b8f917f20c155a8aa48c38d4e5e3056e568b28cf42c29db1a091e9e0cba611a5ffb9d228dbb77701b0e832a4f0a12c809ca5e338d5c691b160
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
|
|
|
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.1.
|
|
10
|
+
- Package version: 4.1.166
|
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
12
|
- For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
|
|
13
13
|
|
|
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
|
|
|
16
16
|
gemfile:
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
gem 'ultracart_api', '4.1.
|
|
19
|
+
gem 'ultracart_api', '4.1.166'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -628,6 +628,8 @@ Class | Method | HTTP request | Description
|
|
|
628
628
|
*UltracartClient::StorefrontApi* | [**get_email_postcard**](docs/StorefrontApi.md#get_email_postcard) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid} | Get email postcard
|
|
629
629
|
*UltracartClient::StorefrontApi* | [**get_email_postcards**](docs/StorefrontApi.md#get_email_postcards) | **GET** /storefront/{storefront_oid}/email/postcards | Get email postcards
|
|
630
630
|
*UltracartClient::StorefrontApi* | [**get_email_postcards_multiple**](docs/StorefrontApi.md#get_email_postcards_multiple) | **POST** /storefront/{storefront_oid}/email/postcards/multiple | Get email postcards multiple
|
|
631
|
+
*UltracartClient::StorefrontApi* | [**get_email_review_status**](docs/StorefrontApi.md#get_email_review_status) | **GET** /storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/review_status | Get the review status of an email
|
|
632
|
+
*UltracartClient::StorefrontApi* | [**get_email_review_statuses_multiple**](docs/StorefrontApi.md#get_email_review_statuses_multiple) | **POST** /storefront/{storefront_oid}/email/emails/review_status/multiple | Get the review status of multiple emails
|
|
631
633
|
*UltracartClient::StorefrontApi* | [**get_email_segment**](docs/StorefrontApi.md#get_email_segment) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid} | Get email segment
|
|
632
634
|
*UltracartClient::StorefrontApi* | [**get_email_segment_customer_editor_url**](docs/StorefrontApi.md#get_email_segment_customer_editor_url) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/customers/{email_customer_uuid}/editor_url | Get email segment customers editor URL
|
|
633
635
|
*UltracartClient::StorefrontApi* | [**get_email_segment_customers**](docs/StorefrontApi.md#get_email_segment_customers) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/customers | Get email segment customers
|
|
@@ -1289,6 +1291,10 @@ Class | Method | HTTP request | Description
|
|
|
1289
1291
|
- [UltracartClient::EmailCommseq](docs/EmailCommseq.md)
|
|
1290
1292
|
- [UltracartClient::EmailCommseqEmail](docs/EmailCommseqEmail.md)
|
|
1291
1293
|
- [UltracartClient::EmailCommseqEmailResponse](docs/EmailCommseqEmailResponse.md)
|
|
1294
|
+
- [UltracartClient::EmailCommseqEmailReviewStatus](docs/EmailCommseqEmailReviewStatus.md)
|
|
1295
|
+
- [UltracartClient::EmailCommseqEmailReviewStatusResponse](docs/EmailCommseqEmailReviewStatusResponse.md)
|
|
1296
|
+
- [UltracartClient::EmailCommseqEmailReviewStatusesRequest](docs/EmailCommseqEmailReviewStatusesRequest.md)
|
|
1297
|
+
- [UltracartClient::EmailCommseqEmailReviewStatusesResponse](docs/EmailCommseqEmailReviewStatusesResponse.md)
|
|
1292
1298
|
- [UltracartClient::EmailCommseqEmailSendTestRequest](docs/EmailCommseqEmailSendTestRequest.md)
|
|
1293
1299
|
- [UltracartClient::EmailCommseqEmailSendTestResponse](docs/EmailCommseqEmailSendTestResponse.md)
|
|
1294
1300
|
- [UltracartClient::EmailCommseqEmailsRequest](docs/EmailCommseqEmailsRequest.md)
|
|
@@ -2014,6 +2020,8 @@ Not every change is committed to every SDK.
|
|
|
2014
2020
|
|
|
2015
2021
|
| Version | Date | Comments |
|
|
2016
2022
|
| --: | :-: | --- |
|
|
2023
|
+
| 4.1.166 | 09/21/2026 | sfvb internal testing |
|
|
2024
|
+
| 4.1.165 | 09/21/2026 | automation testing |
|
|
2017
2025
|
| 4.1.164 | 09/20/2026 | automation testing |
|
|
2018
2026
|
| 4.1.163 | 09/20/2026 | automation testing |
|
|
2019
2027
|
| 4.1.162 | 09/18/2026 | sdk automation testing |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqEmailReviewStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **decided_dts** | **String** | Date the review was approved or rejected | [optional] |
|
|
8
|
+
| **esp_commseq_email_review_uuid** | **String** | Review UUID | [optional] |
|
|
9
|
+
| **esp_commseq_email_uuid** | **String** | Email communication sequence email UUID | [optional] |
|
|
10
|
+
| **esp_commseq_uuid** | **String** | Email communication sequence UUID | [optional] |
|
|
11
|
+
| **rejection_reason** | **String** | Why the email was rejected, and what to change. Only present when the state is rejected. | [optional] |
|
|
12
|
+
| **requested_dts** | **String** | Date the review was requested | [optional] |
|
|
13
|
+
| **state** | **String** | State of the review | [optional] |
|
|
14
|
+
| **subject** | **String** | Subject of the email as it was reviewed | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::EmailCommseqEmailReviewStatus.new(
|
|
22
|
+
decided_dts: null,
|
|
23
|
+
esp_commseq_email_review_uuid: null,
|
|
24
|
+
esp_commseq_email_uuid: null,
|
|
25
|
+
esp_commseq_uuid: null,
|
|
26
|
+
rejection_reason: null,
|
|
27
|
+
requested_dts: null,
|
|
28
|
+
state: null,
|
|
29
|
+
subject: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqEmailReviewStatusResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
|
9
|
+
| **review_status** | [**EmailCommseqEmailReviewStatus**](EmailCommseqEmailReviewStatus.md) | | [optional] |
|
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::EmailCommseqEmailReviewStatusResponse.new(
|
|
19
|
+
error: null,
|
|
20
|
+
metadata: null,
|
|
21
|
+
review_status: null,
|
|
22
|
+
success: null,
|
|
23
|
+
warning: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqEmailReviewStatusesRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **esp_commseq_email_uuids** | **Array<String>** | Email communication sequence email UUIDs to return the review status of | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::EmailCommseqEmailReviewStatusesRequest.new(
|
|
15
|
+
esp_commseq_email_uuids: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::EmailCommseqEmailReviewStatusesResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **error** | [**Error**](Error.md) | | [optional] |
|
|
8
|
+
| **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
|
|
9
|
+
| **review_statuses** | [**Array<EmailCommseqEmailReviewStatus>**](EmailCommseqEmailReviewStatus.md) | | [optional] |
|
|
10
|
+
| **success** | **Boolean** | Indicates if API call was successful | [optional] |
|
|
11
|
+
| **warning** | [**Warning**](Warning.md) | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::EmailCommseqEmailReviewStatusesResponse.new(
|
|
19
|
+
error: null,
|
|
20
|
+
metadata: null,
|
|
21
|
+
review_statuses: null,
|
|
22
|
+
success: null,
|
|
23
|
+
warning: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/StorefrontApi.md
CHANGED
|
@@ -86,6 +86,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
86
86
|
| [**get_email_postcard**](StorefrontApi.md#get_email_postcard) | **GET** /storefront/{storefront_oid}/email/postcards/{commseq_postcard_uuid} | Get email postcard |
|
|
87
87
|
| [**get_email_postcards**](StorefrontApi.md#get_email_postcards) | **GET** /storefront/{storefront_oid}/email/postcards | Get email postcards |
|
|
88
88
|
| [**get_email_postcards_multiple**](StorefrontApi.md#get_email_postcards_multiple) | **POST** /storefront/{storefront_oid}/email/postcards/multiple | Get email postcards multiple |
|
|
89
|
+
| [**get_email_review_status**](StorefrontApi.md#get_email_review_status) | **GET** /storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/review_status | Get the review status of an email |
|
|
90
|
+
| [**get_email_review_statuses_multiple**](StorefrontApi.md#get_email_review_statuses_multiple) | **POST** /storefront/{storefront_oid}/email/emails/review_status/multiple | Get the review status of multiple emails |
|
|
89
91
|
| [**get_email_segment**](StorefrontApi.md#get_email_segment) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid} | Get email segment |
|
|
90
92
|
| [**get_email_segment_customer_editor_url**](StorefrontApi.md#get_email_segment_customer_editor_url) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/customers/{email_customer_uuid}/editor_url | Get email segment customers editor URL |
|
|
91
93
|
| [**get_email_segment_customers**](StorefrontApi.md#get_email_segment_customers) | **GET** /storefront/{storefront_oid}/email/segments/{email_segment_uuid}/customers | Get email segment customers |
|
|
@@ -4549,6 +4551,112 @@ end
|
|
|
4549
4551
|
- **Accept**: application/json
|
|
4550
4552
|
|
|
4551
4553
|
|
|
4554
|
+
## get_email_review_status
|
|
4555
|
+
|
|
4556
|
+
> <EmailCommseqEmailReviewStatusResponse> get_email_review_status(storefront_oid, commseq_email_uuid)
|
|
4557
|
+
|
|
4558
|
+
Get the review status of an email
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
### Examples
|
|
4562
|
+
|
|
4563
|
+
|
|
4564
|
+
(No example for this operation).
|
|
4565
|
+
|
|
4566
|
+
|
|
4567
|
+
#### Using the get_email_review_status_with_http_info variant
|
|
4568
|
+
|
|
4569
|
+
This returns an Array which contains the response data, status code and headers.
|
|
4570
|
+
|
|
4571
|
+
> <Array(<EmailCommseqEmailReviewStatusResponse>, Integer, Hash)> get_email_review_status_with_http_info(storefront_oid, commseq_email_uuid)
|
|
4572
|
+
|
|
4573
|
+
```ruby
|
|
4574
|
+
begin
|
|
4575
|
+
# Get the review status of an email
|
|
4576
|
+
data, status_code, headers = api_instance.get_email_review_status_with_http_info(storefront_oid, commseq_email_uuid)
|
|
4577
|
+
p status_code # => 2xx
|
|
4578
|
+
p headers # => { ... }
|
|
4579
|
+
p data # => <EmailCommseqEmailReviewStatusResponse>
|
|
4580
|
+
rescue UltracartClient::ApiError => e
|
|
4581
|
+
puts "Error when calling StorefrontApi->get_email_review_status_with_http_info: #{e}"
|
|
4582
|
+
end
|
|
4583
|
+
```
|
|
4584
|
+
|
|
4585
|
+
### Parameters
|
|
4586
|
+
|
|
4587
|
+
| Name | Type | Description | Notes |
|
|
4588
|
+
| ---- | ---- | ----------- | ----- |
|
|
4589
|
+
| **storefront_oid** | **Integer** | | |
|
|
4590
|
+
| **commseq_email_uuid** | **String** | | |
|
|
4591
|
+
|
|
4592
|
+
### Return type
|
|
4593
|
+
|
|
4594
|
+
[**EmailCommseqEmailReviewStatusResponse**](EmailCommseqEmailReviewStatusResponse.md)
|
|
4595
|
+
|
|
4596
|
+
### Authorization
|
|
4597
|
+
|
|
4598
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
4599
|
+
|
|
4600
|
+
### HTTP request headers
|
|
4601
|
+
|
|
4602
|
+
- **Content-Type**: Not defined
|
|
4603
|
+
- **Accept**: application/json
|
|
4604
|
+
|
|
4605
|
+
|
|
4606
|
+
## get_email_review_statuses_multiple
|
|
4607
|
+
|
|
4608
|
+
> <EmailCommseqEmailReviewStatusesResponse> get_email_review_statuses_multiple(storefront_oid, email_commseq_email_review_statuses_request)
|
|
4609
|
+
|
|
4610
|
+
Get the review status of multiple emails
|
|
4611
|
+
|
|
4612
|
+
Returns one entry per requested email, in the order requested, so a caller polling a campaign does not have to reconcile a short response.
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
### Examples
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
(No example for this operation).
|
|
4619
|
+
|
|
4620
|
+
|
|
4621
|
+
#### Using the get_email_review_statuses_multiple_with_http_info variant
|
|
4622
|
+
|
|
4623
|
+
This returns an Array which contains the response data, status code and headers.
|
|
4624
|
+
|
|
4625
|
+
> <Array(<EmailCommseqEmailReviewStatusesResponse>, Integer, Hash)> get_email_review_statuses_multiple_with_http_info(storefront_oid, email_commseq_email_review_statuses_request)
|
|
4626
|
+
|
|
4627
|
+
```ruby
|
|
4628
|
+
begin
|
|
4629
|
+
# Get the review status of multiple emails
|
|
4630
|
+
data, status_code, headers = api_instance.get_email_review_statuses_multiple_with_http_info(storefront_oid, email_commseq_email_review_statuses_request)
|
|
4631
|
+
p status_code # => 2xx
|
|
4632
|
+
p headers # => { ... }
|
|
4633
|
+
p data # => <EmailCommseqEmailReviewStatusesResponse>
|
|
4634
|
+
rescue UltracartClient::ApiError => e
|
|
4635
|
+
puts "Error when calling StorefrontApi->get_email_review_statuses_multiple_with_http_info: #{e}"
|
|
4636
|
+
end
|
|
4637
|
+
```
|
|
4638
|
+
|
|
4639
|
+
### Parameters
|
|
4640
|
+
|
|
4641
|
+
| Name | Type | Description | Notes |
|
|
4642
|
+
| ---- | ---- | ----------- | ----- |
|
|
4643
|
+
| **storefront_oid** | **Integer** | | |
|
|
4644
|
+
| **email_commseq_email_review_statuses_request** | [**EmailCommseqEmailReviewStatusesRequest**](EmailCommseqEmailReviewStatusesRequest.md) | Request of email uuids | |
|
|
4645
|
+
|
|
4646
|
+
### Return type
|
|
4647
|
+
|
|
4648
|
+
[**EmailCommseqEmailReviewStatusesResponse**](EmailCommseqEmailReviewStatusesResponse.md)
|
|
4649
|
+
|
|
4650
|
+
### Authorization
|
|
4651
|
+
|
|
4652
|
+
[ultraCartBrowserApiKey](../README.md#ultraCartBrowserApiKey), [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
4653
|
+
|
|
4654
|
+
### HTTP request headers
|
|
4655
|
+
|
|
4656
|
+
- **Content-Type**: application/json
|
|
4657
|
+
- **Accept**: application/json
|
|
4658
|
+
|
|
4659
|
+
|
|
4552
4660
|
## get_email_segment
|
|
4553
4661
|
|
|
4554
4662
|
> <EmailSegmentResponse> get_email_segment(storefront_oid, email_segment_uuid)
|
|
@@ -5661,6 +5661,149 @@ module UltracartClient
|
|
|
5661
5661
|
return data, status_code, headers
|
|
5662
5662
|
end
|
|
5663
5663
|
|
|
5664
|
+
# Get the review status of an email
|
|
5665
|
+
# @param storefront_oid [Integer]
|
|
5666
|
+
# @param commseq_email_uuid [String]
|
|
5667
|
+
# @param [Hash] opts the optional parameters
|
|
5668
|
+
# @return [EmailCommseqEmailReviewStatusResponse]
|
|
5669
|
+
def get_email_review_status(storefront_oid, commseq_email_uuid, opts = {})
|
|
5670
|
+
data, _status_code, _headers = get_email_review_status_with_http_info(storefront_oid, commseq_email_uuid, opts)
|
|
5671
|
+
data
|
|
5672
|
+
end
|
|
5673
|
+
|
|
5674
|
+
# Get the review status of an email
|
|
5675
|
+
# @param storefront_oid [Integer]
|
|
5676
|
+
# @param commseq_email_uuid [String]
|
|
5677
|
+
# @param [Hash] opts the optional parameters
|
|
5678
|
+
# @return [Array<(EmailCommseqEmailReviewStatusResponse, Integer, Hash)>] EmailCommseqEmailReviewStatusResponse data, response status code and response headers
|
|
5679
|
+
def get_email_review_status_with_http_info(storefront_oid, commseq_email_uuid, opts = {})
|
|
5680
|
+
if @api_client.config.debugging
|
|
5681
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_review_status ...'
|
|
5682
|
+
end
|
|
5683
|
+
# verify the required parameter 'storefront_oid' is set
|
|
5684
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
5685
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_review_status"
|
|
5686
|
+
end
|
|
5687
|
+
# verify the required parameter 'commseq_email_uuid' is set
|
|
5688
|
+
if @api_client.config.client_side_validation && commseq_email_uuid.nil?
|
|
5689
|
+
fail ArgumentError, "Missing the required parameter 'commseq_email_uuid' when calling StorefrontApi.get_email_review_status"
|
|
5690
|
+
end
|
|
5691
|
+
# resource path
|
|
5692
|
+
local_var_path = '/storefront/{storefront_oid}/email/emails/{commseq_email_uuid}/review_status'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'commseq_email_uuid' + '}', CGI.escape(commseq_email_uuid.to_s))
|
|
5693
|
+
|
|
5694
|
+
# query parameters
|
|
5695
|
+
query_params = opts[:query_params] || {}
|
|
5696
|
+
|
|
5697
|
+
# header parameters
|
|
5698
|
+
header_params = opts[:header_params] || {}
|
|
5699
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
5700
|
+
# HTTP header 'Accept' (if needed)
|
|
5701
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5702
|
+
|
|
5703
|
+
# form parameters
|
|
5704
|
+
form_params = opts[:form_params] || {}
|
|
5705
|
+
|
|
5706
|
+
# http body (model)
|
|
5707
|
+
post_body = opts[:debug_body]
|
|
5708
|
+
|
|
5709
|
+
# return_type
|
|
5710
|
+
return_type = opts[:debug_return_type] || 'EmailCommseqEmailReviewStatusResponse'
|
|
5711
|
+
|
|
5712
|
+
# auth_names
|
|
5713
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
5714
|
+
|
|
5715
|
+
new_options = opts.merge(
|
|
5716
|
+
:operation => :"StorefrontApi.get_email_review_status",
|
|
5717
|
+
:header_params => header_params,
|
|
5718
|
+
:query_params => query_params,
|
|
5719
|
+
:form_params => form_params,
|
|
5720
|
+
:body => post_body,
|
|
5721
|
+
:auth_names => auth_names,
|
|
5722
|
+
:return_type => return_type
|
|
5723
|
+
)
|
|
5724
|
+
|
|
5725
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
5726
|
+
if @api_client.config.debugging
|
|
5727
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_email_review_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5728
|
+
end
|
|
5729
|
+
return data, status_code, headers
|
|
5730
|
+
end
|
|
5731
|
+
|
|
5732
|
+
# Get the review status of multiple emails
|
|
5733
|
+
# Returns one entry per requested email, in the order requested, so a caller polling a campaign does not have to reconcile a short response.
|
|
5734
|
+
# @param storefront_oid [Integer]
|
|
5735
|
+
# @param email_commseq_email_review_statuses_request [EmailCommseqEmailReviewStatusesRequest] Request of email uuids
|
|
5736
|
+
# @param [Hash] opts the optional parameters
|
|
5737
|
+
# @return [EmailCommseqEmailReviewStatusesResponse]
|
|
5738
|
+
def get_email_review_statuses_multiple(storefront_oid, email_commseq_email_review_statuses_request, opts = {})
|
|
5739
|
+
data, _status_code, _headers = get_email_review_statuses_multiple_with_http_info(storefront_oid, email_commseq_email_review_statuses_request, opts)
|
|
5740
|
+
data
|
|
5741
|
+
end
|
|
5742
|
+
|
|
5743
|
+
# Get the review status of multiple emails
|
|
5744
|
+
# Returns one entry per requested email, in the order requested, so a caller polling a campaign does not have to reconcile a short response.
|
|
5745
|
+
# @param storefront_oid [Integer]
|
|
5746
|
+
# @param email_commseq_email_review_statuses_request [EmailCommseqEmailReviewStatusesRequest] Request of email uuids
|
|
5747
|
+
# @param [Hash] opts the optional parameters
|
|
5748
|
+
# @return [Array<(EmailCommseqEmailReviewStatusesResponse, Integer, Hash)>] EmailCommseqEmailReviewStatusesResponse data, response status code and response headers
|
|
5749
|
+
def get_email_review_statuses_multiple_with_http_info(storefront_oid, email_commseq_email_review_statuses_request, opts = {})
|
|
5750
|
+
if @api_client.config.debugging
|
|
5751
|
+
@api_client.config.logger.debug 'Calling API: StorefrontApi.get_email_review_statuses_multiple ...'
|
|
5752
|
+
end
|
|
5753
|
+
# verify the required parameter 'storefront_oid' is set
|
|
5754
|
+
if @api_client.config.client_side_validation && storefront_oid.nil?
|
|
5755
|
+
fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling StorefrontApi.get_email_review_statuses_multiple"
|
|
5756
|
+
end
|
|
5757
|
+
# verify the required parameter 'email_commseq_email_review_statuses_request' is set
|
|
5758
|
+
if @api_client.config.client_side_validation && email_commseq_email_review_statuses_request.nil?
|
|
5759
|
+
fail ArgumentError, "Missing the required parameter 'email_commseq_email_review_statuses_request' when calling StorefrontApi.get_email_review_statuses_multiple"
|
|
5760
|
+
end
|
|
5761
|
+
# resource path
|
|
5762
|
+
local_var_path = '/storefront/{storefront_oid}/email/emails/review_status/multiple'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s))
|
|
5763
|
+
|
|
5764
|
+
# query parameters
|
|
5765
|
+
query_params = opts[:query_params] || {}
|
|
5766
|
+
|
|
5767
|
+
# header parameters
|
|
5768
|
+
header_params = opts[:header_params] || {}
|
|
5769
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
5770
|
+
# HTTP header 'Accept' (if needed)
|
|
5771
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5772
|
+
# HTTP header 'Content-Type'
|
|
5773
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
5774
|
+
if !content_type.nil?
|
|
5775
|
+
header_params['Content-Type'] = content_type
|
|
5776
|
+
end
|
|
5777
|
+
|
|
5778
|
+
# form parameters
|
|
5779
|
+
form_params = opts[:form_params] || {}
|
|
5780
|
+
|
|
5781
|
+
# http body (model)
|
|
5782
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(email_commseq_email_review_statuses_request)
|
|
5783
|
+
|
|
5784
|
+
# return_type
|
|
5785
|
+
return_type = opts[:debug_return_type] || 'EmailCommseqEmailReviewStatusesResponse'
|
|
5786
|
+
|
|
5787
|
+
# auth_names
|
|
5788
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartBrowserApiKey', 'ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
5789
|
+
|
|
5790
|
+
new_options = opts.merge(
|
|
5791
|
+
:operation => :"StorefrontApi.get_email_review_statuses_multiple",
|
|
5792
|
+
:header_params => header_params,
|
|
5793
|
+
:query_params => query_params,
|
|
5794
|
+
:form_params => form_params,
|
|
5795
|
+
:body => post_body,
|
|
5796
|
+
:auth_names => auth_names,
|
|
5797
|
+
:return_type => return_type
|
|
5798
|
+
)
|
|
5799
|
+
|
|
5800
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
5801
|
+
if @api_client.config.debugging
|
|
5802
|
+
@api_client.config.logger.debug "API called: StorefrontApi#get_email_review_statuses_multiple\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5803
|
+
end
|
|
5804
|
+
return data, status_code, headers
|
|
5805
|
+
end
|
|
5806
|
+
|
|
5664
5807
|
# Get email segment
|
|
5665
5808
|
# @param storefront_oid [Integer]
|
|
5666
5809
|
# @param email_segment_uuid [String]
|