/* * 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 * as shared from "../shared/index.js"; export type CreateBankTransactionsRequest = { /** * Unique identifier for a company. */ companyId: string; /** * Unique identifier for a connection. */ connectionId: string; /** * Unique identifier for an account. */ accountId: string; /** * Time limit for the push operation to complete before it is timed out. */ timeoutInMinutes?: number | undefined; /** * Allow a sync upon push completion. */ allowSyncOnPushComplete?: boolean | undefined; createBankTransactions?: shared.CreateBankTransactions | undefined; }; /** @internal */ export type CreateBankTransactionsRequest$Outbound = { companyId: string; connectionId: string; accountId: string; timeoutInMinutes?: number | undefined; allowSyncOnPushComplete: boolean; CreateBankTransactions?: shared.CreateBankTransactions$Outbound | undefined; }; /** @internal */ export const CreateBankTransactionsRequest$outboundSchema: z.ZodType< CreateBankTransactionsRequest$Outbound, z.ZodTypeDef, CreateBankTransactionsRequest > = z.object({ companyId: z.string(), connectionId: z.string(), accountId: z.string(), timeoutInMinutes: z.number().int().optional(), allowSyncOnPushComplete: z.boolean().default(true), createBankTransactions: shared.CreateBankTransactions$outboundSchema .optional(), }).transform((v) => { return remap$(v, { createBankTransactions: "CreateBankTransactions", }); }); export function createBankTransactionsRequestToJSON( createBankTransactionsRequest: CreateBankTransactionsRequest, ): string { return JSON.stringify( CreateBankTransactionsRequest$outboundSchema.parse( createBankTransactionsRequest, ), ); }