/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; /** * The assurance details provided by Google Pay */ export type GooglePayAssuranceDetails = { /** * Defines if an account was verified. */ accountVerified?: boolean | null | undefined; /** * Defines if the card holder was authenticated. */ cardHolderAuthenticated?: boolean | null | undefined; }; /** @internal */ export type GooglePayAssuranceDetails$Outbound = { account_verified?: boolean | null | undefined; card_holder_authenticated?: boolean | null | undefined; }; /** @internal */ export const GooglePayAssuranceDetails$outboundSchema: z.ZodType< GooglePayAssuranceDetails$Outbound, z.ZodTypeDef, GooglePayAssuranceDetails > = z.object({ accountVerified: z.nullable(z.boolean()).optional(), cardHolderAuthenticated: z.nullable(z.boolean()).optional(), }).transform((v) => { return remap$(v, { accountVerified: "account_verified", cardHolderAuthenticated: "card_holder_authenticated", }); }); export function googlePayAssuranceDetailsToJSON( googlePayAssuranceDetails: GooglePayAssuranceDetails, ): string { return JSON.stringify( GooglePayAssuranceDetails$outboundSchema.parse(googlePayAssuranceDetails), ); }