import { PaymentInstrumentPayload } from '../../../../entity/paymentInstrument/paymentInstrumentPayload'; import { ZeniAPIResponse } from '../../../../responsePayload'; import { CreateInternationalWireDetailsLocalData, DynamicFormField, SupportedAccountType } from './internationalWire'; export interface InternationalWireFormPayload { pi_type_config: Record; pi_types: InternationalAccountTypePayload[]; } export interface InternationalAccountTypePayload { pi_title: string; pi_type: string; } export interface DynamicFormFieldPayload { fields: InternationalWireFormFieldPayload[]; } export interface InternationalWireFormFieldPayload { async_validation: null | AsyncValidationPayload; field_hint_text: string; label: string; max_length: null | number; min_length: null | number; pi_field_id: string; refresh_on_change: boolean; required: boolean; type: string; validation_regex: null | string; values_allowed: null | InternationalWireFormFieldGroupAllowedValuePayload[]; } interface AsyncValidationPayload { params: string[]; url: string; } interface InternationalWireFormFieldGroupAllowedValuePayload { display_text: string; value: string; } export type InternationalWireDynamicFormResponse = ZeniAPIResponse; export declare const toSupportedAccountPayload: (payload: InternationalAccountTypePayload) => SupportedAccountType; export declare const toDynamicFormFields: (payload: InternationalWireFormFieldPayload) => DynamicFormField; interface CreatePaymentInstrumentPayload { payment_instruments: PaymentInstrumentPayload[]; } export type CreatePaymentInstrumentResponse = ZeniAPIResponse; export declare const toPaymentInstrumentPayload: (paymentInstrumentLocalData: CreateInternationalWireDetailsLocalData) => Record; export {};