avatax 23.8.1 → 23.10.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d849d8d6751bedfb6a8993c92bf089becff17c77a33b4e8a9105335cd98fc9ec
|
4
|
+
data.tar.gz: af4ebaa9143df55d8dacc4f21edc00621be1ae1036a83231d4e977626a9f4add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3695d471b2ade46dd25914776d90d8902a42c3f8de2ab2801884b13b349a247dcecf6023e25d0cf5b1dc3960ad14745566bec07f7c38bba9d74b754f38573fa6
|
7
|
+
data.tar.gz: 29b2f952518e49b4894fa5eac94d3e3ecd4cb964e5e32e2e165fb6cd38d0bd7c02fd043a72e31e609dd152f4d3531eb555319997a1e1b237c9dff0199df14c42
|
@@ -0,0 +1,54 @@
|
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module APConfigSetting
|
4
|
+
|
5
|
+
|
6
|
+
# Create new rule
|
7
|
+
#
|
8
|
+
#
|
9
|
+
# Swagger Name: AvaTaxClient
|
10
|
+
# @param companyid [Integer] The ID of the company that owns this AP Config Setting object
|
11
|
+
# @param model [Object] The AP Config Setting you wish to create.
|
12
|
+
# @return [Object]
|
13
|
+
def create_a_p_config_setting(companyid, model) path = "/api/v2/companies/#{companyid}/apconfigsetting"
|
14
|
+
post(path, model, {}, AvaTax::VERSION) end
|
15
|
+
|
16
|
+
# Retrieve rule for this company
|
17
|
+
#
|
18
|
+
#
|
19
|
+
# Swagger Name: AvaTaxClient
|
20
|
+
# @param companyid [Integer] The ID of the company that defined this rule
|
21
|
+
# @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:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent
|
22
|
+
# @param include [String] A comma separated list of additional data to retrieve.
|
23
|
+
# @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.
|
24
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
25
|
+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
26
|
+
# @return [FetchResult]
|
27
|
+
def get_a_p_config_setting_by_company(companyid, options={}) path = "/api/v2/companies/#{companyid}/apconfigsetting"
|
28
|
+
get(path, options, AvaTax::VERSION) end
|
29
|
+
|
30
|
+
# Retrieve all rules
|
31
|
+
#
|
32
|
+
#
|
33
|
+
# Swagger Name: AvaTaxClient
|
34
|
+
# @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:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent
|
35
|
+
# @param include [String] A comma separated list of additional data to retrieve.
|
36
|
+
# @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.
|
37
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
38
|
+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
39
|
+
# @return [FetchResult]
|
40
|
+
def query_a_p_config_setting(options={}) path = "/api/v2/apconfigsetting"
|
41
|
+
get(path, options, AvaTax::VERSION) end
|
42
|
+
|
43
|
+
# Update a AP config setting
|
44
|
+
#
|
45
|
+
#
|
46
|
+
# Swagger Name: AvaTaxClient
|
47
|
+
# @param companyid [Integer] The ID of the company that owns this AP config setting object
|
48
|
+
# @param model [Object] The AP config setting object you wish to update.
|
49
|
+
# @return [Object]
|
50
|
+
def update_a_p_config_setting(companyid, model) path = "/api/v2/companies/#{companyid}/apconfigsetting"
|
51
|
+
put(path, model, {}, AvaTax::VERSION) end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module CostCenter
|
4
|
+
|
5
|
+
|
6
|
+
# Bulk upload cost centers
|
7
|
+
#
|
8
|
+
# Allows bulk upload of cost centers for the specified company. Use the companyId path parameter to identify the company for which the cost centers should be uploaded.
|
9
|
+
# Swagger Name: AvaTaxClient
|
10
|
+
# @param companyid [Integer] The ID of the company that owns this cost center object
|
11
|
+
# @param model [Object] The cost center bulk upload model.
|
12
|
+
# @return [Object]
|
13
|
+
def bulk_upload_cost_centers(companyid, model) path = "/api/v2/companies/#{companyid}/costcenters/$upload"
|
14
|
+
post(path, model, {}, AvaTax::VERSION) end
|
15
|
+
|
16
|
+
# Create new cost center
|
17
|
+
#
|
18
|
+
# Creates one or more new item objects attached to this company.
|
19
|
+
#
|
20
|
+
# Costcenter is defined as function or department within a company which is not directly going to generate revenues and profits to the company but is still incurring expenses to the company for its operations.
|
21
|
+
# Swagger Name: AvaTaxClient
|
22
|
+
# @param companyid [Integer] The ID of the company that owns this cost center object
|
23
|
+
# @param model [Object] The cost center you wish to create.
|
24
|
+
# @return [Object]
|
25
|
+
def create_cost_center(companyid, model) path = "/api/v2/companies/#{companyid}/costcenters"
|
26
|
+
post(path, model, {}, AvaTax::VERSION) end
|
27
|
+
|
28
|
+
# Delete cost center for the given id
|
29
|
+
#
|
30
|
+
# Deletes a cost center with the specified costcenterId that belongs to the company.
|
31
|
+
# Swagger Name: AvaTaxClient
|
32
|
+
# @param companyid [Integer] The ID of the company that owns this cost center object
|
33
|
+
# @param costcenterid [Integer] The primary key of this cost center
|
34
|
+
# @return [Object]
|
35
|
+
def delete_cost_center(companyid, costcenterid) path = "/api/v2/companies/#{companyid}/costcenters/#{costcenterid}"
|
36
|
+
delete(path, {}, AvaTax::VERSION) end
|
37
|
+
|
38
|
+
# Retrieve a single cost center
|
39
|
+
#
|
40
|
+
# Retrieves details of a single cost center identified by costcenterId, which is owned by the company.
|
41
|
+
# Swagger Name: AvaTaxClient
|
42
|
+
# @param companyid [Integer] The ID of the company that owns this cost center object
|
43
|
+
# @param costcenterid [Integer] The primary key of this cost center
|
44
|
+
# @return [Object]
|
45
|
+
def get_cost_center_by_id(companyid, costcenterid) path = "/api/v2/companies/#{companyid}/costcenters/#{costcenterid}"
|
46
|
+
get(path, {}, AvaTax::VERSION) end
|
47
|
+
|
48
|
+
# Retrieve cost centers for this company
|
49
|
+
#
|
50
|
+
# Retrieves a list of cost centers attached to this company. You can apply filters to retrieve specific records.
|
51
|
+
# Swagger Name: AvaTaxClient
|
52
|
+
# @param companyid [Integer] The ID of the company that defined these cost centers
|
53
|
+
# @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:* companyId, meta, defaultItem
|
54
|
+
# @param include [String] A comma separated list of objects to fetch underneath this company. Any object with a URL path underneath this company can be fetched by specifying its name.
|
55
|
+
# @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.
|
56
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
57
|
+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
58
|
+
# @return [FetchResult]
|
59
|
+
def list_cost_centers_by_company(companyid, options={}) path = "/api/v2/companies/#{companyid}/costcenters"
|
60
|
+
get(path, options, AvaTax::VERSION) end
|
61
|
+
|
62
|
+
# Retrieve all cost centers
|
63
|
+
#
|
64
|
+
# Retrieves all cost centers available. You can apply filters to retrieve specific records.
|
65
|
+
# Swagger Name: AvaTaxClient
|
66
|
+
# @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:* companyId, meta, defaultItem
|
67
|
+
# @param include [String] A comma separated list of objects to fetch underneath this company. Any object with a URL path underneath this company can be fetched by specifying its name.
|
68
|
+
# @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.
|
69
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
70
|
+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
71
|
+
# @return [FetchResult]
|
72
|
+
def query_cost_centers(options={}) path = "/api/v2/costcenters"
|
73
|
+
get(path, options, AvaTax::VERSION) end
|
74
|
+
|
75
|
+
# Update a single cost center
|
76
|
+
#
|
77
|
+
# Updates a single cost center owned by the company. Use the costcenterId path parameter to identify the cost center to update.
|
78
|
+
# Swagger Name: AvaTaxClient
|
79
|
+
# @param companyid [Integer] The ID of the company that owns this cost center object
|
80
|
+
# @param costcenterid [Integer] The primary key of this cost center
|
81
|
+
# @param model [Object] The cost center object you wish to update.
|
82
|
+
# @return [Object]
|
83
|
+
def update_cost_center(companyid, costcenterid, model) path = "/api/v2/companies/#{companyid}/costcenters/#{costcenterid}"
|
84
|
+
put(path, model, {}, AvaTax::VERSION) end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -825,7 +825,7 @@ module AvaTax
|
|
825
825
|
# This API is intended to be useful to identify all the different rate types.
|
826
826
|
# Swagger Name: AvaTaxClient
|
827
827
|
# @param country [String] The country to examine for rate types
|
828
|
-
# @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/)
|
828
|
+
# @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:* country
|
829
829
|
# @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.
|
830
830
|
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
|
831
831
|
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module AvaTax
|
2
|
+
class Client
|
3
|
+
module ShippingVerificationBatches
|
4
|
+
|
5
|
+
|
6
|
+
# Enqueues a batch of AvaTax transactions to be deregistered by ASV
|
7
|
+
#
|
8
|
+
#
|
9
|
+
# Swagger Name: AvaTaxBeverageClient
|
10
|
+
# @param companyCode [String] The company code of the company that recorded the transaction
|
11
|
+
# @param batchCode [String] The batch code of generated by AvaTax batch transaction upload
|
12
|
+
# @param api-version [String] (Optional): API version that should satisfy the request. If omitted, defaults to 2.2
|
13
|
+
# @param x-avalara-version [String] (Optional): API version that should satisfy the request. If omitted, defaults to 2.2. Header takes precendence if both header and query parameters are present.
|
14
|
+
# @return []
|
15
|
+
def enqueue_batch_deregistration(companyCode, batchCode, options={}, x_avalara_version="") path = "/api/v2/asv/companies/#{companyCode}/batches/#{batchCode}/deregister"
|
16
|
+
headers= Hash.new
|
17
|
+
headers["x-avalara-version"]=x_avalara_version if !(x_avalara_version.nil? || x_avalara_version.empty?);
|
18
|
+
put(path, options, AvaTax::VERSION, headers) end
|
19
|
+
|
20
|
+
# Enqueues a batch of AvaTax transactions to be registered by ASV
|
21
|
+
#
|
22
|
+
#
|
23
|
+
# Swagger Name: AvaTaxBeverageClient
|
24
|
+
# @param companyCode [String] The company code of the company that recorded the transaction
|
25
|
+
# @param batchCode [String] The batch code generated by AvaTax for batch transaction upload process
|
26
|
+
# @param api-version [String] (Optional): API version that should satisfy the request. If omitted, defaults to 2.2
|
27
|
+
# @param x-avalara-version [String] (Optional): API version that should satisfy the request. If omitted, defaults to 2.2. Header takes precendence if both header and query parameters are present.
|
28
|
+
# @return []
|
29
|
+
def enqueue_batch_registration(companyCode, batchCode, options={}, x_avalara_version="") path = "/api/v2/asv/companies/#{companyCode}/batches/#{batchCode}/register"
|
30
|
+
headers= Hash.new
|
31
|
+
headers["x-avalara-version"]=x_avalara_version if !(x_avalara_version.nil? || x_avalara_version.empty?);
|
32
|
+
put(path, options, AvaTax::VERSION, headers) end
|
33
|
+
|
34
|
+
# Gets records for current and previously processed batch registration jobs
|
35
|
+
#
|
36
|
+
#
|
37
|
+
# Swagger Name: AvaTaxBeverageClient
|
38
|
+
# @param accountId [String] (Optional): For users with access to multiple accounts, filters results to those associated with the specified Account ID. If not specified, the Account ID defaults to the one associated with the account
|
39
|
+
# @return [Object]
|
40
|
+
def get_batch_registration_data(options={}) path = "/api/v2/asv/batches"
|
41
|
+
get(path, options, AvaTax::VERSION) end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
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.10.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-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- lib/avatax/client/addresses.rb
|
123
123
|
- lib/avatax/client/advancedrules.rb
|
124
124
|
- lib/avatax/client/ageverification.rb
|
125
|
+
- lib/avatax/client/apconfigsetting.rb
|
125
126
|
- lib/avatax/client/avafileforms.rb
|
126
127
|
- lib/avatax/client/batches.rb
|
127
128
|
- lib/avatax/client/certexpressinvites.rb
|
@@ -129,6 +130,7 @@ files:
|
|
129
130
|
- lib/avatax/client/companies.rb
|
130
131
|
- lib/avatax/client/compliance.rb
|
131
132
|
- lib/avatax/client/contacts.rb
|
133
|
+
- lib/avatax/client/costcenter.rb
|
132
134
|
- lib/avatax/client/customers.rb
|
133
135
|
- lib/avatax/client/datasources.rb
|
134
136
|
- lib/avatax/client/definitions.rb
|
@@ -155,6 +157,7 @@ files:
|
|
155
157
|
- lib/avatax/client/reports.rb
|
156
158
|
- lib/avatax/client/settings.rb
|
157
159
|
- lib/avatax/client/shippingverification.rb
|
160
|
+
- lib/avatax/client/shippingverificationbatches.rb
|
158
161
|
- lib/avatax/client/subscriptions.rb
|
159
162
|
- lib/avatax/client/taxContent/README.txt
|
160
163
|
- lib/avatax/client/taxRatesByZip/README.txt
|