mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-27 08:23:58 +00:00
large commit
This commit is contained in:
@@ -17,19 +17,19 @@ abstract class AbstractStepProcessor
|
||||
abstract function execute(): JsonResponse;
|
||||
|
||||
/**
|
||||
* @param OrderObject $order
|
||||
* @param int $orderId
|
||||
* @param StepObject $step
|
||||
* @return JsonResponse
|
||||
* @throws InternalServerErrorException
|
||||
*/
|
||||
public function handler(OrderObject $order, StepObject $step) {
|
||||
public function handler(int $orderId, StepObject $step) {
|
||||
try {
|
||||
|
||||
if(!$this->validator()){
|
||||
return new JsonResponse(['message' => 'Updating step validation has failed due to missing requirements'], HttpStatus::VALIDATION_FAILED);
|
||||
}
|
||||
|
||||
(new CompletesOrderStep())->execute($order, $step);
|
||||
(new CompletesOrderStep())->execute($orderId, $step);
|
||||
|
||||
/** notification */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user