Files
cfw-autumn/shared/api/billing/common/attachPreviewResponse.ts
2026-02-04 15:55:37 +00:00

14 lines
543 B
TypeScript

import { z } from "zod/v4";
import { CheckoutChangeSchema } from "../../../internal/checkout/checkoutResponses.js";
import { BillingPreviewResponseSchema } from "./billingPreviewResponse.js";
/**
* Attach preview response - extends BillingPreviewResponse with incoming/outgoing changes
*/
export const AttachPreviewResponseSchema = BillingPreviewResponseSchema.extend({
incoming: z.array(CheckoutChangeSchema),
outgoing: z.array(CheckoutChangeSchema),
});
export type AttachPreviewResponse = z.infer<typeof AttachPreviewResponseSchema>;