avatax 17.5.0 → 17.6.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.
@@ -4,60 +4,54 @@ module AvaTax
4
4
 
5
5
 
6
6
  # Retrieve a single subscription
7
- #
7
+ #
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
- # @param int accountId The ID of the account that owns this subscription
13
- # @param int id The primary key of this subscription
14
- # @return SubscriptionModel
11
+ # @param accountId [Integer] The ID of the account that owns this subscription
12
+ # @param id [Integer] The primary key of this subscription
13
+ # @return [Object]
15
14
  def get_subscription(accountId, id)
16
15
  path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
17
-
18
16
  get(path)
19
17
  end
20
18
 
21
19
 
22
20
  # Retrieve subscriptions for this account
23
- #
21
+ #
24
22
  # List all subscription objects attached to this account.
25
23
  # A 'subscription' indicates a licensed subscription to a named Avalara service.
26
24
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
27
- #
25
+ #
28
26
  # 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/) .
29
27
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
30
- #
31
- # @param int accountId The ID of the account that owns these subscriptions
32
- # @param string filter 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/) .
33
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
34
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
35
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
36
- # @return FetchResult
28
+ # @param accountId [Integer] The ID of the account that owns these subscriptions
29
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
30
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
31
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
32
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
33
+ # @return [FetchResult]
37
34
  def list_subscriptions_by_account(accountId, options={})
38
35
  path = "/api/v2/accounts/#{accountId}/subscriptions"
39
-
40
36
  get(path, options)
41
37
  end
42
38
 
43
39
 
44
40
  # Retrieve all subscriptions
45
- #
41
+ #
46
42
  # Get multiple subscription objects across all accounts.
47
43
  # A 'subscription' indicates a licensed subscription to a named Avalara service.
48
44
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
49
- #
45
+ #
50
46
  # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
51
47
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
52
- #
53
- # @param string filter 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/) .
54
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
55
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
56
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
57
- # @return FetchResult
48
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
49
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
50
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
51
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
52
+ # @return [FetchResult]
58
53
  def query_subscriptions(options={})
59
54
  path = "/api/v2/subscriptions"
60
-
61
55
  get(path, options)
62
56
  end
63
57
 
@@ -4,121 +4,109 @@ module AvaTax
4
4
 
5
5
 
6
6
  # Create a new tax code
7
- #
7
+ #
8
8
  # Create one or more new taxcode objects attached to this company.
9
9
  # A 'TaxCode' represents a uniquely identified type of product, good, or service.
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
- # @param int companyId The ID of the company that owns this tax code.
15
- # @param TaxCodeModel[] model The tax code you wish to create.
16
- # @return TaxCodeModel[]
13
+ # @param companyId [Integer] The ID of the company that owns this tax code.
14
+ # @param model [object[]] The tax code you wish to create.
15
+ # @return [object[]]
17
16
  def create_tax_codes(companyId, model)
18
17
  path = "/api/v2/companies/#{companyId}/taxcodes"
19
-
20
18
  post(path, model)
21
19
  end
22
20
 
23
21
 
24
22
  # Delete a single tax code
25
- #
23
+ #
26
24
  # Marks the existing TaxCode object at this URL as deleted.
27
- #
28
- # @param int companyId The ID of the company that owns this tax code.
29
- # @param int id The ID of the tax code you wish to delete.
30
- # @return ErrorDetail[]
25
+ # @param companyId [Integer] The ID of the company that owns this tax code.
26
+ # @param id [Integer] The ID of the tax code you wish to delete.
27
+ # @return [object[]]
31
28
  def delete_tax_code(companyId, id)
32
29
  path = "/api/v2/companies/#{companyId}/taxcodes/#{id}"
33
-
34
30
  delete(path)
35
31
  end
36
32
 
37
33
 
38
34
  # Retrieve a single tax code
39
- #
35
+ #
40
36
  # Get the taxcode object identified by this URL.
41
37
  # A 'TaxCode' represents a uniquely identified type of product, good, or service.
42
38
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
43
39
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
44
40
  # taxability rules for this product in all supported jurisdictions.
45
- #
46
- # @param int companyId The ID of the company that owns this tax code
47
- # @param int id The primary key of this tax code
48
- # @return TaxCodeModel
41
+ # @param companyId [Integer] The ID of the company that owns this tax code
42
+ # @param id [Integer] The primary key of this tax code
43
+ # @return [Object]
49
44
  def get_tax_code(companyId, id)
50
45
  path = "/api/v2/companies/#{companyId}/taxcodes/#{id}"
51
-
52
46
  get(path)
53
47
  end
54
48
 
55
49
 
56
50
  # Retrieve tax codes for this company
57
- #
51
+ #
58
52
  # List all taxcode objects attached to this company.
59
53
  # A 'TaxCode' represents a uniquely identified type of product, good, or service.
60
54
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
61
55
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
62
56
  # taxability rules for this product in all supported jurisdictions.
63
- #
57
+ #
64
58
  # 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/) .
65
59
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
66
- #
67
- # @param int companyId The ID of the company that owns these tax codes
68
- # @param string filter 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/) .
69
- # @param string include A comma separated list of child objects to return underneath the primary object.
70
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
71
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
72
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
73
- # @return FetchResult
60
+ # @param companyId [Integer] The ID of the company that owns these tax codes
61
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
62
+ # @param include [String] A comma separated list of child objects to return underneath the primary object.
63
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
64
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
65
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
66
+ # @return [FetchResult]
74
67
  def list_tax_codes_by_company(companyId, options={})
75
68
  path = "/api/v2/companies/#{companyId}/taxcodes"
76
-
77
69
  get(path, options)
78
70
  end
79
71
 
80
72
 
81
73
  # Retrieve all tax codes
82
- #
74
+ #
83
75
  # Get multiple taxcode objects across all companies.
84
76
  # A 'TaxCode' represents a uniquely identified type of product, good, or service.
85
77
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
86
78
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
87
79
  # taxability rules for this product in all supported jurisdictions.
88
- #
80
+ #
89
81
  # 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/) .
90
82
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
91
- #
92
- # @param string filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
93
- # @param string include A comma separated list of child objects to return underneath the primary object.
94
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
95
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
96
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
97
- # @return FetchResult
83
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
84
+ # @param include [String] A comma separated list of child objects to return underneath the primary object.
85
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
86
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
87
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
88
+ # @return [FetchResult]
98
89
  def query_tax_codes(options={})
99
90
  path = "/api/v2/taxcodes"
100
-
101
91
  get(path, options)
102
92
  end
103
93
 
104
94
 
105
95
  # Update a single tax code
106
- #
96
+ #
107
97
  # Replace the existing taxcode object at this URL with an updated object.
108
98
  # A 'TaxCode' represents a uniquely identified type of product, good, or service.
109
99
  # Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions.
110
100
  # If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and
111
101
  # taxability rules for this product in all supported jurisdictions.
112
- # All data from the existing object will be replaced with data in the object you PUT.
102
+ # All data from the existing object will be replaced with data in the object you PUT.
113
103
  # To set a field's value to null, you may either set its value to null or omit that field from the object you post.
114
- #
115
- # @param int companyId The ID of the company that this tax code belongs to.
116
- # @param int id The ID of the tax code you wish to update
117
- # @param TaxCodeModel model The tax code you wish to update.
118
- # @return TaxCodeModel
104
+ # @param companyId [Integer] The ID of the company that this tax code belongs to.
105
+ # @param id [Integer] The ID of the tax code you wish to update
106
+ # @param model [Object] The tax code you wish to update.
107
+ # @return [Object]
119
108
  def update_tax_code(companyId, id, model)
120
109
  path = "/api/v2/companies/#{companyId}/taxcodes/#{id}"
121
-
122
110
  put(path, model)
123
111
  end
124
112
 
@@ -0,0 +1,54 @@
1
+ module AvaTax
2
+ class Client
3
+ module TaxContent
4
+
5
+
6
+ # Build a multi-location tax content file
7
+ #
8
+ # Builds a tax content file containing information useful for a retail point-of-sale solution.
9
+ #
10
+ # This file contains tax rates and rules for items and locations that can be used
11
+ # to correctly calculate tax in the event a point-of-sale device is not able to reach AvaTax.
12
+ #
13
+ # This data file can be customized for specific partner devices and usage conditions.
14
+ #
15
+ # The result of this API is the file you requested in the format you requested using the `responseType` field.
16
+ #
17
+ # This API builds the file on demand, and is limited to files with no more than 7500 scenarios. To build a tax content
18
+ # file for a single location at a time, please use `BuildTaxContentFileForLocation`.
19
+ # @param model [Object] Parameters about the desired file format and report format, specifying which company, locations and TaxCodes to include.
20
+ # @return [Object]
21
+ def build_tax_content_file(model)
22
+ path = "/api/v2/pointofsaledata/build"
23
+ post(path, model)
24
+ end
25
+
26
+
27
+ # Build a tax content file for a single location
28
+ #
29
+ # Builds a tax content file containing information useful for a retail point-of-sale solution.
30
+ #
31
+ # This file contains tax rates and rules for all items for a single location. Data from this API
32
+ # can be used to correctly calculate tax in the event a point-of-sale device is not able to reach AvaTax.
33
+ #
34
+ # This data file can be customized for specific partner devices and usage conditions.
35
+ #
36
+ # The result of this API is the file you requested in the format you requested using the `responseType` field.
37
+ #
38
+ # This API builds the file on demand, and is limited to files with no more than 7500 scenarios. To build a tax content
39
+ # file for a multiple locations in a single file, please use `BuildTaxContentFile`.
40
+ # @param companyId [Integer] The ID number of the company that owns this location.
41
+ # @param id [Integer] The ID number of the location to retrieve point-of-sale data.
42
+ # @param date [DateTime] The date for which point-of-sale data would be calculated (today by default)
43
+ # @param format [String] The format of the file (JSON by default) (See PointOfSaleFileType::* for a list of allowable values)
44
+ # @param partnerId [String] If specified, requests a custom partner-formatted version of the file. (See PointOfSalePartnerId::* for a list of allowable values)
45
+ # @param includeJurisCodes [object] When true, the file will include jurisdiction codes in the result.
46
+ # @return [Object]
47
+ def build_tax_content_file_for_location(companyId, id, options={})
48
+ path = "/api/v2/companies/#{companyId}/locations/#{id}/pointofsaledata"
49
+ get(path, options)
50
+ end
51
+
52
+ end
53
+ end
54
+ end
@@ -4,121 +4,109 @@ module AvaTax
4
4
 
5
5
 
6
6
  # Create a new tax rule
7
- #
7
+ #
8
8
  # Create one or more new taxrule objects attached to this company.
9
9
  # A tax rule represents a custom taxability rule for a product or service sold by your company.
10
10
  # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
11
11
  # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
12
12
  # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
13
- #
14
- # @param int companyId The ID of the company that owns this tax rule.
15
- # @param TaxRuleModel[] model The tax rule you wish to create.
16
- # @return TaxRuleModel[]
13
+ # @param companyId [Integer] The ID of the company that owns this tax rule.
14
+ # @param model [object[]] The tax rule you wish to create.
15
+ # @return [object[]]
17
16
  def create_tax_rules(companyId, model)
18
17
  path = "/api/v2/companies/#{companyId}/taxrules"
19
-
20
18
  post(path, model)
21
19
  end
22
20
 
23
21
 
24
22
  # Delete a single tax rule
25
- #
23
+ #
26
24
  # Mark the TaxRule identified by this URL as deleted.
27
- #
28
- # @param int companyId The ID of the company that owns this tax rule.
29
- # @param int id The ID of the tax rule you wish to delete.
30
- # @return ErrorDetail[]
25
+ # @param companyId [Integer] The ID of the company that owns this tax rule.
26
+ # @param id [Integer] The ID of the tax rule you wish to delete.
27
+ # @return [object[]]
31
28
  def delete_tax_rule(companyId, id)
32
29
  path = "/api/v2/companies/#{companyId}/taxrules/#{id}"
33
-
34
30
  delete(path)
35
31
  end
36
32
 
37
33
 
38
34
  # Retrieve a single tax rule
39
- #
35
+ #
40
36
  # Get the taxrule object identified by this URL.
41
37
  # A tax rule represents a custom taxability rule for a product or service sold by your company.
42
38
  # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
43
39
  # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
44
40
  # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
45
- #
46
- # @param int companyId The ID of the company that owns this tax rule
47
- # @param int id The primary key of this tax rule
48
- # @return TaxRuleModel
41
+ # @param companyId [Integer] The ID of the company that owns this tax rule
42
+ # @param id [Integer] The primary key of this tax rule
43
+ # @return [Object]
49
44
  def get_tax_rule(companyId, id)
50
45
  path = "/api/v2/companies/#{companyId}/taxrules/#{id}"
51
-
52
46
  get(path)
53
47
  end
54
48
 
55
49
 
56
50
  # Retrieve tax rules for this company
57
- #
51
+ #
58
52
  # List all taxrule objects attached to this company.
59
53
  # A tax rule represents a custom taxability rule for a product or service sold by your company.
60
54
  # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
61
55
  # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
62
56
  # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
63
- #
57
+ #
64
58
  # 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/) .
65
59
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
66
- #
67
- # @param int companyId The ID of the company that owns these tax rules
68
- # @param string filter 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/) .
69
- # @param string include A comma separated list of child objects to return underneath the primary object.
70
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
71
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
72
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
73
- # @return FetchResult
60
+ # @param companyId [Integer] The ID of the company that owns these tax rules
61
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
62
+ # @param include [String] A comma separated list of child objects to return underneath the primary object.
63
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
64
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
65
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
66
+ # @return [FetchResult]
74
67
  def list_tax_rules(companyId, options={})
75
68
  path = "/api/v2/companies/#{companyId}/taxrules"
76
-
77
69
  get(path, options)
78
70
  end
79
71
 
80
72
 
81
73
  # Retrieve all tax rules
82
- #
74
+ #
83
75
  # Get multiple taxrule objects across all companies.
84
76
  # A tax rule represents a custom taxability rule for a product or service sold by your company.
85
77
  # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
86
78
  # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
87
79
  # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
88
- #
80
+ #
89
81
  # 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/) .
90
82
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
91
- #
92
- # @param string filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
93
- # @param string include A comma separated list of child objects to return underneath the primary object.
94
- # @param int top If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
95
- # @param int skip If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
96
- # @param string orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
97
- # @return FetchResult
83
+ # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
84
+ # @param include [String] A comma separated list of child objects to return underneath the primary object.
85
+ # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
86
+ # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
87
+ # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
88
+ # @return [FetchResult]
98
89
  def query_tax_rules(options={})
99
90
  path = "/api/v2/taxrules"
100
-
101
91
  get(path, options)
102
92
  end
103
93
 
104
94
 
105
95
  # Update a single tax rule
106
- #
96
+ #
107
97
  # Replace the existing taxrule object at this URL with an updated object.
108
98
  # A tax rule represents a custom taxability rule for a product or service sold by your company.
109
99
  # If you have obtained a custom tax ruling from an auditor that changes the behavior of certain goods or services
110
100
  # within certain taxing jurisdictions, or you have obtained special tax concessions for certain dates or locations,
111
101
  # you may wish to create a TaxRule object to override the AvaTax engine's default behavior in those circumstances.
112
- # All data from the existing object will be replaced with data in the object you PUT.
102
+ # All data from the existing object will be replaced with data in the object you PUT.
113
103
  # To set a field's value to null, you may either set its value to null or omit that field from the object you post.
114
- #
115
- # @param int companyId The ID of the company that this tax rule belongs to.
116
- # @param int id The ID of the tax rule you wish to update
117
- # @param TaxRuleModel model The tax rule you wish to update.
118
- # @return TaxRuleModel
104
+ # @param companyId [Integer] The ID of the company that this tax rule belongs to.
105
+ # @param id [Integer] The ID of the tax rule you wish to update
106
+ # @param model [Object] The tax rule you wish to update.
107
+ # @return [Object]
119
108
  def update_tax_rule(companyId, id, model)
120
109
  path = "/api/v2/companies/#{companyId}/taxrules/#{id}"
121
-
122
110
  put(path, model)
123
111
  end
124
112