New voucher CIEFPC30 setup with new business logic

This commit is contained in:
Dillon Ngo
2024-12-09 06:29:39 +08:00
parent 0ab5ed76a5
commit 0e97a46f76
9 changed files with 41 additions and 23 deletions
@@ -8,28 +8,41 @@ use App\Classes\General\Interfaces\DataTransferObject;
class UpdateVoucherifyOrderObject implements DataTransferObject
{
/** @var string */
private $id;
private $voucherifyOrderId;
/** @var int */
private $bookingId;
/** @var string */
private $status;
/**
* UpdateVoucherifyOrderObject constructor.
* @param string $id
* @param string $voucherifyOrderId
* @param int $bookingId
* @param string $status
*/
public function __construct(string $id, string $status)
public function __construct(string $voucherifyOrderId, int $bookingId, string $status)
{
$this->id = $id;
$this->voucherifyOrderId = $voucherifyOrderId;
$this->bookingId = $bookingId;
$this->status = $status;
}
/**
* @return string
*/
public function getId(): string
public function getVoucherifyOrderId(): string
{
return $this->id;
return $this->voucherifyOrderId;
}
/**
* @return int
*/
public function getBookingId(): int
{
return $this->bookingId;
}
/**