/* * 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 NetworkTokenCreate = { /** * The 3 or 4 digit security code often found on the card. This often referred to as the CVV or CVD. */ securityCode?: string | null | undefined; /** * Defines if the request is merchant initiated or not. */ merchantInitiated: boolean; /** * Defines if the request is a subsequent of another request or not. */ isSubsequentPayment: boolean; }; /** @internal */ export type NetworkTokenCreate$Outbound = { security_code?: string | null | undefined; merchant_initiated: boolean; is_subsequent_payment: boolean; }; /** @internal */ export const NetworkTokenCreate$outboundSchema: z.ZodType< NetworkTokenCreate$Outbound, z.ZodTypeDef, NetworkTokenCreate > = z.object({ securityCode: z.nullable(z.string()).optional(), merchantInitiated: z.boolean(), isSubsequentPayment: z.boolean(), }).transform((v) => { return remap$(v, { securityCode: "security_code", merchantInitiated: "merchant_initiated", isSubsequentPayment: "is_subsequent_payment", }); }); export function networkTokenCreateToJSON( networkTokenCreate: NetworkTokenCreate, ): string { return JSON.stringify( NetworkTokenCreate$outboundSchema.parse(networkTokenCreate), ); }