<?php

namespace OfficeBrain\CustomBundle\ServiceGroupBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * RedeemCoupon
 *
 * @ORM\Table("tbl_redeem_coupon")
 * @ORM\Entity(repositoryClass="OfficeBrain\CustomBundle\ServiceGroupBundle\Entity\RedeemCouponRepository")
 */
class RedeemCoupon
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="coupon_id", type="integer")
     */
    private $couponId;

    /**
     * @var integer
     *
     * @ORM\Column(name="user_id", type="integer")
     */
    private $userId;

    /**
     * @var integer
     *
     * @ORM\Column(name="order_id", type="integer", nullable=true)
     */
    private $orderId;

    /**
     * @var integer
     *
     * @ORM\Column(name="order_item_line_id", type="integer", nullable=true)
     */
    private $orderItemLineId;

    /**
     * @var integer
     *
     * @ORM\Column(name="pre_add_to_cart_id", type="integer")
     */
    private $preAddToCartId;

    /**
     * @var string
     *
     * @ORM\Column(name="unit_price", type="decimal", precision=11, scale=2, options={"default" = 0.00})
     */
    private $unitPrice;

    /**
     * @var string
     *
     * @ORM\Column(name="discount_unit_price", type="decimal", precision=11, scale=2, options={"default" = 0.00})
     */
    private $discountUnitPrice = '0.00';

    /**
     * @var integer
     *
     * @ORM\Column(name="item_qty_total", type="integer")
     */
    private $itemQtyTotal;

    /**
     * @var string
     *
     * @ORM\Column(name="discount_amount", type="decimal",precision=11, scale=2, options={"default" = 0.00})
     */
    private $discountAmount = '0.00';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime")
     */
    private $createdAt;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set couponId
     *
     * @param integer $couponId
     *
     * @return RedeemCoupon
     */
    public function setCouponId($couponId)
    {
    	$this->couponId = $couponId;
    
    	return $this;
    }
    
    /**
     * Get couponId
     *
     * @return integer
     */
    public function getCouponId()
    {
    	return $this->couponId;
    }
    
    /**
     * Set userId
     *
     * @param integer $userId
     *
     * @return RedeemCoupon
     */
    public function setUserId($userId)
    {
    	$this->userId = $userId;
    
    	return $this;
    }
    
    /**
     * Get userId
     *
     * @return integer
     */
    public function getUserId()
    {
    	return $this->userId;
    }

    /**
     * Set orderId
     *
     * @param integer $orderId
     *
     * @return RedeemCoupon
     */
    public function setOrderId($orderId)
    {
        $this->orderId = $orderId;

        return $this;
    }

    /**
     * Get orderId
     *
     * @return integer
     */
    public function getOrderId()
    {
        return $this->orderId;
    }

    /**
     * Set orderItemLineId
     *
     * @param integer $orderItemLineId
     *
     * @return RedeemCoupon
     */
    public function setOrderItemLineId($orderItemLineId)
    {
        $this->orderItemLineId = $orderItemLineId;

        return $this;
    }

    /**
     * Get orderItemLineId
     *
     * @return integer
     */
    public function getOrderItemLineId()
    {
        return $this->orderItemLineId;
    }

    /**
     * Set preAddToCartId
     *
     * @param integer $preAddToCartId
     *
     * @return RedeemCoupon
     */
    public function setPreAddToCartId($preAddToCartId)
    {
        $this->preAddToCartId = $preAddToCartId;

        return $this;
    }

    /**
     * Get preAddToCartId
     *
     * @return integer
     */
    public function getPreAddToCartId()
    {
        return $this->preAddToCartId;
    }

    /**
     * Set unitPrice
     *
     * @param string $unitPrice
     *
     * @return RedeemCoupon
     */
    public function setUnitPrice($unitPrice)
    {
        $this->unitPrice = $unitPrice;

        return $this;
    }

    /**
     * Get unitPrice
     *
     * @return string
     */
    public function getUnitPrice()
    {
        return $this->unitPrice;
    }

    /**
     * Set discountUnitPrice
     *
     * @param string $discountUnitPrice
     *
     * @return RedeemCoupon
     */
    public function setDiscountUnitPrice($discountUnitPrice)
    {
        $this->discountUnitPrice = $discountUnitPrice;

        return $this;
    }

    /**
     * Get discountUnitPrice
     *
     * @return string
     */
    public function getDiscountUnitPrice()
    {
        return $this->discountUnitPrice;
    }

    /**
     * Set itemQtyTotal
     *
     * @param integer $itemQtyTotal
     *
     * @return RedeemCoupon
     */
    public function setItemQtyTotal($itemQtyTotal)
    {
        $this->itemQtyTotal = $itemQtyTotal;

        return $this;
    }

    /**
     * Get itemQtyTotal
     *
     * @return integer
     */
    public function getItemQtyTotal()
    {
        return $this->itemQtyTotal;
    }

    /**
     * Set discountAmount
     *
     * @param string $discountAmount
     *
     * @return RedeemCoupon
     */
    public function setDiscountAmount($discountAmount)
    {
        $this->discountAmount = $discountAmount;

        return $this;
    }

    /**
     * Get discountAmount
     *
     * @return string
     */
    public function getDiscountAmount()
    {
        return $this->discountAmount;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     *
     * @return RedeemCoupon
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }
}
