From bd0fed978ada89fd605233218ebe353483243ff3 Mon Sep 17 00:00:00 2001 From: svc-developer Date: Tue, 23 Apr 2024 17:22:20 +0000 Subject: [PATCH] 24.4.2 --- lib/AvaTaxClient.ts | 157 ++---------------- lib/enums/APStatus.ts | 53 ++++++ lib/enums/ApConfigToleranceType.ts | 35 ++++ lib/enums/BulkImportStatus.ts | 43 +++++ lib/enums/ErrorCodeId.ts | 2 + lib/enums/index.ts | 7 +- lib/models/APConfigSettingRequestModel.ts | 72 ++++++++ .../APConfigSettingSuccessResponseModel.ts | 72 ++++++++ lib/models/AccountModel.ts | 6 + lib/models/AdvancedRuleBulkImportModel.ts | 40 +++++ .../AdvancedRuleBulkImportResultModel.ts | 46 +++++ lib/models/AdvancedRuleExecutionModel.ts | 24 +++ lib/models/AdvancedRuleFullDetailsModel.ts | 42 ----- lib/models/AdvancedRuleImportResultModel.ts | 57 +++++++ lib/models/CompanyModel.ts | 6 + lib/models/ComplianceStateConfigModel.ts | 6 +- lib/models/ComplianceTaxRateModel.ts | 30 ++++ lib/models/DeterminationFactorModel.ts | 22 ++- lib/models/JurisdictionNexusModel.ts | 6 + lib/models/NexusForReturnsModel.ts | 129 ++++++++++++++ lib/models/NexusForReturnsRequestModel.ts | 57 +++++++ lib/models/RateType1703Model.ts | 45 +++++ lib/models/RateTypeTaxTypeMappingModel.ts | 51 ++++++ lib/models/TaxRegionModel.ts | 18 ++ lib/models/TaxSubType1703Model.ts | 45 +++++ lib/models/TaxType1703Model.ts | 45 +++++ lib/models/TransactionLineDetailModel.ts | 6 + lib/models/TransactionModel.ts | 12 ++ lib/models/UnitOfBasisModel.ts | 6 + lib/models/UserModel.ts | 6 + lib/models/index.ts | 11 +- package.json | 2 +- 32 files changed, 965 insertions(+), 194 deletions(-) create mode 100644 lib/enums/APStatus.ts create mode 100644 lib/enums/ApConfigToleranceType.ts create mode 100644 lib/enums/BulkImportStatus.ts create mode 100644 lib/models/AdvancedRuleBulkImportModel.ts create mode 100644 lib/models/AdvancedRuleBulkImportResultModel.ts create mode 100644 lib/models/AdvancedRuleImportResultModel.ts create mode 100644 lib/models/NexusForReturnsModel.ts create mode 100644 lib/models/NexusForReturnsRequestModel.ts create mode 100644 lib/models/RateType1703Model.ts create mode 100644 lib/models/RateTypeTaxTypeMappingModel.ts create mode 100644 lib/models/TaxSubType1703Model.ts create mode 100644 lib/models/TaxType1703Model.ts diff --git a/lib/AvaTaxClient.ts b/lib/AvaTaxClient.ts index 002ee76..311a612 100644 --- a/lib/AvaTaxClient.ts +++ b/lib/AvaTaxClient.ts @@ -10,7 +10,7 @@ * @author Sachin Baijal * @copyright 2004-2018 Avalara, Inc. * @license https://www.apache.org/licenses/LICENSE-2.0 - * @version 24.2.0 + * @version 24.4.2 * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK */ @@ -50,7 +50,7 @@ export default class AvaTaxClient { public auth: string; public customHttpAgent: https.Agent; public enableStrictTypeConversion: boolean; - private apiVersion: string = '24.2.0'; + private apiVersion: string = '24.4.2'; private logger: Logger; /** * Construct a new AvaTaxClient @@ -776,133 +776,6 @@ export default class AvaTaxClient { return this.restCall({ url: path, verb: 'post', payload: model, clientId: strClientId }, Models.AddressResolutionModel); } - /** - * Create a lookup file for a company - * - * Swagger Name: AvaTaxClient - * - * - * @param {number} accountId The ID of the account for the company - * @param {number} companyId The ID of the company for which the lookup file is to be created - * @param {Models.AdvancedRuleLookupFileModel} model The lookup file you wish to create - * @return {Models.AdvancedRuleLookupFileModel} - */ - - createCompanyLookupFile({ accountId, companyId, model }: { accountId: number, companyId: number, model: Models.AdvancedRuleLookupFileModel }): Promise { - var path = this.buildUrl({ - url: `/api/v2/advancedrules/accounts/${accountId}/companies/${companyId}/lookupFiles`, - parameters: {} - }); - var strClientId = - this.appNM + - '; ' + - this.appVer + - '; JavascriptSdk; ' + this.apiVersion + '; ' + - this.machineNM; - return this.restCall({ url: path, verb: 'post', payload: model, clientId: strClientId }, Models.AdvancedRuleLookupFileModel); - } - - /** - * Delete a lookup file - * - * Swagger Name: AvaTaxClient - * - * - * @param {number} accountId The ID of the account for the company the lookup file is for - * @param {string} id The unique ID/GUID for the company lookup file to be deleted - * @return {Models.ErrorDetail[]} - */ - - deleteLookupFile({ accountId, id }: { accountId: number, id: string }): Promise> { - var path = this.buildUrl({ - url: `/api/v2/advancedrules/accounts/${accountId}/lookupFiles/${id}`, - parameters: {} - }); - var strClientId = - this.appNM + - '; ' + - this.appVer + - '; JavascriptSdk; ' + this.apiVersion + '; ' + - this.machineNM; - return this.restCall({ url: path, verb: 'delete', payload: null, clientId: strClientId }, Array); - } - - /** - * Get the lookup files for a company - * - * Swagger Name: AvaTaxClient - * - * - * @param {number} accountId The account ID for the company - * @param {number} companyId The ID of the company for which to retrieve lookup files - * @return {FetchResult} - */ - - getCompanyLookupFiles({ accountId, companyId }: { accountId: number, companyId: number }): Promise> { - var path = this.buildUrl({ - url: `/api/v2/advancedrules/accounts/${accountId}/companies/${companyId}/lookupFiles`, - parameters: {} - }); - var strClientId = - this.appNM + - '; ' + - this.appVer + - '; JavascriptSdk; ' + this.apiVersion + '; ' + - this.machineNM; - return this.restCall({ url: path, verb: 'get', payload: null, clientId: strClientId }, FetchResult); - } - - /** - * Get a lookup file for an accountId and companyLookupFileId - * - * Swagger Name: AvaTaxClient - * - * - * @param {number} accountId The ID of the account for the lookup file - * @param {string} id The unique ID/GUID of the company lookup file to return - * @return {Models.AdvancedRuleLookupFileModel} - */ - - getLookupFile({ accountId, id }: { accountId: number, id: string }): Promise { - var path = this.buildUrl({ - url: `/api/v2/advancedrules/accounts/${accountId}/lookupFiles/${id}`, - parameters: {} - }); - var strClientId = - this.appNM + - '; ' + - this.appVer + - '; JavascriptSdk; ' + this.apiVersion + '; ' + - this.machineNM; - return this.restCall({ url: path, verb: 'get', payload: null, clientId: strClientId }, Models.AdvancedRuleLookupFileModel); - } - - /** - * Update a lookup file - * - * Swagger Name: AvaTaxClient - * - * - * @param {number} accountId The ID of the account for the company the lookup file is for - * @param {string} id The unique ID/GUID of the company lookup file to be updated - * @param {Models.AdvancedRuleLookupFileModel} model The new values to update the lookup file - * @return {Models.AdvancedRuleLookupFileModel} - */ - - updateLookupFile({ accountId, id, model }: { accountId: number, id: string, model: Models.AdvancedRuleLookupFileModel }): Promise { - var path = this.buildUrl({ - url: `/api/v2/advancedrules/accounts/${accountId}/lookupFiles/${id}`, - parameters: {} - }); - var strClientId = - this.appNM + - '; ' + - this.appVer + - '; JavascriptSdk; ' + this.apiVersion + '; ' + - this.machineNM; - return this.restCall({ url: path, verb: 'put', payload: model, clientId: strClientId }, Models.AdvancedRuleLookupFileModel); - } - /** * Create new rule * @@ -935,7 +808,7 @@ export default class AvaTaxClient { * * * @param {number} companyid The ID of the company that defined this rule - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent, apConfigToleranceType, payAsBilledNoAccrual, payAsBilledAccrueUndercharge, shortPayItemsAccrueUndercharge, markForReviewUndercharge, rejectUndercharge, payAsBilledOvercharge, shortPayAvalaraCalculated, shortPayItemsAccrueOvercharge, markForReviewOvercharge, rejectOvercharge, isActive * @param {string} include A comma separated list of additional data to retrieve. * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -969,7 +842,7 @@ export default class AvaTaxClient { * Swagger Name: AvaTaxClient * * - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* meta, amount, varianceForIgnore, varianceForAccrue, variancePercent, apConfigToleranceType, payAsBilledNoAccrual, payAsBilledAccrueUndercharge, shortPayItemsAccrueUndercharge, markForReviewUndercharge, rejectUndercharge, payAsBilledOvercharge, shortPayAvalaraCalculated, shortPayItemsAccrueOvercharge, markForReviewOvercharge, rejectOvercharge, isActive * @param {string} include A comma separated list of additional data to retrieve. * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -5559,7 +5432,7 @@ export default class AvaTaxClient { * Swagger Name: AvaTaxClient * * - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -5602,7 +5475,7 @@ export default class AvaTaxClient { * @param {string} region Name or ISO 3166 code identifying the region portion of the address. This field supports many different region identifiers: * Two and three character ISO 3166 region codes * Fully spelled out names of the region in ISO supported languages * Common alternative spellings for many regions For a full list of all supported codes and names, please see the Definitions API `ListRegions`. * @param {string} postalCode The postal code or zip code portion of this address. * @param {string} country Name or ISO 3166 code identifying the country portion of this address. This field supports many different country identifiers: * Two character ISO 3166 codes * Three character ISO 3166 codes * Fully spelled out names of the country in ISO supported languages * Common alternative spellings for many countries For a full list of all supported codes and names, please see the Definitions API `ListCountries`. - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -5644,7 +5517,7 @@ export default class AvaTaxClient { * * * @param {string} country The country in which you want to fetch the system nexus - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -5680,7 +5553,7 @@ export default class AvaTaxClient { * * @param {string} country The two-character ISO-3166 code for the country. * @param {string} region The two or three character region code for the region. - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -5753,7 +5626,7 @@ export default class AvaTaxClient { * * * @param {string} taxTypeGroup The tax type group to fetch the supporting system nexus for. - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. @@ -10814,7 +10687,7 @@ export default class AvaTaxClient { * * * @param {number} companyId The ID of the company that owns these nexus objects - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {string} include A comma separated list of additional data to retrieve. * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -10864,7 +10737,7 @@ export default class AvaTaxClient { * * @param {number} companyId The ID of the company that owns these nexus objects * @param {string} taxTypeGroup Name of TaxTypeGroup to filter by - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {string} include A comma separated list of additional data to retrieve. * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -10958,7 +10831,7 @@ export default class AvaTaxClient { * Swagger Name: AvaTaxClient * * - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters, taxableNexus + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* streamlinedSalesTax, isSSTActive, taxTypeGroup, taxAuthorityId, taxName, parameters * @param {string} include A comma separated list of additional data to retrieve. * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. @@ -11352,8 +11225,8 @@ export default class AvaTaxClient { /** * Request a new entitilement to an existing customer - * This API is for use by partner provisioning services customers only. This will allow the partners to allow - * the add new entitlement to an existing customer + * This API is for use by partner provisioning services customers only. This allows the partners to add + * new entitlements to an existing customer. * * ### Security Policies * @@ -14006,7 +13879,7 @@ export default class AvaTaxClient { * @param {string} companyCode The company code of the company that recorded this transaction * @param {number} dataSourceId Optionally filter transactions to those from a specific data source. * @param {string} include Specifies objects to include in this fetch call - * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms + * @param {string} filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms, apStatusCode, apStatus * @param {number} top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. * @param {number} skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. * @param {string} orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. diff --git a/lib/enums/APStatus.ts b/lib/enums/APStatus.ts new file mode 100644 index 0000000..3939e2a --- /dev/null +++ b/lib/enums/APStatus.ts @@ -0,0 +1,53 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import { JsonConverter, JsonCustomConvert } from "json2typescript"; + +/** +* @export +* @enum {string} +*/ + export enum APStatus { + PayAsBilledMatch = 0, + ShortPayItemsAccrueMatch = 1, + MarkForReviewMatch = 2, + RejectMatch = 3, + PayAsBilledNoAccrual = 4, + PayAsBilledAccrueUndercharge = 5, + ShortPayItemsAccrueUndercharge = 6, + MarkForReviewUndercharge = 7, + RejectUndercharge = 8, + PayAsBilledOvercharge = 9, + ShortPayAvalaraCalculated = 10, + ShortPayItemsAccrueOvercharge = 11, + MarkForReviewOvercharge = 12, + RejectOvercharge = 13, + AmountThresholdNotMet = 14, + CostCenterExempted = 15, + ItemExempted = 16, + TrustedVendor = 17, + AccruedByVendor = 18, + Ignored = 19, +} + +@JsonConverter +export class APStatusConverter implements JsonCustomConvert { + serialize(data: APStatus) { + return data; + } + deserialize(enumType: string): APStatus { + return APStatus[enumType as keyof typeof APStatus]; + } +} \ No newline at end of file diff --git a/lib/enums/ApConfigToleranceType.ts b/lib/enums/ApConfigToleranceType.ts new file mode 100644 index 0000000..c5c25ec --- /dev/null +++ b/lib/enums/ApConfigToleranceType.ts @@ -0,0 +1,35 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import { JsonConverter, JsonCustomConvert } from "json2typescript"; + +/** +* @export +* @enum {string} +*/ + export enum ApConfigToleranceType { + RealTime = 0, + Batch = 1, +} + +@JsonConverter +export class ApConfigToleranceTypeConverter implements JsonCustomConvert { + serialize(data: ApConfigToleranceType) { + return data; + } + deserialize(enumType: string): ApConfigToleranceType { + return ApConfigToleranceType[enumType as keyof typeof ApConfigToleranceType]; + } +} \ No newline at end of file diff --git a/lib/enums/BulkImportStatus.ts b/lib/enums/BulkImportStatus.ts new file mode 100644 index 0000000..7bd1dd5 --- /dev/null +++ b/lib/enums/BulkImportStatus.ts @@ -0,0 +1,43 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import { JsonConverter, JsonCustomConvert } from "json2typescript"; + +/** +* @export +* @enum {string} +*/ + export enum BulkImportStatus { + None = 0, + Success = 1, + Created = 2, + Updated = 4, + NotImported = 8, + Ignored = 16, + Error = 32, + ValidationFailed = 64, + PartialSuccess = 128, + Invalid = 256, +} + +@JsonConverter +export class BulkImportStatusConverter implements JsonCustomConvert { + serialize(data: BulkImportStatus) { + return data; + } + deserialize(enumType: string): BulkImportStatus { + return BulkImportStatus[enumType as keyof typeof BulkImportStatus]; + } +} \ No newline at end of file diff --git a/lib/enums/ErrorCodeId.ts b/lib/enums/ErrorCodeId.ts index 0a32273..ae3fb36 100644 --- a/lib/enums/ErrorCodeId.ts +++ b/lib/enums/ErrorCodeId.ts @@ -321,6 +321,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript"; InvalidFileName = 1737, NoClassificationForSameHsCode = 1738, InvalidValueError = 1739, + ItemDualWriteParameterValueMismatchError = 1740, UnsupportedFileFormat = 1800, UnsupportedOutputFileType = 1801, TaxProfileNotProvided = 1900, @@ -360,6 +361,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript"; FieldLengthError = 2400, InputContainsBlacklistedCharacters = 2401, CannotCreateNestedObjects = 2402, + InvalidUsername = 2403, UserSubjectIdNotUpdated = 2500, BatchTransactionTypeError = 2501, BatchTransactionLineLimitExceeded = 2502, diff --git a/lib/enums/index.ts b/lib/enums/index.ts index 8ef09e5..f3696e4 100644 --- a/lib/enums/index.ts +++ b/lib/enums/index.ts @@ -22,10 +22,12 @@ export * from './UserDefinedFieldType'; export * from './POABusinessUnit'; export * from './POASubscriptionType'; export * from './StackAggregationOption'; +export * from './ApConfigToleranceType'; export * from './AccountStatusId'; export * from './AccountTypeId'; export * from './ResolutionQuality'; export * from './AdjustmentReason'; +export * from './BulkImportStatus'; export * from './ApiCallStatus'; export * from './FormTypeId'; export * from './FilingOptionTypeId'; @@ -75,10 +77,10 @@ export * from './BoundaryLevel'; export * from './MarketplaceLiabilityType'; export * from './AddressTypeId'; export * from './AddressCategoryId'; -export * from './JurisTypeId'; export * from './NexusTypeId'; -export * from './Sourcing'; export * from './LocalNexusTypeId'; +export * from './JurisTypeId'; +export * from './Sourcing'; export * from './CommentType'; export * from './NoticeCustomerType'; export * from './TaxNoticeFilingTypeId'; @@ -97,6 +99,7 @@ export * from './TaxRuleTypeId'; export * from './LiabilityType'; export * from './ChargedTo'; export * from './DeemedSellerType'; +export * from './APStatus'; export * from './CompanyAccessLevel'; export * from './SecurityRoleId'; export * from './PasswordStatusId'; diff --git a/lib/models/APConfigSettingRequestModel.ts b/lib/models/APConfigSettingRequestModel.ts index b743ba4..233ccb9 100644 --- a/lib/models/APConfigSettingRequestModel.ts +++ b/lib/models/APConfigSettingRequestModel.ts @@ -48,4 +48,76 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("variancePercent", Number, true) variancePercent?: number | undefined = undefined; + /** + * @type {Enums.ApConfigToleranceType} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("apConfigToleranceType", Enums.ApConfigToleranceTypeConverter, true) + apConfigToleranceType?: Enums.ApConfigToleranceType | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("payAsBilledNoAccrual", Number, true) + payAsBilledNoAccrual?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("payAsBilledAccrueUndercharge", Number, true) + payAsBilledAccrueUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("shortPayItemsAccrueUndercharge", Number, true) + shortPayItemsAccrueUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("markForReviewUndercharge", Number, true) + markForReviewUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("rejectUndercharge", Number, true) + rejectUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("payAsBilledOvercharge", Number, true) + payAsBilledOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("shortPayAvalaraCalculated", Number, true) + shortPayAvalaraCalculated?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("shortPayItemsAccrueOvercharge", Number, true) + shortPayItemsAccrueOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("markForReviewOvercharge", Number, true) + markForReviewOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("rejectOvercharge", Number, true) + rejectOvercharge?: number | undefined = undefined; + /** + * @type {boolean} + * @memberof APConfigSettingRequestModel + */ + @JsonProperty("isActive", Boolean, true) + isActive?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/APConfigSettingSuccessResponseModel.ts b/lib/models/APConfigSettingSuccessResponseModel.ts index 7103ab5..f9abf35 100644 --- a/lib/models/APConfigSettingSuccessResponseModel.ts +++ b/lib/models/APConfigSettingSuccessResponseModel.ts @@ -67,4 +67,76 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("variancePercent", Number, true) variancePercent?: number | undefined = undefined; + /** + * @type {Enums.ApConfigToleranceType} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("apConfigToleranceType", Enums.ApConfigToleranceTypeConverter, true) + apConfigToleranceType?: Enums.ApConfigToleranceType | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("payAsBilledNoAccrual", Number, true) + payAsBilledNoAccrual?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("payAsBilledAccrueUndercharge", Number, true) + payAsBilledAccrueUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("shortPayItemsAccrueUndercharge", Number, true) + shortPayItemsAccrueUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("markForReviewUndercharge", Number, true) + markForReviewUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("rejectUndercharge", Number, true) + rejectUndercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("payAsBilledOvercharge", Number, true) + payAsBilledOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("shortPayAvalaraCalculated", Number, true) + shortPayAvalaraCalculated?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("shortPayItemsAccrueOvercharge", Number, true) + shortPayItemsAccrueOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("markForReviewOvercharge", Number, true) + markForReviewOvercharge?: number | undefined = undefined; + /** + * @type {number} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("rejectOvercharge", Number, true) + rejectOvercharge?: number | undefined = undefined; + /** + * @type {boolean} + * @memberof APConfigSettingSuccessResponseModel + */ + @JsonProperty("isActive", Boolean, true) + isActive?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/AccountModel.ts b/lib/models/AccountModel.ts index 9762c8a..a5ef220 100644 --- a/lib/models/AccountModel.ts +++ b/lib/models/AccountModel.ts @@ -110,4 +110,10 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("isSamlEnabled", Boolean, true) isSamlEnabled?: boolean | undefined = undefined; + /** + * @type {boolean} + * @memberof AccountModel + */ + @JsonProperty("isDeleted", Boolean, true) + isDeleted?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/AdvancedRuleBulkImportModel.ts b/lib/models/AdvancedRuleBulkImportModel.ts new file mode 100644 index 0000000..d5ea7ff --- /dev/null +++ b/lib/models/AdvancedRuleBulkImportModel.ts @@ -0,0 +1,40 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { AdvancedRuleExecutionModel } from "./AdvancedRuleExecutionModel"; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Input model for the Advanced Rules bulk import API + * @export + * @class AdvancedRuleBulkImportModel + */ + @JsonObject("AdvancedRuleBulkImportModel") + export class AdvancedRuleBulkImportModel { + /** + * @type {boolean} + * @memberof AdvancedRuleBulkImportModel + */ + @JsonProperty("replaceExisting", Boolean, true) + replaceExisting?: boolean | undefined = undefined; + /** + * @type {AdvancedRuleExecutionModel[]} + * @memberof AdvancedRuleBulkImportModel + */ + @JsonProperty("executions", [AdvancedRuleExecutionModel]) + executions: AdvancedRuleExecutionModel[] = undefined; + } \ No newline at end of file diff --git a/lib/models/AdvancedRuleBulkImportResultModel.ts b/lib/models/AdvancedRuleBulkImportResultModel.ts new file mode 100644 index 0000000..4b932bf --- /dev/null +++ b/lib/models/AdvancedRuleBulkImportResultModel.ts @@ -0,0 +1,46 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { AdvancedRuleImportResultModel } from "./AdvancedRuleImportResultModel"; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Output model for the Advanced Rules bulk import API + * @export + * @class AdvancedRuleBulkImportResultModel + */ + @JsonObject("AdvancedRuleBulkImportResultModel") + export class AdvancedRuleBulkImportResultModel { + /** + * @type {Enums.BulkImportStatus} + * @memberof AdvancedRuleBulkImportResultModel + */ + @JsonProperty("importResult", Enums.BulkImportStatusConverter, true) + importResult?: Enums.BulkImportStatus | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleBulkImportResultModel + */ + @JsonProperty("importMessage", String, true) + importMessage?: string | undefined = undefined; + /** + * @type {AdvancedRuleImportResultModel[]} + * @memberof AdvancedRuleBulkImportResultModel + */ + @JsonProperty("executions", [AdvancedRuleImportResultModel], true) + executions?: AdvancedRuleImportResultModel[] | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/AdvancedRuleExecutionModel.ts b/lib/models/AdvancedRuleExecutionModel.ts index d9b8c5b..bca6653 100644 --- a/lib/models/AdvancedRuleExecutionModel.ts +++ b/lib/models/AdvancedRuleExecutionModel.ts @@ -85,4 +85,28 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("customerDataId", String, true) customerDataId?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleExecutionModel + */ + @JsonProperty("createdBy", String, true) + createdBy?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleExecutionModel + */ + @JsonProperty("createdOn", String, true) + createdOn?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleExecutionModel + */ + @JsonProperty("modifiedBy", String, true) + modifiedBy?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleExecutionModel + */ + @JsonProperty("modifiedOn", String, true) + modifiedOn?: string | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/AdvancedRuleFullDetailsModel.ts b/lib/models/AdvancedRuleFullDetailsModel.ts index 495e7df..9a32ecc 100644 --- a/lib/models/AdvancedRuleFullDetailsModel.ts +++ b/lib/models/AdvancedRuleFullDetailsModel.ts @@ -28,24 +28,6 @@ import { DateConverter } from "../utils/dateConverter"; * @type {string} * @memberof AdvancedRuleFullDetailsModel */ - @JsonProperty("script", String) - script: string = undefined; - /** - * @type {string} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("customerDataValidatorScript", String, true) - customerDataValidatorScript?: string | undefined = undefined; - /** - * @type {boolean} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("isApproved", Boolean, true) - isApproved?: boolean | undefined = undefined; - /** - * @type {string} - * @memberof AdvancedRuleFullDetailsModel - */ @JsonProperty("createdBy", String, true) createdBy?: string | undefined = undefined; /** @@ -54,24 +36,6 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("createdOn", String, true) createdOn?: string | undefined = undefined; - /** - * @type {string} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("modifiedBy", String, true) - modifiedBy?: string | undefined = undefined; - /** - * @type {string} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("modifiedOn", String, true) - modifiedOn?: string | undefined = undefined; - /** - * @type {string} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("approvedBy", String, true) - approvedBy?: string | undefined = undefined; /** * @type {boolean} * @memberof AdvancedRuleFullDetailsModel @@ -102,12 +66,6 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("version", Number, true) version?: number | undefined = undefined; - /** - * @type {number[]} - * @memberof AdvancedRuleFullDetailsModel - */ - @JsonProperty("accountsVisibleFor", [Number], true) - accountsVisibleFor?: number[] | undefined = undefined; /** * @type {string} * @memberof AdvancedRuleFullDetailsModel diff --git a/lib/models/AdvancedRuleImportResultModel.ts b/lib/models/AdvancedRuleImportResultModel.ts new file mode 100644 index 0000000..02a8a9d --- /dev/null +++ b/lib/models/AdvancedRuleImportResultModel.ts @@ -0,0 +1,57 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Model for the results of importing a single rule execution with the Advanced Rules bulk import API + * @export + * @class AdvancedRuleImportResultModel + */ + @JsonObject("AdvancedRuleImportResultModel") + export class AdvancedRuleImportResultModel { + /** + * @type {string} + * @memberof AdvancedRuleImportResultModel + */ + @JsonProperty("name", String, true) + name?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleImportResultModel + */ + @JsonProperty("importResult", String, true) + importResult?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleImportResultModel + */ + @JsonProperty("importDetails", String, true) + importDetails?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleImportResultModel + */ + @JsonProperty("ruleExecutionId", String, true) + ruleExecutionId?: string | undefined = undefined; + /** + * @type {string} + * @memberof AdvancedRuleImportResultModel + */ + @JsonProperty("ruleId", String, true) + ruleId?: string | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/CompanyModel.ts b/lib/models/CompanyModel.ts index 5e0a700..094829f 100644 --- a/lib/models/CompanyModel.ts +++ b/lib/models/CompanyModel.ts @@ -275,4 +275,10 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("supplierandcustomers", [CustomerSupplierModel], true) supplierandcustomers?: CustomerSupplierModel[] | undefined = undefined; + /** + * @type {boolean} + * @memberof CompanyModel + */ + @JsonProperty("isDeleted", Boolean, true) + isDeleted?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/ComplianceStateConfigModel.ts b/lib/models/ComplianceStateConfigModel.ts index 7529e66..8c39eeb 100644 --- a/lib/models/ComplianceStateConfigModel.ts +++ b/lib/models/ComplianceStateConfigModel.ts @@ -127,11 +127,11 @@ import { DateConverter } from "../utils/dateConverter"; @JsonProperty("country", String, true) country?: string | undefined = undefined; /** - * @type {number} + * @type {boolean} * @memberof ComplianceStateConfigModel */ - @JsonProperty("isJaasEnabled", Number, true) - isJaasEnabled?: number | undefined = undefined; + @JsonProperty("isJaasEnabled", Boolean, true) + isJaasEnabled?: boolean | undefined = undefined; /** * @type {boolean} * @memberof ComplianceStateConfigModel diff --git a/lib/models/ComplianceTaxRateModel.ts b/lib/models/ComplianceTaxRateModel.ts index 75efefa..bf643aa 100644 --- a/lib/models/ComplianceTaxRateModel.ts +++ b/lib/models/ComplianceTaxRateModel.ts @@ -90,4 +90,34 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("rateTypeTaxTypeMappingId", Number, true) rateTypeTaxTypeMappingId?: number | undefined = undefined; + /** + * @type {Date} + * @memberof ComplianceTaxRateModel + */ + @JsonProperty("createDate", DateConverter, true) + createDate?: Date | undefined = undefined; + /** + * @type {string} + * @memberof ComplianceTaxRateModel + */ + @JsonProperty("source", String, true) + source?: string | undefined = undefined; + /** + * @type {string} + * @memberof ComplianceTaxRateModel + */ + @JsonProperty("currencyCode", String, true) + currencyCode?: string | undefined = undefined; + /** + * @type {number} + * @memberof ComplianceTaxRateModel + */ + @JsonProperty("uomId", Number, true) + uomId?: number | undefined = undefined; + /** + * @type {Date} + * @memberof ComplianceTaxRateModel + */ + @JsonProperty("modifiedDate", DateConverter, true) + modifiedDate?: Date | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/DeterminationFactorModel.ts b/lib/models/DeterminationFactorModel.ts index 8e3c7d1..c2d3b4c 100644 --- a/lib/models/DeterminationFactorModel.ts +++ b/lib/models/DeterminationFactorModel.ts @@ -48,10 +48,28 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("names", [String], true) names?: string[] | undefined = undefined; + /** + * @type {string[]} + * @memberof DeterminationFactorModel + */ + @JsonProperty("createdBy", [String], true) + createdBy?: string[] | undefined = undefined; + /** + * @type {string} + * @memberof DeterminationFactorModel + */ + @JsonProperty("entityUseCode", String, true) + entityUseCode?: string | undefined = undefined; + /** + * @type {string} + * @memberof DeterminationFactorModel + */ + @JsonProperty("exemptCertId", String, true) + exemptCertId?: string | undefined = undefined; /** * @type {string} * @memberof DeterminationFactorModel */ - @JsonProperty("createdBy", String, true) - createdBy?: string | undefined = undefined; + @JsonProperty("exemptNo", String, true) + exemptNo?: string | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/JurisdictionNexusModel.ts b/lib/models/JurisdictionNexusModel.ts index 05427ab..c6aa8da 100644 --- a/lib/models/JurisdictionNexusModel.ts +++ b/lib/models/JurisdictionNexusModel.ts @@ -42,4 +42,10 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("taxName", String, true) taxName?: string | undefined = undefined; + /** + * @type {boolean} + * @memberof JurisdictionNexusModel + */ + @JsonProperty("taxableNexus", Boolean, true) + taxableNexus?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/NexusForReturnsModel.ts b/lib/models/NexusForReturnsModel.ts new file mode 100644 index 0000000..9c2c39c --- /dev/null +++ b/lib/models/NexusForReturnsModel.ts @@ -0,0 +1,129 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Reponse model for the returns specific nexus fetch API + * @export + * @class NexusForReturnsModel + */ + @JsonObject("NexusForReturnsModel") + export class NexusForReturnsModel { + /** + * @type {number} + * @memberof NexusForReturnsModel + */ + @JsonProperty("id", Number, true) + id?: number | undefined = undefined; + /** + * @type {number} + * @memberof NexusForReturnsModel + */ + @JsonProperty("companyId", Number, true) + companyId?: number | undefined = undefined; + /** + * @type {number} + * @memberof NexusForReturnsModel + */ + @JsonProperty("assignedToCountryId", Number, true) + assignedToCountryId?: number | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("country", String, true) + country?: string | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("region", String, true) + region?: string | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("jurisName", String, true) + jurisName?: string | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("nexusTaxTypeGroup", String, true) + nexusTaxTypeGroup?: string | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("nexusTypeId", String, true) + nexusTypeId?: string | undefined = undefined; + /** + * @type {boolean} + * @memberof NexusForReturnsModel + */ + @JsonProperty("hasLocalNexus", Boolean, true) + hasLocalNexus?: boolean | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("localNexusType", String, true) + localNexusType?: string | undefined = undefined; + /** + * @type {number} + * @memberof NexusForReturnsModel + */ + @JsonProperty("sstNexusId", Number, true) + sstNexusId?: number | undefined = undefined; + /** + * @type {string} + * @memberof NexusForReturnsModel + */ + @JsonProperty("sstType", String, true) + sstType?: string | undefined = undefined; + /** + * @type {Date} + * @memberof NexusForReturnsModel + */ + @JsonProperty("effectiveDate", DateConverter, true) + effectiveDate?: Date | undefined = undefined; + /** + * @type {Date} + * @memberof NexusForReturnsModel + */ + @JsonProperty("endDate", DateConverter, true) + endDate?: Date | undefined = undefined; + /** + * @type {Date} + * @memberof NexusForReturnsModel + */ + @JsonProperty("sstEffectiveDate", DateConverter, true) + sstEffectiveDate?: Date | undefined = undefined; + /** + * @type {Date} + * @memberof NexusForReturnsModel + */ + @JsonProperty("sstEndDate", DateConverter, true) + sstEndDate?: Date | undefined = undefined; + /** + * @type {boolean} + * @memberof NexusForReturnsModel + */ + @JsonProperty("isRemoteSeller", Boolean, true) + isRemoteSeller?: boolean | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/NexusForReturnsRequestModel.ts b/lib/models/NexusForReturnsRequestModel.ts new file mode 100644 index 0000000..6e59dfa --- /dev/null +++ b/lib/models/NexusForReturnsRequestModel.ts @@ -0,0 +1,57 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Request model for the returns specific nexus fetch API + * @export + * @class NexusForReturnsRequestModel + */ + @JsonObject("NexusForReturnsRequestModel") + export class NexusForReturnsRequestModel { + /** + * @type {string} + * @memberof NexusForReturnsRequestModel + */ + @JsonProperty("nexusTaxTypeGroup", String, true) + nexusTaxTypeGroup?: string | undefined = undefined; + /** + * @type {Enums.NexusTypeId} + * @memberof NexusForReturnsRequestModel + */ + @JsonProperty("nexusTypeId", Enums.NexusTypeIdConverter, true) + nexusTypeId?: Enums.NexusTypeId | undefined = undefined; + /** + * @type {Enums.LocalNexusTypeId} + * @memberof NexusForReturnsRequestModel + */ + @JsonProperty("localNexusTypeId", Enums.LocalNexusTypeIdConverter, true) + localNexusTypeId?: Enums.LocalNexusTypeId | undefined = undefined; + /** + * @type {boolean} + * @memberof NexusForReturnsRequestModel + */ + @JsonProperty("showHistorical", Boolean, true) + showHistorical?: boolean | undefined = undefined; + /** + * @type {boolean} + * @memberof NexusForReturnsRequestModel + */ + @JsonProperty("showSSTOnly", Boolean, true) + showSSTOnly?: boolean | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/RateType1703Model.ts b/lib/models/RateType1703Model.ts new file mode 100644 index 0000000..6d23472 --- /dev/null +++ b/lib/models/RateType1703Model.ts @@ -0,0 +1,45 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Represents RateType1703 Model + * @export + * @class RateType1703Model + */ + @JsonObject("RateType1703Model") + export class RateType1703Model { + /** + * @type {number} + * @memberof RateType1703Model + */ + @JsonProperty("rateTypeIdSK", Number, true) + rateTypeIdSK?: number | undefined = undefined; + /** + * @type {string} + * @memberof RateType1703Model + */ + @JsonProperty("rateTypeId", String, true) + rateTypeId?: string | undefined = undefined; + /** + * @type {string} + * @memberof RateType1703Model + */ + @JsonProperty("description", String, true) + description?: string | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/RateTypeTaxTypeMappingModel.ts b/lib/models/RateTypeTaxTypeMappingModel.ts new file mode 100644 index 0000000..9f52d06 --- /dev/null +++ b/lib/models/RateTypeTaxTypeMappingModel.ts @@ -0,0 +1,51 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Represents RateTypeTaxTypeMappingModel Model + * @export + * @class RateTypeTaxTypeMappingModel + */ + @JsonObject("RateTypeTaxTypeMappingModel") + export class RateTypeTaxTypeMappingModel { + /** + * @type {number} + * @memberof RateTypeTaxTypeMappingModel + */ + @JsonProperty("rateTypeTaxTypeMappingId", Number, true) + rateTypeTaxTypeMappingId?: number | undefined = undefined; + /** + * @type {number} + * @memberof RateTypeTaxTypeMappingModel + */ + @JsonProperty("taxTypeMappingId", Number, true) + taxTypeMappingId?: number | undefined = undefined; + /** + * @type {number} + * @memberof RateTypeTaxTypeMappingModel + */ + @JsonProperty("rateTypeIdSK", Number, true) + rateTypeIdSK?: number | undefined = undefined; + /** + * @type {string} + * @memberof RateTypeTaxTypeMappingModel + */ + @JsonProperty("rateTypeId", String, true) + rateTypeId?: string | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/TaxRegionModel.ts b/lib/models/TaxRegionModel.ts index 3a739dd..f1b2976 100644 --- a/lib/models/TaxRegionModel.ts +++ b/lib/models/TaxRegionModel.ts @@ -109,4 +109,22 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("jurisdictions", [DenormalizedJurisModel], true) jurisdictions?: DenormalizedJurisModel[] | undefined = undefined; + /** + * @type {Date} + * @memberof TaxRegionModel + */ + @JsonProperty("createDate", DateConverter, true) + createDate?: Date | undefined = undefined; + /** + * @type {Date} + * @memberof TaxRegionModel + */ + @JsonProperty("modifiedDate", DateConverter, true) + modifiedDate?: Date | undefined = undefined; + /** + * @type {string} + * @memberof TaxRegionModel + */ + @JsonProperty("foodSERCode", String, true) + foodSERCode?: string | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/TaxSubType1703Model.ts b/lib/models/TaxSubType1703Model.ts new file mode 100644 index 0000000..e3f4bdb --- /dev/null +++ b/lib/models/TaxSubType1703Model.ts @@ -0,0 +1,45 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Represents RateTypeTaxTypeMapping Model + * @export + * @class TaxSubType1703Model + */ + @JsonObject("TaxSubType1703Model") + export class TaxSubType1703Model { + /** + * @type {number} + * @memberof TaxSubType1703Model + */ + @JsonProperty("taxSubTypeIdSK", Number, true) + taxSubTypeIdSK?: number | undefined = undefined; + /** + * @type {string} + * @memberof TaxSubType1703Model + */ + @JsonProperty("taxSubTypeId", String, true) + taxSubTypeId?: string | undefined = undefined; + /** + * @type {string} + * @memberof TaxSubType1703Model + */ + @JsonProperty("description", String, true) + description?: string | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/TaxType1703Model.ts b/lib/models/TaxType1703Model.ts new file mode 100644 index 0000000..bdf7ede --- /dev/null +++ b/lib/models/TaxType1703Model.ts @@ -0,0 +1,45 @@ +/* + * AvaTax Software Development Kit for JavaScript + * + * (c) 2004-2022 Avalara, Inc. + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + * + * @author Jonathan Wenger + * @author Sachin Baijal + * @copyright 2004-2018 Avalara, Inc. + * @license https://www.apache.org/licenses/LICENSE-2.0 + * @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK + */ + +import * as Enums from '../enums/index'; +import { JsonObject, JsonProperty } from "json2typescript"; +import { DateConverter } from "../utils/dateConverter"; + +/** + * Represents TaxType1703 Model + * @export + * @class TaxType1703Model + */ + @JsonObject("TaxType1703Model") + export class TaxType1703Model { + /** + * @type {number} + * @memberof TaxType1703Model + */ + @JsonProperty("taxTypeIdSK", Number, true) + taxTypeIdSK?: number | undefined = undefined; + /** + * @type {string} + * @memberof TaxType1703Model + */ + @JsonProperty("taxTypeId", String, true) + taxTypeId?: string | undefined = undefined; + /** + * @type {string} + * @memberof TaxType1703Model + */ + @JsonProperty("description", String, true) + description?: string | undefined = undefined; + } \ No newline at end of file diff --git a/lib/models/TransactionLineDetailModel.ts b/lib/models/TransactionLineDetailModel.ts index a81401d..c1995a5 100644 --- a/lib/models/TransactionLineDetailModel.ts +++ b/lib/models/TransactionLineDetailModel.ts @@ -84,6 +84,12 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("exemptReasonId", Number, true) exemptReasonId?: number | undefined = undefined; + /** + * @type {number} + * @memberof TransactionLineDetailModel + */ + @JsonProperty("exemptRuleId", Number, true) + exemptRuleId?: number | undefined = undefined; /** * @type {boolean} * @memberof TransactionLineDetailModel diff --git a/lib/models/TransactionModel.ts b/lib/models/TransactionModel.ts index b838a50..e252fa4 100644 --- a/lib/models/TransactionModel.ts +++ b/lib/models/TransactionModel.ts @@ -393,4 +393,16 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("deliveryTerms", Enums.DeliveryTermsConverter, true) deliveryTerms?: Enums.DeliveryTerms | undefined = undefined; + /** + * @type {Enums.APStatus} + * @memberof TransactionModel + */ + @JsonProperty("apStatusCode", Enums.APStatusConverter, true) + apStatusCode?: Enums.APStatus | undefined = undefined; + /** + * @type {string} + * @memberof TransactionModel + */ + @JsonProperty("apStatus", String, true) + apStatus?: string | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/UnitOfBasisModel.ts b/lib/models/UnitOfBasisModel.ts index a3c93ba..9d8c08d 100644 --- a/lib/models/UnitOfBasisModel.ts +++ b/lib/models/UnitOfBasisModel.ts @@ -36,4 +36,10 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("unitOfBasis", String, true) unitOfBasis?: string | undefined = undefined; + /** + * @type {boolean} + * @memberof UnitOfBasisModel + */ + @JsonProperty("isFee", Boolean, true) + isFee?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/UserModel.ts b/lib/models/UserModel.ts index 15c440f..5d55192 100644 --- a/lib/models/UserModel.ts +++ b/lib/models/UserModel.ts @@ -120,4 +120,10 @@ import { DateConverter } from "../utils/dateConverter"; */ @JsonProperty("suppressNewUserEmail", Boolean, true) suppressNewUserEmail?: boolean | undefined = undefined; + /** + * @type {boolean} + * @memberof UserModel + */ + @JsonProperty("isDeleted", Boolean, true) + isDeleted?: boolean | undefined = undefined; } \ No newline at end of file diff --git a/lib/models/index.ts b/lib/models/index.ts index 31a0375..f28071b 100644 --- a/lib/models/index.ts +++ b/lib/models/index.ts @@ -31,14 +31,15 @@ export * from './AddressValidationInfo'; export * from './AddressesModel'; export * from './AdjustMultiDocumentModel'; export * from './AdjustTransactionModel'; +export * from './AdvancedRuleBulkImportModel'; +export * from './AdvancedRuleBulkImportResultModel'; export * from './AdvancedRuleCustomerDataSchemaModel'; export * from './AdvancedRuleExecutionModel'; export * from './AdvancedRuleExecutionOrderModel'; export * from './AdvancedRuleFullDetailsModel'; +export * from './AdvancedRuleImportResultModel'; export * from './AdvancedRuleLookupFileModel'; export * from './AdvancedRuleModel'; -export * from './AdvancedRuleVisibilityModel'; -export * from './ApproveAdvancedRuleModel'; export * from './ApproveFilingsModel'; export * from './AuditEvent'; export * from './AuditModel'; @@ -235,6 +236,8 @@ export * from './NewAccountRequestModel'; export * from './NewFirmClientAccountRequestModel'; export * from './NexusByAddressModel'; export * from './NexusByTaxFormModel'; +export * from './NexusForReturnsModel'; +export * from './NexusForReturnsRequestModel'; export * from './NexusModel'; export * from './NexusParameterDetailModel'; export * from './NexusSummaryModel'; @@ -275,7 +278,9 @@ export * from './ProductSystemCountryModel'; export * from './ProvisionStatusModel'; export * from './QueryRequestModel'; export * from './RateModel'; +export * from './RateType1703Model'; export * from './RateTypeModel'; +export * from './RateTypeTaxTypeMappingModel'; export * from './RateTypesModel'; export * from './RebuildFilingsModel'; export * from './ReconstructedApiRequestResponseModel'; @@ -319,7 +324,9 @@ export * from './TaxRegionJurisdictionModel'; export * from './TaxRegionModel'; export * from './TaxRuleModel'; export * from './TaxRuleProductDetailModel'; +export * from './TaxSubType1703Model'; export * from './TaxSubTypeModel'; +export * from './TaxType1703Model'; export * from './TaxTypeGroupModel'; export * from './TaxTypeMappingModel'; export * from './TaxTypeModel'; diff --git a/package.json b/package.json index fe8d17c..9f4b7f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "avatax", - "version": "24.2.0", + "version": "24.4.2", "description": "AvaTax v2 SDK for languages using JavaScript", "main": "index.js", "types": "index.d.ts",