2021-02-02 21:04:53 +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 21:04:53 +00:00
|
|
|
import type Nonprofit from '..';
|
|
|
|
import type Supporter from ".";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Represents a transaction made by a supporter
|
|
|
|
*/
|
|
|
|
export interface Transaction extends HoudiniObject<HouID> {
|
|
|
|
amount: Amount;
|
2021-02-10 22:04:05 +00:00
|
|
|
nonprofit: IDType | Nonprofit;
|
2021-02-02 21:04:53 +00:00
|
|
|
object: 'transaction';
|
|
|
|
payment_methods: Array<unknown>;
|
|
|
|
payments: Array<unknown>;
|
|
|
|
status: string;
|
2021-02-10 22:04:05 +00:00
|
|
|
supporter: IDType | Supporter;
|
2021-02-02 21:04:53 +00:00
|
|
|
transaction_assignments: Array<unknown>;
|
|
|
|
}
|