<?php

/**
 * Class InscriptionStatusResponse
 *
 * @category
 * @package Transbank\Patpass\PatpassComercio
 *
 */


namespace Transbank\Patpass\PatpassComercio;

use Transbank\Utils\Utils;

class InscriptionStatusResponse
{
    public $status;
    public $urlVoucher;

    public function __construct($json)
    {
        $status = Utils::returnValueIfExists($json, "authorized");
        $this->setStatus($status);
        $urlVoucher = Utils::returnValueIfExists($json, "voucherUrl");
        $this->setUrlVoucher($urlVoucher);
    }

    /**
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @param mixed $status
     * @return InscriptionStatusResponse
     */
    public function setStatus($status)
    {
        $this->status = $status;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getUrlVoucher()
    {
        return $this->urlVoucher;
    }

    /**
     * @param mixed $urlVoucher
     * @return InscriptionStatusResponse
     */
    public function setUrlVoucher($urlVoucher)
    {
        $this->urlVoucher = $urlVoucher;
        return $this;
    }

}
