-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bf458a
commit 03c8e8f
Showing
174 changed files
with
4,294 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
framework: | ||
workflows: | ||
create_order: | ||
type: 'state_machine' | ||
# marking_store: | ||
# type: 'method' | ||
# property: 'state' | ||
marking_store: | ||
service: App\Saga\CreateOrder\SagaMarkingStore | ||
supports: | ||
- App\Saga\CreateOrder\Entity\CreateOrderSagaEntity | ||
initial_marking: reservation_pending | ||
places: | ||
reservation_pending: ~ | ||
reservation_rejected: ~ | ||
reservation_confirmed: ~ | ||
|
||
payment_pending: ~ | ||
payment_rejected: ~ | ||
payment_confirmed: ~ | ||
|
||
order_completed: ~ | ||
order_cancelled: ~ | ||
transitions: | ||
confirm_reservation: | ||
from: reservation_pending | ||
to: reservation_confirmed | ||
reject_reservation: | ||
from: reservation_pending | ||
to: reservation_rejected | ||
|
||
pay_order: | ||
from: reservation_confirmed | ||
to: payment_pending | ||
confirm_payment: | ||
from: payment_pending | ||
to: payment_confirmed | ||
reject_payment: | ||
from: payment_pending | ||
to: payment_rejected | ||
|
||
complete: | ||
from: payment_confirmed | ||
to: order_completed | ||
|
||
cancel: | ||
from: [reservation_rejected, payment_rejected] | ||
to: order_cancelled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Console; | ||
|
||
use App\Payments\Application\UseCase\PaymentsUseCaseInteractor; | ||
use Symfony\Component\Console\Attribute\AsCommand; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
#[AsCommand( | ||
name: 'payments:test', | ||
)] | ||
final class TestCompletePaymentConsoleCommand extends Command | ||
{ | ||
public function __construct( | ||
private PaymentsUseCaseInteractor $paymentsUseCaseInteractor, | ||
) { | ||
parent::__construct(); | ||
} | ||
|
||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
$this->paymentsUseCaseInteractor->completePayment('ff1605cadc83ee2595f4f27bd70a3609'); | ||
|
||
return Command::SUCCESS; | ||
} | ||
} |
Oops, something went wrong.