ultracart_api 4.1.136 → 4.1.140
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 +87 -2
- data/docs/ChannelPartnerOrder.md +2 -0
- data/docs/ConversationApi.md +52 -0
- data/docs/ConversationPbxPayConnector.md +32 -0
- data/docs/ConversationPbxPayConnectorsResponse.md +26 -0
- data/docs/OrderChannelPartner.md +2 -0
- data/docs/SfvbApi.md +1933 -0
- data/docs/SfvbCompileRequest.md +26 -0
- data/docs/SfvbCompileResponse.md +28 -0
- data/docs/SfvbContainerResponse.md +36 -0
- data/docs/SfvbContainerRevertRequest.md +20 -0
- data/docs/SfvbContainerVersion.md +40 -0
- data/docs/SfvbContainerVersionsResponse.md +18 -0
- data/docs/SfvbContainerWriteRequest.md +24 -0
- data/docs/SfvbElement.md +20 -0
- data/docs/SfvbElementSchemaResponse.md +20 -0
- data/docs/SfvbElementsResponse.md +22 -0
- data/docs/SfvbErrorDetail.md +36 -0
- data/docs/SfvbFileContentResponse.md +38 -0
- data/docs/SfvbFileEntry.md +46 -0
- data/docs/SfvbFileRevertRequest.md +22 -0
- data/docs/SfvbFileSearchRequest.md +48 -0
- data/docs/SfvbFileSearchResponse.md +32 -0
- data/docs/SfvbFileVersion.md +34 -0
- data/docs/SfvbFileVersionsResponse.md +22 -0
- data/docs/SfvbFileWriteRequest.md +22 -0
- data/docs/SfvbFileWriteResponse.md +28 -0
- data/docs/SfvbFilesResponse.md +28 -0
- data/docs/SfvbLibraryEntry.md +38 -0
- data/docs/SfvbLibraryFacet.md +22 -0
- data/docs/SfvbLibraryResponse.md +28 -0
- data/docs/SfvbPreviewSessionRequest.md +20 -0
- data/docs/SfvbPreviewSessionResponse.md +30 -0
- data/docs/SfvbPreviewUrlResponse.md +30 -0
- data/docs/SfvbRenderRequest.md +40 -0
- data/docs/SfvbRenderResponse.md +28 -0
- data/docs/SfvbStorefront.md +22 -0
- data/docs/SfvbStorefrontsResponse.md +18 -0
- data/docs/SfvbTheme.md +36 -0
- data/docs/SfvbThemeDuplicateRequest.md +22 -0
- data/docs/SfvbThemeJobResponse.md +40 -0
- data/docs/SfvbThemesResponse.md +20 -0
- data/docs/SfvbUpsellOffer.md +34 -0
- data/docs/SfvbUpsellOffersResponse.md +18 -0
- data/docs/SfvbValidateRequest.md +26 -0
- data/docs/SfvbValidationResponse.md +24 -0
- data/docs/SfvbVelocityValidateRequest.md +20 -0
- data/docs/SfvbVersionResponse.md +36 -0
- data/docs/SfvbWhoamiResponse.md +36 -0
- data/docs/SfvbWidgetIdsResponse.md +22 -0
- data/lib/ultracart_api/api/conversation_api.rb +58 -0
- data/lib/ultracart_api/api/sfvb_api.rb +2565 -0
- data/lib/ultracart_api/models/channel_partner_order.rb +13 -1
- data/lib/ultracart_api/models/conversation_pbx_pay_connector.rb +426 -0
- data/lib/ultracart_api/models/conversation_pbx_pay_connectors_response.rb +258 -0
- data/lib/ultracart_api/models/order_channel_partner.rb +13 -1
- data/lib/ultracart_api/models/sfvb_compile_request.rb +260 -0
- data/lib/ultracart_api/models/sfvb_compile_response.rb +273 -0
- data/lib/ultracart_api/models/sfvb_container_response.rb +344 -0
- data/lib/ultracart_api/models/sfvb_container_revert_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_container_version.rb +376 -0
- data/lib/ultracart_api/models/sfvb_container_versions_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_container_write_request.rb +250 -0
- data/lib/ultracart_api/models/sfvb_element.rb +230 -0
- data/lib/ultracart_api/models/sfvb_element_schema_response.rb +230 -0
- data/lib/ultracart_api/models/sfvb_elements_response.rb +242 -0
- data/lib/ultracart_api/models/sfvb_error_detail.rb +346 -0
- data/lib/ultracart_api/models/sfvb_file_content_response.rb +320 -0
- data/lib/ultracart_api/models/sfvb_file_entry.rb +360 -0
- data/lib/ultracart_api/models/sfvb_file_revert_request.rb +240 -0
- data/lib/ultracart_api/models/sfvb_file_search_request.rb +370 -0
- data/lib/ultracart_api/models/sfvb_file_search_response.rb +292 -0
- data/lib/ultracart_api/models/sfvb_file_version.rb +300 -0
- data/lib/ultracart_api/models/sfvb_file_versions_response.rb +242 -0
- data/lib/ultracart_api/models/sfvb_file_write_request.rb +240 -0
- data/lib/ultracart_api/models/sfvb_file_write_response.rb +268 -0
- data/lib/ultracart_api/models/sfvb_files_response.rb +272 -0
- data/lib/ultracart_api/models/sfvb_library_entry.rb +322 -0
- data/lib/ultracart_api/models/sfvb_library_facet.rb +242 -0
- data/lib/ultracart_api/models/sfvb_library_response.rb +274 -0
- data/lib/ultracart_api/models/sfvb_preview_session_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_preview_session_response.rb +284 -0
- data/lib/ultracart_api/models/sfvb_preview_url_response.rb +280 -0
- data/lib/ultracart_api/models/sfvb_render_request.rb +330 -0
- data/lib/ultracart_api/models/sfvb_render_response.rb +274 -0
- data/lib/ultracart_api/models/sfvb_storefront.rb +240 -0
- data/lib/ultracart_api/models/sfvb_storefronts_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_theme.rb +310 -0
- data/lib/ultracart_api/models/sfvb_theme_duplicate_request.rb +240 -0
- data/lib/ultracart_api/models/sfvb_theme_job_response.rb +364 -0
- data/lib/ultracart_api/models/sfvb_themes_response.rb +232 -0
- data/lib/ultracart_api/models/sfvb_upsell_offer.rb +300 -0
- data/lib/ultracart_api/models/sfvb_upsell_offers_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_validate_request.rb +294 -0
- data/lib/ultracart_api/models/sfvb_validation_response.rb +256 -0
- data/lib/ultracart_api/models/sfvb_velocity_validate_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_version_response.rb +344 -0
- data/lib/ultracart_api/models/sfvb_whoami_response.rb +314 -0
- data/lib/ultracart_api/models/sfvb_widget_ids_response.rb +242 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +46 -0
- metadata +94 -2
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UltracartClient::SfvbCompileRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **cjson** | **String** | The container JSON to compile. | [optional] |
|
|
8
|
+
| **container_name** | **String** | Optional container name, used to derive the container id the same way a .cjson file name would. Omit and the id on the document is kept. | [optional] |
|
|
9
|
+
| **storefront_oid** | **Integer** | Optional storefront oid. Required when theme_oid is supplied. | [optional] |
|
|
10
|
+
| **theme_oid** | **Integer** | Optional theme oid. Supplies the theme's inherit groups configuration so compilation matches what the theme would produce. Omit to compile without inheritance. | [optional] |
|
|
11
|
+
| **validate** | **Boolean** | Run validation before compiling and fail on errors. Defaults to true. | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'ultracart_api'
|
|
17
|
+
|
|
18
|
+
instance = UltracartClient::SfvbCompileRequest.new(
|
|
19
|
+
cjson: null,
|
|
20
|
+
container_name: null,
|
|
21
|
+
storefront_oid: null,
|
|
22
|
+
theme_oid: null,
|
|
23
|
+
validate: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UltracartClient::SfvbCompileResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **container_id** | **String** | Container id the document compiled under. | [optional] |
|
|
8
|
+
| **directives** | **Array<String>** | Velocity directives the compiled output declares. | [optional] |
|
|
9
|
+
| **success** | **Boolean** | True when compilation produced output. | [optional] |
|
|
10
|
+
| **used_elements** | **Array<String>** | Element types used, sorted. | [optional] |
|
|
11
|
+
| **validation** | [**SfvbValidationResponse**](SfvbValidationResponse.md) | | [optional] |
|
|
12
|
+
| **velocity** | **String** | The compiled Velocity. This is the body only; the cache wrapper a stored .cjson gets is not included. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'ultracart_api'
|
|
18
|
+
|
|
19
|
+
instance = UltracartClient::SfvbCompileResponse.new(
|
|
20
|
+
container_id: null,
|
|
21
|
+
directives: null,
|
|
22
|
+
success: null,
|
|
23
|
+
used_elements: null,
|
|
24
|
+
validation: null,
|
|
25
|
+
velocity: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# UltracartClient::SfvbContainerResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **active_theme** | **Boolean** | True when this container lives in the theme currently serving live traffic. Writing to it requires the sfvb_publish scope. | [optional] |
|
|
8
|
+
| **cjson** | **String** | The container JSON. Runtime state is stripped on the way out. | [optional] |
|
|
9
|
+
| **container_id** | **String** | Container id as the compiler will derive it. | [optional] |
|
|
10
|
+
| **container_name** | **String** | Container name. | [optional] |
|
|
11
|
+
| **hash_sha256** | **String** | SHA-256 of the cjson. Send back as If-Match when writing. | [optional] |
|
|
12
|
+
| **last_modified** | **String** | When the container was last modified, where the store records it. | [optional] |
|
|
13
|
+
| **owner_object_id** | **String** | Identifier of the owning object within its store. | [optional] |
|
|
14
|
+
| **owner_type** | **String** | Where this container lives. | [optional] |
|
|
15
|
+
| **path** | **String** | File path, for theme and page containers only. | [optional] |
|
|
16
|
+
| **version** | **Integer** | File version, for theme and page containers only. | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'ultracart_api'
|
|
22
|
+
|
|
23
|
+
instance = UltracartClient::SfvbContainerResponse.new(
|
|
24
|
+
active_theme: null,
|
|
25
|
+
cjson: null,
|
|
26
|
+
container_id: null,
|
|
27
|
+
container_name: null,
|
|
28
|
+
hash_sha256: null,
|
|
29
|
+
last_modified: null,
|
|
30
|
+
owner_object_id: null,
|
|
31
|
+
owner_type: null,
|
|
32
|
+
path: null,
|
|
33
|
+
version: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbContainerRevertRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **comment** | **String** | Optional comment recorded against the new version the revert creates. | [optional] |
|
|
8
|
+
| **container_history_oid** | **Integer** | History record oid to restore, as returned by container_versions. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbContainerRevertRequest.new(
|
|
16
|
+
comment: null,
|
|
17
|
+
container_history_oid: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UltracartClient::SfvbContainerVersion
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **cjson** | **String** | The CJSON this version held. Populated only when reading a single version, and null when the operation is create. Listings omit it because container CJSON is large. | [optional] |
|
|
8
|
+
| **comment** | **String** | Comment recorded with the write that replaced this version. | [optional] |
|
|
9
|
+
| **container_history_oid** | **Integer** | History record oid. Pass to the revert operation on the owning container. | [optional] |
|
|
10
|
+
| **container_name** | **String** | Container name, where the owner has more than one container. | [optional] |
|
|
11
|
+
| **created_dts** | **String** | When this snapshot was taken. | [optional] |
|
|
12
|
+
| **current** | **Boolean** | True for the value currently stored. | [optional] |
|
|
13
|
+
| **edited_by** | **String** | Login of whoever caused this snapshot. | [optional] |
|
|
14
|
+
| **hash_sha256** | **String** | SHA-256 of this version's CJSON. | [optional] |
|
|
15
|
+
| **operation** | **String** | What the container was before the write this entry precedes. create means it did not exist, so reverting to this entry removes it again; update means it held the cjson recorded here. | [optional] |
|
|
16
|
+
| **owner_object_id** | **String** | Owner object identifier. | [optional] |
|
|
17
|
+
| **owner_type** | **String** | Owner type. | [optional] |
|
|
18
|
+
| **size** | **Integer** | Size of this version's CJSON in bytes. | [optional] |
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'ultracart_api'
|
|
24
|
+
|
|
25
|
+
instance = UltracartClient::SfvbContainerVersion.new(
|
|
26
|
+
cjson: null,
|
|
27
|
+
comment: null,
|
|
28
|
+
container_history_oid: null,
|
|
29
|
+
container_name: null,
|
|
30
|
+
created_dts: null,
|
|
31
|
+
current: null,
|
|
32
|
+
edited_by: null,
|
|
33
|
+
hash_sha256: null,
|
|
34
|
+
operation: null,
|
|
35
|
+
owner_object_id: null,
|
|
36
|
+
owner_type: null,
|
|
37
|
+
size: null
|
|
38
|
+
)
|
|
39
|
+
```
|
|
40
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::SfvbContainerVersionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **versions** | [**Array<SfvbContainerVersion>**](SfvbContainerVersion.md) | Versions, newest first. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::SfvbContainerVersionsResponse.new(
|
|
15
|
+
versions: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbContainerWriteRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **allow_warnings** | **Boolean** | Store the container even if quality warnings were raised. Warnings never block by default; this field exists so a caller can opt into treating them as blocking by setting it false. | [optional] |
|
|
8
|
+
| **cjson** | **String** | The container JSON to store. | [optional] |
|
|
9
|
+
| **comment** | **String** | Optional comment recorded against the version this write creates. | [optional] |
|
|
10
|
+
| **marketing_email** | **Boolean** | For email containers, whether this is a marketing email. Selects whether CAN-SPAM footer rules apply. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbContainerWriteRequest.new(
|
|
18
|
+
allow_warnings: null,
|
|
19
|
+
cjson: null,
|
|
20
|
+
comment: null,
|
|
21
|
+
marketing_email: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
data/docs/SfvbElement.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbElement
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **schema_available** | **Boolean** | True when a per element configuration schema is available from elements/{element_type}. | [optional] |
|
|
8
|
+
| **type** | **String** | The element type as it appears in the type property of a CJSON node. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbElement.new(
|
|
16
|
+
schema_available: null,
|
|
17
|
+
type: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbElementSchemaResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **schema** | **String** | JSON schema for this element's config object, as a JSON string. Null when no schema has been published for this element yet. | [optional] |
|
|
8
|
+
| **type** | **String** | The element type. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbElementSchemaResponse.new(
|
|
16
|
+
schema: null,
|
|
17
|
+
type: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbElementsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **element_count** | **Integer** | Number of element types. | [optional] |
|
|
8
|
+
| **elements** | [**Array<SfvbElement>**](SfvbElement.md) | Every element type the compiler recognizes, sorted. | [optional] |
|
|
9
|
+
| **version** | **String** | Container manager version this vocabulary belongs to. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbElementsResponse.new(
|
|
17
|
+
element_count: null,
|
|
18
|
+
elements: null,
|
|
19
|
+
version: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# UltracartClient::SfvbErrorDetail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | Stable machine readable code. Namespaced sfvb.* Safe to match on; these are never reworded. | [optional] |
|
|
8
|
+
| **column** | **Integer** | 1-indexed column number. Populated for Velocity problems. | [optional] |
|
|
9
|
+
| **did_you_mean** | **Array<String>** | Close matches for an unrecognized value, best match first. Populated for unknown element types and unknown configuration keys. | [optional] |
|
|
10
|
+
| **expected** | **String** | Description of what was expected instead. | [optional] |
|
|
11
|
+
| **found** | **String** | The value that was actually found, when the problem is about a value. | [optional] |
|
|
12
|
+
| **line** | **Integer** | 1-indexed line number. Populated for Velocity problems; null for CJSON problems, which carry a pointer instead. | [optional] |
|
|
13
|
+
| **message** | **String** | Human readable description of the problem. | [optional] |
|
|
14
|
+
| **pointer** | **String** | JSON Pointer (RFC 6901) to the offending node within the submitted CJSON. Null for whole-document problems. | [optional] |
|
|
15
|
+
| **severity** | **String** | error or warning. Warnings never fail a request. | [optional] |
|
|
16
|
+
| **suggestion** | **String** | Optional pointer at a known good example, typically a storefront library fragment that solves the same problem properly. | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'ultracart_api'
|
|
22
|
+
|
|
23
|
+
instance = UltracartClient::SfvbErrorDetail.new(
|
|
24
|
+
code: null,
|
|
25
|
+
column: null,
|
|
26
|
+
did_you_mean: null,
|
|
27
|
+
expected: null,
|
|
28
|
+
found: null,
|
|
29
|
+
line: null,
|
|
30
|
+
message: null,
|
|
31
|
+
pointer: null,
|
|
32
|
+
severity: null,
|
|
33
|
+
suggestion: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileContentResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **auto_compiled** | **Boolean** | True when this file is compiler output and must not be edited directly. | [optional] |
|
|
8
|
+
| **content** | **String** | UTF-8 content. Only text/* files can be read this way. | [optional] |
|
|
9
|
+
| **fs_file_oid** | **Integer** | StoreFront file system file oid. | [optional] |
|
|
10
|
+
| **hash_sha256** | **String** | SHA-256 of the content. Also returned as the ETag header; send it back as If-Match when writing. | [optional] |
|
|
11
|
+
| **mime_type** | **String** | Mime type. | [optional] |
|
|
12
|
+
| **path** | **String** | Full path of the file. | [optional] |
|
|
13
|
+
| **size** | **Integer** | Size in bytes. | [optional] |
|
|
14
|
+
| **truncated** | **Boolean** | True when the content was cut short. Never truncated silently. | [optional] |
|
|
15
|
+
| **valid** | **Boolean** | False when the file failed Velocity validation on its last write. | [optional] |
|
|
16
|
+
| **velocity_errors** | **String** | Velocity errors recorded on the last write. Null when valid. | [optional] |
|
|
17
|
+
| **version** | **Integer** | Version number of the content returned. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'ultracart_api'
|
|
23
|
+
|
|
24
|
+
instance = UltracartClient::SfvbFileContentResponse.new(
|
|
25
|
+
auto_compiled: null,
|
|
26
|
+
content: null,
|
|
27
|
+
fs_file_oid: null,
|
|
28
|
+
hash_sha256: null,
|
|
29
|
+
mime_type: null,
|
|
30
|
+
path: null,
|
|
31
|
+
size: null,
|
|
32
|
+
truncated: null,
|
|
33
|
+
valid: null,
|
|
34
|
+
velocity_errors: null,
|
|
35
|
+
version: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **auto_compiled** | **Boolean** | True when this file is generated by the CJSON compiler and must not be edited directly. Its .cjson sibling is the source. | [optional] |
|
|
8
|
+
| **directory** | **Boolean** | True when this entry is a directory. | [optional] |
|
|
9
|
+
| **fs_directory_oid** | **Integer** | StoreFront file system directory oid. For a directory this is its own oid; for a file it is the parent. | [optional] |
|
|
10
|
+
| **fs_file_oid** | **Integer** | StoreFront file system file oid. | [optional] |
|
|
11
|
+
| **hash_sha256** | **String** | SHA-256 of the content. Use as the If-Match value when writing. | [optional] |
|
|
12
|
+
| **i18n_violation** | **Boolean** | True when the file has internationalization violations. | [optional] |
|
|
13
|
+
| **last_modified** | **String** | Last modified timestamp. | [optional] |
|
|
14
|
+
| **merge_conflict** | **Boolean** | True when the file carries an unresolved theme merge conflict. Blocks theme activation. | [optional] |
|
|
15
|
+
| **mime_type** | **String** | Mime type. Only text/* files can be read as content or searched by text. | [optional] |
|
|
16
|
+
| **name** | **String** | File or directory name. | [optional] |
|
|
17
|
+
| **path** | **String** | Full path of the file or directory. | [optional] |
|
|
18
|
+
| **read_only** | **Boolean** | True when the file is marked read only. | [optional] |
|
|
19
|
+
| **size** | **Integer** | Size in bytes. Zero for directories. | [optional] |
|
|
20
|
+
| **valid** | **Boolean** | False when the file failed Velocity validation on its last write. | [optional] |
|
|
21
|
+
| **version** | **Integer** | Current version number of the file. | [optional] |
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'ultracart_api'
|
|
27
|
+
|
|
28
|
+
instance = UltracartClient::SfvbFileEntry.new(
|
|
29
|
+
auto_compiled: null,
|
|
30
|
+
directory: null,
|
|
31
|
+
fs_directory_oid: null,
|
|
32
|
+
fs_file_oid: null,
|
|
33
|
+
hash_sha256: null,
|
|
34
|
+
i18n_violation: null,
|
|
35
|
+
last_modified: null,
|
|
36
|
+
merge_conflict: null,
|
|
37
|
+
mime_type: null,
|
|
38
|
+
name: null,
|
|
39
|
+
path: null,
|
|
40
|
+
read_only: null,
|
|
41
|
+
size: null,
|
|
42
|
+
valid: null,
|
|
43
|
+
version: null
|
|
44
|
+
)
|
|
45
|
+
```
|
|
46
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileRevertRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **comment** | **String** | Optional comment recorded against the new version the revert creates. | [optional] |
|
|
8
|
+
| **path** | **String** | Path of the file to revert. | [optional] |
|
|
9
|
+
| **version** | **Integer** | Version to restore, as returned by files/versions. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbFileRevertRequest.new(
|
|
17
|
+
comment: null,
|
|
18
|
+
path: null,
|
|
19
|
+
version: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileSearchRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **case_sensitive** | **Boolean** | Whether the text search is case sensitive. Defaults to false. | [optional] |
|
|
8
|
+
| **dynamic_html** | **Boolean** | Only dynamic HTML (arbitrary) files. | [optional] |
|
|
9
|
+
| **file_name** | **String** | Comma separated file name patterns, matched case insensitively with wildcards. | [optional] |
|
|
10
|
+
| **i18n_violations** | **Boolean** | Only files with internationalization violations. | [optional] |
|
|
11
|
+
| **invalid** | **Boolean** | Only files that failed Velocity validation. | [optional] |
|
|
12
|
+
| **max_results** | **Integer** | Maximum results to return. Clamped to the server maximum. | [optional] |
|
|
13
|
+
| **merge_conflicts** | **Boolean** | Only files with unresolved theme merge conflicts. | [optional] |
|
|
14
|
+
| **mime_type** | **String** | Restrict to a mime type. | [optional] |
|
|
15
|
+
| **modified_max** | **String** | Only files modified at or before this ISO-8601 timestamp. | [optional] |
|
|
16
|
+
| **modified_min** | **String** | Only files modified at or after this ISO-8601 timestamp. | [optional] |
|
|
17
|
+
| **offset** | **Integer** | Results to skip. Send the next_offset from a truncated response to continue. Ordering is by path with the file oid as a tie breaker, so pages do not overlap or skip entries between calls. | [optional] |
|
|
18
|
+
| **path** | **String** | Restrict to a directory path. Strongly recommended alongside text. | [optional] |
|
|
19
|
+
| **size_max** | **Integer** | Maximum size in bytes. | [optional] |
|
|
20
|
+
| **size_min** | **Integer** | Minimum size in bytes. | [optional] |
|
|
21
|
+
| **sub_directories** | **Boolean** | Recurse below path. Defaults to true. | [optional] |
|
|
22
|
+
| **text** | **String** | Text to find inside files. Only text/* files are searched. This is the expensive filter; narrow with path or file_name where possible. | [optional] |
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'ultracart_api'
|
|
28
|
+
|
|
29
|
+
instance = UltracartClient::SfvbFileSearchRequest.new(
|
|
30
|
+
case_sensitive: null,
|
|
31
|
+
dynamic_html: null,
|
|
32
|
+
file_name: null,
|
|
33
|
+
i18n_violations: null,
|
|
34
|
+
invalid: null,
|
|
35
|
+
max_results: null,
|
|
36
|
+
merge_conflicts: null,
|
|
37
|
+
mime_type: null,
|
|
38
|
+
modified_max: null,
|
|
39
|
+
modified_min: null,
|
|
40
|
+
offset: null,
|
|
41
|
+
path: null,
|
|
42
|
+
size_max: null,
|
|
43
|
+
size_min: null,
|
|
44
|
+
sub_directories: null,
|
|
45
|
+
text: null
|
|
46
|
+
)
|
|
47
|
+
```
|
|
48
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileSearchResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **files** | [**Array<SfvbFileEntry>**](SfvbFileEntry.md) | Matching files. | [optional] |
|
|
8
|
+
| **max_results** | **Integer** | The cap that was applied. | [optional] |
|
|
9
|
+
| **next_offset** | **Integer** | Offset to send for the next page. Zero when truncated is false. Never truncates without giving a way to continue. | [optional] |
|
|
10
|
+
| **offset** | **Integer** | Results skipped to produce this page. | [optional] |
|
|
11
|
+
| **result_count** | **Integer** | Number of results returned. | [optional] |
|
|
12
|
+
| **total_count** | **Integer** | Total matches found. Available because the underlying query is unbounded and returns everything anyway; it is not evidence that fetching them all is cheap. | [optional] |
|
|
13
|
+
| **truncated** | **Boolean** | True when matches exist beyond this page. next_offset is populated when it is. | [optional] |
|
|
14
|
+
| **truncation_advice** | **String** | Advice for the caller when truncated is true. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbFileSearchResponse.new(
|
|
22
|
+
files: null,
|
|
23
|
+
max_results: null,
|
|
24
|
+
next_offset: null,
|
|
25
|
+
offset: null,
|
|
26
|
+
result_count: null,
|
|
27
|
+
total_count: null,
|
|
28
|
+
truncated: null,
|
|
29
|
+
truncation_advice: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileVersion
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **comment** | **String** | Comment recorded with the write. | [optional] |
|
|
8
|
+
| **current** | **Boolean** | True for the version currently on disk. | [optional] |
|
|
9
|
+
| **edited_by** | **String** | Login of whoever wrote this version. | [optional] |
|
|
10
|
+
| **fs_file_history_oid** | **Integer** | History record oid. | [optional] |
|
|
11
|
+
| **hash_sha256** | **String** | SHA-256 of this version's content. | [optional] |
|
|
12
|
+
| **last_modified** | **String** | When this version was written. | [optional] |
|
|
13
|
+
| **revertable** | **Boolean** | True when this version can be reverted to. | [optional] |
|
|
14
|
+
| **size** | **Integer** | Size in bytes. | [optional] |
|
|
15
|
+
| **version** | **Integer** | Version number. Pass to files/content or files/revert. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'ultracart_api'
|
|
21
|
+
|
|
22
|
+
instance = UltracartClient::SfvbFileVersion.new(
|
|
23
|
+
comment: null,
|
|
24
|
+
current: null,
|
|
25
|
+
edited_by: null,
|
|
26
|
+
fs_file_history_oid: null,
|
|
27
|
+
hash_sha256: null,
|
|
28
|
+
last_modified: null,
|
|
29
|
+
revertable: null,
|
|
30
|
+
size: null,
|
|
31
|
+
version: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileVersionsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **fs_file_oid** | **Integer** | StoreFront file system file oid. | [optional] |
|
|
8
|
+
| **path** | **String** | Path of the file. | [optional] |
|
|
9
|
+
| **versions** | [**Array<SfvbFileVersion>**](SfvbFileVersion.md) | Versions, newest first. The first entry is the current content. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbFileVersionsResponse.new(
|
|
17
|
+
fs_file_oid: null,
|
|
18
|
+
path: null,
|
|
19
|
+
versions: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileWriteRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **comment** | **String** | Optional comment recorded against the version this write creates. | [optional] |
|
|
8
|
+
| **content** | **String** | UTF-8 content to write. | [optional] |
|
|
9
|
+
| **create_if_missing** | **Boolean** | Create the file if it does not exist. Defaults to true. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbFileWriteRequest.new(
|
|
17
|
+
comment: null,
|
|
18
|
+
content: null,
|
|
19
|
+
create_if_missing: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UltracartClient::SfvbFileWriteResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **compiled_path** | **String** | Path of the compiled output, when writing a .cjson under a theme triggered a compile. | [optional] |
|
|
8
|
+
| **file** | [**SfvbFileEntry**](SfvbFileEntry.md) | | [optional] |
|
|
9
|
+
| **hash_sha256** | **String** | New SHA-256. Use as the next If-Match value. | [optional] |
|
|
10
|
+
| **validation** | [**SfvbValidationResponse**](SfvbValidationResponse.md) | | [optional] |
|
|
11
|
+
| **velocity_errors** | **String** | Velocity errors recorded by the store. Present means the file was written but is not valid. | [optional] |
|
|
12
|
+
| **version** | **Integer** | New version number. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'ultracart_api'
|
|
18
|
+
|
|
19
|
+
instance = UltracartClient::SfvbFileWriteResponse.new(
|
|
20
|
+
compiled_path: null,
|
|
21
|
+
file: null,
|
|
22
|
+
hash_sha256: null,
|
|
23
|
+
validation: null,
|
|
24
|
+
velocity_errors: null,
|
|
25
|
+
version: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UltracartClient::SfvbFilesResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **files** | [**Array<SfvbFileEntry>**](SfvbFileEntry.md) | Directories first, then files, each sorted by name. | [optional] |
|
|
8
|
+
| **fs_directory_oid** | **Integer** | Oid of the directory that was listed. | [optional] |
|
|
9
|
+
| **omitted_count** | **Integer** | Number of entries omitted when truncated is true. | [optional] |
|
|
10
|
+
| **parent_fs_directory_oid** | **Integer** | Oid of the parent directory, or zero at the root. | [optional] |
|
|
11
|
+
| **path** | **String** | Path that was listed. | [optional] |
|
|
12
|
+
| **truncated** | **Boolean** | True when the listing was capped. Never truncated silently. | [optional] |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'ultracart_api'
|
|
18
|
+
|
|
19
|
+
instance = UltracartClient::SfvbFilesResponse.new(
|
|
20
|
+
files: null,
|
|
21
|
+
fs_directory_oid: null,
|
|
22
|
+
omitted_count: null,
|
|
23
|
+
parent_fs_directory_oid: null,
|
|
24
|
+
path: null,
|
|
25
|
+
truncated: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UltracartClient::SfvbLibraryEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **bookmarked** | **Boolean** | True when the calling user has bookmarked this entry. | [optional] |
|
|
8
|
+
| **cjson** | **String** | The fragment's CJSON. Omitted from search results to keep them terse; fetch a single entry to get it. | [optional] |
|
|
9
|
+
| **description** | **String** | What this fragment is for. | [optional] |
|
|
10
|
+
| **library_oid** | **Integer** | Library entry oid. | [optional] |
|
|
11
|
+
| **name** | **String** | Entry name. | [optional] |
|
|
12
|
+
| **owned** | **Boolean** | True when the calling user owns this entry. | [optional] |
|
|
13
|
+
| **referenced_files** | **Array<String>** | Storefront file paths this fragment references. Installing the fragment copies them into the storefront; reading it does not. | [optional] |
|
|
14
|
+
| **screenshot_key** | **String** | S3 listing key for the large screenshot, when one has been generated. | [optional] |
|
|
15
|
+
| **share_with_account** | **Boolean** | True when the entry is shared across the merchant account. | [optional] |
|
|
16
|
+
| **thumbnail_key** | **String** | S3 listing key for the medium thumbnail, when one has been generated. Thumbnails are produced asynchronously and can lag a save by a minute or two. | [optional] |
|
|
17
|
+
| **widget_type** | **String** | Element type at the root of the fragment. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'ultracart_api'
|
|
23
|
+
|
|
24
|
+
instance = UltracartClient::SfvbLibraryEntry.new(
|
|
25
|
+
bookmarked: null,
|
|
26
|
+
cjson: null,
|
|
27
|
+
description: null,
|
|
28
|
+
library_oid: null,
|
|
29
|
+
name: null,
|
|
30
|
+
owned: null,
|
|
31
|
+
referenced_files: null,
|
|
32
|
+
screenshot_key: null,
|
|
33
|
+
share_with_account: null,
|
|
34
|
+
thumbnail_key: null,
|
|
35
|
+
widget_type: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|