@RestController @RequestMapping(path="/payments") public class PaymentController extends Object
| Constructor and Description |
|---|
PaymentController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
cancelPayment(String paymentId) |
org.springframework.http.ResponseEntity<AspspBulkPayment> |
createBulkPayments(AspspBulkPayment bulkPayment) |
org.springframework.http.ResponseEntity<AspspPeriodicPayment> |
createPeriodicPayment(AspspPeriodicPayment payment) |
org.springframework.http.ResponseEntity<AspspSinglePayment> |
createSinglePayment(AspspSinglePayment payment) |
org.springframework.http.ResponseEntity<List<AspspPayment>> |
getAllPayments() |
org.springframework.http.ResponseEntity<List<AspspPayment>> |
getPaymentByIdAndTypeAndProduct(String paymentType,
String paymentProduct,
String paymentId) |
org.springframework.http.ResponseEntity<AspspTransactionStatus> |
getPaymentStatusById(String paymentId) |
org.springframework.http.ResponseEntity<AspspPaymentCancellationResponse> |
initiatePaymentCancellation(String paymentId) |
@PostMapping(path="/") public org.springframework.http.ResponseEntity<AspspSinglePayment> createSinglePayment(@RequestBody AspspSinglePayment payment)
@PostMapping(path="/create-periodic-payment") public org.springframework.http.ResponseEntity<AspspPeriodicPayment> createPeriodicPayment(@RequestBody AspspPeriodicPayment payment)
@PostMapping(path="/bulk-payments") public org.springframework.http.ResponseEntity<AspspBulkPayment> createBulkPayments(@RequestBody AspspBulkPayment bulkPayment)
@GetMapping(path="/{paymentId}/status")
public org.springframework.http.ResponseEntity<AspspTransactionStatus> getPaymentStatusById(@PathVariable(value="paymentId")
String paymentId)
@GetMapping(path="/getAllPayments") public org.springframework.http.ResponseEntity<List<AspspPayment>> getAllPayments()
@GetMapping(path="/{payment-type}/{payment-product}/{paymentId}")
public org.springframework.http.ResponseEntity<List<AspspPayment>> getPaymentByIdAndTypeAndProduct(@PathVariable(value="payment-type")
String paymentType,
@PathVariable(value="payment-product")
String paymentProduct,
@PathVariable(value="paymentId")
String paymentId)
@DeleteMapping(value="/{payment-id}")
public org.springframework.http.ResponseEntity<Void> cancelPayment(@PathVariable(value="payment-id")
String paymentId)
@PostMapping(value="/{payment-id}/cancel")
public org.springframework.http.ResponseEntity<AspspPaymentCancellationResponse> initiatePaymentCancellation(@PathVariable(value="payment-id")
String paymentId)
Copyright © 2019. All rights reserved.