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