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

import * as z from "zod/v4-mini";
import { remap as remap$ } from "../../lib/primitives.js";

export type CustomerBenefitGrantDownloadablesUpdate = {
  benefitType: "downloadables";
};

/** @internal */
export type CustomerBenefitGrantDownloadablesUpdate$Outbound = {
  benefit_type: "downloadables";
};

/** @internal */
export const CustomerBenefitGrantDownloadablesUpdate$outboundSchema:
  z.ZodMiniType<
    CustomerBenefitGrantDownloadablesUpdate$Outbound,
    CustomerBenefitGrantDownloadablesUpdate
  > = z.pipe(
    z.object({
      benefitType: z.literal("downloadables"),
    }),
    z.transform((v) => {
      return remap$(v, {
        benefitType: "benefit_type",
      });
    }),
  );

export function customerBenefitGrantDownloadablesUpdateToJSON(
  customerBenefitGrantDownloadablesUpdate:
    CustomerBenefitGrantDownloadablesUpdate,
): string {
  return JSON.stringify(
    CustomerBenefitGrantDownloadablesUpdate$outboundSchema.parse(
      customerBenefitGrantDownloadablesUpdate,
    ),
  );
}
