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

21 lines
650 B
TypeScript
Raw Normal View History

// 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';