Skip to content

Commit 706a092

Browse files
author
dalilaacqua
committed
Fix logs
1 parent b81b602 commit 706a092

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

src/main/java/it/gov/pagopa/idpay/transactions/dto/batch/BatchCountersDTO.java

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package it.gov.pagopa.idpay.transactions.dto.batch;
22

33
import lombok.Getter;
4+
import lombok.ToString;
45

56
@Getter
7+
@ToString
68
public class BatchCountersDTO {
79
private Long initialAmountCents;
810
private Long numberOfTransactions;
@@ -12,27 +14,15 @@ public class BatchCountersDTO {
1214
private Long trxElaborated;
1315
private Long trxRejected;
1416

15-
@Override
16-
public String toString() {
17-
return "BatchCountersDTO{" +
18-
"initialAmountCents=" + initialAmountCents +
19-
", numberOfTransactions=" + numberOfTransactions +
20-
", suspendedAmountCents=" + suspendedAmountCents +
21-
", trxSuspended=" + trxSuspended +
22-
", approvedAmountCents=" + approvedAmountCents +
23-
", trxElaborated=" + trxElaborated +
24-
", trxRejected=" + trxRejected +
25-
'}';
26-
}
27-
28-
private BatchCountersDTO() {
29-
this.initialAmountCents = 0L;
30-
this.numberOfTransactions = 0L;
31-
this.approvedAmountCents = 0L;
32-
this.suspendedAmountCents = 0L;
33-
this.trxElaborated = 0L;
34-
this.trxSuspended = 0L;
35-
this.trxRejected = 0L;
17+
18+
private BatchCountersDTO() {
19+
this.initialAmountCents = 0L;
20+
this.numberOfTransactions = 0L;
21+
this.approvedAmountCents = 0L;
22+
this.suspendedAmountCents = 0L;
23+
this.trxElaborated = 0L;
24+
this.trxSuspended = 0L;
25+
this.trxRejected = 0L;
3626
}
3727

3828
public static BatchCountersDTO newBatch() {

0 commit comments

Comments
 (0)