import { z } from 'zod'; import { VatTypeSchema } from '@isa/common/data-access'; // Schema for the flat Price type (not PriceDTO) // This matches the Price interface from generated/swagger/checkout-api/src/models/price.ts export const PriceFlatSchema = z.object({ currency: z.string().describe('Currency code').optional(), currencySymbol: z.string().describe('Currency symbol').optional(), validFrom: z.string().describe('Validity start date').optional(), value: z.number().describe('Value'), vatInPercent: z.number().describe('Vat in percent').optional(), vatType: VatTypeSchema.describe('VAT type'), vatValue: z.number().describe('VAT amount value').optional(), }); export type PriceFlat = z.infer;