Skip to content

Commit

Permalink
Merge pull request #143 from avadev/21.6.0
Browse files Browse the repository at this point in the history
21.6.0
  • Loading branch information
shilpakhanal authored Jun 11, 2021
2 parents 9039823 + 29f71a8 commit f32e408
Show file tree
Hide file tree
Showing 4 changed files with 3,620 additions and 2,916 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,13 @@ protected function restCall($apiUrl, $verb, $guzzleParams)
}
$guzzleParams['headers'] = [
'Accept' => 'application/json',
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.3.1; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.6.0; {$this->machineName}"
];
} else {
$guzzleParams['headers'] = [
'Accept' => 'application/json',
'Authorization' => 'Bearer '.$this->auth[0],
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.3.1; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.6.0; {$this->machineName}"
];
}
// timeout for 1200s (20 min)
Expand Down
94 changes: 63 additions & 31 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ class ErrorCodeId
const C_INVALIDCOMPANYLOCATIONSETTING = 85;
const C_INVALIDADJUSTMENTTYPE = 99;
const C_DELETEINFORMATION = 100;
const C_DISABLEAUTHENTICATIONFORSAMLBASEDACCOUNTS = 101;
const C_DISABLERESETPASSWORDFORSAMLBASEDACCOUNTS = 102;
const C_OUTOFRANGE = 118;
const C_UNSPECIFIEDTIMEZONE = 119;
const C_CANNOTCREATEDELETEDOBJECTS = 120;
Expand Down Expand Up @@ -468,6 +470,12 @@ class ErrorCodeId
const C_TAXCODEANDTAXCODEIDMISSING = 1724;
const C_NEXUSALREADYEXISTS = 1725;
const C_INVALIDADDRESSTYPEANDMARKETPLACEOUSIDEUSAFLAG = 1726;
const C_INVALIDSETTINGSET = 1727;
const C_INVALIDSETTINGNAME = 1728;
const C_INVALIDSETTINGVALUE = 1729;
const C_TOOMANYUSERDEFINEDFIELDS = 1730;
const C_DUPLICATEUSERDEFINEDFIELDSFOUND = 1731;
const C_INVALIDNAMEFORUSERDEFINEDFIELD = 1732;
const C_UNSUPPORTEDFILEFORMAT = 1800;
const C_UNSUPPORTEDOUTPUTFILETYPE = 1801;
const C_TAXPROFILENOTPROVIDED = 1900;
Expand Down Expand Up @@ -514,6 +522,9 @@ class ErrorCodeId
const C_BATCHCANNOTBECANCELLEDSTATUSERROR = 2504;
const C_BATCHCANNOTBECANCELLEDFORMATERROR = 2505;
const C_INVALIDPARAMETERDATATYPE = 2600;
const C_TAGDOESNOTEXIST = 2620;
const C_OBJECTDELETED = 2660;
const C_ASSOCIATEDOBJECTSDELETED = 2661;
const C_CANNOTDOWNLOADREPORT = 2700;

}
Expand Down Expand Up @@ -840,6 +851,7 @@ class BatchStatus
const C_ERRORS = 6;
const C_PAUSED = 7;
const C_PROCESSING = 8;
const C_CANCELLING = 9;

}

Expand Down Expand Up @@ -886,6 +898,15 @@ class TaxDebugLevel

}

/**
*
*/
class DeliveryTerms
{ const C_DAP = 1;
const C_DDP = 2;

}

/**
*
*/
Expand Down Expand Up @@ -961,18 +982,20 @@ class CompanyFilingStatus
/**
*
*/
class LiabilityType
{ const C_SELLER = 0;
const C_BUYERSAGENT = 1;
class Visibility
{ const C_REQUIRED = 0;
const C_RECOMMENDED = 1;
const C_OPTIONAL = 2;
const C_CONDITIONAL = 3;

}

/**
*
*/
class DeemedSellerType
{ const C_MARKETPLACE = 1;
const C_MERCHANT = 2;
class ScraperType
{ const C_LOGIN = 1;
const C_CUSTOMERDORDATA = 2;

}

Expand All @@ -986,31 +1009,6 @@ class BoundaryLevel

}

/**
*
*/
class DocumentStatus
{ const C_TEMPORARY = 0;
const C_SAVED = 1;
const C_POSTED = 2;
const C_COMMITTED = 3;
const C_CANCELLED = 4;
const C_ADJUSTED = 5;
const C_QUEUED = 6;
const C_PENDINGAPPROVAL = 7;
const C_ANY = -1;

}

/**
*
*/
class ScraperType
{ const C_LOGIN = 1;
const C_CUSTOMERDORDATA = 2;

}

/**
*
*/
Expand Down Expand Up @@ -1122,6 +1120,40 @@ class FirmClientLinkageStatus

}

/**
*
*/
class LiabilityType
{ const C_SELLER = 0;
const C_BUYERSAGENT = 1;

}

/**
*
*/
class DeemedSellerType
{ const C_MARKETPLACE = 1;
const C_MERCHANT = 2;

}

/**
*
*/
class DocumentStatus
{ const C_TEMPORARY = 0;
const C_SAVED = 1;
const C_POSTED = 2;
const C_COMMITTED = 3;
const C_CANCELLED = 4;
const C_ADJUSTED = 5;
const C_QUEUED = 6;
const C_PENDINGAPPROVAL = 7;
const C_ANY = -1;

}

/**
*
*/
Expand Down
Loading

0 comments on commit f32e408

Please sign in to comment.