Class BillingEventWithRefundDetailsEndpoint
java.lang.Object
com.broadleafcommerce.billing.web.endpoint.BillingEventWithRefundDetailsEndpoint
@FrameworkRestController
@FrameworkMapping("/billing-event-with-refund-details")
@DataRouteByKey("billing")
public class BillingEventWithRefundDetailsEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBillingEventWithRefundDetailsEndpoint(BillingEventService<BillingEvent, BillingEventDTO, CreateBillingEventRequest> billingEventService, RefundEventService<RefundEvent, RefundEventWithDetails> refundEventService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptiongetBillingEventIds(Collection<BillingEventDTO> billingEvents) protected List<BillingEventDTOWithRefunds>getBulkBillingEventWithRefunds(Collection<BillingEventDTO> billingEvents, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected RefundEventService<RefundEvent,RefundEventWithDetails> protected com.broadleafcommerce.common.extension.TypeFactoryprotected List<BillingEventDTOWithRefunds>mapBillingEventsToRefunds(Collection<BillingEventDTO> billingEvents, Map<String, List<RefundEventWithDetails>> refunds) readBillingRefundsByBillingEventIds(Set<String> billingEventIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingRefundsByBillingId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingRefundsBySubscriptionId(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingRefundsBySubscriptionIds(Set<String> subscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
BillingEventWithRefundDetailsEndpoint
public BillingEventWithRefundDetailsEndpoint(BillingEventService<BillingEvent, BillingEventDTO, CreateBillingEventRequest> billingEventService, RefundEventService<RefundEvent, RefundEventWithDetails> refundEventService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
readBillingRefundsByBillingId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="eventId") public BillingEventDTOWithRefunds readBillingRefundsByBillingId(@RequestParam("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readBillingRefundsByBillingEventIds
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="billingEventIds") public Map<String,BillingEventDTOWithRefunds> readBillingRefundsByBillingEventIds(@RequestParam("billingEventIds") Set<String> billingEventIds, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readBillingRefundsBySubscriptionId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="subscriptionId") public List<BillingEventDTOWithRefunds> readBillingRefundsBySubscriptionId(@RequestParam("subscriptionId") String subscriptionId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readBillingRefundsBySubscriptionIds
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="subscriptionIds") public Map<String,List<BillingEventDTOWithRefunds>> readBillingRefundsBySubscriptionIds(@RequestParam("subscriptionIds") Set<String> subscriptionIds, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
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) -
getBillingEventService
protected BillingEventService<BillingEvent,BillingEventDTO, getBillingEventService()CreateBillingEventRequest> -
getRefundEventService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-