ultracart_api 4.0.234 → 4.0.236
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/CouponPercentOffItemWithItemsQuantityPurchase.md +4 -0
- data/docs/WebhookLog.md +3 -1
- data/lib/ultracart_api/models/auto_order_item.rb +2 -2
- data/lib/ultracart_api/models/auto_order_item_simple_schedule.rb +2 -2
- data/lib/ultracart_api/models/channel_partner_order_item.rb +2 -2
- data/lib/ultracart_api/models/coupon_percent_off_item_with_items_quantity_purchase.rb +25 -1
- data/lib/ultracart_api/models/webhook_log.rb +14 -4
- 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: 994927ea716b66108073954d4c8f92e1c920d6b715d4a099a76102b715d05777
|
4
|
+
data.tar.gz: babf5bf9c5ab1634f5137b1dcc541897e6558514ad263afd7bf9ffd4caf23b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d81eff48f7b9d4392e6c45c9697e4a18391b3c06c80e911660388f8c4c1ceacefb1611b778cdd267ae2011b958fb5fcf7d9947924b751de09b2d62e5356ae42
|
7
|
+
data.tar.gz: c022258bf9d67dfe1fbc430da1e1b85d0f402f9bfa296b52070c702aa35925f9f118f1582160988563b8971ff9c0e9c1bc1c4a2655d173d9525a776ea026bf75
|
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.236
|
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.236.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.236.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.236'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1520,6 +1520,8 @@ Not every change is committed to every SDK.
|
|
1520
1520
|
|
1521
1521
|
| Version | Date | Comments |
|
1522
1522
|
| --: | :-: | --- |
|
1523
|
+
| 4.0.236 | 11/07/2024 | Coupon - PercentOffWithItemsQuantityPurchase - added support for tags |
|
1524
|
+
| 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
1523
1525
|
| 4.0.234 | 10/24/2024 | storefront page attribute edit method |
|
1524
1526
|
| 4.0.233 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
1525
1527
|
| 4.0.232 | 08/29/2024 | add hold_for_transmission to item shipping object |
|
@@ -5,9 +5,11 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **discount_percent** | **Float** | The percentage of subtotal discount | [optional] |
|
8
|
+
| **item_tags** | **Array<String>** | An optional list of item tags which will receive a discount if one of the required purchased items is purchased. | [optional] |
|
8
9
|
| **items** | **Array<String>** | A list of items which will receive a discount if one of the required purchase items is purchased. | [optional] |
|
9
10
|
| **limit** | **Integer** | The (optional) maximum quantity of discounted items. | [optional] |
|
10
11
|
| **required_purchase_items** | **Array<String>** | Required items (at least one from the list) that must be purchased for coupon to be valid | [optional] |
|
12
|
+
| **required_purchase_items_tags** | **Array<String>** | Required item tags (at least one from the list) that must be purchase for coupon to be valid. | [optional] |
|
11
13
|
| **required_purchase_quantity** | **Integer** | The quantity of items that must be purchased for the discount to be applied. | [optional] |
|
12
14
|
|
13
15
|
## Example
|
@@ -17,9 +19,11 @@ require 'ultracart_api'
|
|
17
19
|
|
18
20
|
instance = UltracartClient::CouponPercentOffItemWithItemsQuantityPurchase.new(
|
19
21
|
discount_percent: null,
|
22
|
+
item_tags: null,
|
20
23
|
items: null,
|
21
24
|
limit: null,
|
22
25
|
required_purchase_items: null,
|
26
|
+
required_purchase_items_tags: null,
|
23
27
|
required_purchase_quantity: null
|
24
28
|
)
|
25
29
|
```
|
data/docs/WebhookLog.md
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
| **status_code** | **Integer** | HTTP status code received from the server | [optional] |
|
16
16
|
| **success** | **Boolean** | True if the delivery was successful | [optional] |
|
17
17
|
| **uri** | **String** | URI of the webhook delivered to | [optional] |
|
18
|
+
| **webhook_oid** | **Integer** | webhook oid | [optional] |
|
18
19
|
|
19
20
|
## Example
|
20
21
|
|
@@ -32,7 +33,8 @@ instance = UltracartClient::WebhookLog.new(
|
|
32
33
|
response_headers: null,
|
33
34
|
status_code: null,
|
34
35
|
success: null,
|
35
|
-
uri: null
|
36
|
+
uri: null,
|
37
|
+
webhook_oid: null
|
36
38
|
)
|
37
39
|
```
|
38
40
|
|
@@ -341,7 +341,7 @@ module UltracartClient
|
|
341
341
|
# Check to see if the all the properties in the model are valid
|
342
342
|
# @return true if the model is valid
|
343
343
|
def valid?
|
344
|
-
frequency_validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
344
|
+
frequency_validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
345
345
|
return false unless frequency_validator.valid?(@frequency)
|
346
346
|
true
|
347
347
|
end
|
@@ -349,7 +349,7 @@ module UltracartClient
|
|
349
349
|
# Custom attribute writer method checking allowed values (enum).
|
350
350
|
# @param [Object] frequency Object to be assigned
|
351
351
|
def frequency=(frequency)
|
352
|
-
validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
352
|
+
validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
353
353
|
unless validator.valid?(frequency)
|
354
354
|
fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
|
355
355
|
end
|
@@ -113,7 +113,7 @@ module UltracartClient
|
|
113
113
|
# Check to see if the all the properties in the model are valid
|
114
114
|
# @return true if the model is valid
|
115
115
|
def valid?
|
116
|
-
frequency_validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
116
|
+
frequency_validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
117
117
|
return false unless frequency_validator.valid?(@frequency)
|
118
118
|
true
|
119
119
|
end
|
@@ -121,7 +121,7 @@ module UltracartClient
|
|
121
121
|
# Custom attribute writer method checking allowed values (enum).
|
122
122
|
# @param [Object] frequency Object to be assigned
|
123
123
|
def frequency=(frequency)
|
124
|
-
validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
124
|
+
validator = EnumAttributeValidator.new('String', ["Weekly", "Biweekly", "Every...", "Every 10 Days", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
125
125
|
unless validator.valid?(frequency)
|
126
126
|
fail ArgumentError, "invalid value for \"frequency\", must be one of #{validator.allowable_values}."
|
127
127
|
end
|
@@ -155,7 +155,7 @@ module UltracartClient
|
|
155
155
|
# Check to see if the all the properties in the model are valid
|
156
156
|
# @return true if the model is valid
|
157
157
|
def valid?
|
158
|
-
auto_order_schedule_validator = EnumAttributeValidator.new('String', ["Weekly", "Every 10 Days", "Biweekly", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
158
|
+
auto_order_schedule_validator = EnumAttributeValidator.new('String', ["Weekly", "Every 10 Days", "Biweekly", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
159
159
|
return false unless auto_order_schedule_validator.valid?(@auto_order_schedule)
|
160
160
|
return false if !@merchant_item_id.nil? && @merchant_item_id.to_s.length > 20
|
161
161
|
true
|
@@ -164,7 +164,7 @@ module UltracartClient
|
|
164
164
|
# Custom attribute writer method checking allowed values (enum).
|
165
165
|
# @param [Object] auto_order_schedule Object to be assigned
|
166
166
|
def auto_order_schedule=(auto_order_schedule)
|
167
|
-
validator = EnumAttributeValidator.new('String', ["Weekly", "Every 10 Days", "Biweekly", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
167
|
+
validator = EnumAttributeValidator.new('String', ["Weekly", "Every 10 Days", "Biweekly", "Every 24 Days", "Every 28 Days", "Monthly", "Every 45 Days", "Every 2 Months", "Every 3 Months", "Every 4 Months", "Every 5 Months", "Every 6 Months", "Yearly", "Every 4 Weeks", "Every 6 Weeks", "Every 8 Weeks"])
|
168
168
|
unless validator.valid?(auto_order_schedule)
|
169
169
|
fail ArgumentError, "invalid value for \"auto_order_schedule\", must be one of #{validator.allowable_values}."
|
170
170
|
end
|
@@ -18,6 +18,9 @@ module UltracartClient
|
|
18
18
|
# The percentage of subtotal discount
|
19
19
|
attr_accessor :discount_percent
|
20
20
|
|
21
|
+
# An optional list of item tags which will receive a discount if one of the required purchased items is purchased.
|
22
|
+
attr_accessor :item_tags
|
23
|
+
|
21
24
|
# A list of items which will receive a discount if one of the required purchase items is purchased.
|
22
25
|
attr_accessor :items
|
23
26
|
|
@@ -27,6 +30,9 @@ module UltracartClient
|
|
27
30
|
# Required items (at least one from the list) that must be purchased for coupon to be valid
|
28
31
|
attr_accessor :required_purchase_items
|
29
32
|
|
33
|
+
# Required item tags (at least one from the list) that must be purchase for coupon to be valid.
|
34
|
+
attr_accessor :required_purchase_items_tags
|
35
|
+
|
30
36
|
# The quantity of items that must be purchased for the discount to be applied.
|
31
37
|
attr_accessor :required_purchase_quantity
|
32
38
|
|
@@ -34,9 +40,11 @@ module UltracartClient
|
|
34
40
|
def self.attribute_map
|
35
41
|
{
|
36
42
|
:'discount_percent' => :'discount_percent',
|
43
|
+
:'item_tags' => :'item_tags',
|
37
44
|
:'items' => :'items',
|
38
45
|
:'limit' => :'limit',
|
39
46
|
:'required_purchase_items' => :'required_purchase_items',
|
47
|
+
:'required_purchase_items_tags' => :'required_purchase_items_tags',
|
40
48
|
:'required_purchase_quantity' => :'required_purchase_quantity'
|
41
49
|
}
|
42
50
|
end
|
@@ -50,9 +58,11 @@ module UltracartClient
|
|
50
58
|
def self.openapi_types
|
51
59
|
{
|
52
60
|
:'discount_percent' => :'Float',
|
61
|
+
:'item_tags' => :'Array<String>',
|
53
62
|
:'items' => :'Array<String>',
|
54
63
|
:'limit' => :'Integer',
|
55
64
|
:'required_purchase_items' => :'Array<String>',
|
65
|
+
:'required_purchase_items_tags' => :'Array<String>',
|
56
66
|
:'required_purchase_quantity' => :'Integer'
|
57
67
|
}
|
58
68
|
end
|
@@ -82,6 +92,12 @@ module UltracartClient
|
|
82
92
|
self.discount_percent = attributes[:'discount_percent']
|
83
93
|
end
|
84
94
|
|
95
|
+
if attributes.key?(:'item_tags')
|
96
|
+
if (value = attributes[:'item_tags']).is_a?(Array)
|
97
|
+
self.item_tags = value
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
85
101
|
if attributes.key?(:'items')
|
86
102
|
if (value = attributes[:'items']).is_a?(Array)
|
87
103
|
self.items = value
|
@@ -98,6 +114,12 @@ module UltracartClient
|
|
98
114
|
end
|
99
115
|
end
|
100
116
|
|
117
|
+
if attributes.key?(:'required_purchase_items_tags')
|
118
|
+
if (value = attributes[:'required_purchase_items_tags']).is_a?(Array)
|
119
|
+
self.required_purchase_items_tags = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
101
123
|
if attributes.key?(:'required_purchase_quantity')
|
102
124
|
self.required_purchase_quantity = attributes[:'required_purchase_quantity']
|
103
125
|
end
|
@@ -122,9 +144,11 @@ module UltracartClient
|
|
122
144
|
return true if self.equal?(o)
|
123
145
|
self.class == o.class &&
|
124
146
|
discount_percent == o.discount_percent &&
|
147
|
+
item_tags == o.item_tags &&
|
125
148
|
items == o.items &&
|
126
149
|
limit == o.limit &&
|
127
150
|
required_purchase_items == o.required_purchase_items &&
|
151
|
+
required_purchase_items_tags == o.required_purchase_items_tags &&
|
128
152
|
required_purchase_quantity == o.required_purchase_quantity
|
129
153
|
end
|
130
154
|
|
@@ -137,7 +161,7 @@ module UltracartClient
|
|
137
161
|
# Calculates hash code according to all attributes.
|
138
162
|
# @return [Integer] Hash code
|
139
163
|
def hash
|
140
|
-
[discount_percent, items, limit, required_purchase_items, required_purchase_quantity].hash
|
164
|
+
[discount_percent, item_tags, items, limit, required_purchase_items, required_purchase_items_tags, required_purchase_quantity].hash
|
141
165
|
end
|
142
166
|
|
143
167
|
# Builds the object from hash
|
@@ -48,6 +48,9 @@ module UltracartClient
|
|
48
48
|
# URI of the webhook delivered to
|
49
49
|
attr_accessor :uri
|
50
50
|
|
51
|
+
# webhook oid
|
52
|
+
attr_accessor :webhook_oid
|
53
|
+
|
51
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
55
|
def self.attribute_map
|
53
56
|
{
|
@@ -61,7 +64,8 @@ module UltracartClient
|
|
61
64
|
:'response_headers' => :'response_headers',
|
62
65
|
:'status_code' => :'status_code',
|
63
66
|
:'success' => :'success',
|
64
|
-
:'uri' => :'uri'
|
67
|
+
:'uri' => :'uri',
|
68
|
+
:'webhook_oid' => :'webhook_oid'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -83,7 +87,8 @@ module UltracartClient
|
|
83
87
|
:'response_headers' => :'Array<HTTPHeader>',
|
84
88
|
:'status_code' => :'Integer',
|
85
89
|
:'success' => :'Boolean',
|
86
|
-
:'uri' => :'String'
|
90
|
+
:'uri' => :'String',
|
91
|
+
:'webhook_oid' => :'Integer'
|
87
92
|
}
|
88
93
|
end
|
89
94
|
|
@@ -155,6 +160,10 @@ module UltracartClient
|
|
155
160
|
if attributes.key?(:'uri')
|
156
161
|
self.uri = attributes[:'uri']
|
157
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'webhook_oid')
|
165
|
+
self.webhook_oid = attributes[:'webhook_oid']
|
166
|
+
end
|
158
167
|
end
|
159
168
|
|
160
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -185,7 +194,8 @@ module UltracartClient
|
|
185
194
|
response_headers == o.response_headers &&
|
186
195
|
status_code == o.status_code &&
|
187
196
|
success == o.success &&
|
188
|
-
uri == o.uri
|
197
|
+
uri == o.uri &&
|
198
|
+
webhook_oid == o.webhook_oid
|
189
199
|
end
|
190
200
|
|
191
201
|
# @see the `==` method
|
@@ -197,7 +207,7 @@ module UltracartClient
|
|
197
207
|
# Calculates hash code according to all attributes.
|
198
208
|
# @return [Integer] Hash code
|
199
209
|
def hash
|
200
|
-
[delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
|
210
|
+
[delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri, webhook_oid].hash
|
201
211
|
end
|
202
212
|
|
203
213
|
# 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.236
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|