send eks account

This commit is contained in:
etreschenkov 2024-06-24 16:46:15 +03:00
parent 06cd123666
commit 9bb50750c0
3 changed files with 24 additions and 3 deletions

View file

@ -7,6 +7,8 @@ public class MoneyAccount {
private String currCode;
@JsonProperty("account")
private String account;
@JsonProperty("eks_account")
private String eksAccount;
@JsonProperty("status")
private String status;
@ -26,6 +28,14 @@ public class MoneyAccount {
this.account = account;
}
public String getEksAccount() {
return eksAccount;
}
public void setEksAccount(String eksAccount) {
this.eksAccount = eksAccount;
}
public String getStatus() {
return status;
}

View file

@ -282,12 +282,13 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
if (reportRequest.getRequestId() != null) {
outboundRequest.setId(reportRequest.getRequestId());
}
GatewayResultBuilder gatewayBuilder = GatewayResultBuilder.builder();
gatewayBuilder.outboundRequest(outboundRequest);
GatewayResult gatewayResult = GatewayResultBuilder.builder()
.outboundRequest(outboundRequest)
.build();
gatewayResultImdg.insert(gatewayResult);
String url = formingInboundUrl(inboundServerSettings.getPathLOCM());
HttpEntity<OutboundRequest> r = makeDefaultRequest(outboundRequest);
ResponseEntity<SuccessResponse> response = restTemplate.exchange(url, HttpMethod.POST, r, SuccessResponse.class);
gatewayResultImdg.insert(gatewayBuilder.build());
SuccessResponse bodyResponse = response.getBody();
if (bodyResponse != null) {
log.debug("Response from service: {}", bodyResponse);

View file

@ -7,6 +7,8 @@ public class MoneyAccountMsgResponse {
private String currCode;
@JsonProperty("account")
private String account;
@JsonProperty("eks_account")
private String eksAccount;
@JsonProperty("is_active")
private Boolean isActive;
@ -26,6 +28,14 @@ public class MoneyAccountMsgResponse {
this.account = account;
}
public String getEksAccount() {
return eksAccount;
}
public void setEksAccount(String eksAccount) {
this.eksAccount = eksAccount;
}
public Boolean getActive() {
return isActive;
}