New voucher CIEFPC30 setup with new business logic

This commit is contained in:
Dillon Ngo
2024-12-09 07:48:13 +08:00
parent 0e97a46f76
commit a3714176ff
7 changed files with 34 additions and 17 deletions
@@ -13,6 +13,9 @@ class UpdateVoucherifyOrderObject implements DataTransferObject
/** @var int */
private $bookingId;
/** @var int */
private $transactionId;
/** @var string */
private $status;
@@ -20,12 +23,14 @@ class UpdateVoucherifyOrderObject implements DataTransferObject
* UpdateVoucherifyOrderObject constructor.
* @param string $voucherifyOrderId
* @param int $bookingId
* @param int $transactionId
* @param string $status
*/
public function __construct(string $voucherifyOrderId, int $bookingId, string $status)
public function __construct(string $voucherifyOrderId, int $bookingId, int $transactionId, string $status)
{
$this->voucherifyOrderId = $voucherifyOrderId;
$this->bookingId = $bookingId;
$this->transactionId = $transactionId;
$this->status = $status;
}
@@ -45,6 +50,14 @@ class UpdateVoucherifyOrderObject implements DataTransferObject
return $this->bookingId;
}
/**
* @return int
*/
public function getTransactionId(): int
{
return $this->transactionId;
}
/**
* @return string
*/