src/AdminBundle/Entity/DriverInvoices.php line 845

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. #[ORM\Table(name: 'driver_invoices')]
  6. #[ORM\Entity(repositoryClass: \AdminBundle\Repository\DriverInvoicesRepository::class)]
  7. class DriverInvoices extends BaseEntity
  8. {
  9. const PAYMENT_STATUS_PENDING = 0;
  10. const PAYMENT_STATUS_PAID = 1;
  11. const INVOICE_PENDING_APPROVAL = 0;
  12. const INVOICE_APPROVED = 1;
  13. public static $invoiceApproval = array(
  14. self::INVOICE_PENDING_APPROVAL => 'Pending Approval',
  15. self::INVOICE_APPROVED => 'Approved',
  16. );
  17. public static $paymentStatuses = array(
  18. self::PAYMENT_STATUS_PENDING => 'Payment pending',
  19. self::PAYMENT_STATUS_PAID => 'Paid',
  20. );
  21. /**
  22. * @var integer
  23. */
  24. #[ORM\Column(name: 'id', type: 'integer', nullable: false)]
  25. #[ORM\Id]
  26. #[ORM\GeneratedValue(strategy: 'IDENTITY')]
  27. protected $id;
  28. /**
  29. * @var integer
  30. */
  31. #[ORM\Column(name: 'week', type: 'integer')]
  32. protected $week;
  33. /**
  34. * @var double
  35. */
  36. #[ORM\Column(name: 'total_job_value', type: 'decimal', scale: 2)]
  37. protected $totalJobValue=0;
  38. /**
  39. * @var double
  40. */
  41. #[ORM\Column(name: 'net_cash', type: 'decimal', scale: 2)]
  42. protected $netCash=0;
  43. /**
  44. * @var double
  45. */
  46. #[ORM\Column(name: 'net_card', type: 'decimal', scale: 2)]
  47. protected $netCard=0;
  48. /**
  49. * @var double
  50. */
  51. #[ORM\Column(name: 'driver_earnings', type: 'decimal', scale: 2)]
  52. protected $driverEarnings=0;
  53. /**
  54. * @var double
  55. */
  56. #[ORM\Column(name: 'office_total_commission', type: 'decimal', scale: 2)]
  57. protected $officeTotalCommission=0;
  58. /**
  59. * @var double
  60. */
  61. #[ORM\Column(name: 'total_pickup_dropoff_pass_fees', type: 'decimal', scale: 2)]
  62. protected $totalPickupDropoffPassFees=0;
  63. /**
  64. * @var double
  65. */
  66. #[ORM\Column(name: 'total_ccpayment_fees', type: 'decimal', scale: 2)]
  67. protected $totalCCPaymentFees=0;
  68. /**
  69. * @var double
  70. */
  71. #[ORM\Column(name: 'total_app_fees', type: 'decimal', scale: 2)]
  72. protected $totalAppFees=0;
  73. /**
  74. * @var double
  75. */
  76. #[ORM\Column(name: 'total_admin_fees', type: 'decimal', scale: 2)]
  77. protected $totalAdminFees=0;
  78. /**
  79. * @var double
  80. */
  81. #[ORM\Column(name: 'total_general_adjustment_amount', type: 'decimal', scale: 2)]
  82. protected $totalGeneralAdjustmentAmount=0;
  83. /**
  84. * @var double
  85. */
  86. #[ORM\Column(name: 'total_driver_adjustment_amount', type: 'decimal', scale: 2)]
  87. protected $totalDriverAdjustmentAmount=0;
  88. /**
  89. * @var double
  90. */
  91. #[ORM\Column(name: 'total_invoice_balance', type: 'decimal', scale: 2)]
  92. protected $totalInvoiceBalance=0;
  93. /**
  94. * @var string
  95. */
  96. #[ORM\Column(name: 'office_percentage_commission', type: 'string', length: 255)]
  97. protected $officePercentageCommission=0;
  98. /**
  99. * @var string
  100. */
  101. #[ORM\Column(name: 'job_tier0', type: 'decimal', scale: 2)]
  102. protected $jobTier0=0;
  103. /**
  104. * @var string
  105. */
  106. #[ORM\Column(name: 'job_tier1', type: 'decimal', scale: 2)]
  107. protected $jobTier1=0;
  108. /**
  109. * @var string
  110. */
  111. #[ORM\Column(name: 'job_tier2', type: 'decimal', scale: 2)]
  112. protected $jobTier2=0;
  113. /**
  114. * @var string
  115. */
  116. #[ORM\Column(name: 'job_tier3', type: 'decimal', scale: 2)]
  117. protected $jobTier3=0;
  118. /**
  119. * @var string
  120. */
  121. #[ORM\Column(name: 'job_special_tier', type: 'decimal', scale: 2)]
  122. protected $jobSpecialTier=0;
  123. /**
  124. * @var string
  125. */
  126. #[ORM\Column(name: 'job_instant_tier', type: 'decimal', scale: 2)]
  127. protected $jobInstantTier=0;
  128. /**
  129. * @var string
  130. */
  131. #[ORM\Column(name: 'office_commission_up_to500', type: 'decimal', scale: 2)]
  132. protected $officeCommissionUpTo500=0;
  133. /**
  134. * @var string
  135. */
  136. #[ORM\Column(name: 'office_commission_up_to1000', type: 'decimal', scale: 2)]
  137. protected $officeCommissionUpTo1000=0;
  138. /**
  139. * @var string
  140. */
  141. #[ORM\Column(name: 'office_commission_up_to1500', type: 'decimal', scale: 2)]
  142. protected $officeCommissionUpTo1500=0;
  143. /**
  144. * @var string
  145. */
  146. #[ORM\Column(name: 'office_commission_over1500', type: 'decimal', scale: 2)]
  147. protected $officeCommissionOver1500=0;
  148. /**
  149. * @var string
  150. */
  151. #[ORM\Column(name: 'special_office_commission', type: 'decimal', scale: 2)]
  152. protected $specialOfficeCommission=0;
  153. /**
  154. * @var string
  155. */
  156. #[ORM\Column(name: 'instant_office_commission', type: 'decimal', scale: 2)]
  157. protected $instantOfficeCommission=0;
  158. /**
  159. * @var string
  160. */
  161. #[ORM\Column(name: 'instant_office_commission_percentage', type: 'decimal', scale: 2)]
  162. protected $instantOfficeCommissionPercentage=0;
  163. /**
  164. * @var string
  165. */
  166. #[ORM\Column(name: 'special_commission_end_date', type: 'string', nullable: true)]
  167. private $specialCommissionEndDate;
  168. /**
  169. * @var string
  170. */
  171. #[ORM\Column(name: 'special_commission_start_date', type: 'string', nullable: true)]
  172. private $specialCommissionStartDate;
  173. /**
  174. * @var integer
  175. */
  176. #[ORM\Column(name: 'payment_status', type: 'integer')]
  177. protected $status = self::PAYMENT_STATUS_PENDING;
  178. /**
  179. * @var \DateTime
  180. */
  181. #[ORM\Column(name: 'invoice_date', type: 'datetime')]
  182. protected $invoiceDate;
  183. /**
  184. * @var string
  185. */
  186. #[ORM\Column(name: 'pdf_file', type: 'string', length: 255, nullable: true)]
  187. protected $pdfFile;
  188. /**
  189. * @var \DateTime
  190. */
  191. #[ORM\Column(name: 'pdf_gen_date', type: 'datetime', nullable: true)]
  192. protected $pdfGenDate;
  193. /**
  194. * @var \DateTime
  195. */
  196. #[ORM\Column(name: 'sent_date', type: 'datetime', nullable: true)]
  197. protected $sentDate;
  198. /**
  199. * @var boolean
  200. */
  201. #[ORM\Column(name: 'ready_to_send', type: 'boolean', options: ['default' => false])]
  202. protected $readyToSend = false;
  203. /**
  204. * @var boolean
  205. */
  206. #[ORM\Column(name: 'regenerate_invoice', type: 'boolean')]
  207. protected $regenerateInvoice = false;
  208. /**
  209. * @var integer
  210. */
  211. #[ORM\Column(name: 'approval', type: 'integer')]
  212. protected $approval = self::INVOICE_PENDING_APPROVAL;
  213. /**
  214. * @var string
  215. */
  216. #[ORM\Column(name: 'notice', type: 'text', nullable: true)]
  217. protected $notice;
  218. /**
  219. * @var boolean
  220. */
  221. #[ORM\Column(name: 'driver_bonus_feature_active', type: 'boolean', options: ['default' => false], nullable: true)]
  222. protected $driverBonusFeatureActive = false;
  223. /**
  224. * @var string
  225. */
  226. #[ORM\Column(name: 'driver_bonus_value', type: 'decimal', scale: 2, nullable: true)]
  227. protected $driverBonusValue=0;
  228. /**
  229. * @var string
  230. */
  231. #[ORM\Column(name: 'driver_bonus_threshold', type: 'decimal', scale: 2)]
  232. protected $driverBonusThreshold=0;
  233. /**
  234. * @var string
  235. */
  236. #[ORM\Column(name: 'driver_queue_bonus', type: 'decimal', scale: 2, nullable: true)]
  237. protected $driverQueueBonus=0;
  238. /**
  239. * @var string
  240. */
  241. #[ORM\Column(name: 'driver_bonus_period', type: 'string', length: 255, nullable: true)]
  242. protected $driverBonusPeriod;
  243. /**
  244. * @var string
  245. */
  246. #[ORM\Column(name: 'total_driver_tip', type: 'decimal', scale: 2, nullable: true)]
  247. protected $totalDriverTip = 0;
  248. /**
  249. * @var string
  250. */
  251. #[ORM\Column(name: 'driver_referral_bonus', type: 'decimal', scale: 2, nullable: true)]
  252. protected $driverReferralBonus = 0;
  253. /**
  254. * @var ArrayCollection
  255. */
  256. #[ORM\OneToMany(targetEntity: \AdminBundle\Entity\DriverInvoiceItems::class, mappedBy: 'invoice')]
  257. #[ORM\OrderBy(['booking_pickup_date_time' => 'ASC'])]
  258. public $invoiceItems;
  259. /**
  260. * @var Driver
  261. */
  262. #[ORM\JoinColumn(name: 'driver_id', referencedColumnName: 'id')]
  263. #[ORM\ManyToOne(targetEntity: \AdminBundle\Entity\Driver::class, inversedBy: 'invoices')]
  264. private $driver;
  265. /**
  266. * Constructor
  267. */
  268. public function __construct()
  269. {
  270. $this->invoiceItems = new \Doctrine\Common\Collections\ArrayCollection();
  271. }
  272. /**
  273. * Get id
  274. *
  275. * @return integer
  276. */
  277. public function getId()
  278. {
  279. return $this->id;
  280. }
  281. /**
  282. * Set week
  283. *
  284. * @param integer $week
  285. *
  286. * @return DriverInvoices
  287. */
  288. public function setWeek($week)
  289. {
  290. $this->week = $week;
  291. return $this;
  292. }
  293. /**
  294. * Get week
  295. *
  296. * @return integer
  297. */
  298. public function getWeek()
  299. {
  300. return $this->week;
  301. }
  302. /**
  303. * Set totalJobValue
  304. *
  305. * @param string $totalJobValue
  306. *
  307. * @return DriverInvoices
  308. */
  309. public function setTotalJobValue($totalJobValue)
  310. {
  311. $this->totalJobValue = $totalJobValue;
  312. return $this;
  313. }
  314. /**
  315. * Get totalJobValue
  316. *
  317. * @return string
  318. */
  319. public function getTotalJobValue()
  320. {
  321. return $this->totalJobValue;
  322. }
  323. /**
  324. * Set netCash
  325. *
  326. * @param string $netCash
  327. *
  328. * @return DriverInvoices
  329. */
  330. public function setNetCash($netCash)
  331. {
  332. $this->netCash = $netCash;
  333. return $this;
  334. }
  335. /**
  336. * Get netCash
  337. *
  338. * @return string
  339. */
  340. public function getNetCash()
  341. {
  342. return $this->netCash;
  343. }
  344. /**
  345. * Set netCard
  346. *
  347. * @param string $netCard
  348. *
  349. * @return DriverInvoices
  350. */
  351. public function setNetCard($netCard)
  352. {
  353. $this->netCard = $netCard;
  354. return $this;
  355. }
  356. /**
  357. * Get netCard
  358. *
  359. * @return string
  360. */
  361. public function getNetCard()
  362. {
  363. return $this->netCard;
  364. }
  365. /**
  366. * Set driverEarnings
  367. *
  368. * @param string $driverEarnings
  369. *
  370. * @return DriverInvoices
  371. */
  372. public function setDriverEarnings($driverEarnings)
  373. {
  374. $this->driverEarnings = $driverEarnings;
  375. return $this;
  376. }
  377. /**
  378. * Get driverEarnings
  379. *
  380. * @return string
  381. */
  382. public function getDriverEarnings()
  383. {
  384. return $this->driverEarnings;
  385. }
  386. /**
  387. * Set officeTotalCommission
  388. *
  389. * @param string $officeTotalCommission
  390. *
  391. * @return DriverInvoices
  392. */
  393. public function setOfficeTotalCommission($officeTotalCommission)
  394. {
  395. $this->officeTotalCommission = $officeTotalCommission;
  396. return $this;
  397. }
  398. /**
  399. * Get officeTotalCommission
  400. *
  401. * @return string
  402. */
  403. public function getOfficeTotalCommission()
  404. {
  405. return $this->officeTotalCommission;
  406. }
  407. /**
  408. * Set totalPickupDropoffPassFees
  409. *
  410. * @param string $totalPickupDropoffPassFees
  411. *
  412. * @return DriverInvoices
  413. */
  414. public function setTotalPickupDropoffPassFees($totalPickupDropoffPassFees)
  415. {
  416. $this->totalPickupDropoffPassFees = $totalPickupDropoffPassFees;
  417. return $this;
  418. }
  419. /**
  420. * Get totalPickupDropoffPassFees
  421. *
  422. * @return string
  423. */
  424. public function getTotalPickupDropoffPassFees()
  425. {
  426. return $this->totalPickupDropoffPassFees;
  427. }
  428. /**
  429. * Set totalCCPaymentFees
  430. *
  431. * @param string $totalCCPaymentFees
  432. *
  433. * @return DriverInvoices
  434. */
  435. public function setTotalCCPaymentFees($totalCCPaymentFees)
  436. {
  437. $this->totalCCPaymentFees = $totalCCPaymentFees;
  438. return $this;
  439. }
  440. /**
  441. * Get totalCCPaymentFees
  442. *
  443. * @return string
  444. */
  445. public function getTotalCCPaymentFees()
  446. {
  447. return $this->totalCCPaymentFees;
  448. }
  449. /**
  450. * Set totalAppFees
  451. *
  452. * @param string $totalAppFees
  453. *
  454. * @return DriverInvoices
  455. */
  456. public function setTotalAppFees($totalAppFees)
  457. {
  458. $this->totalAppFees = $totalAppFees;
  459. return $this;
  460. }
  461. /**
  462. * Get totalAppFees
  463. *
  464. * @return string
  465. */
  466. public function getTotalAppFees()
  467. {
  468. return $this->totalAppFees;
  469. }
  470. /**
  471. * Set totalAdminFees
  472. *
  473. * @param string $totalAdminFees
  474. *
  475. * @return DriverInvoices
  476. */
  477. public function setTotalAdminFees($totalAdminFees)
  478. {
  479. $this->totalAdminFees = $totalAdminFees;
  480. return $this;
  481. }
  482. /**
  483. * Get totalAdminFees
  484. *
  485. * @return string
  486. */
  487. public function getTotalAdminFees()
  488. {
  489. return $this->totalAdminFees;
  490. }
  491. /**
  492. * Set totalInvoiceBalance
  493. *
  494. * @param string $totalInvoiceBalance
  495. *
  496. * @return DriverInvoices
  497. */
  498. public function setTotalInvoiceBalance($totalInvoiceBalance)
  499. {
  500. $this->totalInvoiceBalance = $totalInvoiceBalance;
  501. return $this;
  502. }
  503. /**
  504. * Get totalInvoiceBalance
  505. *
  506. * @return string
  507. */
  508. public function getTotalInvoiceBalance()
  509. {
  510. return $this->totalInvoiceBalance;
  511. }
  512. /**
  513. * Set officePercentageCommission
  514. *
  515. * @param string $officePercentageCommission
  516. *
  517. * @return DriverInvoices
  518. */
  519. public function setOfficePercentageCommission($officePercentageCommission)
  520. {
  521. $this->officePercentageCommission = $officePercentageCommission;
  522. return $this;
  523. }
  524. /**
  525. * Get officePercentageCommission
  526. *
  527. * @return string
  528. */
  529. public function getOfficePercentageCommission()
  530. {
  531. return $this->officePercentageCommission;
  532. }
  533. /**
  534. * Set status
  535. *
  536. * @param integer $status
  537. *
  538. * @return DriverInvoices
  539. */
  540. public function setStatus($status)
  541. {
  542. $this->status = $status;
  543. return $this;
  544. }
  545. /**
  546. * Get status
  547. *
  548. * @return integer
  549. */
  550. public function getStatus()
  551. {
  552. return $this->status;
  553. }
  554. public function getStringStatus($status)
  555. {
  556. return self::$paymentStatuses[$status];
  557. }
  558. /**
  559. * Set invoiceDate
  560. *
  561. * @param \DateTime $invoiceDate
  562. *
  563. * @return DriverInvoices
  564. */
  565. public function setInvoiceDate($invoiceDate)
  566. {
  567. $this->invoiceDate = $invoiceDate;
  568. return $this;
  569. }
  570. /**
  571. * Get invoiceDate
  572. *
  573. * @return \DateTime
  574. */
  575. public function getInvoiceDate()
  576. {
  577. return $this->invoiceDate;
  578. }
  579. /**
  580. * Set pdfFile
  581. *
  582. * @param string $pdfFile
  583. *
  584. * @return DriverInvoices
  585. */
  586. public function setPdfFile($pdfFile)
  587. {
  588. $this->pdfFile = $pdfFile;
  589. return $this;
  590. }
  591. /**
  592. * Get pdfFile
  593. *
  594. * @return string
  595. */
  596. public function getPdfFile()
  597. {
  598. return $this->pdfFile;
  599. }
  600. /**
  601. * Set pdfGenDate
  602. *
  603. * @param \DateTime $pdfGenDate
  604. *
  605. * @return DriverInvoices
  606. */
  607. public function setPdfGenDate($pdfGenDate)
  608. {
  609. $this->pdfGenDate = $pdfGenDate;
  610. return $this;
  611. }
  612. /**
  613. * Get pdfGenDate
  614. *
  615. * @return \DateTime
  616. */
  617. public function getPdfGenDate()
  618. {
  619. return $this->pdfGenDate;
  620. }
  621. /**
  622. * Set sentDate
  623. *
  624. * @param \DateTime $sentDate
  625. *
  626. * @return DriverInvoices
  627. */
  628. public function setSentDate($sentDate)
  629. {
  630. $this->sentDate = $sentDate;
  631. return $this;
  632. }
  633. /**
  634. * Get sentDate
  635. *
  636. * @return \DateTime
  637. */
  638. public function getSentDate()
  639. {
  640. return $this->sentDate;
  641. }
  642. /**
  643. * Set readyToSend
  644. *
  645. * @param boolean $readyToSend
  646. *
  647. * @return DriverInvoices
  648. */
  649. public function setReadyToSend($readyToSend)
  650. {
  651. $this->readyToSend = $readyToSend;
  652. return $this;
  653. }
  654. /**
  655. * Get readyToSend
  656. *
  657. * @return boolean
  658. */
  659. public function getReadyToSend()
  660. {
  661. return $this->readyToSend;
  662. }
  663. /**
  664. * Set approval
  665. *
  666. * @param integer $approval
  667. *
  668. * @return DriverInvoices
  669. */
  670. public function setApproval($approval)
  671. {
  672. $this->approval = $approval;
  673. return $this;
  674. }
  675. /**
  676. * Get approval
  677. *
  678. * @return integer
  679. */
  680. public function getApproval()
  681. {
  682. return $this->approval;
  683. }
  684. public function getStringApproval($approval)
  685. {
  686. return self::$invoiceApproval[$approval];
  687. }
  688. /**
  689. * Add invoiceItem
  690. *
  691. * @param \AdminBundle\Entity\DriverInvoiceItems $invoiceItem
  692. *
  693. * @return DriverInvoices
  694. */
  695. public function addInvoiceItem(\AdminBundle\Entity\DriverInvoiceItems $invoiceItem)
  696. {
  697. $this->invoiceItems[] = $invoiceItem;
  698. return $this;
  699. }
  700. /**
  701. * Remove invoiceItem
  702. *
  703. * @param \AdminBundle\Entity\DriverInvoiceItems $invoiceItem
  704. */
  705. public function removeInvoiceItem(\AdminBundle\Entity\DriverInvoiceItems $invoiceItem)
  706. {
  707. $this->invoiceItems->removeElement($invoiceItem);
  708. }
  709. /**
  710. * Get invoiceItems
  711. *
  712. * @return \Doctrine\Common\Collections\Collection
  713. */
  714. public function getInvoiceItems()
  715. {
  716. return $this->invoiceItems;
  717. }
  718. /**
  719. * Set driver
  720. *
  721. * @param \AdminBundle\Entity\Driver $driver
  722. *
  723. * @return DriverInvoices
  724. */
  725. public function setDriver(\AdminBundle\Entity\Driver $driver = null)
  726. {
  727. $this->driver = $driver;
  728. return $this;
  729. }
  730. /**
  731. * Get driver
  732. *
  733. * @return \AdminBundle\Entity\Driver
  734. */
  735. public function getDriver()
  736. {
  737. return $this->driver;
  738. }
  739. /**
  740. * @return float
  741. */
  742. public function getTotalGeneralAdjustmentAmount()
  743. {
  744. return $this->totalGeneralAdjustmentAmount;
  745. }
  746. /**
  747. * @param float $totalGeneralAdjustmentAmount
  748. */
  749. public function setTotalGeneralAdjustmentAmount($totalGeneralAdjustmentAmount)
  750. {
  751. $this->totalGeneralAdjustmentAmount = $totalGeneralAdjustmentAmount;
  752. }
  753. /**
  754. * @return float
  755. */
  756. public function getTotalDriverAdjustmentAmount()
  757. {
  758. return $this->totalDriverAdjustmentAmount;
  759. }
  760. /**
  761. * @param float $totalDriverAdjustmentAmount
  762. */
  763. public function setTotalDriverAdjustmentAmount($totalDriverAdjustmentAmount)
  764. {
  765. $this->totalDriverAdjustmentAmount = $totalDriverAdjustmentAmount;
  766. }
  767. /**
  768. * @return bool
  769. */
  770. public function getRegenerateInvoice()
  771. {
  772. return $this->regenerateInvoice;
  773. }
  774. /**
  775. * @param bool $regenerateInvoice
  776. */
  777. public function setRegenerateInvoice($regenerateInvoice)
  778. {
  779. $this->regenerateInvoice = $regenerateInvoice;
  780. }
  781. /**
  782. * @return string
  783. */
  784. public function getNotice()
  785. {
  786. return !empty($this->notice)?unserialize($this->notice):null;
  787. }
  788. /**
  789. * @param string $notice
  790. */
  791. public function setNotice($notice)
  792. {
  793. $this->notice = $notice;
  794. }
  795. /**
  796. * @return string
  797. */
  798. public function getOfficeCommissionUpTo1000()
  799. {
  800. return $this->officeCommissionUpTo1000;
  801. }
  802. /**
  803. * @param string $officeCommissionUpTo1000
  804. */
  805. public function setOfficeCommissionUpTo1000($officeCommissionUpTo1000)
  806. {
  807. $this->officeCommissionUpTo1000 = $officeCommissionUpTo1000;
  808. }
  809. /**
  810. * @return string
  811. */
  812. public function getOfficeCommissionUpTo1500()
  813. {
  814. return $this->officeCommissionUpTo1500;
  815. }
  816. /**
  817. * @param string $officeCommissionUpTo1500
  818. */
  819. public function setOfficeCommissionUpTo1500($officeCommissionUpTo1500)
  820. {
  821. $this->officeCommissionUpTo1500 = $officeCommissionUpTo1500;
  822. }
  823. /**
  824. * @return string
  825. */
  826. public function getOfficeCommissionOver1500()
  827. {
  828. return $this->officeCommissionOver1500;
  829. }
  830. /**
  831. * @param string $officeCommissionOver1500
  832. */
  833. public function setOfficeCommissionOver1500($officeCommissionOver1500)
  834. {
  835. $this->officeCommissionOver1500 = $officeCommissionOver1500;
  836. }
  837. /**
  838. * @return string
  839. */
  840. public function getSpecialOfficeCommission()
  841. {
  842. return $this->specialOfficeCommission;
  843. }
  844. /**
  845. * @param string $specialOfficeCommission
  846. */
  847. public function setSpecialOfficeCommission($specialOfficeCommission)
  848. {
  849. $this->specialOfficeCommission = $specialOfficeCommission;
  850. }
  851. /**
  852. * @return string
  853. */
  854. public function getSpecialCommissionEndDate()
  855. {
  856. return $this->specialCommissionEndDate;
  857. }
  858. /**
  859. * @param string $specialCommissionEndDate
  860. */
  861. public function setSpecialCommissionEndDate($specialCommissionEndDate)
  862. {
  863. $this->specialCommissionEndDate = $specialCommissionEndDate;
  864. }
  865. /**
  866. * @return string
  867. */
  868. public function getSpecialCommissionStartDate()
  869. {
  870. return $this->specialCommissionStartDate;
  871. }
  872. /**
  873. * @param string $specialCommissionStartDate
  874. */
  875. public function setSpecialCommissionStartDate($specialCommissionStartDate)
  876. {
  877. $this->specialCommissionStartDate = $specialCommissionStartDate;
  878. }
  879. /**
  880. * @return string
  881. */
  882. public function getJobTier1()
  883. {
  884. return $this->jobTier1;
  885. }
  886. /**
  887. * @param string $jobTier1
  888. */
  889. public function setJobTier1($jobTier1)
  890. {
  891. $this->jobTier1 = $jobTier1;
  892. }
  893. /**
  894. * @return string
  895. */
  896. public function getJobTier2()
  897. {
  898. return $this->jobTier2;
  899. }
  900. /**
  901. * @param string $jobTier2
  902. */
  903. public function setJobTier2($jobTier2)
  904. {
  905. $this->jobTier2 = $jobTier2;
  906. }
  907. /**
  908. * @return string
  909. */
  910. public function getJobTier3()
  911. {
  912. return $this->jobTier3;
  913. }
  914. /**
  915. * @param string $jobTier3
  916. */
  917. public function setJobTier3($jobTier3)
  918. {
  919. $this->jobTier3 = $jobTier3;
  920. }
  921. /**
  922. * @return string
  923. */
  924. public function getJobSpecialTier()
  925. {
  926. return $this->jobSpecialTier;
  927. }
  928. /**
  929. * @param string $jobSpecialTier
  930. */
  931. public function setJobSpecialTier($jobSpecialTier)
  932. {
  933. $this->jobSpecialTier = $jobSpecialTier;
  934. }
  935. /**
  936. * @return bool
  937. */
  938. public function isDriverBonusFeatureActive()
  939. {
  940. return $this->driverBonusFeatureActive;
  941. }
  942. /**
  943. * @param bool $driverBonusFeatureActive
  944. */
  945. public function setDriverBonusFeatureActive($driverBonusFeatureActive)
  946. {
  947. $this->driverBonusFeatureActive = $driverBonusFeatureActive;
  948. }
  949. /**
  950. * @return string
  951. */
  952. public function getDriverBonusValue()
  953. {
  954. return $this->driverBonusValue;
  955. }
  956. /**
  957. * @param string $driverBonusValue
  958. */
  959. public function setDriverBonusValue($driverBonusValue)
  960. {
  961. $this->driverBonusValue = $driverBonusValue;
  962. }
  963. /**
  964. * @return mixed
  965. */
  966. public function getDriverBonusThreshold()
  967. {
  968. return $this->driverBonusThreshold;
  969. }
  970. /**
  971. * @param mixed $driverBonusThreshold
  972. */
  973. public function setDriverBonusThreshold($driverBonusThreshold)
  974. {
  975. $this->driverBonusThreshold = $driverBonusThreshold;
  976. }
  977. /**
  978. * @return string
  979. */
  980. public function getDriverBonusPeriod()
  981. {
  982. return $this->driverBonusPeriod;
  983. }
  984. /**
  985. * @param string $driverBonusPeriod
  986. */
  987. public function setDriverBonusPeriod($driverBonusPeriod)
  988. {
  989. $this->driverBonusPeriod = $driverBonusPeriod;
  990. }
  991. /**
  992. * @return string
  993. */
  994. public function getDriverQueueBonus()
  995. {
  996. return $this->driverQueueBonus;
  997. }
  998. /**
  999. * @param string $driverQueueBonus
  1000. */
  1001. public function setDriverQueueBonus($driverQueueBonus)
  1002. {
  1003. $this->driverQueueBonus = $driverQueueBonus;
  1004. }
  1005. /**
  1006. * @return string
  1007. */
  1008. public function getJobInstantTier()
  1009. {
  1010. return $this->jobInstantTier;
  1011. }
  1012. /**
  1013. * @param string $jobInstantTier
  1014. */
  1015. public function setJobInstantTier($jobInstantTier)
  1016. {
  1017. $this->jobInstantTier = $jobInstantTier;
  1018. }
  1019. /**
  1020. * @return string
  1021. */
  1022. public function getInstantOfficeCommission()
  1023. {
  1024. return $this->instantOfficeCommission;
  1025. }
  1026. /**
  1027. * @param string $instantOfficeCommission
  1028. */
  1029. public function setInstantOfficeCommission($instantOfficeCommission)
  1030. {
  1031. $this->instantOfficeCommission = $instantOfficeCommission;
  1032. }
  1033. /**
  1034. * @return string
  1035. */
  1036. public function getInstantOfficeCommissionPercentage()
  1037. {
  1038. return $this->instantOfficeCommissionPercentage;
  1039. }
  1040. /**
  1041. * @param string $instantOfficeCommissionPercentage
  1042. */
  1043. public function setInstantOfficeCommissionPercentage($instantOfficeCommissionPercentage)
  1044. {
  1045. $this->instantOfficeCommissionPercentage = $instantOfficeCommissionPercentage;
  1046. }
  1047. /**
  1048. * @return string
  1049. */
  1050. public function getTotalDriverTip()
  1051. {
  1052. return $this->totalDriverTip;
  1053. }
  1054. /**
  1055. * @param string $totalDriverTip
  1056. */
  1057. public function setTotalDriverTip($totalDriverTip)
  1058. {
  1059. $this->totalDriverTip = $totalDriverTip;
  1060. }
  1061. /**
  1062. * @return string
  1063. */
  1064. public function getJobTier0()
  1065. {
  1066. return $this->jobTier0;
  1067. }
  1068. /**
  1069. * @param string $jobTier0
  1070. */
  1071. public function setJobTier0($jobTier0)
  1072. {
  1073. $this->jobTier0 = $jobTier0;
  1074. }
  1075. /**
  1076. * @return string
  1077. */
  1078. public function getOfficeCommissionUpTo500()
  1079. {
  1080. return $this->officeCommissionUpTo500;
  1081. }
  1082. /**
  1083. * @param string $officeCommissionUpTo500
  1084. */
  1085. public function setOfficeCommissionUpTo500($officeCommissionUpTo500)
  1086. {
  1087. $this->officeCommissionUpTo500 = $officeCommissionUpTo500;
  1088. }
  1089. /**
  1090. * @return string
  1091. */
  1092. public function getDriverReferralBonus()
  1093. {
  1094. return $this->driverReferralBonus;
  1095. }
  1096. /**
  1097. * @param string $driverReferralBonus
  1098. */
  1099. public function setDriverReferralBonus($driverReferralBonus)
  1100. {
  1101. $this->driverReferralBonus = $driverReferralBonus;
  1102. }
  1103. }