asset operation fields
This commit is contained in:
parent
14f6d5656b
commit
4226df3e5c
6 changed files with 20 additions and 10 deletions
|
|
@ -352,7 +352,7 @@ public class Sdf06Executor {
|
|||
|
||||
private AssetOperationRequest requestFromStatement(Statement stmt, String tradingCode, String tcrCode) {
|
||||
AssetOperationRequest req = new AssetOperationRequest();
|
||||
req.setStatementId(stmt.getId());
|
||||
req.setEntityId(stmt.getId());
|
||||
req.setAmount(stmt.getAmount());
|
||||
req.setSecuritySymbol(CurrencyCode.RUB.getKey()); //fixme retrieve security symbol from validator
|
||||
req.setTradingCode(tradingCode);
|
||||
|
|
|
|||
|
|
@ -361,7 +361,7 @@ public class Sdf10Executor {
|
|||
|
||||
private AssetOperationRequest requestFromStatement(Statement stmt, String tradingCode, String tcrCode, String securityCode) {
|
||||
AssetOperationRequest req = new AssetOperationRequest();
|
||||
req.setStatementId(stmt.getId());
|
||||
req.setEntityId(stmt.getId());
|
||||
// req.setAmount(stmt.getAmount());
|
||||
req.setQuantity(stmt.getAmount());
|
||||
req.setSecuritySymbol(securityCode); //fixme retrieve security symbol from validator
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ public class Sdf20Executor {
|
|||
String tcrCode//из TCR
|
||||
) {
|
||||
AssetOperationRequest req = new AssetOperationRequest();
|
||||
req.setStatementId(null);
|
||||
req.setEntityId(null);
|
||||
req.setQuantity(quantity); //+
|
||||
req.setSecuritySymbol(securitySymbol); //+
|
||||
req.setTradingCode(tradingCode); //???
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import ru.spcex.platform.enumeration.CurrencyCode;
|
|||
public class GatewayRequestCreator {
|
||||
public static AssetOperationRequest gatewayRequestPart(Statement stmt, String tradingCode, String tcrCode) {
|
||||
AssetOperationRequest req = new AssetOperationRequest();
|
||||
req.setStatementId(stmt.getId());
|
||||
req.setEntityId(stmt.getId());
|
||||
req.setAmount(stmt.getAmount());
|
||||
req.setSecuritySymbol(CurrencyCode.RUB.getKey()); //fixme retrieve security symbol from validator
|
||||
req.setTradingCode(tradingCode);
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ public class GatewayService extends QueueConsumer implements InitializingBean {
|
|||
} finally {
|
||||
SentAsset sentAsset = new SentAsset();
|
||||
sentAsset.setId(outboundRequest.getId());
|
||||
sentAsset.setStatementId(assetOperation.getStatementId());
|
||||
sentAsset.setStatementId(assetOperation.getEntityId());
|
||||
assets.add(sentAsset);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ import java.math.BigDecimal;
|
|||
|
||||
public class AssetOperationRequest {
|
||||
@JsonProperty
|
||||
private Long statementId;
|
||||
private Long sessionId;
|
||||
@JsonProperty
|
||||
private Long entityId;
|
||||
@JsonProperty
|
||||
private BigDecimal amount;
|
||||
@JsonProperty
|
||||
|
|
@ -20,12 +22,20 @@ public class AssetOperationRequest {
|
|||
@JsonProperty
|
||||
private String direction;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
public Long getSessionId() {
|
||||
return sessionId;
|
||||
}
|
||||
|
||||
public void setSessionId(Long sessionId) {
|
||||
this.sessionId = sessionId;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue