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 Details

    • findAllByBillingEventIdIn

      @Deprecated(since="1.0.0") @Policy(operationTypes=READ) default List<D> findAllByBillingEventIdIn(Set<String> ids)
      Deprecated.
      Use TrackableRepository.findAllByContextId(Iterable, ContextInfo) instead
      Finds 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)
      Find all the JpaBillingEvent by Subscription Id
    • findBySubscriptionRef

      @Policy(operationTypes=READ) List<D> findBySubscriptionRef(String subscriptionId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find all the JpaBillingEvent by 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 the JpaBillingEvent by Subscription Id, where the JpaBillingEvent.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)
      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 for
      contextInfo - 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.
      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)
      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