<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `Company.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//


namespace
{
    require_once 'Config.php';
    require_once 'Glacier2/Session.php';
    require_once 'Common.php';
    require_once 'Destroyable.php';
    require_once 'AccessException.php';
    require_once 'Billing/CurrencyAmount.php';
    require_once 'Billing/Service.php';
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_CompanyBalance;
    class CompanyBalance
    {
        const Their = 0;
        const Our = 1;
        const Mutual = 2;
    }

    $Smartswitch_Peer__t_CompanyBalance = IcePHP_defineEnum('::Smartswitch::Peer::CompanyBalance', array('Their', 0, 'Our', 1, 'Mutual', 2));
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_ApplyToBalance;
    class ApplyToBalance
    {
        const Their = 0;
        const Our = 1;
    }

    $Smartswitch_Peer__t_ApplyToBalance = IcePHP_defineEnum('::Smartswitch::Peer::ApplyToBalance', array('Their', 0, 'Our', 1));
}

namespace Smartswitch\Peer
{
    global $Smartswitch_Peer__t_Company;
    global $Smartswitch_Peer__t_CompanyPrx;

    class CompanyPrxHelper
    {
        public static function checkedCast($proxy, $facetOrContext=null, $context=null)
        {
            return $proxy->ice_checkedCast('::Smartswitch::Peer::Company', $facetOrContext, $context);
        }

        public static function uncheckedCast($proxy, $facet=null)
        {
            return $proxy->ice_uncheckedCast('::Smartswitch::Peer::Company', $facet);
        }

        public static function ice_staticId()
        {
            return '::Smartswitch::Peer::Company';
        }
    }
    $Smartswitch_Peer__t_Company = IcePHP_defineClass('::Smartswitch::Peer::Company', '\\Smartswitch\\Peer\\Company', -1, false, true, null, null);

    global $Ice__t_ObjectPrx;
    $Smartswitch_Peer__t_CompanyPrx = IcePHP_defineProxy('::Smartswitch::Peer::Company', $Ice__t_ObjectPrx, array($Smartswitch__t_DestroyablePrx));

    global $IcePHP__t_long;
    global $IcePHP__t_string;
    global $IcePHP__t_bool;
    global $Smartswitch_Peer__t_CompanyBalance;
    global $Smartswitch_Billing__t_CurrencyAmountSequence;
    global $Smartswitch_Peer__t_ApplyToBalance;
    global $Smartswitch_Billing__t_ServicePrx;
    global $Smartswitch_Billing__t_CurrencyAmount;
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'getId', 2, 2, 0, null, null, array($IcePHP__t_long), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'getName', 2, 2, 0, null, null, array($IcePHP__t_string), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'setActivated', 0, 0, 0, array(array($IcePHP__t_bool)), null, null, null);
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'isActivated', 0, 0, 0, null, null, array($IcePHP__t_bool), null);
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'getBalance', 0, 0, 0, array(array($Smartswitch_Peer__t_CompanyBalance)), null, array($Smartswitch_Billing__t_CurrencyAmountSequence), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'refill', 0, 0, 0, array(array($Smartswitch_Peer__t_ApplyToBalance), array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch_Billing__t_CurrencyAmount)), null, array($IcePHP__t_bool), array($Smartswitch__t_AccessException));
    IcePHP_defineOperation($Smartswitch_Peer__t_CompanyPrx, 'writeOff', 0, 0, 0, array(array($Smartswitch_Peer__t_ApplyToBalance), array($Smartswitch_Billing__t_ServicePrx), array($Smartswitch_Billing__t_CurrencyAmount)), null, array($IcePHP__t_bool), array($Smartswitch__t_AccessException));
}
?>
