/
state_machine.yml
40 lines (39 loc) · 1.05 KB
/
state_machine.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# This file is part of the Sylius package.
# (c) Sylius Sp. z o.o.
winzou_state_machine:
sylius_payment:
class: "%sylius.model.payment.class%"
property_path: state
graph: sylius_payment
state_machine_class: "%sylius.state_machine.class%"
states:
cart: ~
new: ~
processing: ~
completed: ~
failed: ~
cancelled: ~
void: ~
refunded: ~
transitions:
create:
from: [cart]
to: new
process:
from: [new]
to: processing
complete:
from: [new, processing]
to: completed
fail:
from: [new, processing]
to: failed
cancel:
from: [new, processing]
to: cancelled
refund:
from: [completed]
to: refunded
void:
from: [new, processing]
to: void