/* * 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 { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UnifiedId, UnifiedId$inboundSchema } from "./unifiedid.js"; /** * Bank Account updated */ export type UpdateBankAccountResponse = { /** * HTTP Response Status Code */ statusCode: number; /** * HTTP Response Status */ status: string; /** * Apideck ID of service provider */ service?: string | undefined; /** * Unified API resource name */ resource?: string | undefined; /** * Operation performed */ operation?: string | undefined; /** * A object containing a unique identifier for the resource that was created, updated, or deleted. */ data: UnifiedId; }; /** @internal */ export const UpdateBankAccountResponse$inboundSchema: z.ZodType< UpdateBankAccountResponse, z.ZodTypeDef, unknown > = /* @__PURE__ */ lazySchema$(() => z.object({ status_code: types.number(), status: types.string(), service: types.optional(types.string()), resource: types.optional(types.string()), operation: types.optional(types.string()), data: UnifiedId$inboundSchema, }).transform((v) => { return remap$(v, { "status_code": "statusCode", }); }) ); export function updateBankAccountResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UpdateBankAccountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateBankAccountResponse' from JSON`, ); }