asset operation fields [gateway]
This commit is contained in:
parent
d95f22662d
commit
26f6c081f4
6 changed files with 14 additions and 14 deletions
|
|
@ -226,7 +226,7 @@ public class Sdf06Executor {
|
|||
for (SingleAssetResponse gatewayMsg : req.getRequestPayload().getApprovals()) {
|
||||
//получаем запрос для текущей группы sdf06
|
||||
//находим группу
|
||||
Long statementId = gatewayMsg.getStatementId();
|
||||
Long statementId = gatewayMsg.getEntityId();
|
||||
ImdgPredicateBuilder pb = statementImdg.predicateBuilder();
|
||||
Statement stmt = statementImdg.getFirstObjectByPredicate(
|
||||
pb.and(
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ public class Sdf10Executor {
|
|||
for (SingleAssetResponse gatewayMsg : req.getRequestPayload().getApprovals()) {
|
||||
//получаем запрос для текущей группы sdf10
|
||||
//находим группу
|
||||
Long statementId = gatewayMsg.getStatementId();
|
||||
Long statementId = gatewayMsg.getEntityId();
|
||||
ImdgPredicateBuilder pb = statementImdg.predicateBuilder();
|
||||
Statement stmt = statementImdg.getFirstObjectByPredicate(
|
||||
pb.and(
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import java.util.UUID;
|
|||
public class SentAsset {
|
||||
private boolean isReceivedResponse = false;
|
||||
private UUID id;
|
||||
private Long statementId;
|
||||
private Long entityId;
|
||||
private OperationsRequest operationsRequest;
|
||||
|
||||
public boolean isReceivedResponse() {
|
||||
|
|
@ -32,11 +32,11 @@ public class SentAsset {
|
|||
this.operationsRequest = operationsRequest;
|
||||
}
|
||||
|
||||
public Long getStatementId() {
|
||||
return statementId;
|
||||
public Long getEntityId() {
|
||||
return entityId;
|
||||
}
|
||||
|
||||
public void setStatementId(Long statementId) {
|
||||
this.statementId = statementId;
|
||||
public void setEntityId(Long entityId) {
|
||||
this.entityId = entityId;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
|
|||
} finally {
|
||||
SentAsset sentAsset = new SentAsset();
|
||||
sentAsset.setId(outboundRequest.getId());
|
||||
sentAsset.setStatementId(assetOperation.getEntityId());
|
||||
sentAsset.setEntityId(assetOperation.getEntityId());
|
||||
assets.add(sentAsset);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class OperationService {
|
|||
for (SentAsset sentAsset : assets) {
|
||||
SingleAssetResponse singleAssetResponse = new SingleAssetResponse();
|
||||
singleAssetResponse.setApproved(sentAsset.getOperationsRequest().getResult());
|
||||
singleAssetResponse.setStatementId(sentAsset.getStatementId());
|
||||
singleAssetResponse.setEntityId(sentAsset.getEntityId());
|
||||
responsesToClearing.add(singleAssetResponse);
|
||||
}
|
||||
AssetOperationApprovalRequest assetOperationApprovalRequest = new AssetOperationApprovalRequest();
|
||||
|
|
|
|||
|
|
@ -4,16 +4,16 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
|
||||
public class SingleAssetResponse {
|
||||
@JsonProperty
|
||||
private Long statementId;
|
||||
private Long entityId;
|
||||
@JsonProperty
|
||||
private boolean approved;
|
||||
|
||||
public Long getStatementId() {
|
||||
return statementId;
|
||||
public Long getEntityId() {
|
||||
return entityId;
|
||||
}
|
||||
|
||||
public void setStatementId(Long statementId) {
|
||||
this.statementId = statementId;
|
||||
public void setEntityId(Long statementId) {
|
||||
this.entityId = statementId;
|
||||
}
|
||||
|
||||
public boolean isApproved() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue