/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v4-mini";

/**
 * A price that already exists for this product.
 *
 * @remarks
 *
 * Useful when updating a product if you want to keep an existing price.
 */
export type ExistingProductPrice = {
  id: string;
};

/** @internal */
export type ExistingProductPrice$Outbound = {
  id: string;
};

/** @internal */
export const ExistingProductPrice$outboundSchema: z.ZodMiniType<
  ExistingProductPrice$Outbound,
  ExistingProductPrice
> = z.object({
  id: z.string(),
});

export function existingProductPriceToJSON(
  existingProductPrice: ExistingProductPrice,
): string {
  return JSON.stringify(
    ExistingProductPrice$outboundSchema.parse(existingProductPrice),
  );
}
