Skip to content

Commit 7f55f09

Browse files
Merge pull request #167 from avadev/24.8.2
Update for 24.8.2
2 parents 10b9395 + 8d23a32 commit 7f55f09

7 files changed

+150
-10
lines changed

lib/avatax/client/certificates.rb

+12-2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ def download_certificate_image(companyId, id, options={}) path = "/api/v2
110110
# * customers - Retrieves the list of customers linked to the certificate.
111111
# * po_numbers - Retrieves all PO numbers tied to the certificate.
112112
# * attributes - Retrieves all attributes applied to the certificate.
113+
# * histories - Retrieves the certificate update history
114+
# * jobs - Retrieves the jobs for this certificate
115+
# * logs - Retrieves the certificate log
116+
# * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid
117+
# * custom_fields - Retrieves custom fields set for this certificate
113118
#
114119
# Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
115120
# Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
@@ -123,7 +128,7 @@ def download_certificate_image(companyId, id, options={}) path = "/api/v2
123128
# Swagger Name: AvaTaxClient
124129
# @param companyId [Integer] The ID number of the company that recorded this certificate
125130
# @param id [Integer] The unique ID number of this certificate
126-
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
131+
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate
127132
# @return [Object]
128133
def get_certificate(companyId, id, options={}) path = "/api/v2/companies/#{companyId}/certificates/#{id}"
129134
get(path, options, AvaTax::VERSION) end
@@ -278,6 +283,11 @@ def list_customers_for_certificate(companyId, id, options={}) path = "/ap
278283
# * customers - Retrieves the list of customers linked to the certificate.
279284
# * po_numbers - Retrieves all PO numbers tied to the certificate.
280285
# * attributes - Retrieves all attributes applied to the certificate.
286+
# * histories - Retrieves the certificate update history
287+
# * jobs - Retrieves the jobs for this certificate
288+
# * logs - Retrieves the certificate log
289+
# * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid
290+
# * custom_fields - Retrieves custom fields set for this certificate
281291
#
282292
# Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
283293
# Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
@@ -290,7 +300,7 @@ def list_customers_for_certificate(companyId, id, options={}) path = "/ap
290300
# * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
291301
# Swagger Name: AvaTaxClient
292302
# @param companyId [Integer] The ID number of the company to search
293-
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
303+
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate
294304
# @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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages
295305
# @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.
296306
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module AvaTax
2+
class Client
3+
module CommunicationCertificates
4+
5+
6+
# Retrieve a single communication certificate.
7+
#
8+
# ### Security Policies
9+
#
10+
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
11+
# Swagger Name: AvaTaxClient
12+
# @param companyId [Integer] The ID number of the company to search
13+
# @param certificateId [Integer] The ID number of the certifificate to search
14+
# @return [Object]
15+
def get_communication_certificate(companyId, certificateId) path = "/companies/#{companyId}/communication-certificates/#{certificateId}"
16+
get(path, {}, AvaTax::VERSION) end
17+
18+
# Retrieve all communication certificates.
19+
#
20+
# List all account objects that can be seen by the current user.
21+
#
22+
# This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account.
23+
#
24+
# 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/) .
25+
# Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
26+
# For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ .
27+
#
28+
# ### Security Policies
29+
#
30+
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
31+
# Swagger Name: AvaTaxClient
32+
# @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:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions
33+
# @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.
34+
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
35+
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
36+
# @param companyId [Integer] The ID number of the company to search
37+
# @return [Object]
38+
def list_communication_certificates(companyId, options={}) path = "/companies/#{companyId}/communication-certificates"
39+
get(path, options, AvaTax::VERSION) end
40+
end
41+
end
42+
end

lib/avatax/client/contacts.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_contact(companyId, id) path = "/api/v2/companies/#{companyId}/con
6161
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
6262
# Swagger Name: AvaTaxClient
6363
# @param companyId [Integer] The ID of the company that owns these contacts
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/).
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:* scsContactId
6565
# @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.
6666
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
6767
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -82,7 +82,7 @@ def list_contacts_by_company(companyId, options={}) path = "/api/v2/compa
8282
#
8383
# * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
8484
# Swagger Name: AvaTaxClient
85-
# @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/).
85+
# @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:* scsContactId
8686
# @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.
8787
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
8888
# @param orderBy [String] A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.

lib/avatax/client/customers.rb

+20-5
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,16 @@ def delete_customer(companyId, customerCode) path = "/api/v2/companies/#{
7070
#
7171
# You can use the `$include` parameter to fetch the following additional objects for expansion:
7272
#
73-
# * Certificates - Fetch a list of certificates linked to this customer.
74-
# * CustomFields - Fetch a list of custom fields associated to this customer.
73+
# * certificates - Fetch a list of certificates linked to this customer.
7574
# * attributes - Retrieves all attributes applied to the customer.
75+
# * active_certificates - Retrieves all the active certificates linked to this customer
76+
# * histories - Retrieves the update history for this customer
77+
# * logs - Retrieves customer logs
78+
# * jobs - Retrieves customer jobs
79+
# * billTos - Retrieves bill-tos linked with this customer
80+
# * shipTos - Retrieves ship-tos linked with this customer
81+
# * shipToStates - Retrieves ship-to states for this customer
82+
# * custom_fields - Retrieves custom fields set for this customer
7683
#
7784
# Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
7885
# Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
@@ -227,7 +234,7 @@ def list_attributes_for_customer(companyId, customerCode) path = "/api/v2
227234
# Swagger Name: AvaTaxClient
228235
# @param companyId [Integer] The unique ID number of the company that recorded this customer
229236
# @param customerCode [String] The unique code representing this customer
230-
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate.
237+
# @param include [String] OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate
231238
# @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:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages
232239
# @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.
233240
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
@@ -279,8 +286,16 @@ def list_valid_certificates_for_customer(companyId, customerCode, country, regio
279286
#
280287
# You can use the `$include` parameter to fetch the following additional objects for expansion:
281288
#
282-
# * Certificates - Fetch a list of certificates linked to this customer.
289+
# * certificates - Fetch a list of certificates linked to this customer.
283290
# * attributes - Retrieves all attributes applied to the customer.
291+
# * active_certificates - Retrieves all the active certificates linked to this customer
292+
# * histories - Retrieves the update history for this customer
293+
# * logs - Retrieves customer logs
294+
# * jobs - Retrieves customer jobs
295+
# * billTos - Retrieves bill-tos linked with this customer
296+
# * shipTos - Retrieves ship-tos linked with this customer
297+
# * shipToStates - Retrieves ship-to states for this customer
298+
# * custom_fields - Retrieves custom fields set for this customer
284299
#
285300
# Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
286301
# Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
@@ -293,7 +308,7 @@ def list_valid_certificates_for_customer(companyId, customerCode, country, regio
293308
# * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
294309
# Swagger Name: AvaTaxClient
295310
# @param companyId [Integer] The unique ID number of the company that recorded this customer
296-
# @param include [String] OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
311+
# @param include [String] OPTIONAL - You can specify any of the values in `certificates`, `attributes`, `active_certificates`, `histories`, `logs`, `jobs`, `billTos`, `shipTos`, `shipToStates`, and `custom_fields` to fetch additional information for this certificate.
297312
# @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/).
298313
# @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.
299314
# @param skip [Integer] If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
module AvaTax
2+
class Client
3+
module EcmEventNotifications
4+
5+
6+
# Delete AFC event notifications.
7+
#
8+
# ### Security Policies
9+
#
10+
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
11+
# Swagger Name: AvaTaxClient
12+
# @param isDlq [Boolean] Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`.
13+
# @param model [Object] Details of the event you want to delete.
14+
# @return [FetchResult]
15+
def delete_afc_event_notifications(model, options={}) path = "/api/v2/event-notifications/afc"
16+
delete(path, model, options, AvaTax::VERSION) end
17+
18+
# Delete company event notifications
19+
#
20+
# ### Security Policies
21+
#
22+
# * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
23+
# Swagger Name: AvaTaxClient
24+
# @param companyId [Integer] The unique ID number of the company that recorded these event notifications.
25+
# @param model [Object] Details of the event you want to delete.
26+
# @return [FetchResult]
27+
def delete_event_notifications(companyId, model) path = "/api/v2/event-notifications/companies/#{companyId}"
28+
delete(path, model, {}, AvaTax::VERSION) end
29+
30+
# Retrieve company event notifications.
31+
#
32+
# ### Security Policies
33+
#
34+
# * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
35+
# Swagger Name: AvaTaxClient
36+
# @param companyId [Integer] The unique ID number of the company that recorded these event notifications.
37+
# @return [FetchResult]
38+
def get_event_notifications(companyId) path = "/api/v2/event-notifications/companies/#{companyId}"
39+
get(path, {}, AvaTax::VERSION) end
40+
41+
# Retrieve AFC event notifications
42+
#
43+
# ### Security Policies
44+
#
45+
# * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
46+
# Swagger Name: AvaTaxClient
47+
# @param isDlq [Boolean] Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`.
48+
# @return [FetchResult]
49+
def list_afc_event_notifications(options={}) path = "/api/v2/event-notifications/afc"
50+
get(path, options, AvaTax::VERSION) end
51+
end
52+
end
53+
end

0 commit comments

Comments
 (0)