/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; export type RecalculateInvoiceV2Request = { /** * Invoice ID */ id: string; /** * Whether to finalize the invoice after recalculation (default: true) */ finalize?: boolean | undefined; }; /** @internal */ export type RecalculateInvoiceV2Request$Outbound = { id: string; finalize?: boolean | undefined; }; /** @internal */ export const RecalculateInvoiceV2Request$outboundSchema: z.ZodMiniType< RecalculateInvoiceV2Request$Outbound, RecalculateInvoiceV2Request > = z.object({ id: z.string(), finalize: z.optional(z.boolean()), }); export function recalculateInvoiceV2RequestToJSON( recalculateInvoiceV2Request: RecalculateInvoiceV2Request, ): string { return JSON.stringify( RecalculateInvoiceV2Request$outboundSchema.parse( recalculateInvoiceV2Request, ), ); }