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.
Files changed (103) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +87 -2
  3. data/docs/ChannelPartnerOrder.md +2 -0
  4. data/docs/ConversationApi.md +52 -0
  5. data/docs/ConversationPbxPayConnector.md +32 -0
  6. data/docs/ConversationPbxPayConnectorsResponse.md +26 -0
  7. data/docs/OrderChannelPartner.md +2 -0
  8. data/docs/SfvbApi.md +1933 -0
  9. data/docs/SfvbCompileRequest.md +26 -0
  10. data/docs/SfvbCompileResponse.md +28 -0
  11. data/docs/SfvbContainerResponse.md +36 -0
  12. data/docs/SfvbContainerRevertRequest.md +20 -0
  13. data/docs/SfvbContainerVersion.md +40 -0
  14. data/docs/SfvbContainerVersionsResponse.md +18 -0
  15. data/docs/SfvbContainerWriteRequest.md +24 -0
  16. data/docs/SfvbElement.md +20 -0
  17. data/docs/SfvbElementSchemaResponse.md +20 -0
  18. data/docs/SfvbElementsResponse.md +22 -0
  19. data/docs/SfvbErrorDetail.md +36 -0
  20. data/docs/SfvbFileContentResponse.md +38 -0
  21. data/docs/SfvbFileEntry.md +46 -0
  22. data/docs/SfvbFileRevertRequest.md +22 -0
  23. data/docs/SfvbFileSearchRequest.md +48 -0
  24. data/docs/SfvbFileSearchResponse.md +32 -0
  25. data/docs/SfvbFileVersion.md +34 -0
  26. data/docs/SfvbFileVersionsResponse.md +22 -0
  27. data/docs/SfvbFileWriteRequest.md +22 -0
  28. data/docs/SfvbFileWriteResponse.md +28 -0
  29. data/docs/SfvbFilesResponse.md +28 -0
  30. data/docs/SfvbLibraryEntry.md +38 -0
  31. data/docs/SfvbLibraryFacet.md +22 -0
  32. data/docs/SfvbLibraryResponse.md +28 -0
  33. data/docs/SfvbPreviewSessionRequest.md +20 -0
  34. data/docs/SfvbPreviewSessionResponse.md +30 -0
  35. data/docs/SfvbPreviewUrlResponse.md +30 -0
  36. data/docs/SfvbRenderRequest.md +40 -0
  37. data/docs/SfvbRenderResponse.md +28 -0
  38. data/docs/SfvbStorefront.md +22 -0
  39. data/docs/SfvbStorefrontsResponse.md +18 -0
  40. data/docs/SfvbTheme.md +36 -0
  41. data/docs/SfvbThemeDuplicateRequest.md +22 -0
  42. data/docs/SfvbThemeJobResponse.md +40 -0
  43. data/docs/SfvbThemesResponse.md +20 -0
  44. data/docs/SfvbUpsellOffer.md +34 -0
  45. data/docs/SfvbUpsellOffersResponse.md +18 -0
  46. data/docs/SfvbValidateRequest.md +26 -0
  47. data/docs/SfvbValidationResponse.md +24 -0
  48. data/docs/SfvbVelocityValidateRequest.md +20 -0
  49. data/docs/SfvbVersionResponse.md +36 -0
  50. data/docs/SfvbWhoamiResponse.md +36 -0
  51. data/docs/SfvbWidgetIdsResponse.md +22 -0
  52. data/lib/ultracart_api/api/conversation_api.rb +58 -0
  53. data/lib/ultracart_api/api/sfvb_api.rb +2565 -0
  54. data/lib/ultracart_api/models/channel_partner_order.rb +13 -1
  55. data/lib/ultracart_api/models/conversation_pbx_pay_connector.rb +426 -0
  56. data/lib/ultracart_api/models/conversation_pbx_pay_connectors_response.rb +258 -0
  57. data/lib/ultracart_api/models/order_channel_partner.rb +13 -1
  58. data/lib/ultracart_api/models/sfvb_compile_request.rb +260 -0
  59. data/lib/ultracart_api/models/sfvb_compile_response.rb +273 -0
  60. data/lib/ultracart_api/models/sfvb_container_response.rb +344 -0
  61. data/lib/ultracart_api/models/sfvb_container_revert_request.rb +230 -0
  62. data/lib/ultracart_api/models/sfvb_container_version.rb +376 -0
  63. data/lib/ultracart_api/models/sfvb_container_versions_response.rb +222 -0
  64. data/lib/ultracart_api/models/sfvb_container_write_request.rb +250 -0
  65. data/lib/ultracart_api/models/sfvb_element.rb +230 -0
  66. data/lib/ultracart_api/models/sfvb_element_schema_response.rb +230 -0
  67. data/lib/ultracart_api/models/sfvb_elements_response.rb +242 -0
  68. data/lib/ultracart_api/models/sfvb_error_detail.rb +346 -0
  69. data/lib/ultracart_api/models/sfvb_file_content_response.rb +320 -0
  70. data/lib/ultracart_api/models/sfvb_file_entry.rb +360 -0
  71. data/lib/ultracart_api/models/sfvb_file_revert_request.rb +240 -0
  72. data/lib/ultracart_api/models/sfvb_file_search_request.rb +370 -0
  73. data/lib/ultracart_api/models/sfvb_file_search_response.rb +292 -0
  74. data/lib/ultracart_api/models/sfvb_file_version.rb +300 -0
  75. data/lib/ultracart_api/models/sfvb_file_versions_response.rb +242 -0
  76. data/lib/ultracart_api/models/sfvb_file_write_request.rb +240 -0
  77. data/lib/ultracart_api/models/sfvb_file_write_response.rb +268 -0
  78. data/lib/ultracart_api/models/sfvb_files_response.rb +272 -0
  79. data/lib/ultracart_api/models/sfvb_library_entry.rb +322 -0
  80. data/lib/ultracart_api/models/sfvb_library_facet.rb +242 -0
  81. data/lib/ultracart_api/models/sfvb_library_response.rb +274 -0
  82. data/lib/ultracart_api/models/sfvb_preview_session_request.rb +230 -0
  83. data/lib/ultracart_api/models/sfvb_preview_session_response.rb +284 -0
  84. data/lib/ultracart_api/models/sfvb_preview_url_response.rb +280 -0
  85. data/lib/ultracart_api/models/sfvb_render_request.rb +330 -0
  86. data/lib/ultracart_api/models/sfvb_render_response.rb +274 -0
  87. data/lib/ultracart_api/models/sfvb_storefront.rb +240 -0
  88. data/lib/ultracart_api/models/sfvb_storefronts_response.rb +222 -0
  89. data/lib/ultracart_api/models/sfvb_theme.rb +310 -0
  90. data/lib/ultracart_api/models/sfvb_theme_duplicate_request.rb +240 -0
  91. data/lib/ultracart_api/models/sfvb_theme_job_response.rb +364 -0
  92. data/lib/ultracart_api/models/sfvb_themes_response.rb +232 -0
  93. data/lib/ultracart_api/models/sfvb_upsell_offer.rb +300 -0
  94. data/lib/ultracart_api/models/sfvb_upsell_offers_response.rb +222 -0
  95. data/lib/ultracart_api/models/sfvb_validate_request.rb +294 -0
  96. data/lib/ultracart_api/models/sfvb_validation_response.rb +256 -0
  97. data/lib/ultracart_api/models/sfvb_velocity_validate_request.rb +230 -0
  98. data/lib/ultracart_api/models/sfvb_version_response.rb +344 -0
  99. data/lib/ultracart_api/models/sfvb_whoami_response.rb +314 -0
  100. data/lib/ultracart_api/models/sfvb_widget_ids_response.rb +242 -0
  101. data/lib/ultracart_api/version.rb +1 -1
  102. data/lib/ultracart_api.rb +46 -0
  103. metadata +94 -2
data/docs/SfvbApi.md ADDED
@@ -0,0 +1,1933 @@
1
+ # UltracartClient::SfvbApi
2
+
3
+ All URIs are relative to *https://secure.ultracart.com/rest/v2*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**compile_sfvb_cjson**](SfvbApi.md#compile_sfvb_cjson) | **POST** /sfvb/cjson/compile | Compile CJSON to Velocity |
8
+ | [**create_sfvb_preview_session**](SfvbApi.md#create_sfvb_preview_session) | **POST** /sfvb/storefronts/{storefront_oid}/preview_sessions | Create a preview session |
9
+ | [**delete_sfvb_file**](SfvbApi.md#delete_sfvb_file) | **DELETE** /sfvb/storefronts/{storefront_oid}/files | Delete a storefront file |
10
+ | [**delete_sfvb_preview_session**](SfvbApi.md#delete_sfvb_preview_session) | **DELETE** /sfvb/storefronts/{storefront_oid}/preview_sessions/{preview_session_id} | Delete a preview session |
11
+ | [**duplicate_sfvb_theme**](SfvbApi.md#duplicate_sfvb_theme) | **POST** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid}/duplicate | Duplicate a theme |
12
+ | [**get_sfvb_cjson_used_elements**](SfvbApi.md#get_sfvb_cjson_used_elements) | **POST** /sfvb/cjson/elements | Element types used by a container |
13
+ | [**get_sfvb_container**](SfvbApi.md#get_sfvb_container) | **GET** /sfvb/storefronts/{storefront_oid}/containers/{owner_type}/{owner_object_id} | Read a container stored outside the file system |
14
+ | [**get_sfvb_container_version**](SfvbApi.md#get_sfvb_container_version) | **GET** /sfvb/storefronts/{storefront_oid}/container_versions/{container_history_oid} | Read the CJSON stored in one container history entry |
15
+ | [**get_sfvb_element**](SfvbApi.md#get_sfvb_element) | **GET** /sfvb/elements/{element_type} | Configuration schema for one element type |
16
+ | [**get_sfvb_file_content**](SfvbApi.md#get_sfvb_file_content) | **GET** /sfvb/storefronts/{storefront_oid}/files/content | Read a storefront file |
17
+ | [**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 |
18
+ | [**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 |
19
+ | [**get_sfvb_theme**](SfvbApi.md#get_sfvb_theme) | **GET** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid} | Get a theme |
20
+ | [**get_sfvb_theme_job**](SfvbApi.md#get_sfvb_theme_job) | **GET** /sfvb/storefronts/{storefront_oid}/theme_jobs/{job_id} | Status of an asynchronous theme job |
21
+ | [**get_sfvb_version**](SfvbApi.md#get_sfvb_version) | **GET** /sfvb/version | Compiler version for this merchant |
22
+ | [**get_sfvb_whoami**](SfvbApi.md#get_sfvb_whoami) | **GET** /sfvb/whoami | Who this token is |
23
+ | [**install_sfvb_library_entry**](SfvbApi.md#install_sfvb_library_entry) | **POST** /sfvb/storefronts/{storefront_oid}/library/{library_oid}/install | Install a library entry into a storefront |
24
+ | [**list_sfvb_container_versions**](SfvbApi.md#list_sfvb_container_versions) | **GET** /sfvb/storefronts/{storefront_oid}/container_versions | Version history for a container stored outside the file system |
25
+ | [**list_sfvb_elements**](SfvbApi.md#list_sfvb_elements) | **GET** /sfvb/elements | List every SFVB element type |
26
+ | [**list_sfvb_file_versions**](SfvbApi.md#list_sfvb_file_versions) | **GET** /sfvb/storefronts/{storefront_oid}/files/versions | Version history for a storefront file |
27
+ | [**list_sfvb_files**](SfvbApi.md#list_sfvb_files) | **GET** /sfvb/storefronts/{storefront_oid}/files | List a storefront directory |
28
+ | [**list_sfvb_storefronts**](SfvbApi.md#list_sfvb_storefronts) | **GET** /sfvb/storefronts | List storefronts |
29
+ | [**list_sfvb_themes**](SfvbApi.md#list_sfvb_themes) | **GET** /sfvb/storefronts/{storefront_oid}/themes | List themes for a storefront |
30
+ | [**list_sfvb_upsell_offers**](SfvbApi.md#list_sfvb_upsell_offers) | **GET** /sfvb/storefronts/{storefront_oid}/upsell_offers | List upsell offers |
31
+ | [**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 |
32
+ | [**put_sfvb_file_content**](SfvbApi.md#put_sfvb_file_content) | **PUT** /sfvb/storefronts/{storefront_oid}/files/content | Write a storefront file |
33
+ | [**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 |
34
+ | [**render_sfvb_widgets**](SfvbApi.md#render_sfvb_widgets) | **POST** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid}/render | Render a CJSON node to HTML |
35
+ | [**reserve_sfvb_widget_ids**](SfvbApi.md#reserve_sfvb_widget_ids) | **POST** /sfvb/storefronts/{storefront_oid}/widget_ids | Reserve a block of widget ids |
36
+ | [**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 |
37
+ | [**revert_sfvb_file**](SfvbApi.md#revert_sfvb_file) | **POST** /sfvb/storefronts/{storefront_oid}/files/revert | Revert a storefront file to an earlier version |
38
+ | [**search_sfvb_files**](SfvbApi.md#search_sfvb_files) | **POST** /sfvb/storefronts/{storefront_oid}/files/search | Search storefront files |
39
+ | [**search_sfvb_library**](SfvbApi.md#search_sfvb_library) | **GET** /sfvb/storefronts/{storefront_oid}/library | Search the element library |
40
+ | [**validate_sfvb_cjson**](SfvbApi.md#validate_sfvb_cjson) | **POST** /sfvb/cjson/validate | Validate CJSON |
41
+ | [**validate_sfvb_velocity**](SfvbApi.md#validate_sfvb_velocity) | **POST** /sfvb/storefronts/{storefront_oid}/themes/{theme_oid}/velocity/validate | Validate a Velocity template against a theme |
42
+
43
+
44
+ ## compile_sfvb_cjson
45
+
46
+ > <SfvbCompileResponse> compile_sfvb_cjson(compile_request)
47
+
48
+ Compile CJSON to Velocity
49
+
50
+ Compiles a container document to Velocity without storing anything. Supply theme_oid to compile with the theme's inherit groups applied; omit it to compile standalone.
51
+
52
+
53
+ ### Examples
54
+
55
+
56
+ (No example for this operation).
57
+
58
+
59
+ #### Using the compile_sfvb_cjson_with_http_info variant
60
+
61
+ This returns an Array which contains the response data, status code and headers.
62
+
63
+ > <Array(<SfvbCompileResponse>, Integer, Hash)> compile_sfvb_cjson_with_http_info(compile_request)
64
+
65
+ ```ruby
66
+ begin
67
+ # Compile CJSON to Velocity
68
+ data, status_code, headers = api_instance.compile_sfvb_cjson_with_http_info(compile_request)
69
+ p status_code # => 2xx
70
+ p headers # => { ... }
71
+ p data # => <SfvbCompileResponse>
72
+ rescue UltracartClient::ApiError => e
73
+ puts "Error when calling SfvbApi->compile_sfvb_cjson_with_http_info: #{e}"
74
+ end
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ | Name | Type | Description | Notes |
80
+ | ---- | ---- | ----------- | ----- |
81
+ | **compile_request** | [**SfvbCompileRequest**](SfvbCompileRequest.md) | CJSON to compile | |
82
+
83
+ ### Return type
84
+
85
+ [**SfvbCompileResponse**](SfvbCompileResponse.md)
86
+
87
+ ### Authorization
88
+
89
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
90
+
91
+ ### HTTP request headers
92
+
93
+ - **Content-Type**: application/json
94
+ - **Accept**: application/json
95
+
96
+
97
+ ## create_sfvb_preview_session
98
+
99
+ > <SfvbPreviewSessionResponse> create_sfvb_preview_session(storefront_oid)
100
+
101
+ Create a preview session
102
+
103
+ Returns a server generated session id to push containers into. The id is not caller supplied, because concurrent agents choosing their own would be free to collide, and the browser editor's habit of minting one with Math.random is not a property worth carrying into an API. Expires after eight hours and can be deleted sooner. Requires a token that resolves to a user, so use the device authorization flow.
104
+
105
+
106
+ ### Examples
107
+
108
+
109
+ (No example for this operation).
110
+
111
+
112
+ #### Using the create_sfvb_preview_session_with_http_info variant
113
+
114
+ This returns an Array which contains the response data, status code and headers.
115
+
116
+ > <Array(<SfvbPreviewSessionResponse>, Integer, Hash)> create_sfvb_preview_session_with_http_info(storefront_oid)
117
+
118
+ ```ruby
119
+ begin
120
+ # Create a preview session
121
+ data, status_code, headers = api_instance.create_sfvb_preview_session_with_http_info(storefront_oid)
122
+ p status_code # => 2xx
123
+ p headers # => { ... }
124
+ p data # => <SfvbPreviewSessionResponse>
125
+ rescue UltracartClient::ApiError => e
126
+ puts "Error when calling SfvbApi->create_sfvb_preview_session_with_http_info: #{e}"
127
+ end
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+ | Name | Type | Description | Notes |
133
+ | ---- | ---- | ----------- | ----- |
134
+ | **storefront_oid** | **Integer** | | |
135
+
136
+ ### Return type
137
+
138
+ [**SfvbPreviewSessionResponse**](SfvbPreviewSessionResponse.md)
139
+
140
+ ### Authorization
141
+
142
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: Not defined
147
+ - **Accept**: application/json
148
+
149
+
150
+ ## delete_sfvb_file
151
+
152
+ > delete_sfvb_file(storefront_oid, if_match, opts)
153
+
154
+ Delete a storefront file
155
+
156
+ Recoverable from the recycle bin.
157
+
158
+
159
+ ### Examples
160
+
161
+
162
+ (No example for this operation).
163
+
164
+
165
+ #### Using the delete_sfvb_file_with_http_info variant
166
+
167
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
168
+
169
+ > <Array(nil, Integer, Hash)> delete_sfvb_file_with_http_info(storefront_oid, if_match, opts)
170
+
171
+ ```ruby
172
+ begin
173
+ # Delete a storefront file
174
+ data, status_code, headers = api_instance.delete_sfvb_file_with_http_info(storefront_oid, if_match, opts)
175
+ p status_code # => 2xx
176
+ p headers # => { ... }
177
+ p data # => nil
178
+ rescue UltracartClient::ApiError => e
179
+ puts "Error when calling SfvbApi->delete_sfvb_file_with_http_info: #{e}"
180
+ end
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+ | Name | Type | Description | Notes |
186
+ | ---- | ---- | ----------- | ----- |
187
+ | **storefront_oid** | **Integer** | | |
188
+ | **if_match** | **String** | Content hash of the file being deleted. Required; 428 when absent, 412 when stale. | |
189
+ | **path** | **String** | | [optional] |
190
+
191
+ ### Return type
192
+
193
+ nil (empty response body)
194
+
195
+ ### Authorization
196
+
197
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
198
+
199
+ ### HTTP request headers
200
+
201
+ - **Content-Type**: Not defined
202
+ - **Accept**: application/json
203
+
204
+
205
+ ## delete_sfvb_preview_session
206
+
207
+ > delete_sfvb_preview_session(storefront_oid, preview_session_id)
208
+
209
+ Delete a preview session
210
+
211
+ Releases the session before its eight hour expiry. Without this the only way to free one is to wait, which is a poor answer for a tool that may open a dozen in an afternoon.
212
+
213
+
214
+ ### Examples
215
+
216
+
217
+ (No example for this operation).
218
+
219
+
220
+ #### Using the delete_sfvb_preview_session_with_http_info variant
221
+
222
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
223
+
224
+ > <Array(nil, Integer, Hash)> delete_sfvb_preview_session_with_http_info(storefront_oid, preview_session_id)
225
+
226
+ ```ruby
227
+ begin
228
+ # Delete a preview session
229
+ data, status_code, headers = api_instance.delete_sfvb_preview_session_with_http_info(storefront_oid, preview_session_id)
230
+ p status_code # => 2xx
231
+ p headers # => { ... }
232
+ p data # => nil
233
+ rescue UltracartClient::ApiError => e
234
+ puts "Error when calling SfvbApi->delete_sfvb_preview_session_with_http_info: #{e}"
235
+ end
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Name | Type | Description | Notes |
241
+ | ---- | ---- | ----------- | ----- |
242
+ | **storefront_oid** | **Integer** | | |
243
+ | **preview_session_id** | **String** | | |
244
+
245
+ ### Return type
246
+
247
+ nil (empty response body)
248
+
249
+ ### Authorization
250
+
251
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: Not defined
256
+ - **Accept**: application/json
257
+
258
+
259
+ ## duplicate_sfvb_theme
260
+
261
+ > <SfvbThemeJobResponse> duplicate_sfvb_theme(storefront_oid, theme_oid, duplicate_request)
262
+
263
+ Duplicate a theme
264
+
265
+ Copies a theme into a new one and returns a job handle to poll. Asynchronous, because copying a theme copies every file in it. Needs sfvb_write rather than sfvb_publish, because the job explicitly does not activate what it creates, so the worst outcome of a mistaken call is a spare theme. This is how you get somewhere safe to work - duplicate, edit the copy with an ordinary write scope, and let a human promote it.
266
+
267
+
268
+ ### Examples
269
+
270
+
271
+ (No example for this operation).
272
+
273
+
274
+ #### Using the duplicate_sfvb_theme_with_http_info variant
275
+
276
+ This returns an Array which contains the response data, status code and headers.
277
+
278
+ > <Array(<SfvbThemeJobResponse>, Integer, Hash)> duplicate_sfvb_theme_with_http_info(storefront_oid, theme_oid, duplicate_request)
279
+
280
+ ```ruby
281
+ begin
282
+ # Duplicate a theme
283
+ data, status_code, headers = api_instance.duplicate_sfvb_theme_with_http_info(storefront_oid, theme_oid, duplicate_request)
284
+ p status_code # => 2xx
285
+ p headers # => { ... }
286
+ p data # => <SfvbThemeJobResponse>
287
+ rescue UltracartClient::ApiError => e
288
+ puts "Error when calling SfvbApi->duplicate_sfvb_theme_with_http_info: #{e}"
289
+ end
290
+ ```
291
+
292
+ ### Parameters
293
+
294
+ | Name | Type | Description | Notes |
295
+ | ---- | ---- | ----------- | ----- |
296
+ | **storefront_oid** | **Integer** | | |
297
+ | **theme_oid** | **Integer** | | |
298
+ | **duplicate_request** | [**SfvbThemeDuplicateRequest**](SfvbThemeDuplicateRequest.md) | Theme duplication details | |
299
+
300
+ ### Return type
301
+
302
+ [**SfvbThemeJobResponse**](SfvbThemeJobResponse.md)
303
+
304
+ ### Authorization
305
+
306
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
307
+
308
+ ### HTTP request headers
309
+
310
+ - **Content-Type**: application/json
311
+ - **Accept**: application/json
312
+
313
+
314
+ ## get_sfvb_cjson_used_elements
315
+
316
+ > <SfvbElementsResponse> get_sfvb_cjson_used_elements(compile_request)
317
+
318
+ Element types used by a container
319
+
320
+
321
+ ### Examples
322
+
323
+
324
+ (No example for this operation).
325
+
326
+
327
+ #### Using the get_sfvb_cjson_used_elements_with_http_info variant
328
+
329
+ This returns an Array which contains the response data, status code and headers.
330
+
331
+ > <Array(<SfvbElementsResponse>, Integer, Hash)> get_sfvb_cjson_used_elements_with_http_info(compile_request)
332
+
333
+ ```ruby
334
+ begin
335
+ # Element types used by a container
336
+ data, status_code, headers = api_instance.get_sfvb_cjson_used_elements_with_http_info(compile_request)
337
+ p status_code # => 2xx
338
+ p headers # => { ... }
339
+ p data # => <SfvbElementsResponse>
340
+ rescue UltracartClient::ApiError => e
341
+ puts "Error when calling SfvbApi->get_sfvb_cjson_used_elements_with_http_info: #{e}"
342
+ end
343
+ ```
344
+
345
+ ### Parameters
346
+
347
+ | Name | Type | Description | Notes |
348
+ | ---- | ---- | ----------- | ----- |
349
+ | **compile_request** | [**SfvbCompileRequest**](SfvbCompileRequest.md) | CJSON to inspect | |
350
+
351
+ ### Return type
352
+
353
+ [**SfvbElementsResponse**](SfvbElementsResponse.md)
354
+
355
+ ### Authorization
356
+
357
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: application/json
362
+ - **Accept**: application/json
363
+
364
+
365
+ ## get_sfvb_container
366
+
367
+ > <SfvbContainerResponse> get_sfvb_container(storefront_oid, owner_type, owner_object_id, opts)
368
+
369
+ Read a container stored outside the file system
370
+
371
+ owner_type is one of upsell, email, postcardfront, postcardback or item. Item containers also require container_name. Theme and page containers are files; read those through files/content.
372
+
373
+
374
+ ### Examples
375
+
376
+
377
+ (No example for this operation).
378
+
379
+
380
+ #### Using the get_sfvb_container_with_http_info variant
381
+
382
+ This returns an Array which contains the response data, status code and headers.
383
+
384
+ > <Array(<SfvbContainerResponse>, Integer, Hash)> get_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, opts)
385
+
386
+ ```ruby
387
+ begin
388
+ # Read a container stored outside the file system
389
+ data, status_code, headers = api_instance.get_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, opts)
390
+ p status_code # => 2xx
391
+ p headers # => { ... }
392
+ p data # => <SfvbContainerResponse>
393
+ rescue UltracartClient::ApiError => e
394
+ puts "Error when calling SfvbApi->get_sfvb_container_with_http_info: #{e}"
395
+ end
396
+ ```
397
+
398
+ ### Parameters
399
+
400
+ | Name | Type | Description | Notes |
401
+ | ---- | ---- | ----------- | ----- |
402
+ | **storefront_oid** | **Integer** | | |
403
+ | **owner_type** | **String** | | |
404
+ | **owner_object_id** | **String** | | |
405
+ | **container_name** | **String** | | [optional] |
406
+
407
+ ### Return type
408
+
409
+ [**SfvbContainerResponse**](SfvbContainerResponse.md)
410
+
411
+ ### Authorization
412
+
413
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: Not defined
418
+ - **Accept**: application/json
419
+
420
+
421
+ ## get_sfvb_container_version
422
+
423
+ > <SfvbContainerVersion> get_sfvb_container_version(storefront_oid, container_history_oid, opts)
424
+
425
+ Read the CJSON stored in one container history entry
426
+
427
+ Inspect or diff an earlier version without reverting to it. The version is addressed through the container that owns it, so a history oid belonging to some other resource cannot be read through this route.
428
+
429
+
430
+ ### Examples
431
+
432
+
433
+ (No example for this operation).
434
+
435
+
436
+ #### Using the get_sfvb_container_version_with_http_info variant
437
+
438
+ This returns an Array which contains the response data, status code and headers.
439
+
440
+ > <Array(<SfvbContainerVersion>, Integer, Hash)> get_sfvb_container_version_with_http_info(storefront_oid, container_history_oid, opts)
441
+
442
+ ```ruby
443
+ begin
444
+ # Read the CJSON stored in one container history entry
445
+ data, status_code, headers = api_instance.get_sfvb_container_version_with_http_info(storefront_oid, container_history_oid, opts)
446
+ p status_code # => 2xx
447
+ p headers # => { ... }
448
+ p data # => <SfvbContainerVersion>
449
+ rescue UltracartClient::ApiError => e
450
+ puts "Error when calling SfvbApi->get_sfvb_container_version_with_http_info: #{e}"
451
+ end
452
+ ```
453
+
454
+ ### Parameters
455
+
456
+ | Name | Type | Description | Notes |
457
+ | ---- | ---- | ----------- | ----- |
458
+ | **storefront_oid** | **Integer** | | |
459
+ | **container_history_oid** | **Integer** | | |
460
+ | **owner_type** | **String** | | [optional] |
461
+ | **owner_object_id** | **String** | | [optional] |
462
+ | **container_name** | **String** | | [optional] |
463
+
464
+ ### Return type
465
+
466
+ [**SfvbContainerVersion**](SfvbContainerVersion.md)
467
+
468
+ ### Authorization
469
+
470
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
471
+
472
+ ### HTTP request headers
473
+
474
+ - **Content-Type**: Not defined
475
+ - **Accept**: application/json
476
+
477
+
478
+ ## get_sfvb_element
479
+
480
+ > <SfvbElementSchemaResponse> get_sfvb_element(element_type)
481
+
482
+ Configuration schema for one element type
483
+
484
+
485
+ ### Examples
486
+
487
+
488
+ (No example for this operation).
489
+
490
+
491
+ #### Using the get_sfvb_element_with_http_info variant
492
+
493
+ This returns an Array which contains the response data, status code and headers.
494
+
495
+ > <Array(<SfvbElementSchemaResponse>, Integer, Hash)> get_sfvb_element_with_http_info(element_type)
496
+
497
+ ```ruby
498
+ begin
499
+ # Configuration schema for one element type
500
+ data, status_code, headers = api_instance.get_sfvb_element_with_http_info(element_type)
501
+ p status_code # => 2xx
502
+ p headers # => { ... }
503
+ p data # => <SfvbElementSchemaResponse>
504
+ rescue UltracartClient::ApiError => e
505
+ puts "Error when calling SfvbApi->get_sfvb_element_with_http_info: #{e}"
506
+ end
507
+ ```
508
+
509
+ ### Parameters
510
+
511
+ | Name | Type | Description | Notes |
512
+ | ---- | ---- | ----------- | ----- |
513
+ | **element_type** | **String** | | |
514
+
515
+ ### Return type
516
+
517
+ [**SfvbElementSchemaResponse**](SfvbElementSchemaResponse.md)
518
+
519
+ ### Authorization
520
+
521
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
522
+
523
+ ### HTTP request headers
524
+
525
+ - **Content-Type**: Not defined
526
+ - **Accept**: application/json
527
+
528
+
529
+ ## get_sfvb_file_content
530
+
531
+ > <SfvbFileContentResponse> get_sfvb_file_content(storefront_oid, opts)
532
+
533
+ Read a storefront file
534
+
535
+ Returns the current content, or an earlier version when version is supplied. The content hash is returned as an ETag; send it back as If-Match when writing.
536
+
537
+
538
+ ### Examples
539
+
540
+
541
+ (No example for this operation).
542
+
543
+
544
+ #### Using the get_sfvb_file_content_with_http_info variant
545
+
546
+ This returns an Array which contains the response data, status code and headers.
547
+
548
+ > <Array(<SfvbFileContentResponse>, Integer, Hash)> get_sfvb_file_content_with_http_info(storefront_oid, opts)
549
+
550
+ ```ruby
551
+ begin
552
+ # Read a storefront file
553
+ data, status_code, headers = api_instance.get_sfvb_file_content_with_http_info(storefront_oid, opts)
554
+ p status_code # => 2xx
555
+ p headers # => { ... }
556
+ p data # => <SfvbFileContentResponse>
557
+ rescue UltracartClient::ApiError => e
558
+ puts "Error when calling SfvbApi->get_sfvb_file_content_with_http_info: #{e}"
559
+ end
560
+ ```
561
+
562
+ ### Parameters
563
+
564
+ | Name | Type | Description | Notes |
565
+ | ---- | ---- | ----------- | ----- |
566
+ | **storefront_oid** | **Integer** | | |
567
+ | **path** | **String** | | [optional] |
568
+ | **version** | **Integer** | | [optional] |
569
+
570
+ ### Return type
571
+
572
+ [**SfvbFileContentResponse**](SfvbFileContentResponse.md)
573
+
574
+ ### Authorization
575
+
576
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
577
+
578
+ ### HTTP request headers
579
+
580
+ - **Content-Type**: Not defined
581
+ - **Accept**: application/json
582
+
583
+
584
+ ## get_sfvb_library_entry
585
+
586
+ > <SfvbLibraryEntry> get_sfvb_library_entry(storefront_oid, library_oid)
587
+
588
+ Read one library entry including its CJSON
589
+
590
+ Returns the fragment as authored. If it references images or other storefront files those paths will not resolve on this storefront until the entry is installed, so use install rather than this when the intent is to place the fragment.
591
+
592
+
593
+ ### Examples
594
+
595
+
596
+ (No example for this operation).
597
+
598
+
599
+ #### Using the get_sfvb_library_entry_with_http_info variant
600
+
601
+ This returns an Array which contains the response data, status code and headers.
602
+
603
+ > <Array(<SfvbLibraryEntry>, Integer, Hash)> get_sfvb_library_entry_with_http_info(storefront_oid, library_oid)
604
+
605
+ ```ruby
606
+ begin
607
+ # Read one library entry including its CJSON
608
+ data, status_code, headers = api_instance.get_sfvb_library_entry_with_http_info(storefront_oid, library_oid)
609
+ p status_code # => 2xx
610
+ p headers # => { ... }
611
+ p data # => <SfvbLibraryEntry>
612
+ rescue UltracartClient::ApiError => e
613
+ puts "Error when calling SfvbApi->get_sfvb_library_entry_with_http_info: #{e}"
614
+ end
615
+ ```
616
+
617
+ ### Parameters
618
+
619
+ | Name | Type | Description | Notes |
620
+ | ---- | ---- | ----------- | ----- |
621
+ | **storefront_oid** | **Integer** | | |
622
+ | **library_oid** | **Integer** | | |
623
+
624
+ ### Return type
625
+
626
+ [**SfvbLibraryEntry**](SfvbLibraryEntry.md)
627
+
628
+ ### Authorization
629
+
630
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
631
+
632
+ ### HTTP request headers
633
+
634
+ - **Content-Type**: Not defined
635
+ - **Accept**: application/json
636
+
637
+
638
+ ## get_sfvb_preview_url
639
+
640
+ > <SfvbPreviewUrlResponse> get_sfvb_preview_url(storefront_oid, preview_session_id, opts)
641
+
642
+ URL that renders a preview session
643
+
644
+
645
+ ### Examples
646
+
647
+
648
+ (No example for this operation).
649
+
650
+
651
+ #### Using the get_sfvb_preview_url_with_http_info variant
652
+
653
+ This returns an Array which contains the response data, status code and headers.
654
+
655
+ > <Array(<SfvbPreviewUrlResponse>, Integer, Hash)> get_sfvb_preview_url_with_http_info(storefront_oid, preview_session_id, opts)
656
+
657
+ ```ruby
658
+ begin
659
+ # URL that renders a preview session
660
+ data, status_code, headers = api_instance.get_sfvb_preview_url_with_http_info(storefront_oid, preview_session_id, opts)
661
+ p status_code # => 2xx
662
+ p headers # => { ... }
663
+ p data # => <SfvbPreviewUrlResponse>
664
+ rescue UltracartClient::ApiError => e
665
+ puts "Error when calling SfvbApi->get_sfvb_preview_url_with_http_info: #{e}"
666
+ end
667
+ ```
668
+
669
+ ### Parameters
670
+
671
+ | Name | Type | Description | Notes |
672
+ | ---- | ---- | ----------- | ----- |
673
+ | **storefront_oid** | **Integer** | | |
674
+ | **preview_session_id** | **String** | | |
675
+ | **path** | **String** | | [optional] |
676
+
677
+ ### Return type
678
+
679
+ [**SfvbPreviewUrlResponse**](SfvbPreviewUrlResponse.md)
680
+
681
+ ### Authorization
682
+
683
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
684
+
685
+ ### HTTP request headers
686
+
687
+ - **Content-Type**: Not defined
688
+ - **Accept**: application/json
689
+
690
+
691
+ ## get_sfvb_theme
692
+
693
+ > <SfvbTheme> get_sfvb_theme(storefront_oid, theme_oid)
694
+
695
+ Get a theme
696
+
697
+
698
+ ### Examples
699
+
700
+
701
+ (No example for this operation).
702
+
703
+
704
+ #### Using the get_sfvb_theme_with_http_info variant
705
+
706
+ This returns an Array which contains the response data, status code and headers.
707
+
708
+ > <Array(<SfvbTheme>, Integer, Hash)> get_sfvb_theme_with_http_info(storefront_oid, theme_oid)
709
+
710
+ ```ruby
711
+ begin
712
+ # Get a theme
713
+ data, status_code, headers = api_instance.get_sfvb_theme_with_http_info(storefront_oid, theme_oid)
714
+ p status_code # => 2xx
715
+ p headers # => { ... }
716
+ p data # => <SfvbTheme>
717
+ rescue UltracartClient::ApiError => e
718
+ puts "Error when calling SfvbApi->get_sfvb_theme_with_http_info: #{e}"
719
+ end
720
+ ```
721
+
722
+ ### Parameters
723
+
724
+ | Name | Type | Description | Notes |
725
+ | ---- | ---- | ----------- | ----- |
726
+ | **storefront_oid** | **Integer** | | |
727
+ | **theme_oid** | **Integer** | | |
728
+
729
+ ### Return type
730
+
731
+ [**SfvbTheme**](SfvbTheme.md)
732
+
733
+ ### Authorization
734
+
735
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
736
+
737
+ ### HTTP request headers
738
+
739
+ - **Content-Type**: Not defined
740
+ - **Accept**: application/json
741
+
742
+
743
+ ## get_sfvb_theme_job
744
+
745
+ > <SfvbThemeJobResponse> get_sfvb_theme_job(storefront_oid, job_id)
746
+
747
+ Status of an asynchronous theme job
748
+
749
+ Poll until complete is true, then check success. Note that the new theme's oid is not returned. The job's product is a plain text report rather than a structured result, so once it completes, list themes and match on the target_path the start call gave you.
750
+
751
+
752
+ ### Examples
753
+
754
+
755
+ (No example for this operation).
756
+
757
+
758
+ #### Using the get_sfvb_theme_job_with_http_info variant
759
+
760
+ This returns an Array which contains the response data, status code and headers.
761
+
762
+ > <Array(<SfvbThemeJobResponse>, Integer, Hash)> get_sfvb_theme_job_with_http_info(storefront_oid, job_id)
763
+
764
+ ```ruby
765
+ begin
766
+ # Status of an asynchronous theme job
767
+ data, status_code, headers = api_instance.get_sfvb_theme_job_with_http_info(storefront_oid, job_id)
768
+ p status_code # => 2xx
769
+ p headers # => { ... }
770
+ p data # => <SfvbThemeJobResponse>
771
+ rescue UltracartClient::ApiError => e
772
+ puts "Error when calling SfvbApi->get_sfvb_theme_job_with_http_info: #{e}"
773
+ end
774
+ ```
775
+
776
+ ### Parameters
777
+
778
+ | Name | Type | Description | Notes |
779
+ | ---- | ---- | ----------- | ----- |
780
+ | **storefront_oid** | **Integer** | | |
781
+ | **job_id** | **Integer** | | |
782
+
783
+ ### Return type
784
+
785
+ [**SfvbThemeJobResponse**](SfvbThemeJobResponse.md)
786
+
787
+ ### Authorization
788
+
789
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
790
+
791
+ ### HTTP request headers
792
+
793
+ - **Content-Type**: Not defined
794
+ - **Accept**: application/json
795
+
796
+
797
+ ## get_sfvb_version
798
+
799
+ > <SfvbVersionResponse> get_sfvb_version
800
+
801
+ Compiler version for this merchant
802
+
803
+ The visual builder release channel is per merchant, so a CLI holding cached schema or element data should compare against this to know when it has gone stale.
804
+
805
+
806
+ ### Examples
807
+
808
+
809
+ (No example for this operation).
810
+
811
+
812
+ #### Using the get_sfvb_version_with_http_info variant
813
+
814
+ This returns an Array which contains the response data, status code and headers.
815
+
816
+ > <Array(<SfvbVersionResponse>, Integer, Hash)> get_sfvb_version_with_http_info
817
+
818
+ ```ruby
819
+ begin
820
+ # Compiler version for this merchant
821
+ data, status_code, headers = api_instance.get_sfvb_version_with_http_info
822
+ p status_code # => 2xx
823
+ p headers # => { ... }
824
+ p data # => <SfvbVersionResponse>
825
+ rescue UltracartClient::ApiError => e
826
+ puts "Error when calling SfvbApi->get_sfvb_version_with_http_info: #{e}"
827
+ end
828
+ ```
829
+
830
+ ### Parameters
831
+
832
+ This endpoint does not need any parameter.
833
+
834
+ ### Return type
835
+
836
+ [**SfvbVersionResponse**](SfvbVersionResponse.md)
837
+
838
+ ### Authorization
839
+
840
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
841
+
842
+ ### HTTP request headers
843
+
844
+ - **Content-Type**: Not defined
845
+ - **Accept**: application/json
846
+
847
+
848
+ ## get_sfvb_whoami
849
+
850
+ > <SfvbWhoamiResponse> get_sfvb_whoami
851
+
852
+ Who this token is
853
+
854
+ Returns the merchant, user, granted scopes and reachable storefronts for the calling token. Declared for any scope so an application can always discover which account it is connected to.
855
+
856
+
857
+ ### Examples
858
+
859
+
860
+ (No example for this operation).
861
+
862
+
863
+ #### Using the get_sfvb_whoami_with_http_info variant
864
+
865
+ This returns an Array which contains the response data, status code and headers.
866
+
867
+ > <Array(<SfvbWhoamiResponse>, Integer, Hash)> get_sfvb_whoami_with_http_info
868
+
869
+ ```ruby
870
+ begin
871
+ # Who this token is
872
+ data, status_code, headers = api_instance.get_sfvb_whoami_with_http_info
873
+ p status_code # => 2xx
874
+ p headers # => { ... }
875
+ p data # => <SfvbWhoamiResponse>
876
+ rescue UltracartClient::ApiError => e
877
+ puts "Error when calling SfvbApi->get_sfvb_whoami_with_http_info: #{e}"
878
+ end
879
+ ```
880
+
881
+ ### Parameters
882
+
883
+ This endpoint does not need any parameter.
884
+
885
+ ### Return type
886
+
887
+ [**SfvbWhoamiResponse**](SfvbWhoamiResponse.md)
888
+
889
+ ### Authorization
890
+
891
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
892
+
893
+ ### HTTP request headers
894
+
895
+ - **Content-Type**: Not defined
896
+ - **Accept**: application/json
897
+
898
+
899
+ ## install_sfvb_library_entry
900
+
901
+ > <SfvbLibraryEntry> install_sfvb_library_entry(storefront_oid, library_oid)
902
+
903
+ Install a library entry into a storefront
904
+
905
+ Copies the fragment's referenced assets into the storefront file system and returns the CJSON with its paths resolved, ready to place. This writes, which is why it is a POST rather than the GET the internal admin endpoint uses. It also requires sfvb_publish, because the assets land in the shared storefront file system, which is served to shoppers regardless of which theme is active, so no amount of working inside a duplicate theme isolates them.
906
+
907
+
908
+ ### Examples
909
+
910
+
911
+ (No example for this operation).
912
+
913
+
914
+ #### Using the install_sfvb_library_entry_with_http_info variant
915
+
916
+ This returns an Array which contains the response data, status code and headers.
917
+
918
+ > <Array(<SfvbLibraryEntry>, Integer, Hash)> install_sfvb_library_entry_with_http_info(storefront_oid, library_oid)
919
+
920
+ ```ruby
921
+ begin
922
+ # Install a library entry into a storefront
923
+ data, status_code, headers = api_instance.install_sfvb_library_entry_with_http_info(storefront_oid, library_oid)
924
+ p status_code # => 2xx
925
+ p headers # => { ... }
926
+ p data # => <SfvbLibraryEntry>
927
+ rescue UltracartClient::ApiError => e
928
+ puts "Error when calling SfvbApi->install_sfvb_library_entry_with_http_info: #{e}"
929
+ end
930
+ ```
931
+
932
+ ### Parameters
933
+
934
+ | Name | Type | Description | Notes |
935
+ | ---- | ---- | ----------- | ----- |
936
+ | **storefront_oid** | **Integer** | | |
937
+ | **library_oid** | **Integer** | | |
938
+
939
+ ### Return type
940
+
941
+ [**SfvbLibraryEntry**](SfvbLibraryEntry.md)
942
+
943
+ ### Authorization
944
+
945
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
946
+
947
+ ### HTTP request headers
948
+
949
+ - **Content-Type**: Not defined
950
+ - **Accept**: application/json
951
+
952
+
953
+ ## list_sfvb_container_versions
954
+
955
+ > <SfvbContainerVersionsResponse> list_sfvb_container_versions(storefront_oid, opts)
956
+
957
+ Version history for a container stored outside the file system
958
+
959
+
960
+ ### Examples
961
+
962
+
963
+ (No example for this operation).
964
+
965
+
966
+ #### Using the list_sfvb_container_versions_with_http_info variant
967
+
968
+ This returns an Array which contains the response data, status code and headers.
969
+
970
+ > <Array(<SfvbContainerVersionsResponse>, Integer, Hash)> list_sfvb_container_versions_with_http_info(storefront_oid, opts)
971
+
972
+ ```ruby
973
+ begin
974
+ # Version history for a container stored outside the file system
975
+ data, status_code, headers = api_instance.list_sfvb_container_versions_with_http_info(storefront_oid, opts)
976
+ p status_code # => 2xx
977
+ p headers # => { ... }
978
+ p data # => <SfvbContainerVersionsResponse>
979
+ rescue UltracartClient::ApiError => e
980
+ puts "Error when calling SfvbApi->list_sfvb_container_versions_with_http_info: #{e}"
981
+ end
982
+ ```
983
+
984
+ ### Parameters
985
+
986
+ | Name | Type | Description | Notes |
987
+ | ---- | ---- | ----------- | ----- |
988
+ | **storefront_oid** | **Integer** | | |
989
+ | **owner_type** | **String** | | [optional] |
990
+ | **owner_object_id** | **String** | | [optional] |
991
+ | **container_name** | **String** | | [optional] |
992
+
993
+ ### Return type
994
+
995
+ [**SfvbContainerVersionsResponse**](SfvbContainerVersionsResponse.md)
996
+
997
+ ### Authorization
998
+
999
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1000
+
1001
+ ### HTTP request headers
1002
+
1003
+ - **Content-Type**: Not defined
1004
+ - **Accept**: application/json
1005
+
1006
+
1007
+ ## list_sfvb_elements
1008
+
1009
+ > <SfvbElementsResponse> list_sfvb_elements
1010
+
1011
+ List every SFVB element type
1012
+
1013
+ The authoritative vocabulary, taken from the same lookup the compiler uses. A type absent from this list compiles to a literal placeholder line in the page rather than failing, which is why validation treats an unknown type as an error.
1014
+
1015
+
1016
+ ### Examples
1017
+
1018
+
1019
+ (No example for this operation).
1020
+
1021
+
1022
+ #### Using the list_sfvb_elements_with_http_info variant
1023
+
1024
+ This returns an Array which contains the response data, status code and headers.
1025
+
1026
+ > <Array(<SfvbElementsResponse>, Integer, Hash)> list_sfvb_elements_with_http_info
1027
+
1028
+ ```ruby
1029
+ begin
1030
+ # List every SFVB element type
1031
+ data, status_code, headers = api_instance.list_sfvb_elements_with_http_info
1032
+ p status_code # => 2xx
1033
+ p headers # => { ... }
1034
+ p data # => <SfvbElementsResponse>
1035
+ rescue UltracartClient::ApiError => e
1036
+ puts "Error when calling SfvbApi->list_sfvb_elements_with_http_info: #{e}"
1037
+ end
1038
+ ```
1039
+
1040
+ ### Parameters
1041
+
1042
+ This endpoint does not need any parameter.
1043
+
1044
+ ### Return type
1045
+
1046
+ [**SfvbElementsResponse**](SfvbElementsResponse.md)
1047
+
1048
+ ### Authorization
1049
+
1050
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1051
+
1052
+ ### HTTP request headers
1053
+
1054
+ - **Content-Type**: Not defined
1055
+ - **Accept**: application/json
1056
+
1057
+
1058
+ ## list_sfvb_file_versions
1059
+
1060
+ > <SfvbFileVersionsResponse> list_sfvb_file_versions(storefront_oid, opts)
1061
+
1062
+ Version history for a storefront file
1063
+
1064
+ Version history is the undo for anything in the storefront file system, which is what makes an agent's writes recoverable.
1065
+
1066
+
1067
+ ### Examples
1068
+
1069
+
1070
+ (No example for this operation).
1071
+
1072
+
1073
+ #### Using the list_sfvb_file_versions_with_http_info variant
1074
+
1075
+ This returns an Array which contains the response data, status code and headers.
1076
+
1077
+ > <Array(<SfvbFileVersionsResponse>, Integer, Hash)> list_sfvb_file_versions_with_http_info(storefront_oid, opts)
1078
+
1079
+ ```ruby
1080
+ begin
1081
+ # Version history for a storefront file
1082
+ data, status_code, headers = api_instance.list_sfvb_file_versions_with_http_info(storefront_oid, opts)
1083
+ p status_code # => 2xx
1084
+ p headers # => { ... }
1085
+ p data # => <SfvbFileVersionsResponse>
1086
+ rescue UltracartClient::ApiError => e
1087
+ puts "Error when calling SfvbApi->list_sfvb_file_versions_with_http_info: #{e}"
1088
+ end
1089
+ ```
1090
+
1091
+ ### Parameters
1092
+
1093
+ | Name | Type | Description | Notes |
1094
+ | ---- | ---- | ----------- | ----- |
1095
+ | **storefront_oid** | **Integer** | | |
1096
+ | **path** | **String** | | [optional] |
1097
+
1098
+ ### Return type
1099
+
1100
+ [**SfvbFileVersionsResponse**](SfvbFileVersionsResponse.md)
1101
+
1102
+ ### Authorization
1103
+
1104
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1105
+
1106
+ ### HTTP request headers
1107
+
1108
+ - **Content-Type**: Not defined
1109
+ - **Accept**: application/json
1110
+
1111
+
1112
+ ## list_sfvb_files
1113
+
1114
+ > <SfvbFilesResponse> list_sfvb_files(storefront_oid, opts)
1115
+
1116
+ List a storefront directory
1117
+
1118
+ Directories first, then files, each sorted by name. Address by path or by directory oid; supplying theme_oid also retries a path that does not resolve at the storefront root relative to that theme, so /theme/css/ works without knowing the theme's directory name. Each file carries its content hash, so a listing is enough to start an If-Match write without a separate read.
1119
+
1120
+
1121
+ ### Examples
1122
+
1123
+
1124
+ (No example for this operation).
1125
+
1126
+
1127
+ #### Using the list_sfvb_files_with_http_info variant
1128
+
1129
+ This returns an Array which contains the response data, status code and headers.
1130
+
1131
+ > <Array(<SfvbFilesResponse>, Integer, Hash)> list_sfvb_files_with_http_info(storefront_oid, opts)
1132
+
1133
+ ```ruby
1134
+ begin
1135
+ # List a storefront directory
1136
+ data, status_code, headers = api_instance.list_sfvb_files_with_http_info(storefront_oid, opts)
1137
+ p status_code # => 2xx
1138
+ p headers # => { ... }
1139
+ p data # => <SfvbFilesResponse>
1140
+ rescue UltracartClient::ApiError => e
1141
+ puts "Error when calling SfvbApi->list_sfvb_files_with_http_info: #{e}"
1142
+ end
1143
+ ```
1144
+
1145
+ ### Parameters
1146
+
1147
+ | Name | Type | Description | Notes |
1148
+ | ---- | ---- | ----------- | ----- |
1149
+ | **storefront_oid** | **Integer** | | |
1150
+ | **path** | **String** | | [optional] |
1151
+ | **storefront_fs_directory_oid** | **Integer** | | [optional] |
1152
+ | **theme_oid** | **Integer** | | [optional] |
1153
+ | **max_entries** | **Integer** | | [optional] |
1154
+
1155
+ ### Return type
1156
+
1157
+ [**SfvbFilesResponse**](SfvbFilesResponse.md)
1158
+
1159
+ ### Authorization
1160
+
1161
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1162
+
1163
+ ### HTTP request headers
1164
+
1165
+ - **Content-Type**: Not defined
1166
+ - **Accept**: application/json
1167
+
1168
+
1169
+ ## list_sfvb_storefronts
1170
+
1171
+ > <SfvbStorefrontsResponse> list_sfvb_storefronts
1172
+
1173
+ List storefronts
1174
+
1175
+
1176
+ ### Examples
1177
+
1178
+
1179
+ (No example for this operation).
1180
+
1181
+
1182
+ #### Using the list_sfvb_storefronts_with_http_info variant
1183
+
1184
+ This returns an Array which contains the response data, status code and headers.
1185
+
1186
+ > <Array(<SfvbStorefrontsResponse>, Integer, Hash)> list_sfvb_storefronts_with_http_info
1187
+
1188
+ ```ruby
1189
+ begin
1190
+ # List storefronts
1191
+ data, status_code, headers = api_instance.list_sfvb_storefronts_with_http_info
1192
+ p status_code # => 2xx
1193
+ p headers # => { ... }
1194
+ p data # => <SfvbStorefrontsResponse>
1195
+ rescue UltracartClient::ApiError => e
1196
+ puts "Error when calling SfvbApi->list_sfvb_storefronts_with_http_info: #{e}"
1197
+ end
1198
+ ```
1199
+
1200
+ ### Parameters
1201
+
1202
+ This endpoint does not need any parameter.
1203
+
1204
+ ### Return type
1205
+
1206
+ [**SfvbStorefrontsResponse**](SfvbStorefrontsResponse.md)
1207
+
1208
+ ### Authorization
1209
+
1210
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1211
+
1212
+ ### HTTP request headers
1213
+
1214
+ - **Content-Type**: Not defined
1215
+ - **Accept**: application/json
1216
+
1217
+
1218
+ ## list_sfvb_themes
1219
+
1220
+ > <SfvbThemesResponse> list_sfvb_themes(storefront_oid)
1221
+
1222
+ List themes for a storefront
1223
+
1224
+ Exactly one theme is flagged active. Writing to the active theme is writing live and requires the sfvb_publish scope.
1225
+
1226
+
1227
+ ### Examples
1228
+
1229
+
1230
+ (No example for this operation).
1231
+
1232
+
1233
+ #### Using the list_sfvb_themes_with_http_info variant
1234
+
1235
+ This returns an Array which contains the response data, status code and headers.
1236
+
1237
+ > <Array(<SfvbThemesResponse>, Integer, Hash)> list_sfvb_themes_with_http_info(storefront_oid)
1238
+
1239
+ ```ruby
1240
+ begin
1241
+ # List themes for a storefront
1242
+ data, status_code, headers = api_instance.list_sfvb_themes_with_http_info(storefront_oid)
1243
+ p status_code # => 2xx
1244
+ p headers # => { ... }
1245
+ p data # => <SfvbThemesResponse>
1246
+ rescue UltracartClient::ApiError => e
1247
+ puts "Error when calling SfvbApi->list_sfvb_themes_with_http_info: #{e}"
1248
+ end
1249
+ ```
1250
+
1251
+ ### Parameters
1252
+
1253
+ | Name | Type | Description | Notes |
1254
+ | ---- | ---- | ----------- | ----- |
1255
+ | **storefront_oid** | **Integer** | | |
1256
+
1257
+ ### Return type
1258
+
1259
+ [**SfvbThemesResponse**](SfvbThemesResponse.md)
1260
+
1261
+ ### Authorization
1262
+
1263
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1264
+
1265
+ ### HTTP request headers
1266
+
1267
+ - **Content-Type**: Not defined
1268
+ - **Accept**: application/json
1269
+
1270
+
1271
+ ## list_sfvb_upsell_offers
1272
+
1273
+ > <SfvbUpsellOffersResponse> list_sfvb_upsell_offers(storefront_oid)
1274
+
1275
+ List upsell offers
1276
+
1277
+ Without container JSON, so the funnel can be surveyed cheaply. A large container size alongside a small element count is the signature of markup pasted into a single html element.
1278
+
1279
+
1280
+ ### Examples
1281
+
1282
+
1283
+ (No example for this operation).
1284
+
1285
+
1286
+ #### Using the list_sfvb_upsell_offers_with_http_info variant
1287
+
1288
+ This returns an Array which contains the response data, status code and headers.
1289
+
1290
+ > <Array(<SfvbUpsellOffersResponse>, Integer, Hash)> list_sfvb_upsell_offers_with_http_info(storefront_oid)
1291
+
1292
+ ```ruby
1293
+ begin
1294
+ # List upsell offers
1295
+ data, status_code, headers = api_instance.list_sfvb_upsell_offers_with_http_info(storefront_oid)
1296
+ p status_code # => 2xx
1297
+ p headers # => { ... }
1298
+ p data # => <SfvbUpsellOffersResponse>
1299
+ rescue UltracartClient::ApiError => e
1300
+ puts "Error when calling SfvbApi->list_sfvb_upsell_offers_with_http_info: #{e}"
1301
+ end
1302
+ ```
1303
+
1304
+ ### Parameters
1305
+
1306
+ | Name | Type | Description | Notes |
1307
+ | ---- | ---- | ----------- | ----- |
1308
+ | **storefront_oid** | **Integer** | | |
1309
+
1310
+ ### Return type
1311
+
1312
+ [**SfvbUpsellOffersResponse**](SfvbUpsellOffersResponse.md)
1313
+
1314
+ ### Authorization
1315
+
1316
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1317
+
1318
+ ### HTTP request headers
1319
+
1320
+ - **Content-Type**: Not defined
1321
+ - **Accept**: application/json
1322
+
1323
+
1324
+ ## put_sfvb_container
1325
+
1326
+ > <SfvbContainerResponse> put_sfvb_container(storefront_oid, owner_type, owner_object_id, if_match, container_write_request, opts)
1327
+
1328
+ Write a container stored outside the file system
1329
+
1330
+ Validation is mandatory and runs here regardless of whether the caller validated first. The previous value is snapshotted before the write, so the change can be reverted. Side effects the visual builder performs on save, such as upsell screenshot regeneration and email content review flagging, are applied too.
1331
+
1332
+
1333
+ ### Examples
1334
+
1335
+
1336
+ (No example for this operation).
1337
+
1338
+
1339
+ #### Using the put_sfvb_container_with_http_info variant
1340
+
1341
+ This returns an Array which contains the response data, status code and headers.
1342
+
1343
+ > <Array(<SfvbContainerResponse>, Integer, Hash)> put_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, if_match, container_write_request, opts)
1344
+
1345
+ ```ruby
1346
+ begin
1347
+ # Write a container stored outside the file system
1348
+ data, status_code, headers = api_instance.put_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, if_match, container_write_request, opts)
1349
+ p status_code # => 2xx
1350
+ p headers # => { ... }
1351
+ p data # => <SfvbContainerResponse>
1352
+ rescue UltracartClient::ApiError => e
1353
+ puts "Error when calling SfvbApi->put_sfvb_container_with_http_info: #{e}"
1354
+ end
1355
+ ```
1356
+
1357
+ ### Parameters
1358
+
1359
+ | Name | Type | Description | Notes |
1360
+ | ---- | ---- | ----------- | ----- |
1361
+ | **storefront_oid** | **Integer** | | |
1362
+ | **owner_type** | **String** | | |
1363
+ | **owner_object_id** | **String** | | |
1364
+ | **if_match** | **String** | CJSON hash from the last read. Required; 428 when absent, 412 when stale. | |
1365
+ | **container_write_request** | [**SfvbContainerWriteRequest**](SfvbContainerWriteRequest.md) | Container CJSON to write | |
1366
+ | **container_name** | **String** | | [optional] |
1367
+
1368
+ ### Return type
1369
+
1370
+ [**SfvbContainerResponse**](SfvbContainerResponse.md)
1371
+
1372
+ ### Authorization
1373
+
1374
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1375
+
1376
+ ### HTTP request headers
1377
+
1378
+ - **Content-Type**: application/json
1379
+ - **Accept**: application/json
1380
+
1381
+
1382
+ ## put_sfvb_file_content
1383
+
1384
+ > <SfvbFileWriteResponse> put_sfvb_file_content(storefront_oid, if_match, file_write_request, opts)
1385
+
1386
+ Write a storefront file
1387
+
1388
+ Runs the template sandbox, Velocity validation and the internationalization check, records a version, and compiles the sibling .vm when the file is a .cjson under a theme. Send If-Match with the hash from the last read to avoid clobbering a concurrent change. Writing into the active theme requires sfvb_publish.
1389
+
1390
+
1391
+ ### Examples
1392
+
1393
+
1394
+ (No example for this operation).
1395
+
1396
+
1397
+ #### Using the put_sfvb_file_content_with_http_info variant
1398
+
1399
+ This returns an Array which contains the response data, status code and headers.
1400
+
1401
+ > <Array(<SfvbFileWriteResponse>, Integer, Hash)> put_sfvb_file_content_with_http_info(storefront_oid, if_match, file_write_request, opts)
1402
+
1403
+ ```ruby
1404
+ begin
1405
+ # Write a storefront file
1406
+ data, status_code, headers = api_instance.put_sfvb_file_content_with_http_info(storefront_oid, if_match, file_write_request, opts)
1407
+ p status_code # => 2xx
1408
+ p headers # => { ... }
1409
+ p data # => <SfvbFileWriteResponse>
1410
+ rescue UltracartClient::ApiError => e
1411
+ puts "Error when calling SfvbApi->put_sfvb_file_content_with_http_info: #{e}"
1412
+ end
1413
+ ```
1414
+
1415
+ ### Parameters
1416
+
1417
+ | Name | Type | Description | Notes |
1418
+ | ---- | ---- | ----------- | ----- |
1419
+ | **storefront_oid** | **Integer** | | |
1420
+ | **if_match** | **String** | Content hash from the last read. Required; 428 when absent, 412 when stale. | |
1421
+ | **file_write_request** | [**SfvbFileWriteRequest**](SfvbFileWriteRequest.md) | File content to write | |
1422
+ | **path** | **String** | | [optional] |
1423
+
1424
+ ### Return type
1425
+
1426
+ [**SfvbFileWriteResponse**](SfvbFileWriteResponse.md)
1427
+
1428
+ ### Authorization
1429
+
1430
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1431
+
1432
+ ### HTTP request headers
1433
+
1434
+ - **Content-Type**: application/json
1435
+ - **Accept**: application/json
1436
+
1437
+
1438
+ ## put_sfvb_preview_session
1439
+
1440
+ > <SfvbPreviewSessionResponse> put_sfvb_preview_session(storefront_oid, preview_session_id, preview_session, opts)
1441
+
1442
+ Push containers into a preview session
1443
+
1444
+ Stores compiled containers against a session created by createSfvbPreviewSession. Replaces whatever the session held. Nothing durable is written. Requires a token that resolves to a user, so use the device authorization flow.
1445
+
1446
+
1447
+ ### Examples
1448
+
1449
+
1450
+ (No example for this operation).
1451
+
1452
+
1453
+ #### Using the put_sfvb_preview_session_with_http_info variant
1454
+
1455
+ This returns an Array which contains the response data, status code and headers.
1456
+
1457
+ > <Array(<SfvbPreviewSessionResponse>, Integer, Hash)> put_sfvb_preview_session_with_http_info(storefront_oid, preview_session_id, preview_session, opts)
1458
+
1459
+ ```ruby
1460
+ begin
1461
+ # Push containers into a preview session
1462
+ data, status_code, headers = api_instance.put_sfvb_preview_session_with_http_info(storefront_oid, preview_session_id, preview_session, opts)
1463
+ p status_code # => 2xx
1464
+ p headers # => { ... }
1465
+ p data # => <SfvbPreviewSessionResponse>
1466
+ rescue UltracartClient::ApiError => e
1467
+ puts "Error when calling SfvbApi->put_sfvb_preview_session_with_http_info: #{e}"
1468
+ end
1469
+ ```
1470
+
1471
+ ### Parameters
1472
+
1473
+ | Name | Type | Description | Notes |
1474
+ | ---- | ---- | ----------- | ----- |
1475
+ | **storefront_oid** | **Integer** | | |
1476
+ | **preview_session_id** | **String** | | |
1477
+ | **preview_session** | [**SfvbPreviewSessionRequest**](SfvbPreviewSessionRequest.md) | Containers to stage in the preview session | |
1478
+ | **theme_oid** | **Integer** | | [optional] |
1479
+
1480
+ ### Return type
1481
+
1482
+ [**SfvbPreviewSessionResponse**](SfvbPreviewSessionResponse.md)
1483
+
1484
+ ### Authorization
1485
+
1486
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1487
+
1488
+ ### HTTP request headers
1489
+
1490
+ - **Content-Type**: application/json
1491
+ - **Accept**: application/json
1492
+
1493
+
1494
+ ## render_sfvb_widgets
1495
+
1496
+ > <SfvbRenderResponse> render_sfvb_widgets(storefront_oid, theme_oid, render_request)
1497
+
1498
+ Render a CJSON node to HTML
1499
+
1500
+ Renders one node in the context of a theme and a page. Unlike compile this is stateful. Rendering resolves merchant data, so an element bound to an item renders wrongly, and silently, without a context item id. One node per call, so a node that fails to render fails on its own rather than taking a batch with it, and a failure says why.
1501
+
1502
+
1503
+ ### Examples
1504
+
1505
+
1506
+ (No example for this operation).
1507
+
1508
+
1509
+ #### Using the render_sfvb_widgets_with_http_info variant
1510
+
1511
+ This returns an Array which contains the response data, status code and headers.
1512
+
1513
+ > <Array(<SfvbRenderResponse>, Integer, Hash)> render_sfvb_widgets_with_http_info(storefront_oid, theme_oid, render_request)
1514
+
1515
+ ```ruby
1516
+ begin
1517
+ # Render a CJSON node to HTML
1518
+ data, status_code, headers = api_instance.render_sfvb_widgets_with_http_info(storefront_oid, theme_oid, render_request)
1519
+ p status_code # => 2xx
1520
+ p headers # => { ... }
1521
+ p data # => <SfvbRenderResponse>
1522
+ rescue UltracartClient::ApiError => e
1523
+ puts "Error when calling SfvbApi->render_sfvb_widgets_with_http_info: #{e}"
1524
+ end
1525
+ ```
1526
+
1527
+ ### Parameters
1528
+
1529
+ | Name | Type | Description | Notes |
1530
+ | ---- | ---- | ----------- | ----- |
1531
+ | **storefront_oid** | **Integer** | | |
1532
+ | **theme_oid** | **Integer** | | |
1533
+ | **render_request** | [**SfvbRenderRequest**](SfvbRenderRequest.md) | Widgets to render | |
1534
+
1535
+ ### Return type
1536
+
1537
+ [**SfvbRenderResponse**](SfvbRenderResponse.md)
1538
+
1539
+ ### Authorization
1540
+
1541
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1542
+
1543
+ ### HTTP request headers
1544
+
1545
+ - **Content-Type**: application/json
1546
+ - **Accept**: application/json
1547
+
1548
+
1549
+ ## reserve_sfvb_widget_ids
1550
+
1551
+ > <SfvbWidgetIdsResponse> reserve_sfvb_widget_ids(storefront_oid, opts)
1552
+
1553
+ Reserve a block of widget ids
1554
+
1555
+ Widget ids are allocated by the server, not invented by the caller. Reserve a block, then form ids as elementType-number. This is the single most likely thing to get wrong on a first write. A POST rather than a GET because it consumes a sequence. A GET that mutates will eventually be prefetched, retried or cached by something that assumed it was safe.
1556
+
1557
+
1558
+ ### Examples
1559
+
1560
+
1561
+ (No example for this operation).
1562
+
1563
+
1564
+ #### Using the reserve_sfvb_widget_ids_with_http_info variant
1565
+
1566
+ This returns an Array which contains the response data, status code and headers.
1567
+
1568
+ > <Array(<SfvbWidgetIdsResponse>, Integer, Hash)> reserve_sfvb_widget_ids_with_http_info(storefront_oid, opts)
1569
+
1570
+ ```ruby
1571
+ begin
1572
+ # Reserve a block of widget ids
1573
+ data, status_code, headers = api_instance.reserve_sfvb_widget_ids_with_http_info(storefront_oid, opts)
1574
+ p status_code # => 2xx
1575
+ p headers # => { ... }
1576
+ p data # => <SfvbWidgetIdsResponse>
1577
+ rescue UltracartClient::ApiError => e
1578
+ puts "Error when calling SfvbApi->reserve_sfvb_widget_ids_with_http_info: #{e}"
1579
+ end
1580
+ ```
1581
+
1582
+ ### Parameters
1583
+
1584
+ | Name | Type | Description | Notes |
1585
+ | ---- | ---- | ----------- | ----- |
1586
+ | **storefront_oid** | **Integer** | | |
1587
+ | **count** | **Integer** | | [optional] |
1588
+
1589
+ ### Return type
1590
+
1591
+ [**SfvbWidgetIdsResponse**](SfvbWidgetIdsResponse.md)
1592
+
1593
+ ### Authorization
1594
+
1595
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1596
+
1597
+ ### HTTP request headers
1598
+
1599
+ - **Content-Type**: Not defined
1600
+ - **Accept**: application/json
1601
+
1602
+
1603
+ ## revert_sfvb_container
1604
+
1605
+ > <SfvbContainerResponse> revert_sfvb_container(storefront_oid, owner_type, owner_object_id, if_match, container_revert_request, opts)
1606
+
1607
+ Revert a container stored outside the file system
1608
+
1609
+ The restore is itself snapshotted, so a revert can be undone in turn. Reverting to an entry recorded before the container existed removes it again. Addressed through the owning container and guarded by If-Match, because a revert overwrites live content just as much as an ordinary write does.
1610
+
1611
+
1612
+ ### Examples
1613
+
1614
+
1615
+ (No example for this operation).
1616
+
1617
+
1618
+ #### Using the revert_sfvb_container_with_http_info variant
1619
+
1620
+ This returns an Array which contains the response data, status code and headers.
1621
+
1622
+ > <Array(<SfvbContainerResponse>, Integer, Hash)> revert_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, if_match, container_revert_request, opts)
1623
+
1624
+ ```ruby
1625
+ begin
1626
+ # Revert a container stored outside the file system
1627
+ data, status_code, headers = api_instance.revert_sfvb_container_with_http_info(storefront_oid, owner_type, owner_object_id, if_match, container_revert_request, opts)
1628
+ p status_code # => 2xx
1629
+ p headers # => { ... }
1630
+ p data # => <SfvbContainerResponse>
1631
+ rescue UltracartClient::ApiError => e
1632
+ puts "Error when calling SfvbApi->revert_sfvb_container_with_http_info: #{e}"
1633
+ end
1634
+ ```
1635
+
1636
+ ### Parameters
1637
+
1638
+ | Name | Type | Description | Notes |
1639
+ | ---- | ---- | ----------- | ----- |
1640
+ | **storefront_oid** | **Integer** | | |
1641
+ | **owner_type** | **String** | | |
1642
+ | **owner_object_id** | **String** | | |
1643
+ | **if_match** | **String** | CJSON hash of the container being reverted. Required; 428 when absent, 412 when stale. | |
1644
+ | **container_revert_request** | [**SfvbContainerRevertRequest**](SfvbContainerRevertRequest.md) | Version to revert the container to | |
1645
+ | **container_name** | **String** | | [optional] |
1646
+
1647
+ ### Return type
1648
+
1649
+ [**SfvbContainerResponse**](SfvbContainerResponse.md)
1650
+
1651
+ ### Authorization
1652
+
1653
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1654
+
1655
+ ### HTTP request headers
1656
+
1657
+ - **Content-Type**: application/json
1658
+ - **Accept**: application/json
1659
+
1660
+
1661
+ ## revert_sfvb_file
1662
+
1663
+ > <SfvbFileWriteResponse> revert_sfvb_file(storefront_oid, if_match, file_revert_request)
1664
+
1665
+ Revert a storefront file to an earlier version
1666
+
1667
+ The revert lands as a new version, so it is itself undoable.
1668
+
1669
+
1670
+ ### Examples
1671
+
1672
+
1673
+ (No example for this operation).
1674
+
1675
+
1676
+ #### Using the revert_sfvb_file_with_http_info variant
1677
+
1678
+ This returns an Array which contains the response data, status code and headers.
1679
+
1680
+ > <Array(<SfvbFileWriteResponse>, Integer, Hash)> revert_sfvb_file_with_http_info(storefront_oid, if_match, file_revert_request)
1681
+
1682
+ ```ruby
1683
+ begin
1684
+ # Revert a storefront file to an earlier version
1685
+ data, status_code, headers = api_instance.revert_sfvb_file_with_http_info(storefront_oid, if_match, file_revert_request)
1686
+ p status_code # => 2xx
1687
+ p headers # => { ... }
1688
+ p data # => <SfvbFileWriteResponse>
1689
+ rescue UltracartClient::ApiError => e
1690
+ puts "Error when calling SfvbApi->revert_sfvb_file_with_http_info: #{e}"
1691
+ end
1692
+ ```
1693
+
1694
+ ### Parameters
1695
+
1696
+ | Name | Type | Description | Notes |
1697
+ | ---- | ---- | ----------- | ----- |
1698
+ | **storefront_oid** | **Integer** | | |
1699
+ | **if_match** | **String** | Content hash of the file being reverted. Required; 428 when absent, 412 when stale. | |
1700
+ | **file_revert_request** | [**SfvbFileRevertRequest**](SfvbFileRevertRequest.md) | Version to revert the file to | |
1701
+
1702
+ ### Return type
1703
+
1704
+ [**SfvbFileWriteResponse**](SfvbFileWriteResponse.md)
1705
+
1706
+ ### Authorization
1707
+
1708
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1709
+
1710
+ ### HTTP request headers
1711
+
1712
+ - **Content-Type**: application/json
1713
+ - **Accept**: application/json
1714
+
1715
+
1716
+ ## search_sfvb_files
1717
+
1718
+ > <SfvbFileSearchResponse> search_sfvb_files(storefront_oid, search_request)
1719
+
1720
+ Search storefront files
1721
+
1722
+ Searches names and, when text is supplied, file contents. For a CLI with no local copy this is the only way to answer where something is defined without walking the whole tree. Results are capped and truncation is always reported.
1723
+
1724
+
1725
+ ### Examples
1726
+
1727
+
1728
+ (No example for this operation).
1729
+
1730
+
1731
+ #### Using the search_sfvb_files_with_http_info variant
1732
+
1733
+ This returns an Array which contains the response data, status code and headers.
1734
+
1735
+ > <Array(<SfvbFileSearchResponse>, Integer, Hash)> search_sfvb_files_with_http_info(storefront_oid, search_request)
1736
+
1737
+ ```ruby
1738
+ begin
1739
+ # Search storefront files
1740
+ data, status_code, headers = api_instance.search_sfvb_files_with_http_info(storefront_oid, search_request)
1741
+ p status_code # => 2xx
1742
+ p headers # => { ... }
1743
+ p data # => <SfvbFileSearchResponse>
1744
+ rescue UltracartClient::ApiError => e
1745
+ puts "Error when calling SfvbApi->search_sfvb_files_with_http_info: #{e}"
1746
+ end
1747
+ ```
1748
+
1749
+ ### Parameters
1750
+
1751
+ | Name | Type | Description | Notes |
1752
+ | ---- | ---- | ----------- | ----- |
1753
+ | **storefront_oid** | **Integer** | | |
1754
+ | **search_request** | [**SfvbFileSearchRequest**](SfvbFileSearchRequest.md) | File search | |
1755
+
1756
+ ### Return type
1757
+
1758
+ [**SfvbFileSearchResponse**](SfvbFileSearchResponse.md)
1759
+
1760
+ ### Authorization
1761
+
1762
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1763
+
1764
+ ### HTTP request headers
1765
+
1766
+ - **Content-Type**: application/json
1767
+ - **Accept**: application/json
1768
+
1769
+
1770
+ ## search_sfvb_library
1771
+
1772
+ > <SfvbLibraryResponse> search_sfvb_library(storefront_oid, opts)
1773
+
1774
+ Search the element library
1775
+
1776
+ Known-good CJSON fragments a human already built out of real elements. This is what a lint warning about a monolithic html element should point at - a warning that names a fragment solving the same problem is an instruction, where a warning on its own is only criticism. Results are terse; fetch a single entry for its CJSON. Narrow with facet_{name}={option} query parameters.
1777
+
1778
+
1779
+ ### Examples
1780
+
1781
+
1782
+ (No example for this operation).
1783
+
1784
+
1785
+ #### Using the search_sfvb_library_with_http_info variant
1786
+
1787
+ This returns an Array which contains the response data, status code and headers.
1788
+
1789
+ > <Array(<SfvbLibraryResponse>, Integer, Hash)> search_sfvb_library_with_http_info(storefront_oid, opts)
1790
+
1791
+ ```ruby
1792
+ begin
1793
+ # Search the element library
1794
+ data, status_code, headers = api_instance.search_sfvb_library_with_http_info(storefront_oid, opts)
1795
+ p status_code # => 2xx
1796
+ p headers # => { ... }
1797
+ p data # => <SfvbLibraryResponse>
1798
+ rescue UltracartClient::ApiError => e
1799
+ puts "Error when calling SfvbApi->search_sfvb_library_with_http_info: #{e}"
1800
+ end
1801
+ ```
1802
+
1803
+ ### Parameters
1804
+
1805
+ | Name | Type | Description | Notes |
1806
+ | ---- | ---- | ----------- | ----- |
1807
+ | **storefront_oid** | **Integer** | | |
1808
+ | **segment** | **String** | | [optional] |
1809
+ | **search** | **String** | | [optional] |
1810
+ | **page_number** | **Integer** | | [optional] |
1811
+ | **results_per_page** | **Integer** | | [optional] |
1812
+
1813
+ ### Return type
1814
+
1815
+ [**SfvbLibraryResponse**](SfvbLibraryResponse.md)
1816
+
1817
+ ### Authorization
1818
+
1819
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1820
+
1821
+ ### HTTP request headers
1822
+
1823
+ - **Content-Type**: Not defined
1824
+ - **Accept**: application/json
1825
+
1826
+
1827
+ ## validate_sfvb_cjson
1828
+
1829
+ > <SfvbValidationResponse> validate_sfvb_cjson(validate_request)
1830
+
1831
+ Validate CJSON
1832
+
1833
+ Runs the structural schema, the contextual business rules for the destination owner type, and the quality lint. A document that fails returns HTTP 200 with valid false rather than a transport error - the request was well formed, the document was not.
1834
+
1835
+
1836
+ ### Examples
1837
+
1838
+
1839
+ (No example for this operation).
1840
+
1841
+
1842
+ #### Using the validate_sfvb_cjson_with_http_info variant
1843
+
1844
+ This returns an Array which contains the response data, status code and headers.
1845
+
1846
+ > <Array(<SfvbValidationResponse>, Integer, Hash)> validate_sfvb_cjson_with_http_info(validate_request)
1847
+
1848
+ ```ruby
1849
+ begin
1850
+ # Validate CJSON
1851
+ data, status_code, headers = api_instance.validate_sfvb_cjson_with_http_info(validate_request)
1852
+ p status_code # => 2xx
1853
+ p headers # => { ... }
1854
+ p data # => <SfvbValidationResponse>
1855
+ rescue UltracartClient::ApiError => e
1856
+ puts "Error when calling SfvbApi->validate_sfvb_cjson_with_http_info: #{e}"
1857
+ end
1858
+ ```
1859
+
1860
+ ### Parameters
1861
+
1862
+ | Name | Type | Description | Notes |
1863
+ | ---- | ---- | ----------- | ----- |
1864
+ | **validate_request** | [**SfvbValidateRequest**](SfvbValidateRequest.md) | CJSON to validate | |
1865
+
1866
+ ### Return type
1867
+
1868
+ [**SfvbValidationResponse**](SfvbValidationResponse.md)
1869
+
1870
+ ### Authorization
1871
+
1872
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1873
+
1874
+ ### HTTP request headers
1875
+
1876
+ - **Content-Type**: application/json
1877
+ - **Accept**: application/json
1878
+
1879
+
1880
+ ## validate_sfvb_velocity
1881
+
1882
+ > <SfvbValidationResponse> validate_sfvb_velocity(storefront_oid, theme_oid, velocity_validate_request)
1883
+
1884
+ Validate a Velocity template against a theme
1885
+
1886
+ Theme scoped rather than stateless. Validation builds a theme template context and evaluates against it. Also applies the template sandbox, so an agent learns the rule before a write fails.
1887
+
1888
+
1889
+ ### Examples
1890
+
1891
+
1892
+ (No example for this operation).
1893
+
1894
+
1895
+ #### Using the validate_sfvb_velocity_with_http_info variant
1896
+
1897
+ This returns an Array which contains the response data, status code and headers.
1898
+
1899
+ > <Array(<SfvbValidationResponse>, Integer, Hash)> validate_sfvb_velocity_with_http_info(storefront_oid, theme_oid, velocity_validate_request)
1900
+
1901
+ ```ruby
1902
+ begin
1903
+ # Validate a Velocity template against a theme
1904
+ data, status_code, headers = api_instance.validate_sfvb_velocity_with_http_info(storefront_oid, theme_oid, velocity_validate_request)
1905
+ p status_code # => 2xx
1906
+ p headers # => { ... }
1907
+ p data # => <SfvbValidationResponse>
1908
+ rescue UltracartClient::ApiError => e
1909
+ puts "Error when calling SfvbApi->validate_sfvb_velocity_with_http_info: #{e}"
1910
+ end
1911
+ ```
1912
+
1913
+ ### Parameters
1914
+
1915
+ | Name | Type | Description | Notes |
1916
+ | ---- | ---- | ----------- | ----- |
1917
+ | **storefront_oid** | **Integer** | | |
1918
+ | **theme_oid** | **Integer** | | |
1919
+ | **velocity_validate_request** | [**SfvbVelocityValidateRequest**](SfvbVelocityValidateRequest.md) | Velocity template to validate | |
1920
+
1921
+ ### Return type
1922
+
1923
+ [**SfvbValidationResponse**](SfvbValidationResponse.md)
1924
+
1925
+ ### Authorization
1926
+
1927
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1928
+
1929
+ ### HTTP request headers
1930
+
1931
+ - **Content-Type**: application/json
1932
+ - **Accept**: application/json
1933
+