Skip to content

Commit

Permalink
Merge pull request #296 from avadev/24.6.3
Browse files Browse the repository at this point in the history
Update for 24.6.3
  • Loading branch information
svc-developer authored Jun 27, 2024
2 parents 2e1d1df + 48f579f commit 71dcafa
Show file tree
Hide file tree
Showing 19 changed files with 822 additions and 41 deletions.
78 changes: 41 additions & 37 deletions lib/AvaTaxClient.ts

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions lib/enums/CertificateEcmStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* 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 CertificateEcmStatus {
None = 0,
Expired = 1,
Invalid = 2,
Valid = 3,
PendingFuture = 4,
}

@JsonConverter
export class CertificateEcmStatusConverter implements JsonCustomConvert<CertificateEcmStatus> {
serialize(data: CertificateEcmStatus) {
return data;
}
deserialize(enumType: string): CertificateEcmStatus {
return CertificateEcmStatus[enumType as keyof typeof CertificateEcmStatus];
}
}
5 changes: 3 additions & 2 deletions lib/enums/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export * from './AccountTypeId';
export * from './ResolutionQuality';
export * from './AdjustmentReason';
export * from './BulkImportStatus';
export * from './ErrorCodeId';
export * from './SeverityLevel';
export * from './ApiCallStatus';
export * from './FormTypeId';
export * from './FilingOptionTypeId';
Expand All @@ -39,6 +41,7 @@ export * from './BatchStatus';
export * from './VoidReasonCode';
export * from './CertificateRequestDeliveryMethod';
export * from './CertExpressInvitationStatus';
export * from './CertificateEcmStatus';
export * from './Visibility';
export * from './RoundingLevelId';
export * from './TaxDependencyLevelId';
Expand All @@ -52,8 +55,6 @@ export * from './JurisdictionType';
export * from './ExemptCertTypeId';
export * from './ExemptCertStatusId';
export * from './ExemptCertReviewStatusId';
export * from './ErrorCodeId';
export * from './SeverityLevel';
export * from './ReportFormat';
export * from './ReportDateFilter';
export * from './ReportDocType';
Expand Down
84 changes: 84 additions & 0 deletions lib/models/ActiveCertificateModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* 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 { ExposureZoneModel } from "./ExposureZoneModel";
import { ExemptionReasonModel } from "./ExemptionReasonModel";
import { CertificateModel } from "./CertificateModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Certificate with exemption reason and exposure zone. Exposed in url $includes
* @export
* @class ActiveCertificateModel
*/
@JsonObject("ActiveCertificateModel")
export class ActiveCertificateModel {
/**
* @type {number}
* @memberof ActiveCertificateModel
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {Date}
* @memberof ActiveCertificateModel
*/
@JsonProperty("created", DateConverter, true)
created?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof ActiveCertificateModel
*/
@JsonProperty("modified", DateConverter, true)
modified?: Date | undefined = undefined;
/**
* @type {string}
* @memberof ActiveCertificateModel
*/
@JsonProperty("expectedTaxNumber", String, true)
expectedTaxNumber?: string | undefined = undefined;
/**
* @type {string}
* @memberof ActiveCertificateModel
*/
@JsonProperty("actualTaxNumber", String, true)
actualTaxNumber?: string | undefined = undefined;
/**
* @type {ExposureZoneModel}
* @memberof ActiveCertificateModel
*/
@JsonProperty("exposureZone", ExposureZoneModel, true)
exposureZone?: ExposureZoneModel | undefined = undefined;
/**
* @type {ExemptionReasonModel}
* @memberof ActiveCertificateModel
*/
@JsonProperty("expectedTaxCode", ExemptionReasonModel, true)
expectedTaxCode?: ExemptionReasonModel | undefined = undefined;
/**
* @type {ExemptionReasonModel}
* @memberof ActiveCertificateModel
*/
@JsonProperty("actualTaxCode", ExemptionReasonModel, true)
actualTaxCode?: ExemptionReasonModel | undefined = undefined;
/**
* @type {CertificateModel}
* @memberof ActiveCertificateModel
*/
@JsonProperty("certificate", CertificateModel, true)
certificate?: CertificateModel | undefined = undefined;
}
81 changes: 81 additions & 0 deletions lib/models/AssociatedObjectDeletedErrorDetailsModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* 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";

/**
*
* @export
* @class AssociatedObjectDeletedErrorDetailsModel
*/
@JsonObject("AssociatedObjectDeletedErrorDetailsModel")
export class AssociatedObjectDeletedErrorDetailsModel {
/**
* @type {Enums.ErrorCodeId}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("code", Enums.ErrorCodeIdConverter, true)
code?: Enums.ErrorCodeId | undefined = undefined;
/**
* @type {number}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("number", Number, true)
number?: number | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("message", String, true)
message?: string | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("description", String, true)
description?: string | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("faultCode", String, true)
faultCode?: string | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("faultSubCode", String, true)
faultSubCode?: string | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("helpLink", String, true)
helpLink?: string | undefined = undefined;
/**
* @type {string}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("refersTo", String, true)
refersTo?: string | undefined = undefined;
/**
* @type {Enums.SeverityLevel}
* @memberof AssociatedObjectDeletedErrorDetailsModel
*/
@JsonProperty("severity", Enums.SeverityLevelConverter, true)
severity?: Enums.SeverityLevel | undefined = undefined;
}
51 changes: 51 additions & 0 deletions lib/models/CertificateInvalidReasonModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/*
* 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";

/**
* Invalid reason for the certificate
* @export
* @class CertificateInvalidReasonModel
*/
@JsonObject("CertificateInvalidReasonModel")
export class CertificateInvalidReasonModel {
/**
* @type {number}
* @memberof CertificateInvalidReasonModel
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {string}
* @memberof CertificateInvalidReasonModel
*/
@JsonProperty("name", String, true)
name?: string | undefined = undefined;
/**
* @type {string}
* @memberof CertificateInvalidReasonModel
*/
@JsonProperty("description", String, true)
description?: string | undefined = undefined;
/**
* @type {boolean}
* @memberof CertificateInvalidReasonModel
*/
@JsonProperty("systemCode", Boolean, true)
systemCode?: boolean | undefined = undefined;
}
57 changes: 57 additions & 0 deletions lib/models/CertificateLogModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* 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";

/**
* certificate log for a customer. Exposed in url $includes
* @export
* @class CertificateLogModel
*/
@JsonObject("CertificateLogModel")
export class CertificateLogModel {
/**
* @type {number}
* @memberof CertificateLogModel
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {number}
* @memberof CertificateLogModel
*/
@JsonProperty("certificateId", Number, true)
certificateId?: number | undefined = undefined;
/**
* @type {string}
* @memberof CertificateLogModel
*/
@JsonProperty("account", String, true)
account?: string | undefined = undefined;
/**
* @type {string}
* @memberof CertificateLogModel
*/
@JsonProperty("entry", String, true)
entry?: string | undefined = undefined;
/**
* @type {Date}
* @memberof CertificateLogModel
*/
@JsonProperty("created", DateConverter, true)
created?: Date | undefined = undefined;
}
Loading

0 comments on commit 71dcafa

Please sign in to comment.