Merged in fix/refactor-currency-display (pull request #3434)
fix(SW-3616): Handle EuroBonus point type everywhere * Add tests to formatPrice * formatPrice * More work replacing config with api points type * More work replacing config with api points type * More fixing with currency * maybe actually fixed it * Fix MyStay * Clean up * Fix comments * Merge branch 'master' into fix/refactor-currency-display * Fix calculateTotalPrice for EB points + SF points + cash Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -6,9 +6,8 @@ export enum CurrencyEnum {
|
||||
NOK = "NOK",
|
||||
PLN = "PLN",
|
||||
SEK = "SEK",
|
||||
POINTS = "Points",
|
||||
Voucher = "Voucher",
|
||||
CC = "CC",
|
||||
Unknown = "Unknown",
|
||||
EUROBONUS = "EB Points",
|
||||
POINTS = "Points",
|
||||
}
|
||||
|
||||
7
packages/common/constants/pointType.ts
Normal file
7
packages/common/constants/pointType.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const PointType = {
|
||||
SCANDIC: "Scandic",
|
||||
EUROBONUS: "EuroBonus",
|
||||
} as const
|
||||
export const pointTypes = Object.values(PointType)
|
||||
|
||||
export type PointType = (typeof PointType)[keyof typeof PointType]
|
||||
Reference in New Issue
Block a user