JSPM

@seabass/co-fee-calculator

1.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40887F
  • License ISC

Calculates fee rates for Collage

Package Exports

  • @seabass/co-fee-calculator

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@seabass/co-fee-calculator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

co-fee-calculator

Collage Fee Calculations

NPM version Dependencies build status Test Coverage

API

(All values are in cents)

finalPrice(initialPrice)

Returns the price of the item as it would appear in the marketplace (after 5% + $1 rounded increase)

finalPriceMargin(initialPrice)

Returns the percentage increase in the price of the item when running finalPrice()

stripeFee(finalPrice)

Returns merchant fee charged by Stripe, based on finalPrice

sellerFee(initialPrice)

Returns amount to be paid to Collage by seller on transaction

sellerEarns(initialPrice)

Returns amount to be paid to seller on transaction

sellerEarnsPercentage(initialPrice)

Returns percentage of sale price paid to seller

sellerFeeRevenue(initialPrice)

What collage earns from seller on transaction. (sellerFee - stripeFee)

buyerFeeRevenue(initialPrice)

What collage earns by increasing price via finalPrice()

collageRevenue(initialPrice)

Sum of sellerFeeRevenue and buyerFeeRevenue