ultracart_api 4.1.156 → 4.1.157
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 +3 -2
- data/docs/SfvbApi.md +6 -4
- data/docs/SfvbContainerResponse.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +10 -8
- data/lib/ultracart_api/models/sfvb_container_response.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a92c02a477046100fa9bb81d90ce5912f2ef0f1f48683b51c98e34c1df71287
|
|
4
|
+
data.tar.gz: 9496625114b7bba219bc0198c389e5b84afcf52bb55704570f77db6122d24d36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe801ea021b22c5d654b7f6e6ea21842c89a103d8923bb1ab65d33d14bfa4a03e105b34f4291734165736aa8ae14c9728e42d60aab45b0542b2319bb489adb32
|
|
7
|
+
data.tar.gz: cf281a37520c9c3885190f30e9c31e6367fa04e8c67512b413d81b3b3cb1c99bae3d12174bb4ffbad79a7ed84b8a8a0ee0bb4961addfdc3e8c7b9c1ddedab73c
|
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.157
|
|
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.157'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -1962,6 +1962,7 @@ Not every change is committed to every SDK.
|
|
|
1962
1962
|
|
|
1963
1963
|
| Version | Date | Comments |
|
|
1964
1964
|
| --: | :-: | --- |
|
|
1965
|
+
| 4.1.157 | 09/18/2026 | sfvb internal testing |
|
|
1965
1966
|
| 4.1.156 | 09/16/2026 | sfvb internal testing |
|
|
1966
1967
|
| 4.1.155 | 09/15/2026 | sfvb internal testing |
|
|
1967
1968
|
| 4.1.154 | 09/14/2026 | sfvb internal testing |
|
data/docs/SfvbApi.md
CHANGED
|
@@ -545,7 +545,7 @@ end
|
|
|
545
545
|
|
|
546
546
|
Read a container stored outside the file system
|
|
547
547
|
|
|
548
|
-
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.
|
|
548
|
+
owner_type is one of upsell, email, postcardfront, postcardback, item or itemid. It also says how owner_object_id is read - item and upsell take an oid, itemid takes a merchant item id, and the rest take an esp uuid. itemid reaches the same containers as item and is the way to address one from a storefront, where data-context-item-id carries the merchant item id and the oid appears nowhere. Item containers also require container_name. Theme and page containers are files; read those through files/content.
|
|
549
549
|
|
|
550
550
|
|
|
551
551
|
### Examples
|
|
@@ -601,7 +601,7 @@ end
|
|
|
601
601
|
|
|
602
602
|
Read the CJSON stored in one container history entry
|
|
603
603
|
|
|
604
|
-
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.
|
|
604
|
+
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. owner_type also says how owner_object_id is read, and itemid addresses an item container by merchant item id.
|
|
605
605
|
|
|
606
606
|
|
|
607
607
|
### Examples
|
|
@@ -1406,6 +1406,8 @@ end
|
|
|
1406
1406
|
|
|
1407
1407
|
Version history for a container stored outside the file system
|
|
1408
1408
|
|
|
1409
|
+
Addressed the same way as the container itself, so owner_type also says how owner_object_id is read and itemid lists the history of the item container that merchant item id names.
|
|
1410
|
+
|
|
1409
1411
|
|
|
1410
1412
|
### Examples
|
|
1411
1413
|
|
|
@@ -1777,7 +1779,7 @@ end
|
|
|
1777
1779
|
|
|
1778
1780
|
Write a container stored outside the file system
|
|
1779
1781
|
|
|
1780
|
-
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.
|
|
1782
|
+
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. owner_type also says how owner_object_id is read; send itemid to address an item container by merchant item id rather than by oid. Either way the history records the one canonical address, so a container written under one spelling is listed and reverted under the other.
|
|
1781
1783
|
|
|
1782
1784
|
|
|
1783
1785
|
### Examples
|
|
@@ -2277,7 +2279,7 @@ end
|
|
|
2277
2279
|
|
|
2278
2280
|
Revert a container stored outside the file system
|
|
2279
2281
|
|
|
2280
|
-
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.
|
|
2282
|
+
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. owner_type also says how owner_object_id is read, so a version written by oid can be reverted by merchant item id and the other way round.
|
|
2281
2283
|
|
|
2282
2284
|
|
|
2283
2285
|
### Examples
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
| **container_name** | **String** | Container name. | [optional] |
|
|
9
9
|
| **hash_sha256** | **String** | SHA-256 of the cjson. Send back as If-Match when writing. | [optional] |
|
|
10
10
|
| **last_modified** | **String** | When the container was last modified, in the store's own record of it. Every owner type reports this. It is absent only when the container has never been written since the store began recording it, so treat an absent value as unknown rather than as never modified. Two behaviours worth knowing. A postcard keeps one timestamp for both of its sides, so writing the front moves the value the back reports. An upsell container that is rewritten with byte identical content keeps its original date rather than moving to now, because the timestamp tracks changes to the container and not writes to the offer. | [optional] |
|
|
11
|
+
| **merchant_item_id** | **String** | The merchant item id of the owning item, for item containers only and absent for every other owner type. owner_object_id is the item oid, which appears nowhere on a rendered storefront, so this is how a caller confirms which item an oid actually reached. It is read fresh on every call and so reflects a renamed item. A container's own id embeds this value, which is what a preview session keys an item container on. | [optional] |
|
|
11
12
|
| **owner_object_id** | **String** | Identifier of the owning object within its store. | [optional] |
|
|
12
13
|
| **owner_type** | **String** | Where this container lives. | [optional] |
|
|
13
14
|
|
|
@@ -21,6 +22,7 @@ instance = UltracartClient::SfvbContainerResponse.new(
|
|
|
21
22
|
container_name: null,
|
|
22
23
|
hash_sha256: null,
|
|
23
24
|
last_modified: null,
|
|
25
|
+
merchant_item_id: null,
|
|
24
26
|
owner_object_id: null,
|
|
25
27
|
owner_type: null
|
|
26
28
|
)
|
|
@@ -673,7 +673,7 @@ module UltracartClient
|
|
|
673
673
|
end
|
|
674
674
|
|
|
675
675
|
# Read a container stored outside the file system
|
|
676
|
-
# 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.
|
|
676
|
+
# owner_type is one of upsell, email, postcardfront, postcardback, item or itemid. It also says how owner_object_id is read - item and upsell take an oid, itemid takes a merchant item id, and the rest take an esp uuid. itemid reaches the same containers as item and is the way to address one from a storefront, where data-context-item-id carries the merchant item id and the oid appears nowhere. Item containers also require container_name. Theme and page containers are files; read those through files/content.
|
|
677
677
|
# @param storefront_oid [Integer]
|
|
678
678
|
# @param owner_type [String]
|
|
679
679
|
# @param owner_object_id [String]
|
|
@@ -686,7 +686,7 @@ module UltracartClient
|
|
|
686
686
|
end
|
|
687
687
|
|
|
688
688
|
# Read a container stored outside the file system
|
|
689
|
-
# 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.
|
|
689
|
+
# owner_type is one of upsell, email, postcardfront, postcardback, item or itemid. It also says how owner_object_id is read - item and upsell take an oid, itemid takes a merchant item id, and the rest take an esp uuid. itemid reaches the same containers as item and is the way to address one from a storefront, where data-context-item-id carries the merchant item id and the oid appears nowhere. Item containers also require container_name. Theme and page containers are files; read those through files/content.
|
|
690
690
|
# @param storefront_oid [Integer]
|
|
691
691
|
# @param owner_type [String]
|
|
692
692
|
# @param owner_object_id [String]
|
|
@@ -752,7 +752,7 @@ module UltracartClient
|
|
|
752
752
|
end
|
|
753
753
|
|
|
754
754
|
# Read the CJSON stored in one container history entry
|
|
755
|
-
# 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.
|
|
755
|
+
# 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. owner_type also says how owner_object_id is read, and itemid addresses an item container by merchant item id.
|
|
756
756
|
# @param storefront_oid [Integer]
|
|
757
757
|
# @param container_history_oid [Integer]
|
|
758
758
|
# @param [Hash] opts the optional parameters
|
|
@@ -766,7 +766,7 @@ module UltracartClient
|
|
|
766
766
|
end
|
|
767
767
|
|
|
768
768
|
# Read the CJSON stored in one container history entry
|
|
769
|
-
# 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.
|
|
769
|
+
# 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. owner_type also says how owner_object_id is read, and itemid addresses an item container by merchant item id.
|
|
770
770
|
# @param storefront_oid [Integer]
|
|
771
771
|
# @param container_history_oid [Integer]
|
|
772
772
|
# @param [Hash] opts the optional parameters
|
|
@@ -1777,6 +1777,7 @@ module UltracartClient
|
|
|
1777
1777
|
end
|
|
1778
1778
|
|
|
1779
1779
|
# Version history for a container stored outside the file system
|
|
1780
|
+
# Addressed the same way as the container itself, so owner_type also says how owner_object_id is read and itemid lists the history of the item container that merchant item id names.
|
|
1780
1781
|
# @param storefront_oid [Integer]
|
|
1781
1782
|
# @param [Hash] opts the optional parameters
|
|
1782
1783
|
# @option opts [String] :owner_type
|
|
@@ -1789,6 +1790,7 @@ module UltracartClient
|
|
|
1789
1790
|
end
|
|
1790
1791
|
|
|
1791
1792
|
# Version history for a container stored outside the file system
|
|
1793
|
+
# Addressed the same way as the container itself, so owner_type also says how owner_object_id is read and itemid lists the history of the item container that merchant item id names.
|
|
1792
1794
|
# @param storefront_oid [Integer]
|
|
1793
1795
|
# @param [Hash] opts the optional parameters
|
|
1794
1796
|
# @option opts [String] :owner_type
|
|
@@ -2233,7 +2235,7 @@ module UltracartClient
|
|
|
2233
2235
|
end
|
|
2234
2236
|
|
|
2235
2237
|
# Write a container stored outside the file system
|
|
2236
|
-
# 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.
|
|
2238
|
+
# 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. owner_type also says how owner_object_id is read; send itemid to address an item container by merchant item id rather than by oid. Either way the history records the one canonical address, so a container written under one spelling is listed and reverted under the other.
|
|
2237
2239
|
# @param storefront_oid [Integer]
|
|
2238
2240
|
# @param owner_type [String]
|
|
2239
2241
|
# @param owner_object_id [String]
|
|
@@ -2248,7 +2250,7 @@ module UltracartClient
|
|
|
2248
2250
|
end
|
|
2249
2251
|
|
|
2250
2252
|
# Write a container stored outside the file system
|
|
2251
|
-
# 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.
|
|
2253
|
+
# 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. owner_type also says how owner_object_id is read; send itemid to address an item container by merchant item id rather than by oid. Either way the history records the one canonical address, so a container written under one spelling is listed and reverted under the other.
|
|
2252
2254
|
# @param storefront_oid [Integer]
|
|
2253
2255
|
# @param owner_type [String]
|
|
2254
2256
|
# @param owner_object_id [String]
|
|
@@ -2976,7 +2978,7 @@ module UltracartClient
|
|
|
2976
2978
|
end
|
|
2977
2979
|
|
|
2978
2980
|
# Revert a container stored outside the file system
|
|
2979
|
-
# 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.
|
|
2981
|
+
# 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. owner_type also says how owner_object_id is read, so a version written by oid can be reverted by merchant item id and the other way round.
|
|
2980
2982
|
# @param storefront_oid [Integer]
|
|
2981
2983
|
# @param owner_type [String]
|
|
2982
2984
|
# @param owner_object_id [String]
|
|
@@ -2991,7 +2993,7 @@ module UltracartClient
|
|
|
2991
2993
|
end
|
|
2992
2994
|
|
|
2993
2995
|
# Revert a container stored outside the file system
|
|
2994
|
-
# 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.
|
|
2996
|
+
# 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. owner_type also says how owner_object_id is read, so a version written by oid can be reverted by merchant item id and the other way round.
|
|
2995
2997
|
# @param storefront_oid [Integer]
|
|
2996
2998
|
# @param owner_type [String]
|
|
2997
2999
|
# @param owner_object_id [String]
|
|
@@ -27,6 +27,9 @@ module UltracartClient
|
|
|
27
27
|
# When the container was last modified, in the store's own record of it. Every owner type reports this. It is absent only when the container has never been written since the store began recording it, so treat an absent value as unknown rather than as never modified. Two behaviours worth knowing. A postcard keeps one timestamp for both of its sides, so writing the front moves the value the back reports. An upsell container that is rewritten with byte identical content keeps its original date rather than moving to now, because the timestamp tracks changes to the container and not writes to the offer.
|
|
28
28
|
attr_accessor :last_modified
|
|
29
29
|
|
|
30
|
+
# The merchant item id of the owning item, for item containers only and absent for every other owner type. owner_object_id is the item oid, which appears nowhere on a rendered storefront, so this is how a caller confirms which item an oid actually reached. It is read fresh on every call and so reflects a renamed item. A container's own id embeds this value, which is what a preview session keys an item container on.
|
|
31
|
+
attr_accessor :merchant_item_id
|
|
32
|
+
|
|
30
33
|
# Identifier of the owning object within its store.
|
|
31
34
|
attr_accessor :owner_object_id
|
|
32
35
|
|
|
@@ -62,6 +65,7 @@ module UltracartClient
|
|
|
62
65
|
:'container_name' => :'container_name',
|
|
63
66
|
:'hash_sha256' => :'hash_sha256',
|
|
64
67
|
:'last_modified' => :'last_modified',
|
|
68
|
+
:'merchant_item_id' => :'merchant_item_id',
|
|
65
69
|
:'owner_object_id' => :'owner_object_id',
|
|
66
70
|
:'owner_type' => :'owner_type'
|
|
67
71
|
}
|
|
@@ -79,6 +83,7 @@ module UltracartClient
|
|
|
79
83
|
:'container_name' => :'String',
|
|
80
84
|
:'hash_sha256' => :'String',
|
|
81
85
|
:'last_modified' => :'String',
|
|
86
|
+
:'merchant_item_id' => :'String',
|
|
82
87
|
:'owner_object_id' => :'String',
|
|
83
88
|
:'owner_type' => :'String'
|
|
84
89
|
}
|
|
@@ -121,6 +126,10 @@ module UltracartClient
|
|
|
121
126
|
self.last_modified = attributes[:'last_modified']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:'merchant_item_id')
|
|
130
|
+
self.merchant_item_id = attributes[:'merchant_item_id']
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.key?(:'owner_object_id')
|
|
125
134
|
self.owner_object_id = attributes[:'owner_object_id']
|
|
126
135
|
end
|
|
@@ -164,6 +173,7 @@ module UltracartClient
|
|
|
164
173
|
container_name == o.container_name &&
|
|
165
174
|
hash_sha256 == o.hash_sha256 &&
|
|
166
175
|
last_modified == o.last_modified &&
|
|
176
|
+
merchant_item_id == o.merchant_item_id &&
|
|
167
177
|
owner_object_id == o.owner_object_id &&
|
|
168
178
|
owner_type == o.owner_type
|
|
169
179
|
end
|
|
@@ -177,7 +187,7 @@ module UltracartClient
|
|
|
177
187
|
# Calculates hash code according to all attributes.
|
|
178
188
|
# @return [Integer] Hash code
|
|
179
189
|
def hash
|
|
180
|
-
[cjson, container_name, hash_sha256, last_modified, owner_object_id, owner_type].hash
|
|
190
|
+
[cjson, container_name, hash_sha256, last_modified, merchant_item_id, owner_object_id, owner_type].hash
|
|
181
191
|
end
|
|
182
192
|
|
|
183
193
|
# Builds the object from hash
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.157
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-09-
|
|
11
|
+
date: 2026-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|