avatax 19.10.0 → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -8
  3. data/lib/avatax/client/accounts.rb +193 -150
  4. data/lib/avatax/client/addresses.rb +38 -44
  5. data/lib/avatax/client/advancedrules.rb +33 -142
  6. data/lib/avatax/client/avafileforms.rb +47 -67
  7. data/lib/avatax/client/batches.rb +134 -152
  8. data/lib/avatax/client/certexpressinvites.rb +76 -85
  9. data/lib/avatax/client/certificates.rb +343 -388
  10. data/lib/avatax/client/companies.rb +266 -314
  11. data/lib/avatax/client/compliance.rb +4 -7
  12. data/lib/avatax/client/contacts.rb +70 -88
  13. data/lib/avatax/client/customers.rb +306 -345
  14. data/lib/avatax/client/datasources.rb +63 -81
  15. data/lib/avatax/client/definitions.rb +570 -716
  16. data/lib/avatax/client/distancethresholds.rb +86 -104
  17. data/lib/avatax/client/filingcalendars.rb +10 -498
  18. data/lib/avatax/client/filings.rb +19 -651
  19. data/lib/avatax/client/firmclientlinkages.rb +72 -99
  20. data/lib/avatax/client/free.rb +79 -88
  21. data/lib/avatax/client/fundingrequests.rb +36 -44
  22. data/lib/avatax/client/items.rb +322 -379
  23. data/lib/avatax/client/jurisdictionoverrides.rb +82 -100
  24. data/lib/avatax/client/locations.rb +101 -119
  25. data/lib/avatax/client/multidocument.rb +314 -284
  26. data/lib/avatax/client/nexus.rb +290 -174
  27. data/lib/avatax/client/notifications.rb +54 -63
  28. data/lib/avatax/client/provisioning.rb +50 -0
  29. data/lib/avatax/client/registrar.rb +142 -172
  30. data/lib/avatax/client/reports.rb +71 -83
  31. data/lib/avatax/client/settings.rb +120 -138
  32. data/lib/avatax/client/subscriptions.rb +41 -50
  33. data/lib/avatax/client/taxcodes.rb +84 -102
  34. data/lib/avatax/client/taxcontent.rb +112 -121
  35. data/lib/avatax/client/taxrules.rb +134 -152
  36. data/lib/avatax/client/transactions.rb +703 -752
  37. data/lib/avatax/client/upcs.rb +75 -93
  38. data/lib/avatax/client/users.rb +137 -161
  39. data/lib/avatax/client/utilities.rb +40 -49
  40. data/lib/avatax/connection.rb +1 -1
  41. data/lib/avatax/request.rb +2 -0
  42. data/lib/avatax/version.rb +1 -1
  43. metadata +5 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41bbe0aa9047761c1cbf6ccfa1d69d742b03a5ae5565dd178ab121c134138b70
4
- data.tar.gz: 308a4da58273c32584fc4c584bd6e9b6b2d6bf2db75faf152b59a4c1ccb3d46d
3
+ metadata.gz: 919361911b2c607af6a9f0e004c164e68f3a66ae2bcb2617a5dc40b0aa881dc8
4
+ data.tar.gz: 971f945593297cd7b5084b231b93e1b2916e21e5584778cd2035bb39eec1f2d6
5
5
  SHA512:
6
- metadata.gz: a6b48ec0a09120400f9493d92e11159bb6cd142f4ee20ca9e8d5e83d654d1adccf24b3dee2dd1bad9aa37041881716a239fa24938b002321a665cf5e90c0dcfa
7
- data.tar.gz: f8cd9cd73570b5c1c77d9bb8204cec938011c271e9633ee314adc6036eb7243bcdc81f4aabcc9fee4b36c0bd444de409d3f20d6bfe569afc7fe2e968bd70fd58
6
+ metadata.gz: cb706706f40d263e52744854ef1dea8ef62094bfa525b5ba65e4a1b9fae2f9f06f344f80fd723b196a1f3ed6156c6dff1c5018eb5b2f07c400fbebaadbc08f9d
7
+ data.tar.gz: 87f68816e16ae20f3079bd9c27a058c484f98c90f976a1a636b67fb294888b9b76802669b62caddc7fa6ff050b3e84a6fd237be0c498715a6e7b39d19feddfff
@@ -5,11 +5,15 @@ rvm:
5
5
  - 2.3
6
6
  - 2.2
7
7
  - 2.1
8
- deploy:
9
- provider: rubygems
10
- api_key:
11
- secure: VnQH+Ffony43CPwrJ9vBVQ+/4aHFNvlGbXSKZL9Elm2P/FKwgjycwNZ+QtPmKbA9bVUtUkPjK3phJYeL//cTv+asrBBWM/ptBCBWVYB+ICeDXCfhB7id2hcSIWy9xQ4/KdCJxgeD+gwF1Ce95XK7epZLkhcr1OpgNO+cqnA1KlZ7fkZDtFEkXtY8H40oZZ6d5G7S3s+yBUEGHoiAiD2Gj/6RfWqT8iKykT4TzBtQSzyUDVel5/dt3MG2o4kUMcF3IS+HU2fOv61mCBpCP8Y6uDSe14TWPtYrsyR+Y5E5g7OetOq3/JxMacxG7fSo6KYtkL6qYqULgc3YtUoAPyULg4nWHO1aixdBbEiD7WNlBiSeRkUgRxunNHNFwnasW1g1zrkYdcqwkROjPfXChwmFK5ZFho6PpuWpEijttNjbmjwC/IWb/7X04MPwm2tzs5pdVVBsm+Hb1dstxWsm5nLZ+xzFDDfcKqM9ktRUeeRF9SlpY/1eNdedf76IVMcZRRRPvRIJwW/zU7MPGfBqJv1AM74150X4tyGHA+OCV7aUAh9NeJegYhHfi8gFAItjQWo59ZsWXhXjwxRJwKOKTreEmmDlFrdQ7OP6uEBLy+d+4rQgxmQsB/+8TDKV0TH9bhITAqYmue9uu0Fb0mJkSaUMJ4rGl0zGM+58nIwQ2YmoeoY=
12
- gem: avatax
13
- on:
14
- tags: true
15
- branch: master
8
+ jobs:
9
+ include:
10
+ - rvm: 2.4
11
+ stage: "Deploy"
12
+ deploy:
13
+ provider: rubygems
14
+ api_key:
15
+ secure: VnQH+Ffony43CPwrJ9vBVQ+/4aHFNvlGbXSKZL9Elm2P/FKwgjycwNZ+QtPmKbA9bVUtUkPjK3phJYeL//cTv+asrBBWM/ptBCBWVYB+ICeDXCfhB7id2hcSIWy9xQ4/KdCJxgeD+gwF1Ce95XK7epZLkhcr1OpgNO+cqnA1KlZ7fkZDtFEkXtY8H40oZZ6d5G7S3s+yBUEGHoiAiD2Gj/6RfWqT8iKykT4TzBtQSzyUDVel5/dt3MG2o4kUMcF3IS+HU2fOv61mCBpCP8Y6uDSe14TWPtYrsyR+Y5E5g7OetOq3/JxMacxG7fSo6KYtkL6qYqULgc3YtUoAPyULg4nWHO1aixdBbEiD7WNlBiSeRkUgRxunNHNFwnasW1g1zrkYdcqwkROjPfXChwmFK5ZFho6PpuWpEijttNjbmjwC/IWb/7X04MPwm2tzs5pdVVBsm+Hb1dstxWsm5nLZ+xzFDDfcKqM9ktRUeeRF9SlpY/1eNdedf76IVMcZRRRPvRIJwW/zU7MPGfBqJv1AM74150X4tyGHA+OCV7aUAh9NeJegYhHfi8gFAItjQWo59ZsWXhXjwxRJwKOKTreEmmDlFrdQ7OP6uEBLy+d+4rQgxmQsB/+8TDKV0TH9bhITAqYmue9uu0Fb0mJkSaUMJ4rGl0zGM+58nIwQ2YmoeoY=
16
+ gem: avatax
17
+ on:
18
+ tags: true
19
+ branch: master
@@ -5,190 +5,233 @@ module AvaTax
5
5
 
6
6
  # Reset this account's license key
7
7
  #
8
- # Resets the existing license key for this account to a new key.
9
- #
10
- # To reset your account, you must specify the ID of the account you wish to reset and confirm the action.
11
- #
12
- # This API is only available to account administrators for the account in question, and may only be called after
13
- # an account has been activated by reading and accepting Avalara's terms and conditions. To activate your account
14
- # please log onto the AvaTax website or call the `ActivateAccount` API.
15
- #
16
- # Resetting a license key cannot be undone. Any previous license keys will immediately cease to work when a new key is created.
17
- #
18
- # When you call this API, all account administrators for this account will receive an email with the newly updated license key.
19
- # The email will specify which user reset the license key and it will contain the new key to use to update your connectors.
20
- #
21
- # ### Security Policies
22
- #
8
+ # Resets the existing license key for this account to a new key.
9
+ #
10
+ # To reset your account, you must specify the ID of the account you wish to reset and confirm the action.
11
+ #
12
+ # This API is only available to account administrators for the account in question, and may only be called after
13
+ # an account has been activated by reading and accepting Avalara's terms and conditions. To activate your account
14
+ # please log onto the AvaTax website or call the `ActivateAccount` API.
15
+ #
16
+ # You can only reset license with 'Default' license key name.
17
+ # Resetting a license key cannot be undone. Any previous license keys will immediately cease to work when a new key is created.
18
+ #
19
+ # When you call this API, all account administrators for this account will receive an email with the newly updated license key.
20
+ # The email will specify which user reset the license key and it will contain the new key to use to update your connectors.
21
+ # Note: The reset license key functionality will only be available for existing active license key i.e. when you reset license key for the account, the Default license key will be reset.The reset license key functionality is not available for newly created license keys i.e. license keys other than Default
22
+ #
23
+ # ### Security Policies
24
+ #
23
25
  # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
24
- # @param id [Integer] The ID of the account you wish to update.
25
- # @param model [Object] A request confirming that you wish to reset the license key of this account.
26
+ # @param id [Integer] The ID of the account you wish to update.
27
+ # @param model [Object] A request confirming that you wish to reset the license key of this account.
26
28
  # @return [Object]
27
- def account_reset_license_key(id, model)
28
- path = "/api/v2/accounts/#{id}/resetlicensekey"
29
- post(path, model)
30
- end
31
-
29
+ def account_reset_license_key(id, model) path = "/api/v2/accounts/#{id}/resetlicensekey"
30
+ post(path, model) end
32
31
 
33
32
  # Activate an account by accepting terms and conditions
34
33
  #
35
- # Activate the account specified by the unique accountId number.
36
- #
37
- # This activation request can only be called by account administrators. You must indicate
38
- # that you have read and accepted Avalara's terms and conditions to call this API.
39
- #
40
- # Once you have activated your account, use the `AccountResetLicenseKey` API to generate
41
- # a license key for your account.
42
- #
43
- # If you have not read or accepted the terms and conditions, this API call will return the
44
- # unchanged account model.
45
- #
46
- # ### Security Policies
47
- #
34
+ # Activate the account specified by the unique accountId number.
35
+ #
36
+ # This activation request can only be called by account administrators. You must indicate
37
+ # that you have read and accepted Avalara's terms and conditions to call this API.
38
+ #
39
+ # Once you have activated your account, use the `AccountResetLicenseKey` API to generate
40
+ # a license key for your account.
41
+ #
42
+ # If you have not read or accepted the terms and conditions, this API call will return the
43
+ # unchanged account model.
44
+ #
45
+ # ### Security Policies
46
+ #
48
47
  # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
49
- # @param id [Integer] The ID of the account to activate
50
- # @param model [Object] The activation request
48
+ # @param id [Integer] The ID of the account to activate
49
+ # @param model [Object] The activation request
51
50
  # @return [Object]
52
- def activate_account(id, model)
53
- path = "/api/v2/accounts/#{id}/activate"
54
- post(path, model)
55
- end
56
-
51
+ def activate_account(id, model) path = "/api/v2/accounts/#{id}/activate"
52
+ post(path, model) end
57
53
 
58
54
  # Retrieve audit history for an account.
59
55
  #
60
- # Retrieve audit trace history for an account.
61
- #
62
- # Your audit trace history contains a record of all API calls made against the AvaTax REST API. You can use this API to investigate
63
- # problems and see exactly what information was sent back and forth between your code and AvaTax.
64
- #
65
- # When specifying a start and end datetime, please include a valid timezone indicator, such as the "Z" present in the examples for the start and end query parameters.
66
- # You can learn more about valid time zone designators at https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators.
67
- #
68
- # This API enforces limits to the amount of data retrieved. These limits are subject to change.
69
- #
70
- # * You may request data from a maximum of a one-hour time period.
71
- # * The amount of data and number of API calls returned by this API are limited and may be adjusted at any time.
72
- # * Old records may be migrated out of immediately available storage. To request older data, please contact your account manager.
73
- # * New records must migrate to available storage before they can be retrieved. You may need to wait a period of time before newly created records can be fetched.
74
- #
75
- # ### Security Policies
76
- #
56
+ # Retrieve audit trace history for an account.
57
+ #
58
+ # Your audit trace history contains a record of all API calls made against the AvaTax REST API that returned an error. You can use this API to investigate
59
+ # problems and see exactly what information was sent back and forth between your code and AvaTax.
60
+ #
61
+ # When specifying a start and end datetime, please include a valid timezone indicator, such as the "Z" present in the examples for the start and end query parameters.
62
+ # You can learn more about valid time zone designators at https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators.
63
+ #
64
+ # This API enforces limits to the amount of data retrieved. These limits are subject to change.
65
+ #
66
+ # * You may request data from a maximum of a one-hour time period.
67
+ # * The amount of data and number of API calls returned by this API are limited and may be adjusted at any time.
68
+ # * Old records may be migrated out of immediately available storage. To request older data, please contact your account manager.
69
+ # * New records must migrate to available storage before they can be retrieved. You may need to wait a period of time before newly created records can be fetched.
70
+ #
71
+ # ### Security Policies
72
+ #
77
73
  # * 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.
78
- # @param id [Integer] The ID of the account you wish to audit.
79
- # @param start [DateTime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes.
80
- # @param end [DateTime] The end datetime of audit history you with to retrieve, e.g. "2018-06-08T17:15:00Z. Defaults to the current time. Maximum of an hour after the start time.
81
- # @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.
82
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
74
+ # @param id [Integer] The ID of the account you wish to audit.
75
+ # @param start [DateTime] The start datetime of audit history you with to retrieve, e.g. "2018-06-08T17:00:00Z". Defaults to the past 15 minutes.
76
+ # @param end [DateTime] The end datetime of audit history you with to retrieve, e.g. "2018-06-08T17:15:00Z. Defaults to the current time. Maximum of an hour after the start time.
77
+ # @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.
78
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
83
79
  # @return [FetchResult]
84
- def audit_account(id, options={})
85
- path = "/api/v2/accounts/#{id}/audit"
86
- get(path, options)
87
- end
80
+ def audit_account(id, options={}) path = "/api/v2/accounts/#{id}/audit"
81
+ get(path, options) end
88
82
 
83
+ # Create license key for this account
84
+ #
85
+ # Creates a new license key for this account.
86
+ #
87
+ # To create a license key for your account, you must specify the ID of the account and license key name.
88
+ #
89
+ # This API is only available to account administrators for the account in question, and may only be called after
90
+ # an account has been activated by reading and accepting Avalara's terms and conditions. To activate your account
91
+ # please log onto the AvaTax website or call the `ActivateAccount` API.
92
+ #
93
+ # You will reference this key using license key name. The existing license key will be using 'Default' as license key name.
94
+ # Hence make sure that the license key name is unique per account considering the existing license key name 'Default'
95
+ #
96
+ # ### Security Policies
97
+ #
98
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
99
+ # @param id [Integer] The ID of the account you wish to update.
100
+ # @param model [Object]
101
+ # @return [Object]
102
+ def create_license_key(id, model) path = "/api/v2/accounts/#{id}/licensekey"
103
+ post(path, model) end
104
+
105
+ # Delete license key for this account by license key name
106
+ #
107
+ # Deletes the license key for this account using license key name.
108
+ #
109
+ # To delete a license key for your account, you must specify the accountID of the account and license key name.
110
+ #
111
+ # This API is only available to account administrators for the account in question.
112
+ #
113
+ # ### Security Policies
114
+ #
115
+ # * This API requires one of the following user roles: AccountAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
116
+ # @param id [Integer] The ID of the account you wish to update.
117
+ # @param licensekeyname [String] The license key name you wish to update.
118
+ # @return [ErrorDetail[]]
119
+ def delete_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
120
+ delete(path) end
89
121
 
90
122
  # Retrieve a single account
91
123
  #
92
- # Get the account object identified by this URL.
93
- # You may use the '$include' parameter to fetch additional nested data:
94
- #
95
- # * Subscriptions
96
- # * Users
97
- #
98
- # ### Security Policies
99
- #
124
+ # Get the account object identified by this URL.
125
+ # You may use the '$include' parameter to fetch additional nested data:
126
+ #
127
+ # * Subscriptions
128
+ # * Users
129
+ #
130
+ # ### Security Policies
131
+ #
100
132
  # * 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.
101
- # @param id [Integer] The ID of the account to retrieve
102
- # @param include [String] A comma separated list of special fetch options
133
+ # @param id [Integer] The ID of the account to retrieve
134
+ # @param include [String] A comma separated list of special fetch options
103
135
  # @return [Object]
104
- def get_account(id, options={})
105
- path = "/api/v2/accounts/#{id}"
106
- get(path, options)
107
- end
108
-
136
+ def get_account(id, options={}) path = "/api/v2/accounts/#{id}"
137
+ get(path, options) end
109
138
 
110
139
  # Get configuration settings for this account
111
140
  #
112
- # Retrieve a list of all configuration settings tied to this account.
113
- #
114
- # Configuration settings provide you with the ability to control features of your account and of your
115
- # tax software. The category names `TaxServiceConfig` and `AddressServiceConfig` are reserved for
116
- # Avalara internal software configuration values; to store your own account-level settings, please
117
- # create a new category name that begins with `X-`, for example, `X-MyCustomCategory`.
118
- #
119
- # Account settings are permanent settings that cannot be deleted. You can set the value of an
120
- # account setting to null if desired.
121
- #
122
- # Avalara-based account settings for `TaxServiceConfig` and `AddressServiceConfig` affect your account's
123
- # tax calculation and address resolution, and should only be changed with care.
124
- #
125
- # ### Security Policies
126
- #
141
+ # Retrieve a list of all configuration settings tied to this account.
142
+ #
143
+ # Configuration settings provide you with the ability to control features of your account and of your
144
+ # tax software. The category names `TaxServiceConfig` and `AddressServiceConfig` are reserved for
145
+ # Avalara internal software configuration values; to store your own account-level settings, please
146
+ # create a new category name that begins with `X-`, for example, `X-MyCustomCategory`.
147
+ #
148
+ # Account settings are permanent settings that cannot be deleted. You can set the value of an
149
+ # account setting to null if desired.
150
+ #
151
+ # Avalara-based account settings for `TaxServiceConfig` and `AddressServiceConfig` affect your account's
152
+ # tax calculation and address resolution, and should only be changed with care.
153
+ #
154
+ # ### Security Policies
155
+ #
127
156
  # * This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
128
- # @param id [Integer]
157
+ # @param id [Integer]
129
158
  # @return [AccountConfigurationModel[]]
130
- def get_account_configuration(id)
131
- path = "/api/v2/accounts/#{id}/configuration"
132
- get(path)
133
- end
134
-
159
+ def get_account_configuration(id) path = "/api/v2/accounts/#{id}/configuration"
160
+ get(path) end
135
161
 
136
- # Retrieve all accounts
137
- #
138
- # List all account objects that can be seen by the current user.
139
- #
140
- # This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account.
162
+ # Retrieve license key by license key name
141
163
  #
142
- # 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/) .
143
- # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
144
- # 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:
145
- #
146
- # * Subscriptions
147
- # * Users
148
- #
149
- # For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ .
164
+ # ### Security Policies
165
+ #
166
+ # * 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.
167
+ # @param id [Integer] The ID of the account to retrieve
168
+ # @param licensekeyname [String] The ID of the account to retrieve
169
+ # @return [Object]
170
+ def get_license_key(id, licensekeyname) path = "/api/v2/accounts/#{id}/licensekey/#{licensekeyname}"
171
+ get(path) end
172
+
173
+ # Retrieve all license keys for this account
150
174
  #
151
- # ### Security Policies
175
+ # Gets list of all the license keys used by the account.
176
+ #
177
+ # ### Security Policies
178
+ #
179
+ # * 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.
180
+ # @param id [Integer] The ID of the account to retrieve
181
+ # @return [AccountLicenseKeyModel[]]
182
+ def get_license_keys(id) path = "/api/v2/accounts/#{id}/licensekeys"
183
+ get(path) end
184
+
185
+ # Retrieve all accounts
152
186
  #
187
+ # List all account objects that can be seen by the current user.
188
+ #
189
+ # This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account.
190
+ #
191
+ # 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/) .
192
+ # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
193
+ # 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:
194
+ #
195
+ # * Subscriptions
196
+ # * Users
197
+ #
198
+ # For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ .
199
+ #
200
+ # ### Security Policies
201
+ #
153
202
  # * 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.
154
- # @param include [String] A comma separated list of objects to fetch underneath this account. Any object with a URL path underneath this account can be fetched by specifying its name.
155
- # @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:* subscriptions, users
156
- # @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.
157
- # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
158
- # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
203
+ # @param include [String] A comma separated list of objects to fetch underneath this account. Any object with a URL path underneath this account can be fetched by specifying its name.
204
+ # @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:* subscriptions, users
205
+ # @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.
206
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
207
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
159
208
  # @return [FetchResult]
160
- def query_accounts(options={})
161
- path = "/api/v2/accounts"
162
- get(path, options)
163
- end
164
-
209
+ def query_accounts(options={}) path = "/api/v2/accounts"
210
+ get(path, options) end
165
211
 
166
212
  # Change configuration settings for this account
167
213
  #
168
- # Update configuration settings tied to this account.
169
- #
170
- # Configuration settings provide you with the ability to control features of your account and of your
171
- # tax software. The category names `TaxServiceConfig` and `AddressServiceConfig` are reserved for
172
- # Avalara internal software configuration values; to store your own account-level settings, please
173
- # create a new category name that begins with `X-`, for example, `X-MyCustomCategory`.
174
- #
175
- # Account settings are permanent settings that cannot be deleted. You can set the value of an
176
- # account setting to null if desired.
177
- #
178
- # Avalara-based account settings for `TaxServiceConfig` and `AddressServiceConfig` affect your account's
179
- # tax calculation and address resolution, and should only be changed with care.
180
- #
181
- # ### Security Policies
182
- #
214
+ # Update configuration settings tied to this account.
215
+ #
216
+ # Configuration settings provide you with the ability to control features of your account and of your
217
+ # tax software. The category names `TaxServiceConfig` and `AddressServiceConfig` are reserved for
218
+ # Avalara internal software configuration values; to store your own account-level settings, please
219
+ # create a new category name that begins with `X-`, for example, `X-MyCustomCategory`.
220
+ #
221
+ # Account settings are permanent settings that cannot be deleted. You can set the value of an
222
+ # account setting to null if desired.
223
+ #
224
+ # Avalara-based account settings for `TaxServiceConfig` and `AddressServiceConfig` affect your account's
225
+ # tax calculation and address resolution, and should only be changed with care.
226
+ #
227
+ # ### Security Policies
228
+ #
183
229
  # * This API requires one of the following user roles: AccountAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
184
- # @param id [Integer]
185
- # @param model [AccountConfigurationModel[]]
230
+ # @param id [Integer]
231
+ # @param model [AccountConfigurationModel[]]
186
232
  # @return [AccountConfigurationModel[]]
187
- def set_account_configuration(id, model)
188
- path = "/api/v2/accounts/#{id}/configuration"
189
- post(path, model)
190
- end
191
-
233
+ def set_account_configuration(id, model) path = "/api/v2/accounts/#{id}/configuration"
234
+ post(path, model) end
192
235
  end
193
236
  end
194
237
  end
@@ -5,57 +5,51 @@ module AvaTax
5
5
 
6
6
  # Retrieve geolocation information for a specified address
7
7
  #
8
- # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
9
- # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
10
- # to identify how closely this address can be located. If the address cannot be clearly located, use the
11
- # 'messages' structure to learn more about problems with this address.
12
- # This is the same API as the POST /api/v2/addresses/resolve endpoint.
13
- # Both verbs are supported to provide for flexible implementation.
14
- #
15
- # Inorder to get any evaluation for an address please provide atleast one of the following fields/pairs:
16
- # 1. postal code
17
- # 2. line1 + city + region
18
- # 3. line1 + postal code
19
- #
20
- # ### Security Policies
21
- #
22
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
8
+ # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
9
+ # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
10
+ # to identify how closely this address can be located. If the address cannot be clearly located, use the
11
+ # 'messages' structure to learn more about problems with this address.
12
+ # This is the same API as the POST /api/v2/addresses/resolve endpoint.
13
+ # Both verbs are supported to provide for flexible implementation.
14
+ #
15
+ # Inorder to get any evaluation for an address please provide atleast one of the following fields/pairs:
16
+ # 1. postal code
17
+ # 2. line1 + city + region
18
+ # 3. line1 + postal code
19
+ #
20
+ # ### Security Policies
21
+ #
22
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
23
23
  # * This API depends on the following active services<br />*Required* (all): AutoAddress.
24
- # @param line1 [String] Line 1
25
- # @param line2 [String] Line 2
26
- # @param line3 [String] Line 3
27
- # @param city [String] City
28
- # @param region [String] State / Province / Region
29
- # @param postalCode [String] Postal Code / Zip Code
30
- # @param country [String] Two character ISO 3166 Country Code (see /api/v2/definitions/countries for a full list)
31
- # @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
24
+ # @param line1 [String] Line 1
25
+ # @param line2 [String] Line 2
26
+ # @param line3 [String] Line 3
27
+ # @param city [String] City
28
+ # @param region [String] State / Province / Region
29
+ # @param postalCode [String] Postal Code / Zip Code
30
+ # @param country [String] Two character ISO 3166 Country Code (see /api/v2/definitions/countries for a full list)
31
+ # @param textCase [String] selectable text case for address validation (See TextCase::* for a list of allowable values)
32
32
  # @return [Object]
33
- def resolve_address(options={})
34
- path = "/api/v2/addresses/resolve"
35
- get(path, options)
36
- end
37
-
33
+ def resolve_address(options={}) path = "/api/v2/addresses/resolve"
34
+ get(path, options) end
38
35
 
39
36
  # Retrieve geolocation information for a specified address
40
37
  #
41
- # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
42
- # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
43
- # to identify how closely this address can be located. If the address cannot be clearly located, use the
44
- # 'messages' structure to learn more about problems with this address.
45
- # This is the same API as the GET /api/v2/addresses/resolve endpoint.
46
- # Both verbs are supported to provide for flexible implementation.
47
- #
48
- # ### Security Policies
49
- #
50
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
38
+ # Resolve an address against Avalara's address-validation system. If the address can be resolved, this API
39
+ # provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used
40
+ # to identify how closely this address can be located. If the address cannot be clearly located, use the
41
+ # 'messages' structure to learn more about problems with this address.
42
+ # This is the same API as the GET /api/v2/addresses/resolve endpoint.
43
+ # Both verbs are supported to provide for flexible implementation.
44
+ #
45
+ # ### Security Policies
46
+ #
47
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
51
48
  # * This API depends on the following active services<br />*Required* (all): AutoAddress.
52
- # @param model [Object] The address to resolve
49
+ # @param model [Object] The address to resolve
53
50
  # @return [Object]
54
- def resolve_address_post(model)
55
- path = "/api/v2/addresses/resolve"
56
- post(path, model)
57
- end
58
-
51
+ def resolve_address_post(model) path = "/api/v2/addresses/resolve"
52
+ post(path, model) end
59
53
  end
60
54
  end
61
55
  end