Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.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 : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/www/plugins/vmcalculation/avalara/classes/ |
Upload File : |
<?php
/**
* DocumentType.class.php
*/
/**
* The document type specifies the category of the document and affects how the document
* is treated after a tax calculation. Specified when constructing a {@link GetTaxRequest}.
*
* @author Avalara
* @copyright � 2004 - 2011 Avalara, Inc. All rights reserved.
* @package Tax
*/
if(!class_exists('Enum')) require (VMAVALARA_CLASS_PATH.DS.'Enum.class.php');
class DocumentType extends Enum
{
/**
* Sales Order, estimate or quote.
*
* @var DocumentType
*/
public static $SalesOrder = 'SalesOrder';
/**
* The document is a permanent invoice; document and tax calculation results are saved in the tax history.
*
* @var DocumentType
*/
public static $SalesInvoice = 'SalesInvoice';
/**
* Purchase order, estimate, or quote.
*
* @var DocumentType
*/
public static $PurchaseOrder = 'PurchaseOrder';
/**
* The document is a permanent invoice; document and tax calculation results are saved in the tax history.
*
* @var DocumentType
*/
public static $PurchaseInvoice = 'PurchaseInvoice';
/**
*Sales Return Order.
*
* @var DocumentType
*/
public static $ReturnOrder = 'ReturnOrder';
/**
* The document is a permanent sales return invoice; document and tax calculation results are saved in the tax history GetTaxResult will return with a DocStatus of Saved.
*
* @var DocumentType
*/
public static $ReturnInvoice = 'ReturnInvoice';
/**
* Inventory Transfer Order
*
* @var DocumentType
*/
public static $InventoryTransferOrder = 'InventoryTransferOrder';
/**
* Inventory Transfer Invoice
*
* @var DocumentType
*/
public static $InventoryTransferInvoice = 'InventoryTransferInvoice';
/**
* This will return all types of documents.
*
* @var DocumentType
*/
public static $Any = 'Any';
public static function Values()
{
return array(
DocumentType::$SalesOrder,
DocumentType::$SalesInvoice,
DocumentType::$PurchaseOrder,
DocumentType::$PurchaseInvoice,
DocumentType::$ReturnOrder,
DocumentType::$ReturnInvoice,
DocumentType::$InventoryTransferOrder,
DocumentType::$InventoryTransferInvoice,
DocumentType::$Any
);
}
// Unfortunate boiler plate due to polymorphism issues on static functions
public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
}
?>