<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Pricinig
 *
 * @author Kunal Mestri <kunal@laurus-it.com>
 */
class Pricing {

    private $pricingId;
    private $userId;
    private $dataStorage;
    private $monthDur;
    private $requestedDate;
    private $paymentId;
    private $paymentRequestId;
    private $pricingValue;
    private $bilingTransaction;

    public function getPaymentId() {
        return $this->paymentId;
    }

    public function setPaymentId($paymentId) {
        $this->paymentId = $paymentId;
    }

    public function getPaymentRequestId() {
        return $this->paymentRequestId;
    }

    public function setPaymentRequestId($paymentRequestId) {
        $this->paymentRequestId = $paymentRequestId;
    }

    public function getPricingId() {
        return $this->pricingId;
    }

    public function setPricingId($pricingId) {
        $this->pricingId = $pricingId;
    }

    public function getUserId() {
        return $this->userId;
    }

    public function setUserId($userId) {
        $this->userId = $userId;
    }

    public function getDataStorage() {
        return $this->dataStorage;
    }

    public function setDataStorage($dataStorage) {
        $this->dataStorage = $dataStorage;
    }

    public function getMonthDur() {
        return $this->monthDur;
    }

    public function setMonthDur($monthDur) {
        $this->monthDur = $monthDur;
    }

    public function getRequestedDate() {
        return $this->requestedDate;
    }

    public function setRequestedDate($requestedDate) {
        $this->requestedDate = $requestedDate;
    }

    public function getPricingValue() {
        return $this->pricingValue;
    }

    public function setPricingValue($pricingValue) {
        $this->pricingValue = $pricingValue;
    }

    public function getBilingTransaction() {
        return $this->bilingTransaction;
    }

    public function setBilingTransaction($bilingTransaction) {
        $this->bilingTransaction = $bilingTransaction;
    }

    public function toJson() {
        $map = new Map();
        if ($this->getPricingId() != null) {
            $map->put("pricingId", $this->getPricingId());
        }
        if ($this->getDataStorage() != null) {
            $map->put("dataStorage", $this->getDataStorage());
        }
        if ($this->getMonthDur() != null) {
            $map->put("monthDur", $this->getMonthDur());
        }
        if ($this->getPaymentId() != null) {
            $map->put("paymentId", $this->getPaymentId());
        }
        if ($this->getPaymentRequestId() != null) {
            $map->put("paymentRequestId", $this->getPaymentRequestId());
        }
        if ($this->getPricingValue() != null) {
            $map->put("pricingValue", $this->getPricingValue());
        }
        if ($this->getRequestedDate() != null) {
            $map->put("pricingdate", $this->getRequestedDate());
        }
        if ($this->getBilingTransaction() != null) {
            $map->put("bilingTransaction", $this->getBilingTransaction());
        }
        return $map->toJson();
    }

}

?>
