Function calculatePriceWithFeeForAddOn
- calculatePriceWithFeeForAddOn(
addOnType: AddOnTypes,
price: number,
tripCurrencyExchangeRate?: number,
): number Parameters
- addOnType: AddOnTypes
- price: number
- tripCurrencyExchangeRate: number = 1
Returns number
the price plus the fee
Calculates addOn price based on the type (ACTIVITY, ADDITIONAL SERVICE, SINGLE SUPPLEMENT). Will throw an error if the type doesn't exist