/* * 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"; import { CustomerBenefitGrantDiscordPropertiesUpdate, CustomerBenefitGrantDiscordPropertiesUpdate$Outbound, CustomerBenefitGrantDiscordPropertiesUpdate$outboundSchema, } from "./customerbenefitgrantdiscordpropertiesupdate.js"; export type CustomerBenefitGrantDiscordUpdate = { benefitType: "discord"; properties: CustomerBenefitGrantDiscordPropertiesUpdate; }; /** @internal */ export type CustomerBenefitGrantDiscordUpdate$Outbound = { benefit_type: "discord"; properties: CustomerBenefitGrantDiscordPropertiesUpdate$Outbound; }; /** @internal */ export const CustomerBenefitGrantDiscordUpdate$outboundSchema: z.ZodMiniType< CustomerBenefitGrantDiscordUpdate$Outbound, CustomerBenefitGrantDiscordUpdate > = z.pipe( z.object({ benefitType: z.literal("discord"), properties: CustomerBenefitGrantDiscordPropertiesUpdate$outboundSchema, }), z.transform((v) => { return remap$(v, { benefitType: "benefit_type", }); }), ); export function customerBenefitGrantDiscordUpdateToJSON( customerBenefitGrantDiscordUpdate: CustomerBenefitGrantDiscordUpdate, ): string { return JSON.stringify( CustomerBenefitGrantDiscordUpdate$outboundSchema.parse( customerBenefitGrantDiscordUpdate, ), ); }