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.6.1 #242

Merged
merged 1 commit into from
Jun 13, 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.4.2")]
[assembly: AssemblyFileVersion("24.4.2")]
[assembly: AssemblyVersion("24.6.1")]
[assembly: AssemblyFileVersion("24.6.1")]
713 changes: 494 additions & 219 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.4.2</version>
<version>24.6.1</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
473 changes: 324 additions & 149 deletions src/IAvaTaxClient.cs

Large diffs are not rendered by default.

42 changes: 31 additions & 11 deletions src/enums/APStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public enum APStatus
/// <summary>
///
/// </summary>
PayAsBilledMatch = 0,
NoAccrualMatch = 0,

/// <summary>
///
Expand All @@ -45,12 +45,12 @@ public enum APStatus
/// <summary>
///
/// </summary>
PayAsBilledNoAccrual = 4,
NoAccrualUndercharge = 4,

/// <summary>
///
/// </summary>
PayAsBilledAccrueUndercharge = 5,
AccruedUndercharge = 5,

/// <summary>
///
Expand All @@ -60,7 +60,7 @@ public enum APStatus
/// <summary>
///
/// </summary>
MarkForReviewUndercharge = 7,
NeedReviewUndercharge = 7,

/// <summary>
///
Expand All @@ -70,7 +70,7 @@ public enum APStatus
/// <summary>
///
/// </summary>
PayAsBilledOvercharge = 9,
NoAccrualOvercharge = 9,

/// <summary>
///
Expand All @@ -95,32 +95,52 @@ public enum APStatus
/// <summary>
///
/// </summary>
AmountThresholdNotMet = 14,
NoAccrualAmountThresholdNotMet = 14,

/// <summary>
///
/// </summary>
CostCenterExempted = 15,
NoAccrualExemptedCostCenter = 15,

/// <summary>
///
/// </summary>
ItemExempted = 16,
NoAccrualExemptedItem = 16,

/// <summary>
///
/// </summary>
TrustedVendor = 17,
NoAccrualTrustedVendor = 17,

/// <summary>
///
/// </summary>
AccruedByVendor = 18,
AccruedVendor = 18,

/// <summary>
///
/// </summary>
Ignored = 19,
NeedReviewVendor = 19,

/// <summary>
///
/// </summary>
NoAccrualExemptedVendor = 20,

/// <summary>
///
/// </summary>
NoAccrualExemptedGLAccount = 21,

/// <summary>
///
/// </summary>
PendingAccrualVendor = 22,

/// <summary>
///
/// </summary>
PendingAccrualUndercharge = 23,

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

/// <summary>
///
/// </summary>
GLAccountImport = 16,

}
}
20 changes: 20 additions & 0 deletions src/enums/ErrorCodeId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,6 +1531,16 @@ public enum ErrorCodeId
/// </summary>
ItemDualWriteParameterValueMismatchError = 1740,

/// <summary>
///
/// </summary>
DuplicateItemIdsInTaxCodeClassificationRequest = 1741,

/// <summary>
///
/// </summary>
TooManyItemIdsInTaxCodeClassificationRequest = 1742,

/// <summary>
/// SendSales API errors
/// </summary>
Expand Down Expand Up @@ -1862,6 +1872,16 @@ public enum ErrorCodeId
/// </summary>
InvalidCostCenter = 2813,

/// <summary>
/// Sync flow restricts one record for Item model
/// </summary>
TooManyItemsInSyncFlowRequest = 2814,

/// <summary>
/// IMS-2096: Recommendation status update rule
/// </summary>
InvalidTaxCodeIdInRecommendationStatusUpdate = 2815,

/// <summary>
/// Occurs when a Header value is incorrect or invalid in some way
/// </summary>
Expand Down
7 changes: 6 additions & 1 deletion src/models/ClassificationParameterUsageMapModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ClassificationParameterUsageMapModel
public String taxTypeGroupId { get; set; }

/// <summary>
/// This defines if the parameter is recommeded ,optional or mandatory
/// This defines if the parameter is recommended ,optional or mandatory
/// </summary>
public Visibility? visibility { get; set; }

Expand All @@ -47,6 +47,11 @@ public class ClassificationParameterUsageMapModel
/// </summary>
public String attributeType { get; set; }

/// <summary>
/// The sub-type of parameter as determined by its application.
/// </summary>
public String attributeSubType { get; set; }

/// <summary>
/// The name of the property. To use this property, add a field on the `parameters` object of a [CreateTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/CreateTransaction/) call.
/// </summary>
Expand Down
40 changes: 40 additions & 0 deletions src/models/FilterModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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>
/// Filter Model
/// </summary>
public class FilterModel
{
/// <summary>
/// Filter
/// </summary>
public String filter { 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/GLAccountBulkUploadInputModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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 a bulk upload input model.
/// </summary>
public class GLAccountBulkUploadInputModel
{
/// <summary>
/// List of GL accounts
/// </summary>
public List<GLAccountRequestModel> glAccounts { 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 });
}
}
}
45 changes: 45 additions & 0 deletions src/models/GLAccountBulkUploadOutputModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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 a bulk upload response model.
/// </summary>
public class GLAccountBulkUploadOutputModel
{
/// <summary>
/// The total number of processed objects
/// </summary>
public Int32? total { get; set; }

/// <summary>
/// A dictionary of the object and a respective list of errors
/// </summary>
public List<GLAccountUploadErrorModel> failed { 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/GLAccountRequestModel.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>
/// GL account request model
/// </summary>
public class GLAccountRequestModel
{
/// <summary>
/// The entity use code
/// </summary>
public String entityUseCode { get; set; }

/// <summary>
/// The "effective from" date
/// </summary>
public DateTime? effectiveDate { get; set; }

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

/// <summary>
///
/// </summary>
public Int64TaxProfileObjectReferenceModel defaultItem { get; set; }

/// <summary>
/// The GL account code
/// </summary>
public String glAccountCode { 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 });
}
}
}
Loading
Loading