Interface BillingEventRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository,org.springframework.data.repository.Repository<D,,String> com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
- All Known Subinterfaces:
JpaBillingEventRepository<D>
@NoRepositoryBean
public interface BillingEventRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.findAllBySubscriptionRef(String subscriptionId) Deprecated.UsefindBySubscriptionRef(String, ContextInfo)instead.findAllBySubscriptionRefIn(Set<String> subscriptionIds) Deprecated.UsefindBySubscriptionRefIn(List, ContextInfo)instead.findByOrderReference(String orderReference) Deprecated.UsefindByOrderReference(String, ContextInfo)instead.findByOrderReference(String orderReference, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all billing events by order reference.findBySubscriptionRef(String subscriptionId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventby Subscription Idorg.springframework.data.domain.Page<D>findBySubscriptionRefAndSubscriptionPeriodGreaterThanEqual(String subscriptionId, Integer requestedPeriod, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventby Subscription Id, where theJpaBillingEvent.getSubscriptionPeriod()is greater than or equals to the provided period.findBySubscriptionRefIn(List<String> subscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds multiple billing events by subscription refs.findByUserRef(String userRef) Deprecated.UsefindByUserRef(String, ContextInfo)instead.findByUserRef(String userRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all billing events by user ref.Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
-
Method Details
-
findAllByBillingEventIdIn
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByBillingEventIdIn(Set<String> ids) Deprecated.UseTrackableRepository.findAllByContextId(Iterable, ContextInfo)insteadFinds billing events containing an ID in the list of IDs.- Parameters:
ids- the candidate billing event IDs to find- Returns:
- the list of billing events
-
findAllBySubscriptionRef
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllBySubscriptionRef(String subscriptionId) Deprecated.UsefindBySubscriptionRef(String, ContextInfo)instead.Find all theJpaBillingEventby Subscription Id -
findBySubscriptionRef
@Policy(operationTypes=READ) List<D> findBySubscriptionRef(String subscriptionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventby Subscription Id -
findBySubscriptionRefAndSubscriptionPeriodGreaterThanEqual
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findBySubscriptionRefAndSubscriptionPeriodGreaterThanEqual(String subscriptionId, Integer requestedPeriod, org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find all theJpaBillingEventby Subscription Id, where theJpaBillingEvent.getSubscriptionPeriod()is greater than or equals to the provided period. -
findAllBySubscriptionRefIn
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllBySubscriptionRefIn(Set<String> subscriptionIds) Deprecated.UsefindBySubscriptionRefIn(List, ContextInfo)instead.Finds multiple billing events by subscription refs.- Parameters:
subscriptionIds- the billing event subscription refs to look for- Returns:
- the list of billing events with the given subscription refs
-
findBySubscriptionRefIn
@Policy(operationTypes=READ) List<D> findBySubscriptionRefIn(List<String> subscriptionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds multiple billing events by subscription refs.- Parameters:
subscriptionIds- the billing event subscription refs to look forcontextInfo- context information surrounding multitenant state- Returns:
- the list of billing events with the given subscription refs
-
findByUserRef
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findByUserRef(String userRef) Deprecated.UsefindByUserRef(String, ContextInfo)instead.Finds all billing events by user ref.- Parameters:
userRef- the user ref to find billing events for- Returns:
- list of billing events with the given user ref
-
findByUserRef
@Policy(operationTypes=READ) List<D> findByUserRef(String userRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all billing events by user ref.- Parameters:
userRef- the user ref to find billing events for- Returns:
- list of billing events with the given user ref
-
findByOrderReference
@Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findByOrderReference(String orderReference) Deprecated.UsefindByOrderReference(String, ContextInfo)instead.Finds all billing events by order reference.- Parameters:
orderReference- the order reference to find billing events for- Returns:
- list of billing events with the given order reference
-
findByOrderReference
@Policy(operationTypes=READ) List<D> findByOrderReference(String orderReference, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all billing events by order reference.- Parameters:
orderReference- the order reference to find billing events for- Returns:
- list of billing events with the given order reference
-
TrackableRepository.findAllByContextId(Iterable, ContextInfo)instead