Class RefundEventWithDetailsEndpoint

java.lang.Object
com.broadleafcommerce.billing.web.endpoint.RefundEventWithDetailsEndpoint

@FrameworkRestController @FrameworkMapping("/refund-event-with-details") @DataRouteByKey("billing") public class RefundEventWithDetailsEndpoint extends Object
Author:
Dima Myroniuk (dmyroniuk)
  • Field Details

  • Constructor Details

  • Method Details

    • readAllRefundsByEventId

      @Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="eventId") public List<RefundEventWithDetails> readAllRefundsByEventId(@RequestParam("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readByRefundEventId

      @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/{refundId}") public RefundEventWithDetails readByRefundEventId(@PathVariable("refundId") String refundEventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • createRefundEvent

      @Policy(permissionRoots="BILLING") @FrameworkPostMapping public RefundEventWithDetails createRefundEvent(@RequestBody @Valid @Valid RefundEventWithDetails refundEventWithDetailsRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) throws InvalidRefundException
      Throws:
      InvalidRefundException
    • updateRefundEvent

      @Policy(permissionRoots="BILLING") @FrameworkPatchMapping("/{refundId}") public RefundEventWithDetails updateRefundEvent(@PathVariable("refundId") String refundEventId, @RequestBody RefundEvent refundEventPatch, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • abortRefundEvent

      @Policy(permissionRoots="BILLING") @FrameworkPostMapping("/abort/{refundId}") public RefundEventWithDetails abortRefundEvent(@PathVariable("refundId") String refundEventId, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getRefundEventService

      protected RefundEventService<RefundEvent,RefundEventWithDetails> getRefundEventService()