/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { testSimulationForceApproveAchDeposit } from "../funcs/testSimulationForceApproveAchDeposit.js"; import { testSimulationForceApproveAchWithdrawal } from "../funcs/testSimulationForceApproveAchWithdrawal.js"; import { testSimulationForceApproveCashJournal } from "../funcs/testSimulationForceApproveCashJournal.js"; import { testSimulationForceApproveCheckDeposit } from "../funcs/testSimulationForceApproveCheckDeposit.js"; import { testSimulationForceApproveIctDeposit } from "../funcs/testSimulationForceApproveIctDeposit.js"; import { testSimulationForceApproveIctWithdrawal } from "../funcs/testSimulationForceApproveIctWithdrawal.js"; import { testSimulationForceApprovePositionJournal } from "../funcs/testSimulationForceApprovePositionJournal.js"; import { testSimulationForceApproveWireDeposit } from "../funcs/testSimulationForceApproveWireDeposit.js"; import { testSimulationForceApproveWireWithdrawal } from "../funcs/testSimulationForceApproveWireWithdrawal.js"; import { testSimulationForceNocAchDeposit } from "../funcs/testSimulationForceNocAchDeposit.js"; import { testSimulationForceNocAchWithdrawal } from "../funcs/testSimulationForceNocAchWithdrawal.js"; import { testSimulationForceRejectAchDeposit } from "../funcs/testSimulationForceRejectAchDeposit.js"; import { testSimulationForceRejectAchWithdrawal } from "../funcs/testSimulationForceRejectAchWithdrawal.js"; import { testSimulationForceRejectCashJournal } from "../funcs/testSimulationForceRejectCashJournal.js"; import { testSimulationForceRejectIctDeposit } from "../funcs/testSimulationForceRejectIctDeposit.js"; import { testSimulationForceRejectIctWithdrawal } from "../funcs/testSimulationForceRejectIctWithdrawal.js"; import { testSimulationForceRejectPositionJournal } from "../funcs/testSimulationForceRejectPositionJournal.js"; import { testSimulationForceRejectWireDeposit } from "../funcs/testSimulationForceRejectWireDeposit.js"; import { testSimulationForceRejectWireWithdrawal } from "../funcs/testSimulationForceRejectWireWithdrawal.js"; import { testSimulationForceReturnAchDeposit } from "../funcs/testSimulationForceReturnAchDeposit.js"; import { testSimulationForceReturnAchWithdrawal } from "../funcs/testSimulationForceReturnAchWithdrawal.js"; import { testSimulationGetMicroDepositAmounts } from "../funcs/testSimulationGetMicroDepositAmounts.js"; import { testSimulationSimulateCreateCheckDeposit } from "../funcs/testSimulationSimulateCreateCheckDeposit.js"; import { testSimulationSimulateWireDeposit } from "../funcs/testSimulationSimulateWireDeposit.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class TestSimulation extends ClientSDK { /** * Simulate Check Deposit Creation * * @remarks * Creates a check deposit for a specific account FOR TESTING ONLY! */ async simulateCreateCheckDeposit( simulateCreateCheckDepositRequestCreate: components.SimulateCreateCheckDepositRequestCreate, accountId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationSimulateCreateCheckDeposit( this, simulateCreateCheckDepositRequestCreate, accountId, options, )); } /** * Check Deposit Approval * * @remarks * Force approval of an existing check deposit that is pending review FOR TESTING ONLY! */ async forceApproveCheckDeposit( forceApproveCheckDepositRequestCreate: components.ForceApproveCheckDepositRequestCreate, accountId: string, checkDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveCheckDeposit( this, forceApproveCheckDepositRequestCreate, accountId, checkDepositId, options, )); } /** * ACH Deposit Approval * * @remarks * Forces approval of an existing ACH deposit that is pending review. FOR TESTING ONLY! */ async forceApproveAchDeposit( forceApproveAchDepositRequestCreate: components.ForceApproveAchDepositRequestCreate, accountId: string, achDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveAchDeposit( this, forceApproveAchDepositRequestCreate, accountId, achDepositId, options, )); } /** * NOC for a Deposit * * @remarks * Forces a Nacha notice of change (NOC) on a completed ACH deposit. FOR TESTING ONLY! */ async forceNocAchDeposit( forceNocAchDepositRequestCreate: components.ForceNocAchDepositRequestCreate, accountId: string, achDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceNocAchDeposit( this, forceNocAchDepositRequestCreate, accountId, achDepositId, options, )); } /** * ACH Deposit Rejection * * @remarks * Forces rejection of an existing ACH deposit that is pending review. FOR TESTING ONLY! */ async forceRejectAchDeposit( forceRejectAchDepositRequestCreate: components.ForceRejectAchDepositRequestCreate, accountId: string, achDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectAchDeposit( this, forceRejectAchDepositRequestCreate, accountId, achDepositId, options, )); } /** * ACH Deposit Return * * @remarks * Forces a Nacha return on a completed ACH deposit. FOR TESTING ONLY! */ async forceReturnAchDeposit( forceReturnAchDepositRequestCreate: components.ForceReturnAchDepositRequestCreate, accountId: string, achDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceReturnAchDeposit( this, forceReturnAchDepositRequestCreate, accountId, achDepositId, options, )); } /** * ACH Withdrawal Approval * * @remarks * Forces approval of an existing ACH withdrawal that is pending review. FOR TESTING ONLY! */ async forceApproveAchWithdrawal( forceApproveAchWithdrawalRequestCreate: components.ForceApproveAchWithdrawalRequestCreate, accountId: string, achWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveAchWithdrawal( this, forceApproveAchWithdrawalRequestCreate, accountId, achWithdrawalId, options, )); } /** * ACH Withdrawal NOC * * @remarks * Forces a Nacha notice of change (NOC) on a completed ACH withdrawal. FOR TESTING ONLY! */ async forceNocAchWithdrawal( forceNocAchWithdrawalRequestCreate: components.ForceNocAchWithdrawalRequestCreate, accountId: string, achWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceNocAchWithdrawal( this, forceNocAchWithdrawalRequestCreate, accountId, achWithdrawalId, options, )); } /** * ACH Withdrawal Rejection * * @remarks * Forces rejection of an existing ACH withdrawal that is pending review. FOR TESTING ONLY! */ async forceRejectAchWithdrawal( forceRejectAchWithdrawalRequestCreate: components.ForceRejectAchWithdrawalRequestCreate, accountId: string, achWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectAchWithdrawal( this, forceRejectAchWithdrawalRequestCreate, accountId, achWithdrawalId, options, )); } /** * ACH Withdrawal Return * * @remarks * Forces a Nacha return on a completed ACH withdrawal. FOR TESTING ONLY! */ async forceReturnAchWithdrawal( forceReturnAchWithdrawalRequestCreate: components.ForceReturnAchWithdrawalRequestCreate, accountId: string, achWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceReturnAchWithdrawal( this, forceReturnAchWithdrawalRequestCreate, accountId, achWithdrawalId, options, )); } /** * Get Relationship Micro Deposit Verification * * @remarks * Gets micro deposit amounts for bank relationships with the `MICRO_DEPOSIT` verification method. FOR TESTING ONLY! */ async getMicroDepositAmounts( accountId: string, bankRelationshipId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationGetMicroDepositAmounts( this, accountId, bankRelationshipId, options, )); } /** * Force Approve ICT Deposit * * @remarks * Forces an approval on an existing ICT deposit pending review - FOR TESTING */ async forceApproveIctDeposit( forceApproveIctDepositRequestCreate: components.ForceApproveIctDepositRequestCreate, accountId: string, ictDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveIctDeposit( this, forceApproveIctDepositRequestCreate, accountId, ictDepositId, options, )); } /** * Force Reject ICT Deposit * * @remarks * Forces a rejection on an existing ICT deposit pending review - FOR TESTING */ async forceRejectIctDeposit( forceRejectIctDepositRequestCreate: components.ForceRejectIctDepositRequestCreate, accountId: string, ictDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectIctDeposit( this, forceRejectIctDepositRequestCreate, accountId, ictDepositId, options, )); } /** * Force Approve ICT Withdrawal * * @remarks * Forces an approval on an existing ICT withdrawal pending review - FOR TESTING */ async forceApproveIctWithdrawal( forceApproveIctWithdrawalRequestCreate: components.ForceApproveIctWithdrawalRequestCreate, accountId: string, ictWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveIctWithdrawal( this, forceApproveIctWithdrawalRequestCreate, accountId, ictWithdrawalId, options, )); } /** * Force Reject ICT Withdrawal * * @remarks * Forces a rejection on an existing ICT withdrawal pending review - FOR TESTING */ async forceRejectIctWithdrawal( forceRejectIctWithdrawalRequestCreate: components.ForceRejectIctWithdrawalRequestCreate, accountId: string, ictWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectIctWithdrawal( this, forceRejectIctWithdrawalRequestCreate, accountId, ictWithdrawalId, options, )); } /** * Force Approve Wire Withdrawal * * @remarks * Forces an approval on an existing wire withdrawal pending review - FOR TESTING */ async forceApproveWireWithdrawal( forceApproveWireWithdrawalRequestCreate: components.ForceApproveWireWithdrawalRequestCreate, accountId: string, wireWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveWireWithdrawal( this, forceApproveWireWithdrawalRequestCreate, accountId, wireWithdrawalId, options, )); } /** * Force Reject Wire Withdrawal * * @remarks * Forces a rejection on an existing wire withdrawal pending review - FOR TESTING */ async forceRejectWireWithdrawal( forceRejectWireWithdrawalRequestCreate: components.ForceRejectWireWithdrawalRequestCreate, accountId: string, wireWithdrawalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectWireWithdrawal( this, forceRejectWireWithdrawalRequestCreate, accountId, wireWithdrawalId, options, )); } /** * Simulate Wire Deposit * * @remarks * Simulates the process of creating a wire deposit - FOR TESTING */ async simulateWireDeposit( simulateWireDepositRequestCreate: components.SimulateWireDepositRequestCreate, accountId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationSimulateWireDeposit( this, simulateWireDepositRequestCreate, accountId, options, )); } /** * Force Approve Wire Deposit * * @remarks * Simulates the process of approving a wire deposit - FOR TESTING */ async forceApproveWireDeposit( forceApproveWireDepositRequestCreate: components.ForceApproveWireDepositRequestCreate, accountId: string, wireDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveWireDeposit( this, forceApproveWireDepositRequestCreate, accountId, wireDepositId, options, )); } /** * Force Reject Wire Deposit * * @remarks * Forces a rejection on an existing wire deposit pending review - FOR TESTING */ async forceRejectWireDeposit( forceRejectWireDepositRequestCreate: components.ForceRejectWireDepositRequestCreate, accountId: string, wireDepositId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectWireDeposit( this, forceRejectWireDepositRequestCreate, accountId, wireDepositId, options, )); } /** * Force Approve Cash Journal * * @remarks * Forces approval of an existing cash journal that is pending review FOR TESTING ONLY! */ async forceApproveCashJournal( forceApproveCashJournalRequestCreate: components.ForceApproveCashJournalRequestCreate, cashJournalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApproveCashJournal( this, forceApproveCashJournalRequestCreate, cashJournalId, options, )); } /** * Force Reject Cash Journal * * @remarks * Forces rejection of an existing cash journal that is pending review FOR TESTING ONLY! */ async forceRejectCashJournal( forceRejectCashJournalRequestCreate: components.ForceRejectCashJournalRequestCreate, cashJournalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectCashJournal( this, forceRejectCashJournalRequestCreate, cashJournalId, options, )); } /** * Force Approve Position Journal * * @remarks * Forces approval of an existing position journal that is pending review FOR TESTING ONLY! */ async forceApprovePositionJournal( forceApprovePositionJournalRequestCreate: components.ForceApprovePositionJournalRequestCreate, positionJournalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceApprovePositionJournal( this, forceApprovePositionJournalRequestCreate, positionJournalId, options, )); } /** * Force Reject Position Journal * * @remarks * Forces rejection of an existing position journal that is pending review FOR TESTING ONLY! */ async forceRejectPositionJournal( forceRejectPositionJournalRequestCreate: components.ForceRejectPositionJournalRequestCreate, positionJournalId: string, options?: RequestOptions, ): Promise { return unwrapAsync(testSimulationForceRejectPositionJournal( this, forceRejectPositionJournalRequestCreate, positionJournalId, options, )); } }