ultracart_api 4.0.234 → 4.0.235
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 +5 -4
- 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/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: 00e9179c2b04dc6ec9942b1c8cd447393c002569d4608e9bfaf9ccf2c3a90f2a
|
4
|
+
data.tar.gz: 4ef276ff0b2ae0975dd408d65a58a36a9ff297e8a9918fbb68863530ee32f330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b813b0cdf171586ca718ff369efac6159b71eefc219a929bf1654eb457d9bbff04edd848d1b27a3ce5404a24cb8380c4807543ad3cd4f9e67bb8672476c56cb8
|
7
|
+
data.tar.gz: f94e53de2f48dfc12222bd9a94fb4ddbcffd5fb2f89b8f9f2bdb3efa787003e370c08077871fed8c714e75c03c4828d9bf26cbea9d3418eb487714c70a54a41e
|
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.235
|
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.235.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.235.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.235'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1520,6 +1520,7 @@ Not every change is committed to every SDK.
|
|
1520
1520
|
|
1521
1521
|
| Version | Date | Comments |
|
1522
1522
|
| --: | :-: | --- |
|
1523
|
+
| 4.0.235 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
1523
1524
|
| 4.0.234 | 10/24/2024 | storefront page attribute edit method |
|
1524
1525
|
| 4.0.233 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
1525
1526
|
| 4.0.232 | 08/29/2024 | add hold_for_transmission to item shipping object |
|
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
|
@@ -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.235
|
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-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|