ultracart_api 3.8.8 → 3.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -6
- data/docs/AddLibraryItemRequest.md +1 -0
- data/docs/Browser.md +10 -0
- data/docs/BrowserDevice.md +8 -0
- data/docs/BrowserOS.md +12 -0
- data/docs/BrowserUserAgent.md +11 -0
- data/docs/Cart.md +1 -0
- data/docs/DistributionCenter.md +1 -0
- data/docs/EmailCommseqPostcard.md +8 -0
- data/docs/GiftCertificate.md +2 -0
- data/docs/ItemTax.md +1 -0
- data/docs/OrderCheckout.md +2 -0
- data/docs/OrderItem.md +1 -0
- data/docs/TaxProviderUltraCartState.md +3 -0
- data/docs/TaxState.md +3 -0
- data/lib/ultracart_api/models/add_library_item_request.rb +11 -1
- data/lib/ultracart_api/models/browser.rb +202 -0
- data/lib/ultracart_api/models/browser_device.rb +184 -0
- data/lib/ultracart_api/models/browser_os.rb +220 -0
- data/lib/ultracart_api/models/browser_user_agent.rb +211 -0
- data/lib/ultracart_api/models/cart.rb +11 -1
- data/lib/ultracart_api/models/customer_tag.rb +5 -5
- data/lib/ultracart_api/models/distribution_center.rb +11 -1
- data/lib/ultracart_api/models/email_commseq_postcard.rb +81 -1
- data/lib/ultracart_api/models/gift_certificate.rb +36 -1
- data/lib/ultracart_api/models/item_tax.rb +45 -1
- data/lib/ultracart_api/models/order_checkout.rb +20 -1
- data/lib/ultracart_api/models/order_item.rb +45 -1
- data/lib/ultracart_api/models/tax_provider_ultra_cart_state.rb +31 -1
- data/lib/ultracart_api/models/tax_state.rb +31 -1
- data/lib/ultracart_api/models/user.rb +15 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
@@ -35,6 +35,15 @@ module UltracartClient
|
|
35
35
|
# Flag instructing engine to not collect state tax for this state
|
36
36
|
attr_accessor :dont_collect_state
|
37
37
|
|
38
|
+
# True if digital items are exempt from sales tax in this state.
|
39
|
+
attr_accessor :exempt_digital_items
|
40
|
+
|
41
|
+
# True if physical items are exempt from sales tax in this state.
|
42
|
+
attr_accessor :exempt_physical_items
|
43
|
+
|
44
|
+
# True if service items are exempt from sales tax in this state.
|
45
|
+
attr_accessor :exempt_service_items
|
46
|
+
|
38
47
|
# State code
|
39
48
|
attr_accessor :state_code
|
40
49
|
|
@@ -69,6 +78,9 @@ module UltracartClient
|
|
69
78
|
:'dont_collect_county' => :'dont_collect_county',
|
70
79
|
:'dont_collect_postal_code' => :'dont_collect_postal_code',
|
71
80
|
:'dont_collect_state' => :'dont_collect_state',
|
81
|
+
:'exempt_digital_items' => :'exempt_digital_items',
|
82
|
+
:'exempt_physical_items' => :'exempt_physical_items',
|
83
|
+
:'exempt_service_items' => :'exempt_service_items',
|
72
84
|
:'state_code' => :'state_code',
|
73
85
|
:'state_oid' => :'state_oid',
|
74
86
|
:'tax_gift_charge' => :'tax_gift_charge',
|
@@ -90,6 +102,9 @@ module UltracartClient
|
|
90
102
|
:'dont_collect_county' => :'BOOLEAN',
|
91
103
|
:'dont_collect_postal_code' => :'BOOLEAN',
|
92
104
|
:'dont_collect_state' => :'BOOLEAN',
|
105
|
+
:'exempt_digital_items' => :'BOOLEAN',
|
106
|
+
:'exempt_physical_items' => :'BOOLEAN',
|
107
|
+
:'exempt_service_items' => :'BOOLEAN',
|
93
108
|
:'state_code' => :'String',
|
94
109
|
:'state_oid' => :'Integer',
|
95
110
|
:'tax_gift_charge' => :'BOOLEAN',
|
@@ -139,6 +154,18 @@ module UltracartClient
|
|
139
154
|
self.dont_collect_state = attributes[:'dont_collect_state']
|
140
155
|
end
|
141
156
|
|
157
|
+
if attributes.has_key?(:'exempt_digital_items')
|
158
|
+
self.exempt_digital_items = attributes[:'exempt_digital_items']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'exempt_physical_items')
|
162
|
+
self.exempt_physical_items = attributes[:'exempt_physical_items']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'exempt_service_items')
|
166
|
+
self.exempt_service_items = attributes[:'exempt_service_items']
|
167
|
+
end
|
168
|
+
|
142
169
|
if attributes.has_key?(:'state_code')
|
143
170
|
self.state_code = attributes[:'state_code']
|
144
171
|
end
|
@@ -197,6 +224,9 @@ module UltracartClient
|
|
197
224
|
dont_collect_county == o.dont_collect_county &&
|
198
225
|
dont_collect_postal_code == o.dont_collect_postal_code &&
|
199
226
|
dont_collect_state == o.dont_collect_state &&
|
227
|
+
exempt_digital_items == o.exempt_digital_items &&
|
228
|
+
exempt_physical_items == o.exempt_physical_items &&
|
229
|
+
exempt_service_items == o.exempt_service_items &&
|
200
230
|
state_code == o.state_code &&
|
201
231
|
state_oid == o.state_oid &&
|
202
232
|
tax_gift_charge == o.tax_gift_charge &&
|
@@ -216,7 +246,7 @@ module UltracartClient
|
|
216
246
|
# Calculates hash code according to all attributes.
|
217
247
|
# @return [Fixnum] Hash code
|
218
248
|
def hash
|
219
|
-
[accounting_code, counties, country_oid, dont_collect_city, dont_collect_county, dont_collect_postal_code, dont_collect_state, state_code, state_oid, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping, use_ultracart_managed_rates].hash
|
249
|
+
[accounting_code, counties, country_oid, dont_collect_city, dont_collect_county, dont_collect_postal_code, dont_collect_state, exempt_digital_items, exempt_physical_items, exempt_service_items, state_code, state_oid, tax_gift_charge, tax_gift_wrap, tax_rate, tax_rate_formatted, tax_shipping, use_ultracart_managed_rates].hash
|
220
250
|
end
|
221
251
|
|
222
252
|
# Builds the object from hash
|
@@ -177,15 +177,30 @@ module UltracartClient
|
|
177
177
|
# @return Array for valid properties with the reasons
|
178
178
|
def list_invalid_properties
|
179
179
|
invalid_properties = Array.new
|
180
|
+
if !@email.nil? && @email.to_s.length > 150
|
181
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 150.')
|
182
|
+
end
|
183
|
+
|
180
184
|
invalid_properties
|
181
185
|
end
|
182
186
|
|
183
187
|
# Check to see if the all the properties in the model are valid
|
184
188
|
# @return true if the model is valid
|
185
189
|
def valid?
|
190
|
+
return false if !@email.nil? && @email.to_s.length > 150
|
186
191
|
true
|
187
192
|
end
|
188
193
|
|
194
|
+
# Custom attribute writer method with validation
|
195
|
+
# @param [Object] email Value to be assigned
|
196
|
+
def email=(email)
|
197
|
+
if !email.nil? && email.to_s.length > 150
|
198
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 150.'
|
199
|
+
end
|
200
|
+
|
201
|
+
@email = email
|
202
|
+
end
|
203
|
+
|
189
204
|
# Checks equality by comparing each attribute.
|
190
205
|
# @param [Object] Object to be compared
|
191
206
|
def ==(o)
|
data/lib/ultracart_api.rb
CHANGED
@@ -49,6 +49,10 @@ require 'ultracart_api/models/auto_orders_request'
|
|
49
49
|
require 'ultracart_api/models/auto_orders_response'
|
50
50
|
require 'ultracart_api/models/avalara_config'
|
51
51
|
require 'ultracart_api/models/base_response'
|
52
|
+
require 'ultracart_api/models/browser'
|
53
|
+
require 'ultracart_api/models/browser_device'
|
54
|
+
require 'ultracart_api/models/browser_os'
|
55
|
+
require 'ultracart_api/models/browser_user_agent'
|
52
56
|
require 'ultracart_api/models/cart'
|
53
57
|
require 'ultracart_api/models/cart_affiliate'
|
54
58
|
require 'ultracart_api/models/cart_affirm_checkout_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.
|
4
|
+
version: 3.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -255,6 +255,10 @@ files:
|
|
255
255
|
- docs/AutoOrdersResponse.md
|
256
256
|
- docs/AvalaraConfig.md
|
257
257
|
- docs/BaseResponse.md
|
258
|
+
- docs/Browser.md
|
259
|
+
- docs/BrowserDevice.md
|
260
|
+
- docs/BrowserOS.md
|
261
|
+
- docs/BrowserUserAgent.md
|
258
262
|
- docs/Cart.md
|
259
263
|
- docs/CartAffiliate.md
|
260
264
|
- docs/CartAffirmCheckoutResponse.md
|
@@ -941,6 +945,10 @@ files:
|
|
941
945
|
- lib/ultracart_api/models/auto_orders_response.rb
|
942
946
|
- lib/ultracart_api/models/avalara_config.rb
|
943
947
|
- lib/ultracart_api/models/base_response.rb
|
948
|
+
- lib/ultracart_api/models/browser.rb
|
949
|
+
- lib/ultracart_api/models/browser_device.rb
|
950
|
+
- lib/ultracart_api/models/browser_os.rb
|
951
|
+
- lib/ultracart_api/models/browser_user_agent.rb
|
944
952
|
- lib/ultracart_api/models/cart.rb
|
945
953
|
- lib/ultracart_api/models/cart_affiliate.rb
|
946
954
|
- lib/ultracart_api/models/cart_affirm_checkout_response.rb
|