@revolugo/common 7.11.2-alpha.30 → 7.11.2-alpha.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/common",
3
- "version": "7.11.2-alpha.30",
3
+ "version": "7.11.2-alpha.32",
4
4
  "private": false,
5
5
  "description": "Revolugo common",
6
6
  "author": "Revolugo",
@@ -23,6 +23,16 @@ export enum InsuranceStatus {
23
23
  WaitingPayment = 'waiting_payment',
24
24
  }
25
25
 
26
+ /**
27
+ * Insurance statuses for which a Meetch/Flex claim is considered "in progress":
28
+ * the claim has been opened or settled on the insurer side, so the booking
29
+ * manager swaps to the claim-status UI instead of offering the cancel CTA.
30
+ */
31
+ export const MEETCH_CLAIM_IN_PROGRESS_STATUSES: InsuranceStatus[] = [
32
+ InsuranceStatus.Open,
33
+ InsuranceStatus.Claimed,
34
+ ]
35
+
26
36
  /**
27
37
  * UI-level lifecycle state of a Meetch/Flex insured booking, used to pick which
28
38
  * cancellation UI to render. Derived from {@link InsuranceStatus} plus the
@@ -193,7 +193,7 @@ export class MoneyCalculator {
193
193
  }
194
194
 
195
195
  public removeMarkup(percentage: number): this {
196
- this.amount *= 1 - percentage
196
+ this.amount -= this.amount * percentage
197
197
 
198
198
  return this
199
199
  }