Interface TransactionService
@FeignClient(name="transaction-service",
configuration=FeignClientConfiguration.class)
public interface TransactionService
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Response>
makeInternalTransactions
(List<Transaction> transactions, String transactionReference) Make internal transactions.org.springframework.http.ResponseEntity<Response>
makeTransaction
(Transaction transaction) Endpoint to make a transaction.
-
Method Details
-
makeTransaction
@PostMapping("/transactions") org.springframework.http.ResponseEntity<Response> makeTransaction(@RequestBody Transaction transaction) Endpoint to make a transaction.- Parameters:
transaction
- The transaction object containing the details of the transaction.- Returns:
- The ResponseEntity containing the response of the transaction.
-
makeInternalTransactions
@PostMapping("/transactions/internal") org.springframework.http.ResponseEntity<Response> makeInternalTransactions(@RequestBody List<Transaction> transactions, @RequestParam String transactionReference) Make internal transactions.- Parameters:
transactions
- The list of transactions to be processed.transactionReference
- The reference for the transaction.- Returns:
- The response entity containing the response.
-