Class DefaultBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent,R extends BillingEventDTO,S extends BillingEventPaymentWithTransaction,T extends PaymentTransactionDetail>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.billing.service.impl.DefaultBillingEventPaymentService<P,Q,R,S,T>
- All Implemented Interfaces:
BillingEventPaymentService<P,,Q, R, S> com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
public class DefaultBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent,R extends BillingEventDTO,S extends BillingEventPaymentWithTransaction,T extends PaymentTransactionDetail>
extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
implements BillingEventPaymentService<P,Q,R,S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected BillingEventAddressService<BillingEventAddress>protected static final Stringprotected BillingPropertiesprotected static final Stringprotected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBillingEventPaymentService(BillingEventPaymentRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionabortActiveBySubscriptionRef(String subscriptionRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Abort all theJpaBillingEventPaymententities bySubscriptiondomain object idabortBillingEventPayments(List<P> billingEventPayments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) abortByBillingEventId(String billingEventId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Abort all theJpaBillingEventPaymententities byBillingEventdomain object idabortByPaymentId(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Abort aJpaBillingEventPaymententity byBillingEventPaymentdomain object idcreateBillingEventPayment(S billingEventPaymentWithTransaction, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Pass theBillingEventPaymentdomain object to create theJpaBillingEventPaymententityprotected voidcreatePaymentTransactionDetails(P billingEventPayment, List<T> paymentTransactionDetails, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected booleanhasActiveBillingStatus(BillingEventPayment billingEventPayment) readAllByContextId(Iterable<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllByStatusAndDatesRange(PaymentStatusEnum status, Date startDate, Date endDate, Integer resultLimit, Integer pageNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllByStatusAndProcessTypeAndDatesRange(PaymentStatusEnum status, String paymentProcessType, Date startDate, Date endDate, Integer resultLimit, Integer pageNumber, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingEventDTOByBillingEventPaymentId(String billingEventPaymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingEventDTOsByBillingEventPaymentIds(List<String> billingEventPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readBillingEventDTOsByBillingEventPaymentIdsIncrement(List<String> billingEventPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByBillingEventId(String billingEventId, String paymentStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) find all theJpaBillingEventPaymententities byBillingEventIdreadByBillingEventIds(List<String> billingEventIds, String paymentStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByStatusAndRetryDateRange(PaymentStatusEnum status, Date startDate, Date endDate, Integer resultLimit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithEventByBillingEventPaymentId(String billingEventPaymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithEventsByBillingEventPaymentIds(List<String> billingEventPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithEventsByBillingEventPaymentIdsIncrement(List<String> billingEventPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.billing.service.BillingEventPaymentService
abortAllActivePaymentsBySubscriptionRef, abortAllOrderPaymentsByOrderId, abortOrderPaymentByPaymentId, createBillingEventPayment, findAllBillingDetailsByEventPaymentId, findAllBillingEventsByBillingEventPaymentIds, findAllEventPaymentsByEventPaymentIds, findAllPaymentsByEventId, findAllPaymentsByStatusAndDatesRange, findAllPaymentsByStatusAndRetryDateRange, findById, findEventPaymentWithEventByEventPaymentId, updateBillingEventPaymentMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
Field Details
-
ABORTED
- See Also:
-
CHARGE
- See Also:
-
REFUND
- See Also:
-
paymentTransactionDetailService
@Autowired protected PaymentTransactionDetailService<PaymentTransactionDetail> paymentTransactionDetailService -
billingEventService
@Autowired @Lazy protected BillingEventService<BillingEvent,BillingEventDTO, billingEventServiceCreateBillingEventRequest> -
billingEventItemService
@Autowired protected BillingEventItemService<BillingEventItem,BillingEventItemWithTaxDetails> billingEventItemService -
billingEventAddressService
-
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory -
properties
-
-
Constructor Details
-
DefaultBillingEventPaymentService
public DefaultBillingEventPaymentService(BillingEventPaymentRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper)
-
-
Method Details
-
readAllByContextId
public Iterable<P> readAllByContextId(Iterable<String> ids, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readAllByContextIdin interfacecom.broadleafcommerce.data.tracking.core.service.CrudEntityService<P extends BillingEventPayment>- Overrides:
readAllByContextIdin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends BillingEventPayment>
-
readByBillingEventId
public List<P> readByBillingEventId(String billingEventId, @Nullable String paymentStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingEventPaymentServicefind all theJpaBillingEventPaymententities byBillingEventId- Specified by:
readByBillingEventIdin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readByBillingEventIds
public List<P> readByBillingEventIds(List<String> billingEventIds, @Nullable String paymentStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readByBillingEventIdsin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
abortByBillingEventId
@Transactional public List<P> abortByBillingEventId(String billingEventId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingEventPaymentServiceAbort all theJpaBillingEventPaymententities byBillingEventdomain object id- Specified by:
abortByBillingEventIdin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
abortActiveBySubscriptionRef
@Transactional public List<P> abortActiveBySubscriptionRef(String subscriptionRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingEventPaymentServiceAbort all theJpaBillingEventPaymententities bySubscriptiondomain object id- Specified by:
abortActiveBySubscriptionRefin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
abortByPaymentId
@Transactional public P abortByPaymentId(String id, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingEventPaymentServiceAbort aJpaBillingEventPaymententity byBillingEventPaymentdomain object id- Specified by:
abortByPaymentIdin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readAllByStatusAndDatesRange
public List<P> readAllByStatusAndDatesRange(PaymentStatusEnum status, @Nullable Date startDate, Date endDate, Integer resultLimit, Integer pageNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readAllByStatusAndDatesRangein interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readAllByStatusAndProcessTypeAndDatesRange
public List<P> readAllByStatusAndProcessTypeAndDatesRange(PaymentStatusEnum status, String paymentProcessType, @Nullable Date startDate, Date endDate, Integer resultLimit, Integer pageNumber, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readAllByStatusAndProcessTypeAndDatesRangein interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readByStatusAndRetryDateRange
public List<P> readByStatusAndRetryDateRange(PaymentStatusEnum status, @Nullable Date startDate, Date endDate, Integer resultLimit, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readByStatusAndRetryDateRangein interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readWithEventsByBillingEventPaymentIds
public List<Q> readWithEventsByBillingEventPaymentIds(List<String> billingEventPaymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readWithEventsByBillingEventPaymentIdsin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readWithEventByBillingEventPaymentId
public Q readWithEventByBillingEventPaymentId(String billingEventPaymentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readWithEventByBillingEventPaymentIdin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readBillingEventDTOsByBillingEventPaymentIds
public List<R> readBillingEventDTOsByBillingEventPaymentIds(List<String> billingEventPaymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readBillingEventDTOsByBillingEventPaymentIdsin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
readBillingEventDTOByBillingEventPaymentId
@Nullable public R readBillingEventDTOByBillingEventPaymentId(String billingEventPaymentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readBillingEventDTOByBillingEventPaymentIdin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
createBillingEventPayment
@Transactional public P createBillingEventPayment(S billingEventPaymentWithTransaction, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingEventPaymentServicePass theBillingEventPaymentdomain object to create theJpaBillingEventPaymententity- Specified by:
createBillingEventPaymentin interfaceBillingEventPaymentService<P extends BillingEventPayment,Q extends BillingEventPaymentWithEvent, R extends BillingEventDTO, S extends BillingEventPaymentWithTransaction>
-
createPaymentTransactionDetails
-
hasActiveBillingStatus
-
readWithEventsByBillingEventPaymentIdsIncrement
-
readBillingEventDTOsByBillingEventPaymentIdsIncrement
-
abortBillingEventPayments
-