diff --git a/src/Client.php b/src/Client.php index 99a13f9..ef5f745 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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) diff --git a/src/Constants.php b/src/Constants.php index efb7d0d..8a98751 100644 --- a/src/Constants.php +++ b/src/Constants.php @@ -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; + +} + /** * */ @@ -1197,6 +1209,7 @@ class NoticeCustomerType const C_TRUSTFILE = 5; const C_PWC = 6; const C_HUDSONGROUP = 7; + const C_MRA = 8; } diff --git a/src/Methods.php b/src/Methods.php index e0cd696..f93fc6a 100644 --- a/src/Methods.php +++ b/src/Methods.php @@ -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 * @@ -5821,6 +5842,7 @@ public function listItemParameters($companyId, $itemId, $filter=null, $top=null, * * * Parameters * * Classifications + * * Tags * * ### Security Policies * @@ -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 * diff --git a/src/Models.php b/src/Models.php index 8090456..defa799 100644 --- a/src/Models.php +++ b/src/Models.php @@ -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 */ @@ -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. */ @@ -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. */ @@ -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 */