send eks account
This commit is contained in:
parent
06cd123666
commit
9bb50750c0
3 changed files with 24 additions and 3 deletions
|
|
@ -7,6 +7,8 @@ public class MoneyAccount {
|
||||||
private String currCode;
|
private String currCode;
|
||||||
@JsonProperty("account")
|
@JsonProperty("account")
|
||||||
private String account;
|
private String account;
|
||||||
|
@JsonProperty("eks_account")
|
||||||
|
private String eksAccount;
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
|
|
@ -26,6 +28,14 @@ public class MoneyAccount {
|
||||||
this.account = account;
|
this.account = account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getEksAccount() {
|
||||||
|
return eksAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEksAccount(String eksAccount) {
|
||||||
|
this.eksAccount = eksAccount;
|
||||||
|
}
|
||||||
|
|
||||||
public String getStatus() {
|
public String getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -282,12 +282,13 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
|
||||||
if (reportRequest.getRequestId() != null) {
|
if (reportRequest.getRequestId() != null) {
|
||||||
outboundRequest.setId(reportRequest.getRequestId());
|
outboundRequest.setId(reportRequest.getRequestId());
|
||||||
}
|
}
|
||||||
GatewayResultBuilder gatewayBuilder = GatewayResultBuilder.builder();
|
GatewayResult gatewayResult = GatewayResultBuilder.builder()
|
||||||
gatewayBuilder.outboundRequest(outboundRequest);
|
.outboundRequest(outboundRequest)
|
||||||
|
.build();
|
||||||
|
gatewayResultImdg.insert(gatewayResult);
|
||||||
String url = formingInboundUrl(inboundServerSettings.getPathLOCM());
|
String url = formingInboundUrl(inboundServerSettings.getPathLOCM());
|
||||||
HttpEntity<OutboundRequest> r = makeDefaultRequest(outboundRequest);
|
HttpEntity<OutboundRequest> r = makeDefaultRequest(outboundRequest);
|
||||||
ResponseEntity<SuccessResponse> response = restTemplate.exchange(url, HttpMethod.POST, r, SuccessResponse.class);
|
ResponseEntity<SuccessResponse> response = restTemplate.exchange(url, HttpMethod.POST, r, SuccessResponse.class);
|
||||||
gatewayResultImdg.insert(gatewayBuilder.build());
|
|
||||||
SuccessResponse bodyResponse = response.getBody();
|
SuccessResponse bodyResponse = response.getBody();
|
||||||
if (bodyResponse != null) {
|
if (bodyResponse != null) {
|
||||||
log.debug("Response from service: {}", bodyResponse);
|
log.debug("Response from service: {}", bodyResponse);
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ public class MoneyAccountMsgResponse {
|
||||||
private String currCode;
|
private String currCode;
|
||||||
@JsonProperty("account")
|
@JsonProperty("account")
|
||||||
private String account;
|
private String account;
|
||||||
|
@JsonProperty("eks_account")
|
||||||
|
private String eksAccount;
|
||||||
@JsonProperty("is_active")
|
@JsonProperty("is_active")
|
||||||
private Boolean isActive;
|
private Boolean isActive;
|
||||||
|
|
||||||
|
|
@ -26,6 +28,14 @@ public class MoneyAccountMsgResponse {
|
||||||
this.account = account;
|
this.account = account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getEksAccount() {
|
||||||
|
return eksAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEksAccount(String eksAccount) {
|
||||||
|
this.eksAccount = eksAccount;
|
||||||
|
}
|
||||||
|
|
||||||
public Boolean getActive() {
|
public Boolean getActive() {
|
||||||
return isActive;
|
return isActive;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue