avatax 20.1.0 → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +180 -116
  3. data/lib/avatax/client/addresses.rb +34 -34
  4. data/lib/avatax/client/advancedrules.rb +33 -142
  5. data/lib/avatax/client/avafileforms.rb +37 -37
  6. data/lib/avatax/client/batches.rb +122 -122
  7. data/lib/avatax/client/certexpressinvites.rb +70 -70
  8. data/lib/avatax/client/certificates.rb +313 -313
  9. data/lib/avatax/client/companies.rb +234 -232
  10. data/lib/avatax/client/compliance.rb +2 -2
  11. data/lib/avatax/client/contacts.rb +58 -58
  12. data/lib/avatax/client/customers.rb +279 -279
  13. data/lib/avatax/client/datasources.rb +51 -51
  14. data/lib/avatax/client/definitions.rb +448 -435
  15. data/lib/avatax/client/distancethresholds.rb +74 -74
  16. data/lib/avatax/client/filingcalendars.rb +10 -498
  17. data/lib/avatax/client/filings.rb +13 -13
  18. data/lib/avatax/client/firmclientlinkages.rb +54 -54
  19. data/lib/avatax/client/free.rb +73 -73
  20. data/lib/avatax/client/fundingrequests.rb +32 -32
  21. data/lib/avatax/client/items.rb +284 -284
  22. data/lib/avatax/client/jurisdictionoverrides.rb +70 -70
  23. data/lib/avatax/client/locations.rb +87 -84
  24. data/lib/avatax/client/multidocument.rb +294 -234
  25. data/lib/avatax/client/nexus.rb +283 -143
  26. data/lib/avatax/client/notifications.rb +48 -48
  27. data/lib/avatax/client/provisioning.rb +29 -29
  28. data/lib/avatax/client/registrar.rb +122 -122
  29. data/lib/avatax/client/reports.rb +63 -63
  30. data/lib/avatax/client/settings.rb +108 -108
  31. data/lib/avatax/client/subscriptions.rb +35 -35
  32. data/lib/avatax/client/taxcodes.rb +72 -72
  33. data/lib/avatax/client/taxcontent.rb +106 -106
  34. data/lib/avatax/client/taxrules.rb +122 -122
  35. data/lib/avatax/client/transactions.rb +654 -639
  36. data/lib/avatax/client/upcs.rb +63 -63
  37. data/lib/avatax/client/users.rb +121 -121
  38. data/lib/avatax/client/utilities.rb +34 -34
  39. data/lib/avatax/connection.rb +1 -1
  40. data/lib/avatax/request.rb +2 -0
  41. data/lib/avatax/version.rb +1 -1
  42. metadata +3 -3
@@ -5,20 +5,20 @@ module AvaTax
5
5
 
6
6
  # Retrieve a list of filed returns for the specified company in the year and month of a given filing period.
7
7
  #
8
- # ### Security Policies
9
- #
10
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
11
- # * This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
8
+ # ### Security Policies
9
+ #
10
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
11
+ # * This API is available by invitation only.<br />*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
12
12
  # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
13
- # @param companyId [Integer] The ID of the company that owns these batches
14
- # @param endPeriodMonth [Integer] The month of the period you are trying to retrieve
15
- # @param endPeriodYear [Integer] The year of the period you are trying to retrieve
16
- # @param frequency [String] The frequency of the return you are trying to retrieve (See FilingFrequencyId::* for a list of allowable values)
17
- # @param status [String] The status of the return(s) you are trying to retrieve (See FilingStatusId::* for a list of allowable values)
18
- # @param country [String] The country of the return(s) you are trying to retrieve
19
- # @param region [String] The region of the return(s) you are trying to retrieve
20
- # @param filingCalendarId [Integer] The filing calendar id of the return you are trying to retrieve
21
- # @param taxformCode [String] The unique tax form code of the form.
13
+ # @param companyId [Integer] The ID of the company that owns these batches
14
+ # @param endPeriodMonth [Integer] The month of the period you are trying to retrieve
15
+ # @param endPeriodYear [Integer] The year of the period you are trying to retrieve
16
+ # @param frequency [String] The frequency of the return you are trying to retrieve (See FilingFrequencyId::* for a list of allowable values)
17
+ # @param status [String] The status of the return(s) you are trying to retrieve (See FilingStatusId::* for a list of allowable values)
18
+ # @param country [String] The country of the return(s) you are trying to retrieve
19
+ # @param region [String] The region of the return(s) you are trying to retrieve
20
+ # @param filingCalendarId [Integer] The filing calendar id of the return you are trying to retrieve
21
+ # @param taxformCode [String] The unique tax form code of the form.
22
22
  # @return [FetchResult]
23
23
  def get_filed_returns(companyId, options={}) path = "/api/v2/companies/#{companyId}/filings/returns/filed"
24
24
  get(path, options) end
@@ -5,117 +5,117 @@ module AvaTax
5
5
 
6
6
  # Approves linkage to a firm for a client account
7
7
  #
8
- # This API enables the account admin of a client account to approve linkage request by a firm.
9
- #
10
- # ### Security Policies
11
- #
8
+ # This API enables the account admin of a client account to approve linkage request by a firm.
9
+ #
10
+ # ### Security Policies
11
+ #
12
12
  # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
13
- # @param id [Integer]
13
+ # @param id [Integer]
14
14
  # @return [Object]
15
15
  def approve_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/approve"
16
16
  post(path) end
17
17
 
18
18
  # Request a new FirmClient account and create an approved linkage to it
19
19
  #
20
- # This API is for use by Firms only.
21
- #
22
- # Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service.
23
- # Firms can create accounts of FirmClient for customers they are managing using this API.
24
- #
25
- # Calling this API creates an account with the specified product subscriptions, but without a new user for account.
26
- # Account is then linked to the Firm so they can managed their returns.
27
- # You should call this API when a customer does not have an AvaTax account and is to be managed only by the firm.
28
- #
29
- # The created account will be created in `Active` status but there will be no user or license key associated with account.
30
- #
31
- # ### Security Policies
32
- #
20
+ # This API is for use by Firms only.
21
+ #
22
+ # Avalara allows firms to manage returns for clients without the clients needing to use AvaTax service.
23
+ # Firms can create accounts of FirmClient for customers they are managing using this API.
24
+ #
25
+ # Calling this API creates an account with the specified product subscriptions, but without a new user for account.
26
+ # Account is then linked to the Firm so they can managed their returns.
27
+ # You should call this API when a customer does not have an AvaTax account and is to be managed only by the firm.
28
+ #
29
+ # The created account will be created in `Active` status but there will be no user or license key associated with account.
30
+ #
31
+ # ### Security Policies
32
+ #
33
33
  # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SystemAdmin.
34
- # @param model [Object] Information about the account you wish to create.
34
+ # @param model [Object] Information about the account you wish to create.
35
35
  # @return [Object]
36
36
  def create_and_link_new_firm_client_account(model) path = "/api/v2/firmclientlinkages/createandlinkclient"
37
37
  post(path, model) end
38
38
 
39
39
  # Links a firm account with the client account
40
40
  #
41
- # This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
42
- #
43
- # ### Security Policies
44
- #
41
+ # This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
42
+ #
43
+ # ### Security Policies
44
+ #
45
45
  # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
46
- # @param model [Object] FirmClientLinkageInputModel
46
+ # @param model [Object] FirmClientLinkageInputModel
47
47
  # @return [Object]
48
48
  def create_firm_client_linkage(model) path = "/api/v2/firmclientlinkages"
49
49
  post(path, model) end
50
50
 
51
51
  # Delete a linkage
52
52
  #
53
- # This API marks a linkage between a firm and client as deleted.
54
- #
55
- # ### Security Policies
56
- #
53
+ # This API marks a linkage between a firm and client as deleted.
54
+ #
55
+ # ### Security Policies
56
+ #
57
57
  # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
58
- # @param id [Integer]
58
+ # @param id [Integer]
59
59
  # @return [ErrorDetail[]]
60
60
  def delete_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}"
61
61
  delete(path) end
62
62
 
63
63
  # Get linkage between a firm and client by id
64
64
  #
65
- # This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
66
- #
67
- # ### Security Policies
68
- #
65
+ # This API enables the firm admins/firm users to request the linkage of a firm account and a client account.
66
+ #
67
+ # ### Security Policies
68
+ #
69
69
  # * 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.
70
- # @param id [Integer]
70
+ # @param id [Integer]
71
71
  # @return [Object]
72
72
  def get_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}"
73
73
  get(path) end
74
74
 
75
75
  # List client linkages for a firm or client
76
76
  #
77
- # This API enables the firm or account users to request the associated linkages to the account.
78
- #
79
- # ### Security Policies
80
- #
77
+ # This API enables the firm or account users to request the associated linkages to the account.
78
+ #
79
+ # ### Security Policies
80
+ #
81
81
  # * 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.
82
- # @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:* firmAccountName, clientAccountName
82
+ # @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:* firmAccountName, clientAccountName
83
83
  # @return [FetchResult]
84
84
  def list_firm_client_linkage(options={}) path = "/api/v2/firmclientlinkages"
85
85
  get(path, options) end
86
86
 
87
87
  # Rejects linkage to a firm for a client account
88
88
  #
89
- # This API enables the account admin of a client account to reject linkage request by a firm.
90
- #
91
- # ### Security Policies
92
- #
89
+ # This API enables the account admin of a client account to reject linkage request by a firm.
90
+ #
91
+ # ### Security Policies
92
+ #
93
93
  # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
94
- # @param id [Integer]
94
+ # @param id [Integer]
95
95
  # @return [Object]
96
96
  def reject_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reject"
97
97
  post(path) end
98
98
 
99
99
  # Reset linkage status between a client and firm back to requested
100
100
  #
101
- # This API enables the firm admin of a client account to reset a previously created linkage request by a firm.
102
- #
103
- # ### Security Policies
104
- #
101
+ # This API enables the firm admin of a client account to reset a previously created linkage request by a firm.
102
+ #
103
+ # ### Security Policies
104
+ #
105
105
  # * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
106
- # @param id [Integer]
106
+ # @param id [Integer]
107
107
  # @return [Object]
108
108
  def reset_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/reset"
109
109
  post(path) end
110
110
 
111
111
  # Revokes previously approved linkage to a firm for a client account
112
112
  #
113
- # This API enables the account admin of a client account to revoke a previously approved linkage request by a firm.
114
- #
115
- # ### Security Policies
116
- #
113
+ # This API enables the account admin of a client account to revoke a previously approved linkage request by a firm.
114
+ #
115
+ # ### Security Policies
116
+ #
117
117
  # * This API requires one of the following user roles: AccountAdmin, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
118
- # @param id [Integer]
118
+ # @param id [Integer]
119
119
  # @return [Object]
120
120
  def revoke_firm_client_linkage(id) path = "/api/v2/firmclientlinkages/#{id}/revoke"
121
121
  post(path) end
@@ -5,94 +5,94 @@ module AvaTax
5
5
 
6
6
  # FREE API - Request a free trial of AvaTax
7
7
  #
8
- # Call this API to obtain a free AvaTax account.
9
- #
10
- # This API is free to use. No authentication credentials are required to call this API. You must read and
11
- # accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be
12
- # created.
13
- #
14
- # If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality
15
- # available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).
16
- #
17
- # After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).
18
- #
19
- # ### Security Policies
20
- #
8
+ # Call this API to obtain a free AvaTax account.
9
+ #
10
+ # This API is free to use. No authentication credentials are required to call this API. You must read and
11
+ # accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be
12
+ # created.
13
+ #
14
+ # If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality
15
+ # available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).
16
+ #
17
+ # After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).
18
+ #
19
+ # ### Security Policies
20
+ #
21
21
  # * This API may be called without providing authentication credentials.
22
- # @param model [Object] Required information to provision a free trial account.
22
+ # @param model [Object] Required information to provision a free trial account.
23
23
  # @return [Object]
24
24
  def request_free_trial(model) path = "/api/v2/accounts/freetrials/request"
25
25
  post(path, model) end
26
26
 
27
27
  # FREE API - Sales tax rates for a specified address
28
28
  #
29
- # # Free-To-Use
30
- #
31
- # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
32
- # Any customer can request a free AvaTax account and make use of the TaxRates API.
33
- #
34
- # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
35
- # response code 429 - `Too Many Requests`.
36
- #
37
- # This API assumes that you are selling general tangible personal property at a retail point-of-sale
38
- # location in the United States only.
39
- #
40
- # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
41
- # which supports features including, but not limited to:
42
- #
43
- # * Nexus declarations
44
- # * Taxability based on product/service type
45
- # * Sourcing rules affecting origin/destination states
46
- # * Customers who are exempt from certain taxes
47
- # * States that have dollar value thresholds for tax amounts
48
- # * Refunds for products purchased on a different date
49
- # * Detailed jurisdiction names and state assigned codes
50
- # * And more!
51
- #
52
- # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
29
+ # # Free-To-Use
30
+ #
31
+ # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
32
+ # Any customer can request a free AvaTax account and make use of the TaxRates API.
33
+ #
34
+ # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
35
+ # response code 429 - `Too Many Requests`.
36
+ #
37
+ # This API assumes that you are selling general tangible personal property at a retail point-of-sale
38
+ # location in the United States only.
39
+ #
40
+ # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
41
+ # which supports features including, but not limited to:
42
+ #
43
+ # * Nexus declarations
44
+ # * Taxability based on product/service type
45
+ # * Sourcing rules affecting origin/destination states
46
+ # * Customers who are exempt from certain taxes
47
+ # * States that have dollar value thresholds for tax amounts
48
+ # * Refunds for products purchased on a different date
49
+ # * Detailed jurisdiction names and state assigned codes
50
+ # * And more!
51
+ #
52
+ # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
53
53
  # for information on how to upgrade to the full AvaTax CreateTransaction API.
54
- # @param line1 [String] The street address of the location.
55
- # @param line2 [String] The street address of the location.
56
- # @param line3 [String] The street address of the location.
57
- # @param city [String] The city name of the location.
58
- # @param region [String] Name or ISO 3166 code identifying the region within the country. This field supports many different region identifiers: * Two and three character ISO 3166 region codes * Fully spelled out names of the region in ISO supported languages * Common alternative spellings for many regions For a full list of all supported codes and names, please see the Definitions API `ListRegions`.
59
- # @param postalCode [String] The postal code of the location.
60
- # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
54
+ # @param line1 [String] The street address of the location.
55
+ # @param line2 [String] The street address of the location.
56
+ # @param line3 [String] The street address of the location.
57
+ # @param city [String] The city name of the location.
58
+ # @param region [String] Name or ISO 3166 code identifying the region within the country. This field supports many different region identifiers: * Two and three character ISO 3166 region codes * Fully spelled out names of the region in ISO supported languages * Common alternative spellings for many regions For a full list of all supported codes and names, please see the Definitions API `ListRegions`.
59
+ # @param postalCode [String] The postal code of the location.
60
+ # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
61
61
  # @return [Object]
62
62
  def tax_rates_by_address(options={}) path = "/api/v2/taxrates/byaddress"
63
63
  get(path, options) end
64
64
 
65
65
  # FREE API - Sales tax rates for a specified country and postal code. This API is only available for US postal codes.
66
66
  #
67
- # # Free-To-Use
68
- #
69
- # This API is only available for a US postal codes.
70
- #
71
- # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
72
- # Any customer can request a free AvaTax account and make use of the TaxRates API.
73
- #
74
- # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
75
- # response code 429 - `Too Many Requests`.
76
- #
77
- # This API assumes that you are selling general tangible personal property at a retail point-of-sale
78
- # location in the United States only.
79
- #
80
- # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
81
- # which supports features including, but not limited to:
82
- #
83
- # * Nexus declarations
84
- # * Taxability based on product/service type
85
- # * Sourcing rules affecting origin/destination states
86
- # * Customers who are exempt from certain taxes
87
- # * States that have dollar value thresholds for tax amounts
88
- # * Refunds for products purchased on a different date
89
- # * Detailed jurisdiction names and state assigned codes
90
- # * And more!
91
- #
92
- # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
67
+ # # Free-To-Use
68
+ #
69
+ # This API is only available for a US postal codes.
70
+ #
71
+ # The TaxRates API is a free-to-use, no cost option for estimating sales tax rates.
72
+ # Any customer can request a free AvaTax account and make use of the TaxRates API.
73
+ #
74
+ # Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP
75
+ # response code 429 - `Too Many Requests`.
76
+ #
77
+ # This API assumes that you are selling general tangible personal property at a retail point-of-sale
78
+ # location in the United States only.
79
+ #
80
+ # For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API,
81
+ # which supports features including, but not limited to:
82
+ #
83
+ # * Nexus declarations
84
+ # * Taxability based on product/service type
85
+ # * Sourcing rules affecting origin/destination states
86
+ # * Customers who are exempt from certain taxes
87
+ # * States that have dollar value thresholds for tax amounts
88
+ # * Refunds for products purchased on a different date
89
+ # * Detailed jurisdiction names and state assigned codes
90
+ # * And more!
91
+ #
92
+ # Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/)
93
93
  # for information on how to upgrade to the full AvaTax CreateTransaction API.
94
- # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
95
- # @param postalCode [String] The postal code of the location.
94
+ # @param country [String] Name or ISO 3166 code identifying the country. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
95
+ # @param postalCode [String] The postal code of the location.
96
96
  # @return [Object]
97
97
  def tax_rates_by_postal_code(options={}) path = "/api/v2/taxrates/bypostalcode"
98
98
  get(path, options) end
@@ -5,46 +5,46 @@ module AvaTax
5
5
 
6
6
  # Request the javascript for a funding setup widget
7
7
  #
8
- # This API is available by invitation only.
9
- # Companies that use the Avalara Managed Returns or the SST Certified Service Provider services are
10
- # required to setup their funding configuration before Avalara can begin filing tax returns on their
11
- # behalf.
12
- # Funding configuration for each company is set up by submitting a funding setup request, which can
13
- # be sent either via email or via an embedded HTML widget.
14
- # When the funding configuration is submitted to Avalara, it will be reviewed by treasury team members
15
- # before approval.
16
- # This API returns back the actual javascript code to insert into your application to render the
17
- # JavaScript funding setup widget inline.
18
- # Use the 'methodReturn.javaScript' return value to insert this widget into your HTML page.
19
- # This API requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
20
- #
21
- # ### Security Policies
22
- #
23
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
8
+ # This API is available by invitation only.
9
+ # Companies that use the Avalara Managed Returns or the SST Certified Service Provider services are
10
+ # required to setup their funding configuration before Avalara can begin filing tax returns on their
11
+ # behalf.
12
+ # Funding configuration for each company is set up by submitting a funding setup request, which can
13
+ # be sent either via email or via an embedded HTML widget.
14
+ # When the funding configuration is submitted to Avalara, it will be reviewed by treasury team members
15
+ # before approval.
16
+ # This API returns back the actual javascript code to insert into your application to render the
17
+ # JavaScript funding setup widget inline.
18
+ # Use the 'methodReturn.javaScript' return value to insert this widget into your HTML page.
19
+ # This API requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
20
+ #
21
+ # ### Security Policies
22
+ #
23
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
24
24
  # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
25
- # @param id [Integer] The unique ID number of this funding request
25
+ # @param id [Integer] The unique ID number of this funding request
26
26
  # @return [Object]
27
27
  def activate_funding_request(id) path = "/api/v2/fundingrequests/#{id}/widget"
28
28
  get(path) end
29
29
 
30
30
  # Retrieve status about a funding setup request
31
31
  #
32
- # This API is available by invitation only.
33
- # Companies that use the Avalara Managed Returns or the SST Certified Service Provider services are
34
- # required to setup their funding configuration before Avalara can begin filing tax returns on their
35
- # behalf.
36
- # Funding configuration for each company is set up by submitting a funding setup request, which can
37
- # be sent either via email or via an embedded HTML widget.
38
- # When the funding configuration is submitted to Avalara, it will be reviewed by treasury team members
39
- # before approval.
40
- # This API checks the status on an existing funding request.
41
- # This API requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
42
- #
43
- # ### Security Policies
44
- #
45
- # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
32
+ # This API is available by invitation only.
33
+ # Companies that use the Avalara Managed Returns or the SST Certified Service Provider services are
34
+ # required to setup their funding configuration before Avalara can begin filing tax returns on their
35
+ # behalf.
36
+ # Funding configuration for each company is set up by submitting a funding setup request, which can
37
+ # be sent either via email or via an embedded HTML widget.
38
+ # When the funding configuration is submitted to Avalara, it will be reviewed by treasury team members
39
+ # before approval.
40
+ # This API checks the status on an existing funding request.
41
+ # This API requires a subscription to Avalara Managed Returns or SST Certified Service Provider.
42
+ #
43
+ # ### Security Policies
44
+ #
45
+ # * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
46
46
  # * This API depends on the following active services<br />*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.<br />*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
47
- # @param id [Integer] The unique ID number of this funding request
47
+ # @param id [Integer] The unique ID number of this funding request
48
48
  # @return [Object]
49
49
  def funding_request_status(id) path = "/api/v2/fundingrequests/#{id}"
50
50
  get(path) end