diff --git a/lib/AvaTaxClient.ts b/lib/AvaTaxClient.ts index 0b4a95c..ac7f35b 100644 --- a/lib/AvaTaxClient.ts +++ b/lib/AvaTaxClient.ts @@ -10,7 +10,7 @@ * @author Sachin Baijal * @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 */ @@ -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 @@ -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 { + activateFundingRequest({ id, businessUnit, subscriptionType, currency, agreementType }: { id: number, businessUnit?: Enums.POABusinessUnit, subscriptionType?: Enums.POASubscriptionType, currency?: string, agreementType?: string }): Promise { var path = this.buildUrl({ url: `/api/v2/fundingrequests/${id}/widget`, parameters: { businessUnit: businessUnit, - subscriptionType: subscriptionType + subscriptionType: subscriptionType, + currency: currency, + agreementType: agreementType } }); var strClientId = diff --git a/lib/enums/ErrorCodeId.ts b/lib/enums/ErrorCodeId.ts index 4924a7b..0591c5b 100644 --- a/lib/enums/ErrorCodeId.ts +++ b/lib/enums/ErrorCodeId.ts @@ -326,6 +326,7 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript"; TooManyItemIdsInTaxCodeClassificationRequest = 1742, InvalidProductCodeLength = 1743, InvalidProductCodeFormat = 1744, + InvalidCountryAssignment = 1745, UnsupportedFileFormat = 1800, UnsupportedOutputFileType = 1801, TaxProfileNotProvided = 1900, @@ -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, diff --git a/lib/models/CertificateModel.ts b/lib/models/CertificateModel.ts index fa18384..3b41825 100644 --- a/lib/models/CertificateModel.ts +++ b/lib/models/CertificateModel.ts @@ -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 diff --git a/lib/models/FilingReturnModel.ts b/lib/models/FilingReturnModel.ts index 8cf1167..46d25f0 100644 --- a/lib/models/FilingReturnModel.ts +++ b/lib/models/FilingReturnModel.ts @@ -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; /** diff --git a/lib/models/FilingReturnModelBasic.ts b/lib/models/FilingReturnModelBasic.ts index 603b86f..f5e45db 100644 --- a/lib/models/FilingReturnModelBasic.ts +++ b/lib/models/FilingReturnModelBasic.ts @@ -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; /** diff --git a/lib/models/MultiTaxFilingReturnModel.ts b/lib/models/MultiTaxFilingReturnModel.ts index 63183bf..14776fd 100644 --- a/lib/models/MultiTaxFilingReturnModel.ts +++ b/lib/models/MultiTaxFilingReturnModel.ts @@ -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; /** diff --git a/lib/models/NoticeModel.ts b/lib/models/NoticeModel.ts index 0210b1e..86db364 100644 --- a/lib/models/NoticeModel.ts +++ b/lib/models/NoticeModel.ts @@ -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 @@ -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 @@ -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 diff --git a/package.json b/package.json index 17dff8f..1b49793 100644 --- a/package.json +++ b/package.json @@ -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",