@Service public class AisConsentService extends Object
| Constructor and Description |
|---|
AisConsentService() |
| 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,
SpiScaStatus scaStatus)
Sends a POST request to CMS to store created consent authorization
|
String |
createConsent(CreateConsentReq request,
String psuId,
String tppId,
AspspConsentData aspspConsentData)
Sends a POST request to CMS to store created AISconsent
|
SpiAccountConsentAuthorization |
getAccountConsentAuthorizationById(String authorizationId,
String consentId)
Requests CMS to retrieve AIS consent authorization by its identifier
|
SpiAccountConsent |
getAccountConsentById(String consentId)
Requests CMS to retrieve AIS consent by its identifier
|
SpiConsentStatus |
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(SpiUpdateConsentPsuDataReq updatePsuData)
Sends a PUT request to CMS to update created AIS consent authorization
|
public String createConsent(CreateConsentReq request, String psuId, String tppId, AspspConsentData aspspConsentData)
request - Request body storing main consent detailspsuId - String representation of PSU`s identifier at ASPSPtppId - String representation of TPP`s identifier from TPP CertificateaspspConsentData - Aspsp private binary datapublic SpiAccountConsent getAccountConsentById(String consentId)
consentId - String representation of identifier of stored consentpublic SpiConsentStatus getAccountConsentStatusById(String consentId)
consentId - String representation of identifier of stored consentpublic void revokeConsent(String consentId)
consentId - String representation of identifier of stored consentpublic 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, SpiScaStatus scaStatus)
consentId - String representation of identifier of stored consentpublic SpiAccountConsentAuthorization getAccountConsentAuthorizationById(String authorizationId, String consentId)
authorizationId - String representation of identifier of stored consent authorizationpublic void updateConsentAuthorization(SpiUpdateConsentPsuDataReq updatePsuData)
updatePsuData - Consent psu dataCopyright © 2018 Pivotal Software, Inc.. All rights reserved.