Search in sources :

Example 6 with AccountRequest

use of com.forgerock.openbanking.common.model.openbanking.persistence.account.AccountRequest in project openbanking-aspsp by OpenBankingToolkit.

the class AccountRequestStoreServiceImpl method saveAccountRequest.

private void saveAccountRequest(AccountRequest accountRequest) {
    HttpEntity<AccountRequest> request = new HttpEntity<>(accountRequest, new HttpHeaders());
    restTemplate.exchange(rsStoreRoot + "/api/account-requests/", HttpMethod.PUT, request, Void.class);
}
Also used : HttpHeaders(org.springframework.http.HttpHeaders) AccountRequest(com.forgerock.openbanking.common.model.openbanking.persistence.account.AccountRequest) FRAccountRequest(com.forgerock.openbanking.common.model.openbanking.persistence.account.FRAccountRequest) HttpEntity(org.springframework.http.HttpEntity)

Aggregations

AccountRequest (com.forgerock.openbanking.common.model.openbanking.persistence.account.AccountRequest)6 OBErrorException (com.forgerock.openbanking.exceptions.OBErrorException)4 Tpp (com.forgerock.openbanking.model.Tpp)3 FRCustomerInfo (com.forgerock.openbanking.common.model.data.FRCustomerInfo)1 FRExternalPermissionsCode (com.forgerock.openbanking.common.model.openbanking.domain.account.common.FRExternalPermissionsCode)1 FRAccountAccessConsent (com.forgerock.openbanking.common.model.openbanking.persistence.account.FRAccountAccessConsent)1 FRAccountRequest (com.forgerock.openbanking.common.model.openbanking.persistence.account.FRAccountRequest)1 IOException (java.io.IOException)1 ParseException (java.text.ParseException)1 HttpEntity (org.springframework.http.HttpEntity)1 HttpHeaders (org.springframework.http.HttpHeaders)1 UserDetails (org.springframework.security.core.userdetails.UserDetails)1