Class TransactionSummaryEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.TransactionSummaryEndpoint
@FrameworkRestController
@FrameworkMapping("/transaction-summaries")
@DataRouteByKey("paymentTransaction")
public class TransactionSummaryEndpoint
extends Object
- Author:
- Chris Kittrell (ckittrell)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTransactionSummaryEndpoint
(TransactionSummaryService transactionSummaryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected TransactionSummaryService
protected com.broadleafcommerce.common.extension.TypeFactory
readByOwningEntity
(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String ownerType, String ownerId, boolean shouldIncludeFailedTransactions, boolean shouldIncludeReversedOrReversalTransactions)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
TransactionSummaryEndpoint
public TransactionSummaryEndpoint(TransactionSummaryService transactionSummaryService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
readByOwningEntity
@FrameworkGetMapping(params={"ownerType","ownerId"}) @Policy(permissionRoots="SYSTEM_TRANSACTION_SUMMARY") public TransactionSummary readByOwningEntity(@ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context, @RequestParam String ownerType, @RequestParam String ownerId, @RequestParam(required=false,defaultValue="false") boolean shouldIncludeFailedTransactions, @RequestParam(required=false,defaultValue="false") boolean shouldIncludeReversedOrReversalTransactions) -
getTransactionSummaryService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-