discountInfo.ts 512 B

123456789101112131415161718192021
  1. import type {DiscountInfo as TDiscountInfo} from 'getsentry/types';
  2. type Props = Partial<TDiscountInfo>;
  3. export function DiscountInfoFixture(props: Props): TDiscountInfo {
  4. return {
  5. amount: 0,
  6. billingInterval: 'monthly',
  7. billingPeriods: 1,
  8. // TODO: better typing
  9. creditCategory: '',
  10. disclaimerText: '',
  11. discountType: 'events',
  12. durationText: 'Monthly',
  13. maxCentsPerPeriod: 0,
  14. modalDisclaimerText: '',
  15. planRequirement: null,
  16. reminderText: '',
  17. ...props,
  18. };
  19. }