Skip to content

Commit

Permalink
Merge pull request #304 from avadev/24.12.0
Browse files Browse the repository at this point in the history
Update for 24.12.0
  • Loading branch information
svc-developer authored Dec 18, 2024
2 parents cfe05b2 + c608f57 commit f948e06
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 16 deletions.
14 changes: 9 additions & 5 deletions lib/AvaTaxClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @copyright 2004-2018 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @version 24.11.2
* @version 24.12.0
* @link https://github.com/avadev/AvaTax-REST-V2-JS-SDK
*/

Expand Down Expand Up @@ -50,7 +50,7 @@ export default class AvaTaxClient {
public auth: string;
public customHttpAgent: https.Agent;
public enableStrictTypeConversion: boolean;
private apiVersion: string = '24.11.2';
private apiVersion: string = '24.12.0';
private logger: Logger;
/**
* Construct a new AvaTaxClient
Expand Down Expand Up @@ -8056,16 +8056,20 @@ export default class AvaTaxClient {
*
* @param {number} id The unique ID number of this funding request
* @param {Enums.POABusinessUnit} businessUnit The company's business unit (See POABusinessUnit::* for a list of allowable values)
* @param {Enums.POASubscriptionType} subscriptionType The company's subscription type (See POASubscriptionType::* for a list of allowable values)
* @param {Enums.POASubscriptionType} subscriptionType The company's subscription type (See POASubscriptionType::* for a list of allowable values)
* @param {string} currency Currency
* @param {string} agreementType Agreement Type
* @return {Models.FundingStatusModel}
*/

activateFundingRequest({ id, businessUnit, subscriptionType }: { id: number, businessUnit?: Enums.POABusinessUnit, subscriptionType?: Enums.POASubscriptionType }): Promise<Models.FundingStatusModel> {
activateFundingRequest({ id, businessUnit, subscriptionType, currency, agreementType }: { id: number, businessUnit?: Enums.POABusinessUnit, subscriptionType?: Enums.POASubscriptionType, currency?: string, agreementType?: string }): Promise<Models.FundingStatusModel> {
var path = this.buildUrl({
url: `/api/v2/fundingrequests/${id}/widget`,
parameters: {
businessUnit: businessUnit,
subscriptionType: subscriptionType
subscriptionType: subscriptionType,
currency: currency,
agreementType: agreementType
}
});
var strClientId =
Expand Down
3 changes: 3 additions & 0 deletions lib/enums/ErrorCodeId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
TooManyItemIdsInTaxCodeClassificationRequest = 1742,
InvalidProductCodeLength = 1743,
InvalidProductCodeFormat = 1744,
InvalidCountryAssignment = 1745,
UnsupportedFileFormat = 1800,
UnsupportedOutputFileType = 1801,
TaxProfileNotProvided = 1900,
Expand Down Expand Up @@ -407,6 +408,8 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
UnsupportedPatchOperationError = 3006,
SystemCodeAndCountryCodeMismatch = 3007,
DuplicateSystemAndCountryForItem = 3008,
InvalidHsCodeClassificationStatusOverride = 3009,
InvalidField = 3010,
NotFound = 4001,
Unexpected = 4002,
NoHostFound = 4003,
Expand Down
4 changes: 2 additions & 2 deletions lib/models/CertificateModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ log onto the administrative website for the product you purchased.
* @type {Date}
* @memberof CertificateModel
*/
@JsonProperty("expirationDate", DateConverter)
expirationDate: Date = undefined;
@JsonProperty("expirationDate", DateConverter, true)
expirationDate?: Date | undefined = undefined;
/**
* @type {string}
* @memberof CertificateModel
Expand Down
6 changes: 6 additions & 0 deletions lib/models/FilingReturnModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ import { DateConverter } from "../utils/dateConverter";
* @type {string}
* @memberof FilingReturnModel
*/
@JsonProperty("taxFormCode", String, true)
taxFormCode?: string | undefined = undefined;
/**
* @type {string}
* @memberof FilingReturnModel
*/
@JsonProperty("description", String, true)
description?: string | undefined = undefined;
/**
Expand Down
6 changes: 6 additions & 0 deletions lib/models/FilingReturnModelBasic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ import { DateConverter } from "../utils/dateConverter";
* @type {string}
* @memberof FilingReturnModelBasic
*/
@JsonProperty("taxFormCode", String, true)
taxFormCode?: string | undefined = undefined;
/**
* @type {string}
* @memberof FilingReturnModelBasic
*/
@JsonProperty("description", String, true)
description?: string | undefined = undefined;
/**
Expand Down
6 changes: 6 additions & 0 deletions lib/models/MultiTaxFilingReturnModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ import { DateConverter } from "../utils/dateConverter";
* @type {string}
* @memberof MultiTaxFilingReturnModel
*/
@JsonProperty("taxFormCode", String, true)
taxFormCode?: string | undefined = undefined;
/**
* @type {string}
* @memberof MultiTaxFilingReturnModel
*/
@JsonProperty("description", String, true)
description?: string | undefined = undefined;
/**
Expand Down
16 changes: 8 additions & 8 deletions lib/models/NoticeModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ they are called "Notices".
* @type {string}
* @memberof NoticeModel
*/
@JsonProperty("country", String, true)
country?: string | undefined = undefined;
@JsonProperty("country", String)
country: string = undefined;
/**
* @type {string}
* @memberof NoticeModel
*/
@JsonProperty("region", String, true)
region?: string | undefined = undefined;
@JsonProperty("region", String)
region: string = undefined;
/**
* @type {number}
* @memberof NoticeModel
Expand Down Expand Up @@ -136,8 +136,8 @@ they are called "Notices".
* @type {string}
* @memberof NoticeModel
*/
@JsonProperty("taxPeriod", String, true)
taxPeriod?: string | undefined = undefined;
@JsonProperty("taxPeriod", String)
taxPeriod: string = undefined;
/**
* @type {number}
* @memberof NoticeModel
Expand Down Expand Up @@ -256,8 +256,8 @@ they are called "Notices".
* @type {string}
* @memberof NoticeModel
*/
@JsonProperty("taxFormCode", String, true)
taxFormCode?: string | undefined = undefined;
@JsonProperty("taxFormCode", String)
taxFormCode: string = undefined;
/**
* @type {string}
* @memberof NoticeModel
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avatax",
"version": "24.11.2",
"version": "24.12.0",
"description": "AvaTax v2 SDK for languages using JavaScript",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit f948e06

Please sign in to comment.