fix: partial feedback address

This commit is contained in:
fPolic
2024-01-15 10:34:45 +01:00
parent a7f74bdfb8
commit aabe164793
8 changed files with 18 additions and 964 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import {
BeforeCreate,
Cascade,
Collection,
Entity,
Filter,
@@ -103,12 +104,12 @@ export default class Payment {
canceled_at: Date | null
@OneToMany(() => Refund, (refund) => refund.payment, {
orphanRemoval: true,
cascade: [Cascade.REMOVE],
})
refunds = new Collection<Refund>(this)
@OneToMany(() => Capture, (capture) => capture.payment, {
orphanRemoval: true,
cascade: [Cascade.REMOVE],
})
captures = new Collection<Capture>(this)