HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/confeduphaar/backip-old-files/plugins/vmcalculation/avalara/classes/ServiceMode.class.php
<?php
/**
 * ServiceMode.class.php
 */
 
/**
 * Specifies the ServiceMode.
 *
 * @see GetTaxRequest, GetTaxHistoryRequest
 * 
 * This is only supported by AvaLocal servers. It provides the ability to controls whether tax is calculated locally or remotely when using an AvaLocal server.
 * The default is Automatic which calculates locally unless remote is necessary for non-local addresses
 * 
 * @author    Avalara
 * @copyright � 2004 - 2011 Avalara, Inc.  All rights reserved.
 * @package   Tax 
 */

class ServiceMode extends Enum
{
     /**
     * Automated handling by local and/or remote server.
     */
    public static $Automatic = "Automatic";


    /**
     * AvaLocal server only. Lines requiring remote will not be calculated.
     */
    public static $Local = "Local";

    /**
     * All lines are calculated by AvaTax remote server.
     */
    public static $Remote = "Remote";
    
    public static function Values()
	{
		return array(
			ServiceMode::$Automatic,
			ServiceMode::$Local,
			ServiceMode::$Remote			
		);
	}
	
    // Unfortunate boiler plate due to polymorphism issues on static functions
    public static function Validate($value) { self::__Validate($value,self::Values(),__CLASS__); }
}
?>