recurringCredit.ts 460 B

12345678910111213141516
  1. import moment from 'moment-timezone';
  2. import type {RecurringCredit as TRecurringCredit} from 'getsentry/types';
  3. import {CreditType} from 'getsentry/types';
  4. export function RecurringCreditFixture(params?: TRecurringCredit): TRecurringCredit {
  5. return {
  6. id: 1,
  7. periodStart: moment().format(),
  8. periodEnd: moment().utc().add(3, 'months').format(),
  9. amount: 50000,
  10. type: CreditType.ERROR,
  11. totalAmountRemaining: null,
  12. ...params,
  13. };
  14. }