/*
 * 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 BenefitLicenseKeyActivationCreateProperties = {
  limit: number;
  enableCustomerAdmin: boolean;
};

/** @internal */
export type BenefitLicenseKeyActivationCreateProperties$Outbound = {
  limit: number;
  enable_customer_admin: boolean;
};

/** @internal */
export const BenefitLicenseKeyActivationCreateProperties$outboundSchema:
  z.ZodMiniType<
    BenefitLicenseKeyActivationCreateProperties$Outbound,
    BenefitLicenseKeyActivationCreateProperties
  > = z.pipe(
    z.object({
      limit: z.int(),
      enableCustomerAdmin: z.boolean(),
    }),
    z.transform((v) => {
      return remap$(v, {
        enableCustomerAdmin: "enable_customer_admin",
      });
    }),
  );

export function benefitLicenseKeyActivationCreatePropertiesToJSON(
  benefitLicenseKeyActivationCreateProperties:
    BenefitLicenseKeyActivationCreateProperties,
): string {
  return JSON.stringify(
    BenefitLicenseKeyActivationCreateProperties$outboundSchema.parse(
      benefitLicenseKeyActivationCreateProperties,
    ),
  );
}
