-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from avadev/24.4.2
Update for 24.4.2
- Loading branch information
Showing
32 changed files
with
965 additions
and
194 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[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 { 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<APStatus> { | ||
serialize(data: APStatus) { | ||
return data; | ||
} | ||
deserialize(enumType: string): APStatus { | ||
return APStatus[enumType as keyof typeof APStatus]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[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 { JsonConverter, JsonCustomConvert } from "json2typescript"; | ||
|
||
/** | ||
* @export | ||
* @enum {string} | ||
*/ | ||
export enum ApConfigToleranceType { | ||
RealTime = 0, | ||
Batch = 1, | ||
} | ||
|
||
@JsonConverter | ||
export class ApConfigToleranceTypeConverter implements JsonCustomConvert<ApConfigToleranceType> { | ||
serialize(data: ApConfigToleranceType) { | ||
return data; | ||
} | ||
deserialize(enumType: string): ApConfigToleranceType { | ||
return ApConfigToleranceType[enumType as keyof typeof ApConfigToleranceType]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[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 { 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<BulkImportStatus> { | ||
serialize(data: BulkImportStatus) { | ||
return data; | ||
} | ||
deserialize(enumType: string): BulkImportStatus { | ||
return BulkImportStatus[enumType as keyof typeof BulkImportStatus]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { 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; | ||
} |
Oops, something went wrong.