Skip to content

Commit 75fe207

Browse files
Merge pull request #233 from avadev/25.2.2
Update for 25.2.2
2 parents 6f7c185 + d7f8419 commit 75fe207

File tree

3 files changed

+68
-5
lines changed

3 files changed

+68
-5
lines changed

Diff for: src/Constants.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace Avalara;
33
use GuzzleHttp\Client;
44

5-
define('AVATAX_SDK_VERSION', '25.1.0');
5+
define('AVATAX_SDK_VERSION', '25.2.2');
66

77
/*****************************************************************************
88
* *

Diff for: src/Methods.php

+62-3
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,7 @@ public function listCustomersForCertificate($companyId, $id, $include=null) {
14611461
*
14621462
* @param int $companyId The ID number of the company to search
14631463
* @param string $include OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate
1464-
* @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:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
1464+
* @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:* exemptionNumber, ecmsId, ecmsStatus, pdf, pages
14651465
* @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.
14661466
* @param int $skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
14671467
* @param string $orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3072,6 +3072,35 @@ public function linkShipToCustomersToBillCustomer($companyId, $code, $model)
30723072
return $this->restCall($path, 'POST', $guzzleParams, AVATAX_SDK_VERSION );
30733073
}
30743074

3075+
/**
3076+
* Retrieves a list of active certificates for a specified customer within a company.
3077+
*
3078+
* This API is intended to identify whether a customer has any active certificates.
3079+
*
3080+
* Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
3081+
* Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
3082+
* certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption
3083+
* certificate storage for this company, call `RequestCertificateSetup`.
3084+
*
3085+
* ### Security Policies
3086+
*
3087+
* * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
3088+
* * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
3089+
* Swagger Name: AvaTaxClient
3090+
*
3091+
* @param int $companyId The unique ID number of the company that recorded this customer
3092+
* @param string $customerCode The unique code representing this customer
3093+
* @return \stdClass
3094+
*/
3095+
public function listActiveCertificatesForCustomer($companyId, $customerCode) {
3096+
$path = "/api/v2/companies/{$companyId}/customers/{$customerCode}/certificates/active";
3097+
$guzzleParams = [
3098+
'query' => [],
3099+
'body' => null
3100+
];
3101+
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
3102+
}
3103+
30753104
/**
30763105
* Retrieve a customer's attributes
30773106
*
@@ -3135,7 +3164,7 @@ public function listAttributesForCustomer($companyId, $customerCode) {
31353164
* @param int $companyId The unique ID number of the company that recorded this customer
31363165
* @param string $customerCode The unique code representing this customer
31373166
* @param string $include OPTIONAL: A comma separated list of special fetch options. You can specify one or more of the following: * customers - Retrieves the list of customers linked to the certificate. * po_numbers - Retrieves all PO numbers tied to the certificate. * attributes - Retrieves all attributes applied to the certificate. * histories - Retrieves the certificate update history * jobs - Retrieves the jobs for this certificate * logs - Retrieves the certificate log * invalid_reasons - Retrieves invalid reasons for this certificate if the certificate is invalid * custom_fields - Retrieves custom fields set for this certificate
3138-
* @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:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
3167+
* @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:* exemptionNumber, ecmsId, ecmsStatus, pdf, pages
31393168
* @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.
31403169
* @param int $skip If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets.
31413170
* @param string $orderBy A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
@@ -3150,6 +3179,36 @@ public function listCertificatesForCustomer($companyId, $customerCode, $include=
31503179
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
31513180
}
31523181

3182+
/**
3183+
* Retrieves a list of inactive certificates for a specified customer within a company.
3184+
*
3185+
* This API is used to retrieve inactive certificates for a customer. Inactive certificates may include expired,
3186+
* revoked, or otherwise non-compliant certificates.
3187+
*
3188+
* Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage.
3189+
* Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption
3190+
* certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption
3191+
* certificate storage for this company, call `RequestCertificateSetup`.
3192+
*
3193+
* ### Security Policies
3194+
*
3195+
* * This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, BatchServiceAdmin, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
3196+
* * This API depends on the following active services:*Required* (all): AvaTaxPro, ECMEssentials, ECMPro, ECMPremium, VEMPro, VEMPremium, ECMProComms, ECMPremiumComms.
3197+
* Swagger Name: AvaTaxClient
3198+
*
3199+
* @param int $companyId The unique ID number of the company that recorded this customer
3200+
* @param string $customerCode The unique code representing this customer
3201+
* @return \stdClass
3202+
*/
3203+
public function listInActiveCertificatesForCustomer($companyId, $customerCode) {
3204+
$path = "/api/v2/companies/{$companyId}/customers/{$customerCode}/certificates/inactive";
3205+
$guzzleParams = [
3206+
'query' => [],
3207+
'body' => null
3208+
];
3209+
return $this->restCall($path, 'GET', $guzzleParams, AVATAX_SDK_VERSION );
3210+
}
3211+
31533212
/**
31543213
* List valid certificates for a location
31553214
*
@@ -9569,7 +9628,7 @@ public function getReport($id) {
95699628
* Reports are run as asynchronous report tasks on the server. When complete, the report file will be available for download
95709629
* for up to 30 days after completion. To run an asynchronous report, you should follow these steps:
95719630
*
9572-
* * Begin a report by calling the report's Initiate API. There is a separate initiate API call for each report type.
9631+
* * Begin a report by calling the report's Initiate API.
95739632
* * In the result of the Initiate API, you receive back a report's `id` value.
95749633
* * Check the status of a report by calling `GetReport` and passing in the report's `id` value.
95759634
* * When a report's status is `Completed`, call `DownloadReport` to retrieve the file.

Diff for: src/Models.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ class CertificateModel
19301930
*/
19311931
public $exemptionReason;
19321932
/**
1933-
* @var string The status of the certificate.
1933+
* @var string The status of the certificate. Possible values for status COMPLETE,PENDING,PENDING-FUTURE,PENDING-MULTI,PENDING-SINGLE,REVOKED
19341934
*/
19351935
public $status;
19361936
/**
@@ -10461,6 +10461,10 @@ class MultiTaxFilingReturnModel
1046110461
* @var string The three-character filing calendar currency code for this return. For example if country is 'US' then currency is 'USD'. Similarly, if country is 'CA' then currency is 'CAD', etc.
1046210462
*/
1046310463
public $filingCalendarCurrencyCode;
10464+
/**
10465+
* @var boolean Can the return be unlocked or not.
10466+
*/
10467+
public $canUnlock;
1046410468
/**
1046510469
* @var FilingsTaxSummaryModel
1046610470
*/

0 commit comments

Comments
 (0)