Skip to content

Commit

Permalink
Merge pull request #243 from avadev/24.6.3
Browse files Browse the repository at this point in the history
Update for 24.6.3
  • Loading branch information
svc-developer authored Jun 27, 2024
2 parents 874055d + a0bfa6b commit 9725a46
Show file tree
Hide file tree
Showing 23 changed files with 905 additions and 103 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.6.1")]
[assembly: AssemblyFileVersion("24.6.1")]
[assembly: AssemblyVersion("24.6.3")]
[assembly: AssemblyFileVersion("24.6.3")]
110 changes: 58 additions & 52 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.6.1</version>
<version>24.6.3</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
68 changes: 36 additions & 32 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions src/enums/CertificateEcmStatus.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
using System;

/*
* 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>
///
/// </summary>
public enum CertificateEcmStatus
{
/// <summary>
///
/// </summary>
None = 0,

/// <summary>
///
/// </summary>
Expired = 1,

/// <summary>
///
/// </summary>
Invalid = 2,

/// <summary>
///
/// </summary>
Valid = 3,

/// <summary>
///
/// </summary>
PendingFuture = 4,

}
}
80 changes: 80 additions & 0 deletions src/models/ActiveCertificateModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
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>
/// Certificate with exemption reason and exposure zone. Exposed in url $includes
/// </summary>
public class ActiveCertificateModel
{
/// <summary>
/// Certificate ID.
/// </summary>
public Int64? id { get; set; }

/// <summary>
/// Created date time
/// </summary>
public DateTime? created { get; set; }

/// <summary>
/// Modified date time
/// </summary>
public DateTime? modified { get; set; }

/// <summary>
/// Certificate's expected tax number
/// </summary>
public String expectedTaxNumber { get; set; }

/// <summary>
/// Certificate's actual tax number
/// </summary>
public String actualTaxNumber { get; set; }

/// <summary>
///
/// </summary>
public ExposureZoneModel exposureZone { get; set; }

/// <summary>
///
/// </summary>
public ExemptionReasonModel expectedTaxCode { get; set; }

/// <summary>
///
/// </summary>
public ExemptionReasonModel actualTaxCode { get; set; }

/// <summary>
///
/// </summary>
public CertificateModel certificate { 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 });
}
}
}
80 changes: 80 additions & 0 deletions src/models/AssociatedObjectDeletedErrorDetailsModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
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>
///
/// </summary>
public class AssociatedObjectDeletedErrorDetailsModel
{
/// <summary>
///
/// </summary>
public ErrorCodeId? code { get; set; }

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

/// <summary>
///
/// </summary>
public String message { get; set; }

/// <summary>
///
/// </summary>
public String description { get; set; }

/// <summary>
///
/// </summary>
public String faultCode { get; set; }

/// <summary>
///
/// </summary>
public String faultSubCode { get; set; }

/// <summary>
///
/// </summary>
public String helpLink { get; set; }

/// <summary>
///
/// </summary>
public String refersTo { get; set; }

/// <summary>
///
/// </summary>
public SeverityLevel? severity { 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 });
}
}
}
55 changes: 55 additions & 0 deletions src/models/CertificateInvalidReasonModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
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>
/// Invalid reason for the certificate
/// </summary>
public class CertificateInvalidReasonModel
{
/// <summary>
///
/// </summary>
public Int32? id { get; set; }

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

/// <summary>
///
/// </summary>
public String description { get; set; }

/// <summary>
///
/// </summary>
public Boolean? systemCode { 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 });
}
}
}
60 changes: 60 additions & 0 deletions src/models/CertificateLogModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
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>
/// certificate log for a customer. Exposed in url $includes
/// </summary>
public class CertificateLogModel
{
/// <summary>
/// Log ID
/// </summary>
public Int64? id { get; set; }

/// <summary>
/// Certificate ID
/// </summary>
public Int64? certificateId { get; set; }

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

/// <summary>
/// Log description
/// </summary>
public String entry { get; set; }

/// <summary>
/// Date of creation for log entry
/// </summary>
public DateTime? created { 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/CertificateModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ public class CertificateModel
/// </summary>
public String status { get; set; }

/// <summary>
/// The status of the certificate as displayed on https://exemptions.avalara.com. Can take values
/// </summary>
public CertificateEcmStatus? ecmStatus { get; set; }

/// <summary>
/// The date/time when this record was created.
/// </summary>
Expand Down Expand Up @@ -161,6 +166,41 @@ public class CertificateModel
/// </summary>
public List<CertificateAttributeModel> attributes { get; set; }

/// <summary>
/// A list of certificate update histories for this certificate.
///
/// You can fetch this data by specifying `$include=histories` when calling a certificate fetch API.
/// </summary>
public List<HistoryModel> histories { get; set; }

/// <summary>
/// A list of certificate update histories for this certificate.
///
/// You can fetch this data by specifying `$include=jobs` when calling a certificate fetch API.
/// </summary>
public List<CustomerJobModel> jobs { get; set; }

/// <summary>
/// A list of certificate logs for this certificate.
///
/// You can fetch this data by specifying `$include=logs` when calling a certificate fetch API.
/// </summary>
public List<CertificateLogModel> logs { get; set; }

/// <summary>
/// A list of invalid reasons if the certificate status is not valid
///
/// You can fetch this data by specifying `$include=invalid_reasons` when calling a certificate fetch API.
/// </summary>
public List<CertificateInvalidReasonModel> invalidReasons { get; set; }

/// <summary>
/// A list of custom defined fields for this certificate
///
/// You can fetch this data by specifying `$include=custom_fields` when calling a certificate fetch API.
/// </summary>
public List<CustomFieldModel> customFields { get; set; }

/// <summary>
/// The unique ID number of current AvaTax Exemption Certificate that refers this certificate.
/// </summary>
Expand Down
Loading

0 comments on commit 9725a46

Please sign in to comment.