Skip to content

Commit a307d72

Browse files
update table display for us healthcare cards
1 parent eba6f45 commit a307d72

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Copay.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private Map<String, String> tablePrintableValues() {
4141
"serviceFees",
4242
SummaryHelper.formatAmount(this.serviceFees)
4343
);
44-
printable.put("serviceName", SummaryHelper.formatForDisplay(this.serviceName, null));
44+
printable.put("serviceName", SummaryHelper.formatForDisplay(this.serviceName, 20));
4545
return printable;
4646
}
4747

@@ -51,7 +51,7 @@ private Map<String, String> tablePrintableValues() {
5151
public String toTableLine() {
5252
Map<String, String> printable = this.tablePrintableValues();
5353
return String.format("| %-12s ", printable.get("serviceFees"))
54-
+ String.format("| %-12s |", printable.get("serviceName"));
54+
+ String.format("| %-20s |", printable.get("serviceName"));
5555
}
5656

5757
@Override

src/main/java/com/mindee/product/us/healthcarecard/HealthcareCardV1Document.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ public String toString() {
146146
);
147147
String copaysSummary = "";
148148
if (!this.getCopays().isEmpty()) {
149-
int[] copaysColSizes = new int[]{14, 14};
149+
int[] copaysColSizes = new int[]{14, 22};
150150
copaysSummary =
151151
String.format("%n%s%n ", SummaryHelper.lineSeparator(copaysColSizes, "-"))
152152
+ "| Service Fees "
153-
+ "| Service Name "
153+
+ "| Service Name "
154154
+ String.format("|%n%s%n ", SummaryHelper.lineSeparator(copaysColSizes, "="));
155155
copaysSummary += SummaryHelper.arrayToString(this.getCopays(), copaysColSizes);
156156
copaysSummary += String.format("%n%s", SummaryHelper.lineSeparator(copaysColSizes, "-"));

0 commit comments

Comments
 (0)