import { URLPayload } from '../../commonPayloadTypes/urlPayload'; import { BankAccountPayload } from '../../entity/bankAccount/bankAccountPayload'; import { ZeniAPIResponse } from '../../responsePayload'; import { BillPaymentConfigCodeType } from '../spendManagement/billPay/billPayConfig/billPayConfigState'; import { CreateBankAccountLocalData, CreateInternationalBankAccountLocalData } from './bankAccountViewState'; interface CreateBankAccountPayload { bank_accounts: BankAccountPayload[]; } export type CreateBankAccountResponse = ZeniAPIResponse; interface BanksByRoutingPayload { institutions: BankNameByRoutingPayload[]; } interface BanksBySwiftPayload { institutions: BankNameBySwiftPayload[]; } interface BankCountriesPayload { institutions: BankCountryNamePayload[]; } export interface BankNameByRoutingPayload { name: string; logo?: URLPayload; } export interface BankNameBySwiftPayload { country_code: string; country_name: string; name: string; } export interface BankCountryNamePayload { country_code: string; country_name: string; name: string; swift_code: string; } export type FetchBankNameByRoutingResponse = ZeniAPIResponse; export type FetchBankNameBySwiftResponse = ZeniAPIResponse; export type FetchBankCountryNameByIbanResponse = ZeniAPIResponse; export declare const toBankAccountPayload: (bankAccount: CreateBankAccountLocalData, paymentMethodType: BillPaymentConfigCodeType) => Partial; export declare const toInternationalBankAccountPayload: (bankAccount: CreateInternationalBankAccountLocalData) => Record; export declare const toInternationalBankAccountWithCountryPayload: (bankAccount: CreateInternationalBankAccountLocalData, countryCode?: string) => Record; export {};