avatax 18.7.1 → 18.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,8 +61,8 @@ module AvaTax
61
61
  # @param companyId [Integer] The ID of the company whose DistanceThreshold objects you wish to list.
62
62
  # @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/) .
63
63
  # @param include [String] A comma separated list of additional data to retrieve.
64
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
65
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
64
+ # @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.
65
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
66
66
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
67
67
  # @return [FetchResult]
68
68
  def list_distance_thresholds(companyId, options={})
@@ -83,8 +83,8 @@ module AvaTax
83
83
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
84
84
  # @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/) .
85
85
  # @param include [String] A comma separated list of additional data to retrieve.
86
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
87
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
86
+ # @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.
87
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
88
88
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
89
89
  # @return [FetchResult]
90
90
  def query_distance_thresholds(options={})
@@ -158,8 +158,8 @@ module AvaTax
158
158
  # This API is available by invitation only.
159
159
  # @param companyId [Integer] The ID of the company that owns these batches
160
160
  # @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/) .
161
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
162
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
161
+ # @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.
162
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
163
163
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
164
164
  # @param returnCountry [String] A comma separated list of countries
165
165
  # @param returnRegion [String] A comma separated list of regions
@@ -178,8 +178,8 @@ module AvaTax
178
178
  # @param companyId [Integer] The ID of the company that owns these batches
179
179
  # @param filingCalendarId [Integer] Specific filing calendar id for the request
180
180
  # @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/) .
181
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
182
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
181
+ # @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.
182
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
183
183
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
184
184
  # @return [FetchResult]
185
185
  def list_filing_requests(companyId, options={})
@@ -219,8 +219,8 @@ module AvaTax
219
219
  #
220
220
  # This API is available by invitation only.
221
221
  # @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/) .
222
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
223
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
222
+ # @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.
223
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
224
224
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
225
225
  # @param returnCountry [String] If specified, fetches only filing calendars that apply to tax filings in this specific country. Uses ISO 3166 country codes.
226
226
  # @param returnRegion [String] If specified, fetches only filing calendars that apply to tax filings in this specific region. Uses ISO 3166 region codes.
@@ -241,8 +241,8 @@ module AvaTax
241
241
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
242
242
  # @param filingCalendarId [Integer] Specific filing calendar id for the request
243
243
  # @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/) .
244
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
245
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
244
+ # @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.
245
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
246
246
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
247
247
  # @return [FetchResult]
248
248
  def query_filing_requests(options={})
@@ -256,10 +256,11 @@ module AvaTax
256
256
  # based on filing frequency of filing.
257
257
  # @param companyId [Integer] The ID of the company that owns the filings.
258
258
  # @param id [Integer] The id of the filing return your retrieving
259
+ # @param details [Boolean] Indicates if you would like the credit details returned
259
260
  # @return [FetchResult]
260
- def get_filing_return(companyId, id)
261
+ def get_filing_return(companyId, id, options={})
261
262
  path = "/api/v2/companies/#{companyId}/filings/returns/#{id}"
262
- get(path)
263
+ get(path, options)
263
264
  end
264
265
 
265
266
 
@@ -41,7 +41,7 @@ module AvaTax
41
41
 
42
42
  # Retrieve a single item
43
43
  #
44
- # Get the item object identified by this URL.
44
+ # Get the `Item` object identified by this URL.
45
45
  #
46
46
  # Items are a way of separating your tax calculation process from your tax configuration details. If you choose, you
47
47
  # can provide `itemCode` values for each `CreateTransaction()` API call rather than specifying tax codes, parameters, descriptions,
@@ -68,6 +68,7 @@ module AvaTax
68
68
  # team can manage your item catalog and adjust the tax behavior of items without having to modify your software.
69
69
  #
70
70
  # 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/) .
71
+ #
71
72
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
72
73
  #
73
74
  # You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
@@ -76,8 +77,8 @@ module AvaTax
76
77
  # @param companyId [Integer] The ID of the company that defined these items
77
78
  # @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/) .
78
79
  # @param include [String] A comma separated list of additional data to retrieve.
79
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
80
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
80
+ # @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.
81
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
81
82
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
82
83
  # @return [FetchResult]
83
84
  def list_items_by_company(companyId, options={})
@@ -97,6 +98,7 @@ module AvaTax
97
98
  # team can manage your item catalog and adjust the tax behavior of items without having to modify your software.
98
99
  #
99
100
  # 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/) .
101
+ #
100
102
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
101
103
  #
102
104
  # You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:
@@ -104,8 +106,8 @@ module AvaTax
104
106
  # * Attributes
105
107
  # @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/) .
106
108
  # @param include [String] A comma separated list of additional data to retrieve.
107
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
108
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
109
+ # @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.
110
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
109
111
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
110
112
  # @return [FetchResult]
111
113
  def query_items(options={})
@@ -124,8 +126,8 @@ module AvaTax
124
126
  # from the item table instead. This allows your CreateTransaction call to be as simple as possible, and your tax compliance
125
127
  # team can manage your item catalog and adjust the tax behavior of items without having to modify your software.
126
128
  #
127
- # All data from the existing object will be replaced with data in the object you PUT.
128
- # 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.
129
+ # All data from the existing object will be replaced with data in the object you PUT. To set a field's value to null,
130
+ # you may either set its value to null or omit that field from the object you post.
129
131
  # @param companyId [Integer] The ID of the company that this item belongs to.
130
132
  # @param id [Integer] The ID of the item you wish to update
131
133
  # @param model [Object] The item object you wish to update.
@@ -63,8 +63,8 @@ module AvaTax
63
63
  # @param accountId [Integer] The ID of the account that owns this override
64
64
  # @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/) .
65
65
  # @param include [String] A comma separated list of additional data to retrieve.
66
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
67
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
66
+ # @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.
67
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
68
68
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
69
69
  # @return [FetchResult]
70
70
  def list_jurisdiction_overrides_by_account(accountId, options={})
@@ -86,8 +86,8 @@ module AvaTax
86
86
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
87
87
  # @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/) .
88
88
  # @param include [String] A comma separated list of additional data to retrieve.
89
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
90
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
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
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
91
91
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
92
92
  # @return [FetchResult]
93
93
  def query_jurisdiction_overrides(options={})
@@ -64,8 +64,8 @@ module AvaTax
64
64
  # @param companyId [Integer] The ID of the company that owns these locations
65
65
  # @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/) .
66
66
  # @param include [String] A comma separated list of additional data to retrieve. You may specify `LocationSettings` to retrieve location settings.
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.
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.
68
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
69
69
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
70
70
  # @return [FetchResult]
71
71
  def list_locations_by_company(companyId, options={})
@@ -90,8 +90,8 @@ module AvaTax
90
90
  # * LocationSettings
91
91
  # @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/) .
92
92
  # @param include [String] A comma separated list of additional data to retrieve. You may specify `LocationSettings` to retrieve location settings.
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.
93
+ # @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.
94
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
95
95
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
96
96
  # @return [FetchResult]
97
97
  def query_locations(options={})
@@ -191,8 +191,8 @@ module AvaTax
191
191
  # * LinesOnly (omit details - reduces API response size)
192
192
  # @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/) .
193
193
  # @param include [String] Specifies objects to include in the response after transaction is created
194
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
195
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
194
+ # @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.
195
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
196
196
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
197
197
  # @return [FetchResult]
198
198
  def list_multi_document_transactions(options={})
@@ -5,15 +5,25 @@ module AvaTax
5
5
 
6
6
  # Create a new nexus
7
7
  #
8
- # Creates one or more new nexus objects attached to this company.
9
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
10
- # to collect and remit transaction-based taxes.
11
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
12
- # in all jurisdictions affected by your transactions.
13
- # Note that not all fields within a nexus can be updated; Avalara publishes a list of all defined nexus at the
14
- # '/api/v2/definitions/nexus' endpoint.
15
- # You may only define nexus matching the official list of declared nexus.
16
- # Please allow 1 minute before using the created nexus in your transactions.
8
+ # Creates one or more new nexus declarations attached to this company.
9
+ #
10
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
11
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
12
+ # accountant or lawyer prior to declaring nexus.
13
+ #
14
+ # To create a nexus declaration for your company, you must first call the Definitions API `ListNexus` to obtain a
15
+ # list of Avalara-defined nexus. Once you have determined which nexus you wish to declare, you should customize
16
+ # only the user-selectable fields in this object.
17
+ #
18
+ # The user selectable fields for the nexus object are `companyId`, `effectiveDate`, `endDate`, `localNexusTypeId`,
19
+ # `taxId`, `nexusTypeId`, `hasPermanentEstablishment`, and `isSellerImporterOfRecord`.
20
+ #
21
+ # When calling `CreateNexus` or `UpdateNexus`, all values in your nexus object except for the user-selectable fields
22
+ # must match an Avalara-defined system nexus object. You can retrieve a list of Avalara-defined system nexus objects
23
+ # by calling `ListNexus`. If any data does not match, AvaTax may not recognize your nexus declaration.
24
+ #
25
+ # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
26
+ # of calculating tax for a location.
17
27
  # @param companyId [Integer] The ID of the company that owns this nexus.
18
28
  # @param model [NexusModel[]] The nexus you wish to create.
19
29
  # @return [NexusModel[]]
@@ -29,18 +39,17 @@ module AvaTax
29
39
  # API declares nexus for this company, for the list of addresses provided,
30
40
  # for the date range provided. You may also use this API to extend effective date on an already-declared nexus.
31
41
  #
32
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
33
- # to collect and remit transaction-based taxes.
34
- #
35
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
36
- # in all jurisdictions affected by your transactions.
42
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
43
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
44
+ # accountant or lawyer prior to declaring nexus.
37
45
  #
38
46
  # Note that not all fields within a nexus can be updated; Avalara publishes a list of all defined nexus at the
39
47
  # '/api/v2/definitions/nexus' endpoint.
40
48
  #
41
49
  # You may only define nexus matching the official list of declared nexus.
42
50
  #
43
- # Please allow 1 minute before using the created nexus in your transactions.
51
+ # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
52
+ # of calculating tax for a location.
44
53
  # @param companyId [Integer] The ID of the company that will own this nexus.
45
54
  # @param model [DeclareNexusByAddressModel[]] The nexus you wish to create.
46
55
  # @return [NexusByAddressModel[]]
@@ -53,7 +62,13 @@ module AvaTax
53
62
  # Delete a single nexus
54
63
  #
55
64
  # Marks the existing nexus object at this URL as deleted.
56
- # Please allow 1 minute to stop collecting tax in your transaction on the deleted Nexus.
65
+ #
66
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
67
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
68
+ # accountant or lawyer prior to declaring nexus.
69
+ #
70
+ # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
71
+ # of calculating tax for a location.
57
72
  # @param companyId [Integer] The ID of the company that owns this nexus.
58
73
  # @param id [Integer] The ID of the nexus you wish to delete.
59
74
  # @return [ErrorDetail[]]
@@ -66,10 +81,10 @@ module AvaTax
66
81
  # Retrieve a single nexus
67
82
  #
68
83
  # Get the nexus object identified by this URL.
69
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
70
- # to collect and remit transaction-based taxes.
71
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
72
- # in all jurisdictions affected by your transactions.
84
+ #
85
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
86
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
87
+ # accountant or lawyer prior to declaring nexus.
73
88
  # @param companyId [Integer] The ID of the company that owns this nexus object
74
89
  # @param id [Integer] The primary key of this nexus
75
90
  # @return [Object]
@@ -83,11 +98,9 @@ module AvaTax
83
98
  #
84
99
  # Retrieves a list of nexus related to a tax form.
85
100
  #
86
- # The concept of `Nexus` indicates a place where your company has sufficient physical presence and is obligated
87
- # to collect and remit transaction-based taxes.
88
- #
89
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
90
- # in all jurisdictions affected by your transactions.
101
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
102
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
103
+ # accountant or lawyer prior to declaring nexus.
91
104
  #
92
105
  # This API is intended to provide useful information when examining a tax form. If you are about to begin filing
93
106
  # a tax form, you may want to know whether you have declared nexus in all the jurisdictions related to that tax
@@ -104,18 +117,18 @@ module AvaTax
104
117
  # Retrieve nexus for this company
105
118
  #
106
119
  # List all nexus objects defined for this company.
107
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
108
- # to collect and remit transaction-based taxes.
109
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
110
- # in all jurisdictions affected by your transactions.
120
+ #
121
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
122
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
123
+ # accountant or lawyer prior to declaring nexus.
111
124
  #
112
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/) .
113
126
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
114
127
  # @param companyId [Integer] The ID of the company that owns these nexus objects
115
128
  # @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/) .
116
129
  # @param include [String] A comma separated list of additional data to retrieve.
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.
130
+ # @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.
131
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
119
132
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
120
133
  # @return [FetchResult]
121
134
  def list_nexus_by_company(companyId, options={})
@@ -127,17 +140,17 @@ module AvaTax
127
140
  # Retrieve all nexus
128
141
  #
129
142
  # Get multiple nexus objects across all companies.
130
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
131
- # to collect and remit transaction-based taxes.
132
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
133
- # in all jurisdictions affected by your transactions.
143
+ #
144
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
145
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
146
+ # accountant or lawyer prior to declaring nexus.
134
147
  #
135
148
  # 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/) .
136
149
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
137
150
  # @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/) .
138
151
  # @param include [String] A comma separated list of additional data to retrieve.
139
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
140
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
152
+ # @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.
153
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
141
154
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
142
155
  # @return [FetchResult]
143
156
  def query_nexus(options={})
@@ -148,17 +161,25 @@ module AvaTax
148
161
 
149
162
  # Update a single nexus
150
163
  #
151
- # Replace the existing nexus object at this URL with an updated object.
152
- # The concept of 'Nexus' indicates a place where your company has sufficient physical presence and is obligated
153
- # to collect and remit transaction-based taxes.
154
- # When defining companies in AvaTax, you must declare nexus for your company in order to correctly calculate tax
155
- # in all jurisdictions affected by your transactions.
156
- # Note that not all fields within a nexus can be updated; Avalara publishes a list of all defined nexus at the
157
- # '/api/v2/definitions/nexus' endpoint.
158
- # You may only define nexus matching the official list of declared nexus.
159
- # All data from the existing object will be replaced with data in the object you PUT.
160
- # 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.
161
- # Please allow 1 minute for your updated Nexus to take effect on your transactions.
164
+ # Replace the existing nexus declaration object at this URL with an updated object.
165
+ #
166
+ # The concept of Nexus indicates a place where your company is legally obligated to collect and remit transactional
167
+ # taxes. The legal requirements for nexus may vary per country and per jurisdiction; please seek advice from your
168
+ # accountant or lawyer prior to declaring nexus.
169
+ #
170
+ # To create a nexus declaration for your company, you must first call the Definitions API `ListNexus` to obtain a
171
+ # list of Avalara-defined nexus. Once you have determined which nexus you wish to declare, you should customize
172
+ # only the user-selectable fields in this object.
173
+ #
174
+ # The user selectable fields for the nexus object are `companyId`, `effectiveDate`, `endDate`, `localNexusTypeId`,
175
+ # `taxId`, `nexusTypeId`, `hasPermanentEstablishment`, and `isSellerImporterOfRecord`.
176
+ #
177
+ # When calling `CreateNexus` or `UpdateNexus`, all values in your nexus object except for the user-selectable fields
178
+ # must match an Avalara-defined system nexus object. You can retrieve a list of Avalara-defined system nexus objects
179
+ # by calling `ListNexus`. If any data does not match, AvaTax may not recognize your nexus declaration.
180
+ #
181
+ # Please note that nexus changes may not take effect immediately and you should plan to update your nexus settings in advance
182
+ # of calculating tax for a location.
162
183
  # @param companyId [Integer] The ID of the company that this nexus belongs to.
163
184
  # @param id [Integer] The ID of the nexus you wish to update
164
185
  # @param model [Object] The nexus object you wish to update.
@@ -264,8 +264,8 @@ module AvaTax
264
264
  # @param companyId [Integer] The ID of the company that owns these notices.
265
265
  # @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/) .
266
266
  # @param include [String] A comma separated list of additional data to retrieve.
267
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
268
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
267
+ # @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.
268
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
269
269
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
270
270
  # @return [FetchResult]
271
271
  def list_notices_by_company(companyId, options={})
@@ -285,8 +285,8 @@ module AvaTax
285
285
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
286
286
  # @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/) .
287
287
  # @param include [String] A comma separated list of additional data to retrieve.
288
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
289
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
288
+ # @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.
289
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
290
290
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
291
291
  # @return [FetchResult]
292
292
  def query_notices(options={})
@@ -57,8 +57,8 @@ module AvaTax
57
57
  # You may 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/) .
58
58
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
59
59
  # @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/) .
60
- # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
61
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
60
+ # @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.
61
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
62
62
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
63
63
  # @return [FetchResult]
64
64
  def list_notifications(options={})
@@ -3,22 +3,6 @@ module AvaTax
3
3
  module Registrar
4
4
 
5
5
 
6
- # Change Password
7
- #
8
- # # For Registrar Use Only
9
- # This API is for use by Avalara Registrar administrative users only.
10
- #
11
- # Allows a user to change their password via the API.
12
- # This API only allows the currently authenticated user to change their password; it cannot be used to apply to a
13
- # different user than the one authenticating the current API call.
14
- # @param model [Object] An object containing your current password and the new password.
15
- # @return [String]
16
- def change_password(model)
17
- path = "/api/v2/passwords"
18
- put(path, model)
19
- end
20
-
21
-
22
6
  # Create a new account
23
7
  #
24
8
  # # For Registrar Use Only
@@ -121,21 +105,6 @@ module AvaTax
121
105
  end
122
106
 
123
107
 
124
- # Delete a single user
125
- #
126
- # # For Registrar Use Only
127
- # This API is for use by Avalara Registrar administrative users only.
128
- #
129
- # Mark the user object identified by this URL as deleted.
130
- # @param id [Integer] The ID of the user you wish to delete.
131
- # @param accountId [Integer] The accountID of the user you wish to delete.
132
- # @return [ErrorDetail[]]
133
- def delete_user(id, accountId)
134
- path = "/api/v2/accounts/#{accountId}/users/#{id}"
135
- delete(path)
136
- end
137
-
138
-
139
108
  # Reset a user's password programmatically
140
109
  #
141
110
  # # For Registrar Use Only