| Server IP : 87.98.231.4 / Your IP : 216.73.217.37 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/plugins/vmcalculation/avalara/classes/ |
Upload File : |
<?php
/**
* CancelTaxRequest.class.php
*/
/**
* Data to pass to CancelTax indicating
* the document that should be cancelled and the reason for the operation.
* <p>
* A document can be indicated solely by the DocId if it is known.
* Otherwise the request must specify all of CompanyCode,
* DocCode, and
* DocType in order to uniquely identify the document.
* </p>
*
* @see CancelTaxResult, DocumentType
*
* @author Avalara
* @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
* @package Tax
*/
class CancelTaxRequest extends TaxRequest
{
private $CancelCode; //Unspecified or PostFailed or DocDeleted or DocVoided or AdjustmentCancelled
public function __construct()
{
$this->DocType = DocumentType::$SalesInvoice; // this is right Document
$this->CancelCode = CancelCode::$Unspecified;
}
/**
* A code indicating the reason the document is getting canceled.
*
* @return string
* @see CancelCode
*/
public function getCancelCode() { return $this->CancelCode; }
/**
* A code indicating the reason the document is getting canceled.
*
* @var string
* @see CancelCode
*/
public function setCancelCode($value) { CancelCode::Validate($value); $this->CancelCode = $value; return $this; }
}
?>