@RestController @MiddlewareUserResource @RequestMapping(value="/payments") public class PaymentResource extends Object implements PaymentRestAPI
BASE_PATH| Constructor and Description |
|---|
PaymentResource() |
| Modifier and Type | Method and 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<SCAPaymentResponseTO> |
initiatePayment(PaymentTypeTO paymentType,
PaymentTO payment) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
initiatePmtCancellation(String paymentId) |
@PreAuthorize(value="hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<TransactionStatusTO> getPaymentStatusById(String paymentId)
getPaymentStatusById in interface PaymentRestAPI@PreAuthorize(value="hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<PaymentTO> getPaymentById(String paymentId)
getPaymentById in interface PaymentRestAPI@PreAuthorize(value="hasRole(\'CUSTOMER\')") public org.springframework.http.ResponseEntity<List<PaymentTO>> getPendingPeriodicPayments()
getPendingPeriodicPayments in interface PaymentRestAPI@PreAuthorize(value="hasAccessToAccountWithIban(#payment.debtorAccount.iban)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePayment(PaymentTypeTO paymentType, PaymentTO payment)
initiatePayment in interface PaymentRestAPI@PreAuthorize(value="hasPartialScope() and hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> executePayment(String paymentId)
executePayment in interface PaymentRestAPI@PreAuthorize(value="hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePmtCancellation(String paymentId)
initiatePmtCancellation in interface PaymentRestAPI@PreAuthorize(value="hasPartialScope() and hasAccessToAccountByPaymentId(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> executeCancelPayment(String paymentId)
executeCancelPayment in interface PaymentRestAPICopyright © 2020. All rights reserved.