@adyen/kyc-components
Version:
This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.
16 lines (15 loc) • 908 B
TypeScript
import type { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
import type { Currency } from '../../types/datasets/currency';
import type { MutationOptions } from '../types';
export type QueryKeyTrustedTransferInstrument = ['trustedTransferInstrument', string];
interface MutationPayload {
preferredCurrencyCode: Currency;
transferInstrumentId: string;
}
/**
* Updates a trusted transfer instrument associated with a legal entity
* When update is successful, updates the transfer instrument query and invalidates transfer instruments
* @param options additional options passed to Tanstack Query
*/
export declare const useUpdateTrustedTransferInstrument: (options?: MutationOptions<ExistingTransferInstrument, unknown, MutationPayload>) => import("@tanstack/preact-query").UseMutationResult<ExistingTransferInstrument, unknown, MutationPayload, unknown>;
export {};