Skip to content

Commit

Permalink
Merge pull request #301 from avadev/24.8.2
Browse files Browse the repository at this point in the history
Update for 24.8.2
  • Loading branch information
svc-developer authored Aug 30, 2024
2 parents 0d11069 + 43ff84a commit e725713
Show file tree
Hide file tree
Showing 29 changed files with 9,654 additions and 8,761 deletions.
17,727 changes: 8,994 additions & 8,733 deletions lib/AvaTaxClient.ts

Large diffs are not rendered by default.

30 changes: 21 additions & 9 deletions lib/enums/APStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
*/
export enum APStatus {
NoAccrualMatch = 0,
ShortPayItemsAccrueMatch = 1,
MarkForReviewMatch = 2,
RejectMatch = 3,
AccruedShortPayItemsMatch = 1,
NeedReviewMatch = 2,
NoAccrualRejectMatch = 3,
NoAccrualUndercharge = 4,
AccruedUndercharge = 5,
ShortPayItemsAccrueUndercharge = 6,
AccruedShortPayItemsUndercharge = 6,
NeedReviewUndercharge = 7,
RejectUndercharge = 8,
NoAccrualRejectUndercharge = 8,
NoAccrualOvercharge = 9,
ShortPayAvalaraCalculated = 10,
ShortPayItemsAccrueOvercharge = 11,
MarkForReviewOvercharge = 12,
RejectOvercharge = 13,
NoAccrualShortPayAvalaraCalculated = 10,
AccruedShortPayItemsOvercharge = 11,
NeedReviewOvercharge = 12,
NoAccrualRejectOvercharge = 13,
NoAccrualAmountThresholdNotMet = 14,
NoAccrualExemptedCostCenter = 15,
NoAccrualExemptedItem = 16,
Expand All @@ -44,6 +44,18 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
NoAccrualExemptedGLAccount = 21,
PendingAccrualVendor = 22,
PendingAccrualUndercharge = 23,
PendingShortPayItemsUndercharge = 24,
PendingShortPayItemsMatch = 25,
PendingShortPayItemsOvercharge = 26,
ShortPayItemsAccrueMatch = -1,
MarkForReviewMatch = -1,
RejectMatch = -1,
ShortPayItemsAccrueUndercharge = -1,
RejectUndercharge = -1,
ShortPayAvalaraCalculated = -1,
ShortPayItemsAccrueOvercharge = -1,
MarkForReviewOvercharge = -1,
RejectOvercharge = -1,
}

@JsonConverter
Expand Down
2 changes: 2 additions & 0 deletions lib/enums/ErrorCodeId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ import { JsonConverter, JsonCustomConvert } from "json2typescript";
InvalidCostCenter = 2813,
TooManyItemsInSyncFlowRequest = 2814,
InvalidTaxCodeIdInRecommendationStatusUpdate = 2815,
CommunicationCertificatesError = 2816,
InvalidCurrencyAggrementType = 2817,
InvalidHTTPHeader = 3000,
}

Expand Down
2 changes: 1 addition & 1 deletion lib/models/ActiveCertificateModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Certificate with exemption reason and exposure zone. Exposed in url $includes
* Certificate with exemption reason and exposure zone. This is exposed in the URL's `$includes`.
* @export
* @class ActiveCertificateModel
*/
Expand Down
12 changes: 6 additions & 6 deletions lib/models/BatchModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ import { DateConverter } from "../utils/dateConverter";
*/
@JsonProperty("batchAgent", String, true)
batchAgent?: string | undefined = undefined;
/**
* @type {string}
* @memberof BatchModel
*/
@JsonProperty("options", String, true)
options?: string | undefined = undefined;
/**
* @type {number}
* @memberof BatchModel
Expand All @@ -53,6 +47,12 @@ import { DateConverter } from "../utils/dateConverter";
* @type {string}
* @memberof BatchModel
*/
@JsonProperty("options", String, true)
options?: string | undefined = undefined;
/**
* @type {string}
* @memberof BatchModel
*/
@JsonProperty("name", String)
name: string = undefined;
/**
Expand Down
2 changes: 1 addition & 1 deletion lib/models/CertificateInvalidReasonModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Invalid reason for the certificate
* The reason the certificate is invalid.
* @export
* @class CertificateInvalidReasonModel
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/models/CertificateLogModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* certificate log for a customer. Exposed in url $includes
* The certificate log for a customer. This is exposed in the URL's `$includes`.
* @export
* @class CertificateLogModel
*/
Expand Down
83 changes: 83 additions & 0 deletions lib/models/CommunicationCertificateResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/*
* 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 { CommunicationCustomerResponse } from "./CommunicationCustomerResponse";
import { CommunicationTaxTypeResponse } from "./CommunicationTaxTypeResponse";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Encloses communication certificate details
* @export
* @class CommunicationCertificateResponse
*/
@JsonObject("CommunicationCertificateResponse")
export class CommunicationCertificateResponse {
/**
* @type {number}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {Date}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("effectiveDate", DateConverter, true)
effectiveDate?: Date | undefined = undefined;
/**
* @type {Date}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("expirationDate", DateConverter, true)
expirationDate?: Date | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("exemptionReason", String, true)
exemptionReason?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("exemptionRegion", String, true)
exemptionRegion?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("taxNumber", String, true)
taxNumber?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("certificateStatus", String, true)
certificateStatus?: string | undefined = undefined;
/**
* @type {CommunicationCustomerResponse[]}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("customers", [CommunicationCustomerResponse], true)
customers?: CommunicationCustomerResponse[] | undefined = undefined;
/**
* @type {CommunicationTaxTypeResponse[]}
* @memberof CommunicationCertificateResponse
*/
@JsonProperty("exemptions", [CommunicationTaxTypeResponse], true)
exemptions?: CommunicationTaxTypeResponse[] | undefined = undefined;
}
40 changes: 40 additions & 0 deletions lib/models/CommunicationCertificateResponsePage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* 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 { CommunicationCertificateResponse } from "./CommunicationCertificateResponse";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Encloses count and model value details
* @export
* @class CommunicationCertificateResponsePage
*/
@JsonObject("CommunicationCertificateResponsePage")
export class CommunicationCertificateResponsePage {
/**
* @type {number}
* @memberof CommunicationCertificateResponsePage
*/
@JsonProperty("count", Number, true)
count?: number | undefined = undefined;
/**
* @type {CommunicationCertificateResponse[]}
* @memberof CommunicationCertificateResponsePage
*/
@JsonProperty("value", [CommunicationCertificateResponse], true)
value?: CommunicationCertificateResponse[] | undefined = undefined;
}
39 changes: 39 additions & 0 deletions lib/models/CommunicationCustomerResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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";

/**
* Encloses communication certificate customer
* @export
* @class CommunicationCustomerResponse
*/
@JsonObject("CommunicationCustomerResponse")
export class CommunicationCustomerResponse {
/**
* @type {number}
* @memberof CommunicationCustomerResponse
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationCustomerResponse
*/
@JsonProperty("customerNumber", String, true)
customerNumber?: string | undefined = undefined;
}
45 changes: 45 additions & 0 deletions lib/models/CommunicationExemptionDesignatorResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* 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";

/**
* Encloses Communication exemption designator details
* @export
* @class CommunicationExemptionDesignatorResponse
*/
@JsonObject("CommunicationExemptionDesignatorResponse")
export class CommunicationExemptionDesignatorResponse {
/**
* @type {number}
* @memberof CommunicationExemptionDesignatorResponse
*/
@JsonProperty("id", Number, true)
id?: number | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationExemptionDesignatorResponse
*/
@JsonProperty("type", String, true)
type?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationExemptionDesignatorResponse
*/
@JsonProperty("name", String, true)
name?: string | undefined = undefined;
}
51 changes: 51 additions & 0 deletions lib/models/CommunicationLocationResponse.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";

/**
* Encloses communication location details
* @export
* @class CommunicationLocationResponse
*/
@JsonObject("CommunicationLocationResponse")
export class CommunicationLocationResponse {
/**
* @type {string}
* @memberof CommunicationLocationResponse
*/
@JsonProperty("country", String, true)
country?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationLocationResponse
*/
@JsonProperty("state", String, true)
state?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationLocationResponse
*/
@JsonProperty("county", String, true)
county?: string | undefined = undefined;
/**
* @type {string}
* @memberof CommunicationLocationResponse
*/
@JsonProperty("city", String, true)
city?: string | undefined = undefined;
}
Loading

0 comments on commit e725713

Please sign in to comment.