Class PaymentTransactionManagementEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.PaymentTransactionManagementEndpoint
@FrameworkRestController
@FrameworkMapping("/payment-transactions")
@DataRouteByKey("paymentTransaction")
public class PaymentTransactionManagementEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPaymentTransactionManagementEndpoint
(PaymentService<Payment> paymentService, PaymentSummaryService paymentSummaryService, PaymentTransactionService<PaymentTransaction> paymentTransactionService) -
Method Summary
Modifier and TypeMethodDescriptionclaimTransactionsForRequest
(String paymentId, String requestId, String transactionType, boolean resetTransactionReversalState, PaymentLockInfo paymentLockInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected PaymentService<Payment>
protected PaymentSummaryService
protected PaymentTransactionService<PaymentTransaction>
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
PaymentTransactionManagementEndpoint
public PaymentTransactionManagementEndpoint(PaymentService<Payment> paymentService, PaymentSummaryService paymentSummaryService, PaymentTransactionService<PaymentTransaction> paymentTransactionService)
-
-
Method Details
-
claimTransactionsForRequest
@FrameworkPostMapping("/{paymentId}/claim-transactions-for-request") @Policy(permissionRoots="CLAIM_TRANSACTIONS_FOR_REQUEST") public PaymentSummary claimTransactionsForRequest(@PathVariable("paymentId") String paymentId, @RequestParam String requestId, @RequestParam("transactionType") String transactionType, @RequestParam(value="resetTransactionReversalState",required=false,defaultValue="false") boolean resetTransactionReversalState, PaymentLockInfo paymentLockInfo, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getPaymentService
-
getPaymentSummaryService
-
getPaymentTransactionService
-