Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 23.11.0 #237

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
// Revision
//

[assembly: AssemblyVersion("23.10.1")]
[assembly: AssemblyFileVersion("23.10.1")]
[assembly: AssemblyVersion("23.11.0")]
[assembly: AssemblyFileVersion("23.11.0")]
365 changes: 287 additions & 78 deletions src/AvaTaxApi.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Avalara.AvaTax.RestClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>Avalara.AvaTax</id>

<version>23.10.1</version>
<version>23.11.0</version>

<title>Avalara AvaTax SDK</title>
<description>Add world-class tax estimation and calculation to your project with Avalara's AvaTax suite of APIs and services.</description>
Expand Down
285 changes: 211 additions & 74 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions src/models/BadRequestErrorResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// This is used to map the error details in response
/// </summary>
public class BadRequestErrorResponse
{
/// <summary>
/// Status code in the response
/// </summary>
public Int32? code { get; set; }

/// <summary>
/// Error message in the response
/// </summary>
public String message { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
45 changes: 45 additions & 0 deletions src/models/Context.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Model to represent the system
/// </summary>
public class Context
{
/// <summary>
/// Unique id of the system
/// </summary>
public String id { get; set; }

/// <summary>
/// System name
/// </summary>
public String system { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
5 changes: 3 additions & 2 deletions src/models/CreateMultiDocumentModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ public class CreateMultiDocumentModel
public String companyCode { get; set; }

/// <summary>
/// Transaction Date - The date on the invoice, purchase order, etc.
/// Transaction Date - The date on the invoice, purchase order, etc. AvaTax accepts date values in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
/// format and stores the date as `yyyy-MM-dd`.
///
/// By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a
/// By default, this date will be used to calculate the tax rates for the transaction. If you want to use a
/// different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`.
/// </summary>
public DateTime date { get; set; }
Expand Down
5 changes: 3 additions & 2 deletions src/models/CreateTransactionModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ public class CreateTransactionModel
public String companyCode { get; set; }

/// <summary>
/// Transaction Date - The date on the invoice, purchase order, etc.
/// Transaction Date - The date on the invoice, purchase order, etc. AvaTax accepts date values in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
/// format and stores the date as `yyyy-MM-dd`.
///
/// By default, this date will be used to calculate the tax rates for the transaction. If you wish to use a
/// By default, this date will be used to calculate the tax rates for the transaction. If you want to use a
/// different date to calculate tax rates, please specify a `taxOverride` of type `taxDate`.
/// </summary>
public DateTime date { get; set; }
Expand Down
45 changes: 45 additions & 0 deletions src/models/DcvCreationResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Model used for Domain control verification response
/// </summary>
public class DcvCreationResponse
{
/// <summary>
/// Domain control verification is already exist or newly created
/// </summary>
public String message { get; set; }

/// <summary>
///
/// </summary>
public DcvViewModel dcvViewModel { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
85 changes: 85 additions & 0 deletions src/models/DcvViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// ViewModel to get Domain control verification
/// </summary>
public class DcvViewModel
{
/// <summary>
/// Unique id of the Domain control verification
/// </summary>
public String id { get; set; }

/// <summary>
/// Domain name for which Domain control verification record is created
/// </summary>
public String domainName { get; set; }

/// <summary>
///
/// </summary>
public Context context { get; set; }

/// <summary>
/// Unique token for Domain control verification
/// </summary>
public String token { get; set; }

/// <summary>
/// Status of the domain Verified/Pending/Cancelled
/// </summary>
public String status { get; set; }

/// <summary>
/// Email id of the user who create Domain control verification
/// </summary>
public String emailId { get; set; }

/// <summary>
/// Domain control verification creation date
/// </summary>
public String createdOn { get; set; }

/// <summary>
/// Domain control verification created by
/// </summary>
public String createdBy { get; set; }

/// <summary>
/// Domain control verification update date
/// </summary>
public String updatedOn { get; set; }

/// <summary>
/// Domain control verification update by
/// </summary>
public String updatedBy { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
40 changes: 40 additions & 0 deletions src/models/DomainNameViewModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// ViewModel to receive DomainName from user
/// </summary>
public class DomainNameViewModel
{
/// <summary>
/// Domain Name for which Domain control verification is created
/// </summary>
public String domainName { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
45 changes: 45 additions & 0 deletions src/models/ForbiddenErrorResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// This is used to map the error details in response
/// </summary>
public class ForbiddenErrorResponse
{
/// <summary>
/// Status code in the response
/// </summary>
public Int32? code { get; set; }

/// <summary>
/// Error message in the response
/// </summary>
public String message { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
45 changes: 45 additions & 0 deletions src/models/InternalServerErrorResponse.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

/*
* AvaTax API Client Library
*
* (c) 2004-2023 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]>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// This is used to map the error details in response
/// </summary>
public class InternalServerErrorResponse
{
/// <summary>
/// Status code in the response
/// </summary>
public Int32? code { get; set; }

/// <summary>
/// Error message in the response
/// </summary>
public String message { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
/// </summary>
/// <returns>A JSON string of this object</returns>
public override string ToString()
{
return JsonConvert.SerializeObject(this, new JsonSerializerSettings() { Formatting = Formatting.Indented });
}
}
}
Loading
Loading