123456789101112131415161718192021 |
- import type {DiscountInfo as TDiscountInfo} from 'getsentry/types';
- type Props = Partial<TDiscountInfo>;
- export function DiscountInfoFixture(props: Props): TDiscountInfo {
- return {
- amount: 0,
- billingInterval: 'monthly',
- billingPeriods: 1,
- // TODO: better typing
- creditCategory: '',
- disclaimerText: '',
- discountType: 'events',
- durationText: 'Monthly',
- maxCentsPerPeriod: 0,
- modalDisclaimerText: '',
- planRequirement: null,
- reminderText: '',
- ...props,
- };
- }
|