/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ACHPaymentSettings = { /** * The description that shows up on ACH transactions. This will default to the account's display name on account creation. */ companyName: string; }; /** @internal */ export const ACHPaymentSettings$inboundSchema: z.ZodType< ACHPaymentSettings, z.ZodTypeDef, unknown > = z.object({ companyName: z.string(), }); /** @internal */ export type ACHPaymentSettings$Outbound = { companyName: string; }; /** @internal */ export const ACHPaymentSettings$outboundSchema: z.ZodType< ACHPaymentSettings$Outbound, z.ZodTypeDef, ACHPaymentSettings > = z.object({ companyName: z.string(), }); export function achPaymentSettingsToJSON( achPaymentSettings: ACHPaymentSettings, ): string { return JSON.stringify( ACHPaymentSettings$outboundSchema.parse(achPaymentSettings), ); } export function achPaymentSettingsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ACHPaymentSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ACHPaymentSettings' from JSON`, ); }