avatax 18.6.1 → 18.7.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/accounts.rb +25 -0
- data/lib/avatax/client/customers.rb +13 -0
- data/lib/avatax/client/taxcontent.rb +1 -1
- data/lib/avatax/client/transactions.rb +1 -1
- 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: 64ba1d816d591d385c462f87deb88bd84072411f13a8530b38831dae6c44a5e3
|
4
|
+
data.tar.gz: f6e140e3360449821cf812a6176005cb2d0ee1269b51a196b0ababdec91cba0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a013a0173c214fb59b9cfbfab7f8fba1f1374a73a2648a0d7e3bb64e80e8ca05968d94278521719c71af74268cd194055017bf96ac5275a5d45520b140efe2c
|
7
|
+
data.tar.gz: 3b51be246e231327c93f0c590971313437d5f09c7a89c1ee005f6931e728db5ac484e12528aea7a96ed0823c6a8c562a89b182779ad9baeaf767c83d19251dc8
|
@@ -48,6 +48,31 @@ module AvaTax
|
|
48
48
|
end
|
49
49
|
|
50
50
|
|
51
|
+
# Retrieve audit history for an account.
|
52
|
+
#
|
53
|
+
# Retrieve audit history for an account.
|
54
|
+
#
|
55
|
+
# Audit history provides you with the data necessary to report and investigate calls made from your account.
|
56
|
+
#
|
57
|
+
# When specifying a start and end datetime, please include a valid timezone indicator, such as the "Z" present in the examples for the start and end query parameters.
|
58
|
+
# You can learn more about valid time zone designators at https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators.
|
59
|
+
#
|
60
|
+
# For performance reasons, there are are limits to the request size. Currently, the per-call limits are a one hour duration, 50 MB of data, and 30 records at a time.
|
61
|
+
#
|
62
|
+
# Due to the volume of traffic from the system, audit history is not guaranteed to be immediately available. In some cases, this could even take an hour or more.
|
63
|
+
# If you receive no results where results are expected, this is likely an indication that the data is not yet available.
|
64
|
+
# @param id [Integer] The ID of the account you wish to audit.
|
65
|
+
# @param start [DateTime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes.
|
66
|
+
# @param end [DateTime] The end datetime of audit history you with to retrieve, e.g. "2018-06-08T17:15:00Z. Defaults to the current time. Maximum of an hour after the start time.
|
67
|
+
# @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
|
68
|
+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
|
69
|
+
# @return [FetchResult]
|
70
|
+
def audit_account(id, options={})
|
71
|
+
path = "/api/v2/accounts/#{id}/audit"
|
72
|
+
get(path, options)
|
73
|
+
end
|
74
|
+
|
75
|
+
|
51
76
|
# Retrieve a single account
|
52
77
|
#
|
53
78
|
# Get the account object identified by this URL.
|
@@ -105,6 +105,19 @@ module AvaTax
|
|
105
105
|
end
|
106
106
|
|
107
107
|
|
108
|
+
# ToDo
|
109
|
+
#
|
110
|
+
#
|
111
|
+
# @param companyId [Integer]
|
112
|
+
# @param code [String]
|
113
|
+
# @param model [Object]
|
114
|
+
# @return [Object]
|
115
|
+
def link_ship_to_customers_to_bill_customer(companyId, code, model)
|
116
|
+
path = "/api/v2/companies/#{companyId}/customers/billto/#{code}/shipto/link"
|
117
|
+
post(path, model)
|
118
|
+
end
|
119
|
+
|
120
|
+
|
108
121
|
# List certificates linked to a customer
|
109
122
|
#
|
110
123
|
# List all certificates linked to a customer.
|
@@ -54,7 +54,7 @@ module AvaTax
|
|
54
54
|
# @param date [DateTime] The date for which point-of-sale data would be calculated (today by default)
|
55
55
|
# @param format [String] The format of the file (JSON by default) (See PointOfSaleFileType::* for a list of allowable values)
|
56
56
|
# @param partnerId [String] If specified, requests a custom partner-formatted version of the file. (See PointOfSalePartnerId::* for a list of allowable values)
|
57
|
-
# @param includeJurisCodes [
|
57
|
+
# @param includeJurisCodes [object] When true, the file will include jurisdiction codes in the result.
|
58
58
|
# @return [Object]
|
59
59
|
def build_tax_content_file_for_location(companyId, id, options={})
|
60
60
|
path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata"
|
@@ -456,7 +456,7 @@ module AvaTax
|
|
456
456
|
# @param transactionCode [String] The transaction code of the original sale
|
457
457
|
# @param include [String] Specifies objects to include in the response after transaction is created
|
458
458
|
# @param documentType [String] (Optional): The document type of the transaction to refund. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
|
459
|
-
# @param useTaxDateOverride [
|
459
|
+
# @param useTaxDateOverride [object] (Optional): If set to true, processes refund using taxDateOverride rather than taxAmountOverride (Note: taxAmountOverride is not allowed for SST states).
|
460
460
|
# @param model [Object] Information about the refund to create
|
461
461
|
# @return [Object]
|
462
462
|
def refund_transaction(companyCode, transactionCode, model, options={})
|
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: 18.
|
4
|
+
version: 18.7.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: 2018-
|
11
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|