mirror of
https://github.com/pcvolkmer/etl-processor.git
synced 2025-07-01 14:12:55 +00:00
refactor: rename method getIsConsentedParam -> getIsConsentedRequestParam
This commit is contained in:
@ -81,7 +81,7 @@ public class GicsConsentService implements ICheckConsent {
|
|||||||
return headers;
|
return headers;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Parameters getIsConsentedParam(GIcsConfigProperties configProperties,
|
public static Parameters getIsConsentedRequestParam(GIcsConfigProperties configProperties,
|
||||||
String personIdentifierValue) {
|
String personIdentifierValue) {
|
||||||
var result = new Parameters();
|
var result = new Parameters();
|
||||||
result.addParameter(new ParametersParameterComponent().setName("personIdentifier").setValue(
|
result.addParameter(new ParametersParameterComponent().setName("personIdentifier").setValue(
|
||||||
@ -152,7 +152,7 @@ public class GicsConsentService implements ICheckConsent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TtpConsentStatus getTtpConsentStatus(String personIdentifierValue) {
|
public TtpConsentStatus getTtpConsentStatus(String personIdentifierValue) {
|
||||||
var parameter = GicsConsentService.getIsConsentedParam(gIcsConfigProperties,
|
var parameter = GicsConsentService.getIsConsentedRequestParam(gIcsConfigProperties,
|
||||||
personIdentifierValue);
|
personIdentifierValue);
|
||||||
|
|
||||||
var consentStatusResponse = callGicsApi(parameter);
|
var consentStatusResponse = callGicsApi(parameter);
|
||||||
|
@ -100,6 +100,4 @@ public class GicsConsentServiceTest {
|
|||||||
var consentStatus = gicsConsentService.getTtpConsentStatus("123456");
|
var consentStatus = gicsConsentService.getTtpConsentStatus("123456");
|
||||||
assertThat(consentStatus).isEqualTo(TtpConsentStatus.FAILED_TO_ASK);
|
assertThat(consentStatus).isEqualTo(TtpConsentStatus.FAILED_TO_ASK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user