/*
 * 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 CustomerBenefitGrantLicenseKeysUpdate = {
  benefitType: "license_keys";
};

/** @internal */
export type CustomerBenefitGrantLicenseKeysUpdate$Outbound = {
  benefit_type: "license_keys";
};

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

export function customerBenefitGrantLicenseKeysUpdateToJSON(
  customerBenefitGrantLicenseKeysUpdate: CustomerBenefitGrantLicenseKeysUpdate,
): string {
  return JSON.stringify(
    CustomerBenefitGrantLicenseKeysUpdate$outboundSchema.parse(
      customerBenefitGrantLicenseKeysUpdate,
    ),
  );
}
