avatax 19.3.0 → 19.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +28 -0
  3. data/lib/avatax/client/addresses.rb +10 -0
  4. data/lib/avatax/client/avafileforms.rb +30 -0
  5. data/lib/avatax/client/batches.rb +24 -0
  6. data/lib/avatax/client/certexpressinvites.rb +15 -0
  7. data/lib/avatax/client/certificates.rb +76 -1
  8. data/lib/avatax/client/companies.rb +66 -2
  9. data/lib/avatax/client/contacts.rb +24 -0
  10. data/lib/avatax/client/customers.rb +50 -0
  11. data/lib/avatax/client/datasources.rb +30 -0
  12. data/lib/avatax/client/definitions.rb +28 -4
  13. data/lib/avatax/client/distancethresholds.rb +24 -0
  14. data/lib/avatax/client/filingcalendars.rb +132 -0
  15. data/lib/avatax/client/filings.rb +164 -2
  16. data/lib/avatax/client/free.rb +4 -0
  17. data/lib/avatax/client/fundingrequests.rb +12 -0
  18. data/lib/avatax/client/items.rb +64 -23
  19. data/lib/avatax/client/jurisdictionoverrides.rb +24 -0
  20. data/lib/avatax/client/locations.rb +28 -0
  21. data/lib/avatax/client/multidocument.rb +50 -0
  22. data/lib/avatax/client/nexus.rb +34 -21
  23. data/lib/avatax/client/notices.rb +141 -2
  24. data/lib/avatax/client/notifications.rb +12 -0
  25. data/lib/avatax/client/onboarding.rb +12 -0
  26. data/lib/avatax/client/registrar.rb +44 -1
  27. data/lib/avatax/client/reports.rb +16 -0
  28. data/lib/avatax/client/settings.rb +24 -0
  29. data/lib/avatax/client/subscriptions.rb +12 -0
  30. data/lib/avatax/client/taxcodes.rb +24 -0
  31. data/lib/avatax/client/taxcontent.rb +14 -15
  32. data/lib/avatax/client/taxrules.rb +24 -0
  33. data/lib/avatax/client/transactions.rb +187 -1
  34. data/lib/avatax/client/upcs.rb +30 -0
  35. data/lib/avatax/client/users.rb +44 -14
  36. data/lib/avatax/client/utilities.rb +4 -0
  37. data/lib/avatax/version.rb +1 -1
  38. metadata +2 -2
@@ -10,6 +10,10 @@ module AvaTax
10
10
  #
11
11
  # Create a single new account object.
12
12
  # When creating an account object you may attach subscriptions and users as part of the 'Create' call.
13
+ #
14
+ # ### Security Policies
15
+ #
16
+ # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
13
17
  # @param model [Object] The account you wish to create.
14
18
  # @return [AccountModel[]]
15
19
  def create_account(model)
@@ -30,6 +34,11 @@ module AvaTax
30
34
  #
31
35
  # An example of a notification would be a message about new software, or a change to AvaTax that may
32
36
  # affect you, or a potential issue with your company's tax profile.
37
+ #
38
+ # ### Security Policies
39
+ #
40
+ # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
41
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
33
42
  # @param model [NotificationModel[]] The notifications you wish to create.
34
43
  # @return [NotificationModel[]]
35
44
  def create_notifications(model)
@@ -40,12 +49,15 @@ module AvaTax
40
49
 
41
50
  # Create a new subscription
42
51
  #
43
- # # For Registrar Use Only
44
52
  # This API is for use by Avalara Registrar administrative users only.
45
53
  #
46
54
  # Create one or more new subscription objects attached to this account.
47
55
  # A 'subscription' indicates a licensed subscription to a named Avalara service.
48
56
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
57
+ #
58
+ # ### Security Policies
59
+ #
60
+ # * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
49
61
  # @param accountId [Integer] The ID of the account that owns this subscription.
50
62
  # @param model [SubscriptionModel[]] The subscription you wish to create.
51
63
  # @return [SubscriptionModel[]]
@@ -62,6 +74,10 @@ module AvaTax
62
74
  #
63
75
  # Delete an account.
64
76
  # Deleting an account will delete all companies and all account level users attached to this account.
77
+ #
78
+ # ### Security Policies
79
+ #
80
+ # * This API requires the user role SystemAdmin.
65
81
  # @param id [Integer] The ID of the account you wish to delete.
66
82
  # @return [ErrorDetail[]]
67
83
  def delete_account(id)
@@ -82,6 +98,11 @@ module AvaTax
82
98
  #
83
99
  # An example of a notification would be a message about new software, or a change to AvaTax that may
84
100
  # affect you, or a potential issue with your company's tax profile.
101
+ #
102
+ # ### Security Policies
103
+ #
104
+ # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
105
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
85
106
  # @param id [Integer] The id of the notification you wish to delete.
86
107
  # @return [ErrorDetail[]]
87
108
  def delete_notification(id)
@@ -96,6 +117,10 @@ module AvaTax
96
117
  # This API is for use by Avalara Registrar administrative users only.
97
118
  #
98
119
  # Mark the existing account identified by this URL as deleted.
120
+ #
121
+ # ### Security Policies
122
+ #
123
+ # * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
99
124
  # @param accountId [Integer] The ID of the account that owns this subscription.
100
125
  # @param id [Integer] The ID of the subscription you wish to delete.
101
126
  # @return [ErrorDetail[]]
@@ -113,6 +138,11 @@ module AvaTax
113
138
  # Allows a system admin to reset the password for a specific user via the API.
114
139
  # This API is only available for Avalara Registrar Admins, and can be used to reset the password of any
115
140
  # user based on internal Avalara business processes.
141
+ #
142
+ # ### Security Policies
143
+ #
144
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
145
+ # * This API is available to Avalara system-level (registrar-level) users only.
116
146
  # @param userId [Integer] The unique ID of the user whose password will be changed
117
147
  # @param unmigrateFromAi [Boolean] If user's password was migrated to AI, undo this.
118
148
  # @param model [Object] The new password for this user
@@ -129,6 +159,10 @@ module AvaTax
129
159
  # This API is for use by Avalara Registrar administrative users only.
130
160
  #
131
161
  # Replace an existing account object with an updated account object.
162
+ #
163
+ # ### Security Policies
164
+ #
165
+ # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
132
166
  # @param id [Integer] The ID of the account you wish to update.
133
167
  # @param model [Object] The account object you wish to update.
134
168
  # @return [Object]
@@ -150,6 +184,11 @@ module AvaTax
150
184
  #
151
185
  # An example of a notification would be a message about new software, or a change to AvaTax that may
152
186
  # affect you, or a potential issue with your company's tax profile.
187
+ #
188
+ # ### Security Policies
189
+ #
190
+ # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
191
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request access to [NotificationsAPI:Create].
153
192
  # @param id [Integer] The id of the notification you wish to update.
154
193
  # @param model [Object] The notification object you wish to update.
155
194
  # @return [Object]
@@ -169,6 +208,10 @@ module AvaTax
169
208
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
170
209
  # All data from the existing object will be replaced with data in the object you PUT.
171
210
  # 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.
211
+ #
212
+ # ### Security Policies
213
+ #
214
+ # * This API requires one of the following user roles: Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
172
215
  # @param accountId [Integer] The ID of the account that this subscription belongs to.
173
216
  # @param id [Integer] The ID of the subscription you wish to update
174
217
  # @param model [Object] The subscription you wish to update.
@@ -19,6 +19,10 @@ module AvaTax
19
19
  # * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
20
20
  #
21
21
  # This API works for all report types.
22
+ #
23
+ # ### Security Policies
24
+ #
25
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
22
26
  # @param id [Integer] The unique ID number of this report
23
27
  # @return [Object]
24
28
  def download_report(id)
@@ -37,6 +41,10 @@ module AvaTax
37
41
  # * In the result of the Initiate API, you receive back a report's `id` value.
38
42
  # * Check the status of a report by calling `GetReport` and passing in the report's `id` value.
39
43
  # * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
44
+ #
45
+ # ### Security Policies
46
+ #
47
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
40
48
  # @param companyId [Integer] The unique ID number of the company to report on.
41
49
  # @param model [Object] Options that may be configured to customize the report.
42
50
  # @return [Object]
@@ -80,6 +88,10 @@ module AvaTax
80
88
  # * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
81
89
  #
82
90
  # The `ExportDocumentLine` report produces information about invoice lines recorded within your account.
91
+ #
92
+ # ### Security Policies
93
+ #
94
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
83
95
  # @param companyId [Integer] The unique ID number of the company to report on.
84
96
  # @param model [Object] Options that may be configured to customize the report.
85
97
  # @return [ReportModel[]]
@@ -102,6 +114,10 @@ module AvaTax
102
114
  # * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.
103
115
  #
104
116
  # This API call returns information about all report types across your entire account.
117
+ #
118
+ # ### Security Policies
119
+ #
120
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
105
121
  # @return [FetchResult]
106
122
  def list_reports()
107
123
  path = "/api/v2/reports"
@@ -15,6 +15,10 @@ module AvaTax
15
15
  # A setting can refer to any type of data you need to remember about this company object.
16
16
  # When creating this object, you may define your own `set`, `name`, and `value` parameters.
17
17
  # To define your own values, please choose a `set` name that begins with `X-` to indicate an extension.
18
+ #
19
+ # ### Security Policies
20
+ #
21
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
18
22
  # @param companyId [Integer] The ID of the company that owns this setting.
19
23
  # @param model [SettingModel[]] The setting you wish to create.
20
24
  # @return [SettingModel[]]
@@ -36,6 +40,10 @@ module AvaTax
36
40
  # A setting can refer to any type of data you need to remember about this company object.
37
41
  # When creating this object, you may define your own `set`, `name`, and `value` parameters.
38
42
  # To define your own values, please choose a `set` name that begins with `X-` to indicate an extension.
43
+ #
44
+ # ### Security Policies
45
+ #
46
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
39
47
  # @param companyId [Integer] The ID of the company that owns this setting.
40
48
  # @param id [Integer] The ID of the setting you wish to delete.
41
49
  # @return [ErrorDetail[]]
@@ -57,6 +65,10 @@ module AvaTax
57
65
  # A setting can refer to any type of data you need to remember about this company object.
58
66
  # When creating this object, you may define your own `set`, `name`, and `value` parameters.
59
67
  # To define your own values, please choose a `set` name that begins with `X-` to indicate an extension.
68
+ #
69
+ # ### Security Policies
70
+ #
71
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
60
72
  # @param companyId [Integer] The ID of the company that owns this setting
61
73
  # @param id [Integer] The primary key of this setting
62
74
  # @return [Object]
@@ -81,6 +93,10 @@ module AvaTax
81
93
  #
82
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/) .
83
95
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
96
+ #
97
+ # ### Security Policies
98
+ #
99
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
84
100
  # @param companyId [Integer] The ID of the company that owns these settings
85
101
  # @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
102
  # @param include [String] A comma separated list of additional data to retrieve.
@@ -109,6 +125,10 @@ module AvaTax
109
125
  #
110
126
  # 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/) .
111
127
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
128
+ #
129
+ # ### Security Policies
130
+ #
131
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
112
132
  # @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
133
  # @param include [String] A comma separated list of additional data to retrieve.
114
134
  # @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.
@@ -137,6 +157,10 @@ module AvaTax
137
157
  # All data from the existing object will be replaced with data in the object you `PUT`.
138
158
  #
139
159
  # To set a field's value to `null`, you may either set its value to `null` or omit that field from the object when calling update.
160
+ #
161
+ # ### Security Policies
162
+ #
163
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
140
164
  # @param companyId [Integer] The ID of the company that this setting belongs to.
141
165
  # @param id [Integer] The ID of the setting you wish to update
142
166
  # @param model [Object] The setting you wish to update.
@@ -8,6 +8,10 @@ module AvaTax
8
8
  # Get the subscription object identified by this URL.
9
9
  # A 'subscription' indicates a licensed subscription to a named Avalara service.
10
10
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
11
+ #
12
+ # ### Security Policies
13
+ #
14
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
11
15
  # @param accountId [Integer] The ID of the account that owns this subscription
12
16
  # @param id [Integer] The primary key of this subscription
13
17
  # @return [Object]
@@ -25,6 +29,10 @@ module AvaTax
25
29
  #
26
30
  # 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/) .
27
31
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
32
+ #
33
+ # ### Security Policies
34
+ #
35
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
28
36
  # @param accountId [Integer] The ID of the account that owns these subscriptions
29
37
  # @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:* subscriptionDescription
30
38
  # @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.
@@ -45,6 +53,10 @@ module AvaTax
45
53
  #
46
54
  # 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
55
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
56
+ #
57
+ # ### Security Policies
58
+ #
59
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
48
60
  # @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:* subscriptionDescription
49
61
  # @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
62
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -10,6 +10,10 @@ module AvaTax
10
10
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
11
11
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
12
12
  # taxability rules for this product in all supported jurisdictions.
13
+ #
14
+ # ### Security Policies
15
+ #
16
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
13
17
  # @param companyId [Integer] The ID of the company that owns this tax code.
14
18
  # @param model [TaxCodeModel[]] The tax code you wish to create.
15
19
  # @return [TaxCodeModel[]]
@@ -22,6 +26,10 @@ module AvaTax
22
26
  # Delete a single tax code
23
27
  #
24
28
  # Marks the existing TaxCode object at this URL as deleted.
29
+ #
30
+ # ### Security Policies
31
+ #
32
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
25
33
  # @param companyId [Integer] The ID of the company that owns this tax code.
26
34
  # @param id [Integer] The ID of the tax code you wish to delete.
27
35
  # @return [ErrorDetail[]]
@@ -38,6 +46,10 @@ module AvaTax
38
46
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
39
47
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
40
48
  # taxability rules for this product in all supported jurisdictions.
49
+ #
50
+ # ### Security Policies
51
+ #
52
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
41
53
  # @param companyId [Integer] The ID of the company that owns this tax code
42
54
  # @param id [Integer] The primary key of this tax code
43
55
  # @return [Object]
@@ -57,6 +69,10 @@ module AvaTax
57
69
  #
58
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/) .
59
71
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
72
+ #
73
+ # ### Security Policies
74
+ #
75
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
60
76
  # @param companyId [Integer] The ID of the company that owns these tax codes
61
77
  # @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
78
  # @param include [String] A comma separated list of additional data to retrieve.
@@ -80,6 +96,10 @@ module AvaTax
80
96
  #
81
97
  # 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
98
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
99
+ #
100
+ # ### Security Policies
101
+ #
102
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
83
103
  # @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
104
  # @param include [String] A comma separated list of additional data to retrieve.
85
105
  # @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.
@@ -101,6 +121,10 @@ module AvaTax
101
121
  # taxability rules for this product in all supported jurisdictions.
102
122
  # All data from the existing object will be replaced with data in the object you PUT.
103
123
  # 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.
124
+ #
125
+ # ### Security Policies
126
+ #
127
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
104
128
  # @param companyId [Integer] The ID of the company that this tax code belongs to.
105
129
  # @param id [Integer] The ID of the tax code you wish to update
106
130
  # @param model [Object] The tax code you wish to update.
@@ -28,6 +28,11 @@ module AvaTax
28
28
  # file for a single location at a time, please use `BuildTaxContentFileForLocation`.
29
29
  #
30
30
  # NOTE: This API does not work for Tennessee tax holiday scenarios.
31
+ #
32
+ # ### Security Policies
33
+ #
34
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
35
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
31
36
  # @param model [Object] Parameters about the desired file format and report format, specifying which company, locations and TaxCodes to include.
32
37
  # @return [Object]
33
38
  def build_tax_content_file(model)
@@ -61,6 +66,11 @@ module AvaTax
61
66
  # file for a multiple locations in a single file, please use `BuildTaxContentFile`.
62
67
  #
63
68
  # NOTE: This API does not work for Tennessee tax holiday scenarios.
69
+ #
70
+ # ### Security Policies
71
+ #
72
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
73
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
64
74
  # @param companyId [Integer] The ID number of the company that owns this location.
65
75
  # @param id [Integer] The ID number of the location to retrieve point-of-sale data.
66
76
  # @param date [DateTime] The date for which point-of-sale data would be calculated (today by default)
@@ -74,21 +84,6 @@ module AvaTax
74
84
  end
75
85
 
76
86
 
77
- # Retrieve send-sale tax content for this company.
78
- #
79
- # This API is available by invitation only.
80
- # @param date [DateTime] The date for which we are fetching tax content.
81
- # @param taxCode [String] The tax code for which we are fetching tax content.
82
- # @param companyId [Integer] The unique ID number of the company which is fetching tax content.
83
- # @param format [String] Requests a specific data format for this content file. (See SendSalesOutputFileFormat::* for a list of allowable values)
84
- # @param type [String] Requests a specific encoding for this content file. (See SendSalesFileType::* for a list of allowable values)
85
- # @return [Object]
86
- def download_send_sales_rate_file(date, taxCode, companyId, options={})
87
- path = "/api/v2/sendsalescontent/download/#{companyId}/#{taxCode}/#{date}"
88
- get(path, options)
89
- end
90
-
91
-
92
87
  # Download a file listing tax rates by postal code
93
88
  #
94
89
  # Download a CSV file containing all five digit postal codes in the United States and their sales
@@ -131,6 +126,10 @@ module AvaTax
131
126
  # * TAX_SHIPPING_AND_HANDLING_TOGETHER - This column contains 'Y' if shipping and handling are taxable when sent together.
132
127
  #
133
128
  # For more detailed tax content, please use the `BuildTaxContentFile` API which allows usage of exact items and exact locations.
129
+ #
130
+ # ### Security Policies
131
+ #
132
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
134
133
  # @param date [DateTime] The date for which point-of-sale data would be calculated (today by default). Example input: 2016-12-31
135
134
  # @param region [String] If the region is provided, this API is going to generate the tax rate per zipcode for only the region specified.
136
135
  # @return [Object]
@@ -18,6 +18,10 @@ module AvaTax
18
18
  #
19
19
  # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
20
20
  # auditor, legal representative, and accounting team.
21
+ #
22
+ # ### Security Policies
23
+ #
24
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
21
25
  # @param companyId [Integer] The ID of the company that owns this tax rule.
22
26
  # @param model [TaxRuleModel[]] The tax rule you wish to create.
23
27
  # @return [TaxRuleModel[]]
@@ -42,6 +46,10 @@ module AvaTax
42
46
  #
43
47
  # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
44
48
  # auditor, legal representative, and accounting team.
49
+ #
50
+ # ### Security Policies
51
+ #
52
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
45
53
  # @param companyId [Integer] The ID of the company that owns this tax rule.
46
54
  # @param id [Integer] The ID of the tax rule you wish to delete.
47
55
  # @return [ErrorDetail[]]
@@ -66,6 +74,10 @@ module AvaTax
66
74
  #
67
75
  # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
68
76
  # auditor, legal representative, and accounting team.
77
+ #
78
+ # ### Security Policies
79
+ #
80
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
69
81
  # @param companyId [Integer] The ID of the company that owns this tax rule
70
82
  # @param id [Integer] The primary key of this tax rule
71
83
  # @return [Object]
@@ -93,6 +105,10 @@ module AvaTax
93
105
  #
94
106
  # 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/) .
95
107
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
108
+ #
109
+ # ### Security Policies
110
+ #
111
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
96
112
  # @param companyId [Integer] The ID of the company that owns these tax rules
97
113
  # @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:* taxCode, rateTypeCode, taxTypeGroup, taxSubType
98
114
  # @param include [String] A comma separated list of additional data to retrieve.
@@ -124,6 +140,10 @@ module AvaTax
124
140
  #
125
141
  # 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/) .
126
142
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
143
+ #
144
+ # ### Security Policies
145
+ #
146
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
127
147
  # @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:* taxCode, rateTypeCode, taxTypeGroup, taxSubType
128
148
  # @param include [String] A comma separated list of additional data to retrieve.
129
149
  # @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.
@@ -151,6 +171,10 @@ module AvaTax
151
171
  #
152
172
  # Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your
153
173
  # auditor, legal representative, and accounting team.
174
+ #
175
+ # ### Security Policies
176
+ #
177
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
154
178
  # @param companyId [Integer] The ID of the company that this tax rule belongs to.
155
179
  # @param id [Integer] The ID of the tax rule you wish to update
156
180
  # @param model [Object] The tax rule you wish to update.
@@ -25,6 +25,11 @@ module AvaTax
25
25
  # * LinesOnly (omit details - reduces API response size)
26
26
  #
27
27
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
28
+ #
29
+ # ### Security Policies
30
+ #
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.
28
33
  # @param include [String] Specifies objects to include in the response after transaction is created
29
34
  # @param model [Object] information about the transaction and lines to be added
30
35
  # @return [Object]
@@ -47,9 +52,25 @@ module AvaTax
47
52
  #
48
53
  # Transactions that have been previously reported to a tax authority by Avalara Managed Returns are considered `locked` and are
49
54
  # no longer available for adjustments.
55
+ #
56
+ # 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:
57
+ #
58
+ # * Lines
59
+ # * Details (implies lines)
60
+ # * Summary (implies details)
61
+ # * Addresses
62
+ # * SummaryOnly (omit lines and details - reduces API response size)
63
+ # * LinesOnly (omit details - reduces API response size)
64
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
65
+ #
66
+ # ### Security Policies
67
+ #
68
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
69
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
50
70
  # @param companyCode [String] The company code of the company that recorded this transaction
51
71
  # @param transactionCode [String] The transaction code to adjust
52
72
  # @param documentType [String] (Optional): The document type of the transaction to adjust. (See DocumentType::* for a list of allowable values)
73
+ # @param include [String] Specifies objects to include in this fetch call
53
74
  # @param model [Object] The adjustment you wish to make
54
75
  # @return [Object]
55
76
  def adjust_transaction(companyCode, transactionCode, model, options={})
@@ -75,6 +96,11 @@ module AvaTax
75
96
  #
76
97
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
77
98
  # sales, purchases, inventory transfer, and returns (also called refunds).
99
+ #
100
+ # ### Security Policies
101
+ #
102
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
103
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
78
104
  # @param companyCode [String] The code identifying the company that owns this transaction
79
105
  # @param transactionCode [String] The code identifying the transaction
80
106
  # @return [Object]
@@ -101,6 +127,11 @@ module AvaTax
101
127
  #
102
128
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
103
129
  # sales, purchases, inventory transfer, and returns (also called refunds).
130
+ #
131
+ # ### Security Policies
132
+ #
133
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
134
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
104
135
  # @param companyCode [String] The code identifying the company that owns this transaction
105
136
  # @param transactionCode [String] The code identifying the transaction
106
137
  # @param documentType [String] The document type of the original transaction (See DocumentType::* for a list of allowable values)
@@ -120,6 +151,11 @@ module AvaTax
120
151
  #
121
152
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
122
153
  # sales, purchases, inventory transfer, and returns (also called refunds).
154
+ #
155
+ # ### Security Policies
156
+ #
157
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
158
+ # * This API is available by invitation only. To request access to this feature, please speak to a business development manager and request host address whitelisting for [Returns] for your servers.
123
159
  # @param model [Object] bulk lock request
124
160
  # @return [Object]
125
161
  def bulk_lock_transaction(model)
@@ -141,9 +177,25 @@ module AvaTax
141
177
  #
142
178
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
143
179
  # sales, purchases, inventory transfer, and returns (also called refunds).
180
+ #
181
+ # 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:
182
+ #
183
+ # * Lines
184
+ # * Details (implies lines)
185
+ # * Summary (implies details)
186
+ # * Addresses
187
+ # * SummaryOnly (omit lines and details - reduces API response size)
188
+ # * LinesOnly (omit details - reduces API response size)
189
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
190
+ #
191
+ # ### Security Policies
192
+ #
193
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
194
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro, AvaTaxST.
144
195
  # @param companyCode [String] The company code of the company that recorded this transaction
145
196
  # @param transactionCode [String] The transaction code to change
146
197
  # @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)
198
+ # @param include [String] Specifies objects to include in this fetch call
147
199
  # @param model [Object] The code change request you wish to execute
148
200
  # @return [Object]
149
201
  def change_transaction_code(companyCode, transactionCode, model, options={})
@@ -164,9 +216,24 @@ module AvaTax
164
216
  # If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.
165
217
  #
166
218
  # Any changes made to a committed transaction will generate a transaction history.
219
+ #
220
+ # 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:
221
+ #
222
+ # * Lines
223
+ # * Details (implies lines)
224
+ # * Summary (implies details)
225
+ # * Addresses
226
+ # * SummaryOnly (omit lines and details - reduces API response size)
227
+ # * LinesOnly (omit details - reduces API response size)
228
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
229
+ #
230
+ # ### Security Policies
231
+ #
232
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
167
233
  # @param companyCode [String] The company code of the company that recorded this transaction
168
234
  # @param transactionCode [String] The transaction code to commit
169
235
  # @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)
236
+ # @param include [String] Specifies objects to include in this fetch call
170
237
  # @param model [Object] The commit request you wish to execute
171
238
  # @return [Object]
172
239
  def commit_transaction(companyCode, transactionCode, model, options={})
@@ -205,6 +272,11 @@ module AvaTax
205
272
  # * 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.
206
273
  #
207
274
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
275
+ #
276
+ # ### Security Policies
277
+ #
278
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
279
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
208
280
  # @param include [String] Specifies objects to include in the response after transaction is created
209
281
  # @param model [Object] The transaction you wish to create or adjust
210
282
  # @return [Object]
@@ -251,6 +323,11 @@ module AvaTax
251
323
  # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
252
324
  #
253
325
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
326
+ #
327
+ # ### Security Policies
328
+ #
329
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
330
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
254
331
  # @param include [String] Specifies objects to include in the response after transaction is created
255
332
  # @param model [Object] The transaction you wish to create
256
333
  # @return [Object]
@@ -279,6 +356,11 @@ module AvaTax
279
356
  # * LinesOnly (omit details - reduces API response size)
280
357
  #
281
358
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
359
+ #
360
+ # ### Security Policies
361
+ #
362
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
363
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
282
364
  # @param include [String] Specifies objects to include in the response after transaction is created
283
365
  # @param model [Object] information about the transaction and lines to be removed
284
366
  # @return [Object]
@@ -308,6 +390,11 @@ module AvaTax
308
390
  # * Addresses
309
391
  # * SummaryOnly (omit lines and details - reduces API response size)
310
392
  # * LinesOnly (omit details - reduces API response size)
393
+ #
394
+ # ### Security Policies
395
+ #
396
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
397
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
311
398
  # @param companyCode [String] The company code of the company that recorded this transaction
312
399
  # @param transactionCode [String] The transaction code to retrieve
313
400
  # @param documentType [String] (Optional): The document type of the transaction to retrieve (See DocumentType::* for a list of allowable values)
@@ -322,6 +409,11 @@ module AvaTax
322
409
  # Retrieve a single transaction by code
323
410
  #
324
411
  # DEPRECATED: Please use the `GetTransactionByCode` API instead.
412
+ #
413
+ # ### Security Policies
414
+ #
415
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
416
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
325
417
  # @param companyCode [String] The company code of the company that recorded this transaction
326
418
  # @param transactionCode [String] The transaction code to retrieve
327
419
  # @param documentType [String] The transaction type to retrieve (See DocumentType::* for a list of allowable values)
@@ -352,6 +444,11 @@ module AvaTax
352
444
  # * SummaryOnly (omit lines and details - reduces API response size)
353
445
  # * LinesOnly (omit details - reduces API response size)
354
446
  # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
447
+ #
448
+ # ### Security Policies
449
+ #
450
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
451
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
355
452
  # @param id [Integer] The unique ID number of the transaction to retrieve
356
453
  # @param include [String] Specifies objects to include in this fetch call
357
454
  # @return [Object]
@@ -384,6 +481,11 @@ module AvaTax
384
481
  # * Addresses
385
482
  # * SummaryOnly (omit lines and details - reduces API response size)
386
483
  # * LinesOnly (omit details - reduces API response size)
484
+ #
485
+ # ### Security Policies
486
+ #
487
+ # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
488
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
387
489
  # @param companyCode [String] The company code of the company that recorded this transaction
388
490
  # @param dataSourceId [Integer] Optionally filter transactions to those from a specific data source.
389
491
  # @param include [String] Specifies objects to include in this fetch call
@@ -411,9 +513,25 @@ module AvaTax
411
513
  #
412
514
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
413
515
  # sales, purchases, inventory transfer, and returns (also called refunds).
516
+ #
517
+ # 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:
518
+ #
519
+ # * Lines
520
+ # * Details (implies lines)
521
+ # * Summary (implies details)
522
+ # * Addresses
523
+ # * SummaryOnly (omit lines and details - reduces API response size)
524
+ # * LinesOnly (omit details - reduces API response size)
525
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
526
+ #
527
+ # ### Security Policies
528
+ #
529
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
530
+ # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.
414
531
  # @param companyCode [String] The company code of the company that recorded this transaction
415
532
  # @param transactionCode [String] The transaction code to lock
416
533
  # @param documentType [String] (Optional): The document type of the transaction to lock. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
534
+ # @param include [String] Specifies objects to include in this fetch call
417
535
  # @param model [Object] The lock request you wish to execute
418
536
  # @return [Object]
419
537
  def lock_transaction(companyCode, transactionCode, model, options={})
@@ -453,8 +571,13 @@ module AvaTax
453
571
  # * Addresses
454
572
  # * SummaryOnly (omit lines and details - reduces API response size)
455
573
  # * LinesOnly (omit details - reduces API response size)
456
- #
574
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
457
575
  # If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.
576
+ #
577
+ # ### Security Policies
578
+ #
579
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
580
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
458
581
  # @param companyCode [String] The code of the company that made the original sale
459
582
  # @param transactionCode [String] The transaction code of the original sale
460
583
  # @param include [String] Specifies objects to include in the response after transaction is created
@@ -480,9 +603,24 @@ module AvaTax
480
603
  # If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.
481
604
  #
482
605
  # This API is available for users who want to execute more than one action at a time.
606
+ #
607
+ # 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:
608
+ #
609
+ # * Lines
610
+ # * Details (implies lines)
611
+ # * Summary (implies details)
612
+ # * Addresses
613
+ # * SummaryOnly (omit lines and details - reduces API response size)
614
+ # * LinesOnly (omit details - reduces API response size)
615
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
616
+ #
617
+ # ### Security Policies
618
+ #
619
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
483
620
  # @param companyCode [String] The company code of the company that recorded this transaction
484
621
  # @param transactionCode [String] The transaction code to settle
485
622
  # @param documentType [String] (Optional): The document type of the transaction to settle. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
623
+ # @param include [String] Specifies objects to include in this fetch call
486
624
  # @param model [Object] The data from an external system to reconcile against AvaTax
487
625
  # @return [Object]
488
626
  def settle_transaction(companyCode, transactionCode, model, options={})
@@ -497,9 +635,25 @@ module AvaTax
497
635
  #
498
636
  # Transactions that have been previously reported to a tax authority by Avalara Managed Returns are considered `locked` and are
499
637
  # no longer available to be uncommitted.
638
+ #
639
+ # 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:
640
+ #
641
+ # * Lines
642
+ # * Details (implies lines)
643
+ # * Summary (implies details)
644
+ # * Addresses
645
+ # * SummaryOnly (omit lines and details - reduces API response size)
646
+ # * LinesOnly (omit details - reduces API response size)
647
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
648
+ #
649
+ # ### Security Policies
650
+ #
651
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
652
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
500
653
  # @param companyCode [String] The company code of the company that recorded this transaction
501
654
  # @param transactionCode [String] The transaction code to commit
502
655
  # @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)
656
+ # @param include [String] Specifies objects to include in this fetch call
503
657
  # @return [Object]
504
658
  def uncommit_transaction(companyCode, transactionCode, options={})
505
659
  path = "/api/v2/companies/#{companyCode}/transactions/#{transactionCode}/uncommit"
@@ -517,9 +671,25 @@ module AvaTax
517
671
  #
518
672
  # A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
519
673
  # sales, purchases, inventory transfer, and returns (also called refunds).
674
+ #
675
+ # 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:
676
+ #
677
+ # * Lines
678
+ # * Details (implies lines)
679
+ # * Summary (implies details)
680
+ # * Addresses
681
+ # * SummaryOnly (omit lines and details - reduces API response size)
682
+ # * LinesOnly (omit details - reduces API response size)
683
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
684
+ #
685
+ # ### Security Policies
686
+ #
687
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
688
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
520
689
  # @param companyCode [String] The company code of the company that recorded this transaction
521
690
  # @param transactionCode [String] The transaction code to settle
522
691
  # @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)
692
+ # @param include [String] Specifies objects to include in this fetch call
523
693
  # @param model [Object] The data from an external system to reconcile against AvaTax
524
694
  # @return [Object]
525
695
  def verify_transaction(companyCode, transactionCode, model, options={})
@@ -540,9 +710,25 @@ module AvaTax
540
710
  # If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.
541
711
  #
542
712
  # Transactions that have been previously reported to a tax authority by Avalara Managed Returns are no longer available to be voided.
713
+ #
714
+ # 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:
715
+ #
716
+ # * Lines
717
+ # * Details (implies lines)
718
+ # * Summary (implies details)
719
+ # * Addresses
720
+ # * SummaryOnly (omit lines and details - reduces API response size)
721
+ # * LinesOnly (omit details - reduces API response size)
722
+ # * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.
723
+ #
724
+ # ### Security Policies
725
+ #
726
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin.
727
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
543
728
  # @param companyCode [String] The company code of the company that recorded this transaction
544
729
  # @param transactionCode [String] The transaction code to void
545
730
  # @param documentType [String] (Optional): The document type of the transaction to void. If not provided, the default is SalesInvoice. (See DocumentType::* for a list of allowable values)
731
+ # @param include [String] Specifies objects to include in this fetch call
546
732
  # @param model [Object] The void request you wish to execute. To void a transaction the code must be set to 'DocVoided'
547
733
  # @return [Object]
548
734
  def void_transaction(companyCode, transactionCode, model, options={})