Add ptrTrancode to DTOs and adjust URL

Introduce a new String field ptrTrancode in AccountToAccountDTO and GlToAccountDTO to carry the transaction code. Modify TransactionService URL construction: the previous "/account-to-account" suffix was removed and the URL is now built as .../transactions + ACONNECT + "/" + "" (leaving a trailing slash). This may be intended to generalize the endpoint or serve as a placeholder; verify the resulting URL is correct for the target API.
WebClient-NAEEM
Naeem Ullah 3 weeks ago
parent 2c1745cf62
commit 55c40ad756

@ -19,6 +19,7 @@ public class AccountToAccountDTO {
private String sgtGntrcreateusr;
private String sgtGntrnarration;
private LocalDate sgtGntrvaluedate;
private String ptrTrancode;
// ---------------- INNER CLASSES ----------------

@ -20,6 +20,7 @@ public class GlToAccountDTO {
private String sgtGntrcreateusr;
private String sgtGntrnarration;
private LocalDate sgtGntrvaluedate;
private String ptrTrancode;
private String sgtGntrtmudf1;
private String sgtGntrtmudf2;

@ -173,7 +173,8 @@ public class TransactionService {
}
String porOrgacode = accountToAccountDTO.getPorOrgacode();
String url = depositURI + "/deposit" + "/organizations/" + porOrgacode + "/transactions" + ACONNECT + "/account-to-account";
String url = depositURI + "/deposit" + "/organizations/" + porOrgacode + "/transactions" + ACONNECT + "/" +
"";
HttpHeaders headers = new HttpHeaders();
headers.set("Authorization", tokenHeader);
headers.set("POR_ORGACODE", porOrgacode);

Loading…
Cancel
Save