ultracart_api 4.1.154 → 4.1.156
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 +14 -2
- data/docs/SfvbApi.md +221 -0
- data/docs/SfvbMenu.md +30 -0
- data/docs/SfvbMenuItem.md +36 -0
- data/docs/SfvbMenuWriteRequest.md +20 -0
- data/docs/SfvbMenusResponse.md +18 -0
- data/docs/SfvbPreviewAccessRequest.md +22 -0
- data/docs/SfvbPreviewAccessResponse.md +32 -0
- data/docs/SfvbVersionResponse.md +4 -0
- data/lib/ultracart_api/api/sfvb_api.rb +289 -0
- data/lib/ultracart_api/models/sfvb_menu.rb +282 -0
- data/lib/ultracart_api/models/sfvb_menu_item.rb +370 -0
- data/lib/ultracart_api/models/sfvb_menu_write_request.rb +232 -0
- data/lib/ultracart_api/models/sfvb_menus_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_preview_access_request.rb +240 -0
- data/lib/ultracart_api/models/sfvb_preview_access_response.rb +290 -0
- data/lib/ultracart_api/models/sfvb_version_response.rb +21 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +6 -0
- metadata +14 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4eb86992bc479fd054fc72958e6622d59bd4cb72f2dbb13f7db9e69ef2517e0e
|
|
4
|
+
data.tar.gz: bf9953831d56669b3c62cf555be9631ec74e78bae97a83e0cbc5f67397ac8d1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d28e46f9455289b3b14ae48c7a4dbe5494208704671bbd17fd9ebf11c2a31ca18ce8d2249967b0c9ee9aa4411d30eecf5e8bcd2209f0bac4a27dd808d30be23c
|
|
7
|
+
data.tar.gz: 5292805e1e2d9213267e48623ed2fdba79e332dfcfd3b9cf7ab91b082b8f6f7cdd4bb167d8becfc655499b84c857a40f48aa7467cb07f2a77cd9bb73293d4484
|
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.156
|
|
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.156'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -473,6 +473,7 @@ Class | Method | HTTP request | Description
|
|
|
473
473
|
*UltracartClient::OrderApi* | [**update_order**](docs/OrderApi.md#update_order) | **PUT** /order/orders/{order_id} | Update an order
|
|
474
474
|
*UltracartClient::OrderApi* | [**validate_order**](docs/OrderApi.md#validate_order) | **POST** /order/validate | Validate
|
|
475
475
|
*UltracartClient::SfvbApi* | [**compile_sfvb_cjson**](docs/SfvbApi.md#compile_sfvb_cjson) | **POST** /sfvb/cjson/compile | Compile CJSON to Velocity
|
|
476
|
+
*UltracartClient::SfvbApi* | [**create_sfvb_preview_access**](docs/SfvbApi.md#create_sfvb_preview_access) | **POST** /sfvb/storefronts/{storefront_oid}/preview_access | One time link that opens a preview in a browser with no UltraCart login
|
|
476
477
|
*UltracartClient::SfvbApi* | [**create_sfvb_preview_session**](docs/SfvbApi.md#create_sfvb_preview_session) | **POST** /sfvb/storefronts/{storefront_oid}/preview_sessions | Create a preview session
|
|
477
478
|
*UltracartClient::SfvbApi* | [**delete_sfvb_file**](docs/SfvbApi.md#delete_sfvb_file) | **DELETE** /sfvb/storefronts/{storefront_oid}/files | Delete a storefront file
|
|
478
479
|
*UltracartClient::SfvbApi* | [**delete_sfvb_page_multimedia**](docs/SfvbApi.md#delete_sfvb_page_multimedia) | **DELETE** /sfvb/storefronts/{storefront_oid}/pages/multimedia | Detach an image from a page
|
|
@@ -486,6 +487,8 @@ Class | Method | HTTP request | Description
|
|
|
486
487
|
*UltracartClient::SfvbApi* | [**get_sfvb_file_content**](docs/SfvbApi.md#get_sfvb_file_content) | **GET** /sfvb/storefronts/{storefront_oid}/files/content | Read a storefront file
|
|
487
488
|
*UltracartClient::SfvbApi* | [**get_sfvb_file_upload_url**](docs/SfvbApi.md#get_sfvb_file_upload_url) | **GET** /sfvb/storefronts/{storefront_oid}/files/upload_url/{extension} | Get a URL to upload a binary asset to
|
|
488
489
|
*UltracartClient::SfvbApi* | [**get_sfvb_library_entry**](docs/SfvbApi.md#get_sfvb_library_entry) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Read one library entry including its CJSON
|
|
490
|
+
*UltracartClient::SfvbApi* | [**get_sfvb_menu**](docs/SfvbApi.md#get_sfvb_menu) | **GET** /sfvb/storefronts/{storefront_oid}/menus/{code} | Read one store menu and its entries
|
|
491
|
+
*UltracartClient::SfvbApi* | [**get_sfvb_menus**](docs/SfvbApi.md#get_sfvb_menus) | **GET** /sfvb/storefronts/{storefront_oid}/menus | List a storefront's store menus
|
|
489
492
|
*UltracartClient::SfvbApi* | [**get_sfvb_page**](docs/SfvbApi.md#get_sfvb_page) | **GET** /sfvb/storefronts/{storefront_oid}/pages | Read a page's attributes and images
|
|
490
493
|
*UltracartClient::SfvbApi* | [**get_sfvb_preview_url**](docs/SfvbApi.md#get_sfvb_preview_url) | **GET** /sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id}/url | URL that renders a preview session
|
|
491
494
|
*UltracartClient::SfvbApi* | [**get_sfvb_theme**](docs/SfvbApi.md#get_sfvb_theme) | **GET** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid} | Get a theme
|
|
@@ -503,6 +506,7 @@ Class | Method | HTTP request | Description
|
|
|
503
506
|
*UltracartClient::SfvbApi* | [**list_sfvb_upsell_offers**](docs/SfvbApi.md#list_sfvb_upsell_offers) | **GET** /sfvb/storefronts/{storefront_oid}/upsell_offers | List upsell offers
|
|
504
507
|
*UltracartClient::SfvbApi* | [**put_sfvb_container**](docs/SfvbApi.md#put_sfvb_container) | **PUT** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id} | Write a container stored outside the file system
|
|
505
508
|
*UltracartClient::SfvbApi* | [**put_sfvb_file_content**](docs/SfvbApi.md#put_sfvb_file_content) | **PUT** /sfvb/storefronts/{storefront_oid}/files/content | Write a storefront file
|
|
509
|
+
*UltracartClient::SfvbApi* | [**put_sfvb_menu**](docs/SfvbApi.md#put_sfvb_menu) | **PUT** /sfvb/storefronts/{storefront_oid}/menus/{code} | Replace a store menu's entries
|
|
506
510
|
*UltracartClient::SfvbApi* | [**put_sfvb_page_attributes**](docs/SfvbApi.md#put_sfvb_page_attributes) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/attributes | Change a page's attributes
|
|
507
511
|
*UltracartClient::SfvbApi* | [**put_sfvb_page_multimedia**](docs/SfvbApi.md#put_sfvb_page_multimedia) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/multimedia | Attach an image to a page
|
|
508
512
|
*UltracartClient::SfvbApi* | [**put_sfvb_preview_session**](docs/SfvbApi.md#put_sfvb_preview_session) | **PUT** /sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id} | Push containers into a preview session
|
|
@@ -1758,12 +1762,18 @@ Class | Method | HTTP request | Description
|
|
|
1758
1762
|
- [UltracartClient::SfvbLibraryEntry](docs/SfvbLibraryEntry.md)
|
|
1759
1763
|
- [UltracartClient::SfvbLibraryFacet](docs/SfvbLibraryFacet.md)
|
|
1760
1764
|
- [UltracartClient::SfvbLibraryResponse](docs/SfvbLibraryResponse.md)
|
|
1765
|
+
- [UltracartClient::SfvbMenu](docs/SfvbMenu.md)
|
|
1766
|
+
- [UltracartClient::SfvbMenuItem](docs/SfvbMenuItem.md)
|
|
1767
|
+
- [UltracartClient::SfvbMenuWriteRequest](docs/SfvbMenuWriteRequest.md)
|
|
1768
|
+
- [UltracartClient::SfvbMenusResponse](docs/SfvbMenusResponse.md)
|
|
1761
1769
|
- [UltracartClient::SfvbPageAttribute](docs/SfvbPageAttribute.md)
|
|
1762
1770
|
- [UltracartClient::SfvbPageAttributeUpdate](docs/SfvbPageAttributeUpdate.md)
|
|
1763
1771
|
- [UltracartClient::SfvbPageAttributeUpdateRequest](docs/SfvbPageAttributeUpdateRequest.md)
|
|
1764
1772
|
- [UltracartClient::SfvbPageMultimedia](docs/SfvbPageMultimedia.md)
|
|
1765
1773
|
- [UltracartClient::SfvbPageMultimediaRequest](docs/SfvbPageMultimediaRequest.md)
|
|
1766
1774
|
- [UltracartClient::SfvbPageResponse](docs/SfvbPageResponse.md)
|
|
1775
|
+
- [UltracartClient::SfvbPreviewAccessRequest](docs/SfvbPreviewAccessRequest.md)
|
|
1776
|
+
- [UltracartClient::SfvbPreviewAccessResponse](docs/SfvbPreviewAccessResponse.md)
|
|
1767
1777
|
- [UltracartClient::SfvbPreviewSessionRequest](docs/SfvbPreviewSessionRequest.md)
|
|
1768
1778
|
- [UltracartClient::SfvbPreviewSessionResponse](docs/SfvbPreviewSessionResponse.md)
|
|
1769
1779
|
- [UltracartClient::SfvbPreviewUrlResponse](docs/SfvbPreviewUrlResponse.md)
|
|
@@ -1952,6 +1962,8 @@ Not every change is committed to every SDK.
|
|
|
1952
1962
|
|
|
1953
1963
|
| Version | Date | Comments |
|
|
1954
1964
|
| --: | :-: | --- |
|
|
1965
|
+
| 4.1.156 | 09/16/2026 | sfvb internal testing |
|
|
1966
|
+
| 4.1.155 | 09/15/2026 | sfvb internal testing |
|
|
1955
1967
|
| 4.1.154 | 09/14/2026 | sfvb internal testing |
|
|
1956
1968
|
| 4.1.153 | 09/14/2026 | sfvb internal testing |
|
|
1957
1969
|
| 4.1.152 | 09/09/2026 | sfvb - internal testing |
|
data/docs/SfvbApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
| ------ | ------------ | ----------- |
|
|
7
7
|
| [**compile_sfvb_cjson**](SfvbApi.md#compile_sfvb_cjson) | **POST** /sfvb/cjson/compile | Compile CJSON to Velocity |
|
|
8
|
+
| [**create_sfvb_preview_access**](SfvbApi.md#create_sfvb_preview_access) | **POST** /sfvb/storefronts/{storefront_oid}/preview_access | One time link that opens a preview in a browser with no UltraCart login |
|
|
8
9
|
| [**create_sfvb_preview_session**](SfvbApi.md#create_sfvb_preview_session) | **POST** /sfvb/storefronts/{storefront_oid}/preview_sessions | Create a preview session |
|
|
9
10
|
| [**delete_sfvb_file**](SfvbApi.md#delete_sfvb_file) | **DELETE** /sfvb/storefronts/{storefront_oid}/files | Delete a storefront file |
|
|
10
11
|
| [**delete_sfvb_page_multimedia**](SfvbApi.md#delete_sfvb_page_multimedia) | **DELETE** /sfvb/storefronts/{storefront_oid}/pages/multimedia | Detach an image from a page |
|
|
@@ -18,6 +19,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
18
19
|
| [**get_sfvb_file_content**](SfvbApi.md#get_sfvb_file_content) | **GET** /sfvb/storefronts/{storefront_oid}/files/content | Read a storefront file |
|
|
19
20
|
| [**get_sfvb_file_upload_url**](SfvbApi.md#get_sfvb_file_upload_url) | **GET** /sfvb/storefronts/{storefront_oid}/files/upload_url/{extension} | Get a URL to upload a binary asset to |
|
|
20
21
|
| [**get_sfvb_library_entry**](SfvbApi.md#get_sfvb_library_entry) | **GET** /sfvb/storefronts/{storefront_oid}/library/{library_oid} | Read one library entry including its CJSON |
|
|
22
|
+
| [**get_sfvb_menu**](SfvbApi.md#get_sfvb_menu) | **GET** /sfvb/storefronts/{storefront_oid}/menus/{code} | Read one store menu and its entries |
|
|
23
|
+
| [**get_sfvb_menus**](SfvbApi.md#get_sfvb_menus) | **GET** /sfvb/storefronts/{storefront_oid}/menus | List a storefront's store menus |
|
|
21
24
|
| [**get_sfvb_page**](SfvbApi.md#get_sfvb_page) | **GET** /sfvb/storefronts/{storefront_oid}/pages | Read a page's attributes and images |
|
|
22
25
|
| [**get_sfvb_preview_url**](SfvbApi.md#get_sfvb_preview_url) | **GET** /sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id}/url | URL that renders a preview session |
|
|
23
26
|
| [**get_sfvb_theme**](SfvbApi.md#get_sfvb_theme) | **GET** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid} | Get a theme |
|
|
@@ -35,6 +38,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
|
|
35
38
|
| [**list_sfvb_upsell_offers**](SfvbApi.md#list_sfvb_upsell_offers) | **GET** /sfvb/storefronts/{storefront_oid}/upsell_offers | List upsell offers |
|
|
36
39
|
| [**put_sfvb_container**](SfvbApi.md#put_sfvb_container) | **PUT** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id} | Write a container stored outside the file system |
|
|
37
40
|
| [**put_sfvb_file_content**](SfvbApi.md#put_sfvb_file_content) | **PUT** /sfvb/storefronts/{storefront_oid}/files/content | Write a storefront file |
|
|
41
|
+
| [**put_sfvb_menu**](SfvbApi.md#put_sfvb_menu) | **PUT** /sfvb/storefronts/{storefront_oid}/menus/{code} | Replace a store menu's entries |
|
|
38
42
|
| [**put_sfvb_page_attributes**](SfvbApi.md#put_sfvb_page_attributes) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/attributes | Change a page's attributes |
|
|
39
43
|
| [**put_sfvb_page_multimedia**](SfvbApi.md#put_sfvb_page_multimedia) | **PUT** /sfvb/storefronts/{storefront_oid}/pages/multimedia | Attach an image to a page |
|
|
40
44
|
| [**put_sfvb_preview_session**](SfvbApi.md#put_sfvb_preview_session) | **PUT** /sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id} | Push containers into a preview session |
|
|
@@ -103,6 +107,60 @@ end
|
|
|
103
107
|
- **Accept**: application/json
|
|
104
108
|
|
|
105
109
|
|
|
110
|
+
## create_sfvb_preview_access
|
|
111
|
+
|
|
112
|
+
> <SfvbPreviewAccessResponse> create_sfvb_preview_access(storefront_oid, opts)
|
|
113
|
+
|
|
114
|
+
One time link that opens a preview in a browser with no UltraCart login
|
|
115
|
+
|
|
116
|
+
The preview URL only works in a browser already signed in to UltraCart on the storefront's own host, and an agent's built in browser never is. This returns a single use access_url on the storefront host instead. Opening it gets past the storefront lock, shows the requested theme and applies the requested preview session for the rest of that browser session, then redirects to path. It expires two minutes after issue or on first use. Pages opened afterwards carry an X-UltraCart-Preview header of applied or not-applied. Requires a token that resolves to a user, so use the device authorization flow.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Examples
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
(No example for this operation).
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
#### Using the create_sfvb_preview_access_with_http_info variant
|
|
126
|
+
|
|
127
|
+
This returns an Array which contains the response data, status code and headers.
|
|
128
|
+
|
|
129
|
+
> <Array(<SfvbPreviewAccessResponse>, Integer, Hash)> create_sfvb_preview_access_with_http_info(storefront_oid, opts)
|
|
130
|
+
|
|
131
|
+
```ruby
|
|
132
|
+
begin
|
|
133
|
+
# One time link that opens a preview in a browser with no UltraCart login
|
|
134
|
+
data, status_code, headers = api_instance.create_sfvb_preview_access_with_http_info(storefront_oid, opts)
|
|
135
|
+
p status_code # => 2xx
|
|
136
|
+
p headers # => { ... }
|
|
137
|
+
p data # => <SfvbPreviewAccessResponse>
|
|
138
|
+
rescue UltracartClient::ApiError => e
|
|
139
|
+
puts "Error when calling SfvbApi->create_sfvb_preview_access_with_http_info: #{e}"
|
|
140
|
+
end
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Parameters
|
|
144
|
+
|
|
145
|
+
| Name | Type | Description | Notes |
|
|
146
|
+
| ---- | ---- | ----------- | ----- |
|
|
147
|
+
| **storefront_oid** | **Integer** | | |
|
|
148
|
+
| **preview_access** | [**SfvbPreviewAccessRequest**](SfvbPreviewAccessRequest.md) | What the browser should see | [optional] |
|
|
149
|
+
|
|
150
|
+
### Return type
|
|
151
|
+
|
|
152
|
+
[**SfvbPreviewAccessResponse**](SfvbPreviewAccessResponse.md)
|
|
153
|
+
|
|
154
|
+
### Authorization
|
|
155
|
+
|
|
156
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
157
|
+
|
|
158
|
+
### HTTP request headers
|
|
159
|
+
|
|
160
|
+
- **Content-Type**: application/json
|
|
161
|
+
- **Accept**: application/json
|
|
162
|
+
|
|
163
|
+
|
|
106
164
|
## create_sfvb_preview_session
|
|
107
165
|
|
|
108
166
|
> <SfvbPreviewSessionResponse> create_sfvb_preview_session(storefront_oid)
|
|
@@ -810,6 +868,113 @@ end
|
|
|
810
868
|
- **Accept**: application/json
|
|
811
869
|
|
|
812
870
|
|
|
871
|
+
## get_sfvb_menu
|
|
872
|
+
|
|
873
|
+
> <SfvbMenu> get_sfvb_menu(storefront_oid, code)
|
|
874
|
+
|
|
875
|
+
Read one store menu and its entries
|
|
876
|
+
|
|
877
|
+
The whole tree, in render order. Page entries carry the page_path they resolve to and item entries the merchant_item_id, rather than the oids the storage keeps. Menu item oids are not returned at all because a write regenerates every one of them. Keep hash_sha256 - it is the If-Match a write needs.
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
### Examples
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
(No example for this operation).
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
#### Using the get_sfvb_menu_with_http_info variant
|
|
887
|
+
|
|
888
|
+
This returns an Array which contains the response data, status code and headers.
|
|
889
|
+
|
|
890
|
+
> <Array(<SfvbMenu>, Integer, Hash)> get_sfvb_menu_with_http_info(storefront_oid, code)
|
|
891
|
+
|
|
892
|
+
```ruby
|
|
893
|
+
begin
|
|
894
|
+
# Read one store menu and its entries
|
|
895
|
+
data, status_code, headers = api_instance.get_sfvb_menu_with_http_info(storefront_oid, code)
|
|
896
|
+
p status_code # => 2xx
|
|
897
|
+
p headers # => { ... }
|
|
898
|
+
p data # => <SfvbMenu>
|
|
899
|
+
rescue UltracartClient::ApiError => e
|
|
900
|
+
puts "Error when calling SfvbApi->get_sfvb_menu_with_http_info: #{e}"
|
|
901
|
+
end
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
### Parameters
|
|
905
|
+
|
|
906
|
+
| Name | Type | Description | Notes |
|
|
907
|
+
| ---- | ---- | ----------- | ----- |
|
|
908
|
+
| **storefront_oid** | **Integer** | | |
|
|
909
|
+
| **code** | **String** | Menu code, matched without regard to case | |
|
|
910
|
+
|
|
911
|
+
### Return type
|
|
912
|
+
|
|
913
|
+
[**SfvbMenu**](SfvbMenu.md)
|
|
914
|
+
|
|
915
|
+
### Authorization
|
|
916
|
+
|
|
917
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
918
|
+
|
|
919
|
+
### HTTP request headers
|
|
920
|
+
|
|
921
|
+
- **Content-Type**: Not defined
|
|
922
|
+
- **Accept**: application/json
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
## get_sfvb_menus
|
|
926
|
+
|
|
927
|
+
> <SfvbMenusResponse> get_sfvb_menus(storefront_oid)
|
|
928
|
+
|
|
929
|
+
List a storefront's store menus
|
|
930
|
+
|
|
931
|
+
The menus a menu element's menuName can name, sorted by code and without their entries. A code the active theme's templates ask for but nothing has created is included with unconfigured true - that code renders an empty list today, and writing it creates it. A menu no template names is marked undeclared, which usually means a menuName is misspelled.
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
### Examples
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
(No example for this operation).
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
#### Using the get_sfvb_menus_with_http_info variant
|
|
941
|
+
|
|
942
|
+
This returns an Array which contains the response data, status code and headers.
|
|
943
|
+
|
|
944
|
+
> <Array(<SfvbMenusResponse>, Integer, Hash)> get_sfvb_menus_with_http_info(storefront_oid)
|
|
945
|
+
|
|
946
|
+
```ruby
|
|
947
|
+
begin
|
|
948
|
+
# List a storefront's store menus
|
|
949
|
+
data, status_code, headers = api_instance.get_sfvb_menus_with_http_info(storefront_oid)
|
|
950
|
+
p status_code # => 2xx
|
|
951
|
+
p headers # => { ... }
|
|
952
|
+
p data # => <SfvbMenusResponse>
|
|
953
|
+
rescue UltracartClient::ApiError => e
|
|
954
|
+
puts "Error when calling SfvbApi->get_sfvb_menus_with_http_info: #{e}"
|
|
955
|
+
end
|
|
956
|
+
```
|
|
957
|
+
|
|
958
|
+
### Parameters
|
|
959
|
+
|
|
960
|
+
| Name | Type | Description | Notes |
|
|
961
|
+
| ---- | ---- | ----------- | ----- |
|
|
962
|
+
| **storefront_oid** | **Integer** | | |
|
|
963
|
+
|
|
964
|
+
### Return type
|
|
965
|
+
|
|
966
|
+
[**SfvbMenusResponse**](SfvbMenusResponse.md)
|
|
967
|
+
|
|
968
|
+
### Authorization
|
|
969
|
+
|
|
970
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
971
|
+
|
|
972
|
+
### HTTP request headers
|
|
973
|
+
|
|
974
|
+
- **Content-Type**: Not defined
|
|
975
|
+
- **Accept**: application/json
|
|
976
|
+
|
|
977
|
+
|
|
813
978
|
## get_sfvb_page
|
|
814
979
|
|
|
815
980
|
> <SfvbPageResponse> get_sfvb_page(storefront_oid, path)
|
|
@@ -1720,6 +1885,62 @@ end
|
|
|
1720
1885
|
- **Accept**: application/json
|
|
1721
1886
|
|
|
1722
1887
|
|
|
1888
|
+
## put_sfvb_menu
|
|
1889
|
+
|
|
1890
|
+
> <SfvbMenu> put_sfvb_menu(storefront_oid, code, menu_write_request, opts)
|
|
1891
|
+
|
|
1892
|
+
Replace a store menu's entries
|
|
1893
|
+
|
|
1894
|
+
A whole menu replace, not a merge - what you send is what the menu holds afterwards, so read it, change the tree and send it back. Omitting items changes only the title; sending an empty array empties the menu. Writing a code that does not exist creates it. Every entry is checked before any of it is written, including that a merchant_item_id and a page_path actually resolve, so a tree with one bad entry changes nothing. Always needs sfvb_publish, because a menu is shared by every theme and there is no dormant copy to change instead.
|
|
1895
|
+
|
|
1896
|
+
|
|
1897
|
+
### Examples
|
|
1898
|
+
|
|
1899
|
+
|
|
1900
|
+
(No example for this operation).
|
|
1901
|
+
|
|
1902
|
+
|
|
1903
|
+
#### Using the put_sfvb_menu_with_http_info variant
|
|
1904
|
+
|
|
1905
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1906
|
+
|
|
1907
|
+
> <Array(<SfvbMenu>, Integer, Hash)> put_sfvb_menu_with_http_info(storefront_oid, code, menu_write_request, opts)
|
|
1908
|
+
|
|
1909
|
+
```ruby
|
|
1910
|
+
begin
|
|
1911
|
+
# Replace a store menu's entries
|
|
1912
|
+
data, status_code, headers = api_instance.put_sfvb_menu_with_http_info(storefront_oid, code, menu_write_request, opts)
|
|
1913
|
+
p status_code # => 2xx
|
|
1914
|
+
p headers # => { ... }
|
|
1915
|
+
p data # => <SfvbMenu>
|
|
1916
|
+
rescue UltracartClient::ApiError => e
|
|
1917
|
+
puts "Error when calling SfvbApi->put_sfvb_menu_with_http_info: #{e}"
|
|
1918
|
+
end
|
|
1919
|
+
```
|
|
1920
|
+
|
|
1921
|
+
### Parameters
|
|
1922
|
+
|
|
1923
|
+
| Name | Type | Description | Notes |
|
|
1924
|
+
| ---- | ---- | ----------- | ----- |
|
|
1925
|
+
| **storefront_oid** | **Integer** | | |
|
|
1926
|
+
| **code** | **String** | Menu code, matched without regard to case | |
|
|
1927
|
+
| **menu_write_request** | [**SfvbMenuWriteRequest**](SfvbMenuWriteRequest.md) | The menu's replacement contents | |
|
|
1928
|
+
| **if_match** | **String** | Content hash from the last read. Required when the menu already exists; 428 when absent, 412 when stale. | [optional] |
|
|
1929
|
+
|
|
1930
|
+
### Return type
|
|
1931
|
+
|
|
1932
|
+
[**SfvbMenu**](SfvbMenu.md)
|
|
1933
|
+
|
|
1934
|
+
### Authorization
|
|
1935
|
+
|
|
1936
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
1937
|
+
|
|
1938
|
+
### HTTP request headers
|
|
1939
|
+
|
|
1940
|
+
- **Content-Type**: application/json
|
|
1941
|
+
- **Accept**: application/json
|
|
1942
|
+
|
|
1943
|
+
|
|
1723
1944
|
## put_sfvb_page_attributes
|
|
1724
1945
|
|
|
1725
1946
|
> <SfvbPageResponse> put_sfvb_page_attributes(storefront_oid, path, page_attribute_update_request)
|
data/docs/SfvbMenu.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# UltracartClient::SfvbMenu
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | The menu's code, which is the value a menu element's menuName refers to. Compare case insensitively. | [optional] |
|
|
8
|
+
| **hash_sha256** | **String** | Content hash of the menu as stored. Send it back as If-Match when writing. | [optional] |
|
|
9
|
+
| **item_count** | **Integer** | How many entries the menu holds in total, counting every level of the tree. | [optional] |
|
|
10
|
+
| **items** | [**Array<SfvbMenuItem>**](SfvbMenuItem.md) | The menu's entries, in the order they render. Omitted from the list endpoint, which returns each menu's identity and counts only. | [optional] |
|
|
11
|
+
| **title** | **String** | The menu's own label, shown in the store admin rather than on the storefront. Trimmed to 250 characters. | [optional] |
|
|
12
|
+
| **unconfigured** | **Boolean** | True when a template names this code but no menu has been created for it. Such a code renders an empty list today. Write it to create it. | [optional] |
|
|
13
|
+
| **undeclared** | **Boolean** | True when no template on the storefront names this code. The menu is stored and editable, but nothing renders it, which usually means a menu element's menuName is misspelled. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'ultracart_api'
|
|
19
|
+
|
|
20
|
+
instance = UltracartClient::SfvbMenu.new(
|
|
21
|
+
code: null,
|
|
22
|
+
hash_sha256: null,
|
|
23
|
+
item_count: null,
|
|
24
|
+
items: null,
|
|
25
|
+
title: null,
|
|
26
|
+
unconfigured: null,
|
|
27
|
+
undeclared: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# UltracartClient::SfvbMenuItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **catalog_group_oid** | **Integer** | The catalog group page_path resolved to. Returned for reference and ignored on a write - send page_path, which is the identifier the rest of this API uses. | [optional] |
|
|
8
|
+
| **description** | **String** | The link text, and the only field every type needs. Required. | [optional] |
|
|
9
|
+
| **items** | [**Array<SfvbMenuItem>**](SfvbMenuItem.md) | This entry's sub menu, in the order it renders. Omit or send an empty array for a leaf. | [optional] |
|
|
10
|
+
| **merchant_item_id** | **String** | The item an item entry opens, by merchant item id rather than by oid. | [optional] |
|
|
11
|
+
| **open_in_new_window** | **Boolean** | True to open the link in a new window or tab. | [optional] |
|
|
12
|
+
| **page_path** | **String** | The page a page entry opens, normalized to begin and end with a slash. This is the same path the pages endpoints take. Sent on a write and returned on a read. | [optional] |
|
|
13
|
+
| **social_page_type** | **String** | Which social network a social entry opens. The URL comes from the storefront's social settings. | [optional] |
|
|
14
|
+
| **system_page_type** | **String** | Which built in page a system page entry opens. The storefront resolves the URL, so these keep working when the checkout or account paths change. | [optional] |
|
|
15
|
+
| **type** | **String** | What the entry points at, which decides which one of the other fields is required. custom needs url, item needs merchant_item_id, page needs page_path, social needs social_page_type, and system page needs system_page_type. The legacy spelling group is accepted and stored as page. | [optional] |
|
|
16
|
+
| **url** | **String** | Where a custom entry goes. Any URL the storefront can link to, absolute or site relative. | [optional] |
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'ultracart_api'
|
|
22
|
+
|
|
23
|
+
instance = UltracartClient::SfvbMenuItem.new(
|
|
24
|
+
catalog_group_oid: null,
|
|
25
|
+
description: null,
|
|
26
|
+
items: null,
|
|
27
|
+
merchant_item_id: null,
|
|
28
|
+
open_in_new_window: null,
|
|
29
|
+
page_path: null,
|
|
30
|
+
social_page_type: null,
|
|
31
|
+
system_page_type: null,
|
|
32
|
+
type: null,
|
|
33
|
+
url: null
|
|
34
|
+
)
|
|
35
|
+
```
|
|
36
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbMenuWriteRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **items** | [**Array<SfvbMenuItem>**](SfvbMenuItem.md) | The entries the menu should hold, in render order. Omit to leave the entries alone and change only the title. | [optional] |
|
|
8
|
+
| **title** | **String** | The menu's label in the store admin. Trimmed to 250 characters. Leave it off to keep the current one. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbMenuWriteRequest.new(
|
|
16
|
+
items: null,
|
|
17
|
+
title: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::SfvbMenusResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **menus** | [**Array<SfvbMenu>**](SfvbMenu.md) | The storefront's menus, sorted by code. Entries are omitted here - read a single menu to get its tree. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::SfvbMenusResponse.new(
|
|
15
|
+
menus: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbPreviewAccessRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **path** | **String** | Storefront path to land on, beginning with a slash. Defaults to / | [optional] |
|
|
8
|
+
| **preview_session_id** | **String** | Staged preview session to show. It must be one this user created and it must not have expired. Leave it out to show the saved containers with nothing staged. | [optional] |
|
|
9
|
+
| **theme_oid** | **Integer** | Theme to show, which may be inactive. Must belong to this storefront. Defaults to the active theme. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbPreviewAccessRequest.new(
|
|
17
|
+
path: null,
|
|
18
|
+
preview_session_id: null,
|
|
19
|
+
theme_oid: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbPreviewAccessResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **access_url** | **String** | One time link on the storefront's own host. Opening it in any browser, including an agent's built in browser with no UltraCart login, gets past the storefront lock and applies the preview session and theme for the rest of that browser's session, then redirects to path. It is a credential until used, so do not paste it anywhere other than the browser that should open it. | [optional] |
|
|
8
|
+
| **expires_in_seconds** | **Integer** | Seconds left to open access_url. It stops working after that, and after its first use. | [optional] |
|
|
9
|
+
| **path** | **String** | Storefront path the browser lands on, after reserved preview parameters are removed. | [optional] |
|
|
10
|
+
| **preview_session_id** | **String** | The preview session applied, when one was requested. | [optional] |
|
|
11
|
+
| **session_lifetime_seconds** | **Integer** | How long the browser stays in preview once access_url is opened. The remaining life of the preview session, or eight hours when none was given. Ending the preview session ends preview in that browser at its next page. The user and their storefront permission are checked again on every page, so removing either ends it sooner. | [optional] |
|
|
12
|
+
| **single_use** | **Boolean** | Always true. A second open of access_url returns 410. | [optional] |
|
|
13
|
+
| **theme_oid** | **Integer** | The theme shown, when one was requested. | [optional] |
|
|
14
|
+
| **usage_note** | **String** | Plain language instructions, safe to show a user. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbPreviewAccessResponse.new(
|
|
22
|
+
access_url: null,
|
|
23
|
+
expires_in_seconds: null,
|
|
24
|
+
path: null,
|
|
25
|
+
preview_session_id: null,
|
|
26
|
+
session_lifetime_seconds: null,
|
|
27
|
+
single_use: null,
|
|
28
|
+
theme_oid: null,
|
|
29
|
+
usage_note: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/SfvbVersionResponse.md
CHANGED
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
| **max_cjson_bytes** | **Integer** | Largest CJSON document that will be parsed, in bytes. | [optional] |
|
|
12
12
|
| **max_directory_entries** | **Integer** | Most entries one directory listing returns. Asking for more is silently reduced to this rather than refused, so compare against it instead of trusting that you got what you asked for. The listing does set a truncated flag when it drops entries. | [optional] |
|
|
13
13
|
| **max_library_results_per_page** | **Integer** | Most element library results one page returns. Asking for more is silently reduced to this, and unlike the directory listing there is no truncation flag on the response, so this number is the only way to know a larger request was cut. | [optional] |
|
|
14
|
+
| **max_menu_depth** | **Integer** | How deeply store menu entries can nest. | [optional] |
|
|
15
|
+
| **max_menu_items** | **Integer** | Most entries one store menu can hold, counting every level of the tree. A menu is navigation that renders on every page, so this is deliberately far below what the storage would physically accept. | [optional] |
|
|
14
16
|
| **max_preview_session_bytes** | **Integer** | Largest payload one preview session may hold, in bytes. | [optional] |
|
|
15
17
|
| **max_revertable_bytes** | **Integer** | Largest historical version files/revert will restore, in bytes. Higher than max_text_read_bytes deliberately - putting back a version that is already stored is cheaper than serving it as JSON, so a version too large to read can still be reverted to. | [optional] |
|
|
16
18
|
| **max_search_results** | **Integer** | Hard ceiling on file search results per page. | [optional] |
|
|
@@ -34,6 +36,8 @@ instance = UltracartClient::SfvbVersionResponse.new(
|
|
|
34
36
|
max_cjson_bytes: null,
|
|
35
37
|
max_directory_entries: null,
|
|
36
38
|
max_library_results_per_page: null,
|
|
39
|
+
max_menu_depth: null,
|
|
40
|
+
max_menu_items: null,
|
|
37
41
|
max_preview_session_bytes: null,
|
|
38
42
|
max_revertable_bytes: null,
|
|
39
43
|
max_search_results: null,
|