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

All Known Subinterfaces:
JpaPaymentRepository<D>, PaymentRepository<D>
All Known Implementing Classes:
JpaCustomizedPaymentRepository

public interface CustomizedPaymentRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
Advanced functionality related to payment maintenance and filtering.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.data.domain.Page<D>
    findByCustomerIdAndTenantId(String customerId, String tenantId, org.springframework.data.domain.Pageable page)
    Find a page of payments for the given customer id.
    org.springframework.data.domain.Page<D>
    findWithTransactionInManagementStates(List<String> transactionManagementStates, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Returns the payments that contain the transactions with the specified statuses.
  • Method Details

    • findWithTransactionInManagementStates

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findWithTransactionInManagementStates(List<String> transactionManagementStates, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Returns the payments that contain the transactions with the specified statuses.
      Parameters:
      transactionManagementStates - the transaction management states
      pageable - the requested page of results from the database
      context - context information related to multitenancy
      Returns:
      the payments that contain the transactions with the specified statuses
    • findByCustomerIdAndTenantId

      @Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findByCustomerIdAndTenantId(String customerId, String tenantId, @Nullable org.springframework.data.domain.Pageable page)
      Find a page of payments for the given customer id.
      Parameters:
      customerId - the id of the payment's owning customer
      tenantId - The ID of the Tenant this registration belongs to.
      page - the requested page of results from the database
      Returns:
      a page of payments for the given owner type and id