Skip to content

Commit

Permalink
MOL-1277: fix wrong syntax in OrderLifeTimeLimitDetectorService.js
Browse files Browse the repository at this point in the history
  • Loading branch information
boxblinkracer committed Nov 28, 2023
1 parent 9dc38d8 commit edde26c
Showing 1 changed file with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
export default class OrderLifeTimeLimitsDetector {
maximumOrderLifeTimeKlarna = 28;
maximumOrderLifeTime = 100;

/**
*
*/
constructor() {
this.maximumOrderLifeTimeKlarna = 28;
this.maximumOrderLifeTime = 100;
}

/**
*
* @param orderLifeTime
* @returns {boolean}
*/
isOderLifeTimeLimitReached(orderLifeTime) {
return orderLifeTime > this.maximumOrderLifeTime;
}

/**
*
* @param orderLifeTime
* @returns {boolean}
*/
isKlarnaOrderLifeTimeReached(orderLifeTime) {
return orderLifeTime > this.maximumOrderLifeTimeKlarna && orderLifeTime <= this.maximumOrderLifeTime;
}

}
}

0 comments on commit edde26c

Please sign in to comment.