diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks/transfer.ts')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/transfer.ts | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/transfer.ts b/packages/merchant-backoffice-ui/src/hooks/transfer.ts index e21dd1dd5..649cef06c 100644 --- a/packages/merchant-backoffice-ui/src/hooks/transfer.ts +++ b/packages/merchant-backoffice-ui/src/hooks/transfer.ts @@ -34,17 +34,11 @@ export function useTransferAPI(): TransferAPI { const informTransfer = async ( data: MerchantBackend.Transfers.TransferInformation, - ): Promise< - HttpResponseOk<MerchantBackend.Transfers.MerchantTrackTransferResponse> - > => { - const res = - await request<MerchantBackend.Transfers.MerchantTrackTransferResponse>( - `/private/transfers`, - { - method: "POST", - data, - }, - ); + ): Promise<HttpResponseOk<{}>> => { + const res = await request<{}>(`/private/transfers`, { + method: "POST", + data, + }); await mutateAll(/.*private\/transfers.*/); return res; @@ -56,9 +50,7 @@ export function useTransferAPI(): TransferAPI { export interface TransferAPI { informTransfer: ( data: MerchantBackend.Transfers.TransferInformation, - ) => Promise< - HttpResponseOk<MerchantBackend.Transfers.MerchantTrackTransferResponse> - >; + ) => Promise<HttpResponseOk<{}>>; } export interface InstanceTransferFilter { |