Question
Where a feature Type of INTEREST_FREE
has been specified, the comparator does not correctly display the duration, and ignores the 'additional info' field. Here are some examples;
- Heritage Bank - Business Visa Credit Card
JSON: "featureType": "INTEREST_FREE", "additionalValue": "P40D",
Would expect to see: 'Interest free - 40 Days'
Comparator shows : 'Interest Free - every month' - ME Bank - Frank Credit Card
JSON: featureType": "INTEREST_FREE", "additionalValue": "P55D"
Would expect to see: 'Interest free - 55 Days'
Comparator shows : Interest Free - every month - Heritage Bank - Visa Classic
JSON: "featureType": "INTEREST_FREE", "additionalValue": "P55D ",
Would expect to see: 'Interest free - 55 Days'
Comparator shows : 'Interest Free - every few seconds'
Answer
This behaviour is due to the implementation in the standard 'moment' library that includes a humanised description of a duration. This library deliberately emulates the fuzzy way people talk about time (ie. 368 days would be interpreted as 'a year'). This makes it inexact.
The comparator tool does not seek to give an exact representation of the data it retrieves and, indeed, some fields are not rendered at all.
To fix this either:
- Raise an issue on the GitHub repository for the comparator tool. The DSB engineering team will consider it.
- Alternatively, fix it yourself and submit a PR (Pull Request).
Comments
0 comments
Please sign in to leave a comment.