/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type GooglePaySession = { /** * The gateway ID for the merchant as assigned by our platform. */ gatewayMerchantId: string; /** * The session token for Google Pay. */ token: string; }; /** @internal */ export const GooglePaySession$inboundSchema: z.ZodType< GooglePaySession, z.ZodTypeDef, unknown > = z.object({ gateway_merchant_id: z.string(), token: z.string(), }).transform((v) => { return remap$(v, { "gateway_merchant_id": "gatewayMerchantId", }); }); export function googlePaySessionFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GooglePaySession$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GooglePaySession' from JSON`, ); }