/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CustomerPaymentMethod, CustomerPaymentMethod$inboundSchema, } from "./customerpaymentmethod.js"; import { Pagination, Pagination$inboundSchema } from "./pagination.js"; export type ListResourceCustomerPaymentMethod = { items: Array; pagination: Pagination; }; /** @internal */ export const ListResourceCustomerPaymentMethod$inboundSchema: z.ZodMiniType< ListResourceCustomerPaymentMethod, unknown > = z.object({ items: z.array(CustomerPaymentMethod$inboundSchema), pagination: Pagination$inboundSchema, }); export function listResourceCustomerPaymentMethodFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListResourceCustomerPaymentMethod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListResourceCustomerPaymentMethod' from JSON`, ); }