JD-237: add result endpoint (#36)

This commit is contained in:
Anatoly Karlov 2021-04-12 22:07:50 +03:00 committed by GitHub
parent 679666823a
commit 55696c1ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 7 deletions

View File

@ -1,5 +1,9 @@
# Three-ds-server-storage
Хранилище макросервиса 3DSS
[3DSS Docker Compose description](https://github.com/rbkmoney/three-ds-server-compose#three-ds-server-compose)
## важно!
значения карточных диапазонов `cardRange.getRangeStart(), cardRange.getRangeEnd()`, а также номер аккаунта `accountNumber` должны быть замаскированы.
для этих целей в проекте есть `CardRangeWrapper.toStringHideCardRange` для `cardRange` и отдельный метод `AccountNumberUtils.hideAccountNumber`

10
pom.xml
View File

@ -10,7 +10,7 @@
</parent>
<artifactId>three-ds-server-storage</artifactId>
<version>1.3.0-SNAPSHOT</version>
<version>1.3.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>three-ds-server-storage</name>
@ -54,13 +54,13 @@
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>three-ds-server-storage-proto</artifactId>
<version>1.23-e8e35de</version>
<artifactId>three-ds-server-domain-lib</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>com.rbkmoney</groupId>
<artifactId>three-ds-server-domain-lib</artifactId>
<version>1.2.3</version>
<artifactId>three-ds-server-storage-proto</artifactId>
<version>1.24-ab05a55</version>
</dependency>
<!--spring-->

View File

@ -43,4 +43,10 @@ public class ChallengeFlowTransactionInfoEntity implements Serializable {
@Column(name = "acs_url")
private String acsUrl;
@Column(name = "eci")
private String eci;
@Column(name = "authentication_value")
private String authenticationValue;
}

View File

@ -18,6 +18,8 @@ public class ChallengeFlowTransactionInfoMapper {
.providerId(domain.getProviderId())
.messageVersion(domain.getMessageVersion())
.acsUrl(domain.getAcsUrl())
.eci(domain.getEci())
.authenticationValue(domain.getAuthenticationValue())
.build();
}
@ -29,6 +31,8 @@ public class ChallengeFlowTransactionInfoMapper {
.setAcsDecConInd(entity.getAcsDecConInd())
.setProviderId(entity.getProviderId())
.setMessageVersion(entity.getMessageVersion())
.setAcsUrl(entity.getAcsUrl());
.setAcsUrl(entity.getAcsUrl())
.setEci(entity.getEci())
.setAuthenticationValue(entity.getAuthenticationValue());
}
}
}

View File

@ -0,0 +1,3 @@
alter table three_ds_server_storage.challenge_flow_transaction_info
add column eci character varying,
add column authentication_value character varying;

View File

@ -213,6 +213,8 @@ public class HandlerTest extends AbstractConfigWithoutDao {
.providerId("1")
.messageVersion("2.1.0")
.acsUrl("1")
.eci("eci")
.authenticationValue("value")
.build();
when(challengeFlowTransactionInfoRepository.findById(transactionId))

View File

@ -27,6 +27,8 @@ public class ChallengeFlowTransactionInfoRepositoryTest extends AbstractDaoConfi
.providerId("1")
.messageVersion("2.1.0")
.acsUrl("1")
.eci("eci")
.authenticationValue("value")
.build();
repository.save(trap);
@ -43,6 +45,8 @@ public class ChallengeFlowTransactionInfoRepositoryTest extends AbstractDaoConfi
.providerId("1")
.messageVersion("2.1.0")
.acsUrl("1")
.eci("eci")
.authenticationValue("value")
.build();
// When
@ -65,6 +69,8 @@ public class ChallengeFlowTransactionInfoRepositoryTest extends AbstractDaoConfi
.providerId("1")
.messageVersion("2.1.0")
.acsUrl("1")
.eci("eci")
.authenticationValue("value")
.build();
// When