Class DefaultBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.billing.job.service.impl.DefaultBillingProcessRequestService<P,Q>
- All Implemented Interfaces:
BillingProcessRequestService<P,,Q> com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements BillingProcessRequestService<P,Q>
- Author:
- venkat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, BillingEventDTO, BillingEventPaymentWithTransaction> protected BillingPropertiesprotected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
ConstructorsConstructorDescriptionDefaultBillingProcessRequestService(BillingProcessRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptioncreateNotTaxedChargeResults(List<P> requests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createRefundResults(List<P> requests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) createTaxedChargeResults(List<P> requests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readAllByContextId(Iterable<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readByPaymentOrRefundId(String billingEventPaymentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the list ofBillingProcessingRequestbyBillingProcessingRequest.getPaymentOrRefundId()readByPaymentOrRefundIdIn(List<String> billingEventPaymentIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the list ofBillingProcessingRequestbyBillingProcessingRequest.getPaymentOrRefundId()readWithDetailsByIds(List<String> billingProcessIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithDetailsByIdsIncrement(List<String> ids, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) readWithDetailsByRequests(List<P> requests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Given therequests, retrieve the supporting objects to fill out therequests with full detailsMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods 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.job.service.BillingProcessRequestService
createBillingProcessRequest, findAllByBillingEventPaymentId, findBillingProcessingRequestByIds, findBillingProcessingRequestWithDetailsByIds, findByBillingEventPaymentId, findById, updateBillingProcessRequestWithDomainMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Field Details
-
billingEventPaymentService
@Autowired protected BillingEventPaymentService<BillingEventPayment,BillingEventPaymentWithEvent, billingEventPaymentServiceBillingEventDTO, BillingEventPaymentWithTransaction> -
refundEventDetailService
@Autowired protected RefundEventDetailService<RefundEventDetail,RefundDetailsWithRefundAndBillingEvent> refundEventDetailService -
paymentTransactionDetailService
@Autowired protected PaymentTransactionDetailService<PaymentTransactionDetail> paymentTransactionDetailService -
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory -
properties
-
-
Constructor Details
-
DefaultBillingProcessRequestService
public DefaultBillingProcessRequestService(BillingProcessRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Details
-
readWithDetailsByIds
public List<Q> readWithDetailsByIds(List<String> billingProcessIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readWithDetailsByIdsin interfaceBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
-
readWithDetailsByRequests
public List<Q> readWithDetailsByRequests(List<P> requests, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingProcessRequestServiceGiven therequests, retrieve the supporting objects to fill out therequests with full details- Specified by:
readWithDetailsByRequestsin interfaceBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
-
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 BillingProcessingRequest>- Overrides:
readAllByContextIdin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends BillingProcessingRequest>
-
readByPaymentOrRefundId
public List<P> readByPaymentOrRefundId(String billingEventPaymentId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingProcessRequestServiceRead the list ofBillingProcessingRequestbyBillingProcessingRequest.getPaymentOrRefundId()- Specified by:
readByPaymentOrRefundIdin interfaceBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
-
readByPaymentOrRefundIdIn
public List<P> readByPaymentOrRefundIdIn(List<String> billingEventPaymentIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:BillingProcessRequestServiceRead the list ofBillingProcessingRequestbyBillingProcessingRequest.getPaymentOrRefundId()- Specified by:
readByPaymentOrRefundIdInin interfaceBillingProcessRequestService<P extends BillingProcessingRequest,Q extends BillingProcessingRequestWithFullDetails>
-
readWithDetailsByIdsIncrement
-
createRefundResults
-
createTaxedChargeResults
-
createNotTaxedChargeResults
-