houdini/docs/event_definitions/Nonprofit/Campaign/CampaignGiftOption.ts

31 lines
1 KiB
TypeScript
Raw Normal View History

// License: LGPL-3.0-or-later
import type { IDType, HoudiniObject, HoudiniEvent, Amount, RecurrenceRule } from '../../common';
import type Nonprofit from '..';
import type Campaign from '.';
interface OneTimeGiftOptionAmount {
amount: Amount;
}
interface RecurringGiftOptionAmount {
amount: Amount;
recurrence: RecurrenceRule;
}
export interface CampaignGiftOption extends HoudiniObject {
campaign: IDType | Campaign;
deleted: boolean;
description: string;
gift_option_amount: Array<RecurringGiftOptionAmount | OneTimeGiftOptionAmount>;
hide_contributions: boolean;
name: string;
nonprofit: IDType | Nonprofit;
object: "campaign_gift_option";
order: number;
quantity?: number;
to_ship: boolean;
}
export type CampaignGiftOptionCreated = HoudiniEvent<'campaign_gift_option.created', CampaignGiftOption>;
export type CampaignGiftOptionUpdated = HoudiniEvent<'campaign_gift_option.updated', CampaignGiftOption>;
export type CampaignGiftOptionDeleted = HoudiniEvent<'campaign_gift_option.deleted', CampaignGiftOption>;