Class PaymentResource
- java.lang.Object
-
- de.adorsys.ledgers.middleware.rest.resource.PaymentResource
-
- All Implemented Interfaces:
PaymentRestAPI
@RestController @MiddlewareUserResource @RequestMapping("/payments") public class PaymentResource extends Object implements PaymentRestAPI
-
-
Field Summary
-
Fields inherited from interface de.adorsys.ledgers.middleware.rest.resource.PaymentRestAPI
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description PaymentResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<SCAPaymentResponseTO>executeCancelPayment(String paymentId)org.springframework.http.ResponseEntity<SCAPaymentResponseTO>executePayment(String paymentId)org.springframework.http.ResponseEntity<PaymentTO>getPaymentById(String paymentId)org.springframework.http.ResponseEntity<TransactionStatusTO>getPaymentStatusById(String paymentId)org.springframework.http.ResponseEntity<List<PaymentTO>>getPendingPeriodicPayments()org.springframework.http.ResponseEntity<CustomPageImpl<PaymentTO>>getPendingPeriodicPaymentsPaged(int page, int size)org.springframework.http.ResponseEntity<SCAPaymentResponseTO>initiatePayment(PaymentTypeTO paymentType, PaymentTO payment)org.springframework.http.ResponseEntity<SCAPaymentResponseTO>initiatePmtCancellation(String paymentId)
-
-
-
Method Detail
-
getPaymentStatusById
@PreAuthorize("hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<TransactionStatusTO> getPaymentStatusById(String paymentId)- Specified by:
getPaymentStatusByIdin interfacePaymentRestAPI
-
getPaymentById
@PreAuthorize("hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<PaymentTO> getPaymentById(String paymentId)- Specified by:
getPaymentByIdin interfacePaymentRestAPI
-
getPendingPeriodicPayments
@PreAuthorize("hasRole(\'CUSTOMER\')") public org.springframework.http.ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments()- Specified by:
getPendingPeriodicPaymentsin interfacePaymentRestAPI
-
getPendingPeriodicPaymentsPaged
@PreAuthorize("hasRole(\'CUSTOMER\')") public org.springframework.http.ResponseEntity<CustomPageImpl<PaymentTO>> getPendingPeriodicPaymentsPaged(int page, int size)- Specified by:
getPendingPeriodicPaymentsPagedin interfacePaymentRestAPI
-
initiatePayment
@PreAuthorize("hasAccessToAccountWithIban(#payment.debtorAccount.iban)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePayment(PaymentTypeTO paymentType, PaymentTO payment)- Specified by:
initiatePaymentin interfacePaymentRestAPI
-
executePayment
@PreAuthorize("hasPartialScope() and hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> executePayment(String paymentId)- Specified by:
executePaymentin interfacePaymentRestAPI
-
initiatePmtCancellation
@PreAuthorize("hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePmtCancellation(String paymentId)- Specified by:
initiatePmtCancellationin interfacePaymentRestAPI
-
executeCancelPayment
@PreAuthorize("hasPartialScope() and hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> executeCancelPayment(String paymentId)- Specified by:
executeCancelPaymentin interfacePaymentRestAPI
-
-