Filled trxExtra

This commit is contained in:
Inal Arsanukaev 2019-06-21 17:32:42 +03:00
parent 74a201ad6d
commit f2f353aaf8
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.rbkmoney</groupId>
<artifactId>adapter-bank-payout-spring-boot-starter</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.8-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Adapter-bank-payout-spring-boot-starter</name>

View File

@ -27,7 +27,10 @@ public class IntentServiceImpl implements IntentService {
}
public Intent getSuccess(ExitStateModel exitStateModel) {
return Intent.finish(new FinishIntent(FinishStatus.success(new Success(new TransactionInfo().setId(exitStateModel.getNextState().getTrxInfo().getTrxId())))));
com.rbkmoney.adapter.bank.payout.spring.boot.starter.model.TransactionInfo trxInfo = exitStateModel.getNextState().getTrxInfo();
return Intent.finish(new FinishIntent(FinishStatus.success(new Success(new TransactionInfo()
.setId(trxInfo.getTrxId())
.setExtra(trxInfo.getTrxExtra())))));
}
public Intent getSleep(ExitStateModel exitStateModel) {