Skip to content

Commit

Permalink
Merge pull request #231 from avadev/23.7.0
Browse files Browse the repository at this point in the history
Update for 23.7.0
  • Loading branch information
svc-developer authored Jul 14, 2023
2 parents 1c10f5d + dce6d90 commit da8db97
Show file tree
Hide file tree
Showing 10 changed files with 575 additions and 9 deletions.
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.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
Expand Up @@ -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>
Expand Down
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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* 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 <[email protected]>
* @author Sachin Baijal <[email protected]>
* 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
Expand Up @@ -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>
Expand Down
7 changes: 7 additions & 0 deletions src/models/TransactionLineModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit da8db97

Please sign in to comment.