@RestController @MiddlewareUserResource @RequestMapping(value="/payments") public class PaymentResource extends Object implements PaymentRestAPI
BASE_PATH| Constructor and Description |
|---|
PaymentResource(MiddlewarePaymentService middlewareService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
authorizeCancelPayment(String paymentId,
String cancellationId,
String authCode) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
authorizePayment(String paymentId,
String authorisationId,
String authCode) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
getCancelSCA(String paymentId,
String cancellationId) |
org.springframework.http.ResponseEntity<?> |
getPaymentById(String paymentId) |
org.springframework.http.ResponseEntity<TransactionStatusTO> |
getPaymentStatusById(String paymentId) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
getSCA(String paymentId,
String authorisationId) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
initiatePayment(PaymentTypeTO paymentType,
Object payment) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
initiatePmtCancellation(String paymentId) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
selecCancelPaymentSCAtMethod(String paymentId,
String cancellationId,
String scaMethodId) |
org.springframework.http.ResponseEntity<SCAPaymentResponseTO> |
selectMethod(String paymentId,
String authorisationId,
String scaMethodId) |
public PaymentResource(MiddlewarePaymentService middlewareService)
@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<TransactionStatusTO> getPaymentStatusById(String paymentId)
getPaymentStatusById in interface PaymentRestAPI@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<?> getPaymentById(String paymentId)
getPaymentById in interface PaymentRestAPI@PreAuthorize(value="paymentInit(#payment)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePayment(PaymentTypeTO paymentType, Object payment) throws NotFoundRestException, ForbiddenRestException, ConflictRestException
initiatePayment in interface PaymentRestAPINotFoundRestExceptionForbiddenRestExceptionConflictRestException@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> getSCA(String paymentId, String authorisationId)
getSCA in interface PaymentRestAPI@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> selectMethod(String paymentId, String authorisationId, String scaMethodId) throws ValidationRestException, ConflictRestException, NotFoundRestException
selectMethod in interface PaymentRestAPIValidationRestExceptionConflictRestExceptionNotFoundRestException@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> authorizePayment(String paymentId, String authorisationId, String authCode) throws GoneRestException, NotFoundRestException, ConflictRestException, ExpectationFailedRestException, NotAcceptableRestException
authorizePayment in interface PaymentRestAPIGoneRestExceptionNotFoundRestExceptionConflictRestExceptionExpectationFailedRestExceptionNotAcceptableRestException@PreAuthorize(value="paymentInitById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> initiatePmtCancellation(String paymentId)
initiatePmtCancellation in interface PaymentRestAPI@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> getCancelSCA(String paymentId, String cancellationId) throws ConflictRestException
getCancelSCA in interface PaymentRestAPIConflictRestException@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> selecCancelPaymentSCAtMethod(String paymentId, String cancellationId, String scaMethodId) throws ValidationRestException, ConflictRestException, NotFoundRestException
selecCancelPaymentSCAtMethod in interface PaymentRestAPIValidationRestExceptionConflictRestExceptionNotFoundRestException@PreAuthorize(value="paymentInfoById(#paymentId)") public org.springframework.http.ResponseEntity<SCAPaymentResponseTO> authorizeCancelPayment(String paymentId, String cancellationId, String authCode) throws GoneRestException, NotFoundRestException, ConflictRestException, ExpectationFailedRestException, NotAcceptableRestException
authorizeCancelPayment in interface PaymentRestAPIGoneRestExceptionNotFoundRestExceptionConflictRestExceptionExpectationFailedRestExceptionNotAcceptableRestExceptionCopyright © 2019. All rights reserved.