Class DefaultRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.billing.service.impl.DefaultRefundEventDetailService<P,Q>
- All Implemented Interfaces:
RefundEventDetailService<P,,Q> com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
public class DefaultRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
implements RefundEventDetailService<P,Q>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BillingPropertiesprotected RefundEventService<RefundEvent,RefundEventWithDetails> protected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
ConstructorsConstructorDescriptionDefaultRefundEventDetailService(RefundEventDetailRepository<com.broadleafcommerce.data.tracking.core.Trackable> repo, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionbuildWithRefundAndBillingEvent(List<P> details, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createAll(List<P> businessInstances, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P>createAllAllowingPartialSuccess(List<P> businessInstances, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) readAllByContextId(Iterable<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByRefundEventId(String refundEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaRefundEventDetailentities byRefundEventidreadByRefundStatusAndNextRetryDateRange(String status, Date startDate, Date endDate, Integer resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaRefundEventDetailentities whoseJpaRefundEvent.getRefundDate()in between provided startDate and endDatereadByRefundStatusAndRefundDateRange(String status, Date startDate, Date endDate, Integer resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaRefundEventDetailentities whoseJpaRefundEvent.getRefundDate()in between provided startDate and endDatereadWithRefundAndBillingEventById(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithRefundAndBillingEventByIds(List<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithRefundAndBillingEventByIdsIncrement(List<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
delete, readAll, readAll, readAll, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.billing.service.RefundEventDetailService
create, findAllAdditionalFields, findAllByRefundEventDetailId, findAllRefundEventDetailsByStatusAndDatesRange, findAllRefundEventDetailsByStatusAndRetryDatesRange, findById, findRefundDetailsWithRefundBillingEventById, update
-
Field Details
-
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory -
billingEventService
@Autowired protected BillingEventService<BillingEvent,BillingEventDTO, billingEventServiceCreateBillingEventRequest> -
refundEventService
@Autowired @Lazy protected RefundEventService<RefundEvent,RefundEventWithDetails> refundEventService -
properties
-
-
Constructor Details
-
DefaultRefundEventDetailService
public DefaultRefundEventDetailService(RefundEventDetailRepository<com.broadleafcommerce.data.tracking.core.Trackable> repo, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
-
-
Method Details
-
readAllByContextId
public Iterable<P> readAllByContextId(Iterable<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readAllByContextIdin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends RefundEventDetail>- Overrides:
readAllByContextIdin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends RefundEventDetail>
-
readByRefundEventId
public List<P> readByRefundEventId(String refundEventId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:RefundEventDetailServiceFind all theJpaRefundEventDetailentities byRefundEventid- Specified by:
readByRefundEventIdin interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
readByRefundStatusAndRefundDateRange
public List<P> readByRefundStatusAndRefundDateRange(String status, @Nullable Date startDate, Date endDate, Integer resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:RefundEventDetailServiceFind all theJpaRefundEventDetailentities whoseJpaRefundEvent.getRefundDate()in between provided startDate and endDate- Specified by:
readByRefundStatusAndRefundDateRangein interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
readByRefundStatusAndNextRetryDateRange
public List<P> readByRefundStatusAndNextRetryDateRange(String status, @Nullable Date startDate, Date endDate, Integer resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:RefundEventDetailServiceFind all theJpaRefundEventDetailentities whoseJpaRefundEvent.getRefundDate()in between provided startDate and endDate- Specified by:
readByRefundStatusAndNextRetryDateRangein interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
readWithRefundAndBillingEventById
public Optional<Q> readWithRefundAndBillingEventById(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:RefundEventDetailService- Specified by:
readWithRefundAndBillingEventByIdin interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
readWithRefundAndBillingEventByIds
public List<Q> readWithRefundAndBillingEventByIds(List<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readWithRefundAndBillingEventByIdsin interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
buildWithRefundAndBillingEvent
public List<Q> buildWithRefundAndBillingEvent(List<P> details, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
buildWithRefundAndBillingEventin interfaceRefundEventDetailService<P extends RefundEventDetail,Q extends RefundDetailsWithRefundAndBillingEvent>
-
create
public P create(P businessInstance, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
createin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends RefundEventDetail>- Overrides:
createin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends RefundEventDetail>
-
createAll
public List<P> createAll(List<P> businessInstances, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
createAllin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends RefundEventDetail>- Overrides:
createAllin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends RefundEventDetail>
-
createAllAllowingPartialSuccess
public com.broadleafcommerce.data.tracking.core.service.BulkPersistenceResponse<P> createAllAllowingPartialSuccess(List<P> businessInstances, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) - Specified by:
createAllAllowingPartialSuccessin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends RefundEventDetail>- Overrides:
createAllAllowingPartialSuccessin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends RefundEventDetail>
-
readWithRefundAndBillingEventByIdsIncrement
-