Class BillingEventPaymentEndpoint
java.lang.Object
com.broadleafcommerce.billing.web.endpoint.BillingEventPaymentEndpoint
@FrameworkRestController
@FrameworkMapping("/billing-event-payments")
@DataRouteByKey("billing")
public class BillingEventPaymentEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBillingEventPaymentEndpoint(BillingEventPaymentService<BillingEventPayment, BillingEventPaymentWithEvent, BillingEventDTO, BillingEventPaymentWithTransaction> billingEventPaymentService) -
Method Summary
Modifier and TypeMethodDescriptionabortAllBillingEventPaymentsByBillingEventId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) abortBillingEventPaymentByPaymentId(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createBillingEventPayment(BillingEventPaymentWithTransaction billingEventPaymentWithTransactionRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, BillingEventDTO, BillingEventPaymentWithTransaction> readBillingEventPaymentByPaymentId(String paymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readPaymentEventsByBillingEventId(String eventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
BillingEventPaymentEndpoint
public BillingEventPaymentEndpoint(BillingEventPaymentService<BillingEventPayment, BillingEventPaymentWithEvent, BillingEventDTO, BillingEventPaymentWithTransaction> billingEventPaymentService)
-
-
Method Details
-
readPaymentEventsByBillingEventId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping(params="eventId") public List<BillingEventPayment> readPaymentEventsByBillingEventId(@RequestParam("eventId") String eventId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readBillingEventPaymentByPaymentId
@Policy(permissionRoots="BILLING") @FrameworkGetMapping("/{paymentId}") public BillingEventPayment readBillingEventPaymentByPaymentId(@PathVariable("paymentId") String paymentId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
createBillingEventPayment
@Policy(permissionRoots="BILLING") @FrameworkPostMapping public BillingEventPayment createBillingEventPayment(@RequestBody BillingEventPaymentWithTransaction billingEventPaymentWithTransactionRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
abortAllBillingEventPaymentsByBillingEventId
@Policy(permissionRoots="BILLING") @FrameworkPostMapping("/abort") public List<BillingEventPayment> abortAllBillingEventPaymentsByBillingEventId(@RequestParam("eventId") String eventId, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
abortBillingEventPaymentByPaymentId
@Policy(permissionRoots="BILLING") @FrameworkPostMapping("/abort/{paymentId}") public BillingEventPayment abortBillingEventPaymentByPaymentId(@PathVariable("paymentId") String paymentId, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getBillingEventPaymentService
protected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, getBillingEventPaymentService()BillingEventDTO, BillingEventPaymentWithTransaction>
-