avatax 17.7.3 → 17.8.1

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.
@@ -16,7 +16,7 @@ module AvaTax
16
16
  # @param year [Integer] The year of the filing period to approve.
17
17
  # @param month [Integer] The month of the filing period to approve.
18
18
  # @param model [Object] The approve request you wish to execute.
19
- # @return [object[]]
19
+ # @return [FilingModel[]]
20
20
  def approve_filings(companyId, year, month, model)
21
21
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/approve"
22
22
  post(path, model)
@@ -37,7 +37,7 @@ module AvaTax
37
37
  # @param month [Integer] The month of the filing period to approve.
38
38
  # @param country [String] The two-character ISO-3166 code for the country.
39
39
  # @param model [Object] The approve request you wish to execute.
40
- # @return [object[]]
40
+ # @return [FilingModel[]]
41
41
  def approve_filings_country(companyId, year, month, country, model)
42
42
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/#{country}/approve"
43
43
  post(path, model)
@@ -59,7 +59,7 @@ module AvaTax
59
59
  # @param country [String] The two-character ISO-3166 code for the country.
60
60
  # @param region [String] The two or three character region code for the region.
61
61
  # @param model [Object] The approve request you wish to execute.
62
- # @return [object[]]
62
+ # @return [FilingModel[]]
63
63
  def approve_filings_country_region(companyId, year, month, country, region, model)
64
64
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/#{country}/#{region}/approve"
65
65
  post(path, model)
@@ -80,8 +80,8 @@ module AvaTax
80
80
  # @param country [String] The two-character ISO-3166 code for the country of the filing being adjusted.
81
81
  # @param region [String] The two or three character region code for the region.
82
82
  # @param formCode [String] The unique code of the form being adjusted.
83
- # @param model [object[]] A list of Adjustments to be created for the specified filing.
84
- # @return [object[]]
83
+ # @param model [FilingAdjustmentModel[]] A list of Adjustments to be created for the specified filing.
84
+ # @return [FilingAdjustmentModel[]]
85
85
  def create_return_adjustment(companyId, year, month, country, region, formCode, model)
86
86
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/#{country}/#{region}/#{formCode}/adjust"
87
87
  post(path, model)
@@ -101,8 +101,8 @@ module AvaTax
101
101
  # @param country [String] The two-character ISO-3166 code for the country of the filing being changed.
102
102
  # @param region [String] The two or three character region code for the region of the filing being changed.
103
103
  # @param formCode [String] The unique code of the form being changed.
104
- # @param model [object[]] A list of augmentations to be created for the specified filing.
105
- # @return [object[]]
104
+ # @param model [FilingAugmentationModel[]] A list of augmentations to be created for the specified filing.
105
+ # @return [FilingAugmentationModel[]]
106
106
  def create_return_augmentation(companyId, year, month, country, region, formCode, model)
107
107
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/#{country}/#{region}/#{formCode}/augment"
108
108
  post(path, model)
@@ -123,8 +123,8 @@ module AvaTax
123
123
  # @param country [String] The two-character ISO-3166 code for the country of the filing being adjusted.
124
124
  # @param region [String] The two or three character region code for the region.
125
125
  # @param formCode [String] The unique code of the form being adjusted.
126
- # @param model [object[]] A list of Payments to be created for the specified filing.
127
- # @return [object[]]
126
+ # @param model [FilingPaymentModel[]] A list of Payments to be created for the specified filing.
127
+ # @return [FilingPaymentModel[]]
128
128
  def create_return_payment(companyId, year, month, country, region, formCode, model)
129
129
  path = "/api/v2/companies/#{companyId}/filings/#{year}/#{month}/#{country}/#{region}/#{formCode}/payment"
130
130
  post(path, model)
@@ -141,7 +141,7 @@ module AvaTax
141
141
  # This API can only be used when the filing has been unapproved.
142
142
  # @param companyId [Integer] The ID of the company that owns the filing being adjusted.
143
143
  # @param id [Integer] The ID of the adjustment being deleted.
144
- # @return [object[]]
144
+ # @return [ErrorDetail[]]
145
145
  def delete_return_adjustment(companyId, id)
146
146
  path = "/api/v2/companies/#{companyId}/filings/adjust/#{id}"
147
147
  delete(path)
@@ -157,7 +157,7 @@ module AvaTax
157
157
  # This API can only be used when the filing has been unapproved.
158
158
  # @param companyId [Integer] The ID of the company that owns the filing being changed.
159
159
  # @param id [Integer] The ID of the augmentation being added.
160
- # @return [object[]]
160
+ # @return [ErrorDetail[]]
161
161
  def delete_return_augmentation(companyId, id)
162
162
  path = "/api/v2/companies/#{companyId}/filings/augment/#{id}"
163
163
  delete(path)
@@ -174,7 +174,7 @@ module AvaTax
174
174
  # This API can only be used when the filing has been unapproved.
175
175
  # @param companyId [Integer] The ID of the company that owns the filing being adjusted.
176
176
  # @param id [Integer] The ID of the payment being deleted.
177
- # @return [object[]]
177
+ # @return [ErrorDetail[]]
178
178
  def delete_return_payment(companyId, id)
179
179
  path = "/api/v2/companies/#{companyId}/filings/payment/#{id}"
180
180
  delete(path)
@@ -7,8 +7,8 @@ module AvaTax
7
7
  #
8
8
  # Creates one or more new item objects attached to this company.
9
9
  # @param companyId [Integer] The ID of the company that owns this item.
10
- # @param model [object[]] The item you wish to create.
11
- # @return [object[]]
10
+ # @param model [ItemModel[]] The item you wish to create.
11
+ # @return [ItemModel[]]
12
12
  def create_items(companyId, model)
13
13
  path = "/api/v2/companies/#{companyId}/items"
14
14
  post(path, model)
@@ -20,7 +20,7 @@ module AvaTax
20
20
  # Marks the item object at this URL as deleted.
21
21
  # @param companyId [Integer] The ID of the company that owns this item.
22
22
  # @param id [Integer] The ID of the item you wish to delete.
23
- # @return [object[]]
23
+ # @return [ErrorDetail[]]
24
24
  def delete_item(companyId, id)
25
25
  path = "/api/v2/companies/#{companyId}/items/#{id}"
26
26
  delete(path)
@@ -50,7 +50,7 @@ module AvaTax
50
50
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
51
51
  # @param companyId [Integer] The ID of the company that defined these items
52
52
  # @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/) .
53
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
53
+ # @param include [String] A comma separated list of additional data to retrieve.
54
54
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
55
55
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
56
56
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -69,7 +69,7 @@ module AvaTax
69
69
  # 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/) .
70
70
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
71
71
  # @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/) .
72
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
72
+ # @param include [String] A comma separated list of additional data to retrieve.
73
73
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
74
74
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
75
75
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -12,8 +12,8 @@ module AvaTax
12
12
  # between two different jurisdictions, you can choose to set up a jurisdiction override
13
13
  # to switch this address to use different taxing jurisdictions.
14
14
  # @param accountId [Integer] The ID of the account that owns this override
15
- # @param model [object[]] The jurisdiction override objects to create
16
- # @return [object[]]
15
+ # @param model [JurisdictionOverrideModel[]] The jurisdiction override objects to create
16
+ # @return [JurisdictionOverrideModel[]]
17
17
  def create_jurisdiction_overrides(accountId, model)
18
18
  path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides"
19
19
  post(path, model)
@@ -25,7 +25,7 @@ module AvaTax
25
25
  # Marks the item object at this URL as deleted.
26
26
  # @param accountId [Integer] The ID of the account that owns this override
27
27
  # @param id [Integer] The ID of the override you wish to delete
28
- # @return [object[]]
28
+ # @return [ErrorDetail[]]
29
29
  def delete_jurisdiction_override(accountId, id)
30
30
  path = "/api/v2/accounts/#{accountId}/jurisdictionoverrides/#{id}"
31
31
  delete(path)
@@ -62,7 +62,7 @@ module AvaTax
62
62
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
63
63
  # @param accountId [Integer] The ID of the account that owns this override
64
64
  # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
65
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
65
+ # @param include [String] A comma separated list of additional data to retrieve.
66
66
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
67
67
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
68
68
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -85,7 +85,7 @@ module AvaTax
85
85
  # 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/) .
86
86
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
87
87
  # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
88
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
88
+ # @param include [String] A comma separated list of additional data to retrieve.
89
89
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
90
90
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
91
91
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -7,8 +7,8 @@ module AvaTax
7
7
  #
8
8
  # Create one or more new location objects attached to this company.
9
9
  # @param companyId [Integer] The ID of the company that owns this location.
10
- # @param model [object[]] The location you wish to create.
11
- # @return [object[]]
10
+ # @param model [LocationModel[]] The location you wish to create.
11
+ # @return [LocationModel[]]
12
12
  def create_locations(companyId, model)
13
13
  path = "/api/v2/companies/#{companyId}/locations"
14
14
  post(path, model)
@@ -20,7 +20,7 @@ module AvaTax
20
20
  # Mark the location object at this URL as deleted.
21
21
  # @param companyId [Integer] The ID of the company that owns this location.
22
22
  # @param id [Integer] The ID of the location you wish to delete.
23
- # @return [object[]]
23
+ # @return [ErrorDetail[]]
24
24
  def delete_location(companyId, id)
25
25
  path = "/api/v2/companies/#{companyId}/locations/#{id}"
26
26
  delete(path)
@@ -40,7 +40,7 @@ module AvaTax
40
40
  # * LocationSettings
41
41
  # @param companyId [Integer] The ID of the company that owns this location
42
42
  # @param id [Integer] The primary key of this location
43
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
43
+ # @param include [String] A comma separated list of additional data to retrieve. You may specify `LocationSettings` to retrieve location settings.
44
44
  # @return [Object]
45
45
  def get_location(companyId, id, options={})
46
46
  path = "/api/v2/companies/#{companyId}/locations/#{id}"
@@ -63,7 +63,7 @@ module AvaTax
63
63
  # * LocationSettings
64
64
  # @param companyId [Integer] The ID of the company that owns these locations
65
65
  # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
66
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
66
+ # @param include [String] A comma separated list of additional data to retrieve. You may specify `LocationSettings` to retrieve location settings.
67
67
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
68
68
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
69
69
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -89,7 +89,7 @@ module AvaTax
89
89
  #
90
90
  # * LocationSettings
91
91
  # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
92
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
92
+ # @param include [String] A comma separated list of additional data to retrieve. You may specify `LocationSettings` to retrieve location settings.
93
93
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
94
94
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
95
95
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -14,8 +14,8 @@ module AvaTax
14
14
  # '/api/v2/definitions/nexus' endpoint.
15
15
  # You may only define nexus matching the official list of declared nexus.
16
16
  # @param companyId [Integer] The ID of the company that owns this nexus.
17
- # @param model [object[]] The nexus you wish to create.
18
- # @return [object[]]
17
+ # @param model [NexusModel[]] The nexus you wish to create.
18
+ # @return [NexusModel[]]
19
19
  def create_nexus(companyId, model)
20
20
  path = "/api/v2/companies/#{companyId}/nexus"
21
21
  post(path, model)
@@ -27,7 +27,7 @@ module AvaTax
27
27
  # Marks the existing nexus object at this URL as deleted.
28
28
  # @param companyId [Integer] The ID of the company that owns this nexus.
29
29
  # @param id [Integer] The ID of the nexus you wish to delete.
30
- # @return [object[]]
30
+ # @return [ErrorDetail[]]
31
31
  def delete_nexus(companyId, id)
32
32
  path = "/api/v2/companies/#{companyId}/nexus/#{id}"
33
33
  delete(path)
@@ -84,7 +84,7 @@ module AvaTax
84
84
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
85
85
  # @param companyId [Integer] The ID of the company that owns these nexus objects
86
86
  # @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/) .
87
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
87
+ # @param include [String] A comma separated list of additional data to retrieve.
88
88
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
89
89
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
90
90
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -106,7 +106,7 @@ module AvaTax
106
106
  # Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
107
107
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
108
108
  # @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/) .
109
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
109
+ # @param include [String] A comma separated list of additional data to retrieve.
110
110
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
111
111
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
112
112
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -11,8 +11,8 @@ module AvaTax
11
11
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
12
12
  # @param companyId [Integer] The ID of the company that owns this notice.
13
13
  # @param id [Integer] The ID of the tax notice we are adding the comment for.
14
- # @param model [object[]] The notice comments you wish to create.
15
- # @return [object[]]
14
+ # @param model [NoticeCommentModel[]] The notice comments you wish to create.
15
+ # @return [NoticeCommentModel[]]
16
16
  def create_notice_comment(companyId, id, model)
17
17
  path = "/api/v2/companies/#{companyId}/notices/#{id}/comments"
18
18
  post(path, model)
@@ -28,8 +28,8 @@ module AvaTax
28
28
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
29
29
  # @param companyId [Integer] The ID of the company that owns this notice.
30
30
  # @param id [Integer] The ID of the notice added to the finance details.
31
- # @param model [object[]] The notice finance details you wish to create.
32
- # @return [object[]]
31
+ # @param model [NoticeFinanceModel[]] The notice finance details you wish to create.
32
+ # @return [NoticeFinanceModel[]]
33
33
  def create_notice_finance_details(companyId, id, model)
34
34
  path = "/api/v2/companies/#{companyId}/notices/#{id}/financedetails"
35
35
  post(path, model)
@@ -44,8 +44,8 @@ module AvaTax
44
44
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
45
45
  # @param companyId [Integer] The ID of the company that owns this notice.
46
46
  # @param id [Integer] The ID of the tax notice we are adding the responsibility for.
47
- # @param model [object[]] The notice responsibilities you wish to create.
48
- # @return [object[]]
47
+ # @param model [NoticeResponsibilityDetailModel[]] The notice responsibilities you wish to create.
48
+ # @return [NoticeResponsibilityDetailModel[]]
49
49
  def create_notice_responsibilities(companyId, id, model)
50
50
  path = "/api/v2/companies/#{companyId}/notices/#{id}/responsibilities"
51
51
  post(path, model)
@@ -60,8 +60,8 @@ module AvaTax
60
60
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
61
61
  # @param companyId [Integer] The ID of the company that owns this notice.
62
62
  # @param id [Integer] The ID of the tax notice we are adding the responsibility for.
63
- # @param model [object[]] The notice root causes you wish to create.
64
- # @return [object[]]
63
+ # @param model [NoticeRootCauseDetailModel[]] The notice root causes you wish to create.
64
+ # @return [NoticeRootCauseDetailModel[]]
65
65
  def create_notice_root_causes(companyId, id, model)
66
66
  path = "/api/v2/companies/#{companyId}/notices/#{id}/rootcauses"
67
67
  post(path, model)
@@ -75,8 +75,8 @@ module AvaTax
75
75
  # A 'notice' represents a letter sent to a business by a tax authority regarding tax filing issues. Avalara
76
76
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
77
77
  # @param companyId [Integer] The ID of the company that owns this notice.
78
- # @param model [object[]] The notice object you wish to create.
79
- # @return [object[]]
78
+ # @param model [NoticeModel[]] The notice object you wish to create.
79
+ # @return [NoticeModel[]]
80
80
  def create_notices(companyId, model)
81
81
  path = "/api/v2/companies/#{companyId}/notices"
82
82
  post(path, model)
@@ -91,7 +91,7 @@ module AvaTax
91
91
  # Returns customers often receive support and assistance from the Compliance Notices team in handling notices received by taxing authorities.
92
92
  # @param companyId [Integer] The ID of the company that owns this notice.
93
93
  # @param id [Integer] The ID of the notice you wish to delete.
94
- # @return [object[]]
94
+ # @return [ErrorDetail[]]
95
95
  def delete_notice(companyId, id)
96
96
  path = "/api/v2/companies/#{companyId}/notices/#{id}"
97
97
  delete(path)
@@ -107,7 +107,7 @@ module AvaTax
107
107
  # @param companyId [Integer] The ID of the company that owns this notice.
108
108
  # @param noticeId [Integer] The ID of the notice you wish to delete.
109
109
  # @param id [Integer] The ID of the responsibility you wish to delete.
110
- # @return [object[]]
110
+ # @return [ErrorDetail[]]
111
111
  def delete_responsibilities(companyId, noticeId, id)
112
112
  path = "/api/v2/companies/#{companyId}/notices/#{noticeId}/responsibilities/#{id}"
113
113
  delete(path)
@@ -123,7 +123,7 @@ module AvaTax
123
123
  # @param companyId [Integer] The ID of the company that owns this notice.
124
124
  # @param noticeId [Integer] The ID of the notice you wish to delete.
125
125
  # @param id [Integer] The ID of the root cause you wish to delete.
126
- # @return [object[]]
126
+ # @return [ErrorDetail[]]
127
127
  def delete_root_causes(companyId, noticeId, id)
128
128
  path = "/api/v2/companies/#{companyId}/notices/#{noticeId}/rootcauses/#{id}"
129
129
  delete(path)
@@ -230,7 +230,7 @@ module AvaTax
230
230
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
231
231
  # @param companyId [Integer] The ID of the company that owns these notices.
232
232
  # @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/) .
233
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
233
+ # @param include [String] A comma separated list of additional data to retrieve.
234
234
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
235
235
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
236
236
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -251,7 +251,7 @@ module AvaTax
251
251
  # 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/) .
252
252
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
253
253
  # @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/) .
254
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
254
+ # @param include [String] A comma separated list of additional data to retrieve.
255
255
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
256
256
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
257
257
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -6,9 +6,19 @@ module AvaTax
6
6
  # Request a new Avalara account
7
7
  #
8
8
  # This API is for use by partner onboarding services customers only.
9
+ #
10
+ # Avalara invites select partners to refer new customers to the AvaTax service using the onboarding features
11
+ # of AvaTax. These partners can create accounts for new customers using this API.
12
+ #
9
13
  # Calling this API creates an account with the specified product subscriptions, but does not configure billing.
10
14
  # The customer will receive information from Avalara about how to configure billing for their account.
11
15
  # You should call this API when a customer has requested to begin using Avalara services.
16
+ #
17
+ # If the newly created account owner wishes, they can confirm that they have read and agree to the Avalara
18
+ # terms and conditions. If they do so, they can receive a license key as part of this API and their
19
+ # API will be created in `Active` status. If the customer has not yet read and accepted these terms and
20
+ # conditions, the account will be created in `New` status and they can receive a license key by logging
21
+ # onto AvaTax and reviewing terms and conditions online.
12
22
  # @param model [Object] Information about the account you wish to create and the selected product offerings.
13
23
  # @return [Object]
14
24
  def request_new_account(model)
@@ -43,8 +43,8 @@ module AvaTax
43
43
  # A 'subscription' indicates a licensed subscription to a named Avalara service.
44
44
  # To request or remove subscriptions, please contact Avalara sales or your customer account manager.
45
45
  # @param accountId [Integer] The ID of the account that owns this subscription.
46
- # @param model [object[]] The subscription you wish to create.
47
- # @return [object[]]
46
+ # @param model [SubscriptionModel[]] The subscription you wish to create.
47
+ # @return [SubscriptionModel[]]
48
48
  def create_subscriptions(accountId, model)
49
49
  path = "/api/v2/accounts/#{accountId}/subscriptions"
50
50
  post(path, model)
@@ -59,8 +59,8 @@ module AvaTax
59
59
  # Create one or more new user objects attached to this account.
60
60
  # A user represents one person with access privileges to make API calls and work with a specific account.
61
61
  # @param accountId [Integer] The unique ID number of the account where these users will be created.
62
- # @param model [object[]] The user or array of users you wish to create.
63
- # @return [object[]]
62
+ # @param model [UserModel[]] The user or array of users you wish to create.
63
+ # @return [UserModel[]]
64
64
  def create_users(accountId, model)
65
65
  path = "/api/v2/accounts/#{accountId}/users"
66
66
  post(path, model)
@@ -75,7 +75,7 @@ module AvaTax
75
75
  # Delete an account.
76
76
  # Deleting an account will delete all companies and all account level users attached to this account.
77
77
  # @param id [Integer] The ID of the account you wish to delete.
78
- # @return [object[]]
78
+ # @return [ErrorDetail[]]
79
79
  def delete_account(id)
80
80
  path = "/api/v2/accounts/#{id}"
81
81
  delete(path)
@@ -90,7 +90,7 @@ module AvaTax
90
90
  # Mark the existing account identified by this URL as deleted.
91
91
  # @param accountId [Integer] The ID of the account that owns this subscription.
92
92
  # @param id [Integer] The ID of the subscription you wish to delete.
93
- # @return [object[]]
93
+ # @return [ErrorDetail[]]
94
94
  def delete_subscription(accountId, id)
95
95
  path = "/api/v2/accounts/#{accountId}/subscriptions/#{id}"
96
96
  delete(path)
@@ -105,7 +105,7 @@ module AvaTax
105
105
  # Mark the user object identified by this URL as deleted.
106
106
  # @param id [Integer] The ID of the user you wish to delete.
107
107
  # @param accountId [Integer] The accountID of the user you wish to delete.
108
- # @return [object[]]
108
+ # @return [ErrorDetail[]]
109
109
  def delete_user(id, accountId)
110
110
  path = "/api/v2/accounts/#{accountId}/users/#{id}"
111
111
  delete(path)
@@ -126,7 +126,7 @@ module AvaTax
126
126
  # * Users
127
127
  #
128
128
  # For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ .
129
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
129
+ # @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.
130
130
  # @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/) .
131
131
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
132
132
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
@@ -0,0 +1,19 @@
1
+ module AvaTax
2
+ class Client
3
+ module Reports
4
+
5
+
6
+ # Export a report accurate to the line level
7
+ #
8
+ #
9
+ # @param companyId [Integer]
10
+ # @param model [Object]
11
+ # @return [Object]
12
+ def export_document_line(companyId, model)
13
+ path = "/api/v2/companies/#{companyId}/reports/exportdocumentline"
14
+ post(path, model)
15
+ end
16
+
17
+ end
18
+ end
19
+ end
@@ -13,8 +13,8 @@ module AvaTax
13
13
  # To ensure correct operation of other programs or connectors, please create a new GUID for your application and use that value for
14
14
  # the 'set' data field.
15
15
  # @param companyId [Integer] The ID of the company that owns this setting.
16
- # @param model [object[]] The setting you wish to create.
17
- # @return [object[]]
16
+ # @param model [SettingModel[]] The setting you wish to create.
17
+ # @return [SettingModel[]]
18
18
  def create_settings(companyId, model)
19
19
  path = "/api/v2/companies/#{companyId}/settings"
20
20
  post(path, model)
@@ -26,7 +26,7 @@ module AvaTax
26
26
  # Mark the setting object at this URL as deleted.
27
27
  # @param companyId [Integer] The ID of the company that owns this setting.
28
28
  # @param id [Integer] The ID of the setting you wish to delete.
29
- # @return [object[]]
29
+ # @return [ErrorDetail[]]
30
30
  def delete_setting(companyId, id)
31
31
  path = "/api/v2/companies/#{companyId}/settings/#{id}"
32
32
  delete(path)
@@ -65,7 +65,7 @@ module AvaTax
65
65
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
66
66
  # @param companyId [Integer] The ID of the company that owns these settings
67
67
  # @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/) .
68
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
68
+ # @param include [String] A comma separated list of additional data to retrieve.
69
69
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
70
70
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
71
71
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -89,7 +89,7 @@ module AvaTax
89
89
  # 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
90
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
91
91
  # @param filter [String] A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) .
92
- # @param include [String] A comma separated list of child objects to return underneath the primary object.
92
+ # @param include [String] A comma separated list of additional data to retrieve.
93
93
  # @param top [Integer] If nonzero, return no more than this number of results. Used with $skip to provide pagination for large datasets.
94
94
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with $top to provide pagination for large datasets.
95
95
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.