avatax 23.10.1 → 23.11.0
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/lib/avatax/client/accounts.rb +14 -0
- data/lib/avatax/client/addresses.rb +15 -11
- data/lib/avatax/client/customers.rb +1 -1
- data/lib/avatax/client/definitions.rb +16 -0
- data/lib/avatax/client/domaincontrolverification.rb +34 -0
- data/lib/avatax/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b284a025cf6da4d08e800948c224d4349fd0b135c2bbd93b894a8896db0250b
|
4
|
+
data.tar.gz: 4d5bb87fb862f66cbaabe6dbbb532f3aae5c6934a6ff4dc990152d8a17aefac2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0899840e86762bb4d0d9ab85d08c566ec8ed531c25341b0d7d1382f512ed720fd3523dd9649231289045546c41e038e7606856979280c3c2a2e36ccb0f4ed6c1'
|
7
|
+
data.tar.gz: 73ba848201eaf752af22923a1298a1568d1d2bca65d9b7dc95bfcfb8b75530bb11013c4ef17130727e5a9c29d52c0d2e87b6f66c8e479a4ecba7a754baa283aa
|
@@ -191,6 +191,20 @@ module AvaTax
|
|
191
191
|
def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
|
192
192
|
get(path, {}, AvaTax::VERSION) end
|
193
193
|
|
194
|
+
# Retrieve a list of MRS Accounts
|
195
|
+
#
|
196
|
+
# This API is available by invitation only.
|
197
|
+
#
|
198
|
+
# Get a list of accounts with an active MRS service.
|
199
|
+
#
|
200
|
+
# ### Security Policies
|
201
|
+
#
|
202
|
+
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
|
203
|
+
# Swagger Name: AvaTaxClient
|
204
|
+
# @return [FetchResult]
|
205
|
+
def list_mrs_accounts() path = "/api/v2/accounts/mrs"
|
206
|
+
get(path, {}, AvaTax::VERSION) end
|
207
|
+
|
194
208
|
# Retrieve all accounts
|
195
209
|
#
|
196
210
|
# List all account objects that can be seen by the current user.
|
@@ -3,12 +3,14 @@ module AvaTax
|
|
3
3
|
module Addresses
|
4
4
|
|
5
5
|
|
6
|
-
# Retrieve geolocation information for a specified address
|
6
|
+
# Retrieve geolocation information for a specified US or Canadian address
|
7
7
|
#
|
8
|
-
# Resolve
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
8
|
+
# Resolve a US or Canadian address against Avalara's address validation system. Note that this API is
|
9
|
+
# valid for US and Canadian addresses only.
|
10
|
+
#
|
11
|
+
# If the address can be resolved, this API provides the latitude and longitude of the resolved location.
|
12
|
+
# The value `resolutionQuality` can be used to identify how closely this address can be located. If the
|
13
|
+
# address cannot be clearly located, use the `messages` structure to learn more about problems with this address.
|
12
14
|
# This is the same API as the POST /api/v2/addresses/resolve endpoint.
|
13
15
|
# Both verbs are supported to provide for flexible implementation.
|
14
16
|
#
|
@@ -34,13 +36,15 @@ module AvaTax
|
|
34
36
|
def resolve_address(options={}) path = "/api/v2/addresses/resolve"
|
35
37
|
get(path, options, AvaTax::VERSION) end
|
36
38
|
|
37
|
-
# Retrieve geolocation information for a specified address
|
39
|
+
# Retrieve geolocation information for a specified US or Canadian address
|
38
40
|
#
|
39
|
-
# Resolve
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
41
|
+
# Resolve a US or Canadian address against Avalara's address validation system. Note that this API is
|
42
|
+
# valid for US and Canadian addresses only.
|
43
|
+
#
|
44
|
+
# If the address can be resolved, this API provides the latitude and longitude of the resolved location.
|
45
|
+
# The value `resolutionQuality` can be used to identify how closely this address can be located. If the
|
46
|
+
# address cannot be clearly located, use the `messages` structure to learn more about problems with this
|
47
|
+
# address. This is the same API as the GET /api/v2/addresses/resolve endpoint.
|
44
48
|
# Both verbs are supported to provide for flexible implementation.
|
45
49
|
#
|
46
50
|
# ### Security Policies
|
@@ -54,7 +54,7 @@ module AvaTax
|
|
54
54
|
# Swagger Name: AvaTaxClient
|
55
55
|
# @param companyId [Integer] The unique ID number of the company that recorded this customer
|
56
56
|
# @param customerCode [String] The unique code representing this customer
|
57
|
-
# @return [
|
57
|
+
# @return []
|
58
58
|
def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}"
|
59
59
|
delete(path, {}, AvaTax::VERSION) end
|
60
60
|
|
@@ -362,6 +362,22 @@ module AvaTax
|
|
362
362
|
def list_jurisdictions_by_rate_type_tax_type_mapping(country, taxTypeId, taxSubTypeId, options={}) path = "/api/v2/definitions/jurisdictions/countries/#{country}/taxtypes/#{taxTypeId}/taxsubtypes/#{taxSubTypeId}"
|
363
363
|
get(path, options, AvaTax::VERSION) end
|
364
364
|
|
365
|
+
# List jurisdictions hierarchy based on the filter provided
|
366
|
+
#
|
367
|
+
# Returns a list of all Avalara-supported taxing jurisdictions hirearchy.
|
368
|
+
#
|
369
|
+
# This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state.
|
370
|
+
#
|
371
|
+
# The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API.
|
372
|
+
# Swagger Name: AvaTaxClient
|
373
|
+
# @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:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst
|
374
|
+
# @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.
|
375
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
376
|
+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
377
|
+
# @return [FetchResult]
|
378
|
+
def list_jurisdictions_hierarchy(options={}) path = "/api/v2/definitions/jurisdictions/hierarchy"
|
379
|
+
get(path, options, AvaTax::VERSION) end
|
380
|
+
|
365
381
|
# List jurisdiction types based on the provided taxTypeId, taxSubTypeId, country, and rateTypeId
|
366
382
|
#
|
367
383
|
# Returns a list of all applicable jurisdiction types based on country, taxTypeId, taxSubTypeId, and rateTypeId
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module DomainControlVerification
|
4
|
+
|
5
|
+
|
6
|
+
# Create Domain control verification
|
7
|
+
#
|
8
|
+
#
|
9
|
+
# Swagger Name: AvaTaxClient
|
10
|
+
# @param model [Object]
|
11
|
+
# @return [Object]
|
12
|
+
def create_dcv(model) path = "/api/v2/domain-control-verifications"
|
13
|
+
post(path, model, {}, AvaTax::VERSION) end
|
14
|
+
|
15
|
+
# Get domain control verifications by logged in user/domain name.
|
16
|
+
#
|
17
|
+
#
|
18
|
+
# Swagger Name: AvaTaxClient
|
19
|
+
# @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:* Id, Context, Token, Status, EmailId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy
|
20
|
+
# @return [DcvViewModel[]]
|
21
|
+
def filter_dcv(options={}) path = "/api/v2/domain-control-verifications"
|
22
|
+
get(path, options, AvaTax::VERSION) end
|
23
|
+
|
24
|
+
# Get domain control verification by domainControlVerificationId
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# Swagger Name: AvaTaxClient
|
28
|
+
# @param domainControlVerificationId [String]
|
29
|
+
# @return [Object]
|
30
|
+
def get_dcv_by_id(domainControlVerificationId) path = "/api/v2/domain-control-verifications/#{domainControlVerificationId}"
|
31
|
+
get(path, {}, AvaTax::VERSION) end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
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.11.0
|
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-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- lib/avatax/client/datasources.rb
|
136
136
|
- lib/avatax/client/definitions.rb
|
137
137
|
- lib/avatax/client/distancethresholds.rb
|
138
|
+
- lib/avatax/client/domaincontrolverification.rb
|
138
139
|
- lib/avatax/client/ecms.rb
|
139
140
|
- lib/avatax/client/ecommercetoken.rb
|
140
141
|
- lib/avatax/client/errortransactions.rb
|