Skip to content

Commit

Permalink
Merge pull request avadev#144 from avadev/21.7.1
Browse files Browse the repository at this point in the history
21.7.1 update
  • Loading branch information
shilpakhanal authored Aug 2, 2021
2 parents f32e408 + 8b6145b commit e0dd71d
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 2 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.6.0; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.7.1; {$this->machineName}"
];
} else {
$guzzleParams['headers'] = [
'Accept' => 'application/json',
'Authorization' => 'Bearer '.$this->auth[0],
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.6.0; {$this->machineName}"
'X-Avalara-Client' => "{$this->appName}; {$this->appVersion}; PhpRestClient; 21.7.1; {$this->machineName}"
];
}
// timeout for 1200s (20 min)
Expand Down
13 changes: 13 additions & 0 deletions src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ class TransactionAddressType
}


/**
*
*/
class TssAccountMigrationId
{ const C_BOTHWITHOUTROLLBACKREADFROMSQL = 0;
const C_BOTHWITHROLLBACKREADFROMTSS = 1;
const C_SQLONLY = 2;
const C_TSSONLY = 3;
const C_READONLY = 4;

}

/**
*
*/
Expand Down Expand Up @@ -1197,6 +1209,7 @@ class NoticeCustomerType
const C_TRUSTFILE = 5;
const C_PWC = 6;
const C_HUDSONGROUP = 7;
const C_MRA = 8;

}

Expand Down
42 changes: 42 additions & 0 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -3163,6 +3163,27 @@ public function getLoginVerifierByForm($form, $filter=null, $top=null, $skip=nul
return $this->restCall($path, 'GET', $guzzleParams);
}

/**
* List all market place locations.
*
* List all market place locations.
*
*
* @param string $filter A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).
* @param int $top If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.
* @param int $skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
* @param string $orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
* @return FetchResult
*/
public function listAllMarketplaceLocations($filter=null, $top=null, $skip=null, $orderBy=null) {
$path = "/api/v2/definitions/listallmarketplacelocations";
$guzzleParams = [
'query' => ['$filter' => $filter, '$top' => $top, '$skip' => $skip, '$orderBy' => $orderBy],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams);
}

/**
* Retrieve the full list of the AvaFile Forms available
*
Expand Down Expand Up @@ -5821,6 +5842,7 @@ public function listItemParameters($companyId, $itemId, $filter=null, $top=null,
*
* * Parameters
* * Classifications
* * Tags
*
* ### Security Policies
*
Expand Down Expand Up @@ -7971,6 +7993,26 @@ public function deleteSubscription($accountId, $id) {
return $this->restCall($path, 'DELETE', $guzzleParams);
}

/**
* Retrieve List of Accounts by Account Migration Status
*
* ### Security Policies
*
* * This API requires one of the following user roles: FirmAdmin, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.
*
*
* @param string $writeMode (See TssAccountMigrationId::* for a list of allowable values)
* @return AccountMigrationStatusModel
*/
public function listAccountsByTssWriteMode($writeMode) {
$path = "/api/v2/accounts/ListAccountsByTssWriteMode/{$writeMode}";
$guzzleParams = [
'query' => [],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams);
}

/**
* Reset a user's password programmatically
*
Expand Down
48 changes: 48 additions & 0 deletions src/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,32 @@ class ErrorDetail
*/
public $severity;
}
/**
* An AvaTax account.
*/
class AccountMigrationStatusModel
{
/**
* @var int The unique ID number assigned to this account.
*/
public $accountId;
/**
* @var string The name of this account.
*/
public $accountName;
/**
* @var string The date/time when this record was last modified.
*/
public $modifiedDate;
/**
* @var int The user ID of the user who last modified this record.
*/
public $modifiedUserId;
/**
* @var int The Tss Read Write Mode.
*/
public $accountMigrationStatusId;
}
/**
* Company Address Information
*/
Expand Down Expand Up @@ -6494,6 +6520,20 @@ class MarketplaceLocationModel
*/
public $modifiedDate;
}
/**
* Marketplace Location Output model
*/
class MarketplaceModel
{
/**
* @var string Marketplace Location Id
*/
public $marketplaceId;
/**
* @var string Marketplace Location
*/
public $marketplace;
}
/**
* Represents a tag for an item in your company's product catalog.
*/
Expand Down Expand Up @@ -8258,6 +8298,10 @@ class FilingReturnModel
* @var int The year of the filing period for this tax filing. The filing period represents the year and month of the last day of taxes being reported on this filing. For example, an annual tax filing for Jan-Dec 2015 would have a filing period of Dec 2015.
*/
public $year;
/**
* @var string The FilingTaskType for this return.
*/
public $type;
/**
* @var FilingAttachmentModel[] The attachments for this return.
*/
Expand Down Expand Up @@ -8606,6 +8650,10 @@ class MultiTaxFilingReturnModel
* @var string The end date of this return
*/
public $endPeriod;
/**
* @var string The FilingTaskType for this return.
*/
public $type;
/**
* @var FilingsTaxSummaryModel A summary of all taxes compbined for this period
*/
Expand Down

0 comments on commit e0dd71d

Please sign in to comment.