ultracart_api 3.6.37 → 3.6.38
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 +6 -4
- data/docs/AutoOrder.md +1 -0
- data/docs/AutoOrderLog.md +9 -0
- data/lib/ultracart_api/models/auto_order.rb +13 -1
- data/lib/ultracart_api/models/auto_order_log.rb +195 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 102ee2f5778707a1efcba282b40215b152323c66e7a21ecd72e3709bae9d8d8a
|
4
|
+
data.tar.gz: 5d4a8c891e74e55bc272636e1f28422c584a6ee4f0b4a70ecc76bdcb00bad373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a1306b7d4e80cf9f2961e5953f99bda96018e3418d23864916f37302a408b1c929f4fb399f44acdaf85a54b7c52819072d348aceb669c1511ee8a270692b4f6
|
7
|
+
data.tar.gz: 708cb757c42713c350557b999c25e2db493289c5c7a8e0769c2f9ad610fd3e7bb2d442f3d00e21a7de7a07d7d0b246f9bc1ef34722a8d4c6872bf21e3fea38a8
|
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.6.
|
10
|
+
- Package version: 3.6.38
|
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.6.
|
27
|
+
gem install ./ultracart_api-3.6.38.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.6.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.6.38.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.6.
|
35
|
+
gem 'ultracart_api', '~> 3.6.38'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -449,6 +449,7 @@ Class | Method | HTTP request | Description
|
|
449
449
|
- [UltracartClient::AutoOrderItemFutureSchedule](docs/AutoOrderItemFutureSchedule.md)
|
450
450
|
- [UltracartClient::AutoOrderItemOption](docs/AutoOrderItemOption.md)
|
451
451
|
- [UltracartClient::AutoOrderItemSimpleSchedule](docs/AutoOrderItemSimpleSchedule.md)
|
452
|
+
- [UltracartClient::AutoOrderLog](docs/AutoOrderLog.md)
|
452
453
|
- [UltracartClient::AutoOrderQuery](docs/AutoOrderQuery.md)
|
453
454
|
- [UltracartClient::AutoOrderQueryBatch](docs/AutoOrderQueryBatch.md)
|
454
455
|
- [UltracartClient::AutoOrderResponse](docs/AutoOrderResponse.md)
|
@@ -1128,6 +1129,7 @@ Not every change is committed to every SDK.
|
|
1128
1129
|
|
1129
1130
|
| Version | Date | Comments |
|
1130
1131
|
| --: | :-: | --- |
|
1132
|
+
| 3.6.38 | 02/07/2022 | Exposed auto order logs |
|
1131
1133
|
| 3.6.37 | 02/04/2022 | insurance type for insurance payments |
|
1132
1134
|
| 3.6.36 | 12/29/2021 | Mail actual post card flag added to test method |
|
1133
1135
|
| 3.6.35 | 12/14/2021 | Add cancel_auto_order option to the accounts receivable retry configuration |
|
data/docs/AutoOrder.md
CHANGED
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
|
|
16
16
|
**enabled** | **BOOLEAN** | True if this auto order is enabled | [optional]
|
17
17
|
**failure_reason** | **String** | The reason this auto order failed during the last rebill attempt | [optional]
|
18
18
|
**items** | [**Array<AutoOrderItem>**](AutoOrderItem.md) | The items that are setup to rebill | [optional]
|
19
|
+
**logs** | [**Array<AutoOrderLog>**](AutoOrderLog.md) | Logs associated with this auto order | [optional]
|
19
20
|
**next_attempt** | **String** | The next time that the auto order will be attempted for processing | [optional]
|
20
21
|
**original_order** | [**Order**](Order.md) | | [optional]
|
21
22
|
**original_order_id** | **String** | The original order id that this auto order is associated with. | [optional]
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# UltracartClient::AutoOrderLog
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**log_dts** | **String** | Date/time that the log message was added | [optional]
|
7
|
+
**log_message** | **String** | Log message | [optional]
|
8
|
+
|
9
|
+
|
@@ -53,6 +53,9 @@ module UltracartClient
|
|
53
53
|
# The items that are setup to rebill
|
54
54
|
attr_accessor :items
|
55
55
|
|
56
|
+
# Logs associated with this auto order
|
57
|
+
attr_accessor :logs
|
58
|
+
|
56
59
|
# The next time that the auto order will be attempted for processing
|
57
60
|
attr_accessor :next_attempt
|
58
61
|
|
@@ -111,6 +114,7 @@ module UltracartClient
|
|
111
114
|
:'enabled' => :'enabled',
|
112
115
|
:'failure_reason' => :'failure_reason',
|
113
116
|
:'items' => :'items',
|
117
|
+
:'logs' => :'logs',
|
114
118
|
:'next_attempt' => :'next_attempt',
|
115
119
|
:'original_order' => :'original_order',
|
116
120
|
:'original_order_id' => :'original_order_id',
|
@@ -137,6 +141,7 @@ module UltracartClient
|
|
137
141
|
:'enabled' => :'BOOLEAN',
|
138
142
|
:'failure_reason' => :'String',
|
139
143
|
:'items' => :'Array<AutoOrderItem>',
|
144
|
+
:'logs' => :'Array<AutoOrderLog>',
|
140
145
|
:'next_attempt' => :'String',
|
141
146
|
:'original_order' => :'Order',
|
142
147
|
:'original_order_id' => :'String',
|
@@ -209,6 +214,12 @@ module UltracartClient
|
|
209
214
|
end
|
210
215
|
end
|
211
216
|
|
217
|
+
if attributes.has_key?(:'logs')
|
218
|
+
if (value = attributes[:'logs']).is_a?(Array)
|
219
|
+
self.logs = value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
212
223
|
if attributes.has_key?(:'next_attempt')
|
213
224
|
self.next_attempt = attributes[:'next_attempt']
|
214
225
|
end
|
@@ -283,6 +294,7 @@ module UltracartClient
|
|
283
294
|
enabled == o.enabled &&
|
284
295
|
failure_reason == o.failure_reason &&
|
285
296
|
items == o.items &&
|
297
|
+
logs == o.logs &&
|
286
298
|
next_attempt == o.next_attempt &&
|
287
299
|
original_order == o.original_order &&
|
288
300
|
original_order_id == o.original_order_id &&
|
@@ -301,7 +313,7 @@ module UltracartClient
|
|
301
313
|
# Calculates hash code according to all attributes.
|
302
314
|
# @return [Fixnum] Hash code
|
303
315
|
def hash
|
304
|
-
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
316
|
+
[auto_order_code, auto_order_oid, cancel_after_next_x_orders, cancel_downgrade, cancel_upgrade, canceled_by_user, canceled_dts, completed, credit_card_attempt, disabled_dts, enabled, failure_reason, items, logs, next_attempt, original_order, original_order_id, override_affiliate_id, rebill_orders, rotating_transaction_gateway_code, status].hash
|
305
317
|
end
|
306
318
|
|
307
319
|
# Builds the object from hash
|
@@ -0,0 +1,195 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class AutoOrderLog
|
17
|
+
# Date/time that the log message was added
|
18
|
+
attr_accessor :log_dts
|
19
|
+
|
20
|
+
# Log message
|
21
|
+
attr_accessor :log_message
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'log_dts' => :'log_dts',
|
27
|
+
:'log_message' => :'log_message'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'log_dts' => :'String',
|
35
|
+
:'log_message' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'log_dts')
|
48
|
+
self.log_dts = attributes[:'log_dts']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'log_message')
|
52
|
+
self.log_message = attributes[:'log_message']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Checks equality by comparing each attribute.
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def ==(o)
|
72
|
+
return true if self.equal?(o)
|
73
|
+
self.class == o.class &&
|
74
|
+
log_dts == o.log_dts &&
|
75
|
+
log_message == o.log_message
|
76
|
+
end
|
77
|
+
|
78
|
+
# @see the `==` method
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def eql?(o)
|
81
|
+
self == o
|
82
|
+
end
|
83
|
+
|
84
|
+
# Calculates hash code according to all attributes.
|
85
|
+
# @return [Fixnum] Hash code
|
86
|
+
def hash
|
87
|
+
[log_dts, log_message].hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Builds the object from hash
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
# @return [Object] Returns the model itself
|
93
|
+
def build_from_hash(attributes)
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
97
|
+
# check to ensure the input is an array given that the attribute
|
98
|
+
# is documented as an array but the input is not
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
+
end
|
106
|
+
|
107
|
+
self
|
108
|
+
end
|
109
|
+
|
110
|
+
# Deserializes the data based on type
|
111
|
+
# @param string type Data type
|
112
|
+
# @param string value Value to be deserialized
|
113
|
+
# @return [Object] Deserialized data
|
114
|
+
def _deserialize(type, value)
|
115
|
+
case type.to_sym
|
116
|
+
when :DateTime
|
117
|
+
DateTime.parse(value)
|
118
|
+
when :Date
|
119
|
+
Date.parse(value)
|
120
|
+
when :String
|
121
|
+
value.to_s
|
122
|
+
when :Integer
|
123
|
+
value.to_i
|
124
|
+
when :Float
|
125
|
+
value.to_f
|
126
|
+
when :BOOLEAN
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
+
true
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
when :Object
|
133
|
+
# generic object (usually a Hash), return directly
|
134
|
+
value
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
141
|
+
{}.tap do |hash|
|
142
|
+
value.each do |k, v|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
else # model
|
147
|
+
temp_model = UltracartClient.const_get(type).new
|
148
|
+
temp_model.build_from_hash(value)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns the string representation of the object
|
153
|
+
# @return [String] String presentation of the object
|
154
|
+
def to_s
|
155
|
+
to_hash.to_s
|
156
|
+
end
|
157
|
+
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_body
|
161
|
+
to_hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = self.send(attr)
|
170
|
+
next if value.nil?
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Outputs non-array value in the form of hash
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
178
|
+
# @param [Object] value Any valid value
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
180
|
+
def _to_hash(value)
|
181
|
+
if value.is_a?(Array)
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
183
|
+
elsif value.is_a?(Hash)
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
+
end
|
187
|
+
elsif value.respond_to? :to_hash
|
188
|
+
value.to_hash
|
189
|
+
else
|
190
|
+
value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|
195
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -41,6 +41,7 @@ require 'ultracart_api/models/auto_order_item'
|
|
41
41
|
require 'ultracart_api/models/auto_order_item_future_schedule'
|
42
42
|
require 'ultracart_api/models/auto_order_item_option'
|
43
43
|
require 'ultracart_api/models/auto_order_item_simple_schedule'
|
44
|
+
require 'ultracart_api/models/auto_order_log'
|
44
45
|
require 'ultracart_api/models/auto_order_query'
|
45
46
|
require 'ultracart_api/models/auto_order_query_batch'
|
46
47
|
require 'ultracart_api/models/auto_order_response'
|
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.6.
|
4
|
+
version: 3.6.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- docs/AutoOrderItemFutureSchedule.md
|
228
228
|
- docs/AutoOrderItemOption.md
|
229
229
|
- docs/AutoOrderItemSimpleSchedule.md
|
230
|
+
- docs/AutoOrderLog.md
|
230
231
|
- docs/AutoOrderQuery.md
|
231
232
|
- docs/AutoOrderQueryBatch.md
|
232
233
|
- docs/AutoOrderResponse.md
|
@@ -903,6 +904,7 @@ files:
|
|
903
904
|
- lib/ultracart_api/models/auto_order_item_future_schedule.rb
|
904
905
|
- lib/ultracart_api/models/auto_order_item_option.rb
|
905
906
|
- lib/ultracart_api/models/auto_order_item_simple_schedule.rb
|
907
|
+
- lib/ultracart_api/models/auto_order_log.rb
|
906
908
|
- lib/ultracart_api/models/auto_order_query.rb
|
907
909
|
- lib/ultracart_api/models/auto_order_query_batch.rb
|
908
910
|
- lib/ultracart_api/models/auto_order_response.rb
|