Merge pull request #9 from rbkmoney/ft/fill_trx_extra

Filled trxExtra
This commit is contained in:
Inal Arsanukaev 2019-06-21 17:35:43 +03:00 committed by GitHub
commit 4ec453baef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {