Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2018-2018 adorsys GmbH & Co KG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.adorsys.xs2a.adapter.remote.client;
import com.fasterxml.jackson.databind.node.ObjectNode;
import de.adorsys.xs2a.adapter.api.model.*;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import java.time.LocalDate;
import java.util.Map;
//todo: remove it after the task https://git.adorsys.de/xs2a-gateway/xs2a-gateway/issues/325 will be completed
interface AccountApi {
@RequestMapping(
value = "/v1/consents",
method = RequestMethod.POST,
consumes = "application/json"
)
ResponseEntity createConsent(
@RequestParam Map parameters,
@RequestHeader Map headers,
@RequestBody Consents body);
@RequestMapping(
value = "/v1/consents/{consentId}",
method = RequestMethod.GET
)
ResponseEntity getConsentInformation(
@PathVariable("consentId") String consentId,
@RequestParam Map parameters,
@RequestHeader Map headers);
@RequestMapping(
value = "/v1/consents/{consentId}",
method = RequestMethod.DELETE
)
ResponseEntity deleteConsent(
@PathVariable("consentId") String consentId,
@RequestParam Map parameters,
@RequestHeader Map headers);
@RequestMapping(
value = "/v1/consents/{consentId}/status",
method = RequestMethod.GET
)
ResponseEntity getConsentStatus(
@PathVariable("consentId") String consentId,
@RequestParam Map parameters,
@RequestHeader Map headers);
@RequestMapping(
value = "/v1/consents/{consentId}/authorisations",
method = RequestMethod.GET
)
ResponseEntity getConsentAuthorisation(
@PathVariable("consentId") String consentId,
@RequestParam Map parameters,
@RequestHeader Map headers);
@RequestMapping(
value = "/v1/consents/{consentId}/authorisations",
method = RequestMethod.POST,
consumes = "application/json"
)
ResponseEntity startConsentAuthorisation(
@PathVariable("consentId") String consentId,
@RequestParam Map parameters,
@RequestHeader Map headers,
@RequestBody ObjectNode body);
@RequestMapping(
value = "/v1/consents/{consentId}/authorisations/{authorisationId}",
method = RequestMethod.GET
)
ResponseEntity getConsentScaStatus(
@PathVariable("consentId") String consentId,
@PathVariable("authorisationId") String authorisationId,
@RequestParam Map parameters,
@RequestHeader Map headers);
@RequestMapping(
value = "/v1/consents/{consentId}/authorisations/{authorisationId}",
method = RequestMethod.PUT,
consumes = "application/json"
)
ResponseEntity