ultracart_api 4.1.175 → 4.1.176
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 +10 -2
- data/docs/TaxApi.md +163 -5
- data/docs/TaxCloudConfig.md +30 -0
- data/docs/TaxProviderAnrokProduct.md +24 -0
- data/docs/TaxProviderAnrokTestResult.md +22 -0
- data/docs/TaxProviderTaxCloud.md +24 -0
- data/docs/TaxProvidersResponse.md +2 -0
- data/lib/ultracart_api/api/tax_api.rb +190 -5
- data/lib/ultracart_api/models/tax_cloud_config.rb +280 -0
- data/lib/ultracart_api/models/tax_provider_anrok_product.rb +250 -0
- data/lib/ultracart_api/models/tax_provider_anrok_test_result.rb +241 -0
- data/lib/ultracart_api/models/tax_provider_tax_cloud.rb +249 -0
- data/lib/ultracart_api/models/tax_providers_response.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +9 -1
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UltracartClient
|
|
17
|
+
class TaxProviderAnrokTestResult
|
|
18
|
+
attr_accessor :details
|
|
19
|
+
|
|
20
|
+
# Products configured on the merchant's Anrok account, returned on a successful test
|
|
21
|
+
attr_accessor :products
|
|
22
|
+
|
|
23
|
+
# True if the connection was successful
|
|
24
|
+
attr_accessor :success
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'details' => :'details',
|
|
30
|
+
:'products' => :'products',
|
|
31
|
+
:'success' => :'success'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'details' => :'String',
|
|
44
|
+
:'products' => :'Array<TaxProviderAnrokProduct>',
|
|
45
|
+
:'success' => :'Boolean'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# List of attributes with nullable: true
|
|
50
|
+
def self.openapi_nullable
|
|
51
|
+
Set.new([
|
|
52
|
+
])
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
if (!attributes.is_a?(Hash))
|
|
59
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::TaxProviderAnrokTestResult` initialize method"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::TaxProviderAnrokTestResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'details')
|
|
71
|
+
self.details = attributes[:'details']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'products')
|
|
75
|
+
if (value = attributes[:'products']).is_a?(Array)
|
|
76
|
+
self.products = value
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'success')
|
|
81
|
+
self.success = attributes[:'success']
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
86
|
+
# @return Array for valid properties with the reasons
|
|
87
|
+
def list_invalid_properties
|
|
88
|
+
invalid_properties = Array.new
|
|
89
|
+
invalid_properties
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Check to see if the all the properties in the model are valid
|
|
93
|
+
# @return true if the model is valid
|
|
94
|
+
def valid?
|
|
95
|
+
true
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Checks equality by comparing each attribute.
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def ==(o)
|
|
101
|
+
return true if self.equal?(o)
|
|
102
|
+
self.class == o.class &&
|
|
103
|
+
details == o.details &&
|
|
104
|
+
products == o.products &&
|
|
105
|
+
success == o.success
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# @see the `==` method
|
|
109
|
+
# @param [Object] Object to be compared
|
|
110
|
+
def eql?(o)
|
|
111
|
+
self == o
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Calculates hash code according to all attributes.
|
|
115
|
+
# @return [Integer] Hash code
|
|
116
|
+
def hash
|
|
117
|
+
[details, products, success].hash
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Builds the object from hash
|
|
121
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
122
|
+
# @return [Object] Returns the model itself
|
|
123
|
+
def self.build_from_hash(attributes)
|
|
124
|
+
new.build_from_hash(attributes)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Builds the object from hash
|
|
128
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
129
|
+
# @return [Object] Returns the model itself
|
|
130
|
+
def build_from_hash(attributes)
|
|
131
|
+
return nil unless attributes.is_a?(Hash)
|
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
133
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
134
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
135
|
+
self.send("#{key}=", nil)
|
|
136
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
137
|
+
# check to ensure the input is an array given that the attribute
|
|
138
|
+
# is documented as an array but the input is not
|
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
141
|
+
end
|
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
self
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Deserializes the data based on type
|
|
151
|
+
# @param string type Data type
|
|
152
|
+
# @param string value Value to be deserialized
|
|
153
|
+
# @return [Object] Deserialized data
|
|
154
|
+
def _deserialize(type, value)
|
|
155
|
+
case type.to_sym
|
|
156
|
+
when :Time
|
|
157
|
+
Time.parse(value)
|
|
158
|
+
when :Date
|
|
159
|
+
Date.parse(value)
|
|
160
|
+
when :String
|
|
161
|
+
value.to_s
|
|
162
|
+
when :Integer
|
|
163
|
+
value.to_i
|
|
164
|
+
when :Float
|
|
165
|
+
value.to_f
|
|
166
|
+
when :Boolean
|
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
|
+
true
|
|
169
|
+
else
|
|
170
|
+
false
|
|
171
|
+
end
|
|
172
|
+
when :Object
|
|
173
|
+
# generic object (usually a Hash), return directly
|
|
174
|
+
value
|
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
|
181
|
+
{}.tap do |hash|
|
|
182
|
+
value.each do |k, v|
|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
else # model
|
|
187
|
+
# models (e.g. Pet) or oneOf
|
|
188
|
+
klass = UltracartClient.const_get(type)
|
|
189
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the string representation of the object
|
|
194
|
+
# @return [String] String presentation of the object
|
|
195
|
+
def to_s
|
|
196
|
+
to_hash.to_s
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_body
|
|
202
|
+
to_hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = self.send(attr)
|
|
211
|
+
if value.nil?
|
|
212
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
213
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
hash[param] = _to_hash(value)
|
|
217
|
+
end
|
|
218
|
+
hash
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Outputs non-array value in the form of hash
|
|
222
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
223
|
+
# @param [Object] value Any valid value
|
|
224
|
+
# @return [Hash] Returns the value in the form of hash
|
|
225
|
+
def _to_hash(value)
|
|
226
|
+
if value.is_a?(Array)
|
|
227
|
+
value.compact.map { |v| _to_hash(v) }
|
|
228
|
+
elsif value.is_a?(Hash)
|
|
229
|
+
{}.tap do |hash|
|
|
230
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
231
|
+
end
|
|
232
|
+
elsif value.respond_to? :to_hash
|
|
233
|
+
value.to_hash
|
|
234
|
+
else
|
|
235
|
+
value
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
#UltraCart REST API Version 2
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.0.1-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UltracartClient
|
|
17
|
+
class TaxProviderTaxCloud
|
|
18
|
+
attr_accessor :configuration
|
|
19
|
+
|
|
20
|
+
# Description
|
|
21
|
+
attr_accessor :description
|
|
22
|
+
|
|
23
|
+
# Selected
|
|
24
|
+
attr_accessor :selected
|
|
25
|
+
|
|
26
|
+
# Title
|
|
27
|
+
attr_accessor :title
|
|
28
|
+
|
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
|
+
def self.attribute_map
|
|
31
|
+
{
|
|
32
|
+
:'configuration' => :'configuration',
|
|
33
|
+
:'description' => :'description',
|
|
34
|
+
:'selected' => :'selected',
|
|
35
|
+
:'title' => :'title'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'configuration' => :'TaxCloudConfig',
|
|
48
|
+
:'description' => :'String',
|
|
49
|
+
:'selected' => :'Boolean',
|
|
50
|
+
:'title' => :'String'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# List of attributes with nullable: true
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
])
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Initializes the object
|
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
|
+
def initialize(attributes = {})
|
|
63
|
+
if (!attributes.is_a?(Hash))
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::TaxProviderTaxCloud` initialize method"
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::TaxProviderTaxCloud`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'configuration')
|
|
76
|
+
self.configuration = attributes[:'configuration']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'description')
|
|
80
|
+
self.description = attributes[:'description']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'selected')
|
|
84
|
+
self.selected = attributes[:'selected']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'title')
|
|
88
|
+
self.title = attributes[:'title']
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
93
|
+
# @return Array for valid properties with the reasons
|
|
94
|
+
def list_invalid_properties
|
|
95
|
+
invalid_properties = Array.new
|
|
96
|
+
invalid_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
def valid?
|
|
102
|
+
true
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Checks equality by comparing each attribute.
|
|
106
|
+
# @param [Object] Object to be compared
|
|
107
|
+
def ==(o)
|
|
108
|
+
return true if self.equal?(o)
|
|
109
|
+
self.class == o.class &&
|
|
110
|
+
configuration == o.configuration &&
|
|
111
|
+
description == o.description &&
|
|
112
|
+
selected == o.selected &&
|
|
113
|
+
title == o.title
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @see the `==` method
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def eql?(o)
|
|
119
|
+
self == o
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Calculates hash code according to all attributes.
|
|
123
|
+
# @return [Integer] Hash code
|
|
124
|
+
def hash
|
|
125
|
+
[configuration, description, selected, title].hash
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def self.build_from_hash(attributes)
|
|
132
|
+
new.build_from_hash(attributes)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
141
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
142
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
143
|
+
self.send("#{key}=", nil)
|
|
144
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
145
|
+
# check to ensure the input is an array given that the attribute
|
|
146
|
+
# is documented as an array but the input is not
|
|
147
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
148
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
149
|
+
end
|
|
150
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
151
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
self
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Deserializes the data based on type
|
|
159
|
+
# @param string type Data type
|
|
160
|
+
# @param string value Value to be deserialized
|
|
161
|
+
# @return [Object] Deserialized data
|
|
162
|
+
def _deserialize(type, value)
|
|
163
|
+
case type.to_sym
|
|
164
|
+
when :Time
|
|
165
|
+
Time.parse(value)
|
|
166
|
+
when :Date
|
|
167
|
+
Date.parse(value)
|
|
168
|
+
when :String
|
|
169
|
+
value.to_s
|
|
170
|
+
when :Integer
|
|
171
|
+
value.to_i
|
|
172
|
+
when :Float
|
|
173
|
+
value.to_f
|
|
174
|
+
when :Boolean
|
|
175
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
176
|
+
true
|
|
177
|
+
else
|
|
178
|
+
false
|
|
179
|
+
end
|
|
180
|
+
when :Object
|
|
181
|
+
# generic object (usually a Hash), return directly
|
|
182
|
+
value
|
|
183
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
184
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
185
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
186
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
187
|
+
k_type = Regexp.last_match[:k_type]
|
|
188
|
+
v_type = Regexp.last_match[:v_type]
|
|
189
|
+
{}.tap do |hash|
|
|
190
|
+
value.each do |k, v|
|
|
191
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
else # model
|
|
195
|
+
# models (e.g. Pet) or oneOf
|
|
196
|
+
klass = UltracartClient.const_get(type)
|
|
197
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the string representation of the object
|
|
202
|
+
# @return [String] String presentation of the object
|
|
203
|
+
def to_s
|
|
204
|
+
to_hash.to_s
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
208
|
+
# @return [Hash] Returns the object in the form of hash
|
|
209
|
+
def to_body
|
|
210
|
+
to_hash
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the object in the form of hash
|
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
|
215
|
+
def to_hash
|
|
216
|
+
hash = {}
|
|
217
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
218
|
+
value = self.send(attr)
|
|
219
|
+
if value.nil?
|
|
220
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
221
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
hash[param] = _to_hash(value)
|
|
225
|
+
end
|
|
226
|
+
hash
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Outputs non-array value in the form of hash
|
|
230
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
231
|
+
# @param [Object] value Any valid value
|
|
232
|
+
# @return [Hash] Returns the value in the form of hash
|
|
233
|
+
def _to_hash(value)
|
|
234
|
+
if value.is_a?(Array)
|
|
235
|
+
value.compact.map { |v| _to_hash(v) }
|
|
236
|
+
elsif value.is_a?(Hash)
|
|
237
|
+
{}.tap do |hash|
|
|
238
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
239
|
+
end
|
|
240
|
+
elsif value.respond_to? :to_hash
|
|
241
|
+
value.to_hash
|
|
242
|
+
else
|
|
243
|
+
value
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
end
|
|
@@ -30,6 +30,8 @@ module UltracartClient
|
|
|
30
30
|
# Indicates if API call was successful
|
|
31
31
|
attr_accessor :success
|
|
32
32
|
|
|
33
|
+
attr_accessor :taxcloud
|
|
34
|
+
|
|
33
35
|
attr_accessor :taxjar
|
|
34
36
|
|
|
35
37
|
attr_accessor :ultracart
|
|
@@ -46,6 +48,7 @@ module UltracartClient
|
|
|
46
48
|
:'_self' => :'self',
|
|
47
49
|
:'sovos' => :'sovos',
|
|
48
50
|
:'success' => :'success',
|
|
51
|
+
:'taxcloud' => :'taxcloud',
|
|
49
52
|
:'taxjar' => :'taxjar',
|
|
50
53
|
:'ultracart' => :'ultracart',
|
|
51
54
|
:'warning' => :'warning'
|
|
@@ -67,6 +70,7 @@ module UltracartClient
|
|
|
67
70
|
:'_self' => :'TaxProviderSelf',
|
|
68
71
|
:'sovos' => :'TaxProviderSovos',
|
|
69
72
|
:'success' => :'Boolean',
|
|
73
|
+
:'taxcloud' => :'TaxProviderTaxCloud',
|
|
70
74
|
:'taxjar' => :'TaxProviderTaxJar',
|
|
71
75
|
:'ultracart' => :'TaxProviderUltraCart',
|
|
72
76
|
:'warning' => :'Warning'
|
|
@@ -122,6 +126,10 @@ module UltracartClient
|
|
|
122
126
|
self.success = attributes[:'success']
|
|
123
127
|
end
|
|
124
128
|
|
|
129
|
+
if attributes.key?(:'taxcloud')
|
|
130
|
+
self.taxcloud = attributes[:'taxcloud']
|
|
131
|
+
end
|
|
132
|
+
|
|
125
133
|
if attributes.key?(:'taxjar')
|
|
126
134
|
self.taxjar = attributes[:'taxjar']
|
|
127
135
|
end
|
|
@@ -160,6 +168,7 @@ module UltracartClient
|
|
|
160
168
|
_self == o._self &&
|
|
161
169
|
sovos == o.sovos &&
|
|
162
170
|
success == o.success &&
|
|
171
|
+
taxcloud == o.taxcloud &&
|
|
163
172
|
taxjar == o.taxjar &&
|
|
164
173
|
ultracart == o.ultracart &&
|
|
165
174
|
warning == o.warning
|
|
@@ -174,7 +183,7 @@ module UltracartClient
|
|
|
174
183
|
# Calculates hash code according to all attributes.
|
|
175
184
|
# @return [Integer] Hash code
|
|
176
185
|
def hash
|
|
177
|
-
[anrok, avalara, error, metadata, _self, sovos, success, taxjar, ultracart, warning].hash
|
|
186
|
+
[anrok, avalara, error, metadata, _self, sovos, success, taxcloud, taxjar, ultracart, warning].hash
|
|
178
187
|
end
|
|
179
188
|
|
|
180
189
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1114,6 +1114,7 @@ require 'ultracart_api/models/store_front'
|
|
|
1114
1114
|
require 'ultracart_api/models/store_front_page_content_attribute'
|
|
1115
1115
|
require 'ultracart_api/models/store_fronts_response'
|
|
1116
1116
|
require 'ultracart_api/models/tax_city'
|
|
1117
|
+
require 'ultracart_api/models/tax_cloud_config'
|
|
1117
1118
|
require 'ultracart_api/models/tax_country'
|
|
1118
1119
|
require 'ultracart_api/models/tax_country_code'
|
|
1119
1120
|
require 'ultracart_api/models/tax_county'
|
|
@@ -1121,6 +1122,8 @@ require 'ultracart_api/models/tax_jar_config'
|
|
|
1121
1122
|
require 'ultracart_api/models/tax_postal_code'
|
|
1122
1123
|
require 'ultracart_api/models/tax_provider_activate_result'
|
|
1123
1124
|
require 'ultracart_api/models/tax_provider_anrok'
|
|
1125
|
+
require 'ultracart_api/models/tax_provider_anrok_product'
|
|
1126
|
+
require 'ultracart_api/models/tax_provider_anrok_test_result'
|
|
1124
1127
|
require 'ultracart_api/models/tax_provider_avalara'
|
|
1125
1128
|
require 'ultracart_api/models/tax_provider_avalara_companies_result'
|
|
1126
1129
|
require 'ultracart_api/models/tax_provider_avalara_company'
|
|
@@ -1128,6 +1131,7 @@ require 'ultracart_api/models/tax_provider_self'
|
|
|
1128
1131
|
require 'ultracart_api/models/tax_provider_self_countries_response'
|
|
1129
1132
|
require 'ultracart_api/models/tax_provider_self_regions_response'
|
|
1130
1133
|
require 'ultracart_api/models/tax_provider_sovos'
|
|
1134
|
+
require 'ultracart_api/models/tax_provider_tax_cloud'
|
|
1131
1135
|
require 'ultracart_api/models/tax_provider_tax_jar'
|
|
1132
1136
|
require 'ultracart_api/models/tax_provider_test_result'
|
|
1133
1137
|
require 'ultracart_api/models/tax_provider_ultra_cart'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.176
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1179,6 +1179,7 @@ files:
|
|
|
1179
1179
|
- docs/StorefrontApi.md
|
|
1180
1180
|
- docs/TaxApi.md
|
|
1181
1181
|
- docs/TaxCity.md
|
|
1182
|
+
- docs/TaxCloudConfig.md
|
|
1182
1183
|
- docs/TaxCountry.md
|
|
1183
1184
|
- docs/TaxCountryCode.md
|
|
1184
1185
|
- docs/TaxCounty.md
|
|
@@ -1186,6 +1187,8 @@ files:
|
|
|
1186
1187
|
- docs/TaxPostalCode.md
|
|
1187
1188
|
- docs/TaxProviderActivateResult.md
|
|
1188
1189
|
- docs/TaxProviderAnrok.md
|
|
1190
|
+
- docs/TaxProviderAnrokProduct.md
|
|
1191
|
+
- docs/TaxProviderAnrokTestResult.md
|
|
1189
1192
|
- docs/TaxProviderAvalara.md
|
|
1190
1193
|
- docs/TaxProviderAvalaraCompaniesResult.md
|
|
1191
1194
|
- docs/TaxProviderAvalaraCompany.md
|
|
@@ -1193,6 +1196,7 @@ files:
|
|
|
1193
1196
|
- docs/TaxProviderSelfCountriesResponse.md
|
|
1194
1197
|
- docs/TaxProviderSelfRegionsResponse.md
|
|
1195
1198
|
- docs/TaxProviderSovos.md
|
|
1199
|
+
- docs/TaxProviderTaxCloud.md
|
|
1196
1200
|
- docs/TaxProviderTaxJar.md
|
|
1197
1201
|
- docs/TaxProviderTestResult.md
|
|
1198
1202
|
- docs/TaxProviderUltraCart.md
|
|
@@ -2384,6 +2388,7 @@ files:
|
|
|
2384
2388
|
- lib/ultracart_api/models/store_front_page_content_attribute.rb
|
|
2385
2389
|
- lib/ultracart_api/models/store_fronts_response.rb
|
|
2386
2390
|
- lib/ultracart_api/models/tax_city.rb
|
|
2391
|
+
- lib/ultracart_api/models/tax_cloud_config.rb
|
|
2387
2392
|
- lib/ultracart_api/models/tax_country.rb
|
|
2388
2393
|
- lib/ultracart_api/models/tax_country_code.rb
|
|
2389
2394
|
- lib/ultracart_api/models/tax_county.rb
|
|
@@ -2391,6 +2396,8 @@ files:
|
|
|
2391
2396
|
- lib/ultracart_api/models/tax_postal_code.rb
|
|
2392
2397
|
- lib/ultracart_api/models/tax_provider_activate_result.rb
|
|
2393
2398
|
- lib/ultracart_api/models/tax_provider_anrok.rb
|
|
2399
|
+
- lib/ultracart_api/models/tax_provider_anrok_product.rb
|
|
2400
|
+
- lib/ultracart_api/models/tax_provider_anrok_test_result.rb
|
|
2394
2401
|
- lib/ultracart_api/models/tax_provider_avalara.rb
|
|
2395
2402
|
- lib/ultracart_api/models/tax_provider_avalara_companies_result.rb
|
|
2396
2403
|
- lib/ultracart_api/models/tax_provider_avalara_company.rb
|
|
@@ -2398,6 +2405,7 @@ files:
|
|
|
2398
2405
|
- lib/ultracart_api/models/tax_provider_self_countries_response.rb
|
|
2399
2406
|
- lib/ultracart_api/models/tax_provider_self_regions_response.rb
|
|
2400
2407
|
- lib/ultracart_api/models/tax_provider_sovos.rb
|
|
2408
|
+
- lib/ultracart_api/models/tax_provider_tax_cloud.rb
|
|
2401
2409
|
- lib/ultracart_api/models/tax_provider_tax_jar.rb
|
|
2402
2410
|
- lib/ultracart_api/models/tax_provider_test_result.rb
|
|
2403
2411
|
- lib/ultracart_api/models/tax_provider_ultra_cart.rb
|