import z from 'zod';

export const PaymentType = {
  NotSet: 0,
  WhenCollecting: 1,
  Free: 2,
  Cash: 4,
  DirectDebit: 8,
  DebitAdviceMandate: 16,
  DebitCard: 32,
  CreditCard: 64,
  Invoice: 128,
  PrePayment: 256,
  Voucher: 512,
  CollectiveInvoice: 1024,
  PayPal: 2048,
  InstantTransfer: 4096,
  PayOnDelivery: 8192,
  BonusCard: 16384,
  AmazonPay: 32768,
} as const;

export const PaymentTypeSchema = z.nativeEnum(PaymentType).describe('Payment type');

export type PaymentType = z.infer<typeof PaymentTypeSchema>;
