class Refund extends VendureEntity implements HasCustomFields { constructor(input?: DeepPartial<Refund>) @Money() items: number; @Money() shipping: number; @Money() adjustment: number; @Money() total: number; @Column() method: string; @Column({ nullable: true, type: 'varchar' }) destination: string | null; @Column({ nullable: true }) reason: string; @Column('varchar') state: RefundState; @Column({ nullable: true }) transactionId: string; @OneToMany(type => RefundLine, line => line.refund) @JoinTable() lines: RefundLine[]; @Index() @ManyToOne(type => Payment, payment => payment.refunds) @JoinColumn() payment: Payment; @EntityId() paymentId: ID; @Column('simple-json') metadata: PaymentMetadata; @Column(type => CustomRefundFields) customFields: CustomRefundFields;}