ultracart_api 4.1.209 → 4.1.211

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0c962b8931e0142a262e884bb6d133b3d99a87b303518b9dae0ca640a41819b
4
- data.tar.gz: 2ae7fa35c9b3393aa512a70866239cc71481b84a86f28a5d4ef470be04cb349f
3
+ metadata.gz: 433a8aaea315101666d5b31ee8a8983cb95241f2421824d42d069e463e3cc94c
4
+ data.tar.gz: 90123646be6a6a72b2dbf8024107caf6d62b5881b6893e4f70f80e9ed2f3e116
5
5
  SHA512:
6
- metadata.gz: c93fcf30f8484e75e27bfb3598ff5f92ef16618710fd5b94a6d653b3c73afc57b156d640dd197d5c9aeda21b0a14efb62bf16c892a3e4b9ec5bdaf0148e41f20
7
- data.tar.gz: 6daf4f903bf2d574f2250efba9aefd9b5b866c0af8d4dd69789e9b80a5a709be7563247d4be5e4d075c4f82357f801e6ea336c4538c5958fefa6f28bb33e24a0
6
+ metadata.gz: e83035d699791416639d17e2443643057d38fc5b6bd6cce8b5dd5432afad09d2d06152f0b4c91909a5d98836ee8e1713ba1bdd7650ca8869ede586dccffdd46a
7
+ data.tar.gz: c74ca1fc0536aafdfc8010cc1055fce1464b8b965b73930d1f5fd1a68c5465a93a3dfbc3e51a10807fe5b239535f2fcfbdb625f4b185813ea285f35b27c6c3b2
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.209
10
+ - Package version: 4.1.211
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.209'
19
+ gem 'ultracart_api', '4.1.211'
20
20
  ```
21
21
 
22
22
  install:
@@ -572,6 +572,7 @@ Class | Method | HTTP request | Description
572
572
  *UltracartClient::SfvbApi* | [**get_sfvb_secret_kinds**](docs/SfvbApi.md#get_sfvb_secret_kinds) | **GET** /sfvb/secrets/kinds | List the secrets this server collects
573
573
  *UltracartClient::SfvbApi* | [**get_sfvb_secret_request**](docs/SfvbApi.md#get_sfvb_secret_request) | **GET** /sfvb/secrets/{request_id} | Read one secret request
574
574
  *UltracartClient::SfvbApi* | [**get_sfvb_secret_requests**](docs/SfvbApi.md#get_sfvb_secret_requests) | **GET** /sfvb/secrets | List this sign-in's secret requests
575
+ *UltracartClient::SfvbApi* | [**get_sfvb_sequence**](docs/SfvbApi.md#get_sfvb_sequence) | **GET** /sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid} | Get a campaign's or flow's steps as a tree
575
576
  *UltracartClient::SfvbApi* | [**get_sfvb_server_log**](docs/SfvbApi.md#get_sfvb_server_log) | **GET** /sfvb/storefronts/{storefront_oid}/logs/{log_id} | Get one storefront render log
576
577
  *UltracartClient::SfvbApi* | [**get_sfvb_site_attributes**](docs/SfvbApi.md#get_sfvb_site_attributes) | **GET** /sfvb/storefronts/{storefront_oid}/attributes | Read a storefront's site attributes
577
578
  *UltracartClient::SfvbApi* | [**get_sfvb_test_orders**](docs/SfvbApi.md#get_sfvb_test_orders) | **GET** /sfvb/storefronts/{storefront_oid}/test_orders | List recent test orders
@@ -651,6 +652,7 @@ Class | Method | HTTP request | Description
651
652
  *UltracartClient::SfvbApi* | [**resolve_sfvb_template**](docs/SfvbApi.md#resolve_sfvb_template) | **GET** /sfvb/storefronts/{storefront_oid}/templates/resolve | Resolve a template name to the file a page renders
652
653
  *UltracartClient::SfvbApi* | [**revert_sfvb_container**](docs/SfvbApi.md#revert_sfvb_container) | **POST** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id}/revert | Revert a container stored outside the file system
653
654
  *UltracartClient::SfvbApi* | [**revert_sfvb_file**](docs/SfvbApi.md#revert_sfvb_file) | **POST** /sfvb/storefronts/{storefront_oid}/files/revert | Revert a storefront file to an earlier version
655
+ *UltracartClient::SfvbApi* | [**review_sfvb_email**](docs/SfvbApi.md#review_sfvb_email) | **POST** /sfvb/storefronts/{storefront_oid}/emails/{email_uuid}/review | Request a content review of a flow or campaign email
654
656
  *UltracartClient::SfvbApi* | [**revoke_sfvb_secret_request**](docs/SfvbApi.md#revoke_sfvb_secret_request) | **POST** /sfvb/secrets/{request_id}/revoke | Revoke a fulfilled request's unused handles
655
657
  *UltracartClient::SfvbApi* | [**search_sfvb_files**](docs/SfvbApi.md#search_sfvb_files) | **POST** /sfvb/storefronts/{storefront_oid}/files/search | Search storefront files
656
658
  *UltracartClient::SfvbApi* | [**search_sfvb_library**](docs/SfvbApi.md#search_sfvb_library) | **GET** /sfvb/storefronts/{storefront_oid}/library | Search the element library
@@ -1945,6 +1947,7 @@ Class | Method | HTTP request | Description
1945
1947
  - [UltracartClient::SfvbEmail](docs/SfvbEmail.md)
1946
1948
  - [UltracartClient::SfvbEmailRenderRequest](docs/SfvbEmailRenderRequest.md)
1947
1949
  - [UltracartClient::SfvbEmailRenderResponse](docs/SfvbEmailRenderResponse.md)
1950
+ - [UltracartClient::SfvbEmailReviewRequest](docs/SfvbEmailReviewRequest.md)
1948
1951
  - [UltracartClient::SfvbEmailUpdateRequest](docs/SfvbEmailUpdateRequest.md)
1949
1952
  - [UltracartClient::SfvbErrorDetail](docs/SfvbErrorDetail.md)
1950
1953
  - [UltracartClient::SfvbEvent](docs/SfvbEvent.md)
@@ -2104,6 +2107,9 @@ Class | Method | HTTP request | Description
2104
2107
  - [UltracartClient::SfvbSecretRequestCreate](docs/SfvbSecretRequestCreate.md)
2105
2108
  - [UltracartClient::SfvbSecretRequestsResponse](docs/SfvbSecretRequestsResponse.md)
2106
2109
  - [UltracartClient::SfvbSecretSink](docs/SfvbSecretSink.md)
2110
+ - [UltracartClient::SfvbSequence](docs/SfvbSequence.md)
2111
+ - [UltracartClient::SfvbSequenceBranch](docs/SfvbSequenceBranch.md)
2112
+ - [UltracartClient::SfvbSequenceStep](docs/SfvbSequenceStep.md)
2107
2113
  - [UltracartClient::SfvbServerLog](docs/SfvbServerLog.md)
2108
2114
  - [UltracartClient::SfvbServerLogDetail](docs/SfvbServerLogDetail.md)
2109
2115
  - [UltracartClient::SfvbServerLogEntry](docs/SfvbServerLogEntry.md)
@@ -2321,6 +2327,8 @@ Not every change is committed to every SDK.
2321
2327
 
2322
2328
  | Version | Date | Comments |
2323
2329
  | --: | :-: | --- |
2330
+ | 4.1.211 | 10/27/2026 | sfvb internal testing |
2331
+ | 4.1.210 | 10/27/2026 | sfvb internal testing |
2324
2332
  | 4.1.209 | 10/27/2026 | sfvb internal testing |
2325
2333
  | 4.1.208 | 10/26/2026 | sfvb internal testing |
2326
2334
  | 4.1.207 | 10/16/2026 | sfvb internal testing |
data/docs/SfvbApi.md CHANGED
@@ -100,6 +100,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
100
100
  | [**get_sfvb_secret_kinds**](SfvbApi.md#get_sfvb_secret_kinds) | **GET** /sfvb/secrets/kinds | List the secrets this server collects |
101
101
  | [**get_sfvb_secret_request**](SfvbApi.md#get_sfvb_secret_request) | **GET** /sfvb/secrets/{request_id} | Read one secret request |
102
102
  | [**get_sfvb_secret_requests**](SfvbApi.md#get_sfvb_secret_requests) | **GET** /sfvb/secrets | List this sign-in's secret requests |
103
+ | [**get_sfvb_sequence**](SfvbApi.md#get_sfvb_sequence) | **GET** /sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid} | Get a campaign's or flow's steps as a tree |
103
104
  | [**get_sfvb_server_log**](SfvbApi.md#get_sfvb_server_log) | **GET** /sfvb/storefronts/{storefront_oid}/logs/{log_id} | Get one storefront render log |
104
105
  | [**get_sfvb_site_attributes**](SfvbApi.md#get_sfvb_site_attributes) | **GET** /sfvb/storefronts/{storefront_oid}/attributes | Read a storefront's site attributes |
105
106
  | [**get_sfvb_test_orders**](SfvbApi.md#get_sfvb_test_orders) | **GET** /sfvb/storefronts/{storefront_oid}/test_orders | List recent test orders |
@@ -179,6 +180,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
179
180
  | [**resolve_sfvb_template**](SfvbApi.md#resolve_sfvb_template) | **GET** /sfvb/storefronts/{storefront_oid}/templates/resolve | Resolve a template name to the file a page renders |
180
181
  | [**revert_sfvb_container**](SfvbApi.md#revert_sfvb_container) | **POST** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id}/revert | Revert a container stored outside the file system |
181
182
  | [**revert_sfvb_file**](SfvbApi.md#revert_sfvb_file) | **POST** /sfvb/storefronts/{storefront_oid}/files/revert | Revert a storefront file to an earlier version |
183
+ | [**review_sfvb_email**](SfvbApi.md#review_sfvb_email) | **POST** /sfvb/storefronts/{storefront_oid}/emails/{email_uuid}/review | Request a content review of a flow or campaign email |
182
184
  | [**revoke_sfvb_secret_request**](SfvbApi.md#revoke_sfvb_secret_request) | **POST** /sfvb/secrets/{request_id}/revoke | Revoke a fulfilled request's unused handles |
183
185
  | [**search_sfvb_files**](SfvbApi.md#search_sfvb_files) | **POST** /sfvb/storefronts/{storefront_oid}/files/search | Search storefront files |
184
186
  | [**search_sfvb_library**](SfvbApi.md#search_sfvb_library) | **GET** /sfvb/storefronts/{storefront_oid}/library | Search the element library |
@@ -5414,6 +5416,61 @@ This endpoint does not need any parameter.
5414
5416
  - **Accept**: application/json
5415
5417
 
5416
5418
 
5419
+ ## get_sfvb_sequence
5420
+
5421
+ > <SfvbSequence> get_sfvb_sequence(storefront_oid, sequence_uuid, opts)
5422
+
5423
+ Get a campaign's or flow's steps as a tree
5424
+
5425
+ The communication sequence named by a campaign's or flow's communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin's label, its settings (a webhook's header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
5426
+
5427
+
5428
+ ### Examples
5429
+
5430
+
5431
+ (No example for this operation).
5432
+
5433
+
5434
+ #### Using the get_sfvb_sequence_with_http_info variant
5435
+
5436
+ This returns an Array which contains the response data, status code and headers.
5437
+
5438
+ > <Array(<SfvbSequence>, Integer, Hash)> get_sfvb_sequence_with_http_info(storefront_oid, sequence_uuid, opts)
5439
+
5440
+ ```ruby
5441
+ begin
5442
+ # Get a campaign's or flow's steps as a tree
5443
+ data, status_code, headers = api_instance.get_sfvb_sequence_with_http_info(storefront_oid, sequence_uuid, opts)
5444
+ p status_code # => 2xx
5445
+ p headers # => { ... }
5446
+ p data # => <SfvbSequence>
5447
+ rescue UltracartClient::ApiError => e
5448
+ puts "Error when calling SfvbApi->get_sfvb_sequence_with_http_info: #{e}"
5449
+ end
5450
+ ```
5451
+
5452
+ ### Parameters
5453
+
5454
+ | Name | Type | Description | Notes |
5455
+ | ---- | ---- | ----------- | ----- |
5456
+ | **storefront_oid** | **Integer** | | |
5457
+ | **sequence_uuid** | **String** | | |
5458
+ | **waiting** | **Boolean** | Include how many customers are waiting on each step | [optional] |
5459
+
5460
+ ### Return type
5461
+
5462
+ [**SfvbSequence**](SfvbSequence.md)
5463
+
5464
+ ### Authorization
5465
+
5466
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
5467
+
5468
+ ### HTTP request headers
5469
+
5470
+ - **Content-Type**: Not defined
5471
+ - **Accept**: application/json
5472
+
5473
+
5417
5474
  ## get_sfvb_server_log
5418
5475
 
5419
5476
  > <SfvbServerLogDetail> get_sfvb_server_log(storefront_oid, log_id, opts)
@@ -9760,6 +9817,61 @@ end
9760
9817
  - **Accept**: application/json
9761
9818
 
9762
9819
 
9820
+ ## review_sfvb_email
9821
+
9822
+ > <SfvbEmail> review_sfvb_email(storefront_oid, email_uuid, email_review_request)
9823
+
9824
+ Request a content review of a flow or campaign email
9825
+
9826
+ Starts a review the way the admin's Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn't need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
9827
+
9828
+
9829
+ ### Examples
9830
+
9831
+
9832
+ (No example for this operation).
9833
+
9834
+
9835
+ #### Using the review_sfvb_email_with_http_info variant
9836
+
9837
+ This returns an Array which contains the response data, status code and headers.
9838
+
9839
+ > <Array(<SfvbEmail>, Integer, Hash)> review_sfvb_email_with_http_info(storefront_oid, email_uuid, email_review_request)
9840
+
9841
+ ```ruby
9842
+ begin
9843
+ # Request a content review of a flow or campaign email
9844
+ data, status_code, headers = api_instance.review_sfvb_email_with_http_info(storefront_oid, email_uuid, email_review_request)
9845
+ p status_code # => 2xx
9846
+ p headers # => { ... }
9847
+ p data # => <SfvbEmail>
9848
+ rescue UltracartClient::ApiError => e
9849
+ puts "Error when calling SfvbApi->review_sfvb_email_with_http_info: #{e}"
9850
+ end
9851
+ ```
9852
+
9853
+ ### Parameters
9854
+
9855
+ | Name | Type | Description | Notes |
9856
+ | ---- | ---- | ----------- | ----- |
9857
+ | **storefront_oid** | **Integer** | | |
9858
+ | **email_uuid** | **String** | | |
9859
+ | **email_review_request** | [**SfvbEmailReviewRequest**](SfvbEmailReviewRequest.md) | The test order, for an email in an order-triggered flow | |
9860
+
9861
+ ### Return type
9862
+
9863
+ [**SfvbEmail**](SfvbEmail.md)
9864
+
9865
+ ### Authorization
9866
+
9867
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
9868
+
9869
+ ### HTTP request headers
9870
+
9871
+ - **Content-Type**: application/json
9872
+ - **Accept**: application/json
9873
+
9874
+
9763
9875
  ## revoke_sfvb_secret_request
9764
9876
 
9765
9877
  > <SfvbSecretRequest> revoke_sfvb_secret_request(request_id)
data/docs/SfvbEmail.md CHANGED
@@ -8,6 +8,7 @@
8
8
  | **email_uuid** | **String** | The email uuid. The same uuid the email container (owner type email) and the email render take. | [optional] |
9
9
  | **hash_sha256** | **String** | Hash of the subject and preview text. Send it as If-Match when updating. A change to the email body does not change it. | [optional] |
10
10
  | **live** | **Boolean** | True when the email is in a flow or campaign that is sending, so a change reaches customers and needs sfvb_publish. An email in neither is reported live. | [optional] |
11
+ | **notes** | **Array&lt;String&gt;** | What a write did beyond the fields asked for, such as a step label it could not refresh. Only on a write. | [optional] |
11
12
  | **pending_review** | **Boolean** | True while a change waits for review. An edit puts it back to needing review. | [optional] |
12
13
  | **preview_text** | **String** | The preview text an inbox shows after the subject. | [optional] |
13
14
  | **rejected** | **Boolean** | True when review rejected the email. An edit puts it back to needing review. | [optional] |
@@ -27,6 +28,7 @@ instance = UltracartClient::SfvbEmail.new(
27
28
  email_uuid: null,
28
29
  hash_sha256: null,
29
30
  live: null,
31
+ notes: null,
30
32
  pending_review: null,
31
33
  preview_text: null,
32
34
  rejected: null,
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbEmailReviewRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **order_id** | **String** | A test order id. Required for an email in a flow triggered by an order or an auto order, and refused otherwise. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbEmailReviewRequest.new(
15
+ order_id: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,34 @@
1
+ # UltracartClient::SfvbSequence
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **communication_sequence_uuid** | **String** | The sequence uuid. | [optional] |
8
+ | **live** | **Boolean** | True when its emails and postcards reach customers now. | [optional] |
9
+ | **notes** | **Array&lt;String&gt;** | Anything the read could not do, such as waiting counts that were unavailable. | [optional] |
10
+ | **owner_name** | **String** | The campaign or flow name. | [optional] |
11
+ | **owner_status** | **String** | The campaign or flow status. | [optional] |
12
+ | **owner_type** | **String** | campaign or flow. | [optional] |
13
+ | **owner_uuid** | **String** | The campaign or flow uuid. | [optional] |
14
+ | **steps** | [**Array&lt;SfvbSequenceStep&gt;**](SfvbSequenceStep.md) | The steps from the start, in order. A branching step holds its sides in branches. | [optional] |
15
+ | **waiting_included** | **Boolean** | True when number_waiting was filled in. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ultracart_api'
21
+
22
+ instance = UltracartClient::SfvbSequence.new(
23
+ communication_sequence_uuid: null,
24
+ live: null,
25
+ notes: null,
26
+ owner_name: null,
27
+ owner_status: null,
28
+ owner_type: null,
29
+ owner_uuid: null,
30
+ steps: null,
31
+ waiting_included: null
32
+ )
33
+ ```
34
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::SfvbSequenceBranch
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **label** | **String** | yes or no for a condition, left or right for a split or an InboxGeek step. | [optional] |
8
+ | **steps** | [**Array&lt;SfvbSequenceStep&gt;**](SfvbSequenceStep.md) | The steps on this side, in order. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::SfvbSequenceBranch.new(
16
+ label: null,
17
+ steps: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,50 @@
1
+ # UltracartClient::SfvbSequenceStep
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **branches** | [**Array&lt;SfvbSequenceBranch&gt;**](SfvbSequenceBranch.md) | Its two sides, for a condition, split or InboxGeek step. Absent for every other type. | [optional] |
8
+ | **config_error** | **Boolean** | True when the step&#39;s settings could not be read. | [optional] |
9
+ | **config_json** | **String** | The step&#39;s settings as the admin stores them. A webhook&#39;s header and parameter values are masked. | [optional] |
10
+ | **config_merchant_notes** | **String** | A note stored inside the step&#39;s settings, when there is one. | [optional] |
11
+ | **disabled** | **Boolean** | True when the step is switched off in its settings. | [optional] |
12
+ | **email_uuids** | **Array&lt;String&gt;** | The emails it sends. One for an email step, one per variant for an experiment. | [optional] |
13
+ | **filter_profile_equation_json** | **String** | The step&#39;s audience filter as stored, when it has one. | [optional] |
14
+ | **item_ids** | **Array&lt;String&gt;** | The items it names, for a cart or rate limiter step. | [optional] |
15
+ | **label** | **String** | The type as the admin names it, such as Time Delay. The type itself for one it doesn&#39;t know. | [optional] |
16
+ | **list_uuids** | **Array&lt;String&gt;** | The lists it subscribes or unsubscribes, for a list step. | [optional] |
17
+ | **merchant_notes** | **String** | The note stored on the step. | [optional] |
18
+ | **name** | **String** | The step&#39;s own display name from its settings, when it has one. | [optional] |
19
+ | **number_waiting** | **Integer** | How many customers are waiting on this step now. Only when waiting counts were asked for. | [optional] |
20
+ | **postcard_uuid** | **String** | The postcard it sends, for a postcard step. | [optional] |
21
+ | **step_uuid** | **String** | The step uuid. | [optional] |
22
+ | **type** | **String** | The step type, such as email, wait, condition or webhook. | [optional] |
23
+ | **unreachable** | **Boolean** | True for a step no branch leads to. Listed at the end so nothing is hidden. | [optional] |
24
+
25
+ ## Example
26
+
27
+ ```ruby
28
+ require 'ultracart_api'
29
+
30
+ instance = UltracartClient::SfvbSequenceStep.new(
31
+ branches: null,
32
+ config_error: null,
33
+ config_json: null,
34
+ config_merchant_notes: null,
35
+ disabled: null,
36
+ email_uuids: null,
37
+ filter_profile_equation_json: null,
38
+ item_ids: null,
39
+ label: null,
40
+ list_uuids: null,
41
+ merchant_notes: null,
42
+ name: null,
43
+ number_waiting: null,
44
+ postcard_uuid: null,
45
+ step_uuid: null,
46
+ type: null,
47
+ unreachable: null
48
+ )
49
+ ```
50
+
@@ -6886,6 +6886,79 @@ module UltracartClient
6886
6886
  return data, status_code, headers
6887
6887
  end
6888
6888
 
6889
+ # Get a campaign's or flow's steps as a tree
6890
+ # The communication sequence named by a campaign's or flow's communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin's label, its settings (a webhook's header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
6891
+ # @param storefront_oid [Integer]
6892
+ # @param sequence_uuid [String]
6893
+ # @param [Hash] opts the optional parameters
6894
+ # @option opts [Boolean] :waiting Include how many customers are waiting on each step
6895
+ # @return [SfvbSequence]
6896
+ def get_sfvb_sequence(storefront_oid, sequence_uuid, opts = {})
6897
+ data, _status_code, _headers = get_sfvb_sequence_with_http_info(storefront_oid, sequence_uuid, opts)
6898
+ data
6899
+ end
6900
+
6901
+ # Get a campaign&#39;s or flow&#39;s steps as a tree
6902
+ # The communication sequence named by a campaign&#39;s or flow&#39;s communication_sequence_uuid, with its steps from the start in order. Only condition, split and InboxGeek steps branch, and each holds its two sides in branches. Each step has its type, the admin&#39;s label, its settings (a webhook&#39;s header and parameter values masked), its audience filter, and the emails, postcard, lists or items it names. waiting adds how many customers are waiting on each step now. Read only.
6903
+ # @param storefront_oid [Integer]
6904
+ # @param sequence_uuid [String]
6905
+ # @param [Hash] opts the optional parameters
6906
+ # @option opts [Boolean] :waiting Include how many customers are waiting on each step
6907
+ # @return [Array<(SfvbSequence, Integer, Hash)>] SfvbSequence data, response status code and response headers
6908
+ def get_sfvb_sequence_with_http_info(storefront_oid, sequence_uuid, opts = {})
6909
+ if @api_client.config.debugging
6910
+ @api_client.config.logger.debug 'Calling API: SfvbApi.get_sfvb_sequence ...'
6911
+ end
6912
+ # verify the required parameter 'storefront_oid' is set
6913
+ if @api_client.config.client_side_validation && storefront_oid.nil?
6914
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.get_sfvb_sequence"
6915
+ end
6916
+ # verify the required parameter 'sequence_uuid' is set
6917
+ if @api_client.config.client_side_validation && sequence_uuid.nil?
6918
+ fail ArgumentError, "Missing the required parameter 'sequence_uuid' when calling SfvbApi.get_sfvb_sequence"
6919
+ end
6920
+ # resource path
6921
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/sequences/{sequence_uuid}'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'sequence_uuid' + '}', CGI.escape(sequence_uuid.to_s))
6922
+
6923
+ # query parameters
6924
+ query_params = opts[:query_params] || {}
6925
+ query_params[:'waiting'] = opts[:'waiting'] if !opts[:'waiting'].nil?
6926
+
6927
+ # header parameters
6928
+ header_params = opts[:header_params] || {}
6929
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
6930
+ # HTTP header 'Accept' (if needed)
6931
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6932
+
6933
+ # form parameters
6934
+ form_params = opts[:form_params] || {}
6935
+
6936
+ # http body (model)
6937
+ post_body = opts[:debug_body]
6938
+
6939
+ # return_type
6940
+ return_type = opts[:debug_return_type] || 'SfvbSequence'
6941
+
6942
+ # auth_names
6943
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
6944
+
6945
+ new_options = opts.merge(
6946
+ :operation => :"SfvbApi.get_sfvb_sequence",
6947
+ :header_params => header_params,
6948
+ :query_params => query_params,
6949
+ :form_params => form_params,
6950
+ :body => post_body,
6951
+ :auth_names => auth_names,
6952
+ :return_type => return_type
6953
+ )
6954
+
6955
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6956
+ if @api_client.config.debugging
6957
+ @api_client.config.logger.debug "API called: SfvbApi#get_sfvb_sequence\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6958
+ end
6959
+ return data, status_code, headers
6960
+ end
6961
+
6889
6962
  # Get one storefront render log
6890
6963
  # One render's server log with its lines, each with a level, a category such as VELOCITY or FLOW, and the message. log_id comes from the list, or from the X-UltraCart-Storefront-Log-Id header a page sends inside an SFVB preview session. min_level is debug, info, warn or error, default debug.
6891
6964
  # @param storefront_oid [Integer]
@@ -12883,6 +12956,87 @@ module UltracartClient
12883
12956
  return data, status_code, headers
12884
12957
  end
12885
12958
 
12959
+ # Request a content review of a flow or campaign email
12960
+ # Starts a review the way the admin's Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn't need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
12961
+ # @param storefront_oid [Integer]
12962
+ # @param email_uuid [String]
12963
+ # @param email_review_request [SfvbEmailReviewRequest] The test order, for an email in an order-triggered flow
12964
+ # @param [Hash] opts the optional parameters
12965
+ # @return [SfvbEmail]
12966
+ def review_sfvb_email(storefront_oid, email_uuid, email_review_request, opts = {})
12967
+ data, _status_code, _headers = review_sfvb_email_with_http_info(storefront_oid, email_uuid, email_review_request, opts)
12968
+ data
12969
+ end
12970
+
12971
+ # Request a content review of a flow or campaign email
12972
+ # Starts a review the way the admin&#39;s Request Review does. One test copy of the email goes to the signed-in user, and to no one else, and the review runs in the background, so read the email again for pending_review and then the ruling. Refused with sfvb.review_not_needed when it doesn&#39;t need review, is already waiting for one, or was rejected and not changed since. An email in a flow triggered by an order or an auto order needs order_id, a test order. Needs a signed-in user, not an API key alone.
12973
+ # @param storefront_oid [Integer]
12974
+ # @param email_uuid [String]
12975
+ # @param email_review_request [SfvbEmailReviewRequest] The test order, for an email in an order-triggered flow
12976
+ # @param [Hash] opts the optional parameters
12977
+ # @return [Array<(SfvbEmail, Integer, Hash)>] SfvbEmail data, response status code and response headers
12978
+ def review_sfvb_email_with_http_info(storefront_oid, email_uuid, email_review_request, opts = {})
12979
+ if @api_client.config.debugging
12980
+ @api_client.config.logger.debug 'Calling API: SfvbApi.review_sfvb_email ...'
12981
+ end
12982
+ # verify the required parameter 'storefront_oid' is set
12983
+ if @api_client.config.client_side_validation && storefront_oid.nil?
12984
+ fail ArgumentError, "Missing the required parameter 'storefront_oid' when calling SfvbApi.review_sfvb_email"
12985
+ end
12986
+ # verify the required parameter 'email_uuid' is set
12987
+ if @api_client.config.client_side_validation && email_uuid.nil?
12988
+ fail ArgumentError, "Missing the required parameter 'email_uuid' when calling SfvbApi.review_sfvb_email"
12989
+ end
12990
+ # verify the required parameter 'email_review_request' is set
12991
+ if @api_client.config.client_side_validation && email_review_request.nil?
12992
+ fail ArgumentError, "Missing the required parameter 'email_review_request' when calling SfvbApi.review_sfvb_email"
12993
+ end
12994
+ # resource path
12995
+ local_var_path = '/sfvb/storefronts/{storefront_oid}/emails/{email_uuid}/review'.sub('{' + 'storefront_oid' + '}', CGI.escape(storefront_oid.to_s)).sub('{' + 'email_uuid' + '}', CGI.escape(email_uuid.to_s))
12996
+
12997
+ # query parameters
12998
+ query_params = opts[:query_params] || {}
12999
+
13000
+ # header parameters
13001
+ header_params = opts[:header_params] || {}
13002
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
13003
+ # HTTP header 'Accept' (if needed)
13004
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13005
+ # HTTP header 'Content-Type'
13006
+ content_type = @api_client.select_header_content_type(['application/json'])
13007
+ if !content_type.nil?
13008
+ header_params['Content-Type'] = content_type
13009
+ end
13010
+
13011
+ # form parameters
13012
+ form_params = opts[:form_params] || {}
13013
+
13014
+ # http body (model)
13015
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(email_review_request)
13016
+
13017
+ # return_type
13018
+ return_type = opts[:debug_return_type] || 'SfvbEmail'
13019
+
13020
+ # auth_names
13021
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
13022
+
13023
+ new_options = opts.merge(
13024
+ :operation => :"SfvbApi.review_sfvb_email",
13025
+ :header_params => header_params,
13026
+ :query_params => query_params,
13027
+ :form_params => form_params,
13028
+ :body => post_body,
13029
+ :auth_names => auth_names,
13030
+ :return_type => return_type
13031
+ )
13032
+
13033
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
13034
+ if @api_client.config.debugging
13035
+ @api_client.config.logger.debug "API called: SfvbApi#review_sfvb_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13036
+ end
13037
+ return data, status_code, headers
13038
+ end
13039
+
12886
13040
  # Revoke a fulfilled request's unused handles
12887
13041
  # Every handle of the request that no write has used up stops working at once, and its value is deleted. A handle a write is using right now is left to that write. Use it when the plan changed, or a handle may have leaked.
12888
13042
  # @param request_id [String]
@@ -27,6 +27,9 @@ module UltracartClient
27
27
  # True when the email is in a flow or campaign that is sending, so a change reaches customers and needs sfvb_publish. An email in neither is reported live.
28
28
  attr_accessor :live
29
29
 
30
+ # What a write did beyond the fields asked for, such as a step label it could not refresh. Only on a write.
31
+ attr_accessor :notes
32
+
30
33
  # True while a change waits for review. An edit puts it back to needing review.
31
34
  attr_accessor :pending_review
32
35
 
@@ -58,6 +61,7 @@ module UltracartClient
58
61
  :'email_uuid' => :'email_uuid',
59
62
  :'hash_sha256' => :'hash_sha256',
60
63
  :'live' => :'live',
64
+ :'notes' => :'notes',
61
65
  :'pending_review' => :'pending_review',
62
66
  :'preview_text' => :'preview_text',
63
67
  :'rejected' => :'rejected',
@@ -81,6 +85,7 @@ module UltracartClient
81
85
  :'email_uuid' => :'String',
82
86
  :'hash_sha256' => :'String',
83
87
  :'live' => :'Boolean',
88
+ :'notes' => :'Array<String>',
84
89
  :'pending_review' => :'Boolean',
85
90
  :'preview_text' => :'String',
86
91
  :'rejected' => :'Boolean',
@@ -129,6 +134,12 @@ module UltracartClient
129
134
  self.live = attributes[:'live']
130
135
  end
131
136
 
137
+ if attributes.key?(:'notes')
138
+ if (value = attributes[:'notes']).is_a?(Array)
139
+ self.notes = value
140
+ end
141
+ end
142
+
132
143
  if attributes.key?(:'pending_review')
133
144
  self.pending_review = attributes[:'pending_review']
134
145
  end
@@ -184,6 +195,7 @@ module UltracartClient
184
195
  email_uuid == o.email_uuid &&
185
196
  hash_sha256 == o.hash_sha256 &&
186
197
  live == o.live &&
198
+ notes == o.notes &&
187
199
  pending_review == o.pending_review &&
188
200
  preview_text == o.preview_text &&
189
201
  rejected == o.rejected &&
@@ -203,7 +215,7 @@ module UltracartClient
203
215
  # Calculates hash code according to all attributes.
204
216
  # @return [Integer] Hash code
205
217
  def hash
206
- [container_last_modified_dts, email_uuid, hash_sha256, live, pending_review, preview_text, rejected, requires_review, subject, suspended_for_spam, transactional, version].hash
218
+ [container_last_modified_dts, email_uuid, hash_sha256, live, notes, pending_review, preview_text, rejected, requires_review, subject, suspended_for_spam, transactional, version].hash
207
219
  end
208
220
 
209
221
  # Builds the object from hash