From 545307b9262626e91ac0451f68f1cd10403a073a Mon Sep 17 00:00:00 2001 From: svc-developer Date: Thu, 9 Nov 2023 15:40:07 +0000 Subject: [PATCH] 23.11.0 --- GlobalAssemblyInfo.cs | 4 +- src/AvaTaxApi.cs | 365 +++++++++++++++++----- src/Avalara.AvaTax.RestClient.nuspec | 2 +- src/IAvaTaxClient.cs | 285 ++++++++++++----- src/models/BadRequestErrorResponse.cs | 45 +++ src/models/Context.cs | 45 +++ src/models/CreateMultiDocumentModel.cs | 5 +- src/models/CreateTransactionModel.cs | 5 +- src/models/DcvCreationResponse.cs | 45 +++ src/models/DcvViewModel.cs | 85 +++++ src/models/DomainNameViewModel.cs | 40 +++ src/models/ForbiddenErrorResponse.cs | 45 +++ src/models/InternalServerErrorResponse.cs | 45 +++ src/models/JurisdictionHierarchyModel.cs | 160 ++++++++++ src/models/JurisdictionNexusModel.cs | 50 +++ src/models/NotFoundErrorResponse.cs | 45 +++ src/models/NoticeModel.cs | 10 + src/models/UnauthorizedErrorResponse.cs | 45 +++ 18 files changed, 1167 insertions(+), 159 deletions(-) create mode 100644 src/models/BadRequestErrorResponse.cs create mode 100644 src/models/Context.cs create mode 100644 src/models/DcvCreationResponse.cs create mode 100644 src/models/DcvViewModel.cs create mode 100644 src/models/DomainNameViewModel.cs create mode 100644 src/models/ForbiddenErrorResponse.cs create mode 100644 src/models/InternalServerErrorResponse.cs create mode 100644 src/models/JurisdictionHierarchyModel.cs create mode 100644 src/models/JurisdictionNexusModel.cs create mode 100644 src/models/NotFoundErrorResponse.cs create mode 100644 src/models/UnauthorizedErrorResponse.cs diff --git a/GlobalAssemblyInfo.cs b/GlobalAssemblyInfo.cs index 59af00f..5623126 100644 --- a/GlobalAssemblyInfo.cs +++ b/GlobalAssemblyInfo.cs @@ -30,5 +30,5 @@ // Revision // -[assembly: AssemblyVersion("23.10.1")] -[assembly: AssemblyFileVersion("23.10.1")] +[assembly: AssemblyVersion("23.11.0")] +[assembly: AssemblyFileVersion("23.11.0")] diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index bc58b4d..e0b0691 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 23.10.1 + * @version 23.11.0 * @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 "23.10.1"; } } + public static string API_VERSION { get { return "23.11.0"; } } #region Methods @@ -309,6 +309,27 @@ public List GetLicenseKeys(Int32 id) } + /// + /// Retrieve a list of MRS Accounts + /// + /// + /// This API is available by invitation only. + /// + /// Get a list of accounts with an active MRS service. + /// + /// ### Security Policies + /// + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + /// + /// Swagger Name: AvaTaxClient + public FetchResult ListMrsAccounts() + { + var path = new AvaTaxPath("/api/v2/accounts/mrs"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall>("GET", path, null); + } + + /// /// Retrieve all accounts /// @@ -383,13 +404,15 @@ public List SetAccountConfiguration(Int32 id, List - /// Retrieve geolocation information for a specified address + /// Retrieve geolocation information for a specified US or Canadian address /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this address. /// This is the same API as the POST /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// @@ -429,14 +452,16 @@ public AddressResolutionModel ResolveAddress(String line1, String line2, String /// - /// Retrieve geolocation information for a specified address + /// Retrieve geolocation information for a specified US or Canadian address /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. - /// This is the same API as the GET /api/v2/addresses/resolve endpoint. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this + /// address. This is the same API as the GET /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// /// ### Security Policies @@ -2788,8 +2813,8 @@ public CostCenterSuccessResponseModel UpdateCostCenter(Int32 companyid, Int64 co /// nested object, please call 'GetCustomer' API with appropriate $include parameters. /// /// 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2822,8 +2847,8 @@ public List CreateCustomers(Int32 companyId, List /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2834,13 +2859,13 @@ public List CreateCustomers(Int32 companyId, List /// Swagger Name: AvaTaxClient /// The unique ID number of the company that recorded this customer /// The unique code representing this customer - public CustomerModel DeleteCustomer(Int32 companyId, String customerCode) + public void DeleteCustomer(Int32 companyId, String customerCode) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); - return RestCall("DELETE", path, null); + RestCallString("DELETE", path, null); } @@ -2863,8 +2888,8 @@ public CustomerModel DeleteCustomer(Int32 companyId, String customerCode) /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2903,8 +2928,8 @@ public CustomerModel GetCustomer(Int32 companyId, String customerCode, String in /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2939,8 +2964,8 @@ public FetchResult LinkAttributesToCustomer(Int32 compan /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3015,8 +3040,8 @@ public CustomerModel LinkShipToCustomersToBillCustomer(Int32 companyId, String c /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3050,8 +3075,8 @@ public FetchResult ListAttributesForCustomer(Int32 compa /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3102,8 +3127,8 @@ public FetchResult ListCertificatesForCustomer(Int32 companyId /// see the `CreateCertExpressInvitation` API to create an invitation link 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3146,8 +3171,8 @@ public ExemptionStatusModel ListValidCertificatesForCustomer(Int32 companyId, St /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3192,8 +3217,8 @@ public FetchResult QueryCustomers(Int32 companyId, String include /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3228,8 +3253,8 @@ public FetchResult UnlinkAttributesFromCustomer(Int32 co /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -3264,8 +3289,8 @@ public FetchResult UnlinkCertificatesFromCustomer(Int32 compan /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -4045,6 +4070,33 @@ public FetchResult ListJurisdictionsByR } + /// + /// List jurisdictions hierarchy based on the filter provided + /// + /// + /// Returns a list of all Avalara-supported taxing jurisdictions hirearchy. + /// + /// This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state. + /// + /// The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API. + /// + /// 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:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst + /// 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 ListJurisdictionsHierarchy(String filter, Int32? top, Int32? skip, String orderBy) + { + var path = new AvaTaxPath("/api/v2/definitions/jurisdictions/hierarchy"); + path.AddQuery("$filter", filter); + path.AddQuery("$top", top); + path.AddQuery("$skip", skip); + path.AddQuery("$orderBy", orderBy); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall>("GET", path, null); + } + + /// /// List jurisdiction types based on the provided taxTypeId, taxSubTypeId, country, and rateTypeId /// @@ -5643,6 +5695,56 @@ public CompanyDistanceThresholdModel UpdateDistanceThreshold(Int32 companyId, In } + /// + /// Create Domain control verification + /// + /// + /// + /// + /// Swagger Name: AvaTaxClient + /// + public DcvCreationResponse CreateDcv(DomainNameViewModel model) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall("POST", path, model); + } + + + /// + /// Get domain control verifications by logged in user/domain name. + /// + /// + /// + /// + /// 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:* Id, Context, Token, Status, EmailId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy + public List FilterDcv(String filter) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications"); + path.AddQuery("$filter", filter); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall>("GET", path, null); + } + + + /// + /// Get domain control verification by domainControlVerificationId + /// + /// + /// + /// + /// Swagger Name: AvaTaxClient + /// + public DcvViewModel GetDcvById(String domainControlVerificationId) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications/{domainControlVerificationId}"); + path.ApplyField("domainControlVerificationId", domainControlVerificationId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION); + return RestCall("GET", path, null); + } + + /// /// Create a new eCommerce token. /// @@ -8474,7 +8576,7 @@ public FetchResult ListNexusByCompanyAndTaxTypeGroup(Int32 companyId /// /// A parameter added to an nexus will be used by default in tax calculation but will not show on the transaction line referencing the nexus. /// - /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. + /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. /// /// 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. @@ -12695,6 +12797,28 @@ public async Task> GetLicenseKeysAsync(Int32 id) } + /// Swagger Name: AvaTaxClient + /// + /// Retrieve a list of MRS Accounts; + /// + /// + /// This API is available by invitation only. + /// + /// Get a list of accounts with an active MRS service. + /// + /// ### Security Policies + /// + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.; + /// + + public async Task> ListMrsAccountsAsync() + { + var path = new AvaTaxPath("/api/v2/accounts/mrs"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync>("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// /// Retrieve all accounts; @@ -12772,13 +12896,15 @@ public async Task> SetAccountConfigurationAsync( /// Swagger Name: AvaTaxClient /// - /// Retrieve geolocation information for a specified address; + /// Retrieve geolocation information for a specified US or Canadian address; /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this address. /// This is the same API as the POST /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// @@ -12819,14 +12945,16 @@ public async Task ResolveAddressAsync(String line1, Stri /// Swagger Name: AvaTaxClient /// - /// Retrieve geolocation information for a specified address; + /// Retrieve geolocation information for a specified US or Canadian address; /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. - /// This is the same API as the GET /api/v2/addresses/resolve endpoint. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this + /// address. This is the same API as the GET /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// /// ### Security Policies @@ -15254,8 +15382,8 @@ public async Task UpdateCostCenterAsync(Int32 co /// nested object, please call 'GetCustomer' API with appropriate $include parameters. /// /// 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15289,8 +15417,8 @@ public async Task> CreateCustomersAsync(Int32 companyId, Lis /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15301,13 +15429,13 @@ public async Task> CreateCustomersAsync(Int32 companyId, Lis /// The unique ID number of the company that recorded this customer /// The unique code representing this customer - public async Task DeleteCustomerAsync(Int32 companyId, String customerCode) + public async Task DeleteCustomerAsync(Int32 companyId, String customerCode) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); - return await RestCallAsync("DELETE", path, null).ConfigureAwait(false); + await RestCallStringAsync("DELETE", path, null).ConfigureAwait(false); } @@ -15331,8 +15459,8 @@ public async Task DeleteCustomerAsync(Int32 companyId, String cus /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15372,8 +15500,8 @@ public async Task GetCustomerAsync(Int32 companyId, String custom /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15409,8 +15537,8 @@ public async Task> LinkAttributesToCustomerA /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15487,8 +15615,8 @@ public async Task LinkShipToCustomersToBillCustomerAsync(Int32 co /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15523,8 +15651,8 @@ public async Task> ListAttributesForCustomer /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15576,8 +15704,8 @@ public async Task> ListCertificatesForCustomerAsyn /// see the `CreateCertExpressInvitation` API to create an invitation link 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15621,8 +15749,8 @@ public async Task ListValidCertificatesForCustomerAsync(In /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15668,8 +15796,8 @@ public async Task> QueryCustomersAsync(Int32 companyI /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15705,8 +15833,8 @@ public async Task> UnlinkAttributesFromCusto /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -15742,8 +15870,8 @@ public async Task> UnlinkCertificatesFromCustomerA /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -16550,6 +16678,34 @@ public async Task> ListJuri } + /// Swagger Name: AvaTaxClient + /// + /// List jurisdictions hierarchy based on the filter provided; + /// + /// + /// Returns a list of all Avalara-supported taxing jurisdictions hirearchy. + /// + /// This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state. + /// + /// The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API.; + /// + + /// 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:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst + /// 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> ListJurisdictionsHierarchyAsync(String filter, Int32? top, Int32? skip, String orderBy) + { + var path = new AvaTaxPath("/api/v2/definitions/jurisdictions/hierarchy"); + path.AddQuery("$filter", filter); + path.AddQuery("$top", top); + path.AddQuery("$skip", skip); + path.AddQuery("$orderBy", orderBy); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync>("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// /// List jurisdiction types based on the provided taxTypeId, taxSubTypeId, country, and rateTypeId; @@ -18206,6 +18362,59 @@ public async Task UpdateDistanceThresholdAsync(In } + /// Swagger Name: AvaTaxClient + /// + /// Create Domain control verification; + /// + /// + /// ; + /// + + /// + public async Task CreateDcvAsync(DomainNameViewModel model) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync("POST", path, model).ConfigureAwait(false); + } + + + /// Swagger Name: AvaTaxClient + /// + /// Get domain control verifications by logged in user/domain name.; + /// + /// + /// ; + /// + + /// 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:* Id, Context, Token, Status, EmailId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy + public async Task> FilterDcvAsync(String filter) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications"); + path.AddQuery("$filter", filter); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync>("GET", path, null).ConfigureAwait(false); + } + + + /// Swagger Name: AvaTaxClient + /// + /// Get domain control verification by domainControlVerificationId; + /// + /// + /// ; + /// + + /// + public async Task GetDcvByIdAsync(String domainControlVerificationId) + { + var path = new AvaTaxPath("/api/v2/domain-control-verifications/{domainControlVerificationId}"); + path.ApplyField("domainControlVerificationId", domainControlVerificationId); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION); + return await RestCallAsync("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// /// Create a new eCommerce token.; @@ -21123,7 +21332,7 @@ public async Task> ListNexusByCompanyAndTaxTypeGroupAsyn /// /// A parameter added to an nexus will be used by default in tax calculation but will not show on the transaction line referencing the nexus. /// - /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. + /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. /// /// 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. diff --git a/src/Avalara.AvaTax.RestClient.nuspec b/src/Avalara.AvaTax.RestClient.nuspec index 2bfa680..f377ad6 100644 --- a/src/Avalara.AvaTax.RestClient.nuspec +++ b/src/Avalara.AvaTax.RestClient.nuspec @@ -3,7 +3,7 @@ Avalara.AvaTax - 23.10.1 + 23.11.0 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 1c625b7..6f21a58 100644 --- a/src/IAvaTaxClient.cs +++ b/src/IAvaTaxClient.cs @@ -281,6 +281,21 @@ public interface IAvaTaxClient /// The ID of the account to retrieve List GetLicenseKeys(Int32 id); + /// + /// Retrieve a list of MRS Accounts + /// + /// + /// This API is available by invitation only. + /// + /// Get a list of accounts with an active MRS service. + /// + /// ### Security Policies + /// + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + /// + /// Swagger Name: AvaTaxClient + FetchResult ListMrsAccounts(); + /// /// Retrieve all accounts /// @@ -337,13 +352,15 @@ public interface IAvaTaxClient List SetAccountConfiguration(Int32 id, List model); /// - /// Retrieve geolocation information for a specified address + /// Retrieve geolocation information for a specified US or Canadian address /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this address. /// This is the same API as the POST /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// @@ -369,14 +386,16 @@ public interface IAvaTaxClient AddressResolutionModel ResolveAddress(String line1, String line2, String line3, String city, String region, String postalCode, String country, TextCase? textCase); /// - /// Retrieve geolocation information for a specified address + /// Retrieve geolocation information for a specified US or Canadian address /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. - /// This is the same API as the GET /api/v2/addresses/resolve endpoint. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this + /// address. This is the same API as the GET /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// /// ### Security Policies @@ -2101,8 +2120,8 @@ public interface IAvaTaxClient /// nested object, please call 'GetCustomer' API with appropriate $include parameters. /// /// 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2128,8 +2147,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2140,7 +2159,7 @@ public interface IAvaTaxClient /// Swagger Name: AvaTaxClient /// The unique ID number of the company that recorded this customer /// The unique code representing this customer - CustomerModel DeleteCustomer(Int32 companyId, String customerCode); + void DeleteCustomer(Int32 companyId, String customerCode); /// /// Retrieve a single customer @@ -2161,8 +2180,8 @@ public interface IAvaTaxClient /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2192,8 +2211,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2220,8 +2239,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2280,8 +2299,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2307,8 +2326,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2346,8 +2365,8 @@ public interface IAvaTaxClient /// see the `CreateCertExpressInvitation` API to create an invitation link 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2380,8 +2399,8 @@ public interface IAvaTaxClient /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2414,8 +2433,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2442,8 +2461,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2470,8 +2489,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -2970,6 +2989,23 @@ public interface IAvaTaxClient /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. FetchResult ListJurisdictionsByRateTypeTaxTypeMapping(String country, String taxTypeId, String taxSubTypeId, Int32 rateTypeId, String region, String filter, Int32? top, Int32? skip, String orderBy); + /// + /// List jurisdictions hierarchy based on the filter provided + /// + /// + /// Returns a list of all Avalara-supported taxing jurisdictions hirearchy. + /// + /// This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state. + /// + /// The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API. + /// + /// 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:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst + /// 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 ListJurisdictionsHierarchy(String filter, Int32? top, Int32? skip, String orderBy); + /// /// List jurisdiction types based on the provided taxTypeId, taxSubTypeId, country, and rateTypeId /// @@ -3955,6 +3991,36 @@ public interface IAvaTaxClient /// The new DistanceThreshold object to store. CompanyDistanceThresholdModel UpdateDistanceThreshold(Int32 companyId, Int64 id, CompanyDistanceThresholdModel model); + /// + /// Create Domain control verification + /// + /// + /// + /// + /// Swagger Name: AvaTaxClient + /// + DcvCreationResponse CreateDcv(DomainNameViewModel model); + + /// + /// Get domain control verifications by logged in user/domain name. + /// + /// + /// + /// + /// 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:* Id, Context, Token, Status, EmailId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy + List FilterDcv(String filter); + + /// + /// Get domain control verification by domainControlVerificationId + /// + /// + /// + /// + /// Swagger Name: AvaTaxClient + /// + DcvViewModel GetDcvById(String domainControlVerificationId); + /// /// Create a new eCommerce token. /// @@ -6046,7 +6112,7 @@ public interface IAvaTaxClient /// /// A parameter added to an nexus will be used by default in tax calculation but will not show on the transaction line referencing the nexus. /// - /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. + /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. /// /// 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. @@ -9221,6 +9287,22 @@ public interface IAvaTaxClient /// The ID of the account to retrieve Task> GetLicenseKeysAsync(Int32 id); + /// Swagger Name: AvaTaxClient + /// + /// Retrieve a list of MRS Accounts; + /// + /// + /// This API is available by invitation only. + /// + /// Get a list of accounts with an active MRS service. + /// + /// ### Security Policies + /// + /// * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, ECMAccountUser, ECMCompanyUser, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.; + /// + + Task> ListMrsAccountsAsync(); + /// Swagger Name: AvaTaxClient /// /// Retrieve all accounts; @@ -9280,13 +9362,15 @@ public interface IAvaTaxClient /// Swagger Name: AvaTaxClient /// - /// Retrieve geolocation information for a specified address; + /// Retrieve geolocation information for a specified US or Canadian address; /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this address. /// This is the same API as the POST /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// @@ -9313,14 +9397,16 @@ public interface IAvaTaxClient /// Swagger Name: AvaTaxClient /// - /// Retrieve geolocation information for a specified address; + /// Retrieve geolocation information for a specified US or Canadian address; /// /// - /// Resolve an address against Avalara's address-validation system. If the address can be resolved, this API - /// provides the latitude and longitude of the resolved location. The value 'resolutionQuality' can be used - /// to identify how closely this address can be located. If the address cannot be clearly located, use the - /// 'messages' structure to learn more about problems with this address. - /// This is the same API as the GET /api/v2/addresses/resolve endpoint. + /// Resolve a US or Canadian address against Avalara's address validation system. Note that this API is + /// valid for US and Canadian addresses only. + /// + /// If the address can be resolved, this API provides the latitude and longitude of the resolved location. + /// The value `resolutionQuality` can be used to identify how closely this address can be located. If the + /// address cannot be clearly located, use the `messages` structure to learn more about problems with this + /// address. This is the same API as the GET /api/v2/addresses/resolve endpoint. /// Both verbs are supported to provide for flexible implementation. /// /// ### Security Policies @@ -11121,8 +11207,8 @@ public interface IAvaTaxClient /// nested object, please call 'GetCustomer' API with appropriate $include parameters. /// /// 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11149,8 +11235,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11161,7 +11247,7 @@ public interface IAvaTaxClient /// The unique ID number of the company that recorded this customer /// The unique code representing this customer - Task DeleteCustomerAsync(Int32 companyId, String customerCode); + Task DeleteCustomerAsync(Int32 companyId, String customerCode); /// Swagger Name: AvaTaxClient /// @@ -11183,8 +11269,8 @@ public interface IAvaTaxClient /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11215,8 +11301,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11244,8 +11330,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11306,8 +11392,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11334,8 +11420,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11374,8 +11460,8 @@ public interface IAvaTaxClient /// see the `CreateCertExpressInvitation` API to create an invitation link 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11409,8 +11495,8 @@ public interface IAvaTaxClient /// * attributes - Retrieves all attributes applied to the 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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11444,8 +11530,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11473,8 +11559,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -11502,8 +11588,8 @@ public interface IAvaTaxClient /// AvaTax will record the appropriate elements of the transaction as exempt and link it to the `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 + /// 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 /// certificate storage for this company, call `RequestCertificateSetup`. /// /// ### Security Policies @@ -12029,6 +12115,24 @@ public interface IAvaTaxClient /// A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. Task> ListJurisdictionsByRateTypeTaxTypeMappingAsync(String country, String taxTypeId, String taxSubTypeId, Int32 rateTypeId, String region, String filter, Int32? top, Int32? skip, String orderBy); + /// Swagger Name: AvaTaxClient + /// + /// List jurisdictions hierarchy based on the filter provided; + /// + /// + /// Returns a list of all Avalara-supported taxing jurisdictions hirearchy. + /// + /// This API Lists the hierarchical relationship of jurisdictions for US states, identifying the cities and special taxing jurisdictions (STJs) for a given county within a state. + /// + /// The rate, salesRate, and useRate fields are not available on the JurisdictionHirearchyModels returned by this API.; + /// + + /// 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:* parentId, nexus, rate, salesRate, signatureCode, useRate, isAcm, isSst + /// 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> ListJurisdictionsHierarchyAsync(String filter, Int32? top, Int32? skip, String orderBy); + /// Swagger Name: AvaTaxClient /// /// List jurisdiction types based on the provided taxTypeId, taxSubTypeId, country, and rateTypeId; @@ -13072,6 +13176,39 @@ public interface IAvaTaxClient /// The new DistanceThreshold object to store. Task UpdateDistanceThresholdAsync(Int32 companyId, Int64 id, CompanyDistanceThresholdModel model); + /// Swagger Name: AvaTaxClient + /// + /// Create Domain control verification; + /// + /// + /// ; + /// + + /// + Task CreateDcvAsync(DomainNameViewModel model); + + /// Swagger Name: AvaTaxClient + /// + /// Get domain control verifications by logged in user/domain name.; + /// + /// + /// ; + /// + + /// 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:* Id, Context, Token, Status, EmailId, CreatedOn, CreatedBy, UpdatedOn, UpdatedBy + Task> FilterDcvAsync(String filter); + + /// Swagger Name: AvaTaxClient + /// + /// Get domain control verification by domainControlVerificationId; + /// + /// + /// ; + /// + + /// + Task GetDcvByIdAsync(String domainControlVerificationId); + /// Swagger Name: AvaTaxClient /// /// Create a new eCommerce token.; @@ -15249,7 +15386,7 @@ public interface IAvaTaxClient /// /// A parameter added to an nexus will be used by default in tax calculation but will not show on the transaction line referencing the nexus. /// - /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. + /// A parameter specified on a transaction line will override an nexus parameter if they share the same parameter name. /// /// 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. diff --git a/src/models/BadRequestErrorResponse.cs b/src/models/BadRequestErrorResponse.cs new file mode 100644 index 0000000..88ebc71 --- /dev/null +++ b/src/models/BadRequestErrorResponse.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 +{ + /// + /// This is used to map the error details in response + /// + public class BadRequestErrorResponse + { + /// + /// Status code in the response + /// + public Int32? code { get; set; } + + /// + /// Error message in the response + /// + public String message { 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/Context.cs b/src/models/Context.cs new file mode 100644 index 0000000..5ee8f00 --- /dev/null +++ b/src/models/Context.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 +{ + /// + /// Model to represent the system + /// + public class Context + { + /// + /// Unique id of the system + /// + public String id { get; set; } + + /// + /// System name + /// + public String system { 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/CreateMultiDocumentModel.cs b/src/models/CreateMultiDocumentModel.cs index 0c69590..2728eef 100644 --- a/src/models/CreateMultiDocumentModel.cs +++ b/src/models/CreateMultiDocumentModel.cs @@ -69,9 +69,10 @@ public class CreateMultiDocumentModel public String companyCode { get; set; } /// - /// Transaction Date - The date on the invoice, purchase order, etc. + /// Transaction Date - The date on the invoice, purchase order, etc. AvaTax accepts date values in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + /// format and stores the date as `yyyy-MM-dd`. /// - /// By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a + /// By default, this date will be used to calculate the tax rates for the transaction. If you want to use a /// different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`. /// public DateTime date { get; set; } diff --git a/src/models/CreateTransactionModel.cs b/src/models/CreateTransactionModel.cs index 47591ee..6e7936c 100644 --- a/src/models/CreateTransactionModel.cs +++ b/src/models/CreateTransactionModel.cs @@ -49,9 +49,10 @@ public class CreateTransactionModel public String companyCode { get; set; } /// - /// Transaction Date - The date on the invoice, purchase order, etc. + /// Transaction Date - The date on the invoice, purchase order, etc. AvaTax accepts date values in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + /// format and stores the date as `yyyy-MM-dd`. /// - /// By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a + /// By default, this date will be used to calculate the tax rates for the transaction. If you want to use a /// different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`. /// public DateTime date { get; set; } diff --git a/src/models/DcvCreationResponse.cs b/src/models/DcvCreationResponse.cs new file mode 100644 index 0000000..4a0cad5 --- /dev/null +++ b/src/models/DcvCreationResponse.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 +{ + /// + /// Model used for Domain control verification response + /// + public class DcvCreationResponse + { + /// + /// Domain control verification is already exist or newly created + /// + public String message { get; set; } + + /// + /// + /// + public DcvViewModel dcvViewModel { 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/DcvViewModel.cs b/src/models/DcvViewModel.cs new file mode 100644 index 0000000..681f05a --- /dev/null +++ b/src/models/DcvViewModel.cs @@ -0,0 +1,85 @@ +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 +{ + /// + /// ViewModel to get Domain control verification + /// + public class DcvViewModel + { + /// + /// Unique id of the Domain control verification + /// + public String id { get; set; } + + /// + /// Domain name for which Domain control verification record is created + /// + public String domainName { get; set; } + + /// + /// + /// + public Context context { get; set; } + + /// + /// Unique token for Domain control verification + /// + public String token { get; set; } + + /// + /// Status of the domain Verified/Pending/Cancelled + /// + public String status { get; set; } + + /// + /// Email id of the user who create Domain control verification + /// + public String emailId { get; set; } + + /// + /// Domain control verification creation date + /// + public String createdOn { get; set; } + + /// + /// Domain control verification created by + /// + public String createdBy { get; set; } + + /// + /// Domain control verification update date + /// + public String updatedOn { get; set; } + + /// + /// Domain control verification update by + /// + public String updatedBy { 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/DomainNameViewModel.cs b/src/models/DomainNameViewModel.cs new file mode 100644 index 0000000..44221ea --- /dev/null +++ b/src/models/DomainNameViewModel.cs @@ -0,0 +1,40 @@ +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 +{ + /// + /// ViewModel to receive DomainName from user + /// + public class DomainNameViewModel + { + /// + /// Domain Name for which Domain control verification is created + /// + public String domainName { 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/ForbiddenErrorResponse.cs b/src/models/ForbiddenErrorResponse.cs new file mode 100644 index 0000000..705f229 --- /dev/null +++ b/src/models/ForbiddenErrorResponse.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 +{ + /// + /// This is used to map the error details in response + /// + public class ForbiddenErrorResponse + { + /// + /// Status code in the response + /// + public Int32? code { get; set; } + + /// + /// Error message in the response + /// + public String message { 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/InternalServerErrorResponse.cs b/src/models/InternalServerErrorResponse.cs new file mode 100644 index 0000000..71e2a34 --- /dev/null +++ b/src/models/InternalServerErrorResponse.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 +{ + /// + /// This is used to map the error details in response + /// + public class InternalServerErrorResponse + { + /// + /// Status code in the response + /// + public Int32? code { get; set; } + + /// + /// Error message in the response + /// + public String message { 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/JurisdictionHierarchyModel.cs b/src/models/JurisdictionHierarchyModel.cs new file mode 100644 index 0000000..3c4b8d5 --- /dev/null +++ b/src/models/JurisdictionHierarchyModel.cs @@ -0,0 +1,160 @@ +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 +{ + /// + /// Represents information about a single legal taxing jurisdiction with parent jurisdiction + /// + public class JurisdictionHierarchyModel + { + /// + /// ParentId of the Jurisdiction + /// + public Int32? parentId { get; set; } + + /// + /// List of Nexus details associated with the jurisdiction + /// + public List nexus { get; set; } + + /// + /// The code that is used to identify this jurisdiction + /// + public String code { get; set; } + + /// + /// The name of this jurisdiction + /// + public String name { get; set; } + + /// + /// The type of the jurisdiction, indicating whether it is a country, state/region, city, for example. + /// + public JurisdictionType type { get; set; } + + /// + /// The base rate of tax specific to this jurisdiction. + /// + public Decimal? rate { get; set; } + + /// + /// The "Sales" tax rate specific to this jurisdiction. + /// + public Decimal? salesRate { get; set; } + + /// + /// The Avalara-supplied signature code for this jurisdiction. + /// + public String signatureCode { get; set; } + + /// + /// Name or ISO 3166 code identifying the region within the country. + /// + /// This field supports many different region identifiers: + /// * Two and three character ISO 3166 region codes + /// * Fully spelled out names of the region in ISO supported languages + /// * Common alternative spellings for many regions + /// + /// For a full list of all supported codes and names, please see the Definitions API `ListRegions`. + /// + public String region { get; set; } + + /// + /// The "Seller's Use" tax rate specific to this jurisdiction. + /// + public Decimal? useRate { get; set; } + + /// + /// The city name of this jurisdiction + /// + public String city { get; set; } + + /// + /// The county name of this jurisdiction + /// + public String county { get; set; } + + /// + /// Name or ISO 3166 code identifying the country of this jurisdiction. + /// + /// This field supports many different country identifiers: + /// * Two character ISO 3166 codes + /// * Three character ISO 3166 codes + /// * Fully spelled out names of the country in ISO supported languages + /// * Common alternative spellings for many countries + /// + /// For a full list of all supported codes and names, please see the Definitions API `ListCountries`. + /// + public String country { get; set; } + + /// + /// A short name of the jurisidiction + /// + public String shortName { get; set; } + + /// + /// State FIPS code + /// + public String stateFips { get; set; } + + /// + /// County FIPS code + /// + public String countyFips { get; set; } + + /// + /// City FIPS code + /// + public String placeFips { get; set; } + + /// + /// Unique AvaTax Id of this Jurisdiction + /// + public Int32? id { get; set; } + + /// + /// The date this jurisdiction starts to take effect on tax calculations + /// + public DateTime? effectiveDate { get; set; } + + /// + /// The date this jurisdiction stops to take effect on tax calculations + /// + public DateTime? endDate { get; set; } + + /// + /// The isAcm specific to this jurisdiction. + /// + public Boolean? isAcm { get; set; } + + /// + /// The isSst specific to this jurisdiction. + /// + public Boolean? isSst { 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/JurisdictionNexusModel.cs b/src/models/JurisdictionNexusModel.cs new file mode 100644 index 0000000..4eef49a --- /dev/null +++ b/src/models/JurisdictionNexusModel.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 +{ + /// + /// Model to represent the detail of NexusTaxTpeGroup and TaxName for Jurisdiction + /// + public class JurisdictionNexusModel + { + /// + /// TaxTypeGroupId for Nexus of Jurisdiction + /// + public String taxTypeGroupId { get; set; } + + /// + /// NexusTaxTypeGroupId for Nexus of Jurisdiction + /// + public String nexusTaxTypeGroupId { get; set; } + + /// + /// TaxName for Nexus of Jurisdiction + /// + public String taxName { 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/NotFoundErrorResponse.cs b/src/models/NotFoundErrorResponse.cs new file mode 100644 index 0000000..df5513d --- /dev/null +++ b/src/models/NotFoundErrorResponse.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 +{ + /// + /// This is used to map the error details in response + /// + public class NotFoundErrorResponse + { + /// + /// Status code in the response + /// + public Int32? code { get; set; } + + /// + /// Error message in the response + /// + public String message { 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/NoticeModel.cs b/src/models/NoticeModel.cs index ae74851..8065e1c 100644 --- a/src/models/NoticeModel.cs +++ b/src/models/NoticeModel.cs @@ -189,6 +189,16 @@ public class NoticeModel /// public String createdByUserName { get; set; } + /// + /// The user who modified the notice + /// + public String modifiedUserName { get; set; } + + /// + /// The user who closed the notice + /// + public String closedByUserName { get; set; } + /// /// The unique ID number of the user that owns the notice /// diff --git a/src/models/UnauthorizedErrorResponse.cs b/src/models/UnauthorizedErrorResponse.cs new file mode 100644 index 0000000..d9d21cc --- /dev/null +++ b/src/models/UnauthorizedErrorResponse.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 +{ + /// + /// This is used to map the error details in response + /// + public class UnauthorizedErrorResponse + { + /// + /// Status code in the response + /// + public Int32? code { get; set; } + + /// + /// Error message in the response + /// + public String message { 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 }); + } + } +}