gateway-api и др. http://jira.mfd.msk:8088/browse/CLS-506 (отменчет правку по CLS-496)
This commit is contained in:
parent
5c0c900f6b
commit
d06be93bc0
7 changed files with 29 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ public class MoneyMarketSecurityRequestAdapter {
|
||||||
moneyMarketSecurityNewRequest.setSecuritySymbol(code.substring(0, Math.min(7, code.length())));
|
moneyMarketSecurityNewRequest.setSecuritySymbol(code.substring(0, Math.min(7, code.length())));
|
||||||
moneyMarketSecurityNewRequest.setConvention(code);
|
moneyMarketSecurityNewRequest.setConvention(code);
|
||||||
moneyMarketSecurityNewRequest.setNominalCurrency(exchangeInstrument.getSettlementCurrencyLetterCode());
|
moneyMarketSecurityNewRequest.setNominalCurrency(exchangeInstrument.getSettlementCurrencyLetterCode());
|
||||||
|
moneyMarketSecurityNewRequest.setClearingOrganization(exchangeInstrument.getClearingOrganization());
|
||||||
moneyMarketSecurityNewRequest.setInstrumentType(InstrumentType.RATE.getKey());
|
moneyMarketSecurityNewRequest.setInstrumentType(InstrumentType.RATE.getKey());
|
||||||
moneyMarketSecurityNewRequest.setShortName(exchangeInstrument.getName());
|
moneyMarketSecurityNewRequest.setShortName(exchangeInstrument.getName());
|
||||||
moneyMarketSecurityNewRequest.setLotSize(exchangeInstrument.getLot());
|
moneyMarketSecurityNewRequest.setLotSize(exchangeInstrument.getLot());
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@ public class SecurityRequestAdapter {
|
||||||
fixedIncomeSecurityNewRequest.setFullName(fondSecurity.getFullName());
|
fixedIncomeSecurityNewRequest.setFullName(fondSecurity.getFullName());
|
||||||
fixedIncomeSecurityNewRequest.setIsin(fondSecurity.getIsin());
|
fixedIncomeSecurityNewRequest.setIsin(fondSecurity.getIsin());
|
||||||
fixedIncomeSecurityNewRequest.setBondType(fondSecurity.getBondType());
|
fixedIncomeSecurityNewRequest.setBondType(fondSecurity.getBondType());
|
||||||
fixedIncomeSecurityNewRequest.setNominalValue(fondSecurity.getNominalForDate());
|
fixedIncomeSecurityNewRequest.setNominalValue(fondSecurity.getNominalValue());
|
||||||
|
fixedIncomeSecurityNewRequest.setNominalForDate(fondSecurity.getNominalForDate());
|
||||||
fixedIncomeSecurityNewRequest.setNominalCurrency(fondSecurity.getNominalCurrency());
|
fixedIncomeSecurityNewRequest.setNominalCurrency(fondSecurity.getNominalCurrency());
|
||||||
fixedIncomeSecurityNewRequest.setMaturityDate(fondSecurity.getMaturityDate());
|
fixedIncomeSecurityNewRequest.setMaturityDate(fondSecurity.getMaturityDate());
|
||||||
if (fondSecurity.getCouponFrequency() != null) {
|
if (fondSecurity.getCouponFrequency() != null) {
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,7 @@ public class FixedIncomeSecurityService extends QueueConsumer implements Initial
|
||||||
fixedIncome.setBondType(req.getBondType());
|
fixedIncome.setBondType(req.getBondType());
|
||||||
fixedIncome.setLotSize(req.getLotSize());
|
fixedIncome.setLotSize(req.getLotSize());
|
||||||
fixedIncome.setNominalValue(req.getNominalValue());
|
fixedIncome.setNominalValue(req.getNominalValue());
|
||||||
|
fixedIncome.setNominalForDate(req.getNominalForDate());
|
||||||
fixedIncome.setNominalCurrency(req.getNominalCurrency());
|
fixedIncome.setNominalCurrency(req.getNominalCurrency());
|
||||||
fixedIncome.setMaturityDate(req.getMaturityDate());
|
fixedIncome.setMaturityDate(req.getMaturityDate());
|
||||||
fixedIncome.setCoupon(req.getCoupon());
|
fixedIncome.setCoupon(req.getCoupon());
|
||||||
|
|
@ -153,6 +154,7 @@ public class FixedIncomeSecurityService extends QueueConsumer implements Initial
|
||||||
fixedIncome.setBondType(req.getBondType());
|
fixedIncome.setBondType(req.getBondType());
|
||||||
fixedIncome.setLotSize(req.getLotSize());
|
fixedIncome.setLotSize(req.getLotSize());
|
||||||
fixedIncome.setNominalValue(req.getNominalValue());
|
fixedIncome.setNominalValue(req.getNominalValue());
|
||||||
|
fixedIncome.setNominalForDate(req.getNominalForDate());
|
||||||
fixedIncome.setNominalCurrency(req.getNominalCurrency());
|
fixedIncome.setNominalCurrency(req.getNominalCurrency());
|
||||||
fixedIncome.setMaturityDate(req.getMaturityDate());
|
fixedIncome.setMaturityDate(req.getMaturityDate());
|
||||||
fixedIncome.setCoupon(req.getCoupon());
|
fixedIncome.setCoupon(req.getCoupon());
|
||||||
|
|
|
||||||
|
|
@ -380,6 +380,7 @@ public class GatewaySecurityService extends QueueConsumer implements Initializin
|
||||||
updateRequest.setBondType(newRequest.getBondType());
|
updateRequest.setBondType(newRequest.getBondType());
|
||||||
updateRequest.setLotSize(newRequest.getLotSize());
|
updateRequest.setLotSize(newRequest.getLotSize());
|
||||||
updateRequest.setNominalValue(newRequest.getNominalValue());
|
updateRequest.setNominalValue(newRequest.getNominalValue());
|
||||||
|
updateRequest.setNominalForDate(newRequest.getNominalForDate());
|
||||||
updateRequest.setNominalCurrency(newRequest.getNominalCurrency());
|
updateRequest.setNominalCurrency(newRequest.getNominalCurrency());
|
||||||
updateRequest.setMaturityDate(newRequest.getMaturityDate());
|
updateRequest.setMaturityDate(newRequest.getMaturityDate());
|
||||||
updateRequest.setCoupon(newRequest.getCoupon());
|
updateRequest.setCoupon(newRequest.getCoupon());
|
||||||
|
|
@ -489,6 +490,7 @@ public class GatewaySecurityService extends QueueConsumer implements Initializin
|
||||||
updateRequest.setDescription(newRequest.getDescription());
|
updateRequest.setDescription(newRequest.getDescription());
|
||||||
updateRequest.setIssuerId(newRequest.getIssuerId());
|
updateRequest.setIssuerId(newRequest.getIssuerId());
|
||||||
updateRequest.setIsin(newRequest.getIsin());
|
updateRequest.setIsin(newRequest.getIsin());
|
||||||
|
updateRequest.setClearingOrganization(newRequest.getClearingOrganization());
|
||||||
updateRequest.setWorkflowStatus(newRequest.getWorkflowStatus());
|
updateRequest.setWorkflowStatus(newRequest.getWorkflowStatus());
|
||||||
return updateRequest;
|
return updateRequest;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ public class MoneyMarketSecurityService extends QueueConsumer implements Initial
|
||||||
mms.setSecurityId(mms.getId());
|
mms.setSecurityId(mms.getId());
|
||||||
mms.setDescription(req.getDescription());
|
mms.setDescription(req.getDescription());
|
||||||
mms.setConvention(req.getConvention());
|
mms.setConvention(req.getConvention());
|
||||||
|
mms.setClearingOrganization(req.getClearingOrganization());
|
||||||
mms.setCreated(Instant.now());
|
mms.setCreated(Instant.now());
|
||||||
mms.setUpdated(mms.getCreated());
|
mms.setUpdated(mms.getCreated());
|
||||||
if (req.getWorkflowStatus() == null) {
|
if (req.getWorkflowStatus() == null) {
|
||||||
|
|
@ -211,6 +212,7 @@ public class MoneyMarketSecurityService extends QueueConsumer implements Initial
|
||||||
mms.setSecurityId(mms.getId());
|
mms.setSecurityId(mms.getId());
|
||||||
mms.setDescription(req.getDescription());
|
mms.setDescription(req.getDescription());
|
||||||
mms.setConvention(req.getConvention());
|
mms.setConvention(req.getConvention());
|
||||||
|
mms.setClearingOrganization(req.getClearingOrganization());
|
||||||
if (req.getWorkflowStatus() != null) {
|
if (req.getWorkflowStatus() != null) {
|
||||||
mms.setWorkflowStatus(req.getWorkflowStatus());
|
mms.setWorkflowStatus(req.getWorkflowStatus());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ public class MoneyMarketSecurityNewRequest implements WithStartDt, WithEndDt, Wi
|
||||||
public String isin;
|
public String isin;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String workflowStatus;
|
public String workflowStatus;
|
||||||
|
@JsonProperty
|
||||||
|
public String clearingOrganization;
|
||||||
|
|
||||||
public LocalDate getStartDate() {
|
public LocalDate getStartDate() {
|
||||||
return startDate;
|
return startDate;
|
||||||
|
|
@ -188,4 +190,12 @@ public class MoneyMarketSecurityNewRequest implements WithStartDt, WithEndDt, Wi
|
||||||
public void setWorkflowStatus(String workflowStatus) {
|
public void setWorkflowStatus(String workflowStatus) {
|
||||||
this.workflowStatus = workflowStatus;
|
this.workflowStatus = workflowStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getClearingOrganization() {
|
||||||
|
return clearingOrganization;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClearingOrganization(String clearingOrganization) {
|
||||||
|
this.clearingOrganization = clearingOrganization;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,8 @@ public class MoneyMarketSecurityUpdateRequest implements WithId, WithStartDt, Wi
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String isin;
|
public String isin;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
|
public String clearingOrganization;
|
||||||
|
@JsonProperty
|
||||||
public String workflowStatus;
|
public String workflowStatus;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
|
|
@ -199,4 +201,12 @@ public class MoneyMarketSecurityUpdateRequest implements WithId, WithStartDt, Wi
|
||||||
public void setStartDate(LocalDate startDate) {
|
public void setStartDate(LocalDate startDate) {
|
||||||
this.startDate = startDate;
|
this.startDate = startDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getClearingOrganization() {
|
||||||
|
return clearingOrganization;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClearingOrganization(String clearingOrganization) {
|
||||||
|
this.clearingOrganization = clearingOrganization;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue