houdini/docs/event_definitions/Nonprofit/Transaction/StripeTransaction/index.ts
Eric Schultz 2c791b920c Add stripe_refund.* publishing
Co-authored-by: Clarissa Lima Borges <clarissa@commitchange.com>
2021-07-14 11:23:22 -05:00

22 lines
970 B
TypeScript

// License: LGPL-3.0-or-later
import type { HouID, HoudiniEvent } from "../../../common";
import type { Payment, Subtransaction} from "..";
export interface CommonStripeTransactionPayment extends Payment {
stripe_id: string;
subtransaction: HouID | StripeTransaction;
}
export default interface StripeTransaction extends Subtransaction {
object: 'stripe_transaction';
}
export type StripeTransactionCreated = HoudiniEvent<'stripe_transaction.created', StripeTransaction>;
export type StripeTransactionUpdated = HoudiniEvent<'stripe_transaction.updated', StripeTransaction>;
export type StripeTransactionRefunded = HoudiniEvent<'stripe_transaction.refunded', StripeTransaction>;
export type StripeTransactionDisputed = HoudiniEvent<'stripe_transaction.disputed', StripeTransaction>;
export type StripeTransactionDeleted = HoudiniEvent<'stripe_transaction.deleted', StripeTransaction>;
export * from './Charge';
export * from './Dispute';
export * from './Refund';