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 24.10.0 #251

Merged
merged 1 commit into from
Oct 10, 2024
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("24.8.2")]
[assembly: AssemblyFileVersion("24.8.2")]
[assembly: AssemblyVersion("24.10.0")]
[assembly: AssemblyFileVersion("24.10.0")]
196 changes: 148 additions & 48 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>24.8.2</version>
<version>24.10.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
166 changes: 120 additions & 46 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions src/enums/ErrorCodeId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1892,10 +1892,40 @@ public enum ErrorCodeId
/// </summary>
InvalidCurrencyAggrementType = 2817,

/// <summary>
/// ItemTaxCodeRecommendation Status can't be set without particular state of recommendation
/// </summary>
InvalidTaxCodeRecommendationStatusUpdate = 2818,

/// <summary>
/// Filing Request Error Codes
/// </summary>
DuplicateFilingRequest = 2819,

/// <summary>
/// Occurs when a Header value is incorrect or invalid in some way
/// </summary>
InvalidHTTPHeader = 3000,

/// <summary>
///
/// </summary>
SCSServiceUnreachable = 3001,

/// <summary>
///
/// </summary>
DuplicateContactCode = 3002,

/// <summary>
///
/// </summary>
SCSServerError = 3003,

/// <summary>
/// Occurs when user reconciliation happens and unable to create user at AvaTax
/// </summary>
UserReconciliationError = 3004,

}
}
5 changes: 5 additions & 0 deletions src/enums/ReportSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@ public enum ReportSource
/// </summary>
MONGODB = 1,

/// <summary>
/// returns api
/// </summary>
RETURNSAPI = 2,

}
}
2 changes: 1 addition & 1 deletion src/models/ContactModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ContactModel
public Int32? companyId { get; set; }

/// <summary>
/// A unique code for this contact.
/// A unique code for this contact which is unique throughout company.
/// </summary>
public String contactCode { get; set; }

Expand Down
7 changes: 7 additions & 0 deletions src/models/ExportDocumentLineModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ public class ExportDocumentLineModel
/// </summary>
public Boolean? includeDocumentLineDetails { get; set; }

/// <summary>
/// If true, include multi tax line details in the generated report.
/// If false, include document or document line in the generated report based on includeDocumentLineDetails.
/// Defaults to false if not specified.
/// </summary>
public Boolean? includeMultiTaxLineDetails { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
Expand Down
104 changes: 104 additions & 0 deletions src/models/FirmClientLinkageModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
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>
/// Account Linkage output model
/// </summary>
public class FirmClientLinkageModel
{
/// <summary>
/// The unique ID number of firm-client linkage.
/// </summary>
public Int32? id { get; set; }

/// <summary>
/// Firm Account to be linked with the firm
/// </summary>
public Int32? firmAccountId { get; set; }

/// <summary>
/// FIrm Account name
/// </summary>
public String firmAccountName { get; set; }

/// <summary>
/// Client Account to be linked with the firm
/// </summary>
public Int32? clientAccountId { get; set; }

/// <summary>
/// Client Account name
/// </summary>
public String clientAccountName { get; set; }

/// <summary>
/// Created date of the linkage
/// </summary>
public DateTime? createdDate { get; set; }

/// <summary>
/// User who created the linkage
/// </summary>
public Int32? createdUserId { get; set; }

/// <summary>
/// Modified date of the linkage
/// </summary>
public DateTime? modifiedDate { get; set; }

/// <summary>
/// User who modified the linkage
/// </summary>
public Int32? modifiedUserId { get; set; }

/// <summary>
/// The status of the account linkage. The following are the available statuses
/// * Requested - When a linkage is requested
/// * Approved - When the linkage is approved
/// * Rejected - When the linkage is rejected
/// * Revoked - When the linkage is revoked.
/// </summary>
public FirmClientLinkageStatus? status { get; set; }

/// <summary>
/// This is set to 1 if the linkage is deleted.
/// </summary>
public Boolean? isDeleted { get; set; }

/// <summary>
/// Name of the firm's point of contact person for the client
/// </summary>
public String firmContactName { get; set; }

/// <summary>
/// Email of the firm's point of contact person for the client
/// </summary>
public String firmContactEmail { 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/ItemModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ public class ItemModel
/// </summary>
public List<TaxCodeRecommendationOutputModel> taxCodeRecommendations { get; set; }

/// <summary>
///
/// </summary>
public ItemTaxCodeDetailsOutputModel taxCodeDetails { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
Expand Down
50 changes: 50 additions & 0 deletions src/models/ItemTaxCodeDetailsOutputModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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>
/// ItemTaxCodeDetailsOutputModel
/// </summary>
public class ItemTaxCodeDetailsOutputModel
{
/// <summary>
/// TaxCode assigned to Item
/// </summary>
public String taxCode { get; set; }

/// <summary>
/// Description for the TaxCode
/// </summary>
public String description { get; set; }

/// <summary>
/// Provides if the TaxCode is Active or Not
/// </summary>
public Boolean? isActive { 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 });
}
}
}
7 changes: 7 additions & 0 deletions src/models/ReportParametersModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ public class ReportParametersModel
/// </summary>
public Boolean? includeDocumentLineDetails { get; set; }

/// <summary>
/// If true, include multi tax line details in the generated report.
/// If false, include document or document line in the generated report based on includeDocumentLineDetails.
/// Defaults to false if not specified.
/// </summary>
public Boolean? includeMultiTaxLineDetails { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
Expand Down
15 changes: 15 additions & 0 deletions src/models/TransactionLineDetailModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,21 @@ public class TransactionLineDetailModel
/// </summary>
public String avtUserBIN { get; set; }

/// <summary>
/// The percentage of input VAT/GST that is recoverable.
/// </summary>
public Decimal? recoverabilityPercentage { get; set; }

/// <summary>
/// The amount of input VAT/GST that is recoverable based on the recoverability percentage.
/// </summary>
public Decimal? recoverableAmount { get; set; }

/// <summary>
/// The amount of input VAT/GST that is not recoverable.
/// </summary>
public Decimal? nonRecoverableAmount { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
Expand Down
15 changes: 15 additions & 0 deletions src/models/TransactionLineModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,21 @@ public class TransactionLineModel
/// </summary>
public String summary { get; set; }

/// <summary>
/// The percentage of input VAT/GST that is recoverable.
/// </summary>
public Decimal? recoverabilityPercentage { get; set; }

/// <summary>
/// The amount of input VAT/GST that is recoverable based on the recoverability percentage.
/// </summary>
public Decimal? recoverableAmount { get; set; }

/// <summary>
/// The amount of input VAT/GST that is not recoverable.
/// </summary>
public Decimal? nonRecoverableAmount { get; set; }


/// <summary>
/// Convert this object to a JSON string of itself
Expand Down
Loading