avatax 23.4.1 → 23.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avatax/client/definitions.rb +3 -2
- data/lib/avatax/client/items.rb +1 -1
- data/lib/avatax/client/registrar.rb +0 -56
- data/lib/avatax/client/taxcodes.rb +3 -3
- data/lib/avatax/client/taxcontent.rb +8 -4
- data/lib/avatax/client/transactions.rb +4 -0
- data/lib/avatax/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: 495850eb2c0d245e185756aae4d2753b1cb2a07e18a88fc5ea9790f5323fdb9c
|
4
|
+
data.tar.gz: ea3832cdc0f463452416d74ecd061ff3cb81a5bafea0e8509ac421293f6a672f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd15ea0c82cfba6b5ac8e3c202c8df7565f0e3c0fc19920ef5835ebe46e5280a58d27b98ee48fcb8c0e0cda89f99783beeae01996dc46cfc790bb27b3bb5897
|
7
|
+
data.tar.gz: ee8671a5783506adaaab420c139d685db9eaf299f8128dd4da902b51355fb7744c2752105b344ab452cbd246232b1e7fa12567bc9c901867cb06a9403eabefac
|
@@ -641,7 +641,7 @@ module AvaTax
|
|
641
641
|
# Returns the full list of Avalara-supported tax notice statuses.
|
642
642
|
# This API is intended to be useful to identify all the different tax notice statuses.
|
643
643
|
# Swagger Name: AvaTaxClient
|
644
|
-
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* isOpen, sortOrder
|
644
|
+
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* isOpen, sortOrder, activeFlag
|
645
645
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
646
646
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
647
647
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
@@ -753,6 +753,7 @@ module AvaTax
|
|
753
753
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
754
754
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
755
755
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
756
|
+
# @param includeExpiredPostalCodes [Boolean] If set to true, returns expired postal codes. Defaults to false
|
756
757
|
# @return [FetchResult]
|
757
758
|
def list_postal_codes(options={}) path = "/api/v2/definitions/postalcodes"
|
758
759
|
get(path, options, AvaTax::VERSION) end
|
@@ -1015,7 +1016,7 @@ module AvaTax
|
|
1015
1016
|
#
|
1016
1017
|
# ### Security Policies
|
1017
1018
|
#
|
1018
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
1019
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
1019
1020
|
# Swagger Name: AvaTaxClient
|
1020
1021
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
1021
1022
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
data/lib/avatax/client/items.rb
CHANGED
@@ -483,7 +483,7 @@ module AvaTax
|
|
483
483
|
# Swagger Name: AvaTaxClient
|
484
484
|
# @param companyId [Integer] The company id.
|
485
485
|
# @param itemId [Integer] The item id.
|
486
|
-
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* productCode, systemCode
|
486
|
+
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* productCode, systemCode, IsPremium
|
487
487
|
# @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
|
488
488
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
489
489
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
@@ -46,26 +46,6 @@ module AvaTax
|
|
46
46
|
def create_notifications(model) path = "/api/v2/notifications"
|
47
47
|
post(path, model, {}, AvaTax::VERSION) end
|
48
48
|
|
49
|
-
# Create Avalara-supported subscription (ServiceTypes)
|
50
|
-
#
|
51
|
-
# For Registrar Use Only
|
52
|
-
# This API is for use by Avalara Registrar administrative users only.
|
53
|
-
#
|
54
|
-
# Create one service/subscription object.
|
55
|
-
#
|
56
|
-
# Returns the newly created Avalara-supported subscription (service) type.
|
57
|
-
# This API is intended to be useful for adding new Avalara-supported subscription type (service type).
|
58
|
-
# You may always contact Avalara's sales department for information on available products or services.
|
59
|
-
#
|
60
|
-
# ### Security Policies
|
61
|
-
#
|
62
|
-
# * This API requires one of the following user roles: BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
63
|
-
# Swagger Name: AvaTaxClient
|
64
|
-
# @param model [Object] The subscription type object you wish to create.
|
65
|
-
# @return [Object]
|
66
|
-
def create_service_types(model) path = "/api/v2/servicetypes"
|
67
|
-
post(path, model, {}, AvaTax::VERSION) end
|
68
|
-
|
69
49
|
# Create a new subscription
|
70
50
|
#
|
71
51
|
# This API is for use by Avalara Registrar administrative users only.
|
@@ -124,23 +104,6 @@ module AvaTax
|
|
124
104
|
def delete_notification(id) path = "/api/v2/notifications/#{id}"
|
125
105
|
delete(path, {}, AvaTax::VERSION) end
|
126
106
|
|
127
|
-
# Delete a single Subscription (ServiceTypes) object
|
128
|
-
#
|
129
|
-
# For Registrar Use Only
|
130
|
-
# This API is for use by Avalara Registrar administrative users only.
|
131
|
-
#
|
132
|
-
# Marks the Subscription (ServiceTypes) object identified by this URL as deleted.
|
133
|
-
# This API is useful for deleting an existing Avalara-supported subscription type (service type).
|
134
|
-
#
|
135
|
-
# ### Security Policies
|
136
|
-
#
|
137
|
-
# * This API requires one of the following user roles: BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
138
|
-
# Swagger Name: AvaTaxClient
|
139
|
-
# @param id [Integer] The unique ID number of the Subscription object you wish to delete.
|
140
|
-
# @return [ErrorDetail[]]
|
141
|
-
def delete_service_type(id) path = "/api/v2/servicetypes/#{id}"
|
142
|
-
delete(path, {}, AvaTax::VERSION) end
|
143
|
-
|
144
107
|
# Delete a single subscription
|
145
108
|
#
|
146
109
|
# # For Registrar Use Only
|
@@ -242,25 +205,6 @@ module AvaTax
|
|
242
205
|
def update_notification(id, model) path = "/api/v2/notifications/#{id}"
|
243
206
|
put(path, model, {}, AvaTax::VERSION) end
|
244
207
|
|
245
|
-
# Update existing Avalara-supported subscription (ServiceTypes)
|
246
|
-
#
|
247
|
-
# For Registrar Use Only
|
248
|
-
# This API is for use by Avalara Registrar administrative users only.
|
249
|
-
#
|
250
|
-
# Returns the updated Avalara-supported service types.
|
251
|
-
# This API is intended to be useful for updating an existing subscription(service) type detail.
|
252
|
-
# You may always contact Avalara's sales department for information on available products or services.
|
253
|
-
#
|
254
|
-
# ### Security Policies
|
255
|
-
#
|
256
|
-
# * This API requires one of the following user roles: BatchServiceAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
|
257
|
-
# Swagger Name: AvaTaxClient
|
258
|
-
# @param id [Integer] The unique ID number of the existing subscription type object to replace.
|
259
|
-
# @param model [Object] The subscription type object to update.
|
260
|
-
# @return [Object]
|
261
|
-
def update_service_type(id, model) path = "/api/v2/servicetypes/#{id}"
|
262
|
-
put(path, model, {}, AvaTax::VERSION) end
|
263
|
-
|
264
208
|
# Update a single subscription
|
265
209
|
#
|
266
210
|
# # For Registrar Use Only
|
@@ -45,7 +45,7 @@ module AvaTax
|
|
45
45
|
#
|
46
46
|
# ### Security Policies
|
47
47
|
#
|
48
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
48
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
49
49
|
# Swagger Name: AvaTaxClient
|
50
50
|
# @param companyId [Integer] The ID of the company that owns this tax code
|
51
51
|
# @param id [Integer] The primary key of this tax code
|
@@ -66,7 +66,7 @@ module AvaTax
|
|
66
66
|
#
|
67
67
|
# ### Security Policies
|
68
68
|
#
|
69
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
69
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
70
70
|
# Swagger Name: AvaTaxClient
|
71
71
|
# @param companyId [Integer] The ID of the company that owns these tax codes
|
72
72
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
@@ -91,7 +91,7 @@ module AvaTax
|
|
91
91
|
#
|
92
92
|
# ### Security Policies
|
93
93
|
#
|
94
|
-
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
94
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
|
95
95
|
# Swagger Name: AvaTaxClient
|
96
96
|
# @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
|
97
97
|
# @param include [String] A comma separated list of additional data to retrieve.
|
@@ -141,8 +141,10 @@ module AvaTax
|
|
141
141
|
# This API assumes that you are selling general tangible personal property at a retail point-of-sale
|
142
142
|
# location in the United States only.
|
143
143
|
#
|
144
|
-
#
|
145
|
-
#
|
144
|
+
# Please be advised that this endpoint is designed for approximate tax rate estimation only and
|
145
|
+
# may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the
|
146
|
+
# `CreateTransaction` API, which offers a variety of advanced features including, but not limited
|
147
|
+
# to:
|
146
148
|
#
|
147
149
|
# * Nexus declarations
|
148
150
|
# * Taxability based on product/service type
|
@@ -177,8 +179,10 @@ module AvaTax
|
|
177
179
|
# This API assumes that you are selling general tangible personal property at a retail point-of-sale
|
178
180
|
# location in the United States only.
|
179
181
|
#
|
180
|
-
#
|
181
|
-
#
|
182
|
+
# Please be advised that this endpoint is designed for approximate tax rate estimation only and
|
183
|
+
# may not yield precise results. For a more powerful and accurate tax estimation, upgrade to the
|
184
|
+
# `CreateTransaction` API, which offers a variety of advanced features including, but not limited
|
185
|
+
# to:
|
182
186
|
#
|
183
187
|
# * Nexus declarations
|
184
188
|
# * Taxability based on product/service type
|
@@ -283,6 +283,8 @@ module AvaTax
|
|
283
283
|
#
|
284
284
|
# To generate a refund for a transaction, use the `RefundTransaction` API.
|
285
285
|
#
|
286
|
+
# An address is required for calculation. If no address is provided at the line level, the document level address will be used.
|
287
|
+
#
|
286
288
|
# If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database.
|
287
289
|
#
|
288
290
|
# A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
|
@@ -332,6 +334,8 @@ module AvaTax
|
|
332
334
|
#
|
333
335
|
# To generate a refund for a transaction, use the `RefundTransaction` API.
|
334
336
|
#
|
337
|
+
# An address is required for calculation. If no address is provided at the line level, the document level address will be used.
|
338
|
+
#
|
335
339
|
# The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify
|
336
340
|
# a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded.
|
337
341
|
#
|
data/lib/avatax/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 23.
|
4
|
+
version: 23.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Vorwaller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|