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 Details

  • Constructor Details

  • 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

      protected PaymentService<Payment> getPaymentService()
    • getPaymentVersionValidationService

      protected PaymentVersionValidationService getPaymentVersionValidationService()
    • getPaymentAccessValidationService

      protected PaymentAccessValidationService getPaymentAccessValidationService()
    • getTransactionExecutionService

      protected TransactionExecutionService getTransactionExecutionService()