From eeed0d899832b67e808e25b6e4509e761039c658 Mon Sep 17 00:00:00 2001 From: svc-developer <svc-developer@avalara.com> Date: Fri, 28 Jan 2022 17:25:59 +0000 Subject: [PATCH] 22.2.0 --- GlobalAssemblyInfo.cs | 4 +- src/AvaTaxApi.cs | 1463 +++++++++++----------- src/Avalara.AvaTax.net20.csproj | 1 + src/Avalara.AvaTax.net45.csproj | 1 + src/Avalara.AvaTax.net461.csproj | 1 + src/Avalara.AvaTax.nuspec | 2 +- src/models/ACHEntryDetailModel.cs | 75 ++ src/models/DeclareNexusByAddressModel.cs | 17 + 8 files changed, 859 insertions(+), 705 deletions(-) create mode 100644 src/models/ACHEntryDetailModel.cs diff --git a/GlobalAssemblyInfo.cs b/GlobalAssemblyInfo.cs index 30407f69..5d4954e7 100644 --- a/GlobalAssemblyInfo.cs +++ b/GlobalAssemblyInfo.cs @@ -30,5 +30,5 @@ // Revision // -[assembly: AssemblyVersion("21.12.0")] -[assembly: AssemblyFileVersion("21.12.0")] +[assembly: AssemblyVersion("22.2.0")] +[assembly: AssemblyFileVersion("22.2.0")] diff --git a/src/AvaTaxApi.cs b/src/AvaTaxApi.cs index 86504d73..5cea6042 100644 --- a/src/AvaTaxApi.cs +++ b/src/AvaTaxApi.cs @@ -17,7 +17,7 @@ * @author Greg Hester <greg.hester@avalara.com> * @copyright 2004-2019 Avalara, Inc. * @license https://www.apache.org/licenses/LICENSE-2.0 - * @version 21.12.0 + * @version 22.2.0 * @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK */ @@ -28,7 +28,7 @@ public partial class AvaTaxClient /// <summary> /// Returns the version number of the API used to generate this class /// </summary> - public static string API_VERSION { get { return "21.12.0"; } } + public static string API_VERSION { get { return "22.2.0"; } } #region Methods @@ -62,7 +62,7 @@ public LicenseKeyModel AccountResetLicenseKey(Int32 id, ResetLicenseKeyModel mod { var path = new AvaTaxPath("/api/v2/accounts/{id}/resetlicensekey"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LicenseKeyModel>("POST", path, model); } @@ -93,7 +93,7 @@ public AccountModel ActivateAccount(Int32 id, ActivateAccountModel model) { var path = new AvaTaxPath("/api/v2/accounts/{id}/activate"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AccountModel>("POST", path, model); } @@ -145,7 +145,7 @@ public FetchResult<AuditModel> AuditAccount(Int32 id, DateTime? start, DateTime? path.AddQuery("end", endDate); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<AuditModel>>("GET", path, null); } @@ -176,7 +176,7 @@ public LicenseKeyModel CreateLicenseKey(Int32 id, AccountLicenseKeyModel model) { var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LicenseKeyModel>("POST", path, model); } @@ -203,7 +203,7 @@ public List<ErrorDetail> DeleteLicenseKey(Int32 id, String licensekeyname) var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey/{licensekeyname}"); path.ApplyField("id", id); path.ApplyField("licensekeyname", licensekeyname); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -230,7 +230,7 @@ public AccountModel GetAccount(Int32 id, String include) var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AccountModel>("GET", path, null); } @@ -262,7 +262,7 @@ public List<AccountConfigurationModel> GetAccountConfiguration(Int32 id) { var path = new AvaTaxPath("/api/v2/accounts/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<AccountConfigurationModel>>("GET", path, null); } @@ -283,7 +283,7 @@ public AccountLicenseKeyModel GetLicenseKey(Int32 id, String licensekeyname) var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey/{licensekeyname}"); path.ApplyField("id", id); path.ApplyField("licensekeyname", licensekeyname); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AccountLicenseKeyModel>("GET", path, null); } @@ -304,7 +304,7 @@ public List<AccountLicenseKeyModel> GetLicenseKeys(Int32 id) { var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekeys"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<AccountLicenseKeyModel>>("GET", path, null); } @@ -344,7 +344,7 @@ public FetchResult<AccountModel> QueryAccounts(String include, String filter, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<AccountModel>>("GET", path, null); } @@ -377,7 +377,7 @@ public List<AccountConfigurationModel> SetAccountConfiguration(Int32 id, List<Ac { var path = new AvaTaxPath("/api/v2/accounts/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<AccountConfigurationModel>>("POST", path, model); } @@ -423,7 +423,7 @@ public AddressResolutionModel ResolveAddress(String line1, String line2, String path.AddQuery("postalCode", postalCode); path.AddQuery("country", country); path.AddQuery("textCase", textCase); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AddressResolutionModel>("GET", path, null); } @@ -449,7 +449,7 @@ public AddressResolutionModel ResolveAddress(String line1, String line2, String public AddressResolutionModel ResolveAddressPost(AddressValidationInfo model) { var path = new AvaTaxPath("/api/v2/addresses/resolve"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AddressResolutionModel>("POST", path, model); } @@ -469,7 +469,7 @@ public AdvancedRuleLookupFileModel CreateCompanyLookupFile(Int32 accountId, Int3 var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/companies/{companyId}/lookupFiles"); path.ApplyField("accountId", accountId); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AdvancedRuleLookupFileModel>("POST", path, model); } @@ -488,7 +488,7 @@ public List<ErrorDetail> DeleteLookupFile(Int32 accountId, String id) var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -507,7 +507,7 @@ public FetchResult<AdvancedRuleLookupFileModel> GetCompanyLookupFiles(Int32 acco var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/companies/{companyId}/lookupFiles"); path.ApplyField("accountId", accountId); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<AdvancedRuleLookupFileModel>>("GET", path, null); } @@ -526,7 +526,7 @@ public AdvancedRuleLookupFileModel GetLookupFile(Int32 accountId, String id) var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AdvancedRuleLookupFileModel>("GET", path, null); } @@ -546,7 +546,7 @@ public AdvancedRuleLookupFileModel UpdateLookupFile(Int32 accountId, String id, var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AdvancedRuleLookupFileModel>("PUT", path, model); } @@ -568,7 +568,7 @@ public AdvancedRuleLookupFileModel UpdateLookupFile(Int32 accountId, String id, public List<AvaFileFormModel> CreateAvaFileForms(List<AvaFileFormModel> model) { var path = new AvaTaxPath("/api/v2/avafileforms"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<AvaFileFormModel>>("POST", path, model); } @@ -590,7 +590,7 @@ public List<ErrorDetail> DeleteAvaFileForm(Int32 id) { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -612,7 +612,7 @@ public AvaFileFormModel GetAvaFileForm(Int32 id) { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AvaFileFormModel>("GET", path, null); } @@ -641,7 +641,7 @@ public FetchResult<AvaFileFormModel> QueryAvaFileForms(String filter, Int32? top path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<AvaFileFormModel>>("GET", path, null); } @@ -665,7 +665,7 @@ public AvaFileFormModel UpdateAvaFileForm(Int32 id, AvaFileFormModel model) { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AvaFileFormModel>("PUT", path, model); } @@ -699,7 +699,7 @@ public BatchModel CancelBatch(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}/cancel"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<BatchModel>("POST", path, null); } @@ -739,7 +739,7 @@ public List<BatchModel> CreateBatches(Int32 companyId, List<BatchModel> model) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<BatchModel>>("POST", path, model); } @@ -777,7 +777,7 @@ public CreateTransactionBatchResponseModel CreateTransactionBatch(Int32 companyI { var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/transactions"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CreateTransactionBatchResponseModel>("POST", path, model); } @@ -809,7 +809,7 @@ public List<ErrorDetail> DeleteBatch(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -834,7 +834,7 @@ public FileResult DownloadBatch(Int32 companyId, Int32 batchId, Int32 id) path.ApplyField("companyId", companyId); path.ApplyField("batchId", batchId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("GET", path, null); } @@ -871,7 +871,7 @@ public BatchModel GetBatch(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<BatchModel>("GET", path, null); } @@ -922,7 +922,7 @@ public FetchResult<BatchModel> ListBatchesByCompany(Int32 companyId, String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<BatchModel>>("GET", path, null); } @@ -968,7 +968,7 @@ public FetchResult<BatchModel> QueryBatches(String filter, String include, Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<BatchModel>>("GET", path, null); } @@ -1007,7 +1007,7 @@ public List<CertExpressInvitationStatusModel> CreateCertExpressInvitation(Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certexpressinvites"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CertExpressInvitationStatusModel>>("POST", path, model); } @@ -1049,7 +1049,7 @@ public CertExpressInvitationModel GetCertExpressInvitation(Int32 companyId, Stri path.ApplyField("customerCode", customerCode); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CertExpressInvitationModel>("GET", path, null); } @@ -1097,7 +1097,7 @@ public FetchResult<CertExpressInvitationModel> ListCertExpressInvitations(Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertExpressInvitationModel>>("GET", path, null); } @@ -1142,7 +1142,7 @@ public List<CertificateModel> CreateCertificates(Int32 companyId, Boolean? preVa var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates"); path.ApplyField("companyId", companyId); path.AddQuery("$preValidatedExemptionReason", preValidatedExemptionReason); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CertificateModel>>("POST", path, model); } @@ -1178,7 +1178,7 @@ public List<ErrorDetail> DeleteCertificate(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -1219,7 +1219,7 @@ public FileResult DownloadCertificateImage(Int32 companyId, Int32 id, Int32? pag path.ApplyField("id", id); path.AddQuery("$page", page); path.AddQuery("$type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("GET", path, null); } @@ -1265,7 +1265,7 @@ public CertificateModel GetCertificate(Int32 companyId, Int32 id, String include path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CertificateModel>("GET", path, null); } @@ -1293,7 +1293,7 @@ public ProvisionStatusModel GetCertificateSetup(Int32 companyId) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/setup"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ProvisionStatusModel>("GET", path, null); } @@ -1331,7 +1331,7 @@ public FetchResult<CertificateAttributeModel> LinkAttributesToCertificate(Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes/link"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateAttributeModel>>("POST", path, model); } @@ -1370,7 +1370,7 @@ public FetchResult<CustomerModel> LinkCustomersToCertificate(Int32 companyId, In var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/customers/link"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerModel>>("POST", path, model); } @@ -1407,7 +1407,7 @@ public FetchResult<CertificateAttributeModel> ListAttributesForCertificate(Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateAttributeModel>>("GET", path, null); } @@ -1447,7 +1447,7 @@ public FetchResult<CustomerModel> ListCustomersForCertificate(Int32 companyId, I path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerModel>>("GET", path, null); } @@ -1499,7 +1499,7 @@ public FetchResult<CertificateModel> QueryCertificates(Int32 companyId, String i path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateModel>>("GET", path, null); } @@ -1529,7 +1529,7 @@ public ProvisionStatusModel RequestCertificateSetup(Int32 companyId) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/setup"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ProvisionStatusModel>("POST", path, null); } @@ -1567,7 +1567,7 @@ public FetchResult<CertificateAttributeModel> UnlinkAttributesFromCertificate(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateAttributeModel>>("POST", path, model); } @@ -1607,7 +1607,7 @@ public FetchResult<CustomerModel> UnlinkCustomersFromCertificate(Int32 companyId var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/customers/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerModel>>("POST", path, model); } @@ -1642,7 +1642,7 @@ public CertificateModel UpdateCertificate(Int32 companyId, Int32 id, Certificate var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CertificateModel>("PUT", path, model); } @@ -1680,7 +1680,7 @@ public String UploadCertificateImage(Int32 companyId, Int32 id, FileResult file) var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attachment"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("POST", path, file); } @@ -1723,7 +1723,7 @@ public String CertifyIntegration(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/certify"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("GET", path, null); } @@ -1757,7 +1757,7 @@ public String ChangeFilingStatus(Int32 id, FilingStatusChangeModel model) { var path = new AvaTaxPath("/api/v2/companies/{id}/filingstatus"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("POST", path, model); } @@ -1788,7 +1788,7 @@ public String ChangeFilingStatus(Int32 id, FilingStatusChangeModel model) public CompanyModel CompanyInitialize(CompanyInitializationModel model) { var path = new AvaTaxPath("/api/v2/companies/initialize"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyModel>("POST", path, model); } @@ -1812,7 +1812,7 @@ public CompanyModel CompanyInitialize(CompanyInitializationModel model) public List<CompanyModel> CreateCompanies(List<CompanyModel> model) { var path = new AvaTaxPath("/api/v2/companies"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyModel>>("POST", path, model); } @@ -1844,7 +1844,7 @@ public List<CompanyParameterDetailModel> CreateCompanyParameters(Int32 companyId { var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyParameterDetailModel>>("POST", path, model); } @@ -1876,7 +1876,7 @@ public FundingStatusModel CreateFundingRequest(Int32 id, FundingInitiateModel mo { var path = new AvaTaxPath("/api/v2/companies/{id}/funding/setup"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FundingStatusModel>("POST", path, model); } @@ -1897,7 +1897,7 @@ public List<ErrorDetail> DeleteCompany(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -1925,7 +1925,7 @@ public List<ErrorDetail> DeleteCompanyParameter(Int32 companyId, Int64 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -1950,7 +1950,7 @@ public FundingConfigurationModel FundingConfigurationByCompany(Int32 companyId) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/funding/configuration"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FundingConfigurationModel>("GET", path, null); } @@ -1977,7 +1977,7 @@ public List<FundingConfigurationModel> FundingConfigurationsByCompanyAndCurrency var path = new AvaTaxPath("/api/v2/companies/{companyId}/funding/configurations"); path.ApplyField("companyId", companyId); path.AddQuery("currency", currency); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<FundingConfigurationModel>>("GET", path, null); } @@ -2015,7 +2015,7 @@ public CompanyModel GetCompany(Int32 id, String include) var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyModel>("GET", path, null); } @@ -2047,7 +2047,7 @@ public List<CompanyConfigurationModel> GetCompanyConfiguration(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyConfigurationModel>>("GET", path, null); } @@ -2076,7 +2076,7 @@ public CompanyParameterDetailModel GetCompanyParameterDetail(Int32 companyId, In var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyParameterDetailModel>("GET", path, null); } @@ -2110,11 +2110,40 @@ public String GetFilingStatus(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/filingstatus"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("GET", path, null); } + /// <summary> + /// Get ACH entry detail report for company and period + /// </summary> + /// <remarks> + /// This API is available by invitation only. + /// Requires a subscription to Avalara Managed Returns or SST Certified Service Provider. + /// Returns a list of ACH entry details for the given company and period. + /// Each object in the result is an ach entry trace record for a payment made on behalf of this company. + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp. + /// * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. + /// </remarks> + /// Swagger Name: AvaTaxClient + /// <param name="id">The unique identifier of the company</param> + /// <param name="periodyear">The period year</param> + /// <param name="periodmonth">The period month</param> + public List<ACHEntryDetailModel> ListACHEntryDetailsForCompany(Int32 id, Int32 periodyear, Int32 periodmonth) + { + var path = new AvaTaxPath("/api/v2/companies/{id}/paymentdetails/{periodyear}/{periodmonth}"); + path.ApplyField("id", id); + path.ApplyField("periodyear", periodyear); + path.ApplyField("periodmonth", periodmonth); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); + return RestCall<List<ACHEntryDetailModel>>("GET", path, null); + } + + /// <summary> /// Retrieve parameters for a company /// </summary> @@ -2148,7 +2177,7 @@ public FetchResult<CompanyParameterDetailModel> ListCompanyParameterDetails(Int3 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CompanyParameterDetailModel>>("GET", path, null); } @@ -2173,7 +2202,7 @@ public List<FundingStatusModel> ListFundingRequestsByCompany(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/funding"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<FundingStatusModel>>("GET", path, null); } @@ -2194,7 +2223,7 @@ public List<FundingStatusModel> ListFundingRequestsByCompany(Int32 id) public FetchResult<MrsCompanyModel> ListMrsCompanies() { var path = new AvaTaxPath("/api/v2/companies/mrs"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<MrsCompanyModel>>("GET", path, null); } @@ -2239,7 +2268,7 @@ public FetchResult<CompanyModel> QueryCompanies(String include, String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CompanyModel>>("GET", path, null); } @@ -2272,7 +2301,7 @@ public List<CompanyConfigurationModel> SetCompanyConfiguration(Int32 id, List<Co { var path = new AvaTaxPath("/api/v2/companies/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyConfigurationModel>>("POST", path, model); } @@ -2304,7 +2333,7 @@ public CompanyModel UpdateCompany(Int32 id, CompanyModel model) { var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyModel>("PUT", path, model); } @@ -2334,7 +2363,7 @@ public CompanyParameterDetailModel UpdateCompanyParameterDetail(Int32 companyId, var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyParameterDetailModel>("PUT", path, model); } @@ -2369,7 +2398,7 @@ public ComplianceJurisdictionRateModel QueryTaxAuthorityJurisdictionRates(Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ComplianceJurisdictionRateModel>("GET", path, null); } @@ -2393,7 +2422,7 @@ public List<ContactModel> CreateContacts(Int32 companyId, List<ContactModel> mod { var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ContactModel>>("POST", path, model); } @@ -2416,7 +2445,7 @@ public List<ErrorDetail> DeleteContact(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -2441,7 +2470,7 @@ public ContactModel GetContact(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ContactModel>("GET", path, null); } @@ -2473,7 +2502,7 @@ public FetchResult<ContactModel> ListContactsByCompany(Int32 companyId, String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ContactModel>>("GET", path, null); } @@ -2505,7 +2534,7 @@ public FetchResult<ContactModel> QueryContacts(String filter, Int32? top, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ContactModel>>("GET", path, null); } @@ -2533,7 +2562,7 @@ public ContactModel UpdateContact(Int32 companyId, Int32 id, ContactModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ContactModel>("PUT", path, model); } @@ -2570,7 +2599,7 @@ public List<CustomerModel> CreateCustomers(Int32 companyId, List<CustomerModel> { var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CustomerModel>>("POST", path, model); } @@ -2605,7 +2634,7 @@ public CustomerModel 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,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CustomerModel>("DELETE", path, null); } @@ -2648,7 +2677,7 @@ public CustomerModel GetCustomer(Int32 companyId, String customerCode, String in path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CustomerModel>("GET", path, null); } @@ -2687,7 +2716,7 @@ public FetchResult<CustomerAttributeModel> LinkAttributesToCustomer(Int32 compan var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes/link"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerAttributeModel>>("PUT", path, model); } @@ -2723,7 +2752,7 @@ public FetchResult<CertificateModel> LinkCertificatesToCustomer(Int32 companyId, var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certificates/link"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateModel>>("POST", path, model); } @@ -2760,7 +2789,7 @@ public CustomerModel LinkShipToCustomersToBillCustomer(Int32 companyId, String c var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/billto/{code}/shipto/link"); path.ApplyField("companyId", companyId); path.ApplyField("code", code); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CustomerModel>("POST", path, model); } @@ -2798,7 +2827,7 @@ public FetchResult<CustomerAttributeModel> ListAttributesForCustomer(Int32 compa var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerAttributeModel>>("GET", path, null); } @@ -2847,7 +2876,7 @@ public FetchResult<CertificateModel> ListCertificatesForCustomer(Int32 companyId path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateModel>>("GET", path, null); } @@ -2889,7 +2918,7 @@ public ExemptionStatusModel ListValidCertificatesForCustomer(Int32 companyId, St path.ApplyField("customerCode", customerCode); path.ApplyField("country", country); path.ApplyField("region", region); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ExemptionStatusModel>("GET", path, null); } @@ -2937,7 +2966,7 @@ public FetchResult<CustomerModel> QueryCustomers(Int32 companyId, String include path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerModel>>("GET", path, null); } @@ -2976,7 +3005,7 @@ public FetchResult<CustomerAttributeModel> UnlinkAttributesFromCustomer(Int32 co var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CustomerAttributeModel>>("PUT", path, model); } @@ -3012,7 +3041,7 @@ public FetchResult<CertificateModel> UnlinkCertificatesFromCustomer(Int32 compan var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certificates/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateModel>>("POST", path, model); } @@ -3048,7 +3077,7 @@ public CustomerModel UpdateCustomer(Int32 companyId, String customerCode, Custom 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,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CustomerModel>("PUT", path, model); } @@ -3071,7 +3100,7 @@ public List<DataSourceModel> CreateDataSources(Int32 companyId, List<DataSourceM { var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<DataSourceModel>>("POST", path, model); } @@ -3095,7 +3124,7 @@ public List<ErrorDetail> DeleteDataSource(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -3119,7 +3148,7 @@ public DataSourceModel GetDataSourceById(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<DataSourceModel>("GET", path, null); } @@ -3149,7 +3178,7 @@ public FetchResult<DataSourceModel> ListDataSources(Int32 companyId, String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<DataSourceModel>>("GET", path, null); } @@ -3180,7 +3209,7 @@ public FetchResult<DataSourceModel> QueryDataSources(String filter, Int32? top, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<DataSourceModel>>("GET", path, null); } @@ -3205,7 +3234,7 @@ public DataSourceModel UpdateDataSource(Int32 companyId, Int32 id, DataSourceMod var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<DataSourceModel>("PUT", path, model); } @@ -3237,7 +3266,7 @@ public FetchResult<HsCodeModel> GetCrossBorderCode(String country, String hsCode var path = new AvaTaxPath("/api/v2/definitions/crossborder/{country}/{hsCode}/hierarchy"); path.ApplyField("country", country); path.ApplyField("hsCode", hsCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<HsCodeModel>>("GET", path, null); } @@ -3263,7 +3292,7 @@ public FetchResult<SkyscraperStatusModel> GetLoginVerifierByForm(String form, St path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SkyscraperStatusModel>>("GET", path, null); } @@ -3286,7 +3315,7 @@ public FetchResult<MarketplaceModel> ListAllMarketplaceLocations(String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<MarketplaceModel>>("GET", path, null); } @@ -3314,7 +3343,7 @@ public FetchResult<AvaFileFormModel> ListAvaFileForms(String filter, Int32? top, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<AvaFileFormModel>>("GET", path, null); } @@ -3345,7 +3374,7 @@ public FetchResult<CertificateAttributeModel> ListCertificateAttributes(Int32? c path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CertificateAttributeModel>>("GET", path, null); } @@ -3374,7 +3403,7 @@ public FetchResult<ExemptionReasonModel> ListCertificateExemptReasons(String fil path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ExemptionReasonModel>>("GET", path, null); } @@ -3403,7 +3432,7 @@ public FetchResult<ExposureZoneModel> ListCertificateExposureZones(String filter path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ExposureZoneModel>>("GET", path, null); } @@ -3428,7 +3457,7 @@ public FetchResult<ClassificationParameterUsageMapModel> ListClassificationParam path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ClassificationParameterUsageMapModel>>("GET", path, null); } @@ -3453,7 +3482,7 @@ public FetchResult<CommunicationsTSPairModel> ListCommunicationsServiceTypes(Int path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CommunicationsTSPairModel>>("GET", path, null); } @@ -3477,7 +3506,7 @@ public FetchResult<CommunicationsTransactionTypeModel> ListCommunicationsTransac path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CommunicationsTransactionTypeModel>>("GET", path, null); } @@ -3501,7 +3530,7 @@ public FetchResult<CommunicationsTSPairModel> ListCommunicationsTSPairs(String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CommunicationsTSPairModel>>("GET", path, null); } @@ -3526,7 +3555,7 @@ public FetchResult<IsoCountryModel> ListCountries(String filter, Int32? top, Int path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<IsoCountryModel>>("GET", path, null); } @@ -3556,7 +3585,7 @@ public FetchResult<CoverLetterModel> ListCoverLetters(String filter, Int32? top, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CoverLetterModel>>("GET", path, null); } @@ -3594,7 +3623,7 @@ public FetchResult<HsCodeModel> ListCrossBorderCodes(String country, String hsCo path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<HsCodeModel>>("GET", path, null); } @@ -3618,7 +3647,7 @@ public FetchResult<HsCodeModel> ListCrossBorderCodes(String country, String hsCo public FetchResult<HsCodeModel> ListCrossBorderSections() { var path = new AvaTaxPath("/api/v2/definitions/crossborder/sections"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<HsCodeModel>>("GET", path, null); } @@ -3644,7 +3673,7 @@ public FetchResult<CurrencyModel> ListCurrencies(String filter, Int32? top, Int3 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CurrencyModel>>("GET", path, null); } @@ -3671,7 +3700,7 @@ public FetchResult<EntityUseCodeModel> ListEntityUseCodes(String filter, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<EntityUseCodeModel>>("GET", path, null); } @@ -3695,7 +3724,7 @@ public FetchResult<FilingFrequencyModel> ListFilingFrequencies(String filter, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<FilingFrequencyModel>>("GET", path, null); } @@ -3723,7 +3752,7 @@ public FetchResult<JurisdictionModel> ListJurisdictions(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<JurisdictionModel>>("GET", path, null); } @@ -3766,7 +3795,7 @@ public FetchResult<JurisdictionOverrideModel> ListJurisdictionsByAddress(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<JurisdictionOverrideModel>>("GET", path, null); } @@ -3804,7 +3833,7 @@ public FetchResult<JurisdictionRateTypeTaxTypeMappingModel> ListJurisdictionsByR path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<JurisdictionRateTypeTaxTypeMappingModel>>("GET", path, null); } @@ -3850,7 +3879,7 @@ public FetchResult<LocationQuestionModel> ListLocationQuestionsByAddress(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<LocationQuestionModel>>("GET", path, null); } @@ -3875,7 +3904,7 @@ public FetchResult<SkyscraperStatusModel> ListLoginVerifiers(String filter, Int3 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SkyscraperStatusModel>>("GET", path, null); } @@ -3898,7 +3927,7 @@ public FetchResult<MarketplaceLocationModel> ListMarketplaceLocations(String mar path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<MarketplaceLocationModel>>("GET", path, null); } @@ -3923,7 +3952,7 @@ public FetchResult<NexusModel> ListNexus(String filter, Int32? top, Int32? skip, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -3979,7 +4008,7 @@ public FetchResult<NexusModel> ListNexusByAddress(String line1, String line2, St path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -4006,7 +4035,7 @@ public FetchResult<NexusModel> ListNexusByCountry(String country, String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -4035,7 +4064,7 @@ public FetchResult<NexusModel> ListNexusByCountryAndRegion(String country, Strin path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -4066,7 +4095,7 @@ public NexusByTaxFormModel ListNexusByFormCode(String formCode) { var path = new AvaTaxPath("/api/v2/definitions/nexus/byform/{formCode}"); path.ApplyField("formCode", formCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusByTaxFormModel>("GET", path, null); } @@ -4093,7 +4122,7 @@ public FetchResult<NexusModel> ListNexusByTaxTypeGroup(String taxTypeGroup, Stri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -4117,7 +4146,7 @@ public FetchResult<NexusTaxTypeGroupModel> ListNexusTaxTypeGroups(String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusTaxTypeGroupModel>>("GET", path, null); } @@ -4141,7 +4170,7 @@ public FetchResult<NoticeCustomerFundingOptionModel> ListNoticeCustomerFundingOp path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeCustomerFundingOptionModel>>("GET", path, null); } @@ -4165,7 +4194,7 @@ public FetchResult<NoticeCustomerTypeModel> ListNoticeCustomerTypes(String filte path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeCustomerTypeModel>>("GET", path, null); } @@ -4189,7 +4218,7 @@ public FetchResult<NoticeFilingTypeModel> ListNoticeFilingtypes(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeFilingTypeModel>>("GET", path, null); } @@ -4213,7 +4242,7 @@ public FetchResult<NoticePriorityModel> ListNoticePriorities(String filter, Int3 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticePriorityModel>>("GET", path, null); } @@ -4237,7 +4266,7 @@ public FetchResult<NoticeReasonModel> ListNoticeReasons(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeReasonModel>>("GET", path, null); } @@ -4261,7 +4290,7 @@ public FetchResult<NoticeResponsibilityModel> ListNoticeResponsibilities(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeResponsibilityModel>>("GET", path, null); } @@ -4285,7 +4314,7 @@ public FetchResult<NoticeRootCauseModel> ListNoticeRootCauses(String filter, Int path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeRootCauseModel>>("GET", path, null); } @@ -4309,7 +4338,7 @@ public FetchResult<NoticeStatusModel> ListNoticeStatuses(String filter, Int32? t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeStatusModel>>("GET", path, null); } @@ -4333,7 +4362,7 @@ public FetchResult<NoticeTypeModel> ListNoticeTypes(String filter, Int32? top, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NoticeTypeModel>>("GET", path, null); } @@ -4358,7 +4387,7 @@ public FetchResult<ParameterModel> ListParameters(String filter, Int32? top, Int path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ParameterModel>>("GET", path, null); } @@ -4398,7 +4427,7 @@ public FetchResult<ParameterModel> ListParametersByItem(String companyCode, Stri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ParameterModel>>("GET", path, null); } @@ -4423,7 +4452,7 @@ public FetchResult<ParameterUsageModel> ListParametersUsage(String filter, Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ParameterUsageModel>>("GET", path, null); } @@ -4443,7 +4472,7 @@ public FetchResult<String> ListPermissions(Int32? top, Int32? skip) var path = new AvaTaxPath("/api/v2/definitions/permissions"); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<String>>("GET", path, null); } @@ -4466,7 +4495,7 @@ public FetchResult<PostalCodeModel> ListPostalCodes(String filter, Int32? top, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<PostalCodeModel>>("GET", path, null); } @@ -4497,7 +4526,7 @@ public FetchResult<PreferredProgramModel> ListPreferredPrograms(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<PreferredProgramModel>>("GET", path, null); } @@ -4525,7 +4554,7 @@ public FetchResult<ProductClassificationSystemModel> ListProductClassificationSy path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("$countryCode", countryCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ProductClassificationSystemModel>>("GET", path, null); } @@ -4563,7 +4592,7 @@ public FetchResult<ProductClassificationSystemModel> ListProductClassificationSy path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("$countryCode", countryCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ProductClassificationSystemModel>>("GET", path, null); } @@ -4589,7 +4618,7 @@ public FetchResult<RateTypeModel> ListRateTypesByCountry(String country, String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<RateTypeModel>>("GET", path, null); } @@ -4619,7 +4648,7 @@ public FetchResult<RateTypesModel> ListRateTypesByCountryTaxTypeTaxSubType(Strin path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<RateTypesModel>>("GET", path, null); } @@ -4644,7 +4673,7 @@ public FetchResult<IsoRegionModel> ListRegions(String filter, Int32? top, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<IsoRegionModel>>("GET", path, null); } @@ -4671,7 +4700,7 @@ public FetchResult<IsoRegionModel> ListRegionsByCountry(String country, String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<IsoRegionModel>>("GET", path, null); } @@ -4695,7 +4724,7 @@ public FetchResult<ResourceFileTypeModel> ListResourceFileTypes(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ResourceFileTypeModel>>("GET", path, null); } @@ -4720,7 +4749,7 @@ public FetchResult<ReturnsParameterUsageModel> ListReturnsParametersUsage(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ReturnsParameterUsageModel>>("GET", path, null); } @@ -4745,7 +4774,7 @@ public FetchResult<SecurityRoleModel> ListSecurityRoles(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SecurityRoleModel>>("GET", path, null); } @@ -4771,7 +4800,7 @@ public FetchResult<SubscriptionTypeModel> ListSubscriptionTypes(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SubscriptionTypeModel>>("GET", path, null); } @@ -4794,7 +4823,7 @@ public FetchResult<TagsModel> ListTags(String filter, Int32? top, Int32? skip, S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TagsModel>>("GET", path, null); } @@ -4818,7 +4847,7 @@ public FetchResult<TaxAuthorityModel> ListTaxAuthorities(String filter, Int32? t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxAuthorityModel>>("GET", path, null); } @@ -4844,7 +4873,7 @@ public FetchResult<TaxAuthorityFormModel> ListTaxAuthorityForms(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxAuthorityFormModel>>("GET", path, null); } @@ -4868,7 +4897,7 @@ public FetchResult<TaxAuthorityTypeModel> ListTaxAuthorityTypes(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxAuthorityTypeModel>>("GET", path, null); } @@ -4899,7 +4928,7 @@ public FetchResult<TaxCodeModel> ListTaxCodes(String filter, Int32? top, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxCodeModel>>("GET", path, null); } @@ -4920,7 +4949,7 @@ public TaxCodeTypesModel ListTaxCodeTypes(Int32? top, Int32? skip) var path = new AvaTaxPath("/api/v2/definitions/taxcodetypes"); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxCodeTypesModel>("GET", path, null); } @@ -4944,7 +4973,7 @@ public FetchResult<FormMasterModel> ListTaxForms(String filter, Int32? top, Int3 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<FormMasterModel>>("GET", path, null); } @@ -4968,7 +4997,7 @@ public FetchResult<TaxSubTypeModel> ListTaxSubTypes(String filter, Int32? top, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxSubTypeModel>>("GET", path, null); } @@ -4996,7 +5025,7 @@ public FetchResult<TaxSubTypeModel> ListTaxSubTypesByCountryAndTaxType(String co path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxSubTypeModel>>("GET", path, null); } @@ -5024,7 +5053,7 @@ public FetchResult<TaxSubTypeModel> ListTaxSubTypesByJurisdictionAndRegion(Strin path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxSubTypeModel>>("GET", path, null); } @@ -5048,7 +5077,7 @@ public FetchResult<TaxTypeGroupModel> ListTaxTypeGroups(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxTypeGroupModel>>("GET", path, null); } @@ -5073,7 +5102,7 @@ public FetchResult<TaxTypeModel> ListTaxTypesByNexusAndCountry(String country, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxTypeModel>>("GET", path, null); } @@ -5102,7 +5131,7 @@ public FetchResult<UnitOfBasisModel> ListUnitOfBasisByCountryAndTaxTypeAndTaxSub path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UnitOfBasisModel>>("GET", path, null); } @@ -5127,7 +5156,7 @@ public FetchResult<UomModel> ListUnitOfMeasurement(String filter, Int32? top, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UomModel>>("GET", path, null); } @@ -5153,7 +5182,7 @@ public List<CompanyDistanceThresholdModel> CreateDistanceThreshold(Int32 company { var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyDistanceThresholdModel>>("POST", path, model); } @@ -5180,7 +5209,7 @@ public List<ErrorDetail> DeleteDistanceThreshold(Int32 companyId, Int64 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -5207,7 +5236,7 @@ public CompanyDistanceThresholdModel GetDistanceThreshold(Int32 companyId, Int64 var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyDistanceThresholdModel>("GET", path, null); } @@ -5242,7 +5271,7 @@ public FetchResult<CompanyDistanceThresholdModel> ListDistanceThresholds(Int32 c path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CompanyDistanceThresholdModel>>("GET", path, null); } @@ -5278,7 +5307,7 @@ public FetchResult<CompanyDistanceThresholdModel> QueryDistanceThresholds(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CompanyDistanceThresholdModel>>("GET", path, null); } @@ -5309,7 +5338,7 @@ public CompanyDistanceThresholdModel UpdateDistanceThreshold(Int32 companyId, In var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyDistanceThresholdModel>("PUT", path, model); } @@ -5333,7 +5362,7 @@ public ECommerceTokenOutputModel CreateECommerceToken(Int32 companyId, CreateECo { var path = new AvaTaxPath("/api/v2/companies/{companyId}/ecommercetokens"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ECommerceTokenOutputModel>("POST", path, model); } @@ -5357,7 +5386,7 @@ public FetchResult<ECommerceTokenOutputModel> RefreshECommerceToken(Int32 compan { var path = new AvaTaxPath("/api/v2/companies/{companyId}/ecommercetokens"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ECommerceTokenOutputModel>>("PUT", path, model); } @@ -5382,7 +5411,7 @@ public CycleSafeOptionResultModel CycleSafeOptions(Int32 companyId, CycleSafeEdi { var path = new AvaTaxPath("/api/v2/companies/{companyId}/filingcalendars/edit/cycleSafeOptions"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CycleSafeOptionResultModel>("POST", path, model); } @@ -5408,7 +5437,7 @@ public List<CompanyReturnSettingModel> DeleteCompanyReturnSettings(Int32 company path.ApplyField("companyId", companyId); path.ApplyField("filingCalendarId", filingCalendarId); path.ApplyField("companyReturnSettingId", companyReturnSettingId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<CompanyReturnSettingModel>>("DELETE", path, null); } @@ -5442,7 +5471,7 @@ public FetchResult<FilingCalendarModel> LegacyFilingCalendars(Int32 companyId, S path.AddQuery("$orderBy", orderBy); path.AddQuery("returnCountry", returnCountry); path.AddQuery("returnRegion", returnRegion); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<FilingCalendarModel>>("GET", path, null); } @@ -5464,7 +5493,7 @@ public FetchResult<MultiTaxFilingModel> GetAccrualFilings(Int32 companyId, Int64 var path = new AvaTaxPath("/api/v2/companies/{companyId}/filings/accrual/{filingReturnId}"); path.ApplyField("companyId", companyId); path.ApplyField("filingReturnId", filingReturnId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<MultiTaxFilingModel>>("GET", path, null); } @@ -5502,7 +5531,7 @@ public FetchResult<FiledReturnModel> GetFiledReturns(Int32 companyId, Int32? end path.AddQuery("region", region); path.AddQuery("filingCalendarId", filingCalendarId); path.AddQuery("taxformCode", taxformCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<FiledReturnModel>>("GET", path, null); } @@ -5523,7 +5552,7 @@ public FirmClientLinkageOutputModel ApproveFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/approve"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, null); } @@ -5552,7 +5581,7 @@ public FirmClientLinkageOutputModel ApproveFirmClientLinkage(Int32 id) public FirmClientLinkageOutputModel CreateAndLinkNewFirmClientAccount(NewFirmClientAccountRequestModel model) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/createandlinkclient"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, model); } @@ -5572,7 +5601,7 @@ public FirmClientLinkageOutputModel CreateAndLinkNewFirmClientAccount(NewFirmCli public FirmClientLinkageOutputModel CreateFirmClientLinkage(FirmClientLinkageInputModel model) { var path = new AvaTaxPath("/api/v2/firmclientlinkages"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, model); } @@ -5593,7 +5622,7 @@ public List<ErrorDetail> DeleteFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -5614,7 +5643,7 @@ public FirmClientLinkageOutputModel GetFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("GET", path, null); } @@ -5635,7 +5664,7 @@ public FetchResult<FirmClientLinkageOutputModel> ListFirmClientLinkage(String fi { var path = new AvaTaxPath("/api/v2/firmclientlinkages"); path.AddQuery("$filter", filter); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<FirmClientLinkageOutputModel>>("GET", path, null); } @@ -5656,7 +5685,7 @@ public FirmClientLinkageOutputModel RejectFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/reject"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, null); } @@ -5677,7 +5706,7 @@ public FirmClientLinkageOutputModel ResetFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/reset"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, null); } @@ -5698,7 +5727,7 @@ public FirmClientLinkageOutputModel RevokeFirmClientLinkage(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/revoke"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FirmClientLinkageOutputModel>("POST", path, null); } @@ -5727,7 +5756,7 @@ public FirmClientLinkageOutputModel RevokeFirmClientLinkage(Int32 id) public NewAccountModel RequestFreeTrial(FreeTrialRequestModel model) { var path = new AvaTaxPath("/api/v2/accounts/freetrials/request"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NewAccountModel>("POST", path, model); } @@ -5760,7 +5789,7 @@ public FundingStatusModel ActivateFundingRequest(Int64 id) { var path = new AvaTaxPath("/api/v2/fundingrequests/{id}/widget"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FundingStatusModel>("GET", path, null); } @@ -5791,7 +5820,7 @@ public FundingStatusModel FundingRequestStatus(Int32 id) { var path = new AvaTaxPath("/api/v2/fundingrequests/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FundingStatusModel>("GET", path, null); } @@ -5818,7 +5847,7 @@ public List<ErrorDetail> BatchDeleteItemClassifications(Int32 companyId, Int64 i var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/classifications"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -5847,7 +5876,7 @@ public List<ErrorDetail> BatchDeleteItemParameters(Int32 companyId, Int64 itemId var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -5877,7 +5906,7 @@ public ItemBulkUploadOutputModel BulkUploadItems(Int32 companyId, ItemBulkUpload { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/upload"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemBulkUploadOutputModel>("POST", path, model); } @@ -5907,7 +5936,7 @@ public List<ItemClassificationOutputModel> CreateItemClassifications(Int32 compa var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/classifications"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ItemClassificationOutputModel>>("POST", path, model); } @@ -5941,7 +5970,7 @@ public List<ItemParameterModel> CreateItemParameters(Int32 companyId, Int64 item var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ItemParameterModel>>("POST", path, model); } @@ -5971,7 +6000,7 @@ public List<ItemModel> CreateItems(Int32 companyId, List<ItemModel> model) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ItemModel>>("POST", path, model); } @@ -5997,7 +6026,7 @@ public List<ItemTagDetailModel> CreateItemTags(Int32 companyId, Int32 itemId, Li var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/tags"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ItemTagDetailModel>>("POST", path, model); } @@ -6028,7 +6057,7 @@ public List<ErrorDetail> DeleteItem(Int32 companyId, Int64 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6057,7 +6086,7 @@ public List<ErrorDetail> DeleteItemClassification(Int32 companyId, Int64 itemId, path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6088,7 +6117,7 @@ public List<ErrorDetail> DeleteItemParameter(Int32 companyId, Int64 itemId, Int6 path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6115,7 +6144,7 @@ public List<ErrorDetail> DeleteItemTag(Int32 companyId, Int64 itemId, Int32 item path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("itemTagDetailId", itemTagDetailId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6140,7 +6169,7 @@ public List<ErrorDetail> DeleteItemTags(Int32 companyId, Int64 itemId) var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/tags"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6171,7 +6200,7 @@ public ItemModel GetItem(Int32 companyId, Int64 id, String include) path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemModel>("GET", path, null); } @@ -6200,7 +6229,7 @@ public ItemClassificationOutputModel GetItemClassification(Int32 companyId, Int6 path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemClassificationOutputModel>("GET", path, null); } @@ -6231,7 +6260,7 @@ public ItemParameterModel GetItemParameter(Int32 companyId, Int64 itemId, Int64 path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemParameterModel>("GET", path, null); } @@ -6262,7 +6291,7 @@ public FetchResult<ItemTagDetailModel> GetItemTags(Int32 companyId, Int64 itemId path.AddQuery("$filter", filter); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemTagDetailModel>>("GET", path, null); } @@ -6300,7 +6329,7 @@ public FetchResult<ItemClassificationOutputModel> ListItemClassifications(Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemClassificationOutputModel>>("GET", path, null); } @@ -6340,7 +6369,7 @@ public FetchResult<ItemParameterModel> ListItemParameters(Int32 companyId, Int64 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemParameterModel>>("GET", path, null); } @@ -6391,7 +6420,7 @@ public FetchResult<ItemModel> ListItemsByCompany(Int32 companyId, String filter, path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("tagName", tagName); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemModel>>("GET", path, null); } @@ -6430,7 +6459,7 @@ public FetchResult<ItemModel> QueryItems(String filter, String include, Int32? t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemModel>>("GET", path, null); } @@ -6473,7 +6502,7 @@ public FetchResult<ItemModel> QueryItemsByTag(Int32 companyId, String tag, Strin path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ItemModel>>("GET", path, null); } @@ -6506,7 +6535,7 @@ public SyncItemsResponseModel SyncItems(Int32 companyId, SyncItemsRequestModel m { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/sync"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SyncItemsResponseModel>("POST", path, model); } @@ -6541,7 +6570,7 @@ public ItemModel UpdateItem(Int32 companyId, Int64 id, ItemModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemModel>("PUT", path, model); } @@ -6573,7 +6602,7 @@ public ItemClassificationOutputModel UpdateItemClassification(Int32 companyId, I path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemClassificationOutputModel>("PUT", path, model); } @@ -6605,7 +6634,7 @@ public ItemParameterModel UpdateItemParameter(Int32 companyId, Int64 itemId, Int path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ItemParameterModel>("PUT", path, model); } @@ -6632,7 +6661,7 @@ public List<JurisdictionOverrideModel> CreateJurisdictionOverrides(Int32 account { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<JurisdictionOverrideModel>>("POST", path, model); } @@ -6655,7 +6684,7 @@ public List<ErrorDetail> DeleteJurisdictionOverride(Int32 accountId, Int32 id) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6683,7 +6712,7 @@ public JurisdictionOverrideModel GetJurisdictionOverride(Int32 accountId, Int32 var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<JurisdictionOverrideModel>("GET", path, null); } @@ -6722,7 +6751,7 @@ public FetchResult<JurisdictionOverrideModel> ListJurisdictionOverridesByAccount path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<JurisdictionOverrideModel>>("GET", path, null); } @@ -6759,7 +6788,7 @@ public FetchResult<JurisdictionOverrideModel> QueryJurisdictionOverrides(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<JurisdictionOverrideModel>>("GET", path, null); } @@ -6783,7 +6812,7 @@ public JurisdictionOverrideModel UpdateJurisdictionOverride(Int32 accountId, Int var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<JurisdictionOverrideModel>("PUT", path, model); } @@ -6817,7 +6846,7 @@ public List<LocationParameterModel> CreateLocationParameters(Int32 companyId, In var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{locationId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<LocationParameterModel>>("POST", path, model); } @@ -6839,7 +6868,7 @@ public List<LocationModel> CreateLocations(Int32 companyId, List<LocationModel> { var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<LocationModel>>("POST", path, model); } @@ -6862,7 +6891,7 @@ public List<ErrorDetail> DeleteLocation(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6893,7 +6922,7 @@ public List<ErrorDetail> DeleteLocationParameter(Int32 companyId, Int32 location path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -6927,7 +6956,7 @@ public LocationModel GetLocation(Int32 companyId, Int32 id, String include) path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LocationModel>("GET", path, null); } @@ -6958,7 +6987,7 @@ public LocationParameterModel GetLocationParameter(Int32 companyId, Int32 locati path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LocationParameterModel>("GET", path, null); } @@ -6998,7 +7027,7 @@ public FetchResult<LocationParameterModel> ListLocationParameters(Int32 companyI path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<LocationParameterModel>>("GET", path, null); } @@ -7040,7 +7069,7 @@ public FetchResult<LocationModel> ListLocationsByCompany(Int32 companyId, String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<LocationModel>>("GET", path, null); } @@ -7081,7 +7110,7 @@ public FetchResult<LocationModel> QueryLocations(String filter, String include, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<LocationModel>>("GET", path, null); } @@ -7107,7 +7136,7 @@ public LocationModel UpdateLocation(Int32 companyId, Int32 id, LocationModel mod var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LocationModel>("PUT", path, model); } @@ -7139,7 +7168,7 @@ public LocationParameterModel UpdateLocationParameter(Int32 companyId, Int32 loc path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LocationParameterModel>("PUT", path, model); } @@ -7164,7 +7193,7 @@ public LocationValidationModel ValidateLocation(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}/validate"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<LocationValidationModel>("GET", path, null); } @@ -7208,7 +7237,7 @@ public MultiDocumentModel AdjustMultiDocumentTransaction(String code, DocumentTy path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7253,7 +7282,7 @@ public AuditMultiDocumentModel AuditMultiDocumentTransaction(String code, Docume var path = new AvaTaxPath("/api/v2/transactions/multidocument/{code}/type/{type}/audit"); path.ApplyField("code", code); path.ApplyField("type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AuditMultiDocumentModel>("GET", path, null); } @@ -7289,7 +7318,7 @@ public AuditMultiDocumentModel AuditMultiDocumentTransaction(String code, Docume public MultiDocumentModel CommitMultiDocumentTransaction(CommitMultiDocumentModel model) { var path = new AvaTaxPath("/api/v2/transactions/multidocument/commit"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7351,7 +7380,7 @@ public MultiDocumentModel CreateMultiDocumentTransaction(String include, CreateM { var path = new AvaTaxPath("/api/v2/transactions/multidocument"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7396,7 +7425,7 @@ public MultiDocumentModel GetMultiDocumentTransactionByCodeAndType(String code, path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("GET", path, null); } @@ -7448,7 +7477,7 @@ public MultiDocumentModel GetMultiDocumentTransactionById(Int64 id, String inclu var path = new AvaTaxPath("/api/v2/transactions/multidocument/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("GET", path, null); } @@ -7504,7 +7533,7 @@ public FetchResult<MultiDocumentModel> ListMultiDocumentTransactions(String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<MultiDocumentModel>>("GET", path, null); } @@ -7574,7 +7603,7 @@ public MultiDocumentModel RefundMultiDocumentTransaction(String code, DocumentTy path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7608,7 +7637,7 @@ public MultiDocumentModel RefundMultiDocumentTransaction(String code, DocumentTy public MultiDocumentModel VerifyMultiDocumentTransaction(VerifyMultiDocumentModel model) { var path = new AvaTaxPath("/api/v2/transactions/multidocument/verify"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7649,7 +7678,7 @@ public MultiDocumentModel VoidMultiDocumentTransaction(String code, DocumentType var path = new AvaTaxPath("/api/v2/transactions/multidocument/{code}/type/{type}/void"); path.ApplyField("code", code); path.ApplyField("type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<MultiDocumentModel>("POST", path, model); } @@ -7689,7 +7718,7 @@ public List<NexusModel> CreateNexus(Int32 companyId, List<NexusModel> model) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<NexusModel>>("POST", path, model); } @@ -7722,7 +7751,7 @@ public List<NexusParameterDetailModel> CreateNexusParameters(Int32 companyId, In var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{nexusId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<NexusParameterDetailModel>>("POST", path, model); } @@ -7758,7 +7787,7 @@ public List<NexusByAddressModel> DeclareNexusByAddress(Int32 companyId, List<Dec { var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/byaddress"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<NexusByAddressModel>>("POST", path, model); } @@ -7790,7 +7819,7 @@ public List<ErrorDetail> DeleteNexus(Int32 companyId, Int32 id, Boolean? cascade path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("cascadeDelete", cascadeDelete); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -7820,7 +7849,7 @@ public List<ErrorDetail> DeleteNexusParameter(Int32 companyId, Int32 nexusId, In path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -7848,7 +7877,7 @@ public List<ErrorDetail> DeleteNexusParameters(Int32 companyId, Int32 nexusId) var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{nexusId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -7880,7 +7909,7 @@ public NexusModel GetNexus(Int32 companyId, Int32 id, String include) path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusModel>("GET", path, null); } @@ -7916,7 +7945,7 @@ public NexusByTaxFormModel GetNexusByFormCode(Int32 companyId, String formCode, path.ApplyField("companyId", companyId); path.ApplyField("formCode", formCode); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusByTaxFormModel>("GET", path, null); } @@ -7946,7 +7975,7 @@ public NexusParameterDetailModel GetNexusParameter(Int32 companyId, Int32 nexusI path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusParameterDetailModel>("GET", path, null); } @@ -7987,7 +8016,7 @@ public FetchResult<NexusModel> ListNexusByCompany(Int32 companyId, String filter path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -8030,7 +8059,7 @@ public FetchResult<NexusModel> ListNexusByCompanyAndTaxTypeGroup(Int32 companyId path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -8069,7 +8098,7 @@ public FetchResult<NexusParameterDetailModel> ListNexusParameters(Int32 companyI path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusParameterDetailModel>>("GET", path, null); } @@ -8108,7 +8137,7 @@ public FetchResult<NexusModel> QueryNexus(String filter, String include, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NexusModel>>("GET", path, null); } @@ -8150,7 +8179,7 @@ public NexusModel UpdateNexus(Int32 companyId, Int32 id, NexusModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusModel>("PUT", path, model); } @@ -8182,7 +8211,7 @@ public NexusParameterDetailModel UpdateNexusParameter(Int32 companyId, Int32 nex path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NexusParameterDetailModel>("PUT", path, model); } @@ -8203,7 +8232,7 @@ public NexusParameterDetailModel UpdateNexusParameter(Int32 companyId, Int32 nex public NoticeResponsibilityModel CreateNoticeResponsibilityType(CreateNoticeResponsibilityTypeModel model) { var path = new AvaTaxPath("/api/v2/notices/responsibilities"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NoticeResponsibilityModel>("POST", path, model); } @@ -8224,7 +8253,7 @@ public NoticeResponsibilityModel CreateNoticeResponsibilityType(CreateNoticeResp public NoticeRootCauseModel CreateNoticeRootCauseType(CreateNoticeRootCauseTypeModel model) { var path = new AvaTaxPath("/api/v2/notices/rootcauses"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NoticeRootCauseModel>("POST", path, model); } @@ -8245,7 +8274,7 @@ public List<ErrorDetail> DeleteNoticeResponsibilityType(Int32 responsibilityId) { var path = new AvaTaxPath("/api/v2/notices/responsibilities/{responsibilityId}"); path.ApplyField("responsibilityId", responsibilityId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8266,7 +8295,7 @@ public List<ErrorDetail> DeleteNoticeRootCauseType(Int32 rootCauseId) { var path = new AvaTaxPath("/api/v2/notices/rootcauses/{rootCauseId}"); path.ApplyField("rootCauseId", rootCauseId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8300,7 +8329,7 @@ public NotificationModel DismissNotification(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}/dismiss"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NotificationModel>("PUT", path, null); } @@ -8328,7 +8357,7 @@ public NotificationModel GetNotification(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NotificationModel>("GET", path, null); } @@ -8365,7 +8394,7 @@ public FetchResult<NotificationModel> ListNotifications(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<NotificationModel>>("GET", path, null); } @@ -8400,7 +8429,7 @@ public FetchResult<NotificationModel> ListNotifications(String filter, Int32? to public NewAccountModel RequestNewAccount(NewAccountRequestModel model) { var path = new AvaTaxPath("/api/v2/accounts/request"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NewAccountModel>("POST", path, model); } @@ -8426,7 +8455,7 @@ public OfferModel RequestNewEntitlement(Int32 id, String offer) var path = new AvaTaxPath("/api/v2/accounts/{id}/entitlements/{offer}"); path.ApplyField("id", id); path.ApplyField("offer", offer); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<OfferModel>("POST", path, null); } @@ -8450,7 +8479,7 @@ public OfferModel RequestNewEntitlement(Int32 id, String offer) public List<AccountModel> CreateAccount(AccountModel model) { var path = new AvaTaxPath("/api/v2/accounts"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<AccountModel>>("POST", path, model); } @@ -8483,7 +8512,7 @@ public List<AccountModel> CreateAccount(AccountModel model) public List<NotificationModel> CreateNotifications(List<NotificationModel> model) { var path = new AvaTaxPath("/api/v2/notifications"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<NotificationModel>>("POST", path, model); } @@ -8509,7 +8538,7 @@ public List<SubscriptionModel> CreateSubscriptions(Int32 accountId, List<Subscri { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<SubscriptionModel>>("POST", path, model); } @@ -8534,7 +8563,7 @@ public List<ErrorDetail> DeleteAccount(Int32 id) { var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8565,7 +8594,7 @@ public List<ErrorDetail> DeleteNotification(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8591,7 +8620,7 @@ public List<ErrorDetail> DeleteSubscription(Int32 accountId, Int32 id) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8610,7 +8639,7 @@ public AccountMigrationStatusModel ListAccountsByTssWriteMode(TssAccountMigratio { var path = new AvaTaxPath("/api/v2/accounts/ListAccountsByTssWriteMode/{writeMode}"); path.ApplyField("writeMode", writeMode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AccountMigrationStatusModel>("GET", path, null); } @@ -8640,7 +8669,7 @@ public String ResetPassword(Int32 userId, Boolean? unmigrateFromAi, SetPasswordM var path = new AvaTaxPath("/api/v2/passwords/{userId}/reset"); path.ApplyField("userId", userId); path.AddQuery("unmigrateFromAi", unmigrateFromAi); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("POST", path, model); } @@ -8665,7 +8694,7 @@ public AccountModel UpdateAccount(Int32 id, AccountModel model) { var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AccountModel>("PUT", path, model); } @@ -8697,7 +8726,7 @@ public NotificationModel UpdateNotification(Int64 id, NotificationModel model) { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<NotificationModel>("PUT", path, model); } @@ -8728,7 +8757,7 @@ public SubscriptionModel UpdateSubscription(Int32 accountId, Int32 id, Subscript var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SubscriptionModel>("PUT", path, model); } @@ -8762,7 +8791,7 @@ public FileResult DownloadReport(Int64 id) { var path = new AvaTaxPath("/api/v2/reports/{id}/attachment"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("GET", path, null); } @@ -8789,7 +8818,7 @@ public ReportModel GetReport(Int64 id) { var path = new AvaTaxPath("/api/v2/reports/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<ReportModel>("GET", path, null); } @@ -8830,7 +8859,7 @@ public List<ReportModel> InitiateExportDocumentLineReport(Int32 companyId, Expor { var path = new AvaTaxPath("/api/v2/companies/{companyId}/reports/exportdocumentline/initiate"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ReportModel>>("POST", path, model); } @@ -8867,7 +8896,7 @@ public FetchResult<ReportModel> ListReports(Int32? companyId, String pageKey, In path.AddQuery("pageKey", pageKey); path.AddQuery("$skip", skip); path.AddQuery("$top", top); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<ReportModel>>("GET", path, null); } @@ -8903,7 +8932,7 @@ public List<SettingModel> CreateSettings(Int32 companyId, List<SettingModel> mod { var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<SettingModel>>("POST", path, model); } @@ -8935,7 +8964,7 @@ public List<ErrorDetail> DeleteSetting(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -8967,7 +8996,7 @@ public SettingModel GetSetting(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SettingModel>("GET", path, null); } @@ -9010,7 +9039,7 @@ public FetchResult<SettingModel> ListSettingsByCompany(Int32 companyId, String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SettingModel>>("GET", path, null); } @@ -9051,7 +9080,7 @@ public FetchResult<SettingModel> QuerySettings(String filter, String include, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SettingModel>>("GET", path, null); } @@ -9088,7 +9117,7 @@ public SettingModel UpdateSetting(Int32 companyId, Int32 id, SettingModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SettingModel>("PUT", path, model); } @@ -9113,7 +9142,7 @@ public SubscriptionModel GetSubscription(Int32 accountId, Int32 id) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SubscriptionModel>("GET", path, null); } @@ -9147,7 +9176,7 @@ public FetchResult<SubscriptionModel> ListSubscriptionsByAccount(Int32 accountId path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SubscriptionModel>>("GET", path, null); } @@ -9179,7 +9208,7 @@ public FetchResult<SubscriptionModel> QuerySubscriptions(String filter, Int32? t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SubscriptionModel>>("GET", path, null); } @@ -9205,7 +9234,7 @@ public List<TaxCodeModel> CreateTaxCodes(Int32 companyId, List<TaxCodeModel> mod { var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<TaxCodeModel>>("POST", path, model); } @@ -9228,7 +9257,7 @@ public List<ErrorDetail> DeleteTaxCode(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -9255,7 +9284,7 @@ public TaxCodeModel GetTaxCode(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxCodeModel>("GET", path, null); } @@ -9293,7 +9322,7 @@ public FetchResult<TaxCodeModel> ListTaxCodesByCompany(Int32 companyId, String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxCodeModel>>("GET", path, null); } @@ -9329,7 +9358,7 @@ public FetchResult<TaxCodeModel> QueryTaxCodes(String filter, String include, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxCodeModel>>("GET", path, null); } @@ -9359,7 +9388,7 @@ public TaxCodeModel UpdateTaxCode(Int32 companyId, Int32 id, TaxCodeModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxCodeModel>("PUT", path, model); } @@ -9402,7 +9431,7 @@ public TaxCodeModel UpdateTaxCode(Int32 companyId, Int32 id, TaxCodeModel model) public FileResult BuildTaxContentFile(PointOfSaleDataRequestModel model) { var path = new AvaTaxPath("/api/v2/pointofsaledata/build"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("POST", path, model); } @@ -9456,7 +9485,7 @@ public FileResult BuildTaxContentFileForLocation(Int32 companyId, Int32 id, Date path.AddQuery("format", format); path.AddQuery("partnerId", partnerId); path.AddQuery("includeJurisCodes", includeJurisCodes); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("GET", path, null); } @@ -9518,7 +9547,7 @@ public FileResult DownloadTaxRatesByZipCode(DateTime date, String region) var path = new AvaTaxPath("/api/v2/taxratesbyzipcode/download/{date}"); path.ApplyField("date", date.ToString("o")); path.AddQuery("region", region); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallFile("GET", path, null); } @@ -9581,7 +9610,7 @@ public TaxRateModel TaxRatesByAddress(String line1, String line2, String line3, path.AddQuery("region", region); path.AddQuery("postalCode", postalCode); path.AddQuery("country", country); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxRateModel>("GET", path, null); } @@ -9629,7 +9658,7 @@ public TaxRateModel TaxRatesByPostalCode(String country, String postalCode) var path = new AvaTaxPath("/api/v2/taxrates/bypostalcode"); path.AddQuery("country", country); path.AddQuery("postalCode", postalCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxRateModel>("GET", path, null); } @@ -9663,7 +9692,7 @@ public List<TaxRuleModel> CreateTaxRules(Int32 companyId, List<TaxRuleModel> mod { var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<TaxRuleModel>>("POST", path, model); } @@ -9698,7 +9727,7 @@ public List<ErrorDetail> DeleteTaxRule(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -9733,7 +9762,7 @@ public TaxRuleModel GetTaxRule(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxRuleModel>("GET", path, null); } @@ -9779,7 +9808,7 @@ public FetchResult<TaxRuleModel> ListTaxRules(Int32 companyId, String filter, St path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxRuleModel>>("GET", path, null); } @@ -9823,7 +9852,7 @@ public FetchResult<TaxRuleModel> QueryTaxRules(String filter, String include, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TaxRuleModel>>("GET", path, null); } @@ -9859,7 +9888,7 @@ public TaxRuleModel UpdateTaxRule(Int32 companyId, Int32 id, TaxRuleModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TaxRuleModel>("PUT", path, model); } @@ -9901,7 +9930,7 @@ public TransactionModel AddLines(String include, AddTransactionLineModel model) { var path = new AvaTaxPath("/api/v2/companies/transactions/lines/add"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -9958,7 +9987,7 @@ public TransactionModel AdjustTransaction(String companyCode, String transaction path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10004,7 +10033,7 @@ public AuditTransactionModel AuditTransaction(String companyCode, String transac var path = new AvaTaxPath("/api/v2/companies/{companyCode}/transactions/{transactionCode}/audit"); path.ApplyField("companyCode", companyCode); path.ApplyField("transactionCode", transactionCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AuditTransactionModel>("GET", path, null); } @@ -10052,7 +10081,7 @@ public AuditTransactionModel AuditTransactionWithType(String companyCode, String path.ApplyField("companyCode", companyCode); path.ApplyField("transactionCode", transactionCode); path.ApplyField("documentType", documentType); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<AuditTransactionModel>("GET", path, null); } @@ -10079,7 +10108,7 @@ public AuditTransactionModel AuditTransactionWithType(String companyCode, String public BulkLockTransactionResult BulkLockTransaction(BulkLockTransactionModel model) { var path = new AvaTaxPath("/api/v2/transactions/lock"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<BulkLockTransactionResult>("POST", path, model); } @@ -10136,7 +10165,7 @@ public TransactionModel ChangeTransactionCode(String companyCode, String transac path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10191,7 +10220,7 @@ public TransactionModel CommitTransaction(String companyCode, String transaction path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10246,7 +10275,7 @@ public TransactionModel CreateOrAdjustTransaction(String include, CreateOrAdjust { var path = new AvaTaxPath("/api/v2/transactions/createoradjust"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10308,7 +10337,7 @@ public TransactionModel CreateTransaction(String include, CreateTransactionModel { var path = new AvaTaxPath("/api/v2/transactions/create"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10347,7 +10376,7 @@ public TransactionModel DeleteLines(String include, RemoveTransactionLineModel m { var path = new AvaTaxPath("/api/v2/companies/transactions/lines/delete"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10400,7 +10429,7 @@ public TransactionModel GetTransactionByCode(String companyCode, String transact path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("GET", path, null); } @@ -10436,7 +10465,7 @@ public TransactionModel GetTransactionByCodeAndType(String companyCode, String t path.ApplyField("transactionCode", transactionCode); path.ApplyField("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("GET", path, null); } @@ -10476,7 +10505,7 @@ public TransactionModel GetTransactionById(Int64 id, String include) var path = new AvaTaxPath("/api/v2/transactions/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("GET", path, null); } @@ -10538,7 +10567,7 @@ public FetchResult<TransactionModel> ListTransactionsByCompany(String companyCod path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<TransactionModel>>("GET", path, null); } @@ -10595,7 +10624,7 @@ public TransactionModel LockTransaction(String companyCode, String transactionCo path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10664,7 +10693,7 @@ public TransactionModel RefundTransaction(String companyCode, String transaction path.AddQuery("$include", include); path.AddQuery("documentType", documentType); path.AddQuery("useTaxDateOverride", useTaxDateOverride); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10719,7 +10748,7 @@ public TransactionModel SettleTransaction(String companyCode, String transaction path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10768,7 +10797,7 @@ public TransactionModel UncommitTransaction(String companyCode, String transacti path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, null); } @@ -10814,7 +10843,7 @@ public TransactionModel UnvoidTransaction(String companyCode, String transaction path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, null); } @@ -10868,7 +10897,7 @@ public TransactionModel VerifyTransaction(String companyCode, String transaction path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10924,7 +10953,7 @@ public TransactionModel VoidTransaction(String companyCode, String transactionCo path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<TransactionModel>("POST", path, model); } @@ -10948,7 +10977,7 @@ public List<UPCModel> CreateUPCs(Int32 companyId, List<UPCModel> model) { var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<UPCModel>>("POST", path, model); } @@ -10972,7 +11001,7 @@ public List<ErrorDetail> DeleteUPC(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -10997,7 +11026,7 @@ public UPCModel GetUPC(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<UPCModel>("GET", path, null); } @@ -11033,7 +11062,7 @@ public FetchResult<UPCModel> ListUPCsByCompany(Int32 companyId, String filter, S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UPCModel>>("GET", path, null); } @@ -11067,7 +11096,7 @@ public FetchResult<UPCModel> QueryUPCs(String filter, String include, Int32? top path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UPCModel>>("GET", path, null); } @@ -11095,7 +11124,7 @@ public UPCModel UpdateUPC(Int32 companyId, Int32 id, UPCModel model) var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<UPCModel>("PUT", path, model); } @@ -11119,7 +11148,7 @@ public List<ErrorDetail> DeleteUserDefinedField(Int32 companyId, Int64 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/userdefinedfields/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -11143,7 +11172,7 @@ public FetchResult<CompanyUserDefinedFieldModel> ListUserDefinedFieldsByCompanyI path.ApplyField("companyId", companyId); path.AddQuery("udfType", udfType); path.AddQuery("allowDefaults", allowDefaults); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<CompanyUserDefinedFieldModel>>("GET", path, null); } @@ -11168,7 +11197,7 @@ public CompanyUserDefinedFieldModel UpdateUserDefinedField(Int32 companyId, Int6 var path = new AvaTaxPath("/api/v2/companies/{companyId}/userdefinedfields"); path.ApplyField("companyId", companyId); path.AddQuery("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<CompanyUserDefinedFieldModel>("POST", path, model); } @@ -11194,7 +11223,7 @@ public CompanyUserDefinedFieldModel UpdateUserDefinedField(Int32 companyId, Int6 public String ChangePassword(PasswordChangeModel model) { var path = new AvaTaxPath("/api/v2/passwords"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCallString("PUT", path, model); } @@ -11224,7 +11253,7 @@ public List<UserModel> CreateUsers(Int32 accountId, List<UserModel> model) { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<UserModel>>("POST", path, model); } @@ -11252,7 +11281,7 @@ public List<ErrorDetail> DeleteUser(Int32 id, Int32 accountId) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<List<ErrorDetail>>("DELETE", path, null); } @@ -11282,7 +11311,7 @@ public UserModel GetUser(Int32 id, Int32 accountId, String include) path.ApplyField("id", id); path.ApplyField("accountId", accountId); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<UserModel>("GET", path, null); } @@ -11319,7 +11348,7 @@ public UserEntitlementModel GetUserEntitlements(Int32 id, Int32 accountId) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}/entitlements"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<UserEntitlementModel>("GET", path, null); } @@ -11361,7 +11390,7 @@ public FetchResult<UserModel> ListUsersByAccount(Int32 accountId, String include path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UserModel>>("GET", path, null); } @@ -11403,7 +11432,7 @@ public FetchResult<UserModel> QueryUsers(String include, String filter, Int32? t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<UserModel>>("GET", path, null); } @@ -11430,7 +11459,7 @@ public UserModel UpdateUser(Int32 id, Int32 accountId, UserModel model) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<UserModel>("PUT", path, model); } @@ -11454,7 +11483,7 @@ public SubscriptionModel GetMySubscription(String serviceTypeId) { var path = new AvaTaxPath("/api/v2/utilities/subscriptions/{serviceTypeId}"); path.ApplyField("serviceTypeId", serviceTypeId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<SubscriptionModel>("GET", path, null); } @@ -11476,7 +11505,7 @@ public SubscriptionModel GetMySubscription(String serviceTypeId) public FetchResult<SubscriptionModel> ListMySubscriptions() { var path = new AvaTaxPath("/api/v2/utilities/subscriptions"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<FetchResult<SubscriptionModel>>("GET", path, null); } @@ -11510,7 +11539,7 @@ public FetchResult<SubscriptionModel> ListMySubscriptions() public PingResultModel Ping() { var path = new AvaTaxPath("/api/v2/utilities/ping"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID,"22.2.0"); return RestCall<PingResultModel>("GET", path, null); } @@ -11679,7 +11708,7 @@ public async Task<LicenseKeyModel> AccountResetLicenseKeyAsync(Int32 id, ResetLi { var path = new AvaTaxPath("/api/v2/accounts/{id}/resetlicensekey"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LicenseKeyModel>("POST", path, model).ConfigureAwait(false); } @@ -11711,7 +11740,7 @@ public async Task<AccountModel> ActivateAccountAsync(Int32 id, ActivateAccountMo { var path = new AvaTaxPath("/api/v2/accounts/{id}/activate"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AccountModel>("POST", path, model).ConfigureAwait(false); } @@ -11754,7 +11783,7 @@ public async Task<FetchResult<AuditModel>> AuditAccountAsync(Int32 id, DateTime? path.AddQuery("end", end); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<AuditModel>>("GET", path, null).ConfigureAwait(false); } @@ -11786,7 +11815,7 @@ public async Task<LicenseKeyModel> CreateLicenseKeyAsync(Int32 id, AccountLicens { var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LicenseKeyModel>("POST", path, model).ConfigureAwait(false); } @@ -11814,7 +11843,7 @@ public async Task<List<ErrorDetail>> DeleteLicenseKeyAsync(Int32 id, String lice var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey/{licensekeyname}"); path.ApplyField("id", id); path.ApplyField("licensekeyname", licensekeyname); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -11842,7 +11871,7 @@ public async Task<AccountModel> GetAccountAsync(Int32 id, String include) var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AccountModel>("GET", path, null).ConfigureAwait(false); } @@ -11875,7 +11904,7 @@ public async Task<List<AccountConfigurationModel>> GetAccountConfigurationAsync( { var path = new AvaTaxPath("/api/v2/accounts/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<AccountConfigurationModel>>("GET", path, null).ConfigureAwait(false); } @@ -11897,7 +11926,7 @@ public async Task<AccountLicenseKeyModel> GetLicenseKeyAsync(Int32 id, String li var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekey/{licensekeyname}"); path.ApplyField("id", id); path.ApplyField("licensekeyname", licensekeyname); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AccountLicenseKeyModel>("GET", path, null).ConfigureAwait(false); } @@ -11919,7 +11948,7 @@ public async Task<List<AccountLicenseKeyModel>> GetLicenseKeysAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/accounts/{id}/licensekeys"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<AccountLicenseKeyModel>>("GET", path, null).ConfigureAwait(false); } @@ -11960,7 +11989,7 @@ public async Task<FetchResult<AccountModel>> QueryAccountsAsync(String include, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<AccountModel>>("GET", path, null).ConfigureAwait(false); } @@ -11994,7 +12023,7 @@ public async Task<List<AccountConfigurationModel>> SetAccountConfigurationAsync( { var path = new AvaTaxPath("/api/v2/accounts/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<AccountConfigurationModel>>("POST", path, model).ConfigureAwait(false); } @@ -12041,7 +12070,7 @@ public async Task<AddressResolutionModel> ResolveAddressAsync(String line1, Stri path.AddQuery("postalCode", postalCode); path.AddQuery("country", country); path.AddQuery("textCase", textCase); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AddressResolutionModel>("GET", path, null).ConfigureAwait(false); } @@ -12068,7 +12097,7 @@ public async Task<AddressResolutionModel> ResolveAddressAsync(String line1, Stri public async Task<AddressResolutionModel> ResolveAddressPostAsync(AddressValidationInfo model) { var path = new AvaTaxPath("/api/v2/addresses/resolve"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AddressResolutionModel>("POST", path, model).ConfigureAwait(false); } @@ -12089,7 +12118,7 @@ public async Task<AdvancedRuleLookupFileModel> CreateCompanyLookupFileAsync(Int3 var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/companies/{companyId}/lookupFiles"); path.ApplyField("accountId", accountId); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AdvancedRuleLookupFileModel>("POST", path, model).ConfigureAwait(false); } @@ -12109,7 +12138,7 @@ public async Task<List<ErrorDetail>> DeleteLookupFileAsync(Int32 accountId, Stri var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -12129,7 +12158,7 @@ public async Task<FetchResult<AdvancedRuleLookupFileModel>> GetCompanyLookupFile var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/companies/{companyId}/lookupFiles"); path.ApplyField("accountId", accountId); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<AdvancedRuleLookupFileModel>>("GET", path, null).ConfigureAwait(false); } @@ -12149,7 +12178,7 @@ public async Task<AdvancedRuleLookupFileModel> GetLookupFileAsync(Int32 accountI var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AdvancedRuleLookupFileModel>("GET", path, null).ConfigureAwait(false); } @@ -12170,7 +12199,7 @@ public async Task<AdvancedRuleLookupFileModel> UpdateLookupFileAsync(Int32 accou var path = new AvaTaxPath("/api/v2/advancedrules/accounts/{accountId}/lookupFiles/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AdvancedRuleLookupFileModel>("PUT", path, model).ConfigureAwait(false); } @@ -12193,7 +12222,7 @@ public async Task<AdvancedRuleLookupFileModel> UpdateLookupFileAsync(Int32 accou public async Task<List<AvaFileFormModel>> CreateAvaFileFormsAsync(List<AvaFileFormModel> model) { var path = new AvaTaxPath("/api/v2/avafileforms"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<AvaFileFormModel>>("POST", path, model).ConfigureAwait(false); } @@ -12216,7 +12245,7 @@ public async Task<List<ErrorDetail>> DeleteAvaFileFormAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -12239,7 +12268,7 @@ public async Task<AvaFileFormModel> GetAvaFileFormAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AvaFileFormModel>("GET", path, null).ConfigureAwait(false); } @@ -12269,7 +12298,7 @@ public async Task<FetchResult<AvaFileFormModel>> QueryAvaFileFormsAsync(String f path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<AvaFileFormModel>>("GET", path, null).ConfigureAwait(false); } @@ -12294,7 +12323,7 @@ public async Task<AvaFileFormModel> UpdateAvaFileFormAsync(Int32 id, AvaFileForm { var path = new AvaTaxPath("/api/v2/avafileforms/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AvaFileFormModel>("PUT", path, model).ConfigureAwait(false); } @@ -12329,7 +12358,7 @@ public async Task<BatchModel> CancelBatchAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}/cancel"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<BatchModel>("POST", path, null).ConfigureAwait(false); } @@ -12370,7 +12399,7 @@ public async Task<List<BatchModel>> CreateBatchesAsync(Int32 companyId, List<Bat { var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<BatchModel>>("POST", path, model).ConfigureAwait(false); } @@ -12409,7 +12438,7 @@ public async Task<CreateTransactionBatchResponseModel> CreateTransactionBatchAsy { var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/transactions"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CreateTransactionBatchResponseModel>("POST", path, model).ConfigureAwait(false); } @@ -12442,7 +12471,7 @@ public async Task<List<ErrorDetail>> DeleteBatchAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -12468,7 +12497,7 @@ public async Task<FileResult> DownloadBatchAsync(Int32 companyId, Int32 batchId, path.ApplyField("companyId", companyId); path.ApplyField("batchId", batchId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FileResult>("GET", path, null).ConfigureAwait(false); } @@ -12506,7 +12535,7 @@ public async Task<BatchModel> GetBatchAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/batches/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<BatchModel>("GET", path, null).ConfigureAwait(false); } @@ -12558,7 +12587,7 @@ public async Task<FetchResult<BatchModel>> ListBatchesByCompanyAsync(Int32 compa path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<BatchModel>>("GET", path, null).ConfigureAwait(false); } @@ -12605,7 +12634,7 @@ public async Task<FetchResult<BatchModel>> QueryBatchesAsync(String filter, Stri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<BatchModel>>("GET", path, null).ConfigureAwait(false); } @@ -12645,7 +12674,7 @@ public async Task<List<CertExpressInvitationStatusModel>> CreateCertExpressInvit var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certexpressinvites"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CertExpressInvitationStatusModel>>("POST", path, model).ConfigureAwait(false); } @@ -12688,7 +12717,7 @@ public async Task<CertExpressInvitationModel> GetCertExpressInvitationAsync(Int3 path.ApplyField("customerCode", customerCode); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CertExpressInvitationModel>("GET", path, null).ConfigureAwait(false); } @@ -12737,7 +12766,7 @@ public async Task<FetchResult<CertExpressInvitationModel>> ListCertExpressInvita path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertExpressInvitationModel>>("GET", path, null).ConfigureAwait(false); } @@ -12783,7 +12812,7 @@ public async Task<List<CertificateModel>> CreateCertificatesAsync(Int32 companyI var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates"); path.ApplyField("companyId", companyId); path.AddQuery("$preValidatedExemptionReason", preValidatedExemptionReason); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CertificateModel>>("POST", path, model).ConfigureAwait(false); } @@ -12820,7 +12849,7 @@ public async Task<List<ErrorDetail>> DeleteCertificateAsync(Int32 companyId, Int var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -12862,7 +12891,7 @@ public async Task<FileResult> DownloadCertificateImageAsync(Int32 companyId, Int path.ApplyField("id", id); path.AddQuery("$page", page); path.AddQuery("$type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FileResult>("GET", path, null).ConfigureAwait(false); } @@ -12909,7 +12938,7 @@ public async Task<CertificateModel> GetCertificateAsync(Int32 companyId, Int32 i path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CertificateModel>("GET", path, null).ConfigureAwait(false); } @@ -12938,7 +12967,7 @@ public async Task<ProvisionStatusModel> GetCertificateSetupAsync(Int32 companyId { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/setup"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ProvisionStatusModel>("GET", path, null).ConfigureAwait(false); } @@ -12977,7 +13006,7 @@ public async Task<FetchResult<CertificateAttributeModel>> LinkAttributesToCertif var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes/link"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateAttributeModel>>("POST", path, model).ConfigureAwait(false); } @@ -13017,7 +13046,7 @@ public async Task<FetchResult<CustomerModel>> LinkCustomersToCertificateAsync(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/customers/link"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerModel>>("POST", path, model).ConfigureAwait(false); } @@ -13055,7 +13084,7 @@ public async Task<FetchResult<CertificateAttributeModel>> ListAttributesForCerti var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateAttributeModel>>("GET", path, null).ConfigureAwait(false); } @@ -13096,7 +13125,7 @@ public async Task<FetchResult<CustomerModel>> ListCustomersForCertificateAsync(I path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerModel>>("GET", path, null).ConfigureAwait(false); } @@ -13149,7 +13178,7 @@ public async Task<FetchResult<CertificateModel>> QueryCertificatesAsync(Int32 co path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateModel>>("GET", path, null).ConfigureAwait(false); } @@ -13180,7 +13209,7 @@ public async Task<ProvisionStatusModel> RequestCertificateSetupAsync(Int32 compa { var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/setup"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ProvisionStatusModel>("POST", path, null).ConfigureAwait(false); } @@ -13219,7 +13248,7 @@ public async Task<FetchResult<CertificateAttributeModel>> UnlinkAttributesFromCe var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attributes/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateAttributeModel>>("POST", path, model).ConfigureAwait(false); } @@ -13260,7 +13289,7 @@ public async Task<FetchResult<CustomerModel>> UnlinkCustomersFromCertificateAsyn var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/customers/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerModel>>("POST", path, model).ConfigureAwait(false); } @@ -13296,7 +13325,7 @@ public async Task<CertificateModel> UpdateCertificateAsync(Int32 companyId, Int3 var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CertificateModel>("PUT", path, model).ConfigureAwait(false); } @@ -13335,7 +13364,7 @@ public async Task<String> UploadCertificateImageAsync(Int32 companyId, Int32 id, var path = new AvaTaxPath("/api/v2/companies/{companyId}/certificates/{id}/attachment"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("POST", path, file).ConfigureAwait(false); } @@ -13379,7 +13408,7 @@ public async Task<String> CertifyIntegrationAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/certify"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("GET", path, null).ConfigureAwait(false); } @@ -13414,7 +13443,7 @@ public async Task<String> ChangeFilingStatusAsync(Int32 id, FilingStatusChangeMo { var path = new AvaTaxPath("/api/v2/companies/{id}/filingstatus"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("POST", path, model).ConfigureAwait(false); } @@ -13446,7 +13475,7 @@ public async Task<String> ChangeFilingStatusAsync(Int32 id, FilingStatusChangeMo public async Task<CompanyModel> CompanyInitializeAsync(CompanyInitializationModel model) { var path = new AvaTaxPath("/api/v2/companies/initialize"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyModel>("POST", path, model).ConfigureAwait(false); } @@ -13471,7 +13500,7 @@ public async Task<CompanyModel> CompanyInitializeAsync(CompanyInitializationMode public async Task<List<CompanyModel>> CreateCompaniesAsync(List<CompanyModel> model) { var path = new AvaTaxPath("/api/v2/companies"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyModel>>("POST", path, model).ConfigureAwait(false); } @@ -13504,7 +13533,7 @@ public async Task<List<CompanyParameterDetailModel>> CreateCompanyParametersAsyn { var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyParameterDetailModel>>("POST", path, model).ConfigureAwait(false); } @@ -13537,7 +13566,7 @@ public async Task<FundingStatusModel> CreateFundingRequestAsync(Int32 id, Fundin { var path = new AvaTaxPath("/api/v2/companies/{id}/funding/setup"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FundingStatusModel>("POST", path, model).ConfigureAwait(false); } @@ -13559,7 +13588,7 @@ public async Task<List<ErrorDetail>> DeleteCompanyAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -13588,7 +13617,7 @@ public async Task<List<ErrorDetail>> DeleteCompanyParameterAsync(Int32 companyId var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -13614,7 +13643,7 @@ public async Task<FundingConfigurationModel> FundingConfigurationByCompanyAsync( { var path = new AvaTaxPath("/api/v2/companies/{companyId}/funding/configuration"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FundingConfigurationModel>("GET", path, null).ConfigureAwait(false); } @@ -13642,7 +13671,7 @@ public async Task<List<FundingConfigurationModel>> FundingConfigurationsByCompan var path = new AvaTaxPath("/api/v2/companies/{companyId}/funding/configurations"); path.ApplyField("companyId", companyId); path.AddQuery("currency", currency); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<FundingConfigurationModel>>("GET", path, null).ConfigureAwait(false); } @@ -13681,7 +13710,7 @@ public async Task<CompanyModel> GetCompanyAsync(Int32 id, String include) var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyModel>("GET", path, null).ConfigureAwait(false); } @@ -13714,7 +13743,7 @@ public async Task<List<CompanyConfigurationModel>> GetCompanyConfigurationAsync( { var path = new AvaTaxPath("/api/v2/companies/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyConfigurationModel>>("GET", path, null).ConfigureAwait(false); } @@ -13744,7 +13773,7 @@ public async Task<CompanyParameterDetailModel> GetCompanyParameterDetailAsync(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyParameterDetailModel>("GET", path, null).ConfigureAwait(false); } @@ -13779,11 +13808,41 @@ public async Task<String> GetFilingStatusAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/companies/{id}/filingstatus"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("GET", path, null).ConfigureAwait(false); } + /// Swagger Name: AvaTaxClient + /// <summary> + /// Get ACH entry detail report for company and period; + /// </summary> + /// <remarks> + /// This API is available by invitation only. + /// Requires a subscription to Avalara Managed Returns or SST Certified Service Provider. + /// Returns a list of ACH entry details for the given company and period. + /// Each object in the result is an ach entry trace record for a payment made on behalf of this company. + /// + /// ### Security Policies + /// + /// * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp. + /// * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.; + /// </remarks> + + /// <param name="id">The unique identifier of the company</param> + /// <param name="periodyear">The period year</param> + /// <param name="periodmonth">The period month</param> + public async Task<List<ACHEntryDetailModel>> ListACHEntryDetailsForCompanyAsync(Int32 id, Int32 periodyear, Int32 periodmonth) + { + var path = new AvaTaxPath("/api/v2/companies/{id}/paymentdetails/{periodyear}/{periodmonth}"); + path.ApplyField("id", id); + path.ApplyField("periodyear", periodyear); + path.ApplyField("periodmonth", periodmonth); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); + return await RestCallAsync<List<ACHEntryDetailModel>>("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// <summary> /// Retrieve parameters for a company; @@ -13818,7 +13877,7 @@ public async Task<FetchResult<CompanyParameterDetailModel>> ListCompanyParameter path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CompanyParameterDetailModel>>("GET", path, null).ConfigureAwait(false); } @@ -13844,7 +13903,7 @@ public async Task<List<FundingStatusModel>> ListFundingRequestsByCompanyAsync(In { var path = new AvaTaxPath("/api/v2/companies/{id}/funding"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<FundingStatusModel>>("GET", path, null).ConfigureAwait(false); } @@ -13866,7 +13925,7 @@ public async Task<List<FundingStatusModel>> ListFundingRequestsByCompanyAsync(In public async Task<FetchResult<MrsCompanyModel>> ListMrsCompaniesAsync() { var path = new AvaTaxPath("/api/v2/companies/mrs"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<MrsCompanyModel>>("GET", path, null).ConfigureAwait(false); } @@ -13912,7 +13971,7 @@ public async Task<FetchResult<CompanyModel>> QueryCompaniesAsync(String include, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CompanyModel>>("GET", path, null).ConfigureAwait(false); } @@ -13946,7 +14005,7 @@ public async Task<List<CompanyConfigurationModel>> SetCompanyConfigurationAsync( { var path = new AvaTaxPath("/api/v2/companies/{id}/configuration"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyConfigurationModel>>("POST", path, model).ConfigureAwait(false); } @@ -13979,7 +14038,7 @@ public async Task<CompanyModel> UpdateCompanyAsync(Int32 id, CompanyModel model) { var path = new AvaTaxPath("/api/v2/companies/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyModel>("PUT", path, model).ConfigureAwait(false); } @@ -14010,7 +14069,7 @@ public async Task<CompanyParameterDetailModel> UpdateCompanyParameterDetailAsync var path = new AvaTaxPath("/api/v2/companies/{companyId}/parameters/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyParameterDetailModel>("PUT", path, model).ConfigureAwait(false); } @@ -14046,7 +14105,7 @@ public async Task<ComplianceJurisdictionRateModel> QueryTaxAuthorityJurisdiction path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ComplianceJurisdictionRateModel>("GET", path, null).ConfigureAwait(false); } @@ -14071,7 +14130,7 @@ public async Task<List<ContactModel>> CreateContactsAsync(Int32 companyId, List< { var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ContactModel>>("POST", path, model).ConfigureAwait(false); } @@ -14095,7 +14154,7 @@ public async Task<List<ErrorDetail>> DeleteContactAsync(Int32 companyId, Int32 i var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -14121,7 +14180,7 @@ public async Task<ContactModel> GetContactAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ContactModel>("GET", path, null).ConfigureAwait(false); } @@ -14154,7 +14213,7 @@ public async Task<FetchResult<ContactModel>> ListContactsByCompanyAsync(Int32 co path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ContactModel>>("GET", path, null).ConfigureAwait(false); } @@ -14187,7 +14246,7 @@ public async Task<FetchResult<ContactModel>> QueryContactsAsync(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ContactModel>>("GET", path, null).ConfigureAwait(false); } @@ -14216,7 +14275,7 @@ public async Task<ContactModel> UpdateContactAsync(Int32 companyId, Int32 id, Co var path = new AvaTaxPath("/api/v2/companies/{companyId}/contacts/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ContactModel>("PUT", path, model).ConfigureAwait(false); } @@ -14254,7 +14313,7 @@ public async Task<List<CustomerModel>> CreateCustomersAsync(Int32 companyId, Lis { var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CustomerModel>>("POST", path, model).ConfigureAwait(false); } @@ -14290,7 +14349,7 @@ public async Task<CustomerModel> DeleteCustomerAsync(Int32 companyId, String cus 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 ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CustomerModel>("DELETE", path, null).ConfigureAwait(false); } @@ -14334,7 +14393,7 @@ public async Task<CustomerModel> GetCustomerAsync(Int32 companyId, String custom path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CustomerModel>("GET", path, null).ConfigureAwait(false); } @@ -14374,7 +14433,7 @@ public async Task<FetchResult<CustomerAttributeModel>> LinkAttributesToCustomerA var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes/link"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerAttributeModel>>("PUT", path, model).ConfigureAwait(false); } @@ -14411,7 +14470,7 @@ public async Task<FetchResult<CertificateModel>> LinkCertificatesToCustomerAsync var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certificates/link"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateModel>>("POST", path, model).ConfigureAwait(false); } @@ -14449,7 +14508,7 @@ public async Task<CustomerModel> LinkShipToCustomersToBillCustomerAsync(Int32 co var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/billto/{code}/shipto/link"); path.ApplyField("companyId", companyId); path.ApplyField("code", code); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CustomerModel>("POST", path, model).ConfigureAwait(false); } @@ -14488,7 +14547,7 @@ public async Task<FetchResult<CustomerAttributeModel>> ListAttributesForCustomer var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerAttributeModel>>("GET", path, null).ConfigureAwait(false); } @@ -14538,7 +14597,7 @@ public async Task<FetchResult<CertificateModel>> ListCertificatesForCustomerAsyn path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateModel>>("GET", path, null).ConfigureAwait(false); } @@ -14581,7 +14640,7 @@ public async Task<ExemptionStatusModel> ListValidCertificatesForCustomerAsync(In path.ApplyField("customerCode", customerCode); path.ApplyField("country", country); path.ApplyField("region", region); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ExemptionStatusModel>("GET", path, null).ConfigureAwait(false); } @@ -14630,7 +14689,7 @@ public async Task<FetchResult<CustomerModel>> QueryCustomersAsync(Int32 companyI path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerModel>>("GET", path, null).ConfigureAwait(false); } @@ -14670,7 +14729,7 @@ public async Task<FetchResult<CustomerAttributeModel>> UnlinkAttributesFromCusto var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/attributes/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CustomerAttributeModel>>("PUT", path, model).ConfigureAwait(false); } @@ -14707,7 +14766,7 @@ public async Task<FetchResult<CertificateModel>> UnlinkCertificatesFromCustomerA var path = new AvaTaxPath("/api/v2/companies/{companyId}/customers/{customerCode}/certificates/unlink"); path.ApplyField("companyId", companyId); path.ApplyField("customerCode", customerCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateModel>>("POST", path, model).ConfigureAwait(false); } @@ -14744,7 +14803,7 @@ public async Task<CustomerModel> UpdateCustomerAsync(Int32 companyId, String cus 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 ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CustomerModel>("PUT", path, model).ConfigureAwait(false); } @@ -14768,7 +14827,7 @@ public async Task<List<DataSourceModel>> CreateDataSourcesAsync(Int32 companyId, { var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<DataSourceModel>>("POST", path, model).ConfigureAwait(false); } @@ -14793,7 +14852,7 @@ public async Task<List<ErrorDetail>> DeleteDataSourceAsync(Int32 companyId, Int3 var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -14818,7 +14877,7 @@ public async Task<DataSourceModel> GetDataSourceByIdAsync(Int32 companyId, Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<DataSourceModel>("GET", path, null).ConfigureAwait(false); } @@ -14849,7 +14908,7 @@ public async Task<FetchResult<DataSourceModel>> ListDataSourcesAsync(Int32 compa path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<DataSourceModel>>("GET", path, null).ConfigureAwait(false); } @@ -14881,7 +14940,7 @@ public async Task<FetchResult<DataSourceModel>> QueryDataSourcesAsync(String fil path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<DataSourceModel>>("GET", path, null).ConfigureAwait(false); } @@ -14907,7 +14966,7 @@ public async Task<DataSourceModel> UpdateDataSourceAsync(Int32 companyId, Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/datasources/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<DataSourceModel>("PUT", path, model).ConfigureAwait(false); } @@ -14940,7 +14999,7 @@ public async Task<FetchResult<HsCodeModel>> GetCrossBorderCodeAsync(String count var path = new AvaTaxPath("/api/v2/definitions/crossborder/{country}/{hsCode}/hierarchy"); path.ApplyField("country", country); path.ApplyField("hsCode", hsCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<HsCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -14967,7 +15026,7 @@ public async Task<FetchResult<SkyscraperStatusModel>> GetLoginVerifierByFormAsyn path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SkyscraperStatusModel>>("GET", path, null).ConfigureAwait(false); } @@ -14991,7 +15050,7 @@ public async Task<FetchResult<MarketplaceModel>> ListAllMarketplaceLocationsAsyn path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<MarketplaceModel>>("GET", path, null).ConfigureAwait(false); } @@ -15020,7 +15079,7 @@ public async Task<FetchResult<AvaFileFormModel>> ListAvaFileFormsAsync(String fi path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<AvaFileFormModel>>("GET", path, null).ConfigureAwait(false); } @@ -15052,7 +15111,7 @@ public async Task<FetchResult<CertificateAttributeModel>> ListCertificateAttribu path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CertificateAttributeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15082,7 +15141,7 @@ public async Task<FetchResult<ExemptionReasonModel>> ListCertificateExemptReason path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ExemptionReasonModel>>("GET", path, null).ConfigureAwait(false); } @@ -15112,7 +15171,7 @@ public async Task<FetchResult<ExposureZoneModel>> ListCertificateExposureZonesAs path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ExposureZoneModel>>("GET", path, null).ConfigureAwait(false); } @@ -15138,7 +15197,7 @@ public async Task<FetchResult<ClassificationParameterUsageMapModel>> ListClassif path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ClassificationParameterUsageMapModel>>("GET", path, null).ConfigureAwait(false); } @@ -15164,7 +15223,7 @@ public async Task<FetchResult<CommunicationsTSPairModel>> ListCommunicationsServ path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CommunicationsTSPairModel>>("GET", path, null).ConfigureAwait(false); } @@ -15189,7 +15248,7 @@ public async Task<FetchResult<CommunicationsTransactionTypeModel>> ListCommunica path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CommunicationsTransactionTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15214,7 +15273,7 @@ public async Task<FetchResult<CommunicationsTSPairModel>> ListCommunicationsTSPa path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CommunicationsTSPairModel>>("GET", path, null).ConfigureAwait(false); } @@ -15240,7 +15299,7 @@ public async Task<FetchResult<IsoCountryModel>> ListCountriesAsync(String filter path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<IsoCountryModel>>("GET", path, null).ConfigureAwait(false); } @@ -15271,7 +15330,7 @@ public async Task<FetchResult<CoverLetterModel>> ListCoverLettersAsync(String fi path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CoverLetterModel>>("GET", path, null).ConfigureAwait(false); } @@ -15310,7 +15369,7 @@ public async Task<FetchResult<HsCodeModel>> ListCrossBorderCodesAsync(String cou path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<HsCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15335,7 +15394,7 @@ public async Task<FetchResult<HsCodeModel>> ListCrossBorderCodesAsync(String cou public async Task<FetchResult<HsCodeModel>> ListCrossBorderSectionsAsync() { var path = new AvaTaxPath("/api/v2/definitions/crossborder/sections"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<HsCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15362,7 +15421,7 @@ public async Task<FetchResult<CurrencyModel>> ListCurrenciesAsync(String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CurrencyModel>>("GET", path, null).ConfigureAwait(false); } @@ -15390,7 +15449,7 @@ public async Task<FetchResult<EntityUseCodeModel>> ListEntityUseCodesAsync(Strin path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<EntityUseCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15415,7 +15474,7 @@ public async Task<FetchResult<FilingFrequencyModel>> ListFilingFrequenciesAsync( path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<FilingFrequencyModel>>("GET", path, null).ConfigureAwait(false); } @@ -15444,7 +15503,7 @@ public async Task<FetchResult<JurisdictionModel>> ListJurisdictionsAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<JurisdictionModel>>("GET", path, null).ConfigureAwait(false); } @@ -15488,7 +15547,7 @@ public async Task<FetchResult<JurisdictionOverrideModel>> ListJurisdictionsByAdd path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<JurisdictionOverrideModel>>("GET", path, null).ConfigureAwait(false); } @@ -15527,7 +15586,7 @@ public async Task<FetchResult<JurisdictionRateTypeTaxTypeMappingModel>> ListJuri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<JurisdictionRateTypeTaxTypeMappingModel>>("GET", path, null).ConfigureAwait(false); } @@ -15574,7 +15633,7 @@ public async Task<FetchResult<LocationQuestionModel>> ListLocationQuestionsByAdd path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<LocationQuestionModel>>("GET", path, null).ConfigureAwait(false); } @@ -15600,7 +15659,7 @@ public async Task<FetchResult<SkyscraperStatusModel>> ListLoginVerifiersAsync(St path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SkyscraperStatusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15624,7 +15683,7 @@ public async Task<FetchResult<MarketplaceLocationModel>> ListMarketplaceLocation path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<MarketplaceLocationModel>>("GET", path, null).ConfigureAwait(false); } @@ -15650,7 +15709,7 @@ public async Task<FetchResult<NexusModel>> ListNexusAsync(String filter, Int32? path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15707,7 +15766,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByAddressAsync(String line1, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15735,7 +15794,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByCountryAsync(String countr path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15765,7 +15824,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByCountryAndRegionAsync(Stri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15797,7 +15856,7 @@ public async Task<NexusByTaxFormModel> ListNexusByFormCodeAsync(String formCode) { var path = new AvaTaxPath("/api/v2/definitions/nexus/byform/{formCode}"); path.ApplyField("formCode", formCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusByTaxFormModel>("GET", path, null).ConfigureAwait(false); } @@ -15825,7 +15884,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByTaxTypeGroupAsync(String t path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -15850,7 +15909,7 @@ public async Task<FetchResult<NexusTaxTypeGroupModel>> ListNexusTaxTypeGroupsAsy path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusTaxTypeGroupModel>>("GET", path, null).ConfigureAwait(false); } @@ -15875,7 +15934,7 @@ public async Task<FetchResult<NoticeCustomerFundingOptionModel>> ListNoticeCusto path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeCustomerFundingOptionModel>>("GET", path, null).ConfigureAwait(false); } @@ -15900,7 +15959,7 @@ public async Task<FetchResult<NoticeCustomerTypeModel>> ListNoticeCustomerTypesA path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeCustomerTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15925,7 +15984,7 @@ public async Task<FetchResult<NoticeFilingTypeModel>> ListNoticeFilingtypesAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeFilingTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -15950,7 +16009,7 @@ public async Task<FetchResult<NoticePriorityModel>> ListNoticePrioritiesAsync(St path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticePriorityModel>>("GET", path, null).ConfigureAwait(false); } @@ -15975,7 +16034,7 @@ public async Task<FetchResult<NoticeReasonModel>> ListNoticeReasonsAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeReasonModel>>("GET", path, null).ConfigureAwait(false); } @@ -16000,7 +16059,7 @@ public async Task<FetchResult<NoticeResponsibilityModel>> ListNoticeResponsibili path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeResponsibilityModel>>("GET", path, null).ConfigureAwait(false); } @@ -16025,7 +16084,7 @@ public async Task<FetchResult<NoticeRootCauseModel>> ListNoticeRootCausesAsync(S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeRootCauseModel>>("GET", path, null).ConfigureAwait(false); } @@ -16050,7 +16109,7 @@ public async Task<FetchResult<NoticeStatusModel>> ListNoticeStatusesAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeStatusModel>>("GET", path, null).ConfigureAwait(false); } @@ -16075,7 +16134,7 @@ public async Task<FetchResult<NoticeTypeModel>> ListNoticeTypesAsync(String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NoticeTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16101,7 +16160,7 @@ public async Task<FetchResult<ParameterModel>> ListParametersAsync(String filter path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ParameterModel>>("GET", path, null).ConfigureAwait(false); } @@ -16142,7 +16201,7 @@ public async Task<FetchResult<ParameterModel>> ListParametersByItemAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ParameterModel>>("GET", path, null).ConfigureAwait(false); } @@ -16168,7 +16227,7 @@ public async Task<FetchResult<ParameterUsageModel>> ListParametersUsageAsync(Str path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ParameterUsageModel>>("GET", path, null).ConfigureAwait(false); } @@ -16189,7 +16248,7 @@ public async Task<FetchResult<String>> ListPermissionsAsync(Int32? top, Int32? s var path = new AvaTaxPath("/api/v2/definitions/permissions"); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<String>>("GET", path, null).ConfigureAwait(false); } @@ -16213,7 +16272,7 @@ public async Task<FetchResult<PostalCodeModel>> ListPostalCodesAsync(String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<PostalCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16245,7 +16304,7 @@ public async Task<FetchResult<PreferredProgramModel>> ListPreferredProgramsAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<PreferredProgramModel>>("GET", path, null).ConfigureAwait(false); } @@ -16274,7 +16333,7 @@ public async Task<FetchResult<ProductClassificationSystemModel>> ListProductClas path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("$countryCode", countryCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ProductClassificationSystemModel>>("GET", path, null).ConfigureAwait(false); } @@ -16313,7 +16372,7 @@ public async Task<FetchResult<ProductClassificationSystemModel>> ListProductClas path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("$countryCode", countryCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ProductClassificationSystemModel>>("GET", path, null).ConfigureAwait(false); } @@ -16340,7 +16399,7 @@ public async Task<FetchResult<RateTypeModel>> ListRateTypesByCountryAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<RateTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16371,7 +16430,7 @@ public async Task<FetchResult<RateTypesModel>> ListRateTypesByCountryTaxTypeTaxS path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<RateTypesModel>>("GET", path, null).ConfigureAwait(false); } @@ -16397,7 +16456,7 @@ public async Task<FetchResult<IsoRegionModel>> ListRegionsAsync(String filter, I path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<IsoRegionModel>>("GET", path, null).ConfigureAwait(false); } @@ -16425,7 +16484,7 @@ public async Task<FetchResult<IsoRegionModel>> ListRegionsByCountryAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<IsoRegionModel>>("GET", path, null).ConfigureAwait(false); } @@ -16450,7 +16509,7 @@ public async Task<FetchResult<ResourceFileTypeModel>> ListResourceFileTypesAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ResourceFileTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16476,7 +16535,7 @@ public async Task<FetchResult<ReturnsParameterUsageModel>> ListReturnsParameters path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ReturnsParameterUsageModel>>("GET", path, null).ConfigureAwait(false); } @@ -16502,7 +16561,7 @@ public async Task<FetchResult<SecurityRoleModel>> ListSecurityRolesAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SecurityRoleModel>>("GET", path, null).ConfigureAwait(false); } @@ -16529,7 +16588,7 @@ public async Task<FetchResult<SubscriptionTypeModel>> ListSubscriptionTypesAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SubscriptionTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16553,7 +16612,7 @@ public async Task<FetchResult<TagsModel>> ListTagsAsync(String filter, Int32? to path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TagsModel>>("GET", path, null).ConfigureAwait(false); } @@ -16578,7 +16637,7 @@ public async Task<FetchResult<TaxAuthorityModel>> ListTaxAuthoritiesAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxAuthorityModel>>("GET", path, null).ConfigureAwait(false); } @@ -16605,7 +16664,7 @@ public async Task<FetchResult<TaxAuthorityFormModel>> ListTaxAuthorityFormsAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxAuthorityFormModel>>("GET", path, null).ConfigureAwait(false); } @@ -16630,7 +16689,7 @@ public async Task<FetchResult<TaxAuthorityTypeModel>> ListTaxAuthorityTypesAsync path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxAuthorityTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16662,7 +16721,7 @@ public async Task<FetchResult<TaxCodeModel>> ListTaxCodesAsync(String filter, In path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16684,7 +16743,7 @@ public async Task<TaxCodeTypesModel> ListTaxCodeTypesAsync(Int32? top, Int32? sk var path = new AvaTaxPath("/api/v2/definitions/taxcodetypes"); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxCodeTypesModel>("GET", path, null).ConfigureAwait(false); } @@ -16709,7 +16768,7 @@ public async Task<FetchResult<FormMasterModel>> ListTaxFormsAsync(String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<FormMasterModel>>("GET", path, null).ConfigureAwait(false); } @@ -16734,7 +16793,7 @@ public async Task<FetchResult<TaxSubTypeModel>> ListTaxSubTypesAsync(String filt path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxSubTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16763,7 +16822,7 @@ public async Task<FetchResult<TaxSubTypeModel>> ListTaxSubTypesByCountryAndTaxTy path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxSubTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16792,7 +16851,7 @@ public async Task<FetchResult<TaxSubTypeModel>> ListTaxSubTypesByJurisdictionAnd path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxSubTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16817,7 +16876,7 @@ public async Task<FetchResult<TaxTypeGroupModel>> ListTaxTypeGroupsAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxTypeGroupModel>>("GET", path, null).ConfigureAwait(false); } @@ -16843,7 +16902,7 @@ public async Task<FetchResult<TaxTypeModel>> ListTaxTypesByNexusAndCountryAsync( path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxTypeModel>>("GET", path, null).ConfigureAwait(false); } @@ -16873,7 +16932,7 @@ public async Task<FetchResult<UnitOfBasisModel>> ListUnitOfBasisByCountryAndTaxT path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UnitOfBasisModel>>("GET", path, null).ConfigureAwait(false); } @@ -16899,7 +16958,7 @@ public async Task<FetchResult<UomModel>> ListUnitOfMeasurementAsync(String filte path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UomModel>>("GET", path, null).ConfigureAwait(false); } @@ -16926,7 +16985,7 @@ public async Task<List<CompanyDistanceThresholdModel>> CreateDistanceThresholdAs { var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyDistanceThresholdModel>>("POST", path, model).ConfigureAwait(false); } @@ -16954,7 +17013,7 @@ public async Task<List<ErrorDetail>> DeleteDistanceThresholdAsync(Int32 companyI var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -16982,7 +17041,7 @@ public async Task<CompanyDistanceThresholdModel> GetDistanceThresholdAsync(Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyDistanceThresholdModel>("GET", path, null).ConfigureAwait(false); } @@ -17018,7 +17077,7 @@ public async Task<FetchResult<CompanyDistanceThresholdModel>> ListDistanceThresh path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CompanyDistanceThresholdModel>>("GET", path, null).ConfigureAwait(false); } @@ -17055,7 +17114,7 @@ public async Task<FetchResult<CompanyDistanceThresholdModel>> QueryDistanceThres path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CompanyDistanceThresholdModel>>("GET", path, null).ConfigureAwait(false); } @@ -17087,7 +17146,7 @@ public async Task<CompanyDistanceThresholdModel> UpdateDistanceThresholdAsync(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/distancethresholds/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyDistanceThresholdModel>("PUT", path, model).ConfigureAwait(false); } @@ -17112,7 +17171,7 @@ public async Task<ECommerceTokenOutputModel> CreateECommerceTokenAsync(Int32 com { var path = new AvaTaxPath("/api/v2/companies/{companyId}/ecommercetokens"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ECommerceTokenOutputModel>("POST", path, model).ConfigureAwait(false); } @@ -17137,7 +17196,7 @@ public async Task<FetchResult<ECommerceTokenOutputModel>> RefreshECommerceTokenA { var path = new AvaTaxPath("/api/v2/companies/{companyId}/ecommercetokens"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ECommerceTokenOutputModel>>("PUT", path, model).ConfigureAwait(false); } @@ -17163,7 +17222,7 @@ public async Task<CycleSafeOptionResultModel> CycleSafeOptionsAsync(Int32 compan { var path = new AvaTaxPath("/api/v2/companies/{companyId}/filingcalendars/edit/cycleSafeOptions"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CycleSafeOptionResultModel>("POST", path, model).ConfigureAwait(false); } @@ -17190,7 +17249,7 @@ public async Task<List<CompanyReturnSettingModel>> DeleteCompanyReturnSettingsAs path.ApplyField("companyId", companyId); path.ApplyField("filingCalendarId", filingCalendarId); path.ApplyField("companyReturnSettingId", companyReturnSettingId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<CompanyReturnSettingModel>>("DELETE", path, null).ConfigureAwait(false); } @@ -17225,7 +17284,7 @@ public async Task<FetchResult<FilingCalendarModel>> LegacyFilingCalendarsAsync(I path.AddQuery("$orderBy", orderBy); path.AddQuery("returnCountry", returnCountry); path.AddQuery("returnRegion", returnRegion); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<FilingCalendarModel>>("GET", path, null).ConfigureAwait(false); } @@ -17248,7 +17307,7 @@ public async Task<FetchResult<MultiTaxFilingModel>> GetAccrualFilingsAsync(Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/filings/accrual/{filingReturnId}"); path.ApplyField("companyId", companyId); path.ApplyField("filingReturnId", filingReturnId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<MultiTaxFilingModel>>("GET", path, null).ConfigureAwait(false); } @@ -17287,7 +17346,7 @@ public async Task<FetchResult<FiledReturnModel>> GetFiledReturnsAsync(Int32 comp path.AddQuery("region", region); path.AddQuery("filingCalendarId", filingCalendarId); path.AddQuery("taxformCode", taxformCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<FiledReturnModel>>("GET", path, null).ConfigureAwait(false); } @@ -17309,7 +17368,7 @@ public async Task<FirmClientLinkageOutputModel> ApproveFirmClientLinkageAsync(In { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/approve"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, null).ConfigureAwait(false); } @@ -17339,7 +17398,7 @@ public async Task<FirmClientLinkageOutputModel> ApproveFirmClientLinkageAsync(In public async Task<FirmClientLinkageOutputModel> CreateAndLinkNewFirmClientAccountAsync(NewFirmClientAccountRequestModel model) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/createandlinkclient"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, model).ConfigureAwait(false); } @@ -17360,7 +17419,7 @@ public async Task<FirmClientLinkageOutputModel> CreateAndLinkNewFirmClientAccoun public async Task<FirmClientLinkageOutputModel> CreateFirmClientLinkageAsync(FirmClientLinkageInputModel model) { var path = new AvaTaxPath("/api/v2/firmclientlinkages"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, model).ConfigureAwait(false); } @@ -17382,7 +17441,7 @@ public async Task<List<ErrorDetail>> DeleteFirmClientLinkageAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17404,7 +17463,7 @@ public async Task<FirmClientLinkageOutputModel> GetFirmClientLinkageAsync(Int32 { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("GET", path, null).ConfigureAwait(false); } @@ -17426,7 +17485,7 @@ public async Task<FetchResult<FirmClientLinkageOutputModel>> ListFirmClientLinka { var path = new AvaTaxPath("/api/v2/firmclientlinkages"); path.AddQuery("$filter", filter); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<FirmClientLinkageOutputModel>>("GET", path, null).ConfigureAwait(false); } @@ -17448,7 +17507,7 @@ public async Task<FirmClientLinkageOutputModel> RejectFirmClientLinkageAsync(Int { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/reject"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, null).ConfigureAwait(false); } @@ -17470,7 +17529,7 @@ public async Task<FirmClientLinkageOutputModel> ResetFirmClientLinkageAsync(Int3 { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/reset"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, null).ConfigureAwait(false); } @@ -17492,7 +17551,7 @@ public async Task<FirmClientLinkageOutputModel> RevokeFirmClientLinkageAsync(Int { var path = new AvaTaxPath("/api/v2/firmclientlinkages/{id}/revoke"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FirmClientLinkageOutputModel>("POST", path, null).ConfigureAwait(false); } @@ -17522,7 +17581,7 @@ public async Task<FirmClientLinkageOutputModel> RevokeFirmClientLinkageAsync(Int public async Task<NewAccountModel> RequestFreeTrialAsync(FreeTrialRequestModel model) { var path = new AvaTaxPath("/api/v2/accounts/freetrials/request"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NewAccountModel>("POST", path, model).ConfigureAwait(false); } @@ -17556,7 +17615,7 @@ public async Task<FundingStatusModel> ActivateFundingRequestAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/fundingrequests/{id}/widget"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FundingStatusModel>("GET", path, null).ConfigureAwait(false); } @@ -17588,7 +17647,7 @@ public async Task<FundingStatusModel> FundingRequestStatusAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/fundingrequests/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FundingStatusModel>("GET", path, null).ConfigureAwait(false); } @@ -17616,7 +17675,7 @@ public async Task<List<ErrorDetail>> BatchDeleteItemClassificationsAsync(Int32 c var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/classifications"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17646,7 +17705,7 @@ public async Task<List<ErrorDetail>> BatchDeleteItemParametersAsync(Int32 compan var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17677,7 +17736,7 @@ public async Task<ItemBulkUploadOutputModel> BulkUploadItemsAsync(Int32 companyI { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/upload"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemBulkUploadOutputModel>("POST", path, model).ConfigureAwait(false); } @@ -17708,7 +17767,7 @@ public async Task<List<ItemClassificationOutputModel>> CreateItemClassifications var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/classifications"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ItemClassificationOutputModel>>("POST", path, model).ConfigureAwait(false); } @@ -17743,7 +17802,7 @@ public async Task<List<ItemParameterModel>> CreateItemParametersAsync(Int32 comp var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ItemParameterModel>>("POST", path, model).ConfigureAwait(false); } @@ -17774,7 +17833,7 @@ public async Task<List<ItemModel>> CreateItemsAsync(Int32 companyId, List<ItemMo { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ItemModel>>("POST", path, model).ConfigureAwait(false); } @@ -17801,7 +17860,7 @@ public async Task<List<ItemTagDetailModel>> CreateItemTagsAsync(Int32 companyId, var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/tags"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ItemTagDetailModel>>("POST", path, model).ConfigureAwait(false); } @@ -17833,7 +17892,7 @@ public async Task<List<ErrorDetail>> DeleteItemAsync(Int32 companyId, Int64 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17863,7 +17922,7 @@ public async Task<List<ErrorDetail>> DeleteItemClassificationAsync(Int32 company path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17895,7 +17954,7 @@ public async Task<List<ErrorDetail>> DeleteItemParameterAsync(Int32 companyId, I path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17923,7 +17982,7 @@ public async Task<List<ErrorDetail>> DeleteItemTagAsync(Int32 companyId, Int64 i path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("itemTagDetailId", itemTagDetailId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17949,7 +18008,7 @@ public async Task<List<ErrorDetail>> DeleteItemTagsAsync(Int32 companyId, Int64 var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{itemId}/tags"); path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -17981,7 +18040,7 @@ public async Task<ItemModel> GetItemAsync(Int32 companyId, Int64 id, String incl path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemModel>("GET", path, null).ConfigureAwait(false); } @@ -18011,7 +18070,7 @@ public async Task<ItemClassificationOutputModel> GetItemClassificationAsync(Int3 path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemClassificationOutputModel>("GET", path, null).ConfigureAwait(false); } @@ -18043,7 +18102,7 @@ public async Task<ItemParameterModel> GetItemParameterAsync(Int32 companyId, Int path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemParameterModel>("GET", path, null).ConfigureAwait(false); } @@ -18075,7 +18134,7 @@ public async Task<FetchResult<ItemTagDetailModel>> GetItemTagsAsync(Int32 compan path.AddQuery("$filter", filter); path.AddQuery("$top", top); path.AddQuery("$skip", skip); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemTagDetailModel>>("GET", path, null).ConfigureAwait(false); } @@ -18114,7 +18173,7 @@ public async Task<FetchResult<ItemClassificationOutputModel>> ListItemClassifica path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemClassificationOutputModel>>("GET", path, null).ConfigureAwait(false); } @@ -18155,7 +18214,7 @@ public async Task<FetchResult<ItemParameterModel>> ListItemParametersAsync(Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemParameterModel>>("GET", path, null).ConfigureAwait(false); } @@ -18207,7 +18266,7 @@ public async Task<FetchResult<ItemModel>> ListItemsByCompanyAsync(Int32 companyI path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); path.AddQuery("tagName", tagName); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemModel>>("GET", path, null).ConfigureAwait(false); } @@ -18247,7 +18306,7 @@ public async Task<FetchResult<ItemModel>> QueryItemsAsync(String filter, String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemModel>>("GET", path, null).ConfigureAwait(false); } @@ -18291,7 +18350,7 @@ public async Task<FetchResult<ItemModel>> QueryItemsByTagAsync(Int32 companyId, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ItemModel>>("GET", path, null).ConfigureAwait(false); } @@ -18325,7 +18384,7 @@ public async Task<SyncItemsResponseModel> SyncItemsAsync(Int32 companyId, SyncIt { var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/sync"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SyncItemsResponseModel>("POST", path, model).ConfigureAwait(false); } @@ -18361,7 +18420,7 @@ public async Task<ItemModel> UpdateItemAsync(Int32 companyId, Int64 id, ItemMode var path = new AvaTaxPath("/api/v2/companies/{companyId}/items/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemModel>("PUT", path, model).ConfigureAwait(false); } @@ -18394,7 +18453,7 @@ public async Task<ItemClassificationOutputModel> UpdateItemClassificationAsync(I path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemClassificationOutputModel>("PUT", path, model).ConfigureAwait(false); } @@ -18427,7 +18486,7 @@ public async Task<ItemParameterModel> UpdateItemParameterAsync(Int32 companyId, path.ApplyField("companyId", companyId); path.ApplyField("itemId", itemId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ItemParameterModel>("PUT", path, model).ConfigureAwait(false); } @@ -18455,7 +18514,7 @@ public async Task<List<JurisdictionOverrideModel>> CreateJurisdictionOverridesAs { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<JurisdictionOverrideModel>>("POST", path, model).ConfigureAwait(false); } @@ -18479,7 +18538,7 @@ public async Task<List<ErrorDetail>> DeleteJurisdictionOverrideAsync(Int32 accou var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -18508,7 +18567,7 @@ public async Task<JurisdictionOverrideModel> GetJurisdictionOverrideAsync(Int32 var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<JurisdictionOverrideModel>("GET", path, null).ConfigureAwait(false); } @@ -18548,7 +18607,7 @@ public async Task<FetchResult<JurisdictionOverrideModel>> ListJurisdictionOverri path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<JurisdictionOverrideModel>>("GET", path, null).ConfigureAwait(false); } @@ -18586,7 +18645,7 @@ public async Task<FetchResult<JurisdictionOverrideModel>> QueryJurisdictionOverr path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<JurisdictionOverrideModel>>("GET", path, null).ConfigureAwait(false); } @@ -18611,7 +18670,7 @@ public async Task<JurisdictionOverrideModel> UpdateJurisdictionOverrideAsync(Int var path = new AvaTaxPath("/api/v2/accounts/{accountId}/jurisdictionoverrides/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<JurisdictionOverrideModel>("PUT", path, model).ConfigureAwait(false); } @@ -18646,7 +18705,7 @@ public async Task<List<LocationParameterModel>> CreateLocationParametersAsync(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{locationId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<LocationParameterModel>>("POST", path, model).ConfigureAwait(false); } @@ -18669,7 +18728,7 @@ public async Task<List<LocationModel>> CreateLocationsAsync(Int32 companyId, Lis { var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<LocationModel>>("POST", path, model).ConfigureAwait(false); } @@ -18693,7 +18752,7 @@ public async Task<List<ErrorDetail>> DeleteLocationAsync(Int32 companyId, Int32 var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -18725,7 +18784,7 @@ public async Task<List<ErrorDetail>> DeleteLocationParameterAsync(Int32 companyI path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -18760,7 +18819,7 @@ public async Task<LocationModel> GetLocationAsync(Int32 companyId, Int32 id, Str path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LocationModel>("GET", path, null).ConfigureAwait(false); } @@ -18792,7 +18851,7 @@ public async Task<LocationParameterModel> GetLocationParameterAsync(Int32 compan path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LocationParameterModel>("GET", path, null).ConfigureAwait(false); } @@ -18833,7 +18892,7 @@ public async Task<FetchResult<LocationParameterModel>> ListLocationParametersAsy path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<LocationParameterModel>>("GET", path, null).ConfigureAwait(false); } @@ -18876,7 +18935,7 @@ public async Task<FetchResult<LocationModel>> ListLocationsByCompanyAsync(Int32 path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<LocationModel>>("GET", path, null).ConfigureAwait(false); } @@ -18918,7 +18977,7 @@ public async Task<FetchResult<LocationModel>> QueryLocationsAsync(String filter, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<LocationModel>>("GET", path, null).ConfigureAwait(false); } @@ -18945,7 +19004,7 @@ public async Task<LocationModel> UpdateLocationAsync(Int32 companyId, Int32 id, var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LocationModel>("PUT", path, model).ConfigureAwait(false); } @@ -18978,7 +19037,7 @@ public async Task<LocationParameterModel> UpdateLocationParameterAsync(Int32 com path.ApplyField("companyId", companyId); path.ApplyField("locationId", locationId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LocationParameterModel>("PUT", path, model).ConfigureAwait(false); } @@ -19004,7 +19063,7 @@ public async Task<LocationValidationModel> ValidateLocationAsync(Int32 companyId var path = new AvaTaxPath("/api/v2/companies/{companyId}/locations/{id}/validate"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<LocationValidationModel>("GET", path, null).ConfigureAwait(false); } @@ -19049,7 +19108,7 @@ public async Task<MultiDocumentModel> AdjustMultiDocumentTransactionAsync(String path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19095,7 +19154,7 @@ public async Task<AuditMultiDocumentModel> AuditMultiDocumentTransactionAsync(St var path = new AvaTaxPath("/api/v2/transactions/multidocument/{code}/type/{type}/audit"); path.ApplyField("code", code); path.ApplyField("type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AuditMultiDocumentModel>("GET", path, null).ConfigureAwait(false); } @@ -19132,7 +19191,7 @@ public async Task<AuditMultiDocumentModel> AuditMultiDocumentTransactionAsync(St public async Task<MultiDocumentModel> CommitMultiDocumentTransactionAsync(CommitMultiDocumentModel model) { var path = new AvaTaxPath("/api/v2/transactions/multidocument/commit"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19195,7 +19254,7 @@ public async Task<MultiDocumentModel> CreateMultiDocumentTransactionAsync(String { var path = new AvaTaxPath("/api/v2/transactions/multidocument"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19241,7 +19300,7 @@ public async Task<MultiDocumentModel> GetMultiDocumentTransactionByCodeAndTypeAs path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("GET", path, null).ConfigureAwait(false); } @@ -19294,7 +19353,7 @@ public async Task<MultiDocumentModel> GetMultiDocumentTransactionByIdAsync(Int64 var path = new AvaTaxPath("/api/v2/transactions/multidocument/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("GET", path, null).ConfigureAwait(false); } @@ -19351,7 +19410,7 @@ public async Task<FetchResult<MultiDocumentModel>> ListMultiDocumentTransactions path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<MultiDocumentModel>>("GET", path, null).ConfigureAwait(false); } @@ -19422,7 +19481,7 @@ public async Task<MultiDocumentModel> RefundMultiDocumentTransactionAsync(String path.ApplyField("code", code); path.ApplyField("type", type); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19457,7 +19516,7 @@ public async Task<MultiDocumentModel> RefundMultiDocumentTransactionAsync(String public async Task<MultiDocumentModel> VerifyMultiDocumentTransactionAsync(VerifyMultiDocumentModel model) { var path = new AvaTaxPath("/api/v2/transactions/multidocument/verify"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19499,7 +19558,7 @@ public async Task<MultiDocumentModel> VoidMultiDocumentTransactionAsync(String c var path = new AvaTaxPath("/api/v2/transactions/multidocument/{code}/type/{type}/void"); path.ApplyField("code", code); path.ApplyField("type", type); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<MultiDocumentModel>("POST", path, model).ConfigureAwait(false); } @@ -19540,7 +19599,7 @@ public async Task<List<NexusModel>> CreateNexusAsync(Int32 companyId, List<Nexus { var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<NexusModel>>("POST", path, model).ConfigureAwait(false); } @@ -19574,7 +19633,7 @@ public async Task<List<NexusParameterDetailModel>> CreateNexusParametersAsync(In var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{nexusId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<NexusParameterDetailModel>>("POST", path, model).ConfigureAwait(false); } @@ -19611,7 +19670,7 @@ public async Task<List<NexusByAddressModel>> DeclareNexusByAddressAsync(Int32 co { var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/byaddress"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<NexusByAddressModel>>("POST", path, model).ConfigureAwait(false); } @@ -19644,7 +19703,7 @@ public async Task<List<ErrorDetail>> DeleteNexusAsync(Int32 companyId, Int32 id, path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("cascadeDelete", cascadeDelete); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -19675,7 +19734,7 @@ public async Task<List<ErrorDetail>> DeleteNexusParameterAsync(Int32 companyId, path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -19704,7 +19763,7 @@ public async Task<List<ErrorDetail>> DeleteNexusParametersAsync(Int32 companyId, var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{nexusId}/parameters"); path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -19737,7 +19796,7 @@ public async Task<NexusModel> GetNexusAsync(Int32 companyId, Int32 id, String in path.ApplyField("companyId", companyId); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusModel>("GET", path, null).ConfigureAwait(false); } @@ -19774,7 +19833,7 @@ public async Task<NexusByTaxFormModel> GetNexusByFormCodeAsync(Int32 companyId, path.ApplyField("companyId", companyId); path.ApplyField("formCode", formCode); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusByTaxFormModel>("GET", path, null).ConfigureAwait(false); } @@ -19805,7 +19864,7 @@ public async Task<NexusParameterDetailModel> GetNexusParameterAsync(Int32 compan path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusParameterDetailModel>("GET", path, null).ConfigureAwait(false); } @@ -19847,7 +19906,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByCompanyAsync(Int32 company path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -19891,7 +19950,7 @@ public async Task<FetchResult<NexusModel>> ListNexusByCompanyAndTaxTypeGroupAsyn path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -19931,7 +19990,7 @@ public async Task<FetchResult<NexusParameterDetailModel>> ListNexusParametersAsy path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusParameterDetailModel>>("GET", path, null).ConfigureAwait(false); } @@ -19971,7 +20030,7 @@ public async Task<FetchResult<NexusModel>> QueryNexusAsync(String filter, String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NexusModel>>("GET", path, null).ConfigureAwait(false); } @@ -20014,7 +20073,7 @@ public async Task<NexusModel> UpdateNexusAsync(Int32 companyId, Int32 id, NexusM var path = new AvaTaxPath("/api/v2/companies/{companyId}/nexus/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusModel>("PUT", path, model).ConfigureAwait(false); } @@ -20047,7 +20106,7 @@ public async Task<NexusParameterDetailModel> UpdateNexusParameterAsync(Int32 com path.ApplyField("companyId", companyId); path.ApplyField("nexusId", nexusId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NexusParameterDetailModel>("PUT", path, model).ConfigureAwait(false); } @@ -20069,7 +20128,7 @@ public async Task<NexusParameterDetailModel> UpdateNexusParameterAsync(Int32 com public async Task<NoticeResponsibilityModel> CreateNoticeResponsibilityTypeAsync(CreateNoticeResponsibilityTypeModel model) { var path = new AvaTaxPath("/api/v2/notices/responsibilities"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NoticeResponsibilityModel>("POST", path, model).ConfigureAwait(false); } @@ -20091,7 +20150,7 @@ public async Task<NoticeResponsibilityModel> CreateNoticeResponsibilityTypeAsync public async Task<NoticeRootCauseModel> CreateNoticeRootCauseTypeAsync(CreateNoticeRootCauseTypeModel model) { var path = new AvaTaxPath("/api/v2/notices/rootcauses"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NoticeRootCauseModel>("POST", path, model).ConfigureAwait(false); } @@ -20113,7 +20172,7 @@ public async Task<List<ErrorDetail>> DeleteNoticeResponsibilityTypeAsync(Int32 r { var path = new AvaTaxPath("/api/v2/notices/responsibilities/{responsibilityId}"); path.ApplyField("responsibilityId", responsibilityId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20135,7 +20194,7 @@ public async Task<List<ErrorDetail>> DeleteNoticeRootCauseTypeAsync(Int32 rootCa { var path = new AvaTaxPath("/api/v2/notices/rootcauses/{rootCauseId}"); path.ApplyField("rootCauseId", rootCauseId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20170,7 +20229,7 @@ public async Task<NotificationModel> DismissNotificationAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}/dismiss"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NotificationModel>("PUT", path, null).ConfigureAwait(false); } @@ -20199,7 +20258,7 @@ public async Task<NotificationModel> GetNotificationAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NotificationModel>("GET", path, null).ConfigureAwait(false); } @@ -20237,7 +20296,7 @@ public async Task<FetchResult<NotificationModel>> ListNotificationsAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<NotificationModel>>("GET", path, null).ConfigureAwait(false); } @@ -20273,7 +20332,7 @@ public async Task<FetchResult<NotificationModel>> ListNotificationsAsync(String public async Task<NewAccountModel> RequestNewAccountAsync(NewAccountRequestModel model) { var path = new AvaTaxPath("/api/v2/accounts/request"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NewAccountModel>("POST", path, model).ConfigureAwait(false); } @@ -20300,7 +20359,7 @@ public async Task<OfferModel> RequestNewEntitlementAsync(Int32 id, String offer) var path = new AvaTaxPath("/api/v2/accounts/{id}/entitlements/{offer}"); path.ApplyField("id", id); path.ApplyField("offer", offer); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<OfferModel>("POST", path, null).ConfigureAwait(false); } @@ -20325,7 +20384,7 @@ public async Task<OfferModel> RequestNewEntitlementAsync(Int32 id, String offer) public async Task<List<AccountModel>> CreateAccountAsync(AccountModel model) { var path = new AvaTaxPath("/api/v2/accounts"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<AccountModel>>("POST", path, model).ConfigureAwait(false); } @@ -20359,7 +20418,7 @@ public async Task<List<AccountModel>> CreateAccountAsync(AccountModel model) public async Task<List<NotificationModel>> CreateNotificationsAsync(List<NotificationModel> model) { var path = new AvaTaxPath("/api/v2/notifications"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<NotificationModel>>("POST", path, model).ConfigureAwait(false); } @@ -20386,7 +20445,7 @@ public async Task<List<SubscriptionModel>> CreateSubscriptionsAsync(Int32 accoun { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<SubscriptionModel>>("POST", path, model).ConfigureAwait(false); } @@ -20412,7 +20471,7 @@ public async Task<List<ErrorDetail>> DeleteAccountAsync(Int32 id) { var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20444,7 +20503,7 @@ public async Task<List<ErrorDetail>> DeleteNotificationAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20471,7 +20530,7 @@ public async Task<List<ErrorDetail>> DeleteSubscriptionAsync(Int32 accountId, In var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20491,7 +20550,7 @@ public async Task<AccountMigrationStatusModel> ListAccountsByTssWriteModeAsync(T { var path = new AvaTaxPath("/api/v2/accounts/ListAccountsByTssWriteMode/{writeMode}"); path.ApplyField("writeMode", writeMode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AccountMigrationStatusModel>("GET", path, null).ConfigureAwait(false); } @@ -20522,7 +20581,7 @@ public async Task<String> ResetPasswordAsync(Int32 userId, Boolean? unmigrateFro var path = new AvaTaxPath("/api/v2/passwords/{userId}/reset"); path.ApplyField("userId", userId); path.AddQuery("unmigrateFromAi", unmigrateFromAi); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("POST", path, model).ConfigureAwait(false); } @@ -20548,7 +20607,7 @@ public async Task<AccountModel> UpdateAccountAsync(Int32 id, AccountModel model) { var path = new AvaTaxPath("/api/v2/accounts/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AccountModel>("PUT", path, model).ConfigureAwait(false); } @@ -20581,7 +20640,7 @@ public async Task<NotificationModel> UpdateNotificationAsync(Int64 id, Notificat { var path = new AvaTaxPath("/api/v2/notifications/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<NotificationModel>("PUT", path, model).ConfigureAwait(false); } @@ -20613,7 +20672,7 @@ public async Task<SubscriptionModel> UpdateSubscriptionAsync(Int32 accountId, In var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SubscriptionModel>("PUT", path, model).ConfigureAwait(false); } @@ -20648,7 +20707,7 @@ public async Task<FileResult> DownloadReportAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/reports/{id}/attachment"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallFileAsync("GET", path, null).ConfigureAwait(false); } @@ -20676,7 +20735,7 @@ public async Task<ReportModel> GetReportAsync(Int64 id) { var path = new AvaTaxPath("/api/v2/reports/{id}"); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<ReportModel>("GET", path, null).ConfigureAwait(false); } @@ -20718,7 +20777,7 @@ public async Task<List<ReportModel>> InitiateExportDocumentLineReportAsync(Int32 { var path = new AvaTaxPath("/api/v2/companies/{companyId}/reports/exportdocumentline/initiate"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ReportModel>>("POST", path, model).ConfigureAwait(false); } @@ -20756,7 +20815,7 @@ public async Task<FetchResult<ReportModel>> ListReportsAsync(Int32? companyId, S path.AddQuery("pageKey", pageKey); path.AddQuery("$skip", skip); path.AddQuery("$top", top); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<ReportModel>>("GET", path, null).ConfigureAwait(false); } @@ -20793,7 +20852,7 @@ public async Task<List<SettingModel>> CreateSettingsAsync(Int32 companyId, List< { var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<SettingModel>>("POST", path, model).ConfigureAwait(false); } @@ -20826,7 +20885,7 @@ public async Task<List<ErrorDetail>> DeleteSettingAsync(Int32 companyId, Int32 i var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -20859,7 +20918,7 @@ public async Task<SettingModel> GetSettingAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SettingModel>("GET", path, null).ConfigureAwait(false); } @@ -20903,7 +20962,7 @@ public async Task<FetchResult<SettingModel>> ListSettingsByCompanyAsync(Int32 co path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SettingModel>>("GET", path, null).ConfigureAwait(false); } @@ -20945,7 +21004,7 @@ public async Task<FetchResult<SettingModel>> QuerySettingsAsync(String filter, S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SettingModel>>("GET", path, null).ConfigureAwait(false); } @@ -20983,7 +21042,7 @@ public async Task<SettingModel> UpdateSettingAsync(Int32 companyId, Int32 id, Se var path = new AvaTaxPath("/api/v2/companies/{companyId}/settings/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SettingModel>("PUT", path, model).ConfigureAwait(false); } @@ -21009,7 +21068,7 @@ public async Task<SubscriptionModel> GetSubscriptionAsync(Int32 accountId, Int32 var path = new AvaTaxPath("/api/v2/accounts/{accountId}/subscriptions/{id}"); path.ApplyField("accountId", accountId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SubscriptionModel>("GET", path, null).ConfigureAwait(false); } @@ -21044,7 +21103,7 @@ public async Task<FetchResult<SubscriptionModel>> ListSubscriptionsByAccountAsyn path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SubscriptionModel>>("GET", path, null).ConfigureAwait(false); } @@ -21077,7 +21136,7 @@ public async Task<FetchResult<SubscriptionModel>> QuerySubscriptionsAsync(String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SubscriptionModel>>("GET", path, null).ConfigureAwait(false); } @@ -21104,7 +21163,7 @@ public async Task<List<TaxCodeModel>> CreateTaxCodesAsync(Int32 companyId, List< { var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<TaxCodeModel>>("POST", path, model).ConfigureAwait(false); } @@ -21128,7 +21187,7 @@ public async Task<List<ErrorDetail>> DeleteTaxCodeAsync(Int32 companyId, Int32 i var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -21156,7 +21215,7 @@ public async Task<TaxCodeModel> GetTaxCodeAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxCodeModel>("GET", path, null).ConfigureAwait(false); } @@ -21195,7 +21254,7 @@ public async Task<FetchResult<TaxCodeModel>> ListTaxCodesByCompanyAsync(Int32 co path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -21232,7 +21291,7 @@ public async Task<FetchResult<TaxCodeModel>> QueryTaxCodesAsync(String filter, S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxCodeModel>>("GET", path, null).ConfigureAwait(false); } @@ -21263,7 +21322,7 @@ public async Task<TaxCodeModel> UpdateTaxCodeAsync(Int32 companyId, Int32 id, Ta var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxcodes/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxCodeModel>("PUT", path, model).ConfigureAwait(false); } @@ -21307,7 +21366,7 @@ public async Task<TaxCodeModel> UpdateTaxCodeAsync(Int32 companyId, Int32 id, Ta public async Task<FileResult> BuildTaxContentFileAsync(PointOfSaleDataRequestModel model) { var path = new AvaTaxPath("/api/v2/pointofsaledata/build"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FileResult>("POST", path, model).ConfigureAwait(false); } @@ -21362,7 +21421,7 @@ public async Task<FileResult> BuildTaxContentFileForLocationAsync(Int32 companyI path.AddQuery("format", format); path.AddQuery("partnerId", partnerId); path.AddQuery("includeJurisCodes", includeJurisCodes); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FileResult>("GET", path, null).ConfigureAwait(false); } @@ -21425,7 +21484,7 @@ public async Task<FileResult> DownloadTaxRatesByZipCodeAsync(DateTime date, Stri var path = new AvaTaxPath("/api/v2/taxratesbyzipcode/download/{date}"); path.ApplyField("date", date.ToString("o")); path.AddQuery("region", region); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FileResult>("GET", path, null).ConfigureAwait(false); } @@ -21489,7 +21548,7 @@ public async Task<TaxRateModel> TaxRatesByAddressAsync(String line1, String line path.AddQuery("region", region); path.AddQuery("postalCode", postalCode); path.AddQuery("country", country); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxRateModel>("GET", path, null).ConfigureAwait(false); } @@ -21538,7 +21597,7 @@ public async Task<TaxRateModel> TaxRatesByPostalCodeAsync(String country, String var path = new AvaTaxPath("/api/v2/taxrates/bypostalcode"); path.AddQuery("country", country); path.AddQuery("postalCode", postalCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxRateModel>("GET", path, null).ConfigureAwait(false); } @@ -21573,7 +21632,7 @@ public async Task<List<TaxRuleModel>> CreateTaxRulesAsync(Int32 companyId, List< { var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<TaxRuleModel>>("POST", path, model).ConfigureAwait(false); } @@ -21609,7 +21668,7 @@ public async Task<List<ErrorDetail>> DeleteTaxRuleAsync(Int32 companyId, Int32 i var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -21645,7 +21704,7 @@ public async Task<TaxRuleModel> GetTaxRuleAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxRuleModel>("GET", path, null).ConfigureAwait(false); } @@ -21692,7 +21751,7 @@ public async Task<FetchResult<TaxRuleModel>> ListTaxRulesAsync(Int32 companyId, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxRuleModel>>("GET", path, null).ConfigureAwait(false); } @@ -21737,7 +21796,7 @@ public async Task<FetchResult<TaxRuleModel>> QueryTaxRulesAsync(String filter, S path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TaxRuleModel>>("GET", path, null).ConfigureAwait(false); } @@ -21774,7 +21833,7 @@ public async Task<TaxRuleModel> UpdateTaxRuleAsync(Int32 companyId, Int32 id, Ta var path = new AvaTaxPath("/api/v2/companies/{companyId}/taxrules/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TaxRuleModel>("PUT", path, model).ConfigureAwait(false); } @@ -21817,7 +21876,7 @@ public async Task<TransactionModel> AddLinesAsync(String include, AddTransaction { var path = new AvaTaxPath("/api/v2/companies/transactions/lines/add"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -21875,7 +21934,7 @@ public async Task<TransactionModel> AdjustTransactionAsync(String companyCode, S path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -21922,7 +21981,7 @@ public async Task<AuditTransactionModel> AuditTransactionAsync(String companyCod var path = new AvaTaxPath("/api/v2/companies/{companyCode}/transactions/{transactionCode}/audit"); path.ApplyField("companyCode", companyCode); path.ApplyField("transactionCode", transactionCode); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AuditTransactionModel>("GET", path, null).ConfigureAwait(false); } @@ -21971,7 +22030,7 @@ public async Task<AuditTransactionModel> AuditTransactionWithTypeAsync(String co path.ApplyField("companyCode", companyCode); path.ApplyField("transactionCode", transactionCode); path.ApplyField("documentType", documentType); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<AuditTransactionModel>("GET", path, null).ConfigureAwait(false); } @@ -21999,7 +22058,7 @@ public async Task<AuditTransactionModel> AuditTransactionWithTypeAsync(String co public async Task<BulkLockTransactionResult> BulkLockTransactionAsync(BulkLockTransactionModel model) { var path = new AvaTaxPath("/api/v2/transactions/lock"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<BulkLockTransactionResult>("POST", path, model).ConfigureAwait(false); } @@ -22057,7 +22116,7 @@ public async Task<TransactionModel> ChangeTransactionCodeAsync(String companyCod path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22113,7 +22172,7 @@ public async Task<TransactionModel> CommitTransactionAsync(String companyCode, S path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22169,7 +22228,7 @@ public async Task<TransactionModel> CreateOrAdjustTransactionAsync(String includ { var path = new AvaTaxPath("/api/v2/transactions/createoradjust"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22232,7 +22291,7 @@ public async Task<TransactionModel> CreateTransactionAsync(String include, Creat { var path = new AvaTaxPath("/api/v2/transactions/create"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22272,7 +22331,7 @@ public async Task<TransactionModel> DeleteLinesAsync(String include, RemoveTrans { var path = new AvaTaxPath("/api/v2/companies/transactions/lines/delete"); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22326,7 +22385,7 @@ public async Task<TransactionModel> GetTransactionByCodeAsync(String companyCode path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("GET", path, null).ConfigureAwait(false); } @@ -22363,7 +22422,7 @@ public async Task<TransactionModel> GetTransactionByCodeAndTypeAsync(String comp path.ApplyField("transactionCode", transactionCode); path.ApplyField("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("GET", path, null).ConfigureAwait(false); } @@ -22404,7 +22463,7 @@ public async Task<TransactionModel> GetTransactionByIdAsync(Int64 id, String inc var path = new AvaTaxPath("/api/v2/transactions/{id}"); path.ApplyField("id", id); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("GET", path, null).ConfigureAwait(false); } @@ -22467,7 +22526,7 @@ public async Task<FetchResult<TransactionModel>> ListTransactionsByCompanyAsync( path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<TransactionModel>>("GET", path, null).ConfigureAwait(false); } @@ -22525,7 +22584,7 @@ public async Task<TransactionModel> LockTransactionAsync(String companyCode, Str path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22595,7 +22654,7 @@ public async Task<TransactionModel> RefundTransactionAsync(String companyCode, S path.AddQuery("$include", include); path.AddQuery("documentType", documentType); path.AddQuery("useTaxDateOverride", useTaxDateOverride); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22651,7 +22710,7 @@ public async Task<TransactionModel> SettleTransactionAsync(String companyCode, S path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22701,7 +22760,7 @@ public async Task<TransactionModel> UncommitTransactionAsync(String companyCode, path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, null).ConfigureAwait(false); } @@ -22748,7 +22807,7 @@ public async Task<TransactionModel> UnvoidTransactionAsync(String companyCode, S path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, null).ConfigureAwait(false); } @@ -22803,7 +22862,7 @@ public async Task<TransactionModel> VerifyTransactionAsync(String companyCode, S path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22860,7 +22919,7 @@ public async Task<TransactionModel> VoidTransactionAsync(String companyCode, Str path.ApplyField("transactionCode", transactionCode); path.AddQuery("documentType", documentType); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<TransactionModel>("POST", path, model).ConfigureAwait(false); } @@ -22885,7 +22944,7 @@ public async Task<List<UPCModel>> CreateUPCsAsync(Int32 companyId, List<UPCModel { var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs"); path.ApplyField("companyId", companyId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<UPCModel>>("POST", path, model).ConfigureAwait(false); } @@ -22910,7 +22969,7 @@ public async Task<List<ErrorDetail>> DeleteUPCAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -22936,7 +22995,7 @@ public async Task<UPCModel> GetUPCAsync(Int32 companyId, Int32 id) var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<UPCModel>("GET", path, null).ConfigureAwait(false); } @@ -22973,7 +23032,7 @@ public async Task<FetchResult<UPCModel>> ListUPCsByCompanyAsync(Int32 companyId, path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UPCModel>>("GET", path, null).ConfigureAwait(false); } @@ -23008,7 +23067,7 @@ public async Task<FetchResult<UPCModel>> QueryUPCsAsync(String filter, String in path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UPCModel>>("GET", path, null).ConfigureAwait(false); } @@ -23037,7 +23096,7 @@ public async Task<UPCModel> UpdateUPCAsync(Int32 companyId, Int32 id, UPCModel m var path = new AvaTaxPath("/api/v2/companies/{companyId}/upcs/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<UPCModel>("PUT", path, model).ConfigureAwait(false); } @@ -23062,7 +23121,7 @@ public async Task<List<ErrorDetail>> DeleteUserDefinedFieldAsync(Int32 companyId var path = new AvaTaxPath("/api/v2/companies/{companyId}/userdefinedfields/{id}"); path.ApplyField("companyId", companyId); path.ApplyField("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -23087,7 +23146,7 @@ public async Task<FetchResult<CompanyUserDefinedFieldModel>> ListUserDefinedFiel path.ApplyField("companyId", companyId); path.AddQuery("udfType", udfType); path.AddQuery("allowDefaults", allowDefaults); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<CompanyUserDefinedFieldModel>>("GET", path, null).ConfigureAwait(false); } @@ -23113,7 +23172,7 @@ public async Task<CompanyUserDefinedFieldModel> UpdateUserDefinedFieldAsync(Int3 var path = new AvaTaxPath("/api/v2/companies/{companyId}/userdefinedfields"); path.ApplyField("companyId", companyId); path.AddQuery("id", id); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<CompanyUserDefinedFieldModel>("POST", path, model).ConfigureAwait(false); } @@ -23140,7 +23199,7 @@ public async Task<CompanyUserDefinedFieldModel> UpdateUserDefinedFieldAsync(Int3 public async Task<String> ChangePasswordAsync(PasswordChangeModel model) { var path = new AvaTaxPath("/api/v2/passwords"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallStringAsync("PUT", path, model).ConfigureAwait(false); } @@ -23171,7 +23230,7 @@ public async Task<List<UserModel>> CreateUsersAsync(Int32 accountId, List<UserMo { var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users"); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<UserModel>>("POST", path, model).ConfigureAwait(false); } @@ -23200,7 +23259,7 @@ public async Task<List<ErrorDetail>> DeleteUserAsync(Int32 id, Int32 accountId) var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<List<ErrorDetail>>("DELETE", path, null).ConfigureAwait(false); } @@ -23231,7 +23290,7 @@ public async Task<UserModel> GetUserAsync(Int32 id, Int32 accountId, String incl path.ApplyField("id", id); path.ApplyField("accountId", accountId); path.AddQuery("$include", include); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<UserModel>("GET", path, null).ConfigureAwait(false); } @@ -23269,7 +23328,7 @@ public async Task<UserEntitlementModel> GetUserEntitlementsAsync(Int32 id, Int32 var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}/entitlements"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<UserEntitlementModel>("GET", path, null).ConfigureAwait(false); } @@ -23312,7 +23371,7 @@ public async Task<FetchResult<UserModel>> ListUsersByAccountAsync(Int32 accountI path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UserModel>>("GET", path, null).ConfigureAwait(false); } @@ -23355,7 +23414,7 @@ public async Task<FetchResult<UserModel>> QueryUsersAsync(String include, String path.AddQuery("$top", top); path.AddQuery("$skip", skip); path.AddQuery("$orderBy", orderBy); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<UserModel>>("GET", path, null).ConfigureAwait(false); } @@ -23383,7 +23442,7 @@ public async Task<UserModel> UpdateUserAsync(Int32 id, Int32 accountId, UserMode var path = new AvaTaxPath("/api/v2/accounts/{accountId}/users/{id}"); path.ApplyField("id", id); path.ApplyField("accountId", accountId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<UserModel>("PUT", path, model).ConfigureAwait(false); } @@ -23408,7 +23467,7 @@ public async Task<SubscriptionModel> GetMySubscriptionAsync(String serviceTypeId { var path = new AvaTaxPath("/api/v2/utilities/subscriptions/{serviceTypeId}"); path.ApplyField("serviceTypeId", serviceTypeId); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<SubscriptionModel>("GET", path, null).ConfigureAwait(false); } @@ -23431,7 +23490,7 @@ public async Task<SubscriptionModel> GetMySubscriptionAsync(String serviceTypeId public async Task<FetchResult<SubscriptionModel>> ListMySubscriptionsAsync() { var path = new AvaTaxPath("/api/v2/utilities/subscriptions"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<FetchResult<SubscriptionModel>>("GET", path, null).ConfigureAwait(false); } @@ -23466,7 +23525,7 @@ public async Task<FetchResult<SubscriptionModel>> ListMySubscriptionsAsync() public async Task<PingResultModel> PingAsync() { var path = new AvaTaxPath("/api/v2/utilities/ping"); - _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"21.12.0"); + _clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID ,"22.2.0"); return await RestCallAsync<PingResultModel>("GET", path, null).ConfigureAwait(false); } diff --git a/src/Avalara.AvaTax.net20.csproj b/src/Avalara.AvaTax.net20.csproj index 96b1a89f..42e48b1e 100644 --- a/src/Avalara.AvaTax.net20.csproj +++ b/src/Avalara.AvaTax.net20.csproj @@ -159,6 +159,7 @@ <Compile Include="models\AccountLicenseKeyModel.cs" /> <Compile Include="models\AccountMigrationStatusModel.cs" /> <Compile Include="models\AccountModel.cs" /> + <Compile Include="models\ACHEntryDetailModel.cs" /> <Compile Include="models\ActivateAccountModel.cs" /> <Compile Include="models\AddressesModel.cs" /> <Compile Include="models\AddressInfo.cs" /> diff --git a/src/Avalara.AvaTax.net45.csproj b/src/Avalara.AvaTax.net45.csproj index 85709c69..3e4536c9 100644 --- a/src/Avalara.AvaTax.net45.csproj +++ b/src/Avalara.AvaTax.net45.csproj @@ -164,6 +164,7 @@ <Compile Include="models\AccountLicenseKeyModel.cs" /> <Compile Include="models\AccountMigrationStatusModel.cs" /> <Compile Include="models\AccountModel.cs" /> + <Compile Include="models\ACHEntryDetailModel.cs" /> <Compile Include="models\ActivateAccountModel.cs" /> <Compile Include="models\AddressesModel.cs" /> <Compile Include="models\AddressInfo.cs" /> diff --git a/src/Avalara.AvaTax.net461.csproj b/src/Avalara.AvaTax.net461.csproj index b8515175..16f768d9 100644 --- a/src/Avalara.AvaTax.net461.csproj +++ b/src/Avalara.AvaTax.net461.csproj @@ -164,6 +164,7 @@ <Compile Include="models\AccountLicenseKeyModel.cs" /> <Compile Include="models\AccountMigrationStatusModel.cs" /> <Compile Include="models\AccountModel.cs" /> + <Compile Include="models\ACHEntryDetailModel.cs" /> <Compile Include="models\ActivateAccountModel.cs" /> <Compile Include="models\AddressesModel.cs" /> <Compile Include="models\AddressInfo.cs" /> diff --git a/src/Avalara.AvaTax.nuspec b/src/Avalara.AvaTax.nuspec index ab2f7ac1..246f2dfb 100644 --- a/src/Avalara.AvaTax.nuspec +++ b/src/Avalara.AvaTax.nuspec @@ -3,7 +3,7 @@ <metadata> <id>Avalara.AvaTax</id> - <version>21.12.0</version> + <version>22.2.0</version> <title>Avalara AvaTax SDK</title> <description>Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services.</description> diff --git a/src/models/ACHEntryDetailModel.cs b/src/models/ACHEntryDetailModel.cs new file mode 100644 index 00000000..d6155554 --- /dev/null +++ b/src/models/ACHEntryDetailModel.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; +using Newtonsoft.Json; + +/* + * AvaTax API Client Library + * + * (c) 2004-2019 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Genevieve Conty + * @author Greg Hester + * Swagger name: AvaTaxClient + */ + +namespace Avalara.AvaTax.RestClient +{ + /// <summary> + /// An edit to be made on a filing calendar. + /// </summary> + public class ACHEntryDetailModel + { + /// <summary> + /// Company Id + /// </summary> + public Int32? companyId { get; set; } + + /// <summary> + /// Company Name + /// </summary> + public String companyName { get; set; } + + /// <summary> + /// State + /// </summary> + public String state { get; set; } + + /// <summary> + /// State Region + /// </summary> + public String stateRegion { get; set; } + + /// <summary> + /// Individual Id + /// </summary> + public String individualId { get; set; } + + /// <summary> + /// IndividualName + /// </summary> + public String individualName { get; set; } + + /// <summary> + /// Amount + /// </summary> + public Decimal? amount { get; set; } + + /// <summary> + /// TraceNumber + /// </summary> + public String traceNumber { get; set; } + + + /// <summary> + /// Convert this object to a JSON string of itself + /// </summary> + /// <returns>A JSON string of this object</returns> + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/DeclareNexusByAddressModel.cs b/src/models/DeclareNexusByAddressModel.cs index 26ba4991..bf355152 100644 --- a/src/models/DeclareNexusByAddressModel.cs +++ b/src/models/DeclareNexusByAddressModel.cs @@ -37,6 +37,23 @@ public class DeclareNexusByAddressModel /// </summary> public DateTime? endDate { get; set; } + /// <summary> + /// The type group of nexus that this company is declaring + /// Use [ListTaxTypeGroups](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListTaxTypeGroups/) API for a list of nexus tax type groups. + /// + /// This field is defined by Avalara. All Avalara-defined fields must match an Avalara-defined nexus object found by calling `ListNexus`. + /// NOTE: This optional field will trigger nexus subtype lookup when populated. When using make sure TaxTypeGroup matches corresponding NexusTaxTypeGroup + /// </summary> + public String taxTypeGroup { get; set; } + + /// <summary> + /// The type of nexus that this company is declaring.Replaces NexusTypeId. + /// Use [ListNexusTaxTypeGroups](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Definitions/ListNexusTaxTypeGroups/) API for a list of nexus tax type groups. + /// + /// This field is defined by Avalara. All Avalara-defined fields must match an Avalara-defined nexus object found by calling `ListNexus`. + /// </summary> + public String nexusTaxTypeGroup { get; set; } + /// <summary> /// First line of the street address /// </summary>