Skip to content

Commit

Permalink
Merge pull request #295 from avadev/24.6.1
Browse files Browse the repository at this point in the history
Update for 24.6.1
  • Loading branch information
svc-developer authored Jun 13, 2024
2 parents d6c9a4c + cb69321 commit 2e1d1df
Show file tree
Hide file tree
Showing 25 changed files with 888 additions and 174 deletions.
448 changes: 314 additions & 134 deletions lib/AvaTaxClient.ts

Large diffs are not rendered by default.

26 changes: 15 additions & 11 deletions lib/enums/APStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,30 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
* @enum {string}
*/
export enum APStatus {
PayAsBilledMatch = 0,
NoAccrualMatch = 0,
ShortPayItemsAccrueMatch = 1,
MarkForReviewMatch = 2,
RejectMatch = 3,
PayAsBilledNoAccrual = 4,
PayAsBilledAccrueUndercharge = 5,
NoAccrualUndercharge = 4,
AccruedUndercharge = 5,
ShortPayItemsAccrueUndercharge = 6,
MarkForReviewUndercharge = 7,
NeedReviewUndercharge = 7,
RejectUndercharge = 8,
PayAsBilledOvercharge = 9,
NoAccrualOvercharge = 9,
ShortPayAvalaraCalculated = 10,
ShortPayItemsAccrueOvercharge = 11,
MarkForReviewOvercharge = 12,
RejectOvercharge = 13,
AmountThresholdNotMet = 14,
CostCenterExempted = 15,
ItemExempted = 16,
TrustedVendor = 17,
AccruedByVendor = 18,
Ignored = 19,
NoAccrualAmountThresholdNotMet = 14,
NoAccrualExemptedCostCenter = 15,
NoAccrualExemptedItem = 16,
NoAccrualTrustedVendor = 17,
AccruedVendor = 18,
NeedReviewVendor = 19,
NoAccrualExemptedVendor = 20,
NoAccrualExemptedGLAccount = 21,
PendingAccrualVendor = 22,
PendingAccrualUndercharge = 23,
}

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

@JsonConverter
Expand Down
4 changes: 4 additions & 0 deletions lib/enums/ErrorCodeId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
NoClassificationForSameHsCode = 1738,
InvalidValueError = 1739,
ItemDualWriteParameterValueMismatchError = 1740,
DuplicateItemIdsInTaxCodeClassificationRequest = 1741,
TooManyItemIdsInTaxCodeClassificationRequest = 1742,
UnsupportedFileFormat = 1800,
UnsupportedOutputFileType = 1801,
TaxProfileNotProvided = 1900,
Expand Down Expand Up @@ -388,6 +390,8 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
ContentNotFound = 2811,
RegistrationNumberNotFound = 2812,
InvalidCostCenter = 2813,
TooManyItemsInSyncFlowRequest = 2814,
InvalidTaxCodeIdInRecommendationStatusUpdate = 2815,
InvalidHTTPHeader = 3000,
}

Expand Down
6 changes: 6 additions & 0 deletions lib/models/ClassificationParameterUsageMapModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ import { DateConverter } from "../utils/dateConverter";
* @type {string}
* @memberof ClassificationParameterUsageMapModel
*/
@JsonProperty("attributeSubType", String, true)
attributeSubType?: string | undefined = undefined;
/**
* @type {string}
* @memberof ClassificationParameterUsageMapModel
*/
@JsonProperty("name", String, true)
name?: string | undefined = undefined;
/**
Expand Down
33 changes: 33 additions & 0 deletions lib/models/FilterModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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";

/**
* Filter Model
* @export
* @class FilterModel
*/
@JsonObject("FilterModel")
export class FilterModel {
/**
* @type {string}
* @memberof FilterModel
*/
@JsonProperty("filter", String, true)
filter?: string | undefined = undefined;
}
34 changes: 34 additions & 0 deletions lib/models/GLAccountBulkUploadInputModel.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 { GLAccountRequestModel } from "./GLAccountRequestModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Represents a bulk upload input model.
* @export
* @class GLAccountBulkUploadInputModel
*/
@JsonObject("GLAccountBulkUploadInputModel")
export class GLAccountBulkUploadInputModel {
/**
* @type {GLAccountRequestModel[]}
* @memberof GLAccountBulkUploadInputModel
*/
@JsonProperty("glAccounts", [GLAccountRequestModel], true)
glAccounts?: GLAccountRequestModel[] | undefined = undefined;
}
40 changes: 40 additions & 0 deletions lib/models/GLAccountBulkUploadOutputModel.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 { GLAccountUploadErrorModel } from "./GLAccountUploadErrorModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Represents a bulk upload response model.
* @export
* @class GLAccountBulkUploadOutputModel
*/
@JsonObject("GLAccountBulkUploadOutputModel")
export class GLAccountBulkUploadOutputModel {
/**
* @type {number}
* @memberof GLAccountBulkUploadOutputModel
*/
@JsonProperty("total", Number, true)
total?: number | undefined = undefined;
/**
* @type {GLAccountUploadErrorModel[]}
* @memberof GLAccountBulkUploadOutputModel
*/
@JsonProperty("failed", [GLAccountUploadErrorModel], true)
failed?: GLAccountUploadErrorModel[] | undefined = undefined;
}
58 changes: 58 additions & 0 deletions lib/models/GLAccountRequestModel.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";

/**
* GL account request model
* @export
* @class GLAccountRequestModel
*/
@JsonObject("GLAccountRequestModel")
export class GLAccountRequestModel {
/**
* @type {string}
* @memberof GLAccountRequestModel
*/
@JsonProperty("entityUseCode", String, true)
entityUseCode?: string | undefined = undefined;
/**
* @type {Date}
* @memberof GLAccountRequestModel
*/
@JsonProperty("effectiveDate", DateConverter, true)
effectiveDate?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof GLAccountRequestModel
*/
@JsonProperty("endDate", DateConverter, true)
endDate?: Date | undefined = undefined;
/**
* @type {Int64TaxProfileObjectReferenceModel}
* @memberof GLAccountRequestModel
*/
@JsonProperty("defaultItem", Int64TaxProfileObjectReferenceModel, true)
defaultItem?: Int64TaxProfileObjectReferenceModel | undefined = undefined;
/**
* @type {string}
* @memberof GLAccountRequestModel
*/
@JsonProperty("glAccountCode", String)
glAccountCode: string = undefined;
}
77 changes: 77 additions & 0 deletions lib/models/GLAccountSuccessResponseModel.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";

/**
* GL account response model
* @export
* @class GLAccountSuccessResponseModel
*/
@JsonObject("GLAccountSuccessResponseModel")
export class GLAccountSuccessResponseModel {
/**
* @type {number}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("glAccountId", Number, true)
glAccountId?: number | undefined = undefined;
/**
* @type {number}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("companyId", Number, true)
companyId?: number | undefined = undefined;
/**
* @type {TaxProfileMetaDataModel}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("meta", TaxProfileMetaDataModel, true)
meta?: TaxProfileMetaDataModel | undefined = undefined;
/**
* @type {string}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("entityUseCode", String, true)
entityUseCode?: string | undefined = undefined;
/**
* @type {Date}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("effectiveDate", DateConverter, true)
effectiveDate?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("endDate", DateConverter, true)
endDate?: Date | undefined = undefined;
/**
* @type {Int64TaxProfileObjectReferenceModel}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("defaultItem", Int64TaxProfileObjectReferenceModel, true)
defaultItem?: Int64TaxProfileObjectReferenceModel | undefined = undefined;
/**
* @type {string}
* @memberof GLAccountSuccessResponseModel
*/
@JsonProperty("glAccountCode", String)
glAccountCode: string = undefined;
}
45 changes: 45 additions & 0 deletions lib/models/GLAccountUploadErrorModel.ts
Original file line number Diff line number Diff line change
@@ -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 <[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";

/**
* Represents a GL account upload error model
* @export
* @class GLAccountUploadErrorModel
*/
@JsonObject("GLAccountUploadErrorModel")
export class GLAccountUploadErrorModel {
/**
* @type {number}
* @memberof GLAccountUploadErrorModel
*/
@JsonProperty("rowIndex", Number, true)
rowIndex?: number | undefined = undefined;
/**
* @type {string}
* @memberof GLAccountUploadErrorModel
*/
@JsonProperty("glAccountCode", String, true)
glAccountCode?: string | undefined = undefined;
/**
* @type {string[]}
* @memberof GLAccountUploadErrorModel
*/
@JsonProperty("errors", [String], true)
errors?: string[] | undefined = undefined;
}
Loading

0 comments on commit 2e1d1df

Please sign in to comment.