avatax 20.5.0 → 20.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/avatax/client/accounts.rb +116 -83
  3. data/lib/avatax/client/addresses.rb +26 -20
  4. data/lib/avatax/client/advancedrules.rb +56 -41
  5. data/lib/avatax/client/avafileforms.rb +56 -41
  6. data/lib/avatax/client/batches.rb +125 -48
  7. data/lib/avatax/client/certexpressinvites.rb +36 -27
  8. data/lib/avatax/client/certificates.rb +156 -111
  9. data/lib/avatax/client/companies.rb +166 -118
  10. data/lib/avatax/client/compliance.rb +16 -13
  11. data/lib/avatax/client/contacts.rb +66 -48
  12. data/lib/avatax/client/customers.rb +136 -97
  13. data/lib/avatax/client/datasources.rb +66 -48
  14. data/lib/avatax/client/definitions.rb +596 -419
  15. data/lib/avatax/client/distancethresholds.rb +66 -48
  16. data/lib/avatax/client/filingcalendars.rb +16 -13
  17. data/lib/avatax/client/filings.rb +16 -13
  18. data/lib/avatax/client/firmclientlinkages.rb +96 -69
  19. data/lib/avatax/client/free.rb +36 -27
  20. data/lib/avatax/client/fundingrequests.rb +26 -20
  21. data/lib/avatax/client/items.rb +196 -139
  22. data/lib/avatax/client/jurisdictionoverrides.rb +66 -48
  23. data/lib/avatax/client/locations.rb +76 -55
  24. data/lib/avatax/client/multidocument.rb +106 -76
  25. data/lib/avatax/client/nexus.rb +82 -183
  26. data/lib/avatax/client/notifications.rb +36 -27
  27. data/lib/avatax/client/provisioning.rb +26 -20
  28. data/lib/avatax/client/registrar.rb +106 -76
  29. data/lib/avatax/client/reports.rb +46 -34
  30. data/lib/avatax/client/settings.rb +66 -48
  31. data/lib/avatax/client/subscriptions.rb +36 -27
  32. data/lib/avatax/client/taxcodes.rb +66 -48
  33. data/lib/avatax/client/taxcontent.rb +36 -27
  34. data/lib/avatax/client/taxrules.rb +66 -48
  35. data/lib/avatax/client/transactions.rb +216 -153
  36. data/lib/avatax/client/upcs.rb +66 -48
  37. data/lib/avatax/client/users.rb +86 -62
  38. data/lib/avatax/client/utilities.rb +36 -27
  39. data/lib/avatax/version.rb +1 -1
  40. metadata +2 -2
@@ -1,79 +1,94 @@
1
- module AvaTax
2
- class Client
3
- module AvaFileForms
4
-
5
-
6
- # Create a new AvaFileForm
7
- #
1
+ module AvaTax
2
+ class Client
3
+ module AvaFileForms
4
+
5
+
6
+ # Create a new AvaFileForm
7
+ #
8
8
  # Create one or more AvaFileForms
9
9
  # A 'AvaFileForm' represents a form supported by our returns team
10
10
  #
11
11
  # ### Security Policies
12
12
  #
13
13
  # * This API requires the user role Compliance Root User.
14
- # * 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.
14
+ # * 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.
15
15
  # @param model [AvaFileFormModel[]] The AvaFileForm you wish to create.
16
- # @return [AvaFileFormModel[]]
17
- def create_ava_file_forms(model) path = "/api/v2/avafileforms"
18
- post(path, model) end
19
-
20
- # Delete a single AvaFileForm
21
- #
16
+ # @return [AvaFileFormModel[]]
17
+ def create_ava_file_forms(model)
18
+ path = "/api/v2/avafileforms"
19
+ post(path, model)
20
+ end
21
+
22
+
23
+ # Delete a single AvaFileForm
24
+ #
22
25
  # Marks the existing AvaFileForm object at this URL as deleted.
23
26
  #
24
27
  # ### Security Policies
25
28
  #
26
29
  # * This API requires one of the following user roles: Compliance Root User, ComplianceUser, FirmAdmin.
27
- # * 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.
30
+ # * 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.
28
31
  # @param id [Integer] The ID of the AvaFileForm you wish to delete.
29
- # @return [ErrorDetail[]]
30
- def delete_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
31
- delete(path) end
32
-
33
- # Retrieve a single AvaFileForm
34
- #
32
+ # @return [ErrorDetail[]]
33
+ def delete_ava_file_form(id)
34
+ path = "/api/v2/avafileforms/#{id}"
35
+ delete(path)
36
+ end
37
+
38
+
39
+ # Retrieve a single AvaFileForm
40
+ #
35
41
  # Get the AvaFileForm object identified by this URL.
36
42
  #
37
43
  # ### Security Policies
38
44
  #
39
45
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
40
- # * 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.
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.
41
47
  # @param id [Integer] The primary key of this AvaFileForm
42
- # @return [Object]
43
- def get_ava_file_form(id) path = "/api/v2/avafileforms/#{id}"
44
- get(path) end
45
-
46
- # Retrieve all AvaFileForms
47
- #
48
+ # @return [Object]
49
+ def get_ava_file_form(id)
50
+ path = "/api/v2/avafileforms/#{id}"
51
+ get(path)
52
+ end
53
+
54
+
55
+ # Retrieve all AvaFileForms
56
+ #
48
57
  # 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/) .
49
58
  # Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
50
59
  #
51
60
  # ### Security Policies
52
61
  #
53
62
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CompanyUser, Compliance Root User, Compliance Temp User, ComplianceAdmin, ComplianceUser, FirmAdmin, FirmUser, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin.
54
- # * 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.
63
+ # * 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.
55
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/).<br />*Not filterable:* outletTypeId
56
65
  # @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
57
66
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
58
67
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
59
- # @return [FetchResult]
60
- def query_ava_file_forms(options={}) path = "/api/v2/avafileforms"
61
- get(path, options) end
62
-
63
- # Update a AvaFileForm
64
- #
68
+ # @return [FetchResult]
69
+ def query_ava_file_forms(options={})
70
+ path = "/api/v2/avafileforms"
71
+ get(path, options)
72
+ end
73
+
74
+
75
+ # Update a AvaFileForm
76
+ #
65
77
  # All data from the existing object will be replaced with data in the object you PUT.
66
78
  # 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.
67
79
  #
68
80
  # ### Security Policies
69
81
  #
70
82
  # * This API requires the user role Compliance Root User.
71
- # * 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.
83
+ # * 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.
72
84
  # @param id [Integer] The ID of the AvaFileForm you wish to update
73
85
  # @param model [Object] The AvaFileForm model you wish to update.
74
- # @return [Object]
75
- def update_ava_file_form(id, model) path = "/api/v2/avafileforms/#{id}"
76
- put(path, model) end
77
- end
78
- end
86
+ # @return [Object]
87
+ def update_ava_file_form(id, model)
88
+ path = "/api/v2/avafileforms/#{id}"
89
+ put(path, model)
90
+ end
91
+
92
+ end
93
+ end
79
94
  end
@@ -1,10 +1,37 @@
1
- module AvaTax
2
- class Client
3
- module Batches
4
-
5
-
6
- # Create a new batch
7
- #
1
+ module AvaTax
2
+ class Client
3
+ module Batches
4
+
5
+
6
+ # Cancel an in progress batch
7
+ #
8
+ # Marks the in progress batch identified by this URL as cancelled.
9
+ #
10
+ # Only JSON batches can be cancelled. If you attempt to cancel a file batch, you will receive an error message.
11
+ #
12
+ # Only in progress batches can be cancelled. If you attempt to cancel a batch that its status is not Waiting or Processing, you will receive an error message.
13
+ # Cancelling an in progress batch does not delete any transactions that were created before the cancellation.
14
+ #
15
+ # Because the batch system processes with a degree of concurrency, and
16
+ # because of batch sizes in the queue vary, AvaTax API is unable to accurately
17
+ # predict when a batch will complete. If high performance processing is
18
+ # required, please use the
19
+ # [CreateTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/).
20
+ #
21
+ # ### Security Policies
22
+ #
23
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
24
+ # @param companyId [Integer] The ID of the company that owns this batch.
25
+ # @param id [Integer] The ID of the batch to cancel.
26
+ # @return [Object]
27
+ def cancel_batch(companyId, id)
28
+ path = "/api/v2/companies/#{companyId}/batches/#{id}/cancel"
29
+ post(path)
30
+ end
31
+
32
+
33
+ # Create a new batch
34
+ #
8
35
  # Create one or more new batch objects attached to this company.
9
36
  #
10
37
  # Each batch object may have one or more file objects (currently only one file is supported).
@@ -27,15 +54,50 @@ module AvaTax
27
54
  #
28
55
  # ### Security Policies
29
56
  #
30
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
57
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
31
58
  # @param companyId [Integer] The ID of the company that owns this batch.
32
59
  # @param model [BatchModel[]] The batch you wish to create.
33
- # @return [BatchModel[]]
34
- def create_batches(companyId, model) path = "/api/v2/companies/#{companyId}/batches"
35
- post(path, model) end
36
-
37
- # Delete a single batch
38
- #
60
+ # @return [BatchModel[]]
61
+ def create_batches(companyId, model)
62
+ path = "/api/v2/companies/#{companyId}/batches"
63
+ post(path, model)
64
+ end
65
+
66
+
67
+ # Create a new transaction batch
68
+ #
69
+ # Create a new transaction batch objects attached to this company.
70
+ #
71
+ # When a transaction batch is created, it is added to the AvaTax Batch v2 Queue and will be
72
+ # processed as quickly as possible in the order it was received. To check the
73
+ # status of a batch, fetch the batch and retrieve the results of the batch
74
+ # operation.
75
+ #
76
+ # Because the batch system processes with a degree of concurrency, and
77
+ # because of batch sizes in the queue vary, AvaTax API is unable to accurately
78
+ # predict when a batch will complete. If high performance processing is
79
+ # required, please use the
80
+ # [CreateTransaction API](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/).
81
+ #
82
+ # The maximum content length of the request body is limited to 28.6 MB. If this limit
83
+ # is exceeded, a 404 Not Found status will be returned (possibly with a CORS error if
84
+ # the API is called from a browser). In this situation, please split the request into
85
+ # smaller batches.
86
+ #
87
+ # ### Security Policies
88
+ #
89
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
90
+ # @param companyId [Integer] The ID of the company that owns this batch.
91
+ # @param model [Object] The transaction batch you wish to create.
92
+ # @return [Object]
93
+ def create_transaction_batch(companyId, model)
94
+ path = "/api/v2/companies/#{companyId}/batches/transactions"
95
+ post(path, model)
96
+ end
97
+
98
+
99
+ # Delete a single batch
100
+ #
39
101
  # Marks the batch identified by this URL as deleted.
40
102
  #
41
103
  # If you attempt to delete a batch that is being processed, you will receive an error message.
@@ -49,29 +111,35 @@ module AvaTax
49
111
  #
50
112
  # ### Security Policies
51
113
  #
52
- # * This API requires one of the following user roles: CSPAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
114
+ # * This API requires one of the following user roles: CSPAdmin, CSPTester, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin.
53
115
  # @param companyId [Integer] The ID of the company that owns this batch.
54
116
  # @param id [Integer] The ID of the batch to delete.
55
- # @return [ErrorDetail[]]
56
- def delete_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
57
- delete(path) end
58
-
59
- # Download a single batch file
60
- #
117
+ # @return [ErrorDetail[]]
118
+ def delete_batch(companyId, id)
119
+ path = "/api/v2/companies/#{companyId}/batches/#{id}"
120
+ delete(path)
121
+ end
122
+
123
+
124
+ # Download a single batch file
125
+ #
61
126
  # Download a single batch file identified by this URL.
62
127
  #
63
128
  # ### Security Policies
64
129
  #
65
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
130
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
66
131
  # @param companyId [Integer] The ID of the company that owns this batch
67
132
  # @param batchId [Integer] The ID of the batch object
68
133
  # @param id [Integer] The primary key of this batch file object
69
- # @return [Object]
70
- def download_batch(companyId, batchId, id) path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
71
- get(path) end
72
-
73
- # Retrieve a single batch
74
- #
134
+ # @return [Object]
135
+ def download_batch(companyId, batchId, id)
136
+ path = "/api/v2/companies/#{companyId}/batches/#{batchId}/files/#{id}/attachment"
137
+ get(path)
138
+ end
139
+
140
+
141
+ # Retrieve a single batch
142
+ #
75
143
  # Get the batch object identified by this URL. A batch object is a large
76
144
  # collection of API calls stored in a compact file.
77
145
  #
@@ -90,15 +158,18 @@ module AvaTax
90
158
  #
91
159
  # ### Security Policies
92
160
  #
93
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
161
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
94
162
  # @param companyId [Integer] The ID of the company that owns this batch
95
163
  # @param id [Integer] The primary key of this batch
96
- # @return [Object]
97
- def get_batch(companyId, id) path = "/api/v2/companies/#{companyId}/batches/#{id}"
98
- get(path) end
99
-
100
- # Retrieve all batches for this company
101
- #
164
+ # @return [Object]
165
+ def get_batch(companyId, id)
166
+ path = "/api/v2/companies/#{companyId}/batches/#{id}"
167
+ get(path)
168
+ end
169
+
170
+
171
+ # Retrieve all batches for this company
172
+ #
102
173
  # List all batch objects attached to the specified company.
103
174
  #
104
175
  # A batch object is a large collection of API calls stored in a compact file.
@@ -123,19 +194,22 @@ module AvaTax
123
194
  #
124
195
  # ### Security Policies
125
196
  #
126
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
197
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
127
198
  # @param companyId [Integer] The ID of the company that owns these batches
128
199
  # @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:* files
129
200
  # @param include [String] A comma separated list of additional data to retrieve.
130
201
  # @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
131
202
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
132
203
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
133
- # @return [FetchResult]
134
- def list_batches_by_company(companyId, options={}) path = "/api/v2/companies/#{companyId}/batches"
135
- get(path, options) end
136
-
137
- # Retrieve all batches
138
- #
204
+ # @return [FetchResult]
205
+ def list_batches_by_company(companyId, options={})
206
+ path = "/api/v2/companies/#{companyId}/batches"
207
+ get(path, options)
208
+ end
209
+
210
+
211
+ # Retrieve all batches
212
+ #
139
213
  # Get multiple batch objects across all companies.
140
214
  #
141
215
  # A batch object is a large collection of API calls stored in a compact file.
@@ -157,15 +231,18 @@ module AvaTax
157
231
  #
158
232
  # ### Security Policies
159
233
  #
160
- # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
234
+ # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, SystemOperator, TechnicalSupportAdmin, TechnicalSupportUser.
161
235
  # @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:* files
162
236
  # @param include [String] A comma separated list of additional data to retrieve.
163
237
  # @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
164
238
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
165
239
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
166
- # @return [FetchResult]
167
- def query_batches(options={}) path = "/api/v2/batches"
168
- get(path, options) end
169
- end
170
- end
240
+ # @return [FetchResult]
241
+ def query_batches(options={})
242
+ path = "/api/v2/batches"
243
+ get(path, options)
244
+ end
245
+
246
+ end
247
+ end
171
248
  end
@@ -1,10 +1,10 @@
1
- module AvaTax
2
- class Client
3
- module CertExpressInvites
4
-
5
-
6
- # Create a CertExpress invitation
7
- #
1
+ module AvaTax
2
+ class Client
3
+ module CertExpressInvites
4
+
5
+
6
+ # Create a CertExpress invitation
7
+ #
8
8
  # Creates an invitation for a customer to self-report certificates using the CertExpress website.
9
9
  #
10
10
  # This invitation is delivered by your choice of method, or you can present a hyperlink to the user
@@ -24,16 +24,19 @@ module AvaTax
24
24
  # ### Security Policies
25
25
  #
26
26
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin.
27
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
27
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
28
28
  # @param companyId [Integer] The unique ID number of the company that will record certificates
29
29
  # @param customerCode [String] The number of the customer where the request is sent to
30
30
  # @param model [CreateCertExpressInvitationModel[]] the requests to send out to customers
31
- # @return [CertExpressInvitationStatusModel[]]
32
- def create_cert_express_invitation(companyId, customerCode, model) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
33
- post(path, model) end
34
-
35
- # Retrieve a single CertExpress invitation
36
- #
31
+ # @return [CertExpressInvitationStatusModel[]]
32
+ def create_cert_express_invitation(companyId, customerCode, model)
33
+ path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites"
34
+ post(path, model)
35
+ end
36
+
37
+
38
+ # Retrieve a single CertExpress invitation
39
+ #
37
40
  # Retrieve an existing CertExpress invitation sent to a customer.
38
41
  #
39
42
  # A CertExpression invitation allows a customer to follow a helpful step-by-step guide to provide information
@@ -53,17 +56,20 @@ module AvaTax
53
56
  # ### Security Policies
54
57
  #
55
58
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
56
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
59
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
57
60
  # @param companyId [Integer] The unique ID number of the company that issued this invitation
58
61
  # @param customerCode [String] The number of the customer where the request is sent to
59
62
  # @param id [Integer] The unique ID number of this CertExpress invitation
60
63
  # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
61
- # @return [Object]
62
- def get_cert_express_invitation(companyId, customerCode, id, options={}) path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
63
- get(path, options) end
64
-
65
- # List CertExpress invitations
66
- #
64
+ # @return [Object]
65
+ def get_cert_express_invitation(companyId, customerCode, id, options={})
66
+ path = "/api/v2/companies/#{companyId}/customers/#{customerCode}/certexpressinvites/#{id}"
67
+ get(path, options)
68
+ end
69
+
70
+
71
+ # List CertExpress invitations
72
+ #
67
73
  # Retrieve CertExpress invitations sent by this company.
68
74
  #
69
75
  # A CertExpression invitation allows a customer to follow a helpful step-by-step guide to provide information
@@ -83,16 +89,19 @@ module AvaTax
83
89
  # ### Security Policies
84
90
  #
85
91
  # * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
86
- # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
92
+ # * This API depends on the following active services<br />*Required* (all): AvaTaxPro.
87
93
  # @param companyId [Integer] The unique ID number of the company that issued this invitation
88
94
  # @param include [String] OPTIONAL: A comma separated list of special fetch options. No options are defined at this time.
89
95
  # @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:* companyId, customer, coverLetter, exposureZones, exemptReasons, requestLink
90
96
  # @param top [Integer] If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
91
97
  # @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
92
98
  # @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
93
- # @return [FetchResult]
94
- def list_cert_express_invitations(companyId, options={}) path = "/api/v2/companies/#{companyId}/certexpressinvites"
95
- get(path, options) end
96
- end
97
- end
99
+ # @return [FetchResult]
100
+ def list_cert_express_invitations(companyId, options={})
101
+ path = "/api/v2/companies/#{companyId}/certexpressinvites"
102
+ get(path, options)
103
+ end
104
+
105
+ end
106
+ end
98
107
  end