From 428e588d5aee719ff499acafffb3b900daa59189 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Fri, 28 Feb 2025 18:26:58 +0800 Subject: [PATCH] Admin Workflow - Code Refactor for development branch only --- .../Bookings/ControllersLogic/CreateBookingPaymentLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php index e949c650..e0d49b0e 100644 --- a/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php +++ b/app/Classes/Modules/Bookings/ControllersLogic/CreateBookingPaymentLogic.php @@ -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,