/*
 * 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 CustomerBenefitGrantDiscordPropertiesUpdate = {
  accountId: string | null;
};

/** @internal */
export type CustomerBenefitGrantDiscordPropertiesUpdate$Outbound = {
  account_id: string | null;
};

/** @internal */
export const CustomerBenefitGrantDiscordPropertiesUpdate$outboundSchema:
  z.ZodMiniType<
    CustomerBenefitGrantDiscordPropertiesUpdate$Outbound,
    CustomerBenefitGrantDiscordPropertiesUpdate
  > = z.pipe(
    z.object({
      accountId: z.nullable(z.string()),
    }),
    z.transform((v) => {
      return remap$(v, {
        accountId: "account_id",
      });
    }),
  );

export function customerBenefitGrantDiscordPropertiesUpdateToJSON(
  customerBenefitGrantDiscordPropertiesUpdate:
    CustomerBenefitGrantDiscordPropertiesUpdate,
): string {
  return JSON.stringify(
    CustomerBenefitGrantDiscordPropertiesUpdate$outboundSchema.parse(
      customerBenefitGrantDiscordPropertiesUpdate,
    ),
  );
}
