This commit is contained in:
parent
53198ca9f5
commit
4b1b6113f4
3 changed files with 22 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ public class PaymentInstructionBuilderV2 {
|
|||
}
|
||||
|
||||
if (useCS_BLKD && categoryVInitiator(senderId) && companyRoleODEPPresent(senderId)) {
|
||||
payment.setPaymentPurpose("CS_BLKD " + purpose);
|
||||
payment.setPaymentPurpose(SpecifFlag.CS_BLKD.getKey() + " " + purpose);
|
||||
} else {
|
||||
payment.setPaymentPurpose(purpose);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,7 +361,8 @@ public class Sdf57Executor extends AbstractExecutor<SDf57> {
|
|||
if (TextUtil.isEmpty(asts.a__t().getTradingClearingRegistry())) {
|
||||
log.trace("stmt.id={} {}.id={} TCR is empty, skipping gateway request",
|
||||
stmt.getId(), asts.a__t().getRegistryCode(), asts.a__t().getId());
|
||||
} else {
|
||||
} else if (TextUtil.isEmpty(sdf57.getSpecif())
|
||||
|| !sdf57.getSpecif().contains(SpecifFlag.CS_BLKD.getKey())) {
|
||||
log.trace("sending gateway request for stmt.id={}", stmt.getId());
|
||||
kafka.sendRequestToQueue(Consts.ASSET_OPERATION,
|
||||
gatewayRequest(stmt,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,19 @@
|
|||
package ru.spcex.platform.enumeration;
|
||||
|
||||
import ru.spcex.platform.utils.enumeration.IEnumKey;
|
||||
|
||||
public enum SpecifFlag implements IEnumKey {
|
||||
CS_BLKD("CS_BLKD"),
|
||||
;
|
||||
|
||||
private final String key;
|
||||
|
||||
SpecifFlag(String key) {
|
||||
this.key = key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getKey() {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue