import { z } from 'zod';

export const BuyerStatus = {
  NotSet: 0,
  Blocked: 1,
  Check: 2,
  LowDegreeOfCreditworthiness: 4,
  Dunning1: 8,
  Dunning2: 16,
} as const;

export const BuyerStatusSchema = z.nativeEnum(BuyerStatus).describe('Buyer status');

export type BuyerStatus = z.infer<typeof BuyerStatusSchema>;
