Skip to content

Commit

Permalink
Merge pull request #290 from avadev/23.11.0
Browse files Browse the repository at this point in the history
Update for 23.11.0
  • Loading branch information
svc-developer authored Nov 9, 2023
2 parents 073c309 + 8fdbb8a commit 5e2348b
Show file tree
Hide file tree
Showing 15 changed files with 808 additions and 42 deletions.
225 changes: 184 additions & 41 deletions lib/AvaTaxClient.ts

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions lib/models/BadRequestErrorResponse.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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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";

/**
* This is used to map the error details in response
* @export
* @class BadRequestErrorResponse
*/
@JsonObject("BadRequestErrorResponse")
export class BadRequestErrorResponse {
/**
* @type {number}
* @memberof BadRequestErrorResponse
*/
@JsonProperty("code", Number, true)
code?: number | undefined = undefined;
/**
* @type {string}
* @memberof BadRequestErrorResponse
*/
@JsonProperty("message", String, true)
message?: string | undefined = undefined;
}
39 changes: 39 additions & 0 deletions lib/models/Context.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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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";

/**
* Model to represent the system
* @export
* @class Context
*/
@JsonObject("Context")
export class Context {
/**
* @type {string}
* @memberof Context
*/
@JsonProperty("id", String, true)
id?: string | undefined = undefined;
/**
* @type {string}
* @memberof Context
*/
@JsonProperty("system", String, true)
system?: string | undefined = undefined;
}
40 changes: 40 additions & 0 deletions lib/models/DcvCreationResponse.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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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 { DcvViewModel } from "./DcvViewModel";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* Model used for Domain control verification response
* @export
* @class DcvCreationResponse
*/
@JsonObject("DcvCreationResponse")
export class DcvCreationResponse {
/**
* @type {string}
* @memberof DcvCreationResponse
*/
@JsonProperty("message", String, true)
message?: string | undefined = undefined;
/**
* @type {DcvViewModel}
* @memberof DcvCreationResponse
*/
@JsonProperty("dcvViewModel", DcvViewModel, true)
dcvViewModel?: DcvViewModel | undefined = undefined;
}
88 changes: 88 additions & 0 deletions lib/models/DcvViewModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
* 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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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 { Context } from "./Context";
import { JsonObject, JsonProperty } from "json2typescript";
import { DateConverter } from "../utils/dateConverter";

/**
* ViewModel to get Domain control verification
* @export
* @class DcvViewModel
*/
@JsonObject("DcvViewModel")
export class DcvViewModel {
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("id", String, true)
id?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("domainName", String, true)
domainName?: string | undefined = undefined;
/**
* @type {Context}
* @memberof DcvViewModel
*/
@JsonProperty("context", Context, true)
context?: Context | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("token", String, true)
token?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("status", String, true)
status?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("emailId", String, true)
emailId?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("createdOn", String, true)
createdOn?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("createdBy", String, true)
createdBy?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("updatedOn", String, true)
updatedOn?: string | undefined = undefined;
/**
* @type {string}
* @memberof DcvViewModel
*/
@JsonProperty("updatedBy", String, true)
updatedBy?: string | undefined = undefined;
}
33 changes: 33 additions & 0 deletions lib/models/DomainNameViewModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* 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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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";

/**
* ViewModel to receive DomainName from user
* @export
* @class DomainNameViewModel
*/
@JsonObject("DomainNameViewModel")
export class DomainNameViewModel {
/**
* @type {string}
* @memberof DomainNameViewModel
*/
@JsonProperty("domainName", String)
domainName: string = undefined;
}
39 changes: 39 additions & 0 deletions lib/models/ForbiddenErrorResponse.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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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";

/**
* This is used to map the error details in response
* @export
* @class ForbiddenErrorResponse
*/
@JsonObject("ForbiddenErrorResponse")
export class ForbiddenErrorResponse {
/**
* @type {number}
* @memberof ForbiddenErrorResponse
*/
@JsonProperty("code", Number, true)
code?: number | undefined = undefined;
/**
* @type {string}
* @memberof ForbiddenErrorResponse
*/
@JsonProperty("message", String, true)
message?: string | undefined = undefined;
}
39 changes: 39 additions & 0 deletions lib/models/InternalServerErrorResponse.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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @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";

/**
* This is used to map the error details in response
* @export
* @class InternalServerErrorResponse
*/
@JsonObject("InternalServerErrorResponse")
export class InternalServerErrorResponse {
/**
* @type {number}
* @memberof InternalServerErrorResponse
*/
@JsonProperty("code", Number, true)
code?: number | undefined = undefined;
/**
* @type {string}
* @memberof InternalServerErrorResponse
*/
@JsonProperty("message", String, true)
message?: string | undefined = undefined;
}
Loading

0 comments on commit 5e2348b

Please sign in to comment.