ultracart_api 3.10.217 → 3.10.218
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 +1 -0
- 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: e0a3a0ad4c9b5bd8ce5f345a94018164a6116b91418c9c3f597296f7b05fbf43
|
4
|
+
data.tar.gz: f4e3a5ec3cd71cc59b37b6dbcd38a0b9574698ec633e69d9fbf5711b0ce52aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b63ef40931d44aa1776f9955f60e7ae40ca21b0cd12c17be80071aa09e1d99a255384ead4384b42a120399c49e3efd952c8f083893457ffafb59070d50bc48e8
|
7
|
+
data.tar.gz: 00cbfcd55708c3259a54f11372b7e5214743264109753b03a96168148f9dbdc8e2107f40ab6edcb064c5cf31e49e47c04dde45f97a0b9f4f8ca4459797ff3ad0
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.218
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.218.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.218.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.218'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -1512,6 +1512,7 @@ Not every change is committed to every SDK.
|
|
1512
1512
|
|
1513
1513
|
| Version | Date | Comments |
|
1514
1514
|
| --: | :-: | --- |
|
1515
|
+
| 3.10.218 | 11/04/2024 | item - new constant for auto order schedule of every 5 months |
|
1515
1516
|
| 3.10.217 | 10/24/2024 | storefront page attribute edit method |
|
1516
1517
|
| 3.10.216 | 09/18/2024 | order payment constant for PayPal Fastlane |
|
1517
1518
|
| 3.10.215 | 08/29/2024 | add hold_for_transmission to item shipping object |
|
data/docs/WebhookLog.md
CHANGED
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
|
|
14
14
|
**status_code** | **Integer** | HTTP status code received from the server | [optional]
|
15
15
|
**success** | **BOOLEAN** | True if the delivery was successful | [optional]
|
16
16
|
**uri** | **String** | URI of the webhook delivered to | [optional]
|
17
|
+
**webhook_oid** | **Integer** | webhook oid | [optional]
|
17
18
|
|
18
19
|
|
@@ -322,7 +322,7 @@ module UltracartClient
|
|
322
322
|
# Check to see if the all the properties in the model are valid
|
323
323
|
# @return true if the model is valid
|
324
324
|
def valid?
|
325
|
-
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'])
|
325
|
+
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'])
|
326
326
|
return false unless frequency_validator.valid?(@frequency)
|
327
327
|
true
|
328
328
|
end
|
@@ -330,7 +330,7 @@ module UltracartClient
|
|
330
330
|
# Custom attribute writer method checking allowed values (enum).
|
331
331
|
# @param [Object] frequency Object to be assigned
|
332
332
|
def frequency=(frequency)
|
333
|
-
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'])
|
333
|
+
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'])
|
334
334
|
unless validator.valid?(frequency)
|
335
335
|
fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
|
336
336
|
end
|
@@ -94,7 +94,7 @@ module UltracartClient
|
|
94
94
|
# Check to see if the all the properties in the model are valid
|
95
95
|
# @return true if the model is valid
|
96
96
|
def valid?
|
97
|
-
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'])
|
97
|
+
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'])
|
98
98
|
return false unless frequency_validator.valid?(@frequency)
|
99
99
|
true
|
100
100
|
end
|
@@ -102,7 +102,7 @@ module UltracartClient
|
|
102
102
|
# Custom attribute writer method checking allowed values (enum).
|
103
103
|
# @param [Object] frequency Object to be assigned
|
104
104
|
def frequency=(frequency)
|
105
|
-
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'])
|
105
|
+
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'])
|
106
106
|
unless validator.valid?(frequency)
|
107
107
|
fail ArgumentError, 'invalid value for "frequency", must be one of #{validator.allowable_values}.'
|
108
108
|
end
|
@@ -136,7 +136,7 @@ module UltracartClient
|
|
136
136
|
# Check to see if the all the properties in the model are valid
|
137
137
|
# @return true if the model is valid
|
138
138
|
def valid?
|
139
|
-
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'])
|
139
|
+
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'])
|
140
140
|
return false unless auto_order_schedule_validator.valid?(@auto_order_schedule)
|
141
141
|
return false if !@merchant_item_id.nil? && @merchant_item_id.to_s.length > 20
|
142
142
|
true
|
@@ -145,7 +145,7 @@ module UltracartClient
|
|
145
145
|
# Custom attribute writer method checking allowed values (enum).
|
146
146
|
# @param [Object] auto_order_schedule Object to be assigned
|
147
147
|
def auto_order_schedule=(auto_order_schedule)
|
148
|
-
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'])
|
148
|
+
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'])
|
149
149
|
unless validator.valid?(auto_order_schedule)
|
150
150
|
fail ArgumentError, 'invalid value for "auto_order_schedule", must be one of #{validator.allowable_values}.'
|
151
151
|
end
|
@@ -47,6 +47,9 @@ module UltracartClient
|
|
47
47
|
# URI of the webhook delivered to
|
48
48
|
attr_accessor :uri
|
49
49
|
|
50
|
+
# webhook oid
|
51
|
+
attr_accessor :webhook_oid
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module UltracartClient
|
|
60
63
|
:'response_headers' => :'response_headers',
|
61
64
|
:'status_code' => :'status_code',
|
62
65
|
:'success' => :'success',
|
63
|
-
:'uri' => :'uri'
|
66
|
+
:'uri' => :'uri',
|
67
|
+
:'webhook_oid' => :'webhook_oid'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -77,7 +81,8 @@ module UltracartClient
|
|
77
81
|
:'response_headers' => :'Array<HTTPHeader>',
|
78
82
|
:'status_code' => :'Integer',
|
79
83
|
:'success' => :'BOOLEAN',
|
80
|
-
:'uri' => :'String'
|
84
|
+
:'uri' => :'String',
|
85
|
+
:'webhook_oid' => :'Integer'
|
81
86
|
}
|
82
87
|
end
|
83
88
|
|
@@ -136,6 +141,10 @@ module UltracartClient
|
|
136
141
|
if attributes.has_key?(:'uri')
|
137
142
|
self.uri = attributes[:'uri']
|
138
143
|
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'webhook_oid')
|
146
|
+
self.webhook_oid = attributes[:'webhook_oid']
|
147
|
+
end
|
139
148
|
end
|
140
149
|
|
141
150
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -166,7 +175,8 @@ module UltracartClient
|
|
166
175
|
response_headers == o.response_headers &&
|
167
176
|
status_code == o.status_code &&
|
168
177
|
success == o.success &&
|
169
|
-
uri == o.uri
|
178
|
+
uri == o.uri &&
|
179
|
+
webhook_oid == o.webhook_oid
|
170
180
|
end
|
171
181
|
|
172
182
|
# @see the `==` method
|
@@ -178,7 +188,7 @@ module UltracartClient
|
|
178
188
|
# Calculates hash code according to all attributes.
|
179
189
|
# @return [Fixnum] Hash code
|
180
190
|
def hash
|
181
|
-
[delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri].hash
|
191
|
+
[delivery_dts, duration, queue_delay, request, request_headers, request_id, response, response_headers, status_code, success, uri, webhook_oid].hash
|
182
192
|
end
|
183
193
|
|
184
194
|
# 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: 3.10.
|
4
|
+
version: 3.10.218
|
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
|