Skip to content

Commit

Permalink
Merge pull request #289 from avadev/23.10.1
Browse files Browse the repository at this point in the history
Update for 23.10.1
  • Loading branch information
svc-developer authored Oct 27, 2023
2 parents c9f2e96 + b86b986 commit 073c309
Show file tree
Hide file tree
Showing 17 changed files with 7,955 additions and 6,987 deletions.
14,380 changes: 7,394 additions & 6,986 deletions lib/AvaTaxClient.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/enums/BatchType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
UPCValidationImport = 12,
CustomerSupplierImport = 13,
VarianceImport = 14,
CostCenterImport = 15,
}

@JsonConverter
Expand Down
2 changes: 2 additions & 0 deletions lib/enums/DocumentType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
ReverseChargeInvoice = 9,
CustomsInvoice = 10,
CustomsOrder = 11,
InventoryTransferOutboundInvoice = 12,
InventoryTransferOutboundOrder = 13,
Any = -1,
}

Expand Down
3 changes: 3 additions & 0 deletions lib/enums/ErrorCodeId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
MissingLine = 311,
InvalidAddressTextCase = 312,
DocumentNotCommitted = 313,
LineFetchLimitExceeded = 314,
InvalidDocumentTypesToFetch = 315,
TimeoutRequested = 316,
InvalidPostalCode = 317,
Expand Down Expand Up @@ -319,6 +320,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
NoItemsForClassification = 1736,
InvalidFileName = 1737,
NoClassificationForSameHsCode = 1738,
InvalidValueError = 1739,
UnsupportedFileFormat = 1800,
UnsupportedOutputFileType = 1801,
TaxProfileNotProvided = 1900,
Expand Down Expand Up @@ -383,6 +385,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
ContentAccessDenied = 2810,
ContentNotFound = 2811,
RegistrationNumberNotFound = 2812,
InvalidCostCenter = 2813,
}

@JsonConverter
Expand Down
51 changes: 51 additions & 0 deletions lib/models/APConfigSettingRequestModel.ts
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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";

/**
* AP Config Setting Request Model
* @export
* @class APConfigSettingRequestModel
*/
@JsonObject("APConfigSettingRequestModel")
export class APConfigSettingRequestModel {
/**
* @type {number}
* @memberof APConfigSettingRequestModel
*/
@JsonProperty("amount", Number, true)
amount?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingRequestModel
*/
@JsonProperty("varianceForIgnore", Number, true)
varianceForIgnore?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingRequestModel
*/
@JsonProperty("varianceForAccrue", Number, true)
varianceForAccrue?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingRequestModel
*/
@JsonProperty("variancePercent", Number, true)
variancePercent?: number | undefined = undefined;
}
70 changes: 70 additions & 0 deletions lib/models/APConfigSettingSuccessResponseModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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 { TaxProfileMetaDataModel } from "./TaxProfileMetaDataModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* AP Config Setting Response Model
* @export
* @class APConfigSettingSuccessResponseModel
*/
@JsonObject("APConfigSettingSuccessResponseModel")
export class APConfigSettingSuccessResponseModel {
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("ruleId", Number, true)
ruleId?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("companyId", Number, true)
companyId?: number | undefined = undefined;
/**
* @type {TaxProfileMetaDataModel}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("meta", TaxProfileMetaDataModel, true)
meta?: TaxProfileMetaDataModel | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("amount", Number, true)
amount?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("varianceForIgnore", Number, true)
varianceForIgnore?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("varianceForAccrue", Number, true)
varianceForAccrue?: number | undefined = undefined;
/**
* @type {number}
* @memberof APConfigSettingSuccessResponseModel
*/
@JsonProperty("variancePercent", Number, true)
variancePercent?: number | undefined = undefined;
}
34 changes: 34 additions & 0 deletions lib/models/CostCenterBulkUploadInputModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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 { CostCenterRequestModel } from "./CostCenterRequestModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Represents a bulk upload input model.
* @export
* @class CostCenterBulkUploadInputModel
*/
@JsonObject("CostCenterBulkUploadInputModel")
export class CostCenterBulkUploadInputModel {
/**
* @type {CostCenterRequestModel[]}
* @memberof CostCenterBulkUploadInputModel
*/
@JsonProperty("costCenters", [CostCenterRequestModel], true)
costCenters?: CostCenterRequestModel[] | undefined = undefined;
}
40 changes: 40 additions & 0 deletions lib/models/CostCenterBulkUploadOutputModel.ts
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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 { CostCenterUploadErrorModel } from "./CostCenterUploadErrorModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Represents a bulk upload response model.
* @export
* @class CostCenterBulkUploadOutputModel
*/
@JsonObject("CostCenterBulkUploadOutputModel")
export class CostCenterBulkUploadOutputModel {
/**
* @type {number}
* @memberof CostCenterBulkUploadOutputModel
*/
@JsonProperty("total", Number, true)
total?: number | undefined = undefined;
/**
* @type {CostCenterUploadErrorModel[]}
* @memberof CostCenterBulkUploadOutputModel
*/
@JsonProperty("failed", [CostCenterUploadErrorModel], true)
failed?: CostCenterUploadErrorModel[] | undefined = undefined;
}
58 changes: 58 additions & 0 deletions lib/models/CostCenterRequestModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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 { Int64TaxProfileObjectReferenceModel } from "./Int64TaxProfileObjectReferenceModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Cost Center Request Model
* @export
* @class CostCenterRequestModel
*/
@JsonObject("CostCenterRequestModel")
export class CostCenterRequestModel {
/**
* @type {string}
* @memberof CostCenterRequestModel
*/
@JsonProperty("entityUseCode", String, true)
entityUseCode?: string | undefined = undefined;
/**
* @type {Date}
* @memberof CostCenterRequestModel
*/
@JsonProperty("effectiveDate", DateConverter, true)
effectiveDate?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof CostCenterRequestModel
*/
@JsonProperty("endDate", DateConverter, true)
endDate?: Date | undefined = undefined;
/**
* @type {Int64TaxProfileObjectReferenceModel}
* @memberof CostCenterRequestModel
*/
@JsonProperty("defaultItem", Int64TaxProfileObjectReferenceModel, true)
defaultItem?: Int64TaxProfileObjectReferenceModel | undefined = undefined;
/**
* @type {string}
* @memberof CostCenterRequestModel
*/
@JsonProperty("costCenterCode", String)
costCenterCode: string = undefined;
}
77 changes: 77 additions & 0 deletions lib/models/CostCenterSuccessResponseModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* @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 { TaxProfileMetaDataModel } from "./TaxProfileMetaDataModel";
import { Int64TaxProfileObjectReferenceModel } from "./Int64TaxProfileObjectReferenceModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Cost Center Response Model
* @export
* @class CostCenterSuccessResponseModel
*/
@JsonObject("CostCenterSuccessResponseModel")
export class CostCenterSuccessResponseModel {
/**
* @type {number}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("costCenterId", Number, true)
costCenterId?: number | undefined = undefined;
/**
* @type {number}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("companyId", Number, true)
companyId?: number | undefined = undefined;
/**
* @type {TaxProfileMetaDataModel}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("meta", TaxProfileMetaDataModel, true)
meta?: TaxProfileMetaDataModel | undefined = undefined;
/**
* @type {string}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("entityUseCode", String, true)
entityUseCode?: string | undefined = undefined;
/**
* @type {Date}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("effectiveDate", DateConverter, true)
effectiveDate?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("endDate", DateConverter, true)
endDate?: Date | undefined = undefined;
/**
* @type {Int64TaxProfileObjectReferenceModel}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("defaultItem", Int64TaxProfileObjectReferenceModel, true)
defaultItem?: Int64TaxProfileObjectReferenceModel | undefined = undefined;
/**
* @type {string}
* @memberof CostCenterSuccessResponseModel
*/
@JsonProperty("costCenterCode", String)
costCenterCode: string = undefined;
}
Loading

0 comments on commit 073c309

Please sign in to comment.