avatax 20.6.0 → 20.7.0

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: 6ef7307b17dd1599496ed59f0082b8f4a5c550e314d2158859869019114557b7
4
- data.tar.gz: 61c2b84e2f1a241482786ea18576061517086c124cac6dfa0cf8b03bb889fe3a
3
+ metadata.gz: 8a3c2015349a64ef8875c8198e04f26a6cf2c0bd631328c9a2f885e4cf8e16e4
4
+ data.tar.gz: 7d086ee2c887b48680dc53a302a7cc1c0f3e116764695518124282ca9cc2cd21
5
5
  SHA512:
6
- metadata.gz: d40eca5e62391fb14ececa093915fbac5554dab803c2c1516fa310ad8063060b07bc448377fa4e8bc6e3bcd0f4fa2f003e8cc8a90b67a54eca0d3d8bdbbcdd9c
7
- data.tar.gz: b02b8f1e8fa85437980bf7cf508085a8155565c822e19e48d9c91069d72e5d90f1752db962be1441896ec5cf362f3dc58bb3449b78844a5eb2fd48ebd21a5e96
6
+ metadata.gz: 1aae1f7fd0a836bbeb38ee880f2eee39783013d516e098cc5acdca753f3776d39693c6bd7feb345ba71526ff43380c4013723e67bb1893b6d472d1ce62122707
7
+ data.tar.gz: 355dc16e423551083fd33180ad36d7477a5cdaf593281eb580b15366689b761a3f1885675a0dc2c37da670837f65a3b6ce4bc8351ce6f756790281b454a1f996
@@ -7,7 +7,6 @@ Gem::Specification.new do |s|
7
7
  s.add_runtime_dependency('faraday', '>= 0.10')
8
8
  s.add_runtime_dependency('faraday_middleware', '>= 0.10')
9
9
  s.add_runtime_dependency('multi_json', '>= 1.0.3')
10
- s.add_runtime_dependency('faraday_middleware-parse_oj', '~> 0.3.2')
11
10
  s.authors = ["Marcus Vorwaller"]
12
11
  s.description = %q{A Ruby wrapper for the AvaTax REST and Search APIs}
13
12
  s.post_install_message =<<eos
@@ -28,6 +28,19 @@ module AvaTax
28
28
  end
29
29
 
30
30
 
31
+ # Get audit records by account id and date range.
32
+ #
33
+ #
34
+ # @param accountId [Integer] The ID of the account
35
+ # @param fromDate [String] Date
36
+ # @param toDate [String] Date
37
+ # @return [Object]
38
+ def get_audit_records(accountId, fromDate, toDate)
39
+ path = "/api/v2/advancedrules/audits/accounts/#{accountId}/from/#{fromDate}/to/#{toDate}"
40
+ get(path)
41
+ end
42
+
43
+
31
44
  # Get the lookup files for a company
32
45
  #
33
46
  #
@@ -10,7 +10,7 @@ module AvaTax
10
10
  # ### Security Policies
11
11
  #
12
12
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
13
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
13
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
14
14
  # @param companyId [Integer] The id of the company you which to create the datasources
15
15
  # @param model [DataSourceModel[]]
16
16
  # @return [DataSourceModel[]]
@@ -27,7 +27,7 @@ module AvaTax
27
27
  # ### Security Policies
28
28
  #
29
29
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
30
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
30
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
31
31
  # @param companyId [Integer] The id of the company the datasource belongs to.
32
32
  # @param id [Integer] The id of the datasource you wish to delete.
33
33
  # @return [ErrorDetail[]]
@@ -44,7 +44,7 @@ module AvaTax
44
44
  # ### Security Policies
45
45
  #
46
46
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
47
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
47
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
48
48
  # @param companyId [Integer]
49
49
  # @param id [Integer] data source id
50
50
  # @return [Object]
@@ -61,7 +61,7 @@ module AvaTax
61
61
  # ### Security Policies
62
62
  #
63
63
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
64
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
64
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
65
65
  # @param companyId [Integer] The id of the company you wish to retrieve the datasources.
66
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:* isEnabled, isSynced, isAuthorized, name, externalState
67
67
  # @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.
@@ -84,7 +84,7 @@ module AvaTax
84
84
  # ### Security Policies
85
85
  #
86
86
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
87
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
87
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
88
88
  # @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:* isEnabled, isSynced, isAuthorized, name, externalState
89
89
  # @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.
90
90
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -103,7 +103,7 @@ module AvaTax
103
103
  # ### Security Policies
104
104
  #
105
105
  # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
106
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
106
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
107
107
  # @param companyId [Integer] The id of the company the datasource belongs to.
108
108
  # @param id [Integer] The id of the datasource you wish to delete.
109
109
  # @param model [Object]
@@ -768,6 +768,7 @@ module AvaTax
768
768
  # @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.
769
769
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
770
770
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
771
+ # @param countryCode [String] If not null, return all records with this code.
771
772
  # @return [FetchResult]
772
773
  def list_product_classification_systems(options={})
773
774
  path = "/api/v2/definitions/productclassificationsystems"
@@ -786,6 +787,7 @@ module AvaTax
786
787
  # @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.
787
788
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
788
789
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
790
+ # @param countryCode [String] If not null, return all records with this code.
789
791
  # @return [FetchResult]
790
792
  def list_product_classification_systems_by_company(companyCode, options={})
791
793
  path = "/api/v2/definitions/productclassificationsystems/bycompany/#{companyCode}"
@@ -20,6 +20,8 @@ module AvaTax
20
20
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
21
21
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
22
22
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
23
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
24
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
23
25
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
24
26
  #
25
27
  # ### Security Policies
@@ -58,6 +60,8 @@ module AvaTax
58
60
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
59
61
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
60
62
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
63
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
64
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
61
65
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
62
66
  #
63
67
  # ### Security Policies
@@ -88,6 +92,8 @@ module AvaTax
88
92
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
89
93
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
90
94
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
95
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
96
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
91
97
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
92
98
  #
93
99
  # ### Security Policies
@@ -141,6 +147,8 @@ module AvaTax
141
147
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
142
148
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
143
149
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
150
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
151
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
144
152
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
145
153
  #
146
154
  # ### Security Policies
@@ -175,6 +183,8 @@ module AvaTax
175
183
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
176
184
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
177
185
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
186
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
187
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
178
188
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
179
189
  #
180
190
  # ### Security Policies
@@ -219,6 +229,8 @@ module AvaTax
219
229
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
220
230
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
221
231
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
232
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
233
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
222
234
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
223
235
  #
224
236
  # ### Security Policies
@@ -260,6 +272,8 @@ module AvaTax
260
272
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
261
273
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
262
274
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
275
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
276
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
263
277
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
264
278
  #
265
279
  # ### Security Policies
@@ -321,6 +335,8 @@ module AvaTax
321
335
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
322
336
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
323
337
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
338
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
339
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
324
340
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
325
341
  #
326
342
  # ### Security Policies
@@ -351,6 +367,8 @@ module AvaTax
351
367
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
352
368
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
353
369
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
370
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
371
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
354
372
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
355
373
  #
356
374
  # ### Security Policies
@@ -381,6 +399,8 @@ module AvaTax
381
399
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
382
400
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
383
401
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
402
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
403
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
384
404
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
385
405
  #
386
406
  # ### Security Policies
@@ -29,7 +29,7 @@ module AvaTax
29
29
  # ### Security Policies
30
30
  #
31
31
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
32
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
32
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
33
33
  # @param include [String] Specifies objects to include in the response after transaction is created
34
34
  # @param model [Object] information about the transaction and lines to be added
35
35
  # @return [Object]
@@ -67,12 +67,14 @@ module AvaTax
67
67
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
68
68
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
69
69
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
70
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
71
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
70
72
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
71
73
  #
72
74
  # ### Security Policies
73
75
  #
74
76
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
75
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
77
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
76
78
  # @param companyCode [String] The company code of the company that recorded this transaction
77
79
  # @param transactionCode [String] The transaction code to adjust
78
80
  # @param documentType [String] (Optional): The document type of the transaction to adjust. (See DocumentType::* for a list of allowable values)
@@ -107,12 +109,14 @@ module AvaTax
107
109
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
108
110
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
109
111
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
112
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
113
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
110
114
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
111
115
  #
112
116
  # ### Security Policies
113
117
  #
114
118
  # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
115
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
119
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
116
120
  # @param companyCode [String] The code identifying the company that owns this transaction
117
121
  # @param transactionCode [String] The code identifying the transaction
118
122
  # @return [Object]
@@ -144,12 +148,14 @@ module AvaTax
144
148
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
145
149
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
146
150
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
151
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
152
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
147
153
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
148
154
  #
149
155
  # ### Security Policies
150
156
  #
151
157
  # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
152
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
158
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
153
159
  # @param companyCode [String] The code identifying the company that owns this transaction
154
160
  # @param transactionCode [String] The code identifying the transaction
155
161
  # @param documentType [String] The document type of the original transaction (See DocumentType::* for a list of allowable values)
@@ -210,12 +216,14 @@ module AvaTax
210
216
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
211
217
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
212
218
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
219
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
220
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
213
221
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
214
222
  #
215
223
  # ### Security Policies
216
224
  #
217
225
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
218
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
226
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
219
227
  # @param companyCode [String] The company code of the company that recorded this transaction
220
228
  # @param transactionCode [String] The transaction code to change
221
229
  # @param documentType [String] (Optional): The document type of the transaction to change document code. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
@@ -255,6 +263,8 @@ module AvaTax
255
263
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
256
264
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
257
265
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
266
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
267
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
258
268
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
259
269
  #
260
270
  # ### Security Policies
@@ -400,7 +410,7 @@ module AvaTax
400
410
  # ### Security Policies
401
411
  #
402
412
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
403
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
413
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
404
414
  # @param include [String] Specifies objects to include in the response after transaction is created
405
415
  # @param model [Object] information about the transaction and lines to be removed
406
416
  # @return [Object]
@@ -435,6 +445,8 @@ module AvaTax
435
445
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
436
446
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
437
447
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
448
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
449
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
438
450
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
439
451
  #
440
452
  # ### Security Policies
@@ -460,6 +472,8 @@ module AvaTax
460
472
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
461
473
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
462
474
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
475
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
476
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
463
477
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
464
478
  #
465
479
  # ### Security Policies
@@ -538,6 +552,8 @@ module AvaTax
538
552
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
539
553
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
540
554
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
555
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
556
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
541
557
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
542
558
  #
543
559
  # ### Security Policies
@@ -586,6 +602,8 @@ module AvaTax
586
602
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
587
603
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
588
604
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
605
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
606
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
589
607
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
590
608
  #
591
609
  # ### Security Policies
@@ -642,12 +660,14 @@ module AvaTax
642
660
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
643
661
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
644
662
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
663
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
664
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
645
665
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
646
666
  #
647
667
  # ### Security Policies
648
668
  #
649
669
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
650
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
670
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
651
671
  # @param companyCode [String] The code of the company that made the original sale
652
672
  # @param transactionCode [String] The transaction code of the original sale
653
673
  # @param include [String] Specifies objects to include in the response after transaction is created
@@ -688,6 +708,8 @@ module AvaTax
688
708
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
689
709
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
690
710
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
711
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
712
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
691
713
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
692
714
  #
693
715
  # ### Security Policies
@@ -726,12 +748,14 @@ module AvaTax
726
748
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
727
749
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
728
750
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
751
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
752
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
729
753
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
730
754
  #
731
755
  # ### Security Policies
732
756
  #
733
757
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
734
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
758
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
735
759
  # @param companyCode [String] The company code of the company that recorded this transaction
736
760
  # @param transactionCode [String] The transaction code to Uncommit
737
761
  # @param documentType [String] (Optional): The document type of the transaction to Uncommit. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
@@ -761,12 +785,14 @@ module AvaTax
761
785
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
762
786
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
763
787
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
788
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
789
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
764
790
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
765
791
  #
766
792
  # ### Security Policies
767
793
  #
768
794
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
769
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
795
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
770
796
  # @param companyCode [String] The company code of the company that recorded this transaction
771
797
  # @param transactionCode [String] The transaction code to commit
772
798
  # @param documentType [String] (Optional): The document type of the transaction to commit. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
@@ -803,12 +829,14 @@ module AvaTax
803
829
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
804
830
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
805
831
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
832
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
833
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
806
834
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
807
835
  #
808
836
  # ### Security Policies
809
837
  #
810
838
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
811
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
839
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, BasicReturns.
812
840
  # @param companyCode [String] The company code of the company that recorded this transaction
813
841
  # @param transactionCode [String] The transaction code to settle
814
842
  # @param documentType [String] (Optional): The document type of the transaction to verify. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
@@ -848,6 +876,8 @@ module AvaTax
848
876
  # * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code
849
877
  # * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code
850
878
  # * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code
879
+ # * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code
880
+ # * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code
851
881
  # * Replace ' ' with '%20' For example: document Code becomes document%20Code
852
882
  #
853
883
  # ### Security Policies
@@ -1,4 +1,4 @@
1
- require 'faraday_middleware/parse_oj'
1
+ require 'faraday_middleware'
2
2
 
3
3
  module AvaTax
4
4
 
@@ -27,7 +27,7 @@ module AvaTax
27
27
  }
28
28
  end
29
29
 
30
- faraday.response :oj, content_type: /\bjson$/
30
+ faraday.response :json, content_type: /\bjson$/
31
31
  faraday.basic_auth(username, password)
32
32
 
33
33
  if logger
@@ -1,3 +1,3 @@
1
1
  module AvaTax
2
- VERSION = '20.6.0'.freeze unless defined?(::AvaTax::VERSION)
2
+ VERSION = '20.7.0'.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: 20.6.0
4
+ version: 20.7.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: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: 1.0.3
97
- - !ruby/object:Gem::Dependency
98
- name: faraday_middleware-parse_oj
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 0.3.2
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 0.3.2
111
97
  description: A Ruby wrapper for the AvaTax REST and Search APIs
112
98
  email:
113
99
  - marcus.vorwaller@avalara.com