diff --git a/GlobalAssemblyInfo.cs b/GlobalAssemblyInfo.cs index d3e670a..b439fed 100644 --- a/GlobalAssemblyInfo.cs +++ b/GlobalAssemblyInfo.cs @@ -30,5 +30,5 @@ // Revision // -[assembly: AssemblyVersion("24.8.0")] -[assembly: AssemblyFileVersion("24.8.0")] +[assembly: AssemblyVersion("24.8.2")] +[assembly: AssemblyFileVersion("24.8.2")] diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index 8aae4df..22ea183 100644 --- a/src/AvaTaxApi.cs +++ b/src/AvaTaxApi.cs @@ -17,7 +17,7 @@ * @author Sachin Baijal * @copyright 2004-2023 Avalara, Inc. * @license https://www.apache.org/licenses/LICENSE-2.0 - * @version 24.8.0 + * @version 24.8.2 * @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK */ @@ -28,7 +28,7 @@ public partial class AvaTaxClient : IAvaTaxClient /// /// Returns the version number of the API used to generate this class /// - public static string API_VERSION { get { return "24.8.0"; } } + public static string API_VERSION { get { return "24.8.2"; } } #region Methods @@ -1256,6 +1256,11 @@ public FileResult DownloadCertificateImage(Int32 companyId, Int32 id, Int32? pag /// * 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 /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -1274,7 +1279,12 @@ public FileResult DownloadCertificateImage(Int32 companyId, Int32 id, Int32? pag /// /// * 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. + /// * 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 public CertificateModel GetCertificate(Int32 companyId, Int32 id, String include) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); @@ -1484,7 +1494,12 @@ public FetchResult ListCustomersForCertificate(Int32 companyId, I /// * 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 + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -1501,7 +1516,12 @@ public FetchResult ListCustomersForCertificate(Int32 companyId, I /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -1701,6 +1721,62 @@ public String UploadCertificateImage(Int32 companyId, Int32 id, FileResult file) } + /// + /// Retrieve a single communication certificate. + /// + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + /// + /// Swagger Name: AvaTaxClient + /// The ID number of the company to search + /// The ID number of the certifificate to search + public CommunicationCertificateResponse GetCommunicationCertificate(Int32 companyId, Int32 certificateId) + { + var path = new AvaTaxPath("/companies/{companyId}/communication-certificates/{certificateId}"); + path.ApplyField("companyId", companyId); + path.ApplyField("certificateId", certificateId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall("GET", path, null); + } + + + /// + /// Retrieve all communication certificates. + /// + /// + /// List all account objects that can be seen by the current user. + /// + /// This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + /// + /// 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/) . + /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. + /// For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + /// + /// Swagger Name: AvaTaxClient + /// 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/).
*Not filterable:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + /// 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. + /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. + /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + /// The ID number of the company to search + public CommunicationCertificateResponsePage ListCommunicationCertificates(String filter, Int32? top, Int32? skip, String orderBy, Int32 companyId) + { + var path = new AvaTaxPath("/companies/{companyId}/communication-certificates"); + path.AddQuery("$filter", filter); + path.AddQuery("$top", top); + path.AddQuery("$skip", skip); + path.AddQuery("$orderBy", orderBy); + path.ApplyField("companyId", companyId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall("GET", path, null); + } + + /// /// Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements. /// @@ -2630,7 +2706,7 @@ public ContactModel GetContact(Int32 companyId, Int32 id) /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns these contacts - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2663,7 +2739,7 @@ public FetchResult ListContactsByCompany(Int32 companyId, String f /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. /// /// Swagger Name: AvaTaxClient - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2941,9 +3017,16 @@ public void DeleteCustomer(Int32 companyId, String customerCode) /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. - /// * CustomFields - Fetch a list of custom fields associated to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -3149,7 +3232,12 @@ public FetchResult ListAttributesForCustomer(Int32 compa /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -3225,9 +3313,17 @@ public ExemptionStatusModel ListValidCertificatesForCustomer(Int32 companyId, St /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. - /// + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -3240,7 +3336,7 @@ public ExemptionStatusModel ListValidCertificatesForCustomer(Int32 companyId, St /// /// Swagger Name: AvaTaxClient /// The unique ID number of the company that recorded this customer - /// OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + /// 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. /// 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/). /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -7121,7 +7217,7 @@ public FetchResult ListItemsByCompany(Int32 companyId, String filter, /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - public FetchResult ListRecommendedParameterByCompanyIdAndItemId(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy) + public FetchResult ListRecommendedParameterByCompanyIdAndItemId(Int32 companyId, Int64 itemId, String filter, Int32? top, Int32? skip, String orderBy) { var path = new AvaTaxPath("/api/v2/definitions/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); @@ -14050,6 +14146,11 @@ public async Task DownloadCertificateImageAsync(Int32 companyId, Int /// * 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 /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -14068,7 +14169,12 @@ public async Task DownloadCertificateImageAsync(Int32 companyId, Int /// /// * 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. + /// * 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 public async Task GetCertificateAsync(Int32 companyId, Int32 id, String include) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); @@ -14284,7 +14390,12 @@ public async Task> ListCustomersForCertificateAsync(I /// * 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 + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -14301,7 +14412,12 @@ public async Task> ListCustomersForCertificateAsync(I /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -14506,6 +14622,64 @@ public async Task UploadCertificateImageAsync(Int32 companyId, Int32 id, } + /// Swagger Name: AvaTaxClient + /// + /// Retrieve a single communication certificate.; + /// + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.; + /// + + /// The ID number of the company to search + /// The ID number of the certifificate to search + public async Task GetCommunicationCertificateAsync(Int32 companyId, Int32 certificateId) + { + var path = new AvaTaxPath("/companies/{companyId}/communication-certificates/{certificateId}"); + path.ApplyField("companyId", companyId); + path.ApplyField("certificateId", certificateId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync("GET", path, null).ConfigureAwait(false); + } + + + /// Swagger Name: AvaTaxClient + /// + /// Retrieve all communication certificates.; + /// + /// + /// List all account objects that can be seen by the current user. + /// + /// This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + /// + /// 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/) . + /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. + /// For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.; + /// + + /// 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/).
*Not filterable:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + /// 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. + /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. + /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + /// The ID number of the company to search + public async Task ListCommunicationCertificatesAsync(String filter, Int32? top, Int32? skip, String orderBy, Int32 companyId) + { + var path = new AvaTaxPath("/companies/{companyId}/communication-certificates"); + path.AddQuery("$filter", filter); + path.AddQuery("$top", top); + path.AddQuery("$skip", skip); + path.AddQuery("$orderBy", orderBy); + path.ApplyField("companyId", companyId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// /// Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements.; @@ -15466,7 +15640,7 @@ public async Task GetContactAsync(Int32 companyId, Int32 id) /// /// The ID of the company that owns these contacts - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -15500,7 +15674,7 @@ public async Task> ListContactsByCompanyAsync(Int32 co /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.; /// - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -15789,9 +15963,16 @@ public async Task DeleteCustomerAsync(Int32 companyId, String customerCode) /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. - /// * CustomFields - Fetch a list of custom fields associated to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -16002,7 +16183,12 @@ public async Task> ListAttributesForCustomer /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -16080,9 +16266,17 @@ public async Task ListValidCertificatesForCustomerAsync(In /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. - /// + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -16095,7 +16289,7 @@ public async Task ListValidCertificatesForCustomerAsync(In /// /// The unique ID number of the company that recorded this customer - /// OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + /// 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. /// 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/). /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -20117,7 +20311,7 @@ public async Task> ListItemsByCompanyAsync(Int32 companyI /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - public async Task> ListRecommendedParameterByCompanyIdAndItemIdAsync(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy) + public async Task> ListRecommendedParameterByCompanyIdAndItemIdAsync(Int32 companyId, Int64 itemId, String filter, Int32? top, Int32? skip, String orderBy) { var path = new AvaTaxPath("/api/v2/definitions/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); diff --git a/src/Avalara.AvaTax.RestClient.nuspec b/src/Avalara.AvaTax.RestClient.nuspec index 22de670..f905c1a 100644 --- a/src/Avalara.AvaTax.RestClient.nuspec +++ b/src/Avalara.AvaTax.RestClient.nuspec @@ -3,7 +3,7 @@ Avalara.AvaTax - 24.8.0 + 24.8.2 Avalara AvaTax SDK Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services. diff --git a/src/IAvaTaxClient.cs b/src/IAvaTaxClient.cs index 79dc350..00454cc 100644 --- a/src/IAvaTaxClient.cs +++ b/src/IAvaTaxClient.cs @@ -984,6 +984,11 @@ public interface IAvaTaxClient /// * 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 /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -1002,7 +1007,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 CertificateModel GetCertificate(Int32 companyId, Int32 id, String include); /// @@ -1163,7 +1173,12 @@ public interface IAvaTaxClient /// * 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 + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -1180,7 +1195,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -1329,6 +1349,43 @@ public interface IAvaTaxClient /// The exemption certificate file you wanted to upload. Accepted formats are: PDF, JPEG, TIFF, PNG. String UploadCertificateImage(Int32 companyId, Int32 id, FileResult file); + /// + /// Retrieve a single communication certificate. + /// + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + /// + /// Swagger Name: AvaTaxClient + /// The ID number of the company to search + /// The ID number of the certifificate to search + CommunicationCertificateResponse GetCommunicationCertificate(Int32 companyId, Int32 certificateId); + + /// + /// Retrieve all communication certificates. + /// + /// + /// List all account objects that can be seen by the current user. + /// + /// This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + /// + /// 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/) . + /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. + /// For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms. + /// + /// Swagger Name: AvaTaxClient + /// 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/).
*Not filterable:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + /// 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. + /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. + /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + /// The ID number of the company to search + CommunicationCertificateResponsePage ListCommunicationCertificates(String filter, Int32? top, Int32? skip, String orderBy, Int32 companyId); + /// /// Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements. /// @@ -2004,7 +2061,7 @@ public interface IAvaTaxClient /// /// Swagger Name: AvaTaxClient /// The ID of the company that owns these contacts - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2026,7 +2083,7 @@ public interface IAvaTaxClient /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. /// /// Swagger Name: AvaTaxClient - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -2210,9 +2267,16 @@ public interface IAvaTaxClient /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. - /// * CustomFields - Fetch a list of custom fields associated to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -2377,7 +2441,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -2430,9 +2499,17 @@ public interface IAvaTaxClient /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. - /// + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -2445,7 +2522,7 @@ public interface IAvaTaxClient /// /// Swagger Name: AvaTaxClient /// The unique ID number of the company that recorded this customer - /// OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + /// 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. /// 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/). /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -4982,7 +5059,7 @@ public interface IAvaTaxClient /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - FetchResult ListRecommendedParameterByCompanyIdAndItemId(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy); + FetchResult ListRecommendedParameterByCompanyIdAndItemId(Int32 companyId, Int64 itemId, String filter, Int32? top, Int32? skip, String orderBy); /// /// Retrieve all items @@ -10188,6 +10265,11 @@ public interface IAvaTaxClient /// * 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 /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -10206,7 +10288,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 Task GetCertificateAsync(Int32 companyId, Int32 id, String include); /// Swagger Name: AvaTaxClient @@ -10373,7 +10460,12 @@ public interface IAvaTaxClient /// * 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 + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -10390,7 +10482,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -10544,6 +10641,45 @@ public interface IAvaTaxClient /// The exemption certificate file you wanted to upload. Accepted formats are: PDF, JPEG, TIFF, PNG. Task UploadCertificateImageAsync(Int32 companyId, Int32 id, FileResult file); + /// Swagger Name: AvaTaxClient + /// + /// Retrieve a single communication certificate.; + /// + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.; + /// + + /// The ID number of the company to search + /// The ID number of the certifificate to search + Task GetCommunicationCertificateAsync(Int32 companyId, Int32 certificateId); + + /// Swagger Name: AvaTaxClient + /// + /// Retrieve all communication certificates.; + /// + /// + /// List all account objects that can be seen by the current user. + /// + /// This API lists all accounts you are allowed to see. In general, most users will only be able to see their own account. + /// + /// 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/) . + /// Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. + /// For more information about filtering in REST, please see the documentation at http://developer.avalara.com/avatax/filtering-in-rest/ . + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.; + /// + + /// 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/).
*Not filterable:* EffectiveDate, ExpirationDate, TaxNumber, Exemptions + /// 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. + /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. + /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. + /// The ID number of the company to search + Task ListCommunicationCertificatesAsync(String filter, Int32? top, Int32? skip, String orderBy, Int32 companyId); + /// Swagger Name: AvaTaxClient /// /// Checks whether the integration being used to set up this company and run transactions onto this company is compliant to all requirements.; @@ -11250,7 +11386,7 @@ public interface IAvaTaxClient /// /// The ID of the company that owns these contacts - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -11273,7 +11409,7 @@ public interface IAvaTaxClient /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.; /// - /// 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/). + /// 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/).
*Not filterable:* scsContactId /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -11468,9 +11604,16 @@ public interface IAvaTaxClient /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. - /// * CustomFields - Fetch a list of custom fields associated to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption @@ -11640,7 +11783,12 @@ public interface IAvaTaxClient /// /// * 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. + /// * 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 /// 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/).
*Not filterable:* exemptionNumber, status, ecmStatus, ecmsId, ecmsStatus, pdf, pages /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -11695,9 +11843,17 @@ public interface IAvaTaxClient /// /// You can use the `$include` parameter to fetch the following additional objects for expansion: /// - /// * Certificates - Fetch a list of certificates linked to this customer. + /// * certificates - Fetch a list of certificates linked to this customer. /// * attributes - Retrieves all attributes applied to the customer. - /// + /// * active_certificates - Retrieves all the active certificates linked to this customer + /// * histories - Retrieves the update history for this customer + /// * logs - Retrieves customer logs + /// * jobs - Retrieves customer jobs + /// * billTos - Retrieves bill-tos linked with this customer + /// * shipTos - Retrieves ship-tos linked with this customer + /// * shipToStates - Retrieves ship-to states for this customer + /// * custom_fields - Retrieves custom fields set for this customer + /// /// Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. /// Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption /// certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption @@ -11710,7 +11866,7 @@ public interface IAvaTaxClient /// /// The unique ID number of the company that recorded this customer - /// OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer. + /// 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. /// 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/). /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -14388,7 +14544,7 @@ public interface IAvaTaxClient /// 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. /// If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. - Task> ListRecommendedParameterByCompanyIdAndItemIdAsync(Int32 companyId, Int32 itemId, String filter, Int32? top, Int32? skip, String orderBy); + Task> ListRecommendedParameterByCompanyIdAndItemIdAsync(Int32 companyId, Int64 itemId, String filter, Int32? top, Int32? skip, String orderBy); /// Swagger Name: AvaTaxClient /// diff --git a/src/enums/APStatus.cs b/src/enums/APStatus.cs index 7db2f08..469e14f 100644 --- a/src/enums/APStatus.cs +++ b/src/enums/APStatus.cs @@ -30,17 +30,17 @@ public enum APStatus /// /// /// - ShortPayItemsAccrueMatch = 1, + AccruedShortPayItemsMatch = 1, /// /// /// - MarkForReviewMatch = 2, + NeedReviewMatch = 2, /// /// /// - RejectMatch = 3, + NoAccrualRejectMatch = 3, /// /// @@ -55,7 +55,7 @@ public enum APStatus /// /// /// - ShortPayItemsAccrueUndercharge = 6, + AccruedShortPayItemsUndercharge = 6, /// /// @@ -65,7 +65,7 @@ public enum APStatus /// /// /// - RejectUndercharge = 8, + NoAccrualRejectUndercharge = 8, /// /// @@ -75,22 +75,22 @@ public enum APStatus /// /// /// - ShortPayAvalaraCalculated = 10, + NoAccrualShortPayAvalaraCalculated = 10, /// /// /// - ShortPayItemsAccrueOvercharge = 11, + AccruedShortPayItemsOvercharge = 11, /// /// /// - MarkForReviewOvercharge = 12, + NeedReviewOvercharge = 12, /// /// /// - RejectOvercharge = 13, + NoAccrualRejectOvercharge = 13, /// /// @@ -142,5 +142,65 @@ public enum APStatus /// PendingAccrualUndercharge = 23, + /// + /// + /// + PendingShortPayItemsUndercharge = 24, + + /// + /// + /// + PendingShortPayItemsMatch = 25, + + /// + /// + /// + PendingShortPayItemsOvercharge = 26, + + /// + /// + /// + ShortPayItemsAccrueMatch = -1, + + /// + /// + /// + MarkForReviewMatch = -1, + + /// + /// + /// + RejectMatch = -1, + + /// + /// + /// + ShortPayItemsAccrueUndercharge = -1, + + /// + /// + /// + RejectUndercharge = -1, + + /// + /// + /// + ShortPayAvalaraCalculated = -1, + + /// + /// + /// + ShortPayItemsAccrueOvercharge = -1, + + /// + /// + /// + MarkForReviewOvercharge = -1, + + /// + /// + /// + RejectOvercharge = -1, + } } diff --git a/src/enums/ErrorCodeId.cs b/src/enums/ErrorCodeId.cs index 73b68b7..ab5b6fa 100644 --- a/src/enums/ErrorCodeId.cs +++ b/src/enums/ErrorCodeId.cs @@ -1882,6 +1882,16 @@ public enum ErrorCodeId /// InvalidTaxCodeIdInRecommendationStatusUpdate = 2815, + /// + /// ECM communication certificates error + /// + CommunicationCertificatesError = 2816, + + /// + /// Invalid currency and aggrement type combination + /// + InvalidCurrencyAggrementType = 2817, + /// /// Occurs when a Header value is incorrect or invalid in some way /// diff --git a/src/models/ActiveCertificateModel.cs b/src/models/ActiveCertificateModel.cs index 624bc5f..1bafb37 100644 --- a/src/models/ActiveCertificateModel.cs +++ b/src/models/ActiveCertificateModel.cs @@ -18,32 +18,32 @@ namespace Avalara.AvaTax.RestClient { /// - /// Certificate with exemption reason and exposure zone. Exposed in url $includes + /// Certificate with exemption reason and exposure zone. This is exposed in the URL's `$includes`. /// public class ActiveCertificateModel { /// - /// Certificate ID. + /// The unique ID number of this certificate. /// public Int64? id { get; set; } /// - /// Created date time + /// The date/time when this certificate was created. /// public DateTime? created { get; set; } /// - /// Modified date time + /// The date/time when this certificate was last modified. /// public DateTime? modified { get; set; } /// - /// Certificate's expected tax number + /// The expected tax number for this certificate. /// public String expectedTaxNumber { get; set; } /// - /// Certificate's actual tax number + /// The actual tax number for this certificate. /// public String actualTaxNumber { get; set; } diff --git a/src/models/CertificateInvalidReasonModel.cs b/src/models/CertificateInvalidReasonModel.cs index be397f3..a38d850 100644 --- a/src/models/CertificateInvalidReasonModel.cs +++ b/src/models/CertificateInvalidReasonModel.cs @@ -18,27 +18,27 @@ namespace Avalara.AvaTax.RestClient { /// - /// Invalid reason for the certificate + /// The reason the certificate is invalid. /// public class CertificateInvalidReasonModel { /// - /// + /// The unique ID of this invalid reason. /// public Int32? id { get; set; } /// - /// + /// The name of this certificate invalid reason. /// public String name { get; set; } /// - /// + /// A description of the certificate invalid reason. /// public String description { get; set; } /// - /// + /// This value is `true` if the invalid reason is a system code. /// public Boolean? systemCode { get; set; } diff --git a/src/models/CertificateLogModel.cs b/src/models/CertificateLogModel.cs index 19831f1..41289d4 100644 --- a/src/models/CertificateLogModel.cs +++ b/src/models/CertificateLogModel.cs @@ -18,32 +18,32 @@ namespace Avalara.AvaTax.RestClient { /// - /// certificate log for a customer. Exposed in url $includes + /// The certificate log for a customer. This is exposed in the URL's `$includes`. /// public class CertificateLogModel { /// - /// Log ID + /// The unique ID number of this log entry. /// public Int64? id { get; set; } /// - /// Certificate ID + /// The unique ID number of this certificate. /// public Int64? certificateId { get; set; } /// - /// Account name + /// The name of this account. /// public String account { get; set; } /// - /// Log description + /// The log entry description. /// public String entry { get; set; } /// - /// Date of creation for log entry + /// The date/time when this certificate log was created. /// public DateTime? created { get; set; } diff --git a/src/models/CertificateModel.cs b/src/models/CertificateModel.cs index ee998f9..5b70537 100644 --- a/src/models/CertificateModel.cs +++ b/src/models/CertificateModel.cs @@ -26,7 +26,7 @@ namespace Avalara.AvaTax.RestClient public class CertificateModel { /// - /// Unique ID number of this certificate. + /// The unique ID number of this certificate. /// public Int32? id { get; set; } @@ -105,12 +105,12 @@ public class CertificateModel public ExemptionReasonModel exemptionReason { get; set; } /// - /// The status of the certificate + /// The status of the certificate. /// public String status { get; set; } /// - /// The status of the certificate as displayed on https://exemptions.avalara.com. Can take values + /// The status of the certificate as displayed on https://exemptions.avalara.com. The values in `CertificateEcmStatus` include all the possible status values. /// public CertificateEcmStatus? ecmStatus { get; set; } @@ -135,7 +135,7 @@ public class CertificateModel public String businessNumberType { get; set; } /// - /// Number of pages contained within this certificate. + /// The number of pages contained within this certificate. /// public Int32? pageCount { get; set; } @@ -167,35 +167,35 @@ public class CertificateModel public List attributes { get; set; } /// - /// A list of certificate update histories for this certificate. + /// A list of update histories for this certificate. /// /// You can fetch this data by specifying `$include=histories` when calling a certificate fetch API. /// public List histories { get; set; } /// - /// A list of certificate update histories for this certificate. + /// A list of jobs for this certificate. /// /// You can fetch this data by specifying `$include=jobs` when calling a certificate fetch API. /// public List jobs { get; set; } /// - /// A list of certificate logs for this certificate. + /// A list of logs for this certificate. /// /// You can fetch this data by specifying `$include=logs` when calling a certificate fetch API. /// public List logs { get; set; } /// - /// A list of invalid reasons if the certificate status is not valid + /// For a certificate with an invalid status, this lists the reasons why the certificate is invalid. /// /// You can fetch this data by specifying `$include=invalid_reasons` when calling a certificate fetch API. /// public List invalidReasons { get; set; } /// - /// A list of custom defined fields for this certificate + /// A list of custom defined fields for this certificate. /// /// You can fetch this data by specifying `$include=custom_fields` when calling a certificate fetch API. /// diff --git a/src/models/CommunicationCertificateResponse.cs b/src/models/CommunicationCertificateResponse.cs new file mode 100644 index 0000000..ec1a69d --- /dev/null +++ b/src/models/CommunicationCertificateResponse.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses communication certificate details + /// + public class CommunicationCertificateResponse + { + /// + /// Certificate Id + /// + public Int32? id { get; set; } + + /// + /// Certificate effective date + /// + public DateTime? effectiveDate { get; set; } + + /// + /// Certificate expiration date + /// + public DateTime? expirationDate { get; set; } + + /// + /// Certificate exemption reason + /// + public String exemptionReason { get; set; } + + /// + /// Certificate exemption region + /// + public String exemptionRegion { get; set; } + + /// + /// Certificate tax number + /// + public String taxNumber { get; set; } + + /// + /// Certificate status + /// + public String certificateStatus { get; set; } + + /// + /// Customers which have this certificate + /// + public List customers { get; set; } + + /// + /// Tax details of this certificate + /// + public List exemptions { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CommunicationCertificateResponsePage.cs b/src/models/CommunicationCertificateResponsePage.cs new file mode 100644 index 0000000..596a0d1 --- /dev/null +++ b/src/models/CommunicationCertificateResponsePage.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses count and model value details + /// + public class CommunicationCertificateResponsePage + { + /// + /// Count of records + /// + public Int32? count { get; set; } + + /// + /// Requested model list + /// + public List value { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CommunicationCustomerResponse.cs b/src/models/CommunicationCustomerResponse.cs new file mode 100644 index 0000000..edecad6 --- /dev/null +++ b/src/models/CommunicationCustomerResponse.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses communication certificate customer + /// + public class CommunicationCustomerResponse + { + /// + /// Customer Id + /// + public Int32? id { get; set; } + + /// + /// Customer number + /// + public String customerNumber { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CommunicationExemptionDesignatorResponse.cs b/src/models/CommunicationExemptionDesignatorResponse.cs new file mode 100644 index 0000000..387ef2f --- /dev/null +++ b/src/models/CommunicationExemptionDesignatorResponse.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses Communication exemption designator details + /// + public class CommunicationExemptionDesignatorResponse + { + /// + /// Communication category Id + /// + public Int32? id { get; set; } + + /// + /// Tax category + /// + public String type { get; set; } + + /// + /// Communication category name + /// + public String name { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CommunicationLocationResponse.cs b/src/models/CommunicationLocationResponse.cs new file mode 100644 index 0000000..0056b75 --- /dev/null +++ b/src/models/CommunicationLocationResponse.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses communication location details + /// + public class CommunicationLocationResponse + { + /// + /// Communication tax country + /// + public String country { get; set; } + + /// + /// Communication tax state + /// + public String state { get; set; } + + /// + /// Communication tax County + /// + public String county { get; set; } + + /// + /// Communication tax city + /// + public String city { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CommunicationTaxTypeResponse.cs b/src/models/CommunicationTaxTypeResponse.cs new file mode 100644 index 0000000..94d8f99 --- /dev/null +++ b/src/models/CommunicationTaxTypeResponse.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2023 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// + /// Encloses communication tax type details + /// + public class CommunicationTaxTypeResponse + { + /// + /// + /// + public CommunicationLocationResponse location { get; set; } + + /// + /// + /// + public CommunicationExemptionDesignatorResponse exemptionDesignator { get; set; } + + /// + /// Communication scope + /// + public List scope { get; set; } + + /// + /// Communication domain + /// + public String domain { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/CustomFieldModel.cs b/src/models/CustomFieldModel.cs index 6f212eb..bd0452e 100644 --- a/src/models/CustomFieldModel.cs +++ b/src/models/CustomFieldModel.cs @@ -28,7 +28,7 @@ namespace Avalara.AvaTax.RestClient public class CustomFieldModel { /// - /// Custom field ID + /// The unique ID of this custom field. /// public Int32? id { get; set; } @@ -38,22 +38,22 @@ public class CustomFieldModel public String name { get; set; } /// - /// Custom field type + /// The type of custom field. /// public String type { get; set; } /// - /// + /// The possible values the custom field can have. /// public String possibleValues { get; set; } /// - /// Custom field uses data entry or not? + /// This value is `true` if the custom field uses a data entry. /// public Boolean? usesDataEntry { get; set; } /// - /// Custom field is required in data entry or not? + /// Shows whether the custom field is required in data entry. /// public Boolean? requiredInDataEntry { get; set; } diff --git a/src/models/CustomerJobModel.cs b/src/models/CustomerJobModel.cs index aa8d402..d418f80 100644 --- a/src/models/CustomerJobModel.cs +++ b/src/models/CustomerJobModel.cs @@ -18,22 +18,22 @@ namespace Avalara.AvaTax.RestClient { /// - /// Customer job model. Exposed in url $includes + /// Customer job model. This is exposed in the URL's `$includes`. /// public class CustomerJobModel { /// - /// ID + /// The unique ID number of this customer's job. /// public Int32? id { get; set; } /// - /// Job number + /// The job number of this customer. /// public Int32? jobNumber { get; set; } /// - /// Job name + /// The job name of this customer. /// public String name { get; set; } diff --git a/src/models/CustomerModel.cs b/src/models/CustomerModel.cs index f765781..cca980c 100644 --- a/src/models/CustomerModel.cs +++ b/src/models/CustomerModel.cs @@ -23,7 +23,7 @@ namespace Avalara.AvaTax.RestClient public class CustomerModel { /// - /// Unique ID number of this customer. + /// The unique ID number of this customer. /// public Int32? id { get; set; } @@ -205,27 +205,27 @@ public class CustomerModel public List attributes { get; set; } /// - /// List if active certificates with exemption reasons + /// A list of active certificates with exemption reasons. /// public List activeCertificates { get; set; } /// - /// List of field update histories for this customer + /// A list of field update histories for this customer. /// public List histories { get; set; } /// - /// List of jobs for this customer + /// A list of jobs for this customer. /// public List jobs { get; set; } /// - /// List of logs for this customer + /// A list of logs for this customer. /// public List logs { get; set; } /// - /// List of states where this customer ships to + /// A list of states where this customer ships to. /// public List shipToStates { get; set; } diff --git a/src/models/FundingInitiateModel.cs b/src/models/FundingInitiateModel.cs index 82cea08..4978ffb 100644 --- a/src/models/FundingInitiateModel.cs +++ b/src/models/FundingInitiateModel.cs @@ -41,6 +41,16 @@ public class FundingInitiateModel /// public Boolean? requestWidget { get; set; } + /// + /// Currency + /// + public String currency { get; set; } + + /// + /// AgreementType + /// + public String agreementType { get; set; } + /// /// Convert this object to a JSON string of itself diff --git a/src/models/HistoryModel.cs b/src/models/HistoryModel.cs index ec1f3e7..3467298 100644 --- a/src/models/HistoryModel.cs +++ b/src/models/HistoryModel.cs @@ -18,37 +18,37 @@ namespace Avalara.AvaTax.RestClient { /// - /// Update history for Avalara.AvaTax.AccountServices.Models.v2.CustomerModel and Avalara.AvaTax.AccountServices.Models.v2.CertificateModel. Exposed in url $includes + /// Update history for Avalara.AvaTax.AccountServices.Models.v2.CustomerModel and Avalara.AvaTax.AccountServices.Models.v2.CertificateModel. This is exposed in the URL's `$includes`. /// public class HistoryModel { /// - /// ID + /// The unique ID number of this history. /// public Int32? id { get; set; } /// - /// Account name whose history this is + /// The account name this history belongs to. /// public String account { get; set; } /// - /// Field name which is updated + /// The name of the field to update. /// public String field { get; set; } /// - /// Old value of the field + /// The old value of the field. /// public String oldValue { get; set; } /// - /// New value of the field + /// The new value of the field. /// public String newValue { get; set; } /// - /// Date of creation of this history object + /// The date/time when this history was created. /// public DateTime? created { get; set; } diff --git a/src/models/TransactionLineDetailModel.cs b/src/models/TransactionLineDetailModel.cs index e9b4e67..b045869 100644 --- a/src/models/TransactionLineDetailModel.cs +++ b/src/models/TransactionLineDetailModel.cs @@ -184,7 +184,7 @@ public class TransactionLineDetailModel public String taxTypeGroupId { get; set; } /// - /// The name of the tax against which this tax amount was calculated. + /// The name of the tax against which this tax amount was calculated. Note: This output field is informational, and the values in this field may change. As such, we discourage hardcoding any string matching on this field. /// public String taxName { get; set; } diff --git a/src/models/TransactionModel.cs b/src/models/TransactionModel.cs index 6202185..34bf19f 100644 --- a/src/models/TransactionModel.cs +++ b/src/models/TransactionModel.cs @@ -428,12 +428,25 @@ public class TransactionModel /// 6. NoAccrualExemptedCostCenter /// 7. NoAccrualExemptedItem /// 8. NoAccrualExemptedVendor - /// 9. AccruedUndercharge - /// 10. AccruedVendor - /// 11. NeedReviewUndercharge - /// 12. NeedReviewVendor - /// 13. PendingAccrualVendor - /// 14. PendingAccrualUndercharge + /// 9. NoAccrualRejectMatch + /// 10. NoAccrualRejectUndercharge + /// 11. NoAccrualShortPayAvalaraCalculated + /// 12. NoAccrualRejectOvercharge + /// 13. NoAccrualExemptedGLAccount + /// 14. AccruedUndercharge + /// 15. AccruedVendor + /// 16. AccruedShortPayItemsMatch + /// 17. AccruedShortPayItemsUndercharge + /// 18. AccruedShortPayItemsOvercharge + /// 19. NeedReviewUndercharge + /// 20. NeedReviewVendor + /// 21. NeedReviewMatch + /// 22. NeedReviewOvercharge + /// 23. PendingAccrualVendor + /// 24. PendingAccrualUndercharge + /// 25. PendingShortPayItemsUndercharge + /// 26. PendingShortPayItemsMatch + /// 27. PendingShortPayItemsOvercharge /// public APStatus? apStatusCode { get; set; } diff --git a/tests/netstandard/ErrorResultTests.cs b/tests/netstandard/ErrorResultTests.cs index e355702..5de5bf7 100644 --- a/tests/netstandard/ErrorResultTests.cs +++ b/tests/netstandard/ErrorResultTests.cs @@ -52,7 +52,10 @@ public async Task JsonErrorResult() } Assert.NotNull(avataxError); - Assert.True(avataxError.error.error.message.Contains("Field oldPassword is required")); + var details = avataxError.error.error.details[0]; + var code = avataxError.error.error.code; + Assert.True(details.description.Contains("oldPassword")); + Assert.True(code == ErrorCodeId.ValueRequiredError); } } } diff --git a/tests/netstandard20/ErrorResultTests.cs b/tests/netstandard20/ErrorResultTests.cs index 3773a2c..6f7dee1 100644 --- a/tests/netstandard20/ErrorResultTests.cs +++ b/tests/netstandard20/ErrorResultTests.cs @@ -51,7 +51,10 @@ public async Task JsonErrorResult() } Assert.NotNull(avataxError); - Assert.True(avataxError.error.error.message.Contains("Field oldPassword is required")); + var details = avataxError.error.error.details[0]; + var code = avataxError.error.error.code; + Assert.True(details.description.Contains("oldPassword")); + Assert.True(code == ErrorCodeId.ValueRequiredError); } } }