Skip to content

Commit

Permalink
Merge pull request #256 from avadev/24.12.0
Browse files Browse the repository at this point in the history
Update for 24.12.0
  • Loading branch information
svc-developer authored Dec 18, 2024
2 parents fd8d519 + 4d06605 commit 830b87a
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 10 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("24.11.2")]
[assembly: AssemblyFileVersion("24.11.2")]
[assembly: AssemblyVersion("24.12.0")]
[assembly: AssemblyFileVersion("24.12.0")]
16 changes: 12 additions & 4 deletions src/AvaTaxApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @author Sachin Baijal <sachin.baijal@avalara.com>
* @copyright 2004-2023 Avalara, Inc.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @version 24.11.2
* @version 24.12.0
* @link https://github.com/avadev/AvaTax-REST-V2-DotNet-SDK
*/

Expand All @@ -28,7 +28,7 @@ public partial class AvaTaxClient : IAvaTaxClient
/// <summary>
/// Returns the version number of the API used to generate this class
/// </summary>
public static string API_VERSION { get { return "24.11.2"; } }
public static string API_VERSION { get { return "24.12.0"; } }

#region Methods

Expand Down Expand Up @@ -6303,12 +6303,16 @@ public FirmClientLinkageOutputModel UpdateFirmClientLinkage(FirmClientLinkageMod
/// <param name="id">The unique ID number of this funding request</param>
/// <param name="businessUnit">The company's business unit</param>
/// <param name="subscriptionType">The company's subscription type</param>
public FundingStatusModel ActivateFundingRequest(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType)
/// <param name="currency">Currency</param>
/// <param name="agreementType">Agreement Type</param>
public FundingStatusModel ActivateFundingRequest(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType, String currency, String agreementType)
{
var path = new AvaTaxPath("/api/v2/fundingrequests/{id}/widget");
path.ApplyField("id", id);
path.AddQuery("businessUnit", businessUnit);
path.AddQuery("subscriptionType", subscriptionType);
path.AddQuery("currency", currency);
path.AddQuery("agreementType", agreementType);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID, API_VERSION);
return RestCall<FundingStatusModel>("GET", path, null);
}
Expand Down Expand Up @@ -19416,12 +19420,16 @@ public async Task<FirmClientLinkageOutputModel> UpdateFirmClientLinkageAsync(Fir
/// <param name="id">The unique ID number of this funding request</param>
/// <param name="businessUnit">The company's business unit</param>
/// <param name="subscriptionType">The company's subscription type</param>
public async Task<FundingStatusModel> ActivateFundingRequestAsync(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType)
/// <param name="currency">Currency</param>
/// <param name="agreementType">Agreement Type</param>
public async Task<FundingStatusModel> ActivateFundingRequestAsync(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType, String currency, String agreementType)
{
var path = new AvaTaxPath("/api/v2/fundingrequests/{id}/widget");
path.ApplyField("id", id);
path.AddQuery("businessUnit", businessUnit);
path.AddQuery("subscriptionType", subscriptionType);
path.AddQuery("currency", currency);
path.AddQuery("agreementType", agreementType);
_clientHeaders[Constants.AVALARA_CLIENT_HEADER]=string.Format(ClientID , API_VERSION);
return await RestCallAsync<FundingStatusModel>("GET", path, null).ConfigureAwait(false);
}
Expand Down
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.11.2</version>
<version>24.12.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
8 changes: 6 additions & 2 deletions src/IAvaTaxClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4420,7 +4420,9 @@ public interface IAvaTaxClient
/// <param name="id">The unique ID number of this funding request</param>
/// <param name="businessUnit">The company's business unit</param>
/// <param name="subscriptionType">The company's subscription type</param>
FundingStatusModel ActivateFundingRequest(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType);
/// <param name="currency">Currency</param>
/// <param name="agreementType">Agreement Type</param>
FundingStatusModel ActivateFundingRequest(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType, String currency, String agreementType);

/// <summary>
/// Retrieve status about a funding setup request
Expand Down Expand Up @@ -13911,7 +13913,9 @@ public interface IAvaTaxClient
/// <param name="id">The unique ID number of this funding request</param>
/// <param name="businessUnit">The company's business unit</param>
/// <param name="subscriptionType">The company's subscription type</param>
Task<FundingStatusModel> ActivateFundingRequestAsync(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType);
/// <param name="currency">Currency</param>
/// <param name="agreementType">Agreement Type</param>
Task<FundingStatusModel> ActivateFundingRequestAsync(Int32 id, POABusinessUnit? businessUnit, POASubscriptionType? subscriptionType, String currency, String agreementType);

/// Swagger Name: AvaTaxClient
/// <summary>
Expand Down
15 changes: 15 additions & 0 deletions src/enums/ErrorCodeId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1551,6 +1551,11 @@ public enum ErrorCodeId
/// </summary>
InvalidProductCodeFormat = 1744,

/// <summary>
///
/// </summary>
InvalidCountryAssignment = 1745,

/// <summary>
/// SendSales API errors
/// </summary>
Expand Down Expand Up @@ -1957,6 +1962,16 @@ public enum ErrorCodeId
/// </summary>
DuplicateSystemAndCountryForItem = 3008,

/// <summary>
///
/// </summary>
InvalidHsCodeClassificationStatusOverride = 3009,

/// <summary>
/// Occurs when the field name provided in the request isn't valid.
/// </summary>
InvalidField = 3010,

/// <summary>
/// Avalara Gateway errors:
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/models/CertificateModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class CertificateModel
/// <summary>
/// Expiration date when this certificate will no longer be valid.
/// </summary>
public DateTime expirationDate { get; set; }
public DateTime? expirationDate { get; set; }

/// <summary>
/// File name for the image of this certificate.
Expand Down
5 changes: 5 additions & 0 deletions src/models/FilingReturnModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ public class FilingReturnModel
/// </summary>
public String formCode { get; set; }

/// <summary>
/// The unique code of the form, prefixed by the country code.
/// </summary>
public String taxFormCode { get; set; }

/// <summary>
/// A description for the return.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/models/FilingReturnModelBasic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ public class FilingReturnModelBasic
/// </summary>
public String formCode { get; set; }

/// <summary>
/// The unique code of the form, prefixed by the country code.
/// </summary>
public String taxFormCode { get; set; }

/// <summary>
/// A description for the return.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/models/MultiTaxFilingReturnModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public class MultiTaxFilingReturnModel
/// </summary>
public String formCode { get; set; }

/// <summary>
/// The unique code of the form, prefixed by the country code.
/// </summary>
public String taxFormCode { get; set; }

/// <summary>
/// A description for the return.
/// </summary>
Expand Down

0 comments on commit 830b87a

Please sign in to comment.