обработка SDF06 клиринг сервисом
This commit is contained in:
parent
4a4af8a442
commit
699a40f157
2 changed files with 11 additions and 0 deletions
|
|
@ -145,6 +145,7 @@ public class Sdf06Executor extends AbstractExecutor<SDf06> {
|
||||||
|
|
||||||
private AssetOperationRequest requestFromStatement(Statement stmt, String tradingCode, String tcrCode) {
|
private AssetOperationRequest requestFromStatement(Statement stmt, String tradingCode, String tcrCode) {
|
||||||
AssetOperationRequest req = new AssetOperationRequest();
|
AssetOperationRequest req = new AssetOperationRequest();
|
||||||
|
req.setStatementId(stmt.getId());
|
||||||
req.setAmount(BigDecimalUtil.safeBD(stmt.getAmount()).abs());
|
req.setAmount(BigDecimalUtil.safeBD(stmt.getAmount()).abs());
|
||||||
req.setSecuritySymbol(CurrencyCode.RUB.getKey()); //fixme retrieve security symbol from validator
|
req.setSecuritySymbol(CurrencyCode.RUB.getKey()); //fixme retrieve security symbol from validator
|
||||||
req.setTradingCode(tradingCode);
|
req.setTradingCode(tradingCode);
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
public class AssetOperationRequest {
|
public class AssetOperationRequest {
|
||||||
|
@JsonProperty
|
||||||
|
private Long statementId;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private BigDecimal amount;
|
private BigDecimal amount;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
|
@ -18,6 +20,14 @@ public class AssetOperationRequest {
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String direction;
|
private String direction;
|
||||||
|
|
||||||
|
public Long getStatementId() {
|
||||||
|
return statementId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatementId(Long statementId) {
|
||||||
|
this.statementId = statementId;
|
||||||
|
}
|
||||||
|
|
||||||
public BigDecimal getAmount() {
|
public BigDecimal getAmount() {
|
||||||
return amount;
|
return amount;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue