Skip to content

Commit

Permalink
MOL-1277: fix wrong syntax in OrderLifeTimeLimitDetectorService.js (#661
Browse files Browse the repository at this point in the history
)
  • Loading branch information
boxblinkracer authored Nov 29, 2023
1 parent a420fa7 commit faa72b6
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 faa72b6

Please sign in to comment.