2021-02-08 15:22:35 -06:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-04-07 16:43:58 -05:00
|
|
|
import type { HouID, HoudiniEvent, Amount, IDType} from '../../common';
|
2021-02-08 15:22:35 -06:00
|
|
|
import type Nonprofit from '..';
|
|
|
|
import type Campaign from '.';
|
|
|
|
import type { CampaignGift } from '.';
|
2021-04-07 16:43:58 -05:00
|
|
|
import type { TrxAssignment } from '../Transaction';
|
2021-02-08 15:22:35 -06:00
|
|
|
|
2021-04-07 16:43:58 -05:00
|
|
|
export interface CampaignGiftPurchase extends TrxAssignment {
|
2021-02-08 15:22:35 -06:00
|
|
|
amount: Amount;
|
2021-02-22 13:01:34 -06:00
|
|
|
campaign: IDType | Campaign;
|
2021-02-08 15:22:35 -06:00
|
|
|
campaign_gifts: HouID[] | CampaignGift[];
|
2021-02-22 13:01:34 -06:00
|
|
|
nonprofit: IDType | Nonprofit;
|
2021-02-08 15:22:35 -06:00
|
|
|
object: 'campaign_gift_purchase';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2021-02-08 16:33:19 -06:00
|
|
|
export type CampaignGiftPurchaseCreated = HoudiniEvent<'campaign_gift_purchase.created', CampaignGiftPurchase>;
|
|
|
|
export type CampaignGiftPurchaseUpdated = HoudiniEvent<'campaign_gift_purchase.updated', CampaignGiftPurchase>;
|
|
|
|
export type CampaignGiftPurchaseDeleted = HoudiniEvent<'campaign_gift_purchase.deleted', CampaignGiftPurchase>;
|