src/AppBundle/MainBundle/Entity/Orders_Monthly.php line 1442

Open in your IDE?
  1. <?php
  2. namespace App\AppBundle\MainBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use JsonSerializable;
  7. use DateTime;
  8. /**
  9.  * AddOns
  10.  *
  11.  * @ORM\Entity(repositoryClass="App\AppBundle\MainBundle\Repository\Orders_MonthlyRepository")
  12.  * @ORM\Table(name="orders_monthly")
  13.  * @ORM\HasLifecycleCallbacks()
  14.  */
  15. class Orders_Monthly implements JsonSerializable
  16. {
  17.     /**
  18.      * @ORM\Column(type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var Orders
  25.      * @ORM\ManyToOne(targetEntity="Orders", inversedBy="ordersMonthly")
  26.      * @ORM\JoinColumn(name="order_id", referencedColumnName="id")
  27.      */
  28.     private $order;
  29.     /**
  30.      * @var PromoCodes
  31.      * @ORM\ManyToOne(targetEntity="PromoCodes")
  32.      * @ORM\JoinColumn(name="promo_code_id", referencedColumnName="id", nullable=true)
  33.      */
  34.     private $promo_code;
  35.     /**
  36.      * @var PS_Add_Spot
  37.      * @ORM\ManyToOne(targetEntity="PS_Add_Spot")
  38.      * @ORM\JoinColumn(name="add_spot_id", referencedColumnName="id")
  39.      */
  40.     private $add_spot;
  41.     /**
  42.      * @var Orders_Suppliers_Transfer
  43.      * @ORM\OneToOne(targetEntity="Orders_Suppliers_Transfer", mappedBy="order_monthly")
  44.      */
  45.     private $order_supplier_transfer;
  46.     /**
  47.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  48.      * @Assert\NotBlank()
  49.      */
  50.     private $is_completed;
  51.     /**
  52.      * @var DateTime
  53.      * @ORM\Column(type="datetime", nullable=false)
  54.      * @Assert\NotBlank()
  55.      */
  56.     private $start_date;
  57.     /**
  58.      * @var DateTime
  59.      * @ORM\Column(type="datetime", nullable=false)
  60.      * @Assert\NotBlank()
  61.      */
  62.     private $end_date;
  63.     /**
  64.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  65.      * @Assert\NotBlank()
  66.      */
  67.     private $is_order_paid;
  68.     /**
  69.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  70.      * @Assert\NotBlank()
  71.      */
  72.     private $is_email_sent;
  73.     /**
  74.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  75.      * @Assert\NotBlank()
  76.      */
  77.     private $is_sms_sent;
  78.     /**
  79.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  80.      * @Assert\NotBlank()
  81.      */
  82.     private $is_notification_sent;
  83.     /**
  84.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 1})
  85.      * @Assert\NotBlank()
  86.      */
  87.     private $active;
  88.     /**
  89.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  90.      * @Assert\NotBlank()
  91.      */
  92.     private $is_completion_email_sent;
  93.     /**
  94.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  95.      * @Assert\NotBlank()
  96.      */
  97.     private $is_completion_sms_sent;
  98.     /**
  99.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  100.      * @Assert\NotBlank()
  101.      */
  102.     private $is_completion_notification_sent;
  103.     /**
  104.      * @var WP_Payment
  105.      * @ORM\ManyToOne(targetEntity="WP_Payment")
  106.      * @ORM\JoinColumn(name="wp_payment_id", referencedColumnName="id", nullable=true)
  107.      */
  108.     private $wp_payment;
  109.     /**
  110.      * @ORM\Column(type="string", nullable=true)
  111.      */
  112.     private $payment_method_type;
  113.     /**
  114.      * @ORM\Column(type="string", nullable=true)
  115.      * @Assert\NotBlank()
  116.      */
  117.     private $pay_stripe_customer_id;
  118.     /**
  119.      * @ORM\Column(type="string", nullable=true)
  120.      * @Assert\NotBlank()
  121.      */
  122.     private $pay_stripe_card_id;
  123.     /**
  124.      * @ORM\Column(type="string", nullable=true)
  125.      * @Assert\NotBlank()
  126.      */
  127.     private $pay_stripe_payment_intent_id;
  128.     /**
  129.      * @ORM\Column(type="string", nullable=true)
  130.      * @Assert\NotBlank()
  131.      */
  132.     private $pay_name;
  133.     /**
  134.      * @ORM\Column(type="string", nullable=true)
  135.      * @Assert\NotBlank()
  136.      */
  137.     private $pay_card_type;
  138.     /**
  139.      * @ORM\Column(type="string", nullable=true)
  140.      * @Assert\NotBlank()
  141.      */
  142.     private $pay_last_four;
  143.     /**
  144.      * @ORM\Column(type="string", nullable=true)
  145.      * @Assert\NotBlank()
  146.      */
  147.     private $pay_brand;
  148.     /**
  149.      * @ORM\Column(type="string", nullable=true)
  150.      * @Assert\NotBlank()
  151.      */
  152.     private $pay_expiry_month;
  153.     /**
  154.      * @ORM\Column(type="string", nullable=true)
  155.      * @Assert\NotBlank()
  156.      */
  157.     private $pay_expiry_year;
  158.     /**
  159.      * @var DateTime
  160.      * @ORM\Column(type="datetime", nullable=false)
  161.      * @Assert\NotBlank()
  162.      */
  163.     private $pay_date;
  164.     /**
  165.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  166.      * @Assert\NotBlank()
  167.      */
  168.     private $sub_total_price;
  169.     /**
  170.      * @ORM\Column(type="decimal", precision=10, scale=2)
  171.      * @Assert\NotBlank()
  172.      */
  173.     private $tax_price;
  174.     /**
  175.      * @ORM\Column(type="decimal", precision=10, scale=2)
  176.      * @Assert\NotBlank()
  177.      */
  178.     private $service_fee_price;
  179.     /**
  180.      * @ORM\Column(type="decimal", precision=10, scale=2)
  181.      * @Assert\NotBlank()
  182.      */
  183.     private $total_price;
  184.     /**
  185.      * @ORM\Column(type="string", nullable=true)
  186.      * @Assert\NotBlank()
  187.      */
  188.     private $stripe_charge_id;
  189.     /**
  190.      * @ORM\Column(type="boolean", nullable=true, options={"default" : 0})
  191.      */
  192.     private $is_payout_completed false;
  193.     private $isDataDecrypted false;
  194.     private $renewalDate;//This is stored in Orders Entity. We will only pass value here for webservice purpose
  195.     /**
  196.      * @var string
  197.      * @ORM\Column(type="string", nullable=true)
  198.      */
  199.     private $stripe_balance_transaction;
  200.     /**
  201.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  202.      */
  203.     private $stripe_total_amount;
  204.     /**
  205.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  206.      */
  207.     private $stripe_fee_amount;
  208.     /**
  209.      * @var string
  210.      * @ORM\Column(type="string", nullable=true)
  211.      */
  212.     private $stripe_currency;
  213.     /**
  214.      * @var string
  215.      * @ORM\Column(type="string", nullable=true)
  216.      */
  217.     private $stripe_exchange_rate;
  218.     /**
  219.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  220.      */
  221.     private $stripe_net_amount;
  222.     /**
  223.      * @var string
  224.      * @ORM\Column(type="string", nullable=true, length=2000)
  225.      */
  226.     private $stripe_fee_details;
  227.     /**
  228.      * @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
  229.      */
  230.     private $is_stripe_balance_transaction_details_updated false;
  231.     /**
  232.      * @ORM\Column(type="boolean", nullable=false, options={"default" : 0})
  233.      */
  234.     private $is_discount_applicable false;
  235.     /**
  236.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  237.      */
  238.     private $discount_total 0;
  239.     /**
  240.      * @ORM\Column(type="string", length = 1000, nullable=true)
  241.      */
  242.     private $invoice;
  243.     /**
  244.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  245.      */
  246.     private $without_discount_sub_total_price 0;
  247.     /**
  248.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  249.      */
  250.     private $without_discount_tax_price 0;
  251.     /**
  252.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  253.      */
  254.     private $without_discount_service_fee_price 0;
  255.     /**
  256.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  257.      */
  258.     private $without_discount_total_price 0;
  259.     /**
  260.      * @ORM\Column(type="string", nullable=true)
  261.      */
  262.     private $pay_stripe_payment_method_id;
  263.     /**
  264.      * @ORM\Column(type="string", nullable=true)
  265.      */
  266.     private $stripe_payment_failure_code;
  267.     /**
  268.      * @ORM\Column(type="string", nullable=true)
  269.      */
  270.     private $stripe_payment_failure_msg;
  271.     /**
  272.      * @ORM\Column(type="string", nullable=true)
  273.      */
  274.     private $stripe_payment_event_id;
  275.     /**
  276.      * @var DateTime
  277.      * @ORM\Column(type="datetime", nullable=true)
  278.      */
  279.     private $payment_failed_date;
  280.     /**
  281.      * @var DateTime
  282.      * @ORM\Column(type="datetime", nullable=true)
  283.      */
  284.     private $next_payment_failed_reminder_date;
  285.     /**
  286.      * @var DateTime
  287.      * @ORM\Column(type="datetime", nullable=true)
  288.      */
  289.     private $repayment_failed_last_try_date;
  290.     /**
  291.      * @ORM\Column(type="string", nullable=true)
  292.      */
  293.     private $make_failed_payment_id;//This is unique id that we will generate to get users details and orders details and allow user to make payment on web ui
  294.     /**
  295.      * @var DateTime
  296.      * @ORM\Column(type="datetime", nullable=true)
  297.      */
  298.     private $repayment_success_date;
  299.     /**
  300.      * @return mixed
  301.      */
  302.     public function getId()
  303.     {
  304.         return $this->id;
  305.     }
  306.     /**
  307.      * @return Orders
  308.      */
  309.     public function getOrder()
  310.     {
  311.         return $this->order;
  312.     }
  313.     /**
  314.      * @param mixed $order
  315.      */
  316.     public function setOrder($order)
  317.     {
  318.         $this->order $order;
  319.     }
  320.     /**
  321.      * @return PS_Add_Spot
  322.      */
  323.     public function getAddSpot()
  324.     {
  325.         return $this->add_spot;
  326.     }
  327.     /**
  328.      * @param mixed $add_spot
  329.      */
  330.     public function setAddSpot($add_spot)
  331.     {
  332.         $this->add_spot $add_spot;
  333.     }
  334.     /**
  335.      * @return boolean
  336.      */
  337.     public function getIsCompleted()
  338.     {
  339.         return $this->is_completed;
  340.     }
  341.     /**
  342.      * @param mixed $is_completed
  343.      */
  344.     public function setIsCompleted($is_completed)
  345.     {
  346.         $this->is_completed $is_completed;
  347.     }
  348.     /**
  349.      * @return DateTime
  350.      */
  351.     public function getStartDate()
  352.     {
  353.         return $this->start_date;
  354.     }
  355.     /**
  356.      * @param mixed $start_date
  357.      */
  358.     public function setStartDate($start_date)
  359.     {
  360.         $this->start_date $start_date;
  361.     }
  362.     /**
  363.      * @return DateTime
  364.      */
  365.     public function getEndDate()
  366.     {
  367.         return $this->end_date;
  368.     }
  369.     /**
  370.      * @param mixed $end_date
  371.      */
  372.     public function setEndDate($end_date)
  373.     {
  374.         $this->end_date $end_date;
  375.     }
  376.     /**
  377.      * @return boolean
  378.      */
  379.     public function getIsOrderPaid()
  380.     {
  381.         return $this->is_order_paid;
  382.     }
  383.     /**
  384.      * @param mixed $is_order_paid
  385.      */
  386.     public function setIsOrderPaid($is_order_paid)
  387.     {
  388.         $this->is_order_paid $is_order_paid;
  389.     }
  390.     /**
  391.      * @return boolean
  392.      */
  393.     public function getIsEmailSent()
  394.     {
  395.         return $this->is_email_sent;
  396.     }
  397.     /**
  398.      * @param mixed $is_email_sent
  399.      */
  400.     public function setIsEmailSent($is_email_sent)
  401.     {
  402.         $this->is_email_sent $is_email_sent;
  403.     }
  404.     /**
  405.      * @return boolean
  406.      */
  407.     public function getIsSmsSent()
  408.     {
  409.         return $this->is_sms_sent;
  410.     }
  411.     /**
  412.      * @param mixed $is_sms_sent
  413.      */
  414.     public function setIsSmsSent($is_sms_sent)
  415.     {
  416.         $this->is_sms_sent $is_sms_sent;
  417.     }
  418.     /**
  419.      * @return boolean
  420.      */
  421.     public function getIsNotificationSent()
  422.     {
  423.         return $this->is_notification_sent;
  424.     }
  425.     /**
  426.      * @param mixed $is_notification_sent
  427.      */
  428.     public function setIsNotificationSent($is_notification_sent)
  429.     {
  430.         $this->is_notification_sent $is_notification_sent;
  431.     }
  432.     /**
  433.      * @return boolean
  434.      */
  435.     public function getActive()
  436.     {
  437.         return $this->active;
  438.     }
  439.     /**
  440.      * @param mixed $active
  441.      */
  442.     public function setActive($active)
  443.     {
  444.         $this->active $active;
  445.     }
  446.     /**
  447.      * @return boolean
  448.      */
  449.     public function getIsCompletionEmailSent()
  450.     {
  451.         return $this->is_completion_email_sent;
  452.     }
  453.     /**
  454.      * @param mixed $is_completion_email_sent
  455.      */
  456.     public function setIsCompletionEmailSent($is_completion_email_sent)
  457.     {
  458.         $this->is_completion_email_sent $is_completion_email_sent;
  459.     }
  460.     /**
  461.      * @return boolean
  462.      */
  463.     public function getIsCompletionSmsSent()
  464.     {
  465.         return $this->is_completion_sms_sent;
  466.     }
  467.     /**
  468.      * @param mixed $is_completion_sms_sent
  469.      */
  470.     public function setIsCompletionSmsSent($is_completion_sms_sent)
  471.     {
  472.         $this->is_completion_sms_sent $is_completion_sms_sent;
  473.     }
  474.     /**
  475.      * @return boolean
  476.      */
  477.     public function getIsCompletionNotificationSent()
  478.     {
  479.         return $this->is_completion_notification_sent;
  480.     }
  481.     /**
  482.      * @param mixed $is_completion_notification_sent
  483.      */
  484.     public function setIsCompletionNotificationSent($is_completion_notification_sent)
  485.     {
  486.         $this->is_completion_notification_sent $is_completion_notification_sent;
  487.     }
  488.     /**
  489.      * @return WP_Payment
  490.      */
  491.     public function getWpPayment()
  492.     {
  493.         return $this->wp_payment;
  494.     }
  495.     /**
  496.      * @param WP_Payment $wp_payment
  497.      */
  498.     public function setWpPayment(WP_Payment $wp_payment)
  499.     {
  500.         $this->wp_payment $wp_payment;
  501.     }
  502.     /**
  503.      * @return string
  504.      */
  505.     public function getPayName()
  506.     {
  507.         return $this->pay_name;
  508.     }
  509.     /**
  510.      * @param mixed $pay_name
  511.      */
  512.     public function setPayName($pay_name)
  513.     {
  514.         $this->pay_name $pay_name;
  515.     }
  516.     /**
  517.      * @return string
  518.      */
  519.     public function getPayCardType()
  520.     {
  521.         return $this->pay_card_type;
  522.     }
  523.     /**
  524.      * @param mixed $pay_card_type
  525.      */
  526.     public function setPayCardType($pay_card_type)
  527.     {
  528.         $this->pay_card_type $pay_card_type;
  529.     }
  530.     /**
  531.      * @return string
  532.      */
  533.     public function getPayLastFour()
  534.     {
  535.         return $this->pay_last_four;
  536.     }
  537.     /**
  538.      * @param mixed $pay_last_four
  539.      */
  540.     public function setPayLastFour($pay_last_four)
  541.     {
  542.         $this->pay_last_four $pay_last_four;
  543.     }
  544.     /**
  545.      * @return string
  546.      */
  547.     public function getPayBrand()
  548.     {
  549.         return $this->pay_brand;
  550.     }
  551.     /**
  552.      * @param mixed $pay_brand
  553.      */
  554.     public function setPayBrand($pay_brand)
  555.     {
  556.         $this->pay_brand $pay_brand;
  557.     }
  558.     /**
  559.      * @return string
  560.      */
  561.     public function getPayExpiryMonth()
  562.     {
  563.         return $this->pay_expiry_month;
  564.     }
  565.     /**
  566.      * @param mixed $pay_expiry_month
  567.      */
  568.     public function setPayExpiryMonth($pay_expiry_month)
  569.     {
  570.         $this->pay_expiry_month $pay_expiry_month;
  571.     }
  572.     /**
  573.      * @return string
  574.      */
  575.     public function getPayExpiryYear()
  576.     {
  577.         return $this->pay_expiry_year;
  578.     }
  579.     /**
  580.      * @param mixed $pay_expiry_year
  581.      */
  582.     public function setPayExpiryYear($pay_expiry_year)
  583.     {
  584.         $this->pay_expiry_year $pay_expiry_year;
  585.     }
  586.     /**
  587.      * @return DateTime
  588.      */
  589.     public function getPayDate()
  590.     {
  591.         return $this->pay_date;
  592.     }
  593.     /**
  594.      * @param mixed $pay_date
  595.      */
  596.     public function setPayDate($pay_date)
  597.     {
  598.         $this->pay_date $pay_date;
  599.     }
  600.     /**
  601.      * @return mixed
  602.      */
  603.     public function getSubTotalPrice()
  604.     {
  605.         return $this->sub_total_price;
  606.     }
  607.     /**
  608.      * @param mixed $sub_total_price
  609.      */
  610.     public function setSubTotalPrice($sub_total_price)
  611.     {
  612.         $this->sub_total_price $sub_total_price;
  613.     }
  614.     /**
  615.      * @return mixed
  616.      */
  617.     public function getTaxPrice()
  618.     {
  619.         return $this->tax_price;
  620.     }
  621.     /**
  622.      * @param mixed $tax_price
  623.      */
  624.     public function setTaxPrice($tax_price)
  625.     {
  626.         $this->tax_price $tax_price;
  627.     }
  628.     /**
  629.      * @return mixed
  630.      */
  631.     public function getServiceFeePrice()
  632.     {
  633.         return $this->service_fee_price;
  634.     }
  635.     /**
  636.      * @param mixed $service_fee_price
  637.      */
  638.     public function setServiceFeePrice($service_fee_price)
  639.     {
  640.         $this->service_fee_price $service_fee_price;
  641.     }
  642.     /**
  643.      * @return mixed
  644.      */
  645.     public function getTotalPrice()
  646.     {
  647.         return $this->total_price;
  648.     }
  649.     /**
  650.      * @param mixed $total_price
  651.      */
  652.     public function setTotalPrice($total_price)
  653.     {
  654.         $this->total_price $total_price;
  655.     }
  656.     /**
  657.      * @return mixed
  658.      */
  659.     public function getStripeChargeId()
  660.     {
  661.         return $this->stripe_charge_id;
  662.     }
  663.     /**
  664.      * @param mixed $stripe_charge_id
  665.      */
  666.     public function setStripeChargeId($stripe_charge_id)
  667.     {
  668.         $this->stripe_charge_id $stripe_charge_id;
  669.     }
  670.     /**
  671.      * @return Orders_Suppliers_Transfer
  672.      */
  673.     public function getOrderSupplierTransfer()
  674.     {
  675.         return $this->order_supplier_transfer;
  676.     }
  677.     /**
  678.      * @param Orders_Suppliers_Transfer $order_supplier_transfer
  679.      */
  680.     public function setOrderSupplierTransfer(Orders_Suppliers_Transfer $order_supplier_transfer)
  681.     {
  682.         $this->order_supplier_transfer $order_supplier_transfer;
  683.     }
  684.     /**
  685.      * @return bool
  686.      */
  687.     public function isDataDecrypted(): bool
  688.     {
  689.         return $this->isDataDecrypted;
  690.     }
  691.     /**
  692.      * @param bool $isDataDecrypted
  693.      */
  694.     public function setIsDataDecrypted(bool $isDataDecrypted)
  695.     {
  696.         $this->isDataDecrypted $isDataDecrypted;
  697.     }
  698.     /**
  699.      * @return mixed
  700.      */
  701.     public function getRenewalDate()
  702.     {
  703.         return $this->renewalDate;
  704.     }
  705.     /**
  706.      * @param mixed $renewalDate
  707.      */
  708.     public function setRenewalDate($renewalDate)
  709.     {
  710.         $this->renewalDate $renewalDate;
  711.     }
  712.     /**
  713.      * @return mixed
  714.      */
  715.     public function getIsPayoutCompleted()
  716.     {
  717.         return $this->is_payout_completed;
  718.     }
  719.     /**
  720.      * @param mixed $is_payout_completed
  721.      */
  722.     public function setIsPayoutCompleted($is_payout_completed)
  723.     {
  724.         $this->is_payout_completed $is_payout_completed;
  725.     }
  726.     /**
  727.      * @return string
  728.      */
  729.     public function getStripeBalanceTransaction()
  730.     {
  731.         return $this->stripe_balance_transaction;
  732.     }
  733.     /**
  734.      * @param string $stripe_balance_transaction
  735.      */
  736.     public function setStripeBalanceTransaction($stripe_balance_transaction)
  737.     {
  738.         $this->stripe_balance_transaction $stripe_balance_transaction;
  739.     }
  740.     /**
  741.      * @return mixed
  742.      */
  743.     public function getStripeTotalAmount()
  744.     {
  745.         return $this->stripe_total_amount;
  746.     }
  747.     /**
  748.      * @param mixed $stripe_total_amount
  749.      */
  750.     public function setStripeTotalAmount($stripe_total_amount)
  751.     {
  752.         $this->stripe_total_amount $stripe_total_amount;
  753.     }
  754.     /**
  755.      * @return mixed
  756.      */
  757.     public function getStripeFeeAmount()
  758.     {
  759.         return $this->stripe_fee_amount;
  760.     }
  761.     /**
  762.      * @param mixed $stripe_fee_amount
  763.      */
  764.     public function setStripeFeeAmount($stripe_fee_amount)
  765.     {
  766.         $this->stripe_fee_amount $stripe_fee_amount;
  767.     }
  768.     /**
  769.      * @return string
  770.      */
  771.     public function getStripeCurrency()
  772.     {
  773.         return $this->stripe_currency;
  774.     }
  775.     /**
  776.      * @param string $stripe_currency
  777.      */
  778.     public function setStripeCurrency($stripe_currency)
  779.     {
  780.         $this->stripe_currency $stripe_currency;
  781.     }
  782.     /**
  783.      * @return string
  784.      */
  785.     public function getStripeExchangeRate()
  786.     {
  787.         return $this->stripe_exchange_rate;
  788.     }
  789.     /**
  790.      * @param string $stripe_exchange_rate
  791.      */
  792.     public function setStripeExchangeRate($stripe_exchange_rate)
  793.     {
  794.         $this->stripe_exchange_rate $stripe_exchange_rate;
  795.     }
  796.     /**
  797.      * @return mixed
  798.      */
  799.     public function getStripeNetAmount()
  800.     {
  801.         return $this->stripe_net_amount;
  802.     }
  803.     /**
  804.      * @param mixed $stripe_net_amount
  805.      */
  806.     public function setStripeNetAmount($stripe_net_amount)
  807.     {
  808.         $this->stripe_net_amount $stripe_net_amount;
  809.     }
  810.     /**
  811.      * @return string
  812.      */
  813.     public function getStripeFeeDetails()
  814.     {
  815.         return $this->stripe_fee_details;
  816.     }
  817.     /**
  818.      * @param string $stripe_fee_details
  819.      */
  820.     public function setStripeFeeDetails($stripe_fee_details)
  821.     {
  822.         $this->stripe_fee_details $stripe_fee_details;
  823.     }
  824.     /**
  825.      * @return mixed
  826.      */
  827.     public function getIsStripeBalanceTransactionDetailsUpdated()
  828.     {
  829.         return $this->is_stripe_balance_transaction_details_updated;
  830.     }
  831.     /**
  832.      * @param mixed $is_stripe_balance_transaction_details_updated
  833.      */
  834.     public function setIsStripeBalanceTransactionDetailsUpdated($is_stripe_balance_transaction_details_updated)
  835.     {
  836.         $this->is_stripe_balance_transaction_details_updated $is_stripe_balance_transaction_details_updated;
  837.     }
  838.     /**
  839.      * @return PromoCodes
  840.      */
  841.     public function getPromoCode()
  842.     {
  843.         return $this->promo_code;
  844.     }
  845.     /**
  846.      * @param PromoCodes $promo_code
  847.      */
  848.     public function setPromoCode(PromoCodes $promo_code)
  849.     {
  850.         $this->promo_code $promo_code;
  851.     }
  852.     /**
  853.      * @return mixed
  854.      */
  855.     public function getIsDiscountApplicable()
  856.     {
  857.         return $this->is_discount_applicable;
  858.     }
  859.     /**
  860.      * @param mixed $is_discount_applicable
  861.      */
  862.     public function setIsDiscountApplicable($is_discount_applicable)
  863.     {
  864.         $this->is_discount_applicable $is_discount_applicable;
  865.     }
  866.     /**
  867.      * @return mixed
  868.      */
  869.     public function getDiscountTotal()
  870.     {
  871.         return $this->discount_total;
  872.     }
  873.     /**
  874.      * @param mixed $discount_total
  875.      */
  876.     public function setDiscountTotal($discount_total)
  877.     {
  878.         $this->discount_total $discount_total;
  879.     }
  880.     /**
  881.      * @param mixed $discount_system_part
  882.      */
  883.     public function setDiscountSystemPart($discount_system_part)
  884.     {
  885.         $this->discount_system_part $discount_system_part;
  886.     }
  887.     /**
  888.      * @return mixed
  889.      */
  890.     public function getInvoice()
  891.     {
  892.         return $this->invoice;
  893.     }
  894.     /**
  895.      * @param mixed $invoice
  896.      */
  897.     public function setInvoice($invoice)
  898.     {
  899.         $this->invoice $invoice;
  900.     }
  901.     /**
  902.      * @return mixed
  903.      */
  904.     public function getWithoutDiscountSubTotalPrice()
  905.     {
  906.         return $this->without_discount_sub_total_price;
  907.     }
  908.     /**
  909.      * @param mixed $without_discount_sub_total_price
  910.      */
  911.     public function setWithoutDiscountSubTotalPrice($without_discount_sub_total_price)
  912.     {
  913.         $this->without_discount_sub_total_price $without_discount_sub_total_price;
  914.     }
  915.     /**
  916.      * @return mixed
  917.      */
  918.     public function getWithoutDiscountTaxPrice()
  919.     {
  920.         return $this->without_discount_tax_price;
  921.     }
  922.     /**
  923.      * @param mixed $without_discount_tax_price
  924.      */
  925.     public function setWithoutDiscountTaxPrice($without_discount_tax_price)
  926.     {
  927.         $this->without_discount_tax_price $without_discount_tax_price;
  928.     }
  929.     /**
  930.      * @return mixed
  931.      */
  932.     public function getWithoutDiscountServiceFeePrice()
  933.     {
  934.         return $this->without_discount_service_fee_price;
  935.     }
  936.     /**
  937.      * @param mixed $without_discount_service_fee_price
  938.      */
  939.     public function setWithoutDiscountServiceFeePrice($without_discount_service_fee_price)
  940.     {
  941.         $this->without_discount_service_fee_price $without_discount_service_fee_price;
  942.     }
  943.     /**
  944.      * @return mixed
  945.      */
  946.     public function getWithoutDiscountTotalPrice()
  947.     {
  948.         return $this->without_discount_total_price;
  949.     }
  950.     /**
  951.      * @param mixed $without_discount_total_price
  952.      */
  953.     public function setWithoutDiscountTotalPrice($without_discount_total_price)
  954.     {
  955.         $this->without_discount_total_price $without_discount_total_price;
  956.     }
  957.     /**
  958.      * @return mixed
  959.      */
  960.     public function getPaymentMethodType()
  961.     {
  962.         return $this->payment_method_type;
  963.     }
  964.     /**
  965.      * @param mixed $payment_method_type
  966.      */
  967.     public function setPaymentMethodType($payment_method_type)
  968.     {
  969.         $this->payment_method_type $payment_method_type;
  970.     }
  971.     /**
  972.      * @return mixed
  973.      */
  974.     public function getPayStripePaymentIntentId()
  975.     {
  976.         return $this->pay_stripe_payment_intent_id;
  977.     }
  978.     /**
  979.      * @param mixed $pay_stripe_payment_intent_id
  980.      */
  981.     public function setPayStripePaymentIntentId($pay_stripe_payment_intent_id)
  982.     {
  983.         $this->pay_stripe_payment_intent_id $pay_stripe_payment_intent_id;
  984.     }
  985.     /**
  986.      * @return mixed
  987.      */
  988.     public function getPayStripeCustomerId()
  989.     {
  990.         return $this->pay_stripe_customer_id;
  991.     }
  992.     /**
  993.      * @param mixed $pay_stripe_customer_id
  994.      */
  995.     public function setPayStripeCustomerId($pay_stripe_customer_id)
  996.     {
  997.         $this->pay_stripe_customer_id $pay_stripe_customer_id;
  998.     }
  999.     /**
  1000.      * @return mixed
  1001.      */
  1002.     public function getPayStripeCardId()
  1003.     {
  1004.         return $this->pay_stripe_card_id;
  1005.     }
  1006.     /**
  1007.      * @param mixed $pay_stripe_card_id
  1008.      */
  1009.     public function setPayStripeCardId($pay_stripe_card_id)
  1010.     {
  1011.         $this->pay_stripe_card_id $pay_stripe_card_id;
  1012.     }
  1013.     /**
  1014.      * @return mixed
  1015.      */
  1016.     public function getPayStripePaymentMethodId()
  1017.     {
  1018.         return $this->pay_stripe_payment_method_id;
  1019.     }
  1020.     /**
  1021.      * @param mixed $pay_stripe_payment_method_id
  1022.      */
  1023.     public function setPayStripePaymentMethodId($pay_stripe_payment_method_id)
  1024.     {
  1025.         $this->pay_stripe_payment_method_id $pay_stripe_payment_method_id;
  1026.     }
  1027.     /**
  1028.      * @return mixed
  1029.      */
  1030.     public function getStripePaymentFailureCode()
  1031.     {
  1032.         return $this->stripe_payment_failure_code;
  1033.     }
  1034.     /**
  1035.      * @param mixed $stripe_payment_failure_code
  1036.      */
  1037.     public function setStripePaymentFailureCode($stripe_payment_failure_code)
  1038.     {
  1039.         $this->stripe_payment_failure_code $stripe_payment_failure_code;
  1040.     }
  1041.     /**
  1042.      * @return mixed
  1043.      */
  1044.     public function getStripePaymentFailureMsg()
  1045.     {
  1046.         return $this->stripe_payment_failure_msg;
  1047.     }
  1048.     /**
  1049.      * @param mixed $stripe_payment_failure_msg
  1050.      */
  1051.     public function setStripePaymentFailureMsg($stripe_payment_failure_msg)
  1052.     {
  1053.         $this->stripe_payment_failure_msg $stripe_payment_failure_msg;
  1054.     }
  1055.     /**
  1056.      * @return mixed
  1057.      */
  1058.     public function getStripePaymentEventId()
  1059.     {
  1060.         return $this->stripe_payment_event_id;
  1061.     }
  1062.     /**
  1063.      * @param mixed $stripe_payment_event_id
  1064.      */
  1065.     public function setStripePaymentEventId($stripe_payment_event_id)
  1066.     {
  1067.         $this->stripe_payment_event_id $stripe_payment_event_id;
  1068.     }
  1069.     /**
  1070.      * @return DateTime
  1071.      */
  1072.     public function getPaymentFailedDate()
  1073.     {
  1074.         return $this->payment_failed_date;
  1075.     }
  1076.     /**
  1077.      * @param DateTime $payment_failed_date
  1078.      */
  1079.     public function setPaymentFailedDate(DateTime $payment_failed_date)
  1080.     {
  1081.         $this->payment_failed_date $payment_failed_date;
  1082.     }
  1083.     /**
  1084.      * @return DateTime
  1085.      */
  1086.     public function getNextPaymentFailedReminderDate()
  1087.     {
  1088.         return $this->next_payment_failed_reminder_date;
  1089.     }
  1090.     /**
  1091.      * @param DateTime $next_payment_failed_reminder_date
  1092.      */
  1093.     public function setNextPaymentFailedReminderDate(DateTime $next_payment_failed_reminder_date)
  1094.     {
  1095.         $this->next_payment_failed_reminder_date $next_payment_failed_reminder_date;
  1096.     }
  1097.     /**
  1098.      * @return DateTime
  1099.      */
  1100.     public function getRepaymentFailedLastTryDate()
  1101.     {
  1102.         return $this->repayment_failed_last_try_date;
  1103.     }
  1104.     /**
  1105.      * @param DateTime $repayment_failed_last_try_date
  1106.      */
  1107.     public function setRepaymentFailedLastTryDate(DateTime $repayment_failed_last_try_date)
  1108.     {
  1109.         $this->repayment_failed_last_try_date $repayment_failed_last_try_date;
  1110.     }
  1111.     /**
  1112.      * @return mixed
  1113.      */
  1114.     public function getMakeFailedPaymentId()
  1115.     {
  1116.         return $this->make_failed_payment_id;
  1117.     }
  1118.     /**
  1119.      * @param mixed $make_failed_payment_id
  1120.      */
  1121.     public function setMakeFailedPaymentId($make_failed_payment_id)
  1122.     {
  1123.         $this->make_failed_payment_id $make_failed_payment_id;
  1124.     }
  1125.     /**
  1126.      * @return DateTime
  1127.      */
  1128.     public function getRepaymentSuccessDate()
  1129.     {
  1130.         return $this->repayment_success_date;
  1131.     }
  1132.     /**
  1133.      * @param DateTime $repayment_success_date
  1134.      */
  1135.     public function setRepaymentSuccessDate(DateTime $repayment_success_date)
  1136.     {
  1137.         $this->repayment_success_date $repayment_success_date;
  1138.     }
  1139.     public function jsonSerialize()
  1140.     {
  1141.         return array(
  1142.             'id' => $this->id,
  1143.             'is_completed' => $this->is_completed,
  1144.             'start_date' => $this->start_date->format('Y-m-d'),
  1145.             'end_date' => $this->end_date->format('Y-m-d'),
  1146.             'is_order_paid' => $this->is_order_paid,
  1147.             'is_email_sent' => $this->is_email_sent,
  1148.             'is_sms_sent' => $this->is_sms_sent,
  1149.             'is_notification_sent' => $this->is_notification_sent,
  1150.             'wp_payment_id' => $this->getWpPayment() != NULL $this->getWpPayment() ->getId() : '',
  1151.             'pay_name' => $this->pay_name,
  1152.             'pay_brand' => $this->pay_brand,
  1153.             'pay_card_type' => $this->pay_card_type,
  1154.             'pay_last_four' => $this->pay_last_four,
  1155.             'is_completion_email_sent' => $this->is_completion_email_sent,
  1156.             'is_completion_sms_sent' => $this->is_completion_sms_sent,
  1157.             'is_completion_notification_sent' => $this->is_completion_notification_sent,
  1158.             'pay_date' => $this->pay_date->format('Y-m-d H:i:s'),
  1159.             'active' => $this->active,
  1160.             'sub_total_price' => $this->sub_total_price,
  1161.             'tax_price' => $this->tax_price,
  1162.             'service_fee_price' => $this->service_fee_price,
  1163.             'total_price' => $this->total_price,
  1164.             'stripe_charge_id' => $this->stripe_charge_id,
  1165.             'renewal_date' => $this->renewalDate,
  1166.             'is_payout_completed' => $this->is_payout_completed,
  1167.             'stripe_balance_transaction' => $this->stripe_balance_transaction,
  1168.             'stripe_currency' => $this->stripe_currency,
  1169.             'stripe_exchange_rate' => $this->stripe_exchange_rate,
  1170.             'stripe_fee_amount' => $this->stripe_fee_amount,
  1171.             'stripe_total_amount' => $this->stripe_total_amount,
  1172.             'stripe_net_amount' => $this->stripe_net_amount,
  1173.             'is_discount_applicable' => $this->is_discount_applicable,
  1174.             'discount_total' => $this->discount_total,
  1175.             'without_discount_service_fee_price' => $this->without_discount_service_fee_price,
  1176.             'without_discount_sub_total_price' => $this->without_discount_sub_total_price,
  1177.             'without_discount_tax_price' => $this->without_discount_tax_price,
  1178.             'without_discount_total_price' => $this->without_discount_total_price,
  1179.             'repayment_failed_last_try_date' => $this->repayment_failed_last_try_date != NULL $this->repayment_failed_last_try_date->format('Y-m-d') : '',
  1180.             'repayment_success_date' => $this->repayment_success_date != NULL $this->repayment_success_date->format('Y-m-d H:i:s') : '',
  1181.             'next_payment_failed_reminder_date' => $this->next_payment_failed_reminder_date != NULL $this->next_payment_failed_reminder_date->format('Y-m-d H:i:s') : '',
  1182.             'promo_code' => $this->getPromoCode() != NULL $this->getPromoCode()->jsonSerialize() : NULL,
  1183.             'is_stripe_balance_transaction_details_updated' => $this->is_stripe_balance_transaction_details_updated,
  1184.             'invoice' => $this->invoice,
  1185.         );
  1186.     }
  1187.     /**
  1188.      * @var DateTime $created
  1189.      *
  1190.      * @ORM\Column(type="datetime", nullable=false)
  1191.      */
  1192.     protected $createdAt;
  1193.     /**
  1194.      * @var DateTime $updated
  1195.      *
  1196.      * @ORM\Column(type="datetime", nullable=false)
  1197.      */
  1198.     protected $updatedAt;
  1199.     /**
  1200.      * @return DateTime
  1201.      */
  1202.     public function getCreatedAt()
  1203.     {
  1204.         return $this->createdAt;
  1205.     }
  1206.     /**
  1207.      * @return DateTime
  1208.      */
  1209.     public function getUpdatedAt()
  1210.     {
  1211.         return $this->updatedAt;
  1212.     }
  1213.     public function setUpdatedAt($updatedAt)
  1214.     {
  1215.         $this->updatedAt $updatedAt;
  1216.         return $this;
  1217.     }
  1218.     /**
  1219.      * @ORM\PrePersist
  1220.      */
  1221.     public function setCreatedAt()
  1222.     {
  1223.         $this->createdAt = new DateTime();
  1224.         $this->updatedAt = new DateTime();
  1225.         return $this;
  1226.     }
  1227.     /**
  1228.      * @ORM\PreUpdate
  1229.      */
  1230.     public function setUpdatedAtValue() {
  1231.         $this->updatedAt = new DateTime();
  1232.     }
  1233.     public function __construct() {
  1234.     }
  1235. }