houdini/docs/event_definitions/Nonprofit/Transaction/Donation.ts

25 lines
652 B
TypeScript
Raw Normal View History

2021-02-08 20:55:31 +00:00
// License: LGPL-3.0-or-later
import type { HoudiniEvent } from "../../common";
import type { TrxAssignment } from './';
2021-02-08 20:55:31 +00:00
interface Dedication {
contact?: {
address?: string;
email?: string;
phone?: string;
};
name: string;
note?: string;
type: 'honor' | 'memory';
}
export interface Donation extends TrxAssignment {
2021-02-08 20:55:31 +00:00
dedication?: Dedication | null;
designation?: string | null;
object: 'donation';
}
export type DonationCreated = HoudiniEvent<'donation.created', Donation>;
export type DonationUpdated = HoudiniEvent<'donation.updated', Donation>;
export type DonationDeleted = HoudiniEvent<'donation.deleted', Donation>;