avatax 18.6.1 → 18.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee85cb2ad965a98ca293c0e2c9cfcfad65c776cabb455e9e8bc53167c80301e9
4
- data.tar.gz: 034f1d99a65944c9ddfd594ab91cfc7f89b9e6d6bad57d9485d0b099aa1373ab
3
+ metadata.gz: 64ba1d816d591d385c462f87deb88bd84072411f13a8530b38831dae6c44a5e3
4
+ data.tar.gz: f6e140e3360449821cf812a6176005cb2d0ee1269b51a196b0ababdec91cba0d
5
5
  SHA512:
6
- metadata.gz: c6194d2b8d143dc402fe472cccba23e7ec00fba4b7b4f7b5cab27a375256ef1842c535b4c8b10bcba77d643ad71e543f291ad08d24ccb67c363ba61e9f1f6d60
7
- data.tar.gz: 011b78bba1aacdd6df2b9ace456de797b28d96379b7df26fe056d067905a950d21a56a6d8248a389f4f4c3954aaa1f6f4560d890f0674e1a0e176759e7545190
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 [Boolean] When true, the file will include jurisdiction codes in the result.
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 [Boolean] (Optional): If set to true, processes refund using taxDateOverride rather than taxAmountOverride (Note: taxAmountOverride is not allowed for SST states).
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={})
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '18.6.1'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '18.7.1'.freeze unless defined?(::AvaTax::VERSION)
3
3
  end
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.6.1
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-07-26 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake