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

20 lines
650 B
TypeScript

// License: LGPL-3.0-or-later
import type { Amount, HoudiniObject, IDType, HouID } from "../../common";
import type Nonprofit from '../';
import type Supporter from "../Supporter";
import type { Payment } from "./Payment";
export default interface Transaction extends HoudiniObject<HouID> {
amount: Amount;
nonprofit: IDType | Nonprofit;
object: 'transaction';
payments: IDType[] | Payment[];
status: "not-submitted"|"created" | "waiting-on-supporter" | "failed" | "completed";
supporter: IDType | Supporter;
/**
* We don't specify more for now
*/
transaction_assignments: { id: HouID,object: string }[];
}
export * from './Payment';