/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; export type MockCardMerchantAdviceCodeOptions = { /** * The MAC to return for this request. */ result?: string | null | undefined; /** * When set, the MAC is only returned if the card number matches this account number. */ accountNumber: string | null; }; /** @internal */ export type MockCardMerchantAdviceCodeOptions$Outbound = { result?: string | null | undefined; account_number: string | null; }; /** @internal */ export const MockCardMerchantAdviceCodeOptions$outboundSchema: z.ZodType< MockCardMerchantAdviceCodeOptions$Outbound, z.ZodTypeDef, MockCardMerchantAdviceCodeOptions > = z.object({ result: z.nullable(z.string()).optional(), accountNumber: z.nullable(z.string()), }).transform((v) => { return remap$(v, { accountNumber: "account_number", }); }); export function mockCardMerchantAdviceCodeOptionsToJSON( mockCardMerchantAdviceCodeOptions: MockCardMerchantAdviceCodeOptions, ): string { return JSON.stringify( MockCardMerchantAdviceCodeOptions$outboundSchema.parse( mockCardMerchantAdviceCodeOptions, ), ); }