20 lines
493 B
PHP
20 lines
493 B
PHP
<?php
|
|
|
|
namespace App\Domains\Event\Actions\ParticipantPayment;
|
|
|
|
class ParticipantPaymentCommand {
|
|
public function __construct(public ParticipantPaymentRequest $request) {
|
|
}
|
|
|
|
public function execute() : ParticipantPaymentResponse {
|
|
$response = new ParticipantPaymentResponse();
|
|
|
|
$this->request->participant->amount_paid = $this->request->amountPaid;
|
|
$this->request->participant->save();
|
|
|
|
$response->success = true;
|
|
|
|
return $response;
|
|
}
|
|
}
|