Admin Workflow - Code Refactor for development branch only

This commit is contained in:
Dillon Ngo
2025-02-28 18:26:58 +08:00
parent 215c2be9f6
commit 428e588d5a
@@ -165,7 +165,7 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
throw new MalformedRequestException('Your payment must not be greater than '. $outstanding .'.');
}
private function handlePaymentMethods(Booking $booking, CalculationObject $configurations, string $billNumber, string $bankCode, string $email, string $paymentMethod): ?string
private function handlePaymentMethods(Booking $booking, CalculationObject $configurations, string $billNumber, ?string $bankCode, string $email, string $paymentMethod): ?string
{
$paymentReference = null;
@@ -178,7 +178,7 @@ class CreateBookingPaymentLogic extends AbstractControllerLogic
return $paymentReference;
}
private function handlePaymentGateway(Booking $booking, CalculationObject $configurations, string $billNumber, string $bankCode, string $email): string
private function handlePaymentGateway(Booking $booking, CalculationObject $configurations, string $billNumber, ?string $bankCode, string $email): string
{
$billPlzBill = $this->createsBillplzBill->execute(
$booking->company->name,