Class BillingEventEndpoint
java.lang.Object
com.broadleafcommerce.billing.web.endpoint.BillingEventEndpoint
@FrameworkRestController
@FrameworkMapping("/billing-events")
@DataRouteByKey("billing")
public class BillingEventEndpoint
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, BillingEventDTO, BillingEventPaymentWithTransaction> protected RefundEventService<RefundEvent,RefundEventWithDetails> protected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulkCreateBillingEvents(List<CreateBillingEventRequest> requests, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) createBillingEvent(@Valid CreateBillingEventRequest newEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) getBillingEventIds(Collection<BillingEventDTO> billingEvents) protected List<BillingEventDTOWithRefunds>getBulkBillingEventWithRefunds(Collection<BillingEventDTO> billingEvents, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<BillingEventDTOWithRefunds>mapBillingEventsToRefunds(Collection<BillingEventDTO> billingEvents, Map<String, List<RefundEventWithDetails>> refunds) readAllBillingEventsByOrderRef(String orderRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllBillingEventsBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllBillingEventsBySubscriptionIds(List<String> subscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllBillingEventsByUserId(String userId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllNewBillingEventsBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readAllNewBillingEventsByUserId(String userId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readBillingEventByEventId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readNewBillingEventByEventId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readNewBillingRefundsByBillingId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readNewBillingRefundsByBillingIds(String[] requestIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readNewBillingRefundsBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readNewBillingRefundsBySubscriptionIds(String[] requestIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.updateBillingEvent(String eventId, BillingEvent billingEventRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
billingEventService
@Autowired protected BillingEventService<BillingEvent,BillingEventDTO, billingEventServiceCreateBillingEventRequest> -
billingEventPaymentService
@Autowired protected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, billingEventPaymentServiceBillingEventDTO, BillingEventPaymentWithTransaction> -
refundEventService
-
refundEventDetailService
@Autowired protected RefundEventDetailService<RefundEventDetail,RefundDetailsWithRefundAndBillingEvent> refundEventDetailService -
paymentTransactionDetailService
@Autowired protected PaymentTransactionDetailService<PaymentTransactionDetail> paymentTransactionDetailService -
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory
-
-
Constructor Details
-
BillingEventEndpoint
public BillingEventEndpoint()
-
-
Method Details
-
readBillingEventByEventId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping("/{eventId}") public BillingEvent readBillingEventByEventId(@PathVariable("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllBillingEventsByUserId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping public List<BillingEvent> readAllBillingEventsByUserId(@RequestParam("userId") String userId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllBillingEventsBySubscriptionId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping("/subscriptions/{subscriptionId}") public List<BillingEvent> readAllBillingEventsBySubscriptionId(@PathVariable("subscriptionId") String subscriptionId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllBillingEventsBySubscriptionIds
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="subscriptionIds") public List<BillingEvent> readAllBillingEventsBySubscriptionIds(@RequestParam("subscriptionIds") List<String> subscriptionIds, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllBillingEventsByOrderRef
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="orderRef") public List<BillingEvent> readAllBillingEventsByOrderRef(@RequestParam("orderRef") String orderRef, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readNewBillingEventByEventId
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/{eventId}") public BillingEventDTO readNewBillingEventByEventId(@PathVariable("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
readAllNewBillingEventsByUserId
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new") public List<BillingEventDTO> readAllNewBillingEventsByUserId(@RequestParam("userId") String userId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
readAllNewBillingEventsBySubscriptionId
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/subscriptions/{subscriptionId}") public List<BillingEventDTO> readAllNewBillingEventsBySubscriptionId(@PathVariable("subscriptionId") String subscriptionId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
createBillingEvent
@Policy(permissionRoots="BILLING") @FrameworkPostMapping public BillingEvent createBillingEvent(@RequestBody @Valid @Valid CreateBillingEventRequest newEvent, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
bulkCreateBillingEvents
@Policy(permissionRoots="BILLING") @FrameworkPostMapping(value="/bulk", consumes="application/json") public List<BillingEvent> bulkCreateBillingEvents(@RequestBody List<CreateBillingEventRequest> requests, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
updateBillingEvent
@Policy(permissionRoots="BILLING") @FrameworkPatchMapping("/{eventId}") public BillingEvent updateBillingEvent(@PathVariable("eventId") String eventId, @RequestBody BillingEvent billingEventRequest, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readNewBillingRefundsByBillingId
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/with-refunds/{eventId}") public BillingEventDTOWithRefunds readNewBillingRefundsByBillingId(@PathVariable("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
readNewBillingRefundsByBillingIds
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/with-refunds/bulk") public Map<String,BillingEventDTOWithRefunds> readNewBillingRefundsByBillingIds(@RequestParam("ids") String[] requestIds, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
readNewBillingRefundsBySubscriptionId
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/with-refunds/subscription/{subscriptionId}") public List<BillingEventDTOWithRefunds> readNewBillingRefundsBySubscriptionId(@PathVariable("subscriptionId") String subscriptionId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
readNewBillingRefundsBySubscriptionIds
@Deprecated(since="1.0.0") @Policy(permissionRoots="BILLING") @FrameworkGetMapping("/new/with-refunds/subscription/bulk") public Map<String,List<BillingEventDTOWithRefunds>> readNewBillingRefundsBySubscriptionIds(@RequestParam("ids") String[] requestIds, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
getBulkBillingEventWithRefunds
protected List<BillingEventDTOWithRefunds> getBulkBillingEventWithRefunds(Collection<BillingEventDTO> billingEvents, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getBillingEventIds
-
mapBillingEventsToRefunds
protected List<BillingEventDTOWithRefunds> mapBillingEventsToRefunds(Collection<BillingEventDTO> billingEvents, Map<String, List<RefundEventWithDetails>> refunds)
-
BillingEventWithDetailsEndpoint.readAllBillingEventDTOsBySubscriptionId(String, ContextInfo)