@Service public class Xs2aAisConsentService extends Object
| Constructor and Description |
|---|
Xs2aAisConsentService() |
| Modifier and Type | Method and Description |
|---|---|
void |
consentActionLog(String tppId,
String consentId,
ActionStatus actionStatus)
Sends a POST request to CMS to perform decrement of consent usages and report status of the operation held with certain AIS consent
|
Optional<String> |
createAisConsentAuthorization(String consentId,
ScaStatus scaStatus,
PsuIdData psuData)
Sends a POST request to CMS to store created consent authorization
|
String |
createConsent(CreateConsentReq request,
PsuIdData psuData,
String tppId)
Sends a POST request to CMS to store created AISconsent
|
AccountConsentAuthorization |
getAccountConsentAuthorizationById(String authorizationId,
String consentId)
Requests CMS to retrieve AIS consent authorization by its identifier
|
AccountConsent |
getAccountConsentById(String consentId)
Requests CMS to retrieve AIS consent by its identifier
|
ConsentStatus |
getAccountConsentStatusById(String consentId)
Requests CMS to retrieve AIS consent status by its identifier
|
void |
revokeConsent(String consentId)
Requests CMS to update consent status to "Revoked by PSU" state
|
void |
updateConsentAuthorization(UpdateConsentPsuDataReq updatePsuData)
Sends a PUT request to CMS to update created AIS consent authorization
|
void |
updateConsentStatus(String consentId,
ConsentStatus consentStatus)
Requests CMS to update consent status into provided one
|
public String createConsent(CreateConsentReq request, PsuIdData psuData, String tppId)
request - Request body storing main consent detailspsuData - PsuIdData container of authorisation data about PSUtppId - String representation of TPP`s identifier from TPP Certificatepublic AccountConsent getAccountConsentById(String consentId)
consentId - String representation of identifier of stored consentpublic ConsentStatus getAccountConsentStatusById(String consentId)
consentId - String representation of identifier of stored consentpublic void revokeConsent(String consentId)
consentId - String representation of identifier of stored consentpublic void updateConsentStatus(String consentId, ConsentStatus consentStatus)
consentId - String representation of identifier of stored consentconsentStatus - ConsentStatus the consent be changed topublic void consentActionLog(String tppId, String consentId, ActionStatus actionStatus)
tppId - String representation of TPP`s identifier from TPP CertificateconsentId - String representation of identifier of stored consentactionStatus - Enum value representing whether the acition is successful or errors occuredpublic Optional<String> createAisConsentAuthorization(String consentId, ScaStatus scaStatus, PsuIdData psuData)
consentId - String representation of identifier of stored consentpublic AccountConsentAuthorization getAccountConsentAuthorizationById(String authorizationId, String consentId)
authorizationId - String representation of identifier of stored consent authorizationpublic void updateConsentAuthorization(UpdateConsentPsuDataReq updatePsuData)
updatePsuData - Consent psu dataCopyright © 2018 Pivotal Software, Inc.. All rights reserved.