-
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 #303 from avadev/24.11.2
Update for 24.11.2
- Loading branch information
Showing
14 changed files
with
225 additions
and
57 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
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,36 @@ | ||
/* | ||
* 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 ReturnsLiabilityType { | ||
ALL = 0, | ||
ORIGINAL = 1, | ||
AMENDED = 2, | ||
} | ||
|
||
@JsonConverter | ||
export class ReturnsLiabilityTypeConverter implements JsonCustomConvert<ReturnsLiabilityType> { | ||
serialize(data: ReturnsLiabilityType) { | ||
return data; | ||
} | ||
deserialize(enumType: string): ReturnsLiabilityType { | ||
return ReturnsLiabilityType[enumType as keyof typeof ReturnsLiabilityType]; | ||
} | ||
} |
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,36 @@ | ||
/* | ||
* 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 ReturnsReportType { | ||
LIABILITYSUMMARYRETURNDETAILHOSPITALITY = 0, | ||
LIABILITYSUMMARYRETURNDETAIL = 1, | ||
LIABILITYCARRYOVERCREDIT = 2, | ||
} | ||
|
||
@JsonConverter | ||
export class ReturnsReportTypeConverter implements JsonCustomConvert<ReturnsReportType> { | ||
serialize(data: ReturnsReportType) { | ||
return data; | ||
} | ||
deserialize(enumType: string): ReturnsReportType { | ||
return ReturnsReportType[enumType as keyof typeof ReturnsReportType]; | ||
} | ||
} |
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,69 @@ | ||
/* | ||
* 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"; | ||
|
||
/** | ||
* The model for liability parameters definitions | ||
* @export | ||
* @class LiabilityParametersModel | ||
*/ | ||
@JsonObject("LiabilityParametersModel") | ||
export class LiabilityParametersModel { | ||
/** | ||
* @type {Enums.ReturnsLiabilityType} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("liabilityType", Enums.ReturnsLiabilityTypeConverter, true) | ||
liabilityType?: Enums.ReturnsLiabilityType | undefined = undefined; | ||
/** | ||
* @type {Enums.ReturnsReportType} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("returnsReportType", Enums.ReturnsReportTypeConverter, true) | ||
returnsReportType?: Enums.ReturnsReportType | undefined = undefined; | ||
/** | ||
* @type {number} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("hospitalityAccountId", Number, true) | ||
hospitalityAccountId?: number | undefined = undefined; | ||
/** | ||
* @type {number} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("year", Number, true) | ||
year?: number | undefined = undefined; | ||
/** | ||
* @type {object} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("month", Object, true) | ||
month?: object | undefined = undefined; | ||
/** | ||
* @type {string} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("country", String, true) | ||
country?: string | undefined = undefined; | ||
/** | ||
* @type {string} | ||
* @memberof LiabilityParametersModel | ||
*/ | ||
@JsonProperty("region", String, true) | ||
region?: string | undefined = undefined; | ||
} |
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