обработка 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) {
|
||||
AssetOperationRequest req = new AssetOperationRequest();
|
||||
req.setStatementId(stmt.getId());
|
||||
req.setAmount(BigDecimalUtil.safeBD(stmt.getAmount()).abs());
|
||||
req.setSecuritySymbol(CurrencyCode.RUB.getKey()); //fixme retrieve security symbol from validator
|
||||
req.setTradingCode(tradingCode);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||
import java.math.BigDecimal;
|
||||
|
||||
public class AssetOperationRequest {
|
||||
@JsonProperty
|
||||
private Long statementId;
|
||||
@JsonProperty
|
||||
private BigDecimal amount;
|
||||
@JsonProperty
|
||||
|
|
@ -18,6 +20,14 @@ public class AssetOperationRequest {
|
|||
@JsonProperty
|
||||
private String direction;
|
||||
|
||||
public Long getStatementId() {
|
||||
return statementId;
|
||||
}
|
||||
|
||||
public void setStatementId(Long statementId) {
|
||||
this.statementId = statementId;
|
||||
}
|
||||
|
||||
public BigDecimal getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue