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 * @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 /// /// Returns the version number of the API used to generate this class /// - 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("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("POST", path, model); } @@ -145,7 +145,7 @@ public FetchResult 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>("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("POST", path, model); } @@ -203,7 +203,7 @@ public List 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>("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("GET", path, null); } @@ -262,7 +262,7 @@ public List 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>("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("GET", path, null); } @@ -304,7 +304,7 @@ public List 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>("GET", path, null); } @@ -344,7 +344,7 @@ public FetchResult 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>("GET", path, null); } @@ -377,7 +377,7 @@ public List SetAccountConfiguration(Int32 id, List>("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("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("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("POST", path, model); } @@ -488,7 +488,7 @@ public List 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>("DELETE", path, null); } @@ -507,7 +507,7 @@ public FetchResult 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>("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("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("PUT", path, model); } @@ -568,7 +568,7 @@ public AdvancedRuleLookupFileModel UpdateLookupFile(Int32 accountId, String id, public List CreateAvaFileForms(List 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>("POST", path, model); } @@ -590,7 +590,7 @@ public List 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>("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("GET", path, null); } @@ -641,7 +641,7 @@ public FetchResult 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>("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("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("POST", path, null); } @@ -739,7 +739,7 @@ public List CreateBatches(Int32 companyId, List 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>("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("POST", path, model); } @@ -809,7 +809,7 @@ public List 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>("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("GET", path, null); } @@ -922,7 +922,7 @@ public FetchResult 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>("GET", path, null); } @@ -968,7 +968,7 @@ public FetchResult 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>("GET", path, null); } @@ -1007,7 +1007,7 @@ public List 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>("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("GET", path, null); } @@ -1097,7 +1097,7 @@ public FetchResult 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>("GET", path, null); } @@ -1142,7 +1142,7 @@ public List 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>("POST", path, model); } @@ -1178,7 +1178,7 @@ public List 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>("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("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("GET", path, null); } @@ -1331,7 +1331,7 @@ public FetchResult 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>("POST", path, model); } @@ -1370,7 +1370,7 @@ public FetchResult 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>("POST", path, model); } @@ -1407,7 +1407,7 @@ public FetchResult 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>("GET", path, null); } @@ -1447,7 +1447,7 @@ public FetchResult 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>("GET", path, null); } @@ -1499,7 +1499,7 @@ public FetchResult 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>("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("POST", path, null); } @@ -1567,7 +1567,7 @@ public FetchResult 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>("POST", path, model); } @@ -1607,7 +1607,7 @@ public FetchResult 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>("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("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("POST", path, model); } @@ -1812,7 +1812,7 @@ public CompanyModel CompanyInitialize(CompanyInitializationModel model) public List CreateCompanies(List 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>("POST", path, model); } @@ -1844,7 +1844,7 @@ public List 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>("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("POST", path, model); } @@ -1897,7 +1897,7 @@ public List 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>("DELETE", path, null); } @@ -1925,7 +1925,7 @@ public List 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>("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("GET", path, null); } @@ -1977,7 +1977,7 @@ public List 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>("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("GET", path, null); } @@ -2047,7 +2047,7 @@ public List 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>("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("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); } + /// + /// Get ACH entry detail report for company and period + /// + /// + /// 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. + /// + /// Swagger Name: AvaTaxClient + /// The unique identifier of the company + /// The period year + /// The period month + public List 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>("GET", path, null); + } + + /// /// Retrieve parameters for a company /// @@ -2148,7 +2177,7 @@ public FetchResult 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>("GET", path, null); } @@ -2173,7 +2202,7 @@ public List 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>("GET", path, null); } @@ -2194,7 +2223,7 @@ public List ListFundingRequestsByCompany(Int32 id) public FetchResult 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>("GET", path, null); } @@ -2239,7 +2268,7 @@ public FetchResult 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>("GET", path, null); } @@ -2272,7 +2301,7 @@ public List SetCompanyConfiguration(Int32 id, List>("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("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("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("GET", path, null); } @@ -2393,7 +2422,7 @@ public List CreateContacts(Int32 companyId, List 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>("POST", path, model); } @@ -2416,7 +2445,7 @@ public List 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>("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("GET", path, null); } @@ -2473,7 +2502,7 @@ public FetchResult 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>("GET", path, null); } @@ -2505,7 +2534,7 @@ public FetchResult 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>("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("PUT", path, model); } @@ -2570,7 +2599,7 @@ public List CreateCustomers(Int32 companyId, List { 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>("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("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("GET", path, null); } @@ -2687,7 +2716,7 @@ public FetchResult 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>("PUT", path, model); } @@ -2723,7 +2752,7 @@ public FetchResult 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>("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("POST", path, model); } @@ -2798,7 +2827,7 @@ public FetchResult 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>("GET", path, null); } @@ -2847,7 +2876,7 @@ public FetchResult 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>("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("GET", path, null); } @@ -2937,7 +2966,7 @@ public FetchResult 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>("GET", path, null); } @@ -2976,7 +3005,7 @@ public FetchResult 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>("PUT", path, model); } @@ -3012,7 +3041,7 @@ public FetchResult 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>("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("PUT", path, model); } @@ -3071,7 +3100,7 @@ public List CreateDataSources(Int32 companyId, List>("POST", path, model); } @@ -3095,7 +3124,7 @@ public List 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>("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("GET", path, null); } @@ -3149,7 +3178,7 @@ public FetchResult 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>("GET", path, null); } @@ -3180,7 +3209,7 @@ public FetchResult 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>("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("PUT", path, model); } @@ -3237,7 +3266,7 @@ public FetchResult 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>("GET", path, null); } @@ -3263,7 +3292,7 @@ public FetchResult 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>("GET", path, null); } @@ -3286,7 +3315,7 @@ public FetchResult 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>("GET", path, null); } @@ -3314,7 +3343,7 @@ public FetchResult 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>("GET", path, null); } @@ -3345,7 +3374,7 @@ public FetchResult 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>("GET", path, null); } @@ -3374,7 +3403,7 @@ public FetchResult 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>("GET", path, null); } @@ -3403,7 +3432,7 @@ public FetchResult 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>("GET", path, null); } @@ -3428,7 +3457,7 @@ public FetchResult 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>("GET", path, null); } @@ -3453,7 +3482,7 @@ public FetchResult 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>("GET", path, null); } @@ -3477,7 +3506,7 @@ public FetchResult 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>("GET", path, null); } @@ -3501,7 +3530,7 @@ public FetchResult 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>("GET", path, null); } @@ -3526,7 +3555,7 @@ public FetchResult 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>("GET", path, null); } @@ -3556,7 +3585,7 @@ public FetchResult 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>("GET", path, null); } @@ -3594,7 +3623,7 @@ public FetchResult 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>("GET", path, null); } @@ -3618,7 +3647,7 @@ public FetchResult ListCrossBorderCodes(String country, String hsCo public FetchResult 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>("GET", path, null); } @@ -3644,7 +3673,7 @@ public FetchResult 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>("GET", path, null); } @@ -3671,7 +3700,7 @@ public FetchResult 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>("GET", path, null); } @@ -3695,7 +3724,7 @@ public FetchResult 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>("GET", path, null); } @@ -3723,7 +3752,7 @@ public FetchResult 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>("GET", path, null); } @@ -3766,7 +3795,7 @@ public FetchResult 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>("GET", path, null); } @@ -3804,7 +3833,7 @@ public FetchResult 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>("GET", path, null); } @@ -3850,7 +3879,7 @@ public FetchResult 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>("GET", path, null); } @@ -3875,7 +3904,7 @@ public FetchResult 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>("GET", path, null); } @@ -3898,7 +3927,7 @@ public FetchResult 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>("GET", path, null); } @@ -3923,7 +3952,7 @@ public FetchResult 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>("GET", path, null); } @@ -3979,7 +4008,7 @@ public FetchResult 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>("GET", path, null); } @@ -4006,7 +4035,7 @@ public FetchResult 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>("GET", path, null); } @@ -4035,7 +4064,7 @@ public FetchResult 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>("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("GET", path, null); } @@ -4093,7 +4122,7 @@ public FetchResult 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>("GET", path, null); } @@ -4117,7 +4146,7 @@ public FetchResult 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>("GET", path, null); } @@ -4141,7 +4170,7 @@ public FetchResult 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>("GET", path, null); } @@ -4165,7 +4194,7 @@ public FetchResult 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>("GET", path, null); } @@ -4189,7 +4218,7 @@ public FetchResult 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>("GET", path, null); } @@ -4213,7 +4242,7 @@ public FetchResult 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>("GET", path, null); } @@ -4237,7 +4266,7 @@ public FetchResult 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>("GET", path, null); } @@ -4261,7 +4290,7 @@ public FetchResult 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>("GET", path, null); } @@ -4285,7 +4314,7 @@ public FetchResult 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>("GET", path, null); } @@ -4309,7 +4338,7 @@ public FetchResult 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>("GET", path, null); } @@ -4333,7 +4362,7 @@ public FetchResult 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>("GET", path, null); } @@ -4358,7 +4387,7 @@ public FetchResult 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>("GET", path, null); } @@ -4398,7 +4427,7 @@ public FetchResult 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>("GET", path, null); } @@ -4423,7 +4452,7 @@ public FetchResult 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>("GET", path, null); } @@ -4443,7 +4472,7 @@ public FetchResult 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>("GET", path, null); } @@ -4466,7 +4495,7 @@ public FetchResult 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>("GET", path, null); } @@ -4497,7 +4526,7 @@ public FetchResult 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>("GET", path, null); } @@ -4525,7 +4554,7 @@ public FetchResult 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>("GET", path, null); } @@ -4563,7 +4592,7 @@ public FetchResult 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>("GET", path, null); } @@ -4589,7 +4618,7 @@ public FetchResult 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>("GET", path, null); } @@ -4619,7 +4648,7 @@ public FetchResult 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>("GET", path, null); } @@ -4644,7 +4673,7 @@ public FetchResult 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>("GET", path, null); } @@ -4671,7 +4700,7 @@ public FetchResult 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>("GET", path, null); } @@ -4695,7 +4724,7 @@ public FetchResult 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>("GET", path, null); } @@ -4720,7 +4749,7 @@ public FetchResult 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>("GET", path, null); } @@ -4745,7 +4774,7 @@ public FetchResult 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>("GET", path, null); } @@ -4771,7 +4800,7 @@ public FetchResult 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>("GET", path, null); } @@ -4794,7 +4823,7 @@ public FetchResult 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>("GET", path, null); } @@ -4818,7 +4847,7 @@ public FetchResult 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>("GET", path, null); } @@ -4844,7 +4873,7 @@ public FetchResult 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>("GET", path, null); } @@ -4868,7 +4897,7 @@ public FetchResult 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>("GET", path, null); } @@ -4899,7 +4928,7 @@ public FetchResult 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>("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("GET", path, null); } @@ -4944,7 +4973,7 @@ public FetchResult 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>("GET", path, null); } @@ -4968,7 +4997,7 @@ public FetchResult 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>("GET", path, null); } @@ -4996,7 +5025,7 @@ public FetchResult 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>("GET", path, null); } @@ -5024,7 +5053,7 @@ public FetchResult 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>("GET", path, null); } @@ -5048,7 +5077,7 @@ public FetchResult 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>("GET", path, null); } @@ -5073,7 +5102,7 @@ public FetchResult 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>("GET", path, null); } @@ -5102,7 +5131,7 @@ public FetchResult 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>("GET", path, null); } @@ -5127,7 +5156,7 @@ public FetchResult 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>("GET", path, null); } @@ -5153,7 +5182,7 @@ public List 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>("POST", path, model); } @@ -5180,7 +5209,7 @@ public List 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>("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("GET", path, null); } @@ -5242,7 +5271,7 @@ public FetchResult 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>("GET", path, null); } @@ -5278,7 +5307,7 @@ public FetchResult 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>("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("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("POST", path, model); } @@ -5357,7 +5386,7 @@ public FetchResult 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>("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("POST", path, model); } @@ -5408,7 +5437,7 @@ public List 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>("DELETE", path, null); } @@ -5442,7 +5471,7 @@ public FetchResult 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>("GET", path, null); } @@ -5464,7 +5493,7 @@ public FetchResult 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>("GET", path, null); } @@ -5502,7 +5531,7 @@ public FetchResult 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>("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("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("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("POST", path, model); } @@ -5593,7 +5622,7 @@ public List 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>("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("GET", path, null); } @@ -5635,7 +5664,7 @@ public FetchResult 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>("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("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("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("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("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("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("GET", path, null); } @@ -5818,7 +5847,7 @@ public List 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>("DELETE", path, null); } @@ -5847,7 +5876,7 @@ public List 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>("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("POST", path, model); } @@ -5907,7 +5936,7 @@ public List 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>("POST", path, model); } @@ -5941,7 +5970,7 @@ public List 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>("POST", path, model); } @@ -5971,7 +6000,7 @@ public List CreateItems(Int32 companyId, List 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>("POST", path, model); } @@ -5997,7 +6026,7 @@ public List 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>("POST", path, model); } @@ -6028,7 +6057,7 @@ public List 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>("DELETE", path, null); } @@ -6057,7 +6086,7 @@ public List 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>("DELETE", path, null); } @@ -6088,7 +6117,7 @@ public List 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>("DELETE", path, null); } @@ -6115,7 +6144,7 @@ public List 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>("DELETE", path, null); } @@ -6140,7 +6169,7 @@ public List 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>("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("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("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("GET", path, null); } @@ -6262,7 +6291,7 @@ public FetchResult 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>("GET", path, null); } @@ -6300,7 +6329,7 @@ public FetchResult 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>("GET", path, null); } @@ -6340,7 +6369,7 @@ public FetchResult 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>("GET", path, null); } @@ -6391,7 +6420,7 @@ public FetchResult 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>("GET", path, null); } @@ -6430,7 +6459,7 @@ public FetchResult 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>("GET", path, null); } @@ -6473,7 +6502,7 @@ public FetchResult 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>("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("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("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("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("PUT", path, model); } @@ -6632,7 +6661,7 @@ public List 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>("POST", path, model); } @@ -6655,7 +6684,7 @@ public List 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>("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("GET", path, null); } @@ -6722,7 +6751,7 @@ public FetchResult 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>("GET", path, null); } @@ -6759,7 +6788,7 @@ public FetchResult 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>("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("PUT", path, model); } @@ -6817,7 +6846,7 @@ public List 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>("POST", path, model); } @@ -6839,7 +6868,7 @@ public List CreateLocations(Int32 companyId, List { 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>("POST", path, model); } @@ -6862,7 +6891,7 @@ public List 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>("DELETE", path, null); } @@ -6893,7 +6922,7 @@ public List 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>("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("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("GET", path, null); } @@ -6998,7 +7027,7 @@ public FetchResult 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>("GET", path, null); } @@ -7040,7 +7069,7 @@ public FetchResult 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>("GET", path, null); } @@ -7081,7 +7110,7 @@ public FetchResult 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>("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("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("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("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("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("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("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("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("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("GET", path, null); } @@ -7504,7 +7533,7 @@ public FetchResult 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>("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("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("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("POST", path, model); } @@ -7689,7 +7718,7 @@ public List CreateNexus(Int32 companyId, List 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>("POST", path, model); } @@ -7722,7 +7751,7 @@ public List 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>("POST", path, model); } @@ -7758,7 +7787,7 @@ public List DeclareNexusByAddress(Int32 companyId, List>("POST", path, model); } @@ -7790,7 +7819,7 @@ public List 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>("DELETE", path, null); } @@ -7820,7 +7849,7 @@ public List 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>("DELETE", path, null); } @@ -7848,7 +7877,7 @@ public List 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>("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("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("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("GET", path, null); } @@ -7987,7 +8016,7 @@ public FetchResult 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>("GET", path, null); } @@ -8030,7 +8059,7 @@ public FetchResult 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>("GET", path, null); } @@ -8069,7 +8098,7 @@ public FetchResult 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>("GET", path, null); } @@ -8108,7 +8137,7 @@ public FetchResult 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>("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("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("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("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("POST", path, model); } @@ -8245,7 +8274,7 @@ public List 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>("DELETE", path, null); } @@ -8266,7 +8295,7 @@ public List 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>("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("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("GET", path, null); } @@ -8365,7 +8394,7 @@ public FetchResult 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>("GET", path, null); } @@ -8400,7 +8429,7 @@ public FetchResult 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("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("POST", path, null); } @@ -8450,7 +8479,7 @@ public OfferModel RequestNewEntitlement(Int32 id, String offer) public List 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>("POST", path, model); } @@ -8483,7 +8512,7 @@ public List CreateAccount(AccountModel model) public List CreateNotifications(List 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>("POST", path, model); } @@ -8509,7 +8538,7 @@ public List CreateSubscriptions(Int32 accountId, List>("POST", path, model); } @@ -8534,7 +8563,7 @@ public List 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>("DELETE", path, null); } @@ -8565,7 +8594,7 @@ public List 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>("DELETE", path, null); } @@ -8591,7 +8620,7 @@ public List 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>("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("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("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("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("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("GET", path, null); } @@ -8830,7 +8859,7 @@ public List 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>("POST", path, model); } @@ -8867,7 +8896,7 @@ public FetchResult 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>("GET", path, null); } @@ -8903,7 +8932,7 @@ public List CreateSettings(Int32 companyId, List 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>("POST", path, model); } @@ -8935,7 +8964,7 @@ public List 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>("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("GET", path, null); } @@ -9010,7 +9039,7 @@ public FetchResult 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>("GET", path, null); } @@ -9051,7 +9080,7 @@ public FetchResult 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>("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("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("GET", path, null); } @@ -9147,7 +9176,7 @@ public FetchResult 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>("GET", path, null); } @@ -9179,7 +9208,7 @@ public FetchResult 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>("GET", path, null); } @@ -9205,7 +9234,7 @@ public List CreateTaxCodes(Int32 companyId, List 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>("POST", path, model); } @@ -9228,7 +9257,7 @@ public List 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>("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("GET", path, null); } @@ -9293,7 +9322,7 @@ public FetchResult 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>("GET", path, null); } @@ -9329,7 +9358,7 @@ public FetchResult 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>("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("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("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("GET", path, null); } @@ -9663,7 +9692,7 @@ public List CreateTaxRules(Int32 companyId, List 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>("POST", path, model); } @@ -9698,7 +9727,7 @@ public List 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>("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("GET", path, null); } @@ -9779,7 +9808,7 @@ public FetchResult 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>("GET", path, null); } @@ -9823,7 +9852,7 @@ public FetchResult 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>("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("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("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("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("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("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("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("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("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("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("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("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("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("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("GET", path, null); } @@ -10538,7 +10567,7 @@ public FetchResult 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>("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("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("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("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("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("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("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("POST", path, model); } @@ -10948,7 +10977,7 @@ public List CreateUPCs(Int32 companyId, List 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>("POST", path, model); } @@ -10972,7 +11001,7 @@ public List 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>("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("GET", path, null); } @@ -11033,7 +11062,7 @@ public FetchResult 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>("GET", path, null); } @@ -11067,7 +11096,7 @@ public FetchResult 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>("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("PUT", path, model); } @@ -11119,7 +11148,7 @@ public List 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>("DELETE", path, null); } @@ -11143,7 +11172,7 @@ public FetchResult 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>("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("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 CreateUsers(Int32 accountId, List 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>("POST", path, model); } @@ -11252,7 +11281,7 @@ public List 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>("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("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("GET", path, null); } @@ -11361,7 +11390,7 @@ public FetchResult 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>("GET", path, null); } @@ -11403,7 +11432,7 @@ public FetchResult 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>("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("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("GET", path, null); } @@ -11476,7 +11505,7 @@ public SubscriptionModel GetMySubscription(String serviceTypeId) public FetchResult 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>("GET", path, null); } @@ -11510,7 +11539,7 @@ public FetchResult 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("GET", path, null); } @@ -11679,7 +11708,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -11711,7 +11740,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -11754,7 +11783,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -11786,7 +11815,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -11814,7 +11843,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -11842,7 +11871,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -11875,7 +11904,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -11897,7 +11926,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -11919,7 +11948,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -11960,7 +11989,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -11994,7 +12023,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -12041,7 +12070,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12068,7 +12097,7 @@ public async Task ResolveAddressAsync(String line1, Stri public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -12089,7 +12118,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -12109,7 +12138,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -12129,7 +12158,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -12149,7 +12178,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12170,7 +12199,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -12193,7 +12222,7 @@ public async Task UpdateLookupFileAsync(Int32 accou public async Task> CreateAvaFileFormsAsync(List 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>("POST", path, model).ConfigureAwait(false); } @@ -12216,7 +12245,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -12239,7 +12268,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12269,7 +12298,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -12294,7 +12323,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -12329,7 +12358,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -12370,7 +12399,7 @@ public async Task> CreateBatchesAsync(Int32 companyId, List>("POST", path, model).ConfigureAwait(false); } @@ -12409,7 +12438,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -12442,7 +12471,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -12468,7 +12497,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12506,7 +12535,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12558,7 +12587,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -12605,7 +12634,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -12645,7 +12674,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -12688,7 +12717,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12737,7 +12766,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -12783,7 +12812,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -12820,7 +12849,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -12862,7 +12891,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12909,7 +12938,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12938,7 +12967,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -12977,7 +13006,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13017,7 +13046,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13055,7 +13084,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13096,7 +13125,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13149,7 +13178,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13180,7 +13209,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -13219,7 +13248,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13260,7 +13289,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13296,7 +13325,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -13335,7 +13364,7 @@ public async Task 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 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 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 ChangeFilingStatusAsync(Int32 id, FilingStatusChangeMo public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -13471,7 +13500,7 @@ public async Task CompanyInitializeAsync(CompanyInitializationMode public async Task> CreateCompaniesAsync(List 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>("POST", path, model).ConfigureAwait(false); } @@ -13504,7 +13533,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13537,7 +13566,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -13559,7 +13588,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -13588,7 +13617,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -13614,7 +13643,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -13642,7 +13671,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13681,7 +13710,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -13714,7 +13743,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13744,7 +13773,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -13779,11 +13808,41 @@ public async Task 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 + /// + /// Get ACH entry detail report for company and period; + /// + /// + /// 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.; + /// + + /// The unique identifier of the company + /// The period year + /// The period month + public async Task> 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>("GET", path, null).ConfigureAwait(false); + } + + /// Swagger Name: AvaTaxClient /// /// Retrieve parameters for a company; @@ -13818,7 +13877,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13844,7 +13903,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13866,7 +13925,7 @@ public async Task> ListFundingRequestsByCompanyAsync(In public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13912,7 +13971,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -13946,7 +14005,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -13979,7 +14038,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -14010,7 +14069,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -14046,7 +14105,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -14071,7 +14130,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -14095,7 +14154,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -14121,7 +14180,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -14154,7 +14213,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14187,7 +14246,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14216,7 +14275,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -14254,7 +14313,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -14290,7 +14349,7 @@ public async Task 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("DELETE", path, null).ConfigureAwait(false); } @@ -14334,7 +14393,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -14374,7 +14433,7 @@ public async Task> 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>("PUT", path, model).ConfigureAwait(false); } @@ -14411,7 +14470,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -14449,7 +14508,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -14488,7 +14547,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14538,7 +14597,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14581,7 +14640,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -14630,7 +14689,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14670,7 +14729,7 @@ public async Task> 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>("PUT", path, model).ConfigureAwait(false); } @@ -14707,7 +14766,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -14744,7 +14803,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -14768,7 +14827,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -14793,7 +14852,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -14818,7 +14877,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -14849,7 +14908,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14881,7 +14940,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14907,7 +14966,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -14940,7 +14999,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14967,7 +15026,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -14991,7 +15050,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15020,7 +15079,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15052,7 +15111,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15082,7 +15141,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15112,7 +15171,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15138,7 +15197,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15164,7 +15223,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15189,7 +15248,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15214,7 +15273,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15240,7 +15299,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15271,7 +15330,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15310,7 +15369,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15335,7 +15394,7 @@ public async Task> ListCrossBorderCodesAsync(String cou public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15362,7 +15421,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15390,7 +15449,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15415,7 +15474,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15444,7 +15503,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15488,7 +15547,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15527,7 +15586,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15574,7 +15633,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15600,7 +15659,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15624,7 +15683,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15650,7 +15709,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15707,7 +15766,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15735,7 +15794,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15765,7 +15824,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15797,7 +15856,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -15825,7 +15884,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15850,7 +15909,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15875,7 +15934,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15900,7 +15959,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15925,7 +15984,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15950,7 +16009,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -15975,7 +16034,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16000,7 +16059,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16025,7 +16084,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16050,7 +16109,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16075,7 +16134,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16101,7 +16160,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16142,7 +16201,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16168,7 +16227,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16189,7 +16248,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16213,7 +16272,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16245,7 +16304,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16274,7 +16333,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16313,7 +16372,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16340,7 +16399,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16371,7 +16430,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16397,7 +16456,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16425,7 +16484,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16450,7 +16509,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16476,7 +16535,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16502,7 +16561,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16529,7 +16588,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16553,7 +16612,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16578,7 +16637,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16605,7 +16664,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16630,7 +16689,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16662,7 +16721,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16684,7 +16743,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -16709,7 +16768,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16734,7 +16793,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16763,7 +16822,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16792,7 +16851,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16817,7 +16876,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16843,7 +16902,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16873,7 +16932,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16899,7 +16958,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -16926,7 +16985,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -16954,7 +17013,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -16982,7 +17041,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -17018,7 +17077,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17055,7 +17114,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17087,7 +17146,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -17112,7 +17171,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17137,7 +17196,7 @@ public async Task> 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>("PUT", path, model).ConfigureAwait(false); } @@ -17163,7 +17222,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17190,7 +17249,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17225,7 +17284,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17248,7 +17307,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17287,7 +17346,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17309,7 +17368,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -17339,7 +17398,7 @@ public async Task ApproveFirmClientLinkageAsync(In public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17360,7 +17419,7 @@ public async Task CreateAndLinkNewFirmClientAccoun public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17382,7 +17441,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17404,7 +17463,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -17426,7 +17485,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -17448,7 +17507,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -17470,7 +17529,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -17492,7 +17551,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -17522,7 +17581,7 @@ public async Task RevokeFirmClientLinkageAsync(Int public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17556,7 +17615,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -17588,7 +17647,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -17616,7 +17675,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17646,7 +17705,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17677,7 +17736,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -17708,7 +17767,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -17743,7 +17802,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -17774,7 +17833,7 @@ public async Task> CreateItemsAsync(Int32 companyId, List>("POST", path, model).ConfigureAwait(false); } @@ -17801,7 +17860,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -17833,7 +17892,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17863,7 +17922,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17895,7 +17954,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17923,7 +17982,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17949,7 +18008,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -17981,7 +18040,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18011,7 +18070,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18043,7 +18102,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18075,7 +18134,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18114,7 +18173,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18155,7 +18214,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18207,7 +18266,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18247,7 +18306,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18291,7 +18350,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18325,7 +18384,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -18361,7 +18420,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -18394,7 +18453,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -18427,7 +18486,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -18455,7 +18514,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -18479,7 +18538,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -18508,7 +18567,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18548,7 +18607,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18586,7 +18645,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18611,7 +18670,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -18646,7 +18705,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -18669,7 +18728,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -18693,7 +18752,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -18725,7 +18784,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -18760,7 +18819,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18792,7 +18851,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -18833,7 +18892,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18876,7 +18935,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18918,7 +18977,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -18945,7 +19004,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -18978,7 +19037,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -19004,7 +19063,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19049,7 +19108,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19095,7 +19154,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19132,7 +19191,7 @@ public async Task AuditMultiDocumentTransactionAsync(St public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19195,7 +19254,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19241,7 +19300,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19294,7 +19353,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19351,7 +19410,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -19422,7 +19481,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19457,7 +19516,7 @@ public async Task RefundMultiDocumentTransactionAsync(String public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19499,7 +19558,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -19540,7 +19599,7 @@ public async Task> CreateNexusAsync(Int32 companyId, List>("POST", path, model).ConfigureAwait(false); } @@ -19574,7 +19633,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -19611,7 +19670,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -19644,7 +19703,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -19675,7 +19734,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -19704,7 +19763,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -19737,7 +19796,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19774,7 +19833,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19805,7 +19864,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -19847,7 +19906,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -19891,7 +19950,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -19931,7 +19990,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -19971,7 +20030,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -20014,7 +20073,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -20047,7 +20106,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -20069,7 +20128,7 @@ public async Task UpdateNexusParameterAsync(Int32 com public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -20091,7 +20150,7 @@ public async Task CreateNoticeResponsibilityTypeAsync public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -20113,7 +20172,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20135,7 +20194,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20170,7 +20229,7 @@ public async Task 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("PUT", path, null).ConfigureAwait(false); } @@ -20199,7 +20258,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -20237,7 +20296,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -20273,7 +20332,7 @@ public async Task> ListNotificationsAsync(String public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -20300,7 +20359,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -20325,7 +20384,7 @@ public async Task RequestNewEntitlementAsync(Int32 id, String offer) public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -20359,7 +20418,7 @@ public async Task> CreateAccountAsync(AccountModel model) public async Task> CreateNotificationsAsync(List 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>("POST", path, model).ConfigureAwait(false); } @@ -20386,7 +20445,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -20412,7 +20471,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20444,7 +20503,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20471,7 +20530,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20491,7 +20550,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -20522,7 +20581,7 @@ public async Task 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 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("PUT", path, model).ConfigureAwait(false); } @@ -20581,7 +20640,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -20613,7 +20672,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -20648,7 +20707,7 @@ public async Task 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 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("GET", path, null).ConfigureAwait(false); } @@ -20718,7 +20777,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -20756,7 +20815,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -20793,7 +20852,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -20826,7 +20885,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -20859,7 +20918,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -20903,7 +20962,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -20945,7 +21004,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -20983,7 +21042,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -21009,7 +21068,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21044,7 +21103,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21077,7 +21136,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21104,7 +21163,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -21128,7 +21187,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -21156,7 +21215,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21195,7 +21254,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21232,7 +21291,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21263,7 +21322,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -21307,7 +21366,7 @@ public async Task UpdateTaxCodeAsync(Int32 companyId, Int32 id, Ta public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -21362,7 +21421,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21425,7 +21484,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21489,7 +21548,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21538,7 +21597,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21573,7 +21632,7 @@ public async Task> 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>("POST", path, model).ConfigureAwait(false); } @@ -21609,7 +21668,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -21645,7 +21704,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21692,7 +21751,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21737,7 +21796,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -21774,7 +21833,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -21817,7 +21876,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -21875,7 +21934,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -21922,7 +21981,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21971,7 +22030,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -21999,7 +22058,7 @@ public async Task AuditTransactionWithTypeAsync(String co public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22057,7 +22116,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22113,7 +22172,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22169,7 +22228,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22232,7 +22291,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22272,7 +22331,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22326,7 +22385,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -22363,7 +22422,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -22404,7 +22463,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -22467,7 +22526,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -22525,7 +22584,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22595,7 +22654,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22651,7 +22710,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22701,7 +22760,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -22748,7 +22807,7 @@ public async Task 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("POST", path, null).ConfigureAwait(false); } @@ -22803,7 +22862,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22860,7 +22919,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -22885,7 +22944,7 @@ public async Task> CreateUPCsAsync(Int32 companyId, List>("POST", path, model).ConfigureAwait(false); } @@ -22910,7 +22969,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -22936,7 +22995,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -22973,7 +23032,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23008,7 +23067,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23037,7 +23096,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -23062,7 +23121,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -23087,7 +23146,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23113,7 +23172,7 @@ public async Task 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("POST", path, model).ConfigureAwait(false); } @@ -23140,7 +23199,7 @@ public async Task UpdateUserDefinedFieldAsync(Int3 public async Task 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> CreateUsersAsync(Int32 accountId, List>("POST", path, model).ConfigureAwait(false); } @@ -23200,7 +23259,7 @@ public async Task> 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>("DELETE", path, null).ConfigureAwait(false); } @@ -23231,7 +23290,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -23269,7 +23328,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -23312,7 +23371,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23355,7 +23414,7 @@ public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23383,7 +23442,7 @@ public async Task 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("PUT", path, model).ConfigureAwait(false); } @@ -23408,7 +23467,7 @@ public async Task 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("GET", path, null).ConfigureAwait(false); } @@ -23431,7 +23490,7 @@ public async Task GetMySubscriptionAsync(String serviceTypeId public async Task> 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>("GET", path, null).ConfigureAwait(false); } @@ -23466,7 +23525,7 @@ public async Task> ListMySubscriptionsAsync() public async Task 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("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 @@ + 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 @@ + 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 @@ + 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 @@ Avalara.AvaTax - 21.12.0 + 22.2.0 Avalara AvaTax SDK Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services. diff --git a/src/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 +{ + /// + /// An edit to be made on a filing calendar. + /// + public class ACHEntryDetailModel + { + /// + /// Company Id + /// + public Int32? companyId { get; set; } + + /// + /// Company Name + /// + public String companyName { get; set; } + + /// + /// State + /// + public String state { get; set; } + + /// + /// State Region + /// + public String stateRegion { get; set; } + + /// + /// Individual Id + /// + public String individualId { get; set; } + + /// + /// IndividualName + /// + public String individualName { get; set; } + + /// + /// Amount + /// + public Decimal? amount { get; set; } + + /// + /// TraceNumber + /// + public String traceNumber { get; set; } + + + /// + /// Convert this object to a JSON string of itself + /// + /// A JSON string of this object + public override string ToString() + { + return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented }); + } + } +} diff --git a/src/models/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 /// public DateTime? endDate { get; set; } + /// + /// 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 + /// + public String taxTypeGroup { get; set; } + + /// + /// 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`. + /// + public String nexusTaxTypeGroup { get; set; } + /// /// First line of the street address ///