Class TransactionExecutionEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.TransactionExecutionEndpoint
@FrameworkRestController
@FrameworkMapping("/payments")
@DataRouteByKey("paymentTransaction")
public class TransactionExecutionEndpoint
extends Object
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransactionExecutionEndpoint
(PaymentService<Payment> paymentService, PaymentVersionValidationService paymentVersionValidationService, PaymentAccessValidationService paymentAccessValidationService, TransactionExecutionService transactionExecutionService) -
Method Summary
Modifier and TypeMethodDescriptionexecuteAuthorize
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) executeAuthorizeAndCapture
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) executeCapture
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) executeDetachedCredit
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) executeRefund
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) executeReverseAuthorize
(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, TransactionExecutionRequest request) protected PaymentAccessValidationService
protected PaymentService<Payment>
protected PaymentVersionValidationService
protected TransactionExecutionService
recordTransactionResults
(String paymentId, Map<String, Object> transactionResults, Integer paymentVersion, CustomerRef customerRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
TransactionExecutionEndpoint
public TransactionExecutionEndpoint(PaymentService<Payment> paymentService, PaymentVersionValidationService paymentVersionValidationService, PaymentAccessValidationService paymentAccessValidationService, TransactionExecutionService transactionExecutionService)
-
-
Method Details
-
executeAuthorize
@FrameworkPostMapping(value="/{id}/authorize", consumes="application/json") @Policy(permissionRoots="EXECUTE_AUTHORIZE") public TransactionExecutionResponse executeAuthorize(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
executeReverseAuthorize
@FrameworkPostMapping(value="/{id}/reverse-authorize", consumes="application/json") @Policy(permissionRoots="EXECUTE_REVERSE_AUTHORIZE") public TransactionExecutionResponse executeReverseAuthorize(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
executeAuthorizeAndCapture
@FrameworkPostMapping(value="/{id}/authorize-and-capture", consumes="application/json") @Policy(permissionRoots="EXECUTE_AUTHORIZE_AND_CAPTURE") public TransactionExecutionResponse executeAuthorizeAndCapture(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
executeCapture
@FrameworkPostMapping(value="/{id}/capture", consumes="application/json") @Policy(permissionRoots="EXECUTE_CAPTURE") public TransactionExecutionResponse executeCapture(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
executeRefund
@FrameworkPostMapping(value="/{id}/refund", consumes="application/json") @Policy(permissionRoots="EXECUTE_REFUND") public TransactionExecutionResponse executeRefund(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
executeDetachedCredit
@FrameworkPostMapping(value="/{id}/detached-credit", consumes="application/json") @Policy(permissionRoots="EXECUTE_DETACHED_CREDIT") public TransactionExecutionResponse executeDetachedCredit(@PathVariable("id") String paymentId, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Integer paymentVersion, PaymentLockInfo paymentLockInfo, @RequestBody TransactionExecutionRequest request) -
recordTransactionResults
@FrameworkPostMapping(value="/{id}/record-transaction-results", consumes="application/json") @Policy(permissionRoots="RECORD_TRANSACTION_RESULTS") public PaymentSummary recordTransactionResults(@PathVariable("id") String paymentId, @RequestBody Map<String, Object> transactionResults, Integer paymentVersion, CustomerRef customerRef, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getPaymentService
-
getPaymentVersionValidationService
-
getPaymentAccessValidationService
-
getTransactionExecutionService
-