Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Cover fees optional, return breakdown of fees

Latest
Compare
Choose a tag to compare
@dimaip dimaip released this 18 Jun 09:21
· 5 commits to master since this release

BREAKING!
Instead of returning an integer of total fee, we now return a fee breakdown:

{
  totalFeeAmount: number,
  applicationFeeAmount: number,
  providerFeeAmount: number
}

Also added a coverFees parameter that allows you disable the covering fees mode. Defaults to true, for backwards compatibility.