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.7.0 #231

Merged
merged 1 commit into from
Jul 14, 2023
Merged
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
23.7.0
svc-developer committed Jul 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit dce6d90125bebd7da2e179f9a557b504b4b9df17
4 changes: 2 additions & 2 deletions GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -30,5 +30,5 @@
// Revision
//

[assembly: AssemblyVersion("23.6.1")]
[assembly: AssemblyFileVersion("23.6.1")]
[assembly: AssemblyVersion("23.7.0")]
[assembly: AssemblyFileVersion("23.7.0")]
156 changes: 152 additions & 4 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
@@ -3,7 +3,7 @@
<metadata>
<id>Avalara.AvaTax</id>

<version>23.6.1</version>
<version>23.7.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>
116 changes: 114 additions & 2 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions src/models/CountryCoefficientsEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Represents the Country coefficients model, using which tax rules rates can be modified dynamically for CB transaciotns while applying tax rules
/// in order to reduce the variance for all the transactions at country level.
/// </summary>
public class CountryCoefficientsEntity
{
/// <summary>
/// CoefficientsId
/// </summary>
public Int32? coefficientsId { get; set; }

/// <summary>
/// AccountId
/// </summary>
public Int32? accountId { get; set; }

/// <summary>
/// The CompanyId of company for which coefficient will be applied.
/// </summary>
public Int32? companyId { get; set; }

/// <summary>
/// The country for which coefficient will be applied.
/// </summary>
public String country { get; set; }

/// <summary>
/// Value by which rates need to be altered while calculating taxes.
/// </summary>
public Decimal? coefficient { get; set; }

/// <summary>
/// TaxSubTypeId
/// </summary>
public String taxSubTypeId { get; set; }

/// <summary>
/// CurrencyCode
/// </summary>
public String currencyCode { get; set; }

/// <summary>
/// UnitOfBasisId
/// </summary>
public Int32? unitOfBasisId { get; set; }

/// <summary>
/// IsApplicable
/// Flag that is being used to mark the effectiveness of the specific entry for the particular date.
/// </summary>
public Boolean? isApplicable { get; set; }

/// <summary>
/// ModifiedDate
/// </summary>
public DateTime? modifiedDate { get; set; }

/// <summary>
/// StartDate
/// </summary>
public DateTime? startDate { get; set; }

/// <summary>
///
/// </summary>
public DateTime? endDate { get; set; }

/// <summary>
/// ModifiedUserId.
///
/// To track the user by which the records have been modified in the past.
/// This will allow us to track the historical changes made to particular record.
/// </summary>
public Int32? modifiedUserId { get; set; }

/// <summary>
/// StartDate
/// </summary>
public DateTime? createdDate { get; set; }

/// <summary>
/// CreatedUserId.
///
/// To track the user who created the record at first place
/// </summary>
public Int32? createdUserId { 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 });
}
}
}
46 changes: 46 additions & 0 deletions src/models/CountryCoefficientsRequestEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Represents the Country coefficients request input model, using which tax rules rates can be modified dynamically for CB transaciotns while applying tax rules
/// in order to reduce the variance for all the transactions at country level.
/// </summary>
public class CountryCoefficientsRequestEntity
{
/// <summary>
/// AccountId
/// </summary>
public Int32 accountId { get; set; }

/// <summary>
/// CountryCoefficientsRequestModel list
/// </summary>
public List<CountryCoefficientsRequestModel> coefficientDetails { 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 });
}
}
}
82 changes: 82 additions & 0 deletions src/models/CountryCoefficientsRequestModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Represents the Country coefficients model, using which tax rules rates can be modified dynamically for CB transaciotns while applying tax rules
/// in order to reduce the variance for all the transactions at country level.
/// </summary>
public class CountryCoefficientsRequestModel
{
/// <summary>
/// CompanyCode
/// </summary>
public String companyCode { get; set; }

/// <summary>
/// The country for which coefficient will be applied.
/// </summary>
public String country { get; set; }

/// <summary>
/// Value by which rates need to be altered while calculating taxes.
/// </summary>
public Decimal coefficient { get; set; }

/// <summary>
/// TaxSubTypeId
/// </summary>
public String taxSubTypeId { get; set; }

/// <summary>
/// CurrencyCode
/// </summary>
public String currencyCode { get; set; }

/// <summary>
/// UnitOfBasisId
/// </summary>
public Int32 unitOfBasisId { get; set; }

/// <summary>
/// IsApplicable
/// Flag that is being used to mark the effectiveness of the specific entry for the particular date.
/// </summary>
public Boolean isApplicable { get; set; }

/// <summary>
/// StartDate
/// </summary>
public DateTime startDate { get; set; }

/// <summary>
///
/// </summary>
public DateTime endDate { 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 });
}
}
}
49 changes: 49 additions & 0 deletions src/models/CountryCoefficientsResponseModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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 <jonathan.wenger@avalara.com>
* @author Sachin Baijal <sachin.baijal@avalara.com>
* Swagger name: AvaTaxClient
*/

namespace Avalara.AvaTax.RestClient
{
/// <summary>
/// Represents the coefficient, using which tax rules rates can be modified dynamically while applying tax rules
/// in order to reduce the variance for all the transactions at country level.
///
/// Avalara supports a few different types of tax rules. For information about tax rule types, see
/// [TaxRuleTypeId](https://developer.avalara.com/cofficients)
/// </summary>
public class CountryCoefficientsResponseModel
{
/// <summary>
/// Total Number of Country Coefficients records inserted/updated.
/// </summary>
public Int32? count { get; set; }

/// <summary>
/// Message
/// </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 });
}
}
}
5 changes: 5 additions & 0 deletions src/models/ParameterUsageModel.cs
Original file line number Diff line number Diff line change
@@ -93,6 +93,11 @@ public class ParameterUsageModel
/// </summary>
public List<String> values { get; set; }

/// <summary>
/// If the parameter is of enumeration data type, then this list will be populated with description for each enum value.
/// </summary>
public List<String> valueDescriptions { get; set; }

/// <summary>
/// The unit of measurement type of the parameter
/// </summary>
7 changes: 7 additions & 0 deletions src/models/TransactionLineModel.cs
Original file line number Diff line number Diff line change
@@ -274,6 +274,13 @@ public class TransactionLineModel
/// </summary>
public List<TransactionLineDetailModel> details { get; set; }

/// <summary>
/// Optional: A list of Account payable Sales tax details for this line item.
///
/// To fetch this list, add the query string `?$include=AccountPayableSalesTaxDetails` to your URL.
/// </summary>
public List<TransactionLineDetailModel> accountPayableSalesTaxDetails { get; set; }

/// <summary>
/// Optional: A list of non-passthrough tax details for this line item.
///