2021-02-08 21:22:35 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-02-22 19:01:34 +00:00
|
|
|
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IDType} from '../../common';
|
2021-02-08 21:22:35 +00:00
|
|
|
import type Nonprofit from '..';
|
|
|
|
import type Campaign from '.';
|
|
|
|
import type { CampaignGiftPurchase, CampaignGiftOption } from '.';
|
|
|
|
import type Supporter from '../Supporter';
|
|
|
|
|
|
|
|
export interface TransactionAddress {
|
|
|
|
address: string;
|
|
|
|
city: string;
|
|
|
|
country: string;
|
|
|
|
state_code: string;
|
|
|
|
zip_code: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CampaignGift extends HoudiniObject<HouID> {
|
|
|
|
address?: TransactionAddress;
|
|
|
|
amount: Amount;
|
2021-02-22 19:01:34 +00:00
|
|
|
campaign: IDType | Campaign;
|
|
|
|
campaign_gift_option: IDType | CampaignGiftOption;
|
|
|
|
campaign_gift_purchase: IDType | CampaignGiftPurchase;
|
2021-02-08 21:22:35 +00:00
|
|
|
deleted: boolean;
|
2021-02-22 19:01:34 +00:00
|
|
|
event: IDType | Event;
|
|
|
|
nonprofit: IDType | Nonprofit;
|
2021-02-08 21:22:35 +00:00
|
|
|
object: 'campaign_gift';
|
2021-02-22 19:01:34 +00:00
|
|
|
supporter: IDType | Supporter;
|
2021-02-08 21:22:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type CampaignGiftCreated = HoudiniEvent<'campaign_gift.created', CampaignGift>;
|
|
|
|
export type CampaignGiftUpdated = HoudiniEvent<'campaign_gift.updated', CampaignGift>;
|
|
|
|
export type CampaignGiftDeleted = HoudiniEvent<'campaign_gift.deleted', CampaignGift>;
|