Please wait. This can take some minutes ...
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.
de.adorsys.ledgers.rest.client.CmsPsuPisRestClient Maven / Gradle / Ivy
/*
* 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.ledgers.rest.client;
import de.adorsys.psd2.consent.api.pis.CmsPayment;
import de.adorsys.psd2.consent.api.pis.CmsPaymentResponse;
import de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponse;
import de.adorsys.psd2.xs2a.core.psu.PsuIdData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@FeignClient(value = "cmsPsuPis", url = "${cms.url}", path = "/psu-api/v1/payment", primary = false, configuration = FeignConfig.class)
public interface CmsPsuPisRestClient {
@PutMapping(path = "/authorisation/{authorisation-id}/psu-data")
ResponseEntity updatePsuInPayment(
@PathVariable("authorisation-id") String authorisationId,
@RequestHeader(value = "instance-id", required = false) String instanceId,
@RequestBody PsuIdData psuIdData);
@GetMapping(path = "/{payment-id}")
ResponseEntity getPaymentByPaymentId(
@RequestHeader(value = "psu-id", required = false) String psuId,
@RequestHeader(value = "psu-id-type", required = false) String psuIdType,
@RequestHeader(value = "psu-corporate-id", required = false) String psuCorporateId,
@RequestHeader(value = "psu-corporate-id-type", required = false) String psuCorporateIdType,
@PathVariable("payment-id") String paymentId,
@RequestHeader(value = "instance-id", required = false) String instanceId);
@GetMapping(path = "/redirect/{redirect-id}")
ResponseEntity getPaymentByRedirectId(
@RequestHeader(value = "psu-id", required = false) String psuId,
@RequestHeader(value = "psu-id-type", required = false) String psuIdType,
@RequestHeader(value = "psu-corporate-id", required = false) String psuCorporateId,
@RequestHeader(value = "psu-corporate-id-type", required = false) String psuCorporateIdType,
@PathVariable("redirect-id") String redirectId,
@RequestHeader(value = "instance-id", required = false) String instanceId);
@GetMapping(path = "/cancellation/redirect/{redirect-id}")
ResponseEntity getPaymentByRedirectIdForCancellation(
@RequestHeader(value = "psu-id", required = false) String psuId,
@RequestHeader(value = "psu-id-type", required = false) String psuIdType,
@RequestHeader(value = "psu-corporate-id", required = false) String psuCorporateId,
@RequestHeader(value = "psu-corporate-id-type", required = false) String psuCorporateIdType,
@PathVariable("redirect-id") String redirectId,
@RequestHeader(value = "instance-id", required = false) String instanceId);
@PutMapping(path = "/{payment-id}/authorisation/{authorisation-id}/status/{status}")
ResponseEntity updateAuthorisationStatus(
@RequestHeader(value = "psu-id", required = false) String psuId,
@RequestHeader(value = "psu-id-type", required = false) String psuIdType,
@RequestHeader(value = "psu-corporate-id", required = false) String psuCorporateId,
@RequestHeader(value = "psu-corporate-id-type", required = false) String psuCorporateIdType,
@PathVariable("payment-id") String paymentId,
@PathVariable("authorisation-id") String authorisationId,
@PathVariable("status") String status,
@RequestHeader(value = "instance-id", required = false) String instanceId);
@PutMapping(path = "/{payment-id}/status/{status}")
ResponseEntity updatePaymentStatus(
@PathVariable("payment-id") String paymentId,
@PathVariable("status") String status,
@RequestHeader(value = "instance-id", required = false) String instanceId);
}