Interface PaymentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Superinterfaces:
CustomizedPaymentRepository<D>, 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>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
All Known Subinterfaces:
JpaPaymentRepository<D>

@NoRepositoryBean public interface PaymentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, CustomizedPaymentRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Author:
Chris Kittrell (ckittrell)
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findByOwnerTypeAndOwnerId(String ownerType, String ownerId, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Find a page of payments for the given owner type and owner id.
    findBySavedPaymentMethodIdAndRequestId(String savedPaymentMethodId, String requestId, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)

    Methods inherited from interface com.broadleafcommerce.paymenttransaction.repository.CustomizedPaymentRepository

    findByContextIdAndTenantId, findByCustomerIdAndTenantId, findWithTransactionInManagementStates

    Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository

    findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged

    Methods 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

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

    exists, findAll, findAll, findAll, findAll
  • Method Details

    • findBySavedPaymentMethodIdAndRequestId

      @Policy(operationTypes=READ) Optional<D> findBySavedPaymentMethodIdAndRequestId(String savedPaymentMethodId, String requestId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Parameters:
      savedPaymentMethodId - Id of the payment's related SavedPaymentMethod
      requestId - Id of the request that generated the payment
      context - context information around the multi-tenant state
      Returns:
      a JpaPayment identified by JpaPayment.getSavedPaymentMethodId() & JpaPayment.getRequestId()
      Since:
      PaymentTransactionServices 2.1.0, Release Train 2.3.0
    • findByOwnerTypeAndOwnerId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByOwnerTypeAndOwnerId(String ownerType, String ownerId, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Find a page of payments for the given owner type and owner id.
      Parameters:
      ownerType - the type of the payment's owner
      ownerId - the id of the payment's owner
      page - the requested page of results from the database
      contextInfo - context information related to multitenancy
      Returns:
      a page of payments for the given owner type and id