Skip to content

Commit

Permalink
Merge pull request #229 from avadev/24.11.2
Browse files Browse the repository at this point in the history
Update for 24.11.2
  • Loading branch information
svc-developer authored Nov 12, 2024
2 parents 446f58c + 94a0299 commit ad4e496
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 46 deletions.
98 changes: 97 additions & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Avalara;
use GuzzleHttp\Client;

define('AVATAX_SDK_VERSION', '24.10.0');
define('AVATAX_SDK_VERSION', '24.11.2');

/*****************************************************************************
* *
Expand Down Expand Up @@ -983,6 +983,8 @@ class ErrorCodeId
const C_ITEMDUALWRITEPARAMETERVALUEMISMATCHERROR = 1740;
const C_DUPLICATEITEMIDSINTAXCODECLASSIFICATIONREQUEST = 1741;
const C_TOOMANYITEMIDSINTAXCODECLASSIFICATIONREQUEST = 1742;
const C_INVALIDPRODUCTCODELENGTH = 1743;
const C_INVALIDPRODUCTCODEFORMAT = 1744;

/**
* SendSales API errors
Expand Down Expand Up @@ -1153,6 +1155,49 @@ class ErrorCodeId
* Occurs when user reconciliation happens and unable to create user at AvaTax
*/
const C_USERRECONCILIATIONERROR = 3004;

/**
* Occurs when a patch operation is attempted on a field that is not allowed to be patched
*/
const C_INVALIDHTTPPATCHREQUEST = 3005;

/**
* Occurs when a patch operation other than 'given' operation is performed for the fields
*/
const C_UNSUPPORTEDPATCHOPERATIONERROR = 3006;

/**
* Occurs when system code and country code does not have active mapping.
*/
const C_SYSTEMCODEANDCOUNTRYCODEMISMATCH = 3007;

/**
* Occurs when multiple entries for system code and country code exists.
*/
const C_DUPLICATESYSTEMANDCOUNTRYFORITEM = 3008;

/**
* Avalara Gateway errors:
*/
const C_NOTFOUND = 4001;
const C_UNEXPECTED = 4002;
const C_NOHOSTFOUND = 4003;
const C_UNEXPECTEDAUTH = 4004;
const C_SITESELECTIONFAILED = 4006;
const C_DROPDEFAULTUSERNAME = 4007;
const C_DROPDEFAULTNOTMIGRATED = 4008;
const C_DROPBEARERAUTH = 4009;
const C_SITESELECTIONERROR = 4010;
const C_RATELIMITEXCEEDED = 4011;
const C_NOHEALTHYSITE = 4012;
const C_CLIENTDISCONNECTED = 4013;
const C_SERVICEDISCONNECTED = 4014;
const C_SERVICETIMEOUT = 4015;

/**
* Error string from the service unknown
*/
const C_UNEXPECTEDERROR = -1;

}

Expand Down Expand Up @@ -2114,6 +2159,11 @@ class ReportSource
* returns api
*/
const C_RETURNSAPI = 2;

/**
* tax region and tax type
*/
const C_TAXREGION = 3;

}

Expand Down Expand Up @@ -2651,6 +2701,52 @@ class BoundaryLevel

}

/**
* Swagger Name: AvaTaxClient
* Defines returns liability type.
*/
class ReturnsLiabilityType
{
/**
* all
*/
const C_ALL = 0;

/**
* original
*/
const C_ORIGINAL = 1;

/**
* amend
*/
const C_AMENDED = 2;

}

/**
* Swagger Name: AvaTaxClient
* Defines returns report type.
*/
class ReturnsReportType
{
/**
* liability summary return detail hospitality
*/
const C_LIABILITYSUMMARYRETURNDETAILHOSPITALITY = 0;

/**
* liability summary return detail
*/
const C_LIABILITYSUMMARYRETURNDETAIL = 1;

/**
* liability carry over credit
*/
const C_LIABILITYCARRYOVERCREDIT = 2;

}

/**
* Swagger Name: AvaTaxClient
* This field will identify who is remitting the tax - Marketplace or Seller.
Expand Down
Loading

0 comments on commit ad4e496

Please sign in to comment.