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 TypeMethodDescriptionfindByContextIdAndTenantId
(String contextId, String tenantId) 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 statespageable
- the requested page of results from the databasecontext
- 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 customertenantId
- The ID of theTenant
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 paymenttenantId
- the tenant context of this payment- Returns:
- the payment if found
-