E-Invoice - New business rule, transfer now has duration limit (Payment attempt duration limit)

This commit is contained in:
Dillon Ngo
2025-05-18 21:45:32 +08:00
parent f524bc37de
commit d3de6f8997
10 changed files with 235 additions and 6 deletions
@@ -0,0 +1,25 @@
<?php
namespace App\Classes\Modules\Rules\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class CheckTransferRuleDTO implements DataTransferObject
{
public int $bookingId;
public int $companyId;
public function __construct(array $data)
{
$this->bookingId = $data['booking_id'];
$this->companyId = $data['company_id'];
}
public function toArray(): array
{
return [
'booking_id' => $this->bookingId,
'company_id' => $this->companyId,
];
}
}