mirror of
https://github.com/valitydev/adapter-flow-lib.git
synced 2024-11-06 00:05:22 +00:00
Add trs id from respnse (#41)
This commit is contained in:
parent
4c64ebaa3b
commit
7c2237f9c6
2
pom.xml
2
pom.xml
@ -12,7 +12,7 @@
|
||||
</parent>
|
||||
|
||||
<artifactId>adapter-flow-lib</artifactId>
|
||||
<version>0.1.11</version>
|
||||
<version>0.1.12</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>adapter-flow-lib</name>
|
||||
|
@ -7,6 +7,7 @@ import dev.vality.adapter.flow.lib.model.ExitStateModel;
|
||||
import dev.vality.adapter.flow.lib.utils.ErrorUtils;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
@ -21,7 +22,10 @@ public class RetryProcessor implements Processor<ExitStateModel, BaseResponseMod
|
||||
log.debug("Start redirect process response: {} entryStateModel: {}", response, entryStateModel);
|
||||
ExitStateModel exitStateModel = new ExitStateModel();
|
||||
exitStateModel.setLastOperationStatus(response.getStatus());
|
||||
exitStateModel.setProviderTrxId(entryStateModel.getBaseRequestModel().getProviderTrxId());
|
||||
exitStateModel.setProviderTrxId(
|
||||
StringUtils.hasText(response.getProviderTrxId())
|
||||
? response.getProviderTrxId()
|
||||
: entryStateModel.getBaseRequestModel().getProviderTrxId());
|
||||
exitStateModel.setTrxExtra(response.getSaveData());
|
||||
exitStateModel.setAdditionalTrxInfo(response.getAdditionalTrxInfo());
|
||||
log.debug("Finish redirect process response: {} entryStateModel: {}", response, entryStateModel);
|
||||
|
Loading…
Reference in New Issue
Block a user