<?php
 
 
 

namespace PhpWA\Protocol\Proto;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;




class PaymentInfo extends \Google\Protobuf\Internal\Message
{
    


    protected $currencyDeprecated = null;
    


    protected $amount1000 = null;
    


    protected $receiverJid = null;
    


    protected $status = null;
    


    protected $transactionTimestamp = null;
    


    protected $requestMessageKey = null;
    


    protected $expiryTimestamp = null;
    


    protected $futureproofed = null;
    


    protected $currency = null;
    


    protected $txnStatus = null;
    


    protected $useNoviFiatFormat = null;
    


    protected $primaryAmount = null;
    


    protected $exchangeAmount = null;

    




















    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    



    public function getCurrencyDeprecated()
    {
        return isset($this->currencyDeprecated) ? $this->currencyDeprecated : 0;
    }

    public function hasCurrencyDeprecated()
    {
        return isset($this->currencyDeprecated);
    }

    public function clearCurrencyDeprecated()
    {
        unset($this->currencyDeprecated);
    }

    




    public function setCurrencyDeprecated($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\Currency::class);
        $this->currencyDeprecated = $var;

        return $this;
    }

    



    public function getAmount1000()
    {
        return isset($this->amount1000) ? $this->amount1000 : 0;
    }

    public function hasAmount1000()
    {
        return isset($this->amount1000);
    }

    public function clearAmount1000()
    {
        unset($this->amount1000);
    }

    




    public function setAmount1000($var)
    {
        GPBUtil::checkUint64($var);
        $this->amount1000 = $var;

        return $this;
    }

    



    public function getReceiverJid()
    {
        return isset($this->receiverJid) ? $this->receiverJid : '';
    }

    public function hasReceiverJid()
    {
        return isset($this->receiverJid);
    }

    public function clearReceiverJid()
    {
        unset($this->receiverJid);
    }

    




    public function setReceiverJid($var)
    {
        GPBUtil::checkString($var, True);
        $this->receiverJid = $var;

        return $this;
    }

    



    public function getStatus()
    {
        return isset($this->status) ? $this->status : 0;
    }

    public function hasStatus()
    {
        return isset($this->status);
    }

    public function clearStatus()
    {
        unset($this->status);
    }

    




    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\Status::class);
        $this->status = $var;

        return $this;
    }

    



    public function getTransactionTimestamp()
    {
        return isset($this->transactionTimestamp) ? $this->transactionTimestamp : 0;
    }

    public function hasTransactionTimestamp()
    {
        return isset($this->transactionTimestamp);
    }

    public function clearTransactionTimestamp()
    {
        unset($this->transactionTimestamp);
    }

    




    public function setTransactionTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->transactionTimestamp = $var;

        return $this;
    }

    



    public function getRequestMessageKey()
    {
        return $this->requestMessageKey;
    }

    public function hasRequestMessageKey()
    {
        return isset($this->requestMessageKey);
    }

    public function clearRequestMessageKey()
    {
        unset($this->requestMessageKey);
    }

    




    public function setRequestMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->requestMessageKey = $var;

        return $this;
    }

    



    public function getExpiryTimestamp()
    {
        return isset($this->expiryTimestamp) ? $this->expiryTimestamp : 0;
    }

    public function hasExpiryTimestamp()
    {
        return isset($this->expiryTimestamp);
    }

    public function clearExpiryTimestamp()
    {
        unset($this->expiryTimestamp);
    }

    




    public function setExpiryTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->expiryTimestamp = $var;

        return $this;
    }

    



    public function getFutureproofed()
    {
        return isset($this->futureproofed) ? $this->futureproofed : false;
    }

    public function hasFutureproofed()
    {
        return isset($this->futureproofed);
    }

    public function clearFutureproofed()
    {
        unset($this->futureproofed);
    }

    




    public function setFutureproofed($var)
    {
        GPBUtil::checkBool($var);
        $this->futureproofed = $var;

        return $this;
    }

    



    public function getCurrency()
    {
        return isset($this->currency) ? $this->currency : '';
    }

    public function hasCurrency()
    {
        return isset($this->currency);
    }

    public function clearCurrency()
    {
        unset($this->currency);
    }

    




    public function setCurrency($var)
    {
        GPBUtil::checkString($var, True);
        $this->currency = $var;

        return $this;
    }

    



    public function getTxnStatus()
    {
        return isset($this->txnStatus) ? $this->txnStatus : 0;
    }

    public function hasTxnStatus()
    {
        return isset($this->txnStatus);
    }

    public function clearTxnStatus()
    {
        unset($this->txnStatus);
    }

    




    public function setTxnStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\TxnStatus::class);
        $this->txnStatus = $var;

        return $this;
    }

    



    public function getUseNoviFiatFormat()
    {
        return isset($this->useNoviFiatFormat) ? $this->useNoviFiatFormat : false;
    }

    public function hasUseNoviFiatFormat()
    {
        return isset($this->useNoviFiatFormat);
    }

    public function clearUseNoviFiatFormat()
    {
        unset($this->useNoviFiatFormat);
    }

    




    public function setUseNoviFiatFormat($var)
    {
        GPBUtil::checkBool($var);
        $this->useNoviFiatFormat = $var;

        return $this;
    }

    



    public function getPrimaryAmount()
    {
        return $this->primaryAmount;
    }

    public function hasPrimaryAmount()
    {
        return isset($this->primaryAmount);
    }

    public function clearPrimaryAmount()
    {
        unset($this->primaryAmount);
    }

    




    public function setPrimaryAmount($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Money::class);
        $this->primaryAmount = $var;

        return $this;
    }

    



    public function getExchangeAmount()
    {
        return $this->exchangeAmount;
    }

    public function hasExchangeAmount()
    {
        return isset($this->exchangeAmount);
    }

    public function clearExchangeAmount()
    {
        unset($this->exchangeAmount);
    }

    




    public function setExchangeAmount($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Money::class);
        $this->exchangeAmount = $var;

        return $this;
    }

}

