Add AdditionalInfo fields and fix A2A URL

Add various sgt* metadata fields to transaction DTOs to support extended transaction details: AccountGLTransactionRequest, AccountToAccountDTO, GLtoGLRequest. Introduce a typed AdditionalInfo inner class in GlToAccountDTO (kept Map<String,Object> for now) and add sender/beneficiary fields. Update TransactionService to use the /account-to-account endpoint when posting account-to-account transactions. These changes enable richer transaction metadata and correct the deposit transactions URL.
transaction-parameters
Naeem Ullah 3 weeks ago
parent 55c40ad756
commit caa563927b

@ -19,8 +19,15 @@ public class AccountGLTransactionRequest {
@Data @Data
public static class AdditionalInfo { public static class AdditionalInfo {
private String sgtPtrtrancode;
private String sgtRelwithbnfowner;
private Boolean sgtRemittancetrans; private Boolean sgtRemittancetrans;
private String sgtSenderBeneficiaryAccNo;
private String sgtSenderBeneficiaryAddress;
private String sgtSenderBeneficiaryName;
private String sgtTrandate; private String sgtTrandate;
private String sgtTranreason;
private String sgtWalkingcustname;
} }
@Data @Data

@ -25,11 +25,19 @@ public class AccountToAccountDTO {
@Data @Data
public static class AdditionalInfo { public static class AdditionalInfo {
private String sgtBnfowner; private String sgtBnfowner;
private String sgtPrcRlcscodec; private String sgtPrcRlcscodec;
private String sgtPtrtrancode; private String sgtPtrtrancode;
private String sgtRelwithbnfowner; private String sgtRelwithbnfowner;
private String sgtTranreason; private String sgtTranreason;
private String sgtTranjust;
private String sgtVehiclenumber;
private String sgtReginfo;
private String sgtSaleplace;
private String sgtMfgyear;
private String sgtEstatevalue;
} }
@Data @Data

@ -20,6 +20,17 @@ public class GLtoGLRequest {
public static class AdditionalInfo { public static class AdditionalInfo {
private Boolean sgtRemittancetrans; private Boolean sgtRemittancetrans;
private String sgtTrandate; private String sgtTrandate;
private String sgtBnfowner;
private String sgtEstatevalue;
private String sgtPrcRlcscodec;
private String sgtPtrtrancode;
private String sgtReginfo;
private String sgtRelwithbnfowner;
private String sgtSaleplace;
private String sgtTranreason;
private String sgtVehiclenumber;
private String sgtWalkingcustname;
private String sgtWalkingcustnumber;
} }
@Data @Data

@ -9,6 +9,7 @@ import java.util.Map;
@Data @Data
public class GlToAccountDTO { public class GlToAccountDTO {
// private AdditionalInfo additionalInfo;
private Map<String, Object> additionalInfo; private Map<String, Object> additionalInfo;
private DebitGl debitGl; private DebitGl debitGl;
@ -47,4 +48,29 @@ public class GlToAccountDTO {
private String pitInstcode; private String pitInstcode;
private String sgtGntrinstrumentno; private String sgtGntrinstrumentno;
} }
@Data
public static class AdditionalInfo {
private String sgtBnfowner;
private String sgtWalkingcustname;
private String sgtPrcRlcscodec;
private String sgtWalkingcustnumber;
private String sgtTrandate;
private String sgtPtrtrancode;
private String sgtTranreason;
private String sgtRelwithbnfowner;
private Boolean sgtRemittancetrans;
private String sgtVehiclenumber;
private String sgtReginfo;
private String sgtSaleplace;
private String sgtMfgyear;
private String sgtEstatevalue;
private String sgtSenderBeneficiaryName;
private String sgtSenderBeneficiaryAddress;
private String sgtSenderBeneficiaryAccNo;
}
} }

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

Loading…
Cancel
Save