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
    Finds the payment by the context id and tenant id, ignoring other context filtering like archival status.
    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
    • findByContextIdAndTenantId

      @Policy(operationTypes=READ) Optional<D> findByContextIdAndTenantId(String contextId, String tenantId)
      Finds the payment by the context id and tenant id, ignoring other context filtering like archival status.
      Parameters:
      contextId - The context id of the payment
      tenantId - the tenant context of this payment
      Returns:
      the payment if found