AAAAhome/academiac/www/plugins/vmcalculation/avalara/classes/CancelTaxRequest.class.php000060400000003333151373123520024625 0ustar00 * 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. *

* * @see CancelTaxResult, DocumentType * * @author Avalara * @copyright � 2004 - 2011 Avalara, Inc. All rights reserved. * @package Tax */ if(!class_exists('TaxRequest')) require (VMAVALARA_CLASS_PATH.DS.'TaxRequest.class.php'); class CancelTaxRequest extends TaxRequest { private $CancelCode; //Unspecified or PostFailed or DocDeleted or DocVoided or AdjustmentCancelled public function __construct() { if(!class_exists('DocumentType')) require (VMAVALARA_CLASS_PATH.DS.'DocumentType.class.php'); if(!class_exists('CancelCode')) require (VMAVALARA_CLASS_PATH.DS.'CancelCode.class.php'); $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; } } ?>