ultracart_api 4.1.168 → 4.1.170
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 +22 -2
- data/docs/SfvbApi.md +401 -0
- data/docs/SfvbItemAttribute.md +34 -0
- data/docs/SfvbItemAttributeUpdate.md +22 -0
- data/docs/SfvbItemAttributeUpdateRequest.md +18 -0
- data/docs/SfvbItemContainer.md +32 -0
- data/docs/SfvbItemContainersResponse.md +32 -0
- data/docs/SfvbItemContentRequest.md +20 -0
- data/docs/SfvbItemMultimedia.md +34 -0
- data/docs/SfvbItemMultimediaRequest.md +24 -0
- data/docs/SfvbItemResponse.md +32 -0
- data/docs/SfvbItemSeo.md +34 -0
- data/docs/SfvbItemSeoRequest.md +22 -0
- data/lib/ultracart_api/api/sfvb_api.rb +549 -0
- data/lib/ultracart_api/models/sfvb_item_attribute.rb +336 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_update.rb +274 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_update_request.rb +222 -0
- data/lib/ultracart_api/models/sfvb_item_container.rb +326 -0
- data/lib/ultracart_api/models/sfvb_item_containers_response.rb +292 -0
- data/lib/ultracart_api/models/sfvb_item_content_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_item_multimedia.rb +334 -0
- data/lib/ultracart_api/models/sfvb_item_multimedia_request.rb +250 -0
- data/lib/ultracart_api/models/sfvb_item_response.rb +295 -0
- data/lib/ultracart_api/models/sfvb_item_seo.rb +358 -0
- data/lib/ultracart_api/models/sfvb_item_seo_request.rb +240 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +11 -0
- metadata +24 -2
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemContainersResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **item_containers** | [**Array<SfvbItemContainer>**](SfvbItemContainer.md) | The containers on this page, ordered by merchant item id then container name. | [optional] |
|
|
8
|
+
| **max_results** | **Integer** | The cap that was applied. | [optional] |
|
|
9
|
+
| **next_offset** | **Integer** | Offset to send for the next page. Zero when truncated is false. Never truncates without giving a way to continue. | [optional] |
|
|
10
|
+
| **offset** | **Integer** | Containers skipped to produce this page. | [optional] |
|
|
11
|
+
| **result_count** | **Integer** | Number of containers returned on this page. | [optional] |
|
|
12
|
+
| **total_count** | **Integer** | Total containers matching the filter. With container_name supplied this is the answer to how many items carry that slot. | [optional] |
|
|
13
|
+
| **truncated** | **Boolean** | True when containers exist beyond this page. next_offset is populated when it is. | [optional] |
|
|
14
|
+
| **truncation_advice** | **String** | Advice for the caller when truncated is true. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbItemContainersResponse.new(
|
|
22
|
+
item_containers: null,
|
|
23
|
+
max_results: null,
|
|
24
|
+
next_offset: null,
|
|
25
|
+
offset: null,
|
|
26
|
+
result_count: null,
|
|
27
|
+
total_count: null,
|
|
28
|
+
truncated: null,
|
|
29
|
+
truncation_advice: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemContentRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **description** | **String** | What an itemdescription element renders, the item's extended description. HTML is accepted; the element's excerpt settings only decide how much of it is shown. | [optional] |
|
|
8
|
+
| **title** | **String** | What an itemtitle element renders. This is the item's short description in the catalog, so it changes the item everywhere, not only on this storefront. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbItemContentRequest.new(
|
|
16
|
+
description: null,
|
|
17
|
+
title: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemMultimedia
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | The image code, which is what an itemimage element's itemImageCode refers to. Empty for the default image. | [optional] |
|
|
8
|
+
| **declared** | **Boolean** | True when a template declares this code. A slot that is attached but not declared is an image nothing on the page is asking for. | [optional] |
|
|
9
|
+
| **default** | **Boolean** | True for the image an itemimage element with no code renders. Default is per media type, so an item may have one default image and one default PDF at the same time. | [optional] |
|
|
10
|
+
| **description** | **String** | Stored with the image and rendered as its alt text. When it is empty the render falls back to the item's own description, so an empty value here is not an empty alt attribute. | [optional] |
|
|
11
|
+
| **dimensions** | **String** | Width x height in pixels, when the storage measured the file. | [optional] |
|
|
12
|
+
| **exclude_from_gallery** | **Boolean** | True when the storage marks this image as kept out of the item gallery. | [optional] |
|
|
13
|
+
| **filename** | **String** | The stored file's name. Empty when the slot is declared and nothing is attached. | [optional] |
|
|
14
|
+
| **type** | **String** | The media type the storage recorded. | [optional] |
|
|
15
|
+
| **view_url** | **String** | Where the stored image is served. Absent when nothing is attached to the slot. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'ultracart_api'
|
|
21
|
+
|
|
22
|
+
instance = UltracartClient::SfvbItemMultimedia.new(
|
|
23
|
+
code: null,
|
|
24
|
+
declared: null,
|
|
25
|
+
default: null,
|
|
26
|
+
description: null,
|
|
27
|
+
dimensions: null,
|
|
28
|
+
exclude_from_gallery: null,
|
|
29
|
+
filename: null,
|
|
30
|
+
type: null,
|
|
31
|
+
view_url: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemMultimediaRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **code** | **String** | Attach under this image code, the value an itemimage element's itemImageCode names. | [optional] |
|
|
8
|
+
| **default** | **Boolean** | Attach as the item's default image, which is what an itemimage element with no code renders. Name exactly one of this or code. | [optional] |
|
|
9
|
+
| **description** | **String** | Stored with the image and rendered as its alt text. Left out, the slot keeps the description it already had. | [optional] |
|
|
10
|
+
| **path** | **String** | Storefront file system path of the image to attach, such as /assets/img/mug-front.jpg. Upload it with files/upload first. Unlike a page image this does not have to sit in any particular folder, because an item has no folder of its own - the bytes are copied into the item's own storage on attach. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbItemMultimediaRequest.new(
|
|
18
|
+
code: null,
|
|
19
|
+
default: null,
|
|
20
|
+
description: null,
|
|
21
|
+
path: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **attributes** | [**Array<SfvbItemAttribute>**](SfvbItemAttribute.md) | Every attribute a template declares for this item plus every one stored on it, so the list answers what can be set as well as what is set. | [optional] |
|
|
8
|
+
| **description** | **String** | What an itemdescription element renders, the item's extended description. Like title this is the catalog's own field rather than a storefront copy of it. | [optional] |
|
|
9
|
+
| **groups** | **Array<String>** | The page paths this item is assigned to on this storefront. The templates behind those pages are what the attribute and image declarations were reconciled against, so an empty list is why an item can report no declared attributes at all. | [optional] |
|
|
10
|
+
| **merchant_item_id** | **String** | The item id a storefront carries, and the one data-context-item-id holds. | [optional] |
|
|
11
|
+
| **merchant_item_oid** | **Integer** | The item's internal oid, which appears nowhere on a rendered storefront. | [optional] |
|
|
12
|
+
| **multimedia** | [**Array<SfvbItemMultimedia>**](SfvbItemMultimedia.md) | Every image slot a template declares plus every image attached to the item. | [optional] |
|
|
13
|
+
| **seo** | [**SfvbItemSeo**](SfvbItemSeo.md) | | [optional] |
|
|
14
|
+
| **title** | **String** | What an itemtitle element renders. This is the item's short description in the catalog, not a storefront only field, so changing it changes the item everywhere. | [optional] |
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```ruby
|
|
19
|
+
require 'ultracart_api'
|
|
20
|
+
|
|
21
|
+
instance = UltracartClient::SfvbItemResponse.new(
|
|
22
|
+
attributes: null,
|
|
23
|
+
description: null,
|
|
24
|
+
groups: null,
|
|
25
|
+
merchant_item_id: null,
|
|
26
|
+
merchant_item_oid: null,
|
|
27
|
+
multimedia: null,
|
|
28
|
+
seo: null,
|
|
29
|
+
title: null
|
|
30
|
+
)
|
|
31
|
+
```
|
|
32
|
+
|
data/docs/SfvbItemSeo.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemSeo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **description** | **String** | storefrontSEODescription as stored on this item. Empty when it has never been set. | [optional] |
|
|
8
|
+
| **description_source** | **String** | Where effective_description comes from. | [optional] |
|
|
9
|
+
| **effective_description** | **String** | What the meta description renders as, after the item to page to site fallback. | [optional] |
|
|
10
|
+
| **effective_keywords** | **String** | What the meta keywords render as, after the item to page to site fallback. | [optional] |
|
|
11
|
+
| **effective_title** | **String** | What the document title renders as. | [optional] |
|
|
12
|
+
| **keywords** | **String** | storefrontSEOKeywords as stored on this item. Empty when it has never been set. | [optional] |
|
|
13
|
+
| **keywords_source** | **String** | Where effective_keywords comes from. | [optional] |
|
|
14
|
+
| **title** | **String** | storefrontSEOTitle as stored on this item. Empty when it has never been set. | [optional] |
|
|
15
|
+
| **title_source** | **String** | Where effective_title comes from. item_description means nothing is set here and the item's own description is being used. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'ultracart_api'
|
|
21
|
+
|
|
22
|
+
instance = UltracartClient::SfvbItemSeo.new(
|
|
23
|
+
description: null,
|
|
24
|
+
description_source: null,
|
|
25
|
+
effective_description: null,
|
|
26
|
+
effective_keywords: null,
|
|
27
|
+
effective_title: null,
|
|
28
|
+
keywords: null,
|
|
29
|
+
keywords_source: null,
|
|
30
|
+
title: null,
|
|
31
|
+
title_source: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemSeoRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **description** | **String** | The meta description. Cleared, the page falls back to its group's value and then to the site's. | [optional] |
|
|
8
|
+
| **keywords** | **String** | The meta keywords. Cleared, the page falls back to its group's value and then to the site's. | [optional] |
|
|
9
|
+
| **title** | **String** | The document title for this item's page. Cleared, the page falls back to the item's own description. This does not reach og:title or twitter:title, which render the item description either way. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbItemSeoRequest.new(
|
|
17
|
+
description: null,
|
|
18
|
+
keywords: null,
|
|
19
|
+
title: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|