Skip to content

Commit

Permalink
Merge pull request avadev#154 from avadev/21.10.0
Browse files Browse the repository at this point in the history
Update for 21.10.0
  • Loading branch information
svc-developer authored Oct 26, 2021
2 parents 48e8612 + ffd7dd3 commit 3567dd5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 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.9.0; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.10.0; {$this->machineName}"
];
} else {
$guzzleParams['headers'] = [
'Accept' => 'application/json',
'Authorization' => 'Bearer '.$this->auth[0],
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.9.0; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.10.0; {$this->machineName}"
];
}

Expand Down
4 changes: 4 additions & 0 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ class ErrorCodeId
const C_DATEFORMATERROR = 26;
const C_NODEFAULTCOMPANY = 27;
const C_ACCOUNTTYPENOTSUPPORTED = 28;
const C_INVALIDAUTHENTICATIONTYPE = 29;
const C_AUTHENTICATIONEXCEPTION = 30;
const C_AUTHORIZATIONEXCEPTION = 31;
const C_VALIDATIONEXCEPTION = 32;
Expand Down Expand Up @@ -382,6 +383,7 @@ class ErrorCodeId
const C_SUBSCRIPTIONREQUIRED = 600;
const C_ACCOUNTEXISTS = 601;
const C_INVITATIONONLY = 602;
const C_ACCOUNTNOTWHITELISTED = 603;
const C_FREETRIALNOTAVAILABLE = 606;
const C_ACCOUNTEXISTSDIFFERENTEMAIL = 607;
const C_AVALARAIDENTITYAPIERROR = 608;
Expand All @@ -391,6 +393,7 @@ class ErrorCodeId
const C_LICENSEKEYNAMEALREADYEXISTSFORACCOUNT = 612;
const C_USERALREADYEXIST = 613;
const C_USERNOTFOUND = 614;
const C_USERMANAGEMENTEXCEPTION = 615;
const C_REFUNDTYPEANDPERCENTAGEMISMATCH = 701;
const C_INVALIDDOCUMENTTYPEFORREFUND = 702;
const C_REFUNDTYPEANDLINEMISMATCH = 703;
Expand Down Expand Up @@ -1235,6 +1238,7 @@ class NoticeCustomerType
const C_PWC = 6;
const C_HUDSONGROUP = 7;
const C_MRA = 8;
const C_NONE = 9;

}

Expand Down
4 changes: 4 additions & 0 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -5068,6 +5068,7 @@ public function refreshECommerceToken($companyId, $model) {
*
* ### Security Policies
*
* * This API requires openId bearer token for authentication
* * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
*
*
Expand All @@ -5091,6 +5092,7 @@ public function cycleSafeOptions($companyId, $model) {
*
* ### Security Policies
*
* * This API requires openId bearer token for authentication
* * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
*
*
Expand Down Expand Up @@ -5142,6 +5144,7 @@ public function legacyFilingCalendars($companyId, $filter=null, $top=null, $skip
*
* ### Security Policies
*
* * This API requires openId bearer token for authentication
* * This API requires one of the following user roles: AccountAdmin, CompanyAdmin, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPTester, FirmAdmin, FirmUser, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
*
*
Expand All @@ -5163,6 +5166,7 @@ public function getAccrualFilings($companyId, $filingReturnId) {
*
* ### Security Policies
*
* * This API requires openId bearer token for authentication
* * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
* * This API is available by invitation only.*Exempt security roles*: ComplianceRootUser, ComplianceAdmin, ComplianceUser, TechnicalSupportAdmin, TechnicalSupportUser, CompanyUser, AccountUser, CompanyAdmin, AccountAdmin.
* * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.
Expand Down
10 changes: 9 additions & 1 deletion src/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,7 @@ class TaxRuleModel
*/
public $entityUseCode;
/**
* @var string DEPRECATED - Date: , Version: , Message: Please use `taxTypeCode` Some tax type groups contain multiple different types of tax. To create a rule that affects only one type of tax within a tax type group, set this value to the code matching the specific tax type within that group. The custom tax rule will then only apply to taxes calculated for that specific type. For rules that affect all tax types, use the value `A` to match `All` tax types within that group. (See MatchingTaxType::* for a list of allowable values)
* @var string DEPRECATED - Date: 09/30/2021, Version: 21.9.0, Message: Please use `taxTypeCode` instead. Some tax type groups contain multiple different types of tax. To create a rule that affects only one type of tax within a tax type group, set this value to the code matching the specific tax type within that group. The custom tax rule will then only apply to taxes calculated for that specific type. For rules that affect all tax types, use the value `A` to match `All` tax types within that group. (See MatchingTaxType::* for a list of allowable values)
*/
public $taxTypeId;
/**
Expand Down Expand Up @@ -4461,6 +4461,14 @@ class DenormalizedJurisModel
* @var string The jurisdiction's city. This should exist on the TaxRegion, but in practice often doesn't.
*/
public $city;
/**
* @var boolean Is Acm flag
*/
public $isAcm;
/**
* @var boolean Is Sst flag
*/
public $isSst;
}
/**
* The tax region model.
Expand Down

0 comments on commit 3567dd5

Please sign in to comment.