Skip to content

Commit

Permalink
fix: ToStrings refactored. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Mar 6, 2023
1 parent f8ae625 commit 96e9fa1
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public final class ErrorCode {
private ErrorCode() {
// This class cannot be instantiated!
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public interface FeeService {
@ClientHeaderParam(name = "Ocp-Apim-Subscription-Key", value = "${ocp.apim.subscription}", required = false)
Uni<List<GecGetFeesResponse>> getFees(GecGetFeesRequest gecGetFeesRequest, @HeaderParam("X-Request-Id") String requestId);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public interface MilRestService {
@ClientHeaderParam(name = "Version", value = "${mil.acquirer-conf.version}", required = false)
Uni<AcquirerConfiguration> getPspConfiguration(@HeaderParam(value = "RequestId") String requestId, @PathParam(value = "acquirerId") String acquirerId);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,12 @@ public void setPspConfigForGetFeeAndClosePayment(PspConfiguration pspConfigForGe
this.pspConfigForGetFeeAndClosePayment = pspConfigForGetFeeAndClosePayment;
}


@Override
public String toString() {
final StringBuilder sb = new StringBuilder("PspConfiguration{");
sb.append("pspConfigForVerifyAndActivate=").append(pspConfigForVerifyAndActivate);
sb.append(", pspConfigForGetFeeAndClosePayment=").append(pspConfigForGetFeeAndClosePayment);
sb.append('}');
return sb.toString();
return new StringBuilder("AcquirerConfiguration [pspConfigForVerifyAndActivate=")
.append(pspConfigForVerifyAndActivate)
.append(", pspConfigForGetFeeAndClosePayment=")
.append(pspConfigForGetFeeAndClosePayment)
.append("]").toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,21 @@ public void setTransferList(List<GecTransfer> transferList) {
this.transferList = transferList;
}


@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GecGetFeesRequest{");
sb.append("idPspList=").append(idPspList);
sb.append(", paymentAmount=").append(paymentAmount);
sb.append(", primaryCreditorInstitution='").append(primaryCreditorInstitution).append('\'');
sb.append(", paymentMethod='").append(paymentMethod).append('\'');
sb.append(", touchpoint='").append(touchpoint).append('\'');
sb.append(", transferList=").append(transferList);
sb.append('}');
return sb.toString();
return new StringBuilder("GecGetFeesRequest [idPspList=")
.append(idPspList)
.append(", paymentAmount=")
.append(paymentAmount)
.append(", primaryCreditorInstitution=")
.append(primaryCreditorInstitution)
.append(", paymentMethod=")
.append(paymentMethod)
.append(", touchpoint=")
.append(touchpoint)
.append(", transferList=")
.append(transferList)
.append("]")
.toString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -233,32 +233,31 @@ public void setTouchpoint(String touchpoint) {

@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("FeeServiceResponse [bundleDescription=");
builder.append(bundleDescription);
builder.append(", bundleName=");
builder.append(bundleName);
builder.append(", idBrokerPsp=");
builder.append(idBrokerPsp);
builder.append(", idBundle=");
builder.append(idBundle);
builder.append(", idChannel=");
builder.append(idChannel);
builder.append(", idCiBundle=");
builder.append(idCiBundle);
builder.append(", idPsp=");
builder.append(idPsp);
builder.append(", onUs=");
builder.append(onUs);
builder.append(", paymentMethod=");
builder.append(paymentMethod);
builder.append(", primaryCiIncurredFee=");
builder.append(primaryCiIncurredFee);
builder.append(", taxPayerFee=");
builder.append(taxPayerFee);
builder.append(", touchpoint=");
builder.append(touchpoint);
builder.append("]");
return builder.toString();
return new StringBuilder("FeeServiceResponse [bundleDescription=")
.append(bundleDescription)
.append(", bundleName=")
.append(bundleName)
.append(", idBrokerPsp=")
.append(idBrokerPsp)
.append(", idBundle=")
.append(idBundle)
.append(", idChannel=")
.append(idChannel)
.append(", idCiBundle=")
.append(idCiBundle)
.append(", idPsp=")
.append(idPsp)
.append(", onUs=")
.append(onUs)
.append(", paymentMethod=")
.append(paymentMethod)
.append(", primaryCiIncurredFee=")
.append(primaryCiIncurredFee)
.append(", taxPayerFee=")
.append(taxPayerFee)
.append(", touchpoint=")
.append(touchpoint)
.append("]")
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ public void setTransferCategory(String transferCategory) {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GecTransfer{");
sb.append("creditorInstitution='").append(creditorInstitution).append('\'');
sb.append(", digitalStamp=").append(digitalStamp);
sb.append(", transferCategory='").append(transferCategory).append('\'');
sb.append('}');
return sb.toString();
return new StringBuilder("GecTransfer [creditorInstitution=")
.append(creditorInstitution)
.append(", digitalStamp=")
.append(digitalStamp)
.append(", transferCategory=")
.append(transferCategory)
.append("]")
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,15 @@ public void setPassword(String password) {

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("PspConfiguration{");
sb.append("psp='").append(psp).append('\'');
sb.append(", broker='").append(broker).append('\'');
sb.append(", channel='").append(channel).append('\'');
sb.append(", password='").append(password).append('\'');
sb.append('}');
return sb.toString();
return new StringBuilder("PspConfiguration [psp=")
.append(psp)
.append(", broker=")
.append(broker)
.append(", channel=")
.append(channel)
.append(", password=")
.append(password)
.append("]")
.toString();
}
}
}

0 comments on commit 96e9fa1

Please sign in to comment.