<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: WAProto.proto

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.PaymentInfo</code>
 */
class PaymentInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Currency currencyDeprecated = 1;</code>
     */
    protected $currencyDeprecated = null;
    /**
     * Generated from protobuf field <code>optional uint64 amount1000 = 2;</code>
     */
    protected $amount1000 = null;
    /**
     * Generated from protobuf field <code>optional string receiverJid = 3;</code>
     */
    protected $receiverJid = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Status status = 4;</code>
     */
    protected $status = null;
    /**
     * Generated from protobuf field <code>optional uint64 transactionTimestamp = 5;</code>
     */
    protected $transactionTimestamp = null;
    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 6;</code>
     */
    protected $requestMessageKey = null;
    /**
     * Generated from protobuf field <code>optional uint64 expiryTimestamp = 7;</code>
     */
    protected $expiryTimestamp = null;
    /**
     * Generated from protobuf field <code>optional bool futureproofed = 8;</code>
     */
    protected $futureproofed = null;
    /**
     * Generated from protobuf field <code>optional string currency = 9;</code>
     */
    protected $currency = null;
    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.TxnStatus txnStatus = 10;</code>
     */
    protected $txnStatus = null;
    /**
     * Generated from protobuf field <code>optional bool useNoviFiatFormat = 11;</code>
     */
    protected $useNoviFiatFormat = null;
    /**
     * Generated from protobuf field <code>optional .proto.Money primaryAmount = 12;</code>
     */
    protected $primaryAmount = null;
    /**
     * Generated from protobuf field <code>optional .proto.Money exchangeAmount = 13;</code>
     */
    protected $exchangeAmount = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $currencyDeprecated
     *     @type int|string $amount1000
     *     @type string $receiverJid
     *     @type int $status
     *     @type int|string $transactionTimestamp
     *     @type \PhpWA\Protocol\Proto\MessageKey $requestMessageKey
     *     @type int|string $expiryTimestamp
     *     @type bool $futureproofed
     *     @type string $currency
     *     @type int $txnStatus
     *     @type bool $useNoviFiatFormat
     *     @type \PhpWA\Protocol\Proto\Money $primaryAmount
     *     @type \PhpWA\Protocol\Proto\Money $exchangeAmount
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Currency currencyDeprecated = 1;</code>
     * @return int
     */
    public function getCurrencyDeprecated()
    {
        return isset($this->currencyDeprecated) ? $this->currencyDeprecated : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Currency currencyDeprecated = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setCurrencyDeprecated($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\Currency::class);
        $this->currencyDeprecated = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 amount1000 = 2;</code>
     * @return int|string
     */
    public function getAmount1000()
    {
        return isset($this->amount1000) ? $this->amount1000 : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint64 amount1000 = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setAmount1000($var)
    {
        GPBUtil::checkUint64($var);
        $this->amount1000 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string receiverJid = 3;</code>
     * @return string
     */
    public function getReceiverJid()
    {
        return isset($this->receiverJid) ? $this->receiverJid : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string receiverJid = 3;</code>
     * @param string $var
     * @return $this
     */
    public function setReceiverJid($var)
    {
        GPBUtil::checkString($var, True);
        $this->receiverJid = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Status status = 4;</code>
     * @return int
     */
    public function getStatus()
    {
        return isset($this->status) ? $this->status : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.Status status = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\Status::class);
        $this->status = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 transactionTimestamp = 5;</code>
     * @return int|string
     */
    public function getTransactionTimestamp()
    {
        return isset($this->transactionTimestamp) ? $this->transactionTimestamp : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint64 transactionTimestamp = 5;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTransactionTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->transactionTimestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 6;</code>
     * @return \PhpWA\Protocol\Proto\MessageKey|null
     */
    public function getRequestMessageKey()
    {
        return $this->requestMessageKey;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.MessageKey requestMessageKey = 6;</code>
     * @param \PhpWA\Protocol\Proto\MessageKey $var
     * @return $this
     */
    public function setRequestMessageKey($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\MessageKey::class);
        $this->requestMessageKey = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 expiryTimestamp = 7;</code>
     * @return int|string
     */
    public function getExpiryTimestamp()
    {
        return isset($this->expiryTimestamp) ? $this->expiryTimestamp : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional uint64 expiryTimestamp = 7;</code>
     * @param int|string $var
     * @return $this
     */
    public function setExpiryTimestamp($var)
    {
        GPBUtil::checkUint64($var);
        $this->expiryTimestamp = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool futureproofed = 8;</code>
     * @return bool
     */
    public function getFutureproofed()
    {
        return isset($this->futureproofed) ? $this->futureproofed : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool futureproofed = 8;</code>
     * @param bool $var
     * @return $this
     */
    public function setFutureproofed($var)
    {
        GPBUtil::checkBool($var);
        $this->futureproofed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional string currency = 9;</code>
     * @return string
     */
    public function getCurrency()
    {
        return isset($this->currency) ? $this->currency : '';
    }

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

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

    /**
     * Generated from protobuf field <code>optional string currency = 9;</code>
     * @param string $var
     * @return $this
     */
    public function setCurrency($var)
    {
        GPBUtil::checkString($var, True);
        $this->currency = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.TxnStatus txnStatus = 10;</code>
     * @return int
     */
    public function getTxnStatus()
    {
        return isset($this->txnStatus) ? $this->txnStatus : 0;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.PaymentInfo.TxnStatus txnStatus = 10;</code>
     * @param int $var
     * @return $this
     */
    public function setTxnStatus($var)
    {
        GPBUtil::checkEnum($var, \PhpWA\Protocol\Proto\PaymentInfo\TxnStatus::class);
        $this->txnStatus = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bool useNoviFiatFormat = 11;</code>
     * @return bool
     */
    public function getUseNoviFiatFormat()
    {
        return isset($this->useNoviFiatFormat) ? $this->useNoviFiatFormat : false;
    }

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

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

    /**
     * Generated from protobuf field <code>optional bool useNoviFiatFormat = 11;</code>
     * @param bool $var
     * @return $this
     */
    public function setUseNoviFiatFormat($var)
    {
        GPBUtil::checkBool($var);
        $this->useNoviFiatFormat = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Money primaryAmount = 12;</code>
     * @return \PhpWA\Protocol\Proto\Money|null
     */
    public function getPrimaryAmount()
    {
        return $this->primaryAmount;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Money primaryAmount = 12;</code>
     * @param \PhpWA\Protocol\Proto\Money $var
     * @return $this
     */
    public function setPrimaryAmount($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Money::class);
        $this->primaryAmount = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional .proto.Money exchangeAmount = 13;</code>
     * @return \PhpWA\Protocol\Proto\Money|null
     */
    public function getExchangeAmount()
    {
        return $this->exchangeAmount;
    }

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

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

    /**
     * Generated from protobuf field <code>optional .proto.Money exchangeAmount = 13;</code>
     * @param \PhpWA\Protocol\Proto\Money $var
     * @return $this
     */
    public function setExchangeAmount($var)
    {
        GPBUtil::checkMessage($var, \PhpWA\Protocol\Proto\Money::class);
        $this->exchangeAmount = $var;

        return $this;
    }

}

