Skip to content

Commit

Permalink
Merge pull request #217 from avadev/24.4.2
Browse files Browse the repository at this point in the history
Update for 24.4.2
  • Loading branch information
svc-developer authored Apr 23, 2024
2 parents e51d53f + 50768fa commit 6c873f6
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 227 deletions.
174 changes: 121 additions & 53 deletions 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.2.0');
define('AVATAX_SDK_VERSION', '24.4.2');

/*****************************************************************************
* *
Expand Down Expand Up @@ -357,6 +357,24 @@ class StackAggregationOption

}

/**
* Swagger Name: AvaTaxClient
* AP Config Tolerance Type
*/
class ApConfigToleranceType
{
/**
* RealTime
*/
const C_REALTIME = 0;

/**
* Batch
*/
const C_BATCH = 1;

}

/**
* Swagger Name: AvaTaxClient
* Status of an Avalara account
Expand Down Expand Up @@ -537,6 +555,24 @@ class AdjustmentReason

}

/**
* Swagger Name: AvaTaxClient
*
*/
class BulkImportStatus
{ const C_NONE = 0;
const C_SUCCESS = 1;
const C_CREATED = 2;
const C_UPDATED = 4;
const C_NOTIMPORTED = 8;
const C_IGNORED = 16;
const C_ERROR = 32;
const C_VALIDATIONFAILED = 64;
const C_PARTIALSUCCESS = 128;
const C_INVALID = 256;

}

/**
* Swagger Name: AvaTaxClient
* Indicates what level of auditing information is available for a transaction
Expand Down Expand Up @@ -1669,6 +1705,7 @@ class ErrorCodeId
const C_INVALIDFILENAME = 1737;
const C_NOCLASSIFICATIONFORSAMEHSCODE = 1738;
const C_INVALIDVALUEERROR = 1739;
const C_ITEMDUALWRITEPARAMETERVALUEMISMATCHERROR = 1740;

/**
* SendSales API errors
Expand Down Expand Up @@ -1740,6 +1777,7 @@ class ErrorCodeId
const C_FIELDLENGTHERROR = 2400;
const C_INPUTCONTAINSBLACKLISTEDCHARACTERS = 2401;
const C_CANNOTCREATENESTEDOBJECTS = 2402;
const C_INVALIDUSERNAME = 2403;

/**
* User's SubjectId not updated by DB query
Expand Down Expand Up @@ -2660,119 +2698,119 @@ class AddressCategoryId

/**
* Swagger Name: AvaTaxClient
* Types of jurisdiction referenced in a transaction
* Describes the different types of statuses which describe an entity (company).
*/
class JurisTypeId
class NexusTypeId
{
/**
* State
* Indicates no nexus
*/
const C_STA = 1;
const C_NONE = 0;

/**
* County
* Indicates the entity is voluntarily collecting tax (default)
*/
const C_CTY = 2;
const C_SALESORSELLERSUSETAX = 1;

/**
* City
* Indicates the entity is required to collect tax in the state
*/
const C_CIT = 3;
const C_SALESTAX = 2;

/**
* Special
* Indicates the entity is registered as a Volunteer in an SST state.
* Only your SST administrator may set this option.
*/
const C_STJ = 4;
const C_SSTVOLUNTEER = 3;

/**
* Country
* Indicates the entity is registered as a Non-Volunteer in an SST state.
* Only your SST administrator may set this option.
*/
const C_CNT = 5;
const C_SSTNONVOLUNTEER = 4;

}

/**
* Swagger Name: AvaTaxClient
* Describes the different types of statuses which describe an entity (company).
* Describes nexus type id
*/
class NexusTypeId
class LocalNexusTypeId
{
/**
* Indicates no nexus
*/
const C_NONE = 0;

/**
* Indicates the entity is voluntarily collecting tax (default)
*/
const C_SALESORSELLERSUSETAX = 1;

/**
* Indicates the entity is required to collect tax in the state
* Only the specific nexus objects declared for this company are declared.
*/
const C_SALESTAX = 2;
const C_SELECTED = 0;

/**
* Indicates the entity is registered as a Volunteer in an SST state.
* Only your SST administrator may set this option.
* Customer declares nexus in all state administered taxing authorities.
*
* This value only takes effect if you set `hasLocalNexus` = true.
*/
const C_SSTVOLUNTEER = 3;
const C_STATEADMINISTERED = 1;

/**
* Indicates the entity is registered as a Non-Volunteer in an SST state.
* Only your SST administrator may set this option.
* Customer declares nexus in all local taxing authorities.
*
* This value only takes effect if you set `hasLocalNexus` = true.
*/
const C_SSTNONVOLUNTEER = 4;
const C_ALL = 2;

}

/**
* Swagger Name: AvaTaxClient
* Sourcing
* Types of jurisdiction referenced in a transaction
*/
class Sourcing
class JurisTypeId
{
/**
* Mixed sourcing, for states that do both origin and destination calculation
* State
*/
const C_MIXED = 42;
const C_STA = 1;

/**
* Destination
* County
*/
const C_DESTINATION = 68;
const C_CTY = 2;

/**
* Origin
* City
*/
const C_ORIGIN = 79;
const C_CIT = 3;

/**
* Special
*/
const C_STJ = 4;

/**
* Country
*/
const C_CNT = 5;

}

/**
* Swagger Name: AvaTaxClient
* Describes nexus type id
* Sourcing
*/
class LocalNexusTypeId
class Sourcing
{
/**
* Only the specific nexus objects declared for this company are declared.
* Mixed sourcing, for states that do both origin and destination calculation
*/
const C_SELECTED = 0;
const C_MIXED = 42;

/**
* Customer declares nexus in all state administered taxing authorities.
*
* This value only takes effect if you set `hasLocalNexus` = true.
* Destination
*/
const C_STATEADMINISTERED = 1;
const C_DESTINATION = 68;

/**
* Customer declares nexus in all local taxing authorities.
*
* This value only takes effect if you set `hasLocalNexus` = true.
* Origin
*/
const C_ALL = 2;
const C_ORIGIN = 79;

}

Expand Down Expand Up @@ -3342,6 +3380,36 @@ class DeemedSellerType

}

/**
* Swagger Name: AvaTaxClient
* /// The user can set some tolerance or threshold limits inorder to take appropriate actions when
* their transactions are above or below certain threshold limits.
* Account Payable (AP) status code indicates an action that needs to be taken when the tolerance/threshold falls between certain range.
*/
class APStatus
{ const C_PAYASBILLEDMATCH = 0;
const C_SHORTPAYITEMSACCRUEMATCH = 1;
const C_MARKFORREVIEWMATCH = 2;
const C_REJECTMATCH = 3;
const C_PAYASBILLEDNOACCRUAL = 4;
const C_PAYASBILLEDACCRUEUNDERCHARGE = 5;
const C_SHORTPAYITEMSACCRUEUNDERCHARGE = 6;
const C_MARKFORREVIEWUNDERCHARGE = 7;
const C_REJECTUNDERCHARGE = 8;
const C_PAYASBILLEDOVERCHARGE = 9;
const C_SHORTPAYAVALARACALCULATED = 10;
const C_SHORTPAYITEMSACCRUEOVERCHARGE = 11;
const C_MARKFORREVIEWOVERCHARGE = 12;
const C_REJECTOVERCHARGE = 13;
const C_AMOUNTTHRESHOLDNOTMET = 14;
const C_COSTCENTEREXEMPTED = 15;
const C_ITEMEXEMPTED = 16;
const C_TRUSTEDVENDOR = 17;
const C_ACCRUEDBYVENDOR = 18;
const C_IGNORED = 19;

}

/**
* Swagger Name: AvaTaxClient
* Indicates the level of companies that can be accessed
Expand Down
Loading

0 comments on commit 6c873f6

Please sign in to comment.