ultracart_api 4.0.191 → 4.0.192
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/CouponTieredAmountOffItems.md +2 -0
- data/docs/CouponTieredPercentOffItems.md +2 -0
- data/lib/ultracart_api/models/coupon_tiered_amount_off_items.rb +13 -1
- data/lib/ultracart_api/models/coupon_tiered_percent_off_items.rb +13 -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: f75a4023c4896f85b9fab94780bc01965ff7ded9785f45ed26f579f62830e944
|
4
|
+
data.tar.gz: 622da61ea02f6f4f500a44f408945f24333825b2f9049996b4c7ba47ec4e4a3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4349dadeec282b50e2be29c393d1d7fb5c0e4ab76eba841a7efdfa8df064552672cb75f8a64c8838129ecfbd50adc12152888bf27255718a0073584fb97e4ee4
|
7
|
+
data.tar.gz: f2619af246d6b4c947f2c147d756b09b0092268f91aae768e805d75761e0a5b976c4c63fb0acf29afe54309206291ab23699ff73cbdc35d54de5082e90b9492a
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
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.0.
|
10
|
+
- Package version: 4.0.192
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.192.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.192.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.192'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1404,6 +1404,7 @@ Not every change is committed to every SDK.
|
|
1404
1404
|
|
1405
1405
|
| Version | Date | Comments |
|
1406
1406
|
| --: | :-: | --- |
|
1407
|
+
| 4.0.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
|
1407
1408
|
| 4.0.191 | 11/20/2023 | coupon - add item tag support to percent off items and free shipping |
|
1408
1409
|
| 4.0.190 | 11/20/2023 | item.google_product_search.color bugfix for bad length validation: 20 to 100 |
|
1409
1410
|
| 4.0.189 | 11/13/2023 | coupon - editor values for item tags |
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
|
7
8
|
| **items** | **Array<String>** | The items being discounted by this coupon. | [optional] |
|
8
9
|
| **limit** | **Float** | The maximum number of discounted items. | [optional] |
|
9
10
|
| **tiers** | [**Array<CouponTierQuantityAmount>**](CouponTierQuantityAmount.md) | A list of discount tiers. | [optional] |
|
@@ -14,6 +15,7 @@
|
|
14
15
|
require 'ultracart_api'
|
15
16
|
|
16
17
|
instance = UltracartClient::CouponTieredAmountOffItems.new(
|
18
|
+
item_tags: null,
|
17
19
|
items: null,
|
18
20
|
limit: null,
|
19
21
|
tiers: null
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items. | [optional] |
|
7
8
|
| **items** | **Array<String>** | A list of items of which at least one must be purchased for coupon to be valid. | [optional] |
|
8
9
|
| **limit** | **Float** | The (optional) maximum quantity of discounted items. | [optional] |
|
9
10
|
| **tiers** | [**Array<CouponTierQuantityPercent>**](CouponTierQuantityPercent.md) | A list of discount tiers. | [optional] |
|
@@ -14,6 +15,7 @@
|
|
14
15
|
require 'ultracart_api'
|
15
16
|
|
16
17
|
instance = UltracartClient::CouponTieredPercentOffItems.new(
|
18
|
+
item_tags: null,
|
17
19
|
items: null,
|
18
20
|
limit: null,
|
19
21
|
tiers: null
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class CouponTieredAmountOffItems
|
18
|
+
# An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
19
|
+
attr_accessor :item_tags
|
20
|
+
|
18
21
|
# The items being discounted by this coupon.
|
19
22
|
attr_accessor :items
|
20
23
|
|
@@ -27,6 +30,7 @@ module UltracartClient
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
33
|
+
:'item_tags' => :'item_tags',
|
30
34
|
:'items' => :'items',
|
31
35
|
:'limit' => :'limit',
|
32
36
|
:'tiers' => :'tiers'
|
@@ -41,6 +45,7 @@ module UltracartClient
|
|
41
45
|
# Attribute type mapping.
|
42
46
|
def self.openapi_types
|
43
47
|
{
|
48
|
+
:'item_tags' => :'Array<String>',
|
44
49
|
:'items' => :'Array<String>',
|
45
50
|
:'limit' => :'Float',
|
46
51
|
:'tiers' => :'Array<CouponTierQuantityAmount>'
|
@@ -68,6 +73,12 @@ module UltracartClient
|
|
68
73
|
h[k.to_sym] = v
|
69
74
|
}
|
70
75
|
|
76
|
+
if attributes.key?(:'item_tags')
|
77
|
+
if (value = attributes[:'item_tags']).is_a?(Array)
|
78
|
+
self.item_tags = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
71
82
|
if attributes.key?(:'items')
|
72
83
|
if (value = attributes[:'items']).is_a?(Array)
|
73
84
|
self.items = value
|
@@ -103,6 +114,7 @@ module UltracartClient
|
|
103
114
|
def ==(o)
|
104
115
|
return true if self.equal?(o)
|
105
116
|
self.class == o.class &&
|
117
|
+
item_tags == o.item_tags &&
|
106
118
|
items == o.items &&
|
107
119
|
limit == o.limit &&
|
108
120
|
tiers == o.tiers
|
@@ -117,7 +129,7 @@ module UltracartClient
|
|
117
129
|
# Calculates hash code according to all attributes.
|
118
130
|
# @return [Integer] Hash code
|
119
131
|
def hash
|
120
|
-
[items, limit, tiers].hash
|
132
|
+
[item_tags, items, limit, tiers].hash
|
121
133
|
end
|
122
134
|
|
123
135
|
# Builds the object from hash
|
@@ -15,6 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class CouponTieredPercentOffItems
|
18
|
+
# An optional list of item tags which will receive a discount. If blank, discount applies to all items except excluded items.
|
19
|
+
attr_accessor :item_tags
|
20
|
+
|
18
21
|
# A list of items of which at least one must be purchased for coupon to be valid.
|
19
22
|
attr_accessor :items
|
20
23
|
|
@@ -27,6 +30,7 @@ module UltracartClient
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
31
|
def self.attribute_map
|
29
32
|
{
|
33
|
+
:'item_tags' => :'item_tags',
|
30
34
|
:'items' => :'items',
|
31
35
|
:'limit' => :'limit',
|
32
36
|
:'tiers' => :'tiers'
|
@@ -41,6 +45,7 @@ module UltracartClient
|
|
41
45
|
# Attribute type mapping.
|
42
46
|
def self.openapi_types
|
43
47
|
{
|
48
|
+
:'item_tags' => :'Array<String>',
|
44
49
|
:'items' => :'Array<String>',
|
45
50
|
:'limit' => :'Float',
|
46
51
|
:'tiers' => :'Array<CouponTierQuantityPercent>'
|
@@ -68,6 +73,12 @@ module UltracartClient
|
|
68
73
|
h[k.to_sym] = v
|
69
74
|
}
|
70
75
|
|
76
|
+
if attributes.key?(:'item_tags')
|
77
|
+
if (value = attributes[:'item_tags']).is_a?(Array)
|
78
|
+
self.item_tags = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
71
82
|
if attributes.key?(:'items')
|
72
83
|
if (value = attributes[:'items']).is_a?(Array)
|
73
84
|
self.items = value
|
@@ -103,6 +114,7 @@ module UltracartClient
|
|
103
114
|
def ==(o)
|
104
115
|
return true if self.equal?(o)
|
105
116
|
self.class == o.class &&
|
117
|
+
item_tags == o.item_tags &&
|
106
118
|
items == o.items &&
|
107
119
|
limit == o.limit &&
|
108
120
|
tiers == o.tiers
|
@@ -117,7 +129,7 @@ module UltracartClient
|
|
117
129
|
# Calculates hash code according to all attributes.
|
118
130
|
# @return [Integer] Hash code
|
119
131
|
def hash
|
120
|
-
[items, limit, tiers].hash
|
132
|
+
[item_tags, items, limit, tiers].hash
|
121
133
|
end
|
122
134
|
|
123
135
|
# 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.0.
|
4
|
+
version: 4.0.192
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|