-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathconfig.yml
140 lines (135 loc) · 4.85 KB
/
config.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
sylius_resource:
resources:
sylius_refund.credit_memo:
classes:
model: Sylius\RefundPlugin\Entity\CreditMemo
sylius_refund.line_item:
classes:
model: Sylius\RefundPlugin\Entity\LineItem
interface: Sylius\RefundPlugin\Entity\LineItemInterface
sylius_refund.tax_item:
classes:
model: Sylius\RefundPlugin\Entity\TaxItem
interface: Sylius\RefundPlugin\Entity\TaxItemInterface
sylius_refund.refund:
classes:
model: Sylius\RefundPlugin\Entity\Refund
factory: Sylius\RefundPlugin\Factory\RefundFactory
sylius_refund.refund_payment:
classes:
model: Sylius\RefundPlugin\Entity\RefundPayment
sylius_mailer:
emails:
units_refunded:
subject: Units refunded
template: "@SyliusRefundPlugin/Email/unitsRefunded.html.twig"
framework:
messenger:
buses:
sylius_refund_plugin.command_bus: ~
sylius_refund_plugin.event_bus:
default_middleware: allow_no_handlers
winzou_state_machine:
sylius_order:
states:
fully_refunded: ~
transitions:
refund:
from: [new, fulfilled]
to: fully_refunded
sylius_refund_refund_payment:
class: Sylius\RefundPlugin\Entity\RefundPayment
property_path: state
graph: sylius_refund_refund_payment
state_machine_class: "%sylius.state_machine.class%"
states:
New: ~
Completed: ~
transitions:
complete:
from: [New]
to: Completed
sylius_grid:
templates:
filter:
credit_memo_channel: '@SyliusRefundPlugin/Grid/Filter/channel.html.twig'
grids:
sylius_refund_credit_memo:
driver:
name: doctrine/orm
options:
class: Sylius\RefundPlugin\Entity\CreditMemo
sorting:
number: asc
fields:
number:
type: string
label: sylius.ui.number
sortable: ~
order:
type: twig
label: sylius.ui.order
sortable: ~
options:
template: "@SyliusRefundPlugin/Order/Grid/Field/number.html.twig"
channel:
type: twig
label: sylius.ui.channel
options:
template: "@SyliusRefundPlugin/Order/Grid/Field/channel.html.twig"
total:
type: twig
label: sylius.ui.total
path: .
sortable: total
options:
template: "@SyliusAdmin/Order/Grid/Field/total.html.twig"
issuedAt:
type: datetime
label: sylius_refund.ui.issued_at
options:
format: 'Y-m-d H:i:s'
actions:
item:
show:
type: show
label: sylius.ui.show
icon: eye
options:
link:
route: sylius_refund_credit_memo_details
parameters:
id: resource.id
orderNumber: resource.order.number
download:
type: default
label: sylius_refund.ui.download
icon: download
options:
link:
route: sylius_refund_admin_credit_memo_download
parameters:
id: resource.id
resend:
type: default
label: sylius_refund.ui.resend
icon: send
options:
link:
route: sylius_refund_admin_credit_memo_send
parameters:
id: resource.id
filters:
number:
type: string
label: sylius.ui.number
issuedAt:
type: date
label: sylius_refund.ui.issued_at
channel:
type: credit_memo_channel
label: sylius.ui.channel
doctrine:
dbal:
types:
sylius_refund_refund_type: Sylius\RefundPlugin\Entity\Type\RefundEnumType