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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRefundEventWithDetailsEndpoint(RefundEventService<RefundEvent, RefundEventWithDetails> refundEventService) -
Method Summary
Modifier and TypeMethodDescriptionabortRefundEvent(String refundEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createRefundEvent(@Valid RefundEventWithDetails refundEventWithDetailsRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected RefundEventService<RefundEvent,RefundEventWithDetails> readAllRefundsByEventId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByRefundEventId(String refundEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) updateRefundEvent(String refundEventId, RefundEvent refundEventPatch, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
RefundEventWithDetailsEndpoint
public RefundEventWithDetailsEndpoint(RefundEventService<RefundEvent, RefundEventWithDetails> refundEventService)
-
-
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
-