Skip to content

Commit

Permalink
Merge pull request #230 from avadev/24.12.0
Browse files Browse the repository at this point in the history
Update for 24.12.0
  • Loading branch information
svc-developer authored Dec 18, 2024
2 parents ad4e496 + e860d64 commit 34cd93e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
9 changes: 8 additions & 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.11.2');
define('AVATAX_SDK_VERSION', '24.12.0');

/*****************************************************************************
* *
Expand Down Expand Up @@ -985,6 +985,7 @@ class ErrorCodeId
const C_TOOMANYITEMIDSINTAXCODECLASSIFICATIONREQUEST = 1742;
const C_INVALIDPRODUCTCODELENGTH = 1743;
const C_INVALIDPRODUCTCODEFORMAT = 1744;
const C_INVALIDCOUNTRYASSIGNMENT = 1745;

/**
* SendSales API errors
Expand Down Expand Up @@ -1175,6 +1176,12 @@ class ErrorCodeId
* Occurs when multiple entries for system code and country code exists.
*/
const C_DUPLICATESYSTEMANDCOUNTRYFORITEM = 3008;
const C_INVALIDHSCODECLASSIFICATIONSTATUSOVERRIDE = 3009;

/**
* Occurs when the field name provided in the request isn't valid.
*/
const C_INVALIDFIELD = 3010;

/**
* Avalara Gateway errors:
Expand Down
8 changes: 5 additions & 3 deletions src/Methods.php
Original file line number Diff line number Diff line change
Expand Up @@ -5994,13 +5994,15 @@ public function updateFirmClientLinkage($model) {
*
* @param int $id The unique ID number of this funding request
* @param string $businessUnit The company's business unit (See POABusinessUnit::* for a list of allowable values)
* @param string $subscriptionType The company's subscription type (See POASubscriptionType::* for a list of allowable values)
* @param string $subscriptionType The company's subscription type (See POASubscriptionType::* for a list of allowable values)
* @param string $currency Currency
* @param string $agreementType Agreement Type
* @return \stdClass
*/
public function activateFundingRequest($id, $businessUnit=null, $subscriptionType=null) {
public function activateFundingRequest($id, $businessUnit=null, $subscriptionType=null, $currency=null, $agreementType=null) {
$path = "/api/v2/fundingrequests/{$id}/widget";
$guzzleParams = [
'query' => ['businessUnit' => $businessUnit, 'subscriptionType' => $subscriptionType],
'query' => ['businessUnit' => $businessUnit, 'subscriptionType' => $subscriptionType, 'currency' => $currency, 'agreementType' => $agreementType],
'body' => null
];
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
Expand Down
12 changes: 12 additions & 0 deletions src/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -6539,6 +6539,10 @@ class FilingReturnModel
* @var string The unique code of the form.
*/
public $formCode;
/**
* @var string The unique code of the form, prefixed by the country code.
*/
public $taxFormCode;
/**
* @var string A description for the return.
*/
Expand Down Expand Up @@ -6798,6 +6802,10 @@ class FilingReturnModelBasic
* @var string The unique code of the form.
*/
public $formCode;
/**
* @var string The unique code of the form, prefixed by the country code.
*/
public $taxFormCode;
/**
* @var string A description for the return.
*/
Expand Down Expand Up @@ -10196,6 +10204,10 @@ class MultiTaxFilingReturnModel
* @var string The unique code of the form.
*/
public $formCode;
/**
* @var string The unique code of the form, prefixed by the country code.
*/
public $taxFormCode;
/**
* @var string A description for the return.
*/
Expand Down

0 comments on commit 34cd93e

Please sign in to comment.