Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for 24.8.0 #223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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.6.3');
define('AVATAX_SDK_VERSION', '24.8.0');

/*****************************************************************************
* *
Expand Down
111 changes: 111 additions & 0 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -5503,6 +5503,88 @@ public function getDcvById($domainControlVerificationId) {
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Delete AFC event notifications.
*
* ### Security Policies
*
* * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
* Swagger Name: AvaTaxClient
*
* @param boolean $isDlq Specify `true` to delete event notifications from the dead letter queue; otherwise, specify `false`.
* @param EventDeleteMessageModel $model Details of the event you want to delete.
* @return \stdClass
*/
public function deleteAfcEventNotifications($isDlq, $model) {
$path = "/api/v2/event-notifications/afc";
$guzzleParams = [
'query' => ['isDlq' => null === $isDlq ? null : json_encode($isDlq)],
'body' => json_encode($model)
];
return $this->restCall($path, 'DELETE', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Delete company event notifications
*
* ### Security Policies
*
* * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
* Swagger Name: AvaTaxClient
*
* @param int $companyId The unique ID number of the company that recorded these event notifications.
* @param EventDeleteMessageModel $model Details of the event you want to delete.
* @return \stdClass
*/
public function deleteEventNotifications($companyId, $model) {
$path = "/api/v2/event-notifications/companies/{$companyId}";
$guzzleParams = [
'query' => [],
'body' => json_encode($model)
];
return $this->restCall($path, 'DELETE', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Retrieve company event notifications.
*
* ### Security Policies
*
* * This API depends on the following active services:*Required* (all): ECMPro, ECMPremium.
* Swagger Name: AvaTaxClient
*
* @param int $companyId The unique ID number of the company that recorded these event notifications.
* @return \stdClass
*/
public function getEventNotifications($companyId) {
$path = "/api/v2/event-notifications/companies/{$companyId}";
$guzzleParams = [
'query' => [],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Retrieve AFC event notifications
*
* ### Security Policies
*
* * This API depends on the following active services:*Required* (all): ECMPremiumComms, ECMProComms.
* Swagger Name: AvaTaxClient
*
* @param boolean $isDlq Specify `true` to retrieve event notifications from the dead letter queue; otherwise, specify `false`.
* @return \stdClass
*/
public function listAfcEventNotifications($isDlq) {
$path = "/api/v2/event-notifications/afc";
$guzzleParams = [
'query' => ['isDlq' => null === $isDlq ? null : json_encode($isDlq)],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Create a new eCommerce token.
*
Expand Down Expand Up @@ -6696,6 +6778,35 @@ public function listItemsByCompany($companyId, $filter=null, $include=null, $top
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Retrieve the parameters by companyId and itemId.
*
* Returns the list of parameters based on the company's service types and the item code.
* Ignores nexus if a service type is configured in the 'IgnoreNexusForServiceTypes' configuration section.
* Ignores nexus for the AvaAlcohol service type.
*
* ### Security Policies
*
* * This API requires one of the following user roles: AccountAdmin, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
* Swagger Name: AvaTaxClient
*
* @param int $companyId Company Identifier.
* @param int $itemId Item Identifier.
* @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/).<br />*Not filterable:* serviceTypes, regularExpression, attributeSubType, values
* @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 \stdClass
*/
public function listRecommendedParameterByCompanyIdAndItemId($companyId, $itemId, $filter=null, $top=null, $skip=null, $orderBy=null) {
$path = "/api/v2/definitions/companies/{$companyId}/items/{$itemId}/parameters";
$guzzleParams = [
'query' => ['$filter' => $filter, '$top' => $top, '$skip' => $skip, '$orderBy' => $orderBy],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
}

/**
* Retrieve all items
*
Expand Down
Loading