avatax 18.7.1 → 18.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,8 +84,8 @@ module AvaTax
84
84
  # @param companyId [Integer] The ID of the company that owns these settings
85
85
  # @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/) .
86
86
  # @param include [String] A comma separated list of additional data to retrieve.
87
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
88
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
87
+ # @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.
88
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
89
89
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
90
90
  # @return [FetchResult]
91
91
  def list_settings_by_company(companyId, options={})
@@ -111,8 +111,8 @@ module AvaTax
111
111
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
112
112
  # @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/) .
113
113
  # @param include [String] A comma separated list of additional data to retrieve.
114
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
115
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
114
+ # @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.
115
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
116
116
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
117
117
  # @return [FetchResult]
118
118
  def query_settings(options={})
@@ -27,8 +27,8 @@ module AvaTax
27
27
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
28
28
  # @param accountId [Integer] The ID of the account that owns these subscriptions
29
29
  # @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/) .
30
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
31
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
30
+ # @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.
31
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
32
32
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
33
33
  # @return [FetchResult]
34
34
  def list_subscriptions_by_account(accountId, options={})
@@ -46,8 +46,8 @@ module AvaTax
46
46
  # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
47
47
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
48
48
  # @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/) .
49
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
50
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
49
+ # @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.
50
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
51
51
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
52
52
  # @return [FetchResult]
53
53
  def query_subscriptions(options={})
@@ -60,8 +60,8 @@ module AvaTax
60
60
  # @param companyId [Integer] The ID of the company that owns these tax codes
61
61
  # @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/) .
62
62
  # @param include [String] A comma separated list of additional data to retrieve.
63
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
64
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
63
+ # @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.
64
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
65
65
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
66
66
  # @return [FetchResult]
67
67
  def list_tax_codes_by_company(companyId, options={})
@@ -82,8 +82,8 @@ module AvaTax
82
82
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
83
83
  # @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/) .
84
84
  # @param include [String] A comma separated list of additional data to retrieve.
85
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
86
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
85
+ # @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.
86
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
87
87
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
88
88
  # @return [FetchResult]
89
89
  def query_tax_codes(options={})
@@ -7,6 +7,12 @@ module AvaTax
7
7
  #
8
8
  # Builds a tax content file containing information useful for a retail point-of-sale solution.
9
9
  #
10
+ # Since tax rates may change based on decisions made by a variety of tax authorities, we recommend
11
+ # that users of this tax content API download new data every day. Many tax authorities may finalize
12
+ # decisions on tax changes at unexpected times and may make changes in response to legal issues or
13
+ # governmental priorities. Any tax content downloaded for future time periods is subject to change
14
+ # if tax rates or tax laws change.
15
+ #
10
16
  # A TaxContent file contains a matrix of the taxes that would be charged when you sell any of your
11
17
  # Items at any of your Locations. To create items, use `CreateItems()`. To create locations, use
12
18
  # `CreateLocations()`. The file is built by looking up the tax profile for your location and your
@@ -34,6 +40,12 @@ module AvaTax
34
40
  #
35
41
  # Builds a tax content file containing information useful for a retail point-of-sale solution.
36
42
  #
43
+ # Since tax rates may change based on decisions made by a variety of tax authorities, we recommend
44
+ # that users of this tax content API download new data every day. Many tax authorities may finalize
45
+ # decisions on tax changes at unexpected times and may make changes in response to legal issues or
46
+ # governmental priorities. Any tax content downloaded for future time periods is subject to change
47
+ # if tax rates or tax laws change.
48
+ #
37
49
  # A TaxContent file contains a matrix of the taxes that would be charged when you sell any of your
38
50
  # Items at any of your Locations. To create items, use `CreateItems()`. To create locations, use
39
51
  # `CreateLocations()`. The file is built by looking up the tax profile for your location and your
@@ -54,7 +66,7 @@ module AvaTax
54
66
  # @param date [DateTime] The date for which point-of-sale data would be calculated (today by default)
55
67
  # @param format [String] The format of the file (JSON by default) (See PointOfSaleFileType::* for a list of allowable values)
56
68
  # @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 [object] When true, the file will include jurisdiction codes in the result.
69
+ # @param includeJurisCodes [Boolean] When true, the file will include jurisdiction codes in the result.
58
70
  # @return [Object]
59
71
  def build_tax_content_file_for_location(companyId, id, options={})
60
72
  path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata"
@@ -67,6 +79,12 @@ module AvaTax
67
79
  # Download a CSV file containing all five digit postal codes in the United States and their sales
68
80
  # and use tax rates for tangible personal property.
69
81
  #
82
+ # Since tax rates may change based on decisions made by a variety of tax authorities, we recommend
83
+ # that users of this tax content API download new data every day. Many tax authorities may finalize
84
+ # decisions on tax changes at unexpected times and may make changes in response to legal issues or
85
+ # governmental priorities. Any tax content downloaded for future time periods is subject to change
86
+ # if tax rates or tax laws change.
87
+ #
70
88
  # This rates file is intended to be used as a default for tax calculation when your software cannot
71
89
  # call the `CreateTransaction` API call. When using this file, your software will be unable to
72
90
  # handle complex tax rules such as:
@@ -5,11 +5,19 @@ module AvaTax
5
5
 
6
6
  # Create a new tax rule
7
7
  #
8
- # Create one or more new taxrule objects attached to this company.
9
- # A tax rule represents a custom taxability rule for a product or service sold by your company.
10
- # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
11
- # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
12
- # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
8
+ # Create one or more custom tax rules attached to this company.
9
+ #
10
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
11
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
12
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
13
+ # with the transaction.
14
+ #
15
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
16
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
17
+ # custom tax rules to redefine the behavior for your company or item.
18
+ #
19
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
20
+ # auditor, legal representative, and accounting team.
13
21
  # @param companyId [Integer] The ID of the company that owns this tax rule.
14
22
  # @param model [TaxRuleModel[]] The tax rule you wish to create.
15
23
  # @return [TaxRuleModel[]]
@@ -21,7 +29,19 @@ module AvaTax
21
29
 
22
30
  # Delete a single tax rule
23
31
  #
24
- # Mark the TaxRule identified by this URL as deleted.
32
+ # Mark the custom tax rule identified by this URL as deleted.
33
+ #
34
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
35
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
36
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
37
+ # with the transaction.
38
+ #
39
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
40
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
41
+ # custom tax rules to redefine the behavior for your company or item.
42
+ #
43
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
44
+ # auditor, legal representative, and accounting team.
25
45
  # @param companyId [Integer] The ID of the company that owns this tax rule.
26
46
  # @param id [Integer] The ID of the tax rule you wish to delete.
27
47
  # @return [ErrorDetail[]]
@@ -34,10 +54,18 @@ module AvaTax
34
54
  # Retrieve a single tax rule
35
55
  #
36
56
  # Get the taxrule object identified by this URL.
37
- # A tax rule represents a custom taxability rule for a product or service sold by your company.
38
- # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
39
- # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
40
- # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
57
+ #
58
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
59
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
60
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
61
+ # with the transaction.
62
+ #
63
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
64
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
65
+ # custom tax rules to redefine the behavior for your company or item.
66
+ #
67
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
68
+ # auditor, legal representative, and accounting team.
41
69
  # @param companyId [Integer] The ID of the company that owns this tax rule
42
70
  # @param id [Integer] The primary key of this tax rule
43
71
  # @return [Object]
@@ -50,18 +78,26 @@ module AvaTax
50
78
  # Retrieve tax rules for this company
51
79
  #
52
80
  # List all taxrule objects attached to this company.
53
- # A tax rule represents a custom taxability rule for a product or service sold by your company.
54
- # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
55
- # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
56
- # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
81
+ #
82
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
83
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
84
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
85
+ # with the transaction.
86
+ #
87
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
88
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
89
+ # custom tax rules to redefine the behavior for your company or item.
90
+ #
91
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
92
+ # auditor, legal representative, and accounting team.
57
93
  #
58
94
  # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
59
95
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
60
96
  # @param companyId [Integer] The ID of the company that owns these tax rules
61
97
  # @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/) .
62
98
  # @param include [String] A comma separated list of additional data to retrieve.
63
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
64
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
99
+ # @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.
100
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
65
101
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
66
102
  # @return [FetchResult]
67
103
  def list_tax_rules(companyId, options={})
@@ -73,17 +109,25 @@ module AvaTax
73
109
  # Retrieve all tax rules
74
110
  #
75
111
  # Get multiple taxrule objects across all companies.
76
- # A tax rule represents a custom taxability rule for a product or service sold by your company.
77
- # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
78
- # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
79
- # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
112
+ #
113
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
114
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
115
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
116
+ # with the transaction.
117
+ #
118
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
119
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
120
+ # custom tax rules to redefine the behavior for your company or item.
121
+ #
122
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
123
+ # auditor, legal representative, and accounting team.
80
124
  #
81
125
  # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
82
126
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
83
127
  # @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/) .
84
128
  # @param include [String] A comma separated list of additional data to retrieve.
85
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
86
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
129
+ # @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.
130
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
87
131
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
88
132
  # @return [FetchResult]
89
133
  def query_tax_rules(options={})
@@ -94,13 +138,19 @@ module AvaTax
94
138
 
95
139
  # Update a single tax rule
96
140
  #
97
- # Replace the existing taxrule object at this URL with an updated object.
98
- # A tax rule represents a custom taxability rule for a product or service sold by your company.
99
- # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
100
- # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
101
- # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
102
- # All data from the existing object will be replaced with data in the object you PUT.
103
- # To set a field's value to null, you may either set its value to null or omit that field from the object you post.
141
+ # Replace the existing custom tax rule object at this URL with an updated object.
142
+ #
143
+ # A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules
144
+ # can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate
145
+ # charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted
146
+ # with the transaction.
147
+ #
148
+ # You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your
149
+ # business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use
150
+ # custom tax rules to redefine the behavior for your company or item.
151
+ #
152
+ # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
153
+ # auditor, legal representative, and accounting team.
104
154
  # @param companyId [Integer] The ID of the company that this tax rule belongs to.
105
155
  # @param id [Integer] The ID of the tax rule you wish to update
106
156
  # @param model [Object] The tax rule you wish to update.
@@ -248,6 +248,7 @@ module AvaTax
248
248
  # * SummaryOnly (omit lines and details - reduces API response size)
249
249
  # * LinesOnly (omit details - reduces API response size)
250
250
  # * ForceTimeout - Simulates a timeout. This adds a 30 second delay and error to your API call. This can be used to test your code to ensure it can respond correctly in the case of a dropped connection.
251
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
251
252
  #
252
253
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
253
254
  # @param include [String] Specifies objects to include in the response after transaction is created
@@ -385,8 +386,8 @@ module AvaTax
385
386
  # @param companyCode [String] The company code of the company that recorded this transaction
386
387
  # @param include [String] Specifies objects to include in this fetch call
387
388
  # @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/) .
388
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
389
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
389
+ # @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.
390
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
390
391
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
391
392
  # @return [FetchResult]
392
393
  def list_transactions_by_company(companyCode, options={})
@@ -456,7 +457,7 @@ module AvaTax
456
457
  # @param transactionCode [String] The transaction code of the original sale
457
458
  # @param include [String] Specifies objects to include in the response after transaction is created
458
459
  # @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 [object] (Optional): If set to true, processes refund using taxDateOverride rather than taxAmountOverride (Note: taxAmountOverride is not allowed for SST states).
460
+ # @param useTaxDateOverride [Boolean] (Optional): If set to true, processes refund using taxDateOverride rather than taxAmountOverride (Note: taxAmountOverride is not allowed for SST states).
460
461
  # @param model [Object] Information about the refund to create
461
462
  # @return [Object]
462
463
  def refund_transaction(companyCode, transactionCode, model, options={})
@@ -51,8 +51,8 @@ module AvaTax
51
51
  # @param companyId [Integer] The ID of the company that owns these UPCs
52
52
  # @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/) .
53
53
  # @param include [String] A comma separated list of additional data to retrieve.
54
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
55
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
54
+ # @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.
55
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
56
56
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
57
57
  # @return [FetchResult]
58
58
  def list_u_p_cs_by_company(companyId, options={})
@@ -70,8 +70,8 @@ module AvaTax
70
70
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
71
71
  # @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/) .
72
72
  # @param include [String] A comma separated list of additional data to retrieve.
73
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
74
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
73
+ # @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.
74
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
75
75
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
76
76
  # @return [FetchResult]
77
77
  def query_u_p_cs(options={})
@@ -3,6 +3,23 @@ module AvaTax
3
3
  module Users
4
4
 
5
5
 
6
+ # Change Password
7
+ #
8
+ # Allows a user to change their password via an API call.
9
+ #
10
+ # This API allows an authenticated user to change their password via an API call. This feature is only available
11
+ # for accounts that do not use SAML integrated password validation.
12
+ #
13
+ # This API only allows the currently authenticated user to change their password; it cannot be used to apply to a
14
+ # different user than the one authenticating the current API call.
15
+ # @param model [Object] An object containing your current password and the new password.
16
+ # @return [String]
17
+ def change_password(model)
18
+ path = "/api/v2/passwords"
19
+ put(path, model)
20
+ end
21
+
22
+
6
23
  # Create new users
7
24
  #
8
25
  # Create one or more new user objects attached to this account.
@@ -23,6 +40,23 @@ module AvaTax
23
40
  end
24
41
 
25
42
 
43
+ # Delete a single user
44
+ #
45
+ # Mark the user object identified by this URL as deleted.
46
+ #
47
+ # This API is available for use by account and company administrators only.
48
+ #
49
+ # Account and company administrators may only delete users within the appropriate organizations
50
+ # they control.
51
+ # @param id [Integer] The ID of the user you wish to delete.
52
+ # @param accountId [Integer] The accountID of the user you wish to delete.
53
+ # @return [ErrorDetail[]]
54
+ def delete_user(id, accountId)
55
+ path = "/api/v2/accounts/#{accountId}/users/#{id}"
56
+ delete(path)
57
+ end
58
+
59
+
26
60
  # Retrieve a single user
27
61
  #
28
62
  # Get the user object identified by this URL.
@@ -63,20 +97,6 @@ module AvaTax
63
97
  end
64
98
 
65
99
 
66
- # Get information about a username.
67
- #
68
- # You may call this API prior to creating a user, to check if a particular username is available for use. Using this API, you can
69
- # present a friendly experience prior to attempting to create a new user object.
70
- #
71
- # Please ensure that the query string is url encoded if you wish to check information for a user that contains url-sensitive characters.
72
- # @param username [String] The username to search.
73
- # @return [Object]
74
- def get_username(options={})
75
- path = "/api/v2/usernames"
76
- get(path, options)
77
- end
78
-
79
-
80
100
  # Retrieve users for this account
81
101
  #
82
102
  # List all user objects attached to this account.
@@ -90,8 +110,8 @@ module AvaTax
90
110
  # @param accountId [Integer] The accountID of the user you wish to list.
91
111
  # @param include [String] Optional fetch commands.
92
112
  # @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/) .
93
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
94
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
113
+ # @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.
114
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
95
115
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
96
116
  # @return [FetchResult]
97
117
  def list_users_by_account(accountId, options={})
@@ -114,8 +134,8 @@ module AvaTax
114
134
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
115
135
  # @param include [String] Optional fetch commands.
116
136
  # @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/) .
117
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
118
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
137
+ # @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.
138
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
119
139
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
120
140
  # @return [FetchResult]
121
141
  def query_users(options={})
@@ -6,8 +6,13 @@ module AvaTax
6
6
  # Checks if the current user is subscribed to a specific service
7
7
  #
8
8
  # Returns a subscription object for the current account, or 404 Not Found if this subscription is not enabled for this account.
9
- # This API call is intended to allow you to identify whether you have the necessary account configuration to access certain
10
- # features of AvaTax, and would be useful in debugging access privilege problems.
9
+ #
10
+ # This API will return an error if it is called with invalid authentication credentials.
11
+ #
12
+ # This API is intended to help you determine whether you have the necessary subscription to use certain API calls
13
+ # within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
14
+ # or subscription to provide useful information to the current user as to whether they are entitled to use
15
+ # specific features of AvaTax.
11
16
  # @param serviceTypeId [String] The service to check (See ServiceTypeId::* for a list of allowable values)
12
17
  # @return [Object]
13
18
  def get_my_subscription(serviceTypeId)
@@ -18,9 +23,14 @@ module AvaTax
18
23
 
19
24
  # List all services to which the current user is subscribed
20
25
  #
21
- # Returns the list of all subscriptions enabled for the current account.
26
+ # Returns the list of all subscriptions enabled for the currently logged in user.
27
+ #
28
+ # This API will return an error if it is called with invalid authentication credentials.
29
+ #
22
30
  # This API is intended to help you determine whether you have the necessary subscription to use certain API calls
23
- # within AvaTax.
31
+ # within AvaTax. You can examine the subscriptions returned from this API call to look for a particular product
32
+ # or subscription to provide useful information to the current user as to whether they are entitled to use
33
+ # specific features of AvaTax.
24
34
  # @return [FetchResult]
25
35
  def list_my_subscriptions()
26
36
  path = "/api/v2/utilities/subscriptions"
@@ -30,11 +40,22 @@ module AvaTax
30
40
 
31
41
  # Tests connectivity and version of the service
32
42
  #
43
+ # Check connectivity to AvaTax and return information about the AvaTax API server.
44
+ #
45
+ # This API is intended to help you verify that your connection is working. This API will always succeed and will
46
+ # never return a error. It provides basic information about the server you connect to:
47
+ #
48
+ # * `version` - The version number of the AvaTax API server that responded to your request. The AvaTax API version number is updated once per month during Avalara's update process.
49
+ # * `authenticated` - A boolean flag indicating whether or not you sent valid credentials with your API request.
50
+ # * `authenticationType` - If you provided valid credentials to the API, this field will tell you whether you used Bearer, Username, or LicenseKey authentication.
51
+ # * `authenticatedUserName` - If you provided valid credentials to the API, this field will tell you the username of the currently logged in user.
52
+ # * `authenticatedUserId` - If you provided valid credentials to the API, this field will tell you the user ID of the currently logged in user.
53
+ # * `authenticatedAccountId` - If you provided valid credentials to the API, this field will contain the account ID of the currently logged in user.
54
+ #
33
55
  # This API helps diagnose connectivity problems between your application and AvaTax; you may call this API even
34
- # if you do not have verified connection credentials.
35
- # The results of this API call will help you determine whether your computer can contact AvaTax via the network,
36
- # whether your authentication credentials are recognized, and the roundtrip time it takes to communicate with
37
- # AvaTax.
56
+ # if you do not have verified connection credentials. If this API fails, either your computer is not connected to
57
+ # the internet, or there is a routing problem between your office and Avalara, or the Avalara server is not available.
58
+ # For more information on the uptime of AvaTax, please see [Avalara's AvaTax Status Page](https://status.avalara.com/).
38
59
  # @return [Object]
39
60
  def ping()
40
61
  path = "/api/v2/utilities/ping"