ultracart_api 4.0.86.rc → 4.0.87.rc
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dc219066ac586692df1300754f45595fffa03ab2734801bd0950156d5b64d3ab
|
|
4
|
+
data.tar.gz: bea4eee612019ac116e992d5c68ecc4844ee051ce97ff6d7ec37150c1753f67a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fb52576a7a509c0664f5b0c51db4679150841c357c003e35feeed6f1c4174f9ca32228c2ad97a7c51877ff550adf7526860682ec2e58ba2e27d68416420cebd
|
|
7
|
+
data.tar.gz: cc957623034627e837c4a660c9c52c349a82d22527f7aac85bc54cdb1187257119559dfbf1bcf81861562d8a9b7ae960986ca78d5c46cc55d0611f302d137c39
|
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.87.rc
|
|
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.87.rc.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.87.rc.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.87.rc'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -1233,6 +1233,7 @@ Not every change is committed to every SDK.
|
|
|
1233
1233
|
|
|
1234
1234
|
| Version | Date | Comments |
|
|
1235
1235
|
| --: | :-: | --- |
|
|
1236
|
+
| 4.0.87-RC | 11/21/2022 | coupon - addl optional minimums for percent off msrp items coupon |
|
|
1236
1237
|
| 4.0.86-RC | 11/21/2022 | conversation context method |
|
|
1237
1238
|
| 4.0.85-RC | 11/21/2022 | adjusted conversation event model |
|
|
1238
1239
|
| 4.0.84-RC | 11/15/2022 | conversation methods bug fix |
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
| **excluded_items** | **Array<String>** | A list of items which cannot be discounted. | [optional] |
|
|
9
9
|
| **items** | **Array<String>** | An list of items which will receive a discount. | [optional] |
|
|
10
10
|
| **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
|
|
11
|
+
| **minimum_cumulative_msrp** | **Float** | The (optional) minimum cumulative msrp of qualifying items. | [optional] |
|
|
12
|
+
| **minimum_subtotal** | **Float** | The (optional) minimum subtotal of qualifying items. | [optional] |
|
|
11
13
|
|
|
12
14
|
## Example
|
|
13
15
|
|
|
@@ -18,7 +20,9 @@ instance = UltracartClient::CouponPercentOffMsrpItems.new(
|
|
|
18
20
|
discount_percent: null,
|
|
19
21
|
excluded_items: null,
|
|
20
22
|
items: null,
|
|
21
|
-
limit: null
|
|
23
|
+
limit: null,
|
|
24
|
+
minimum_cumulative_msrp: null,
|
|
25
|
+
minimum_subtotal: null
|
|
22
26
|
)
|
|
23
27
|
```
|
|
24
28
|
|
|
@@ -27,13 +27,21 @@ module UltracartClient
|
|
|
27
27
|
# The (optional) maximum quantity of discounted items.
|
|
28
28
|
attr_accessor :limit
|
|
29
29
|
|
|
30
|
+
# The (optional) minimum cumulative msrp of qualifying items.
|
|
31
|
+
attr_accessor :minimum_cumulative_msrp
|
|
32
|
+
|
|
33
|
+
# The (optional) minimum subtotal of qualifying items.
|
|
34
|
+
attr_accessor :minimum_subtotal
|
|
35
|
+
|
|
30
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
37
|
def self.attribute_map
|
|
32
38
|
{
|
|
33
39
|
:'discount_percent' => :'discount_percent',
|
|
34
40
|
:'excluded_items' => :'excluded_items',
|
|
35
41
|
:'items' => :'items',
|
|
36
|
-
:'limit' => :'limit'
|
|
42
|
+
:'limit' => :'limit',
|
|
43
|
+
:'minimum_cumulative_msrp' => :'minimum_cumulative_msrp',
|
|
44
|
+
:'minimum_subtotal' => :'minimum_subtotal'
|
|
37
45
|
}
|
|
38
46
|
end
|
|
39
47
|
|
|
@@ -48,7 +56,9 @@ module UltracartClient
|
|
|
48
56
|
:'discount_percent' => :'Float',
|
|
49
57
|
:'excluded_items' => :'Array<String>',
|
|
50
58
|
:'items' => :'Array<String>',
|
|
51
|
-
:'limit' => :'Integer'
|
|
59
|
+
:'limit' => :'Integer',
|
|
60
|
+
:'minimum_cumulative_msrp' => :'Float',
|
|
61
|
+
:'minimum_subtotal' => :'Float'
|
|
52
62
|
}
|
|
53
63
|
end
|
|
54
64
|
|
|
@@ -92,6 +102,14 @@ module UltracartClient
|
|
|
92
102
|
if attributes.key?(:'limit')
|
|
93
103
|
self.limit = attributes[:'limit']
|
|
94
104
|
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'minimum_cumulative_msrp')
|
|
107
|
+
self.minimum_cumulative_msrp = attributes[:'minimum_cumulative_msrp']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'minimum_subtotal')
|
|
111
|
+
self.minimum_subtotal = attributes[:'minimum_subtotal']
|
|
112
|
+
end
|
|
95
113
|
end
|
|
96
114
|
|
|
97
115
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -115,7 +133,9 @@ module UltracartClient
|
|
|
115
133
|
discount_percent == o.discount_percent &&
|
|
116
134
|
excluded_items == o.excluded_items &&
|
|
117
135
|
items == o.items &&
|
|
118
|
-
limit == o.limit
|
|
136
|
+
limit == o.limit &&
|
|
137
|
+
minimum_cumulative_msrp == o.minimum_cumulative_msrp &&
|
|
138
|
+
minimum_subtotal == o.minimum_subtotal
|
|
119
139
|
end
|
|
120
140
|
|
|
121
141
|
# @see the `==` method
|
|
@@ -127,7 +147,7 @@ module UltracartClient
|
|
|
127
147
|
# Calculates hash code according to all attributes.
|
|
128
148
|
# @return [Integer] Hash code
|
|
129
149
|
def hash
|
|
130
|
-
[discount_percent, excluded_items, items, limit].hash
|
|
150
|
+
[discount_percent, excluded_items, items, limit, minimum_cumulative_msrp, minimum_subtotal].hash
|
|
131
151
|
end
|
|
132
152
|
|
|
133
153
|
# Builds the object from hash
|