-
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 #275 from avadev/23.3.1
Update for 23.3.1
- Loading branch information
Showing
11 changed files
with
470 additions
and
373 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* @author Sachin Baijal <[email protected]> | ||
* @copyright 2004-2018 Avalara, Inc. | ||
* @license https://www.apache.org/licenses/LICENSE-2.0 | ||
* @version 23.3.0 | ||
* @version 23.3.1 | ||
* @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 = '23.3.0'; | ||
private apiVersion: string = '23.3.1'; | ||
private logger: Logger; | ||
/** | ||
* Construct a new AvaTaxClient | ||
|
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 ChargedTo { | ||
Buyer = 0, | ||
Seller = 1, | ||
ThirdParty = 2, | ||
} | ||
|
||
@JsonConverter | ||
export class ChargedToConverter implements JsonCustomConvert<ChargedTo> { | ||
serialize(data: ChargedTo) { | ||
return data; | ||
} | ||
deserialize(enumType: string): ChargedTo { | ||
return ChargedTo[enumType as keyof typeof ChargedTo]; | ||
} | ||
} |
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 Compression { | ||
NONE = 0, | ||
GZIP = 1, | ||
} | ||
|
||
@JsonConverter | ||
export class CompressionConverter implements JsonCustomConvert<Compression> { | ||
serialize(data: Compression) { | ||
return data; | ||
} | ||
deserialize(enumType: string): Compression { | ||
return Compression[enumType as keyof typeof Compression]; | ||
} | ||
} |
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
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
Oops, something went wrong.