Function: reconcileTransfers()
reconcileTransfers(
payments,transfers,options?):ReconcileResult
Defined in: src/lib/wise/reconcile.ts:117
Match transfers to payments by descending confidence:
reference— the transfer's reference contains the payment id's first 8 chars.recipient_amount— same Wise recipient and amount within tolerance.amount_window— amount within tolerance and pay date within the date window, uniquely. Each payment and each transfer is used at most once; already-completed payments and dead transfers are ignored. A linked transfer whose amount differs (beyond tolerance) is an outcomevariance.
Parameters
payments
readonly ReconcilablePayment[]
transfers
readonly WiseTransfer[]
options?
ReconcileOptions = {}