Class BillingProcessingResultHandler<P extends ProcessBillingEventPaymentResults>
java.lang.Object
com.broadleafcommerce.billing.job.module.BillingProcessingResultHandler<P>
public class BillingProcessingResultHandler<P extends ProcessBillingEventPaymentResults>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BillingJobPropertiesprotected BillingProcessingResultHandlerServiceprotected SkuToEntitlementLookupServiceprotected SubscriptionNextBillDateServiceprotected SubscriptionService<Subscription,SubscriptionWithItems> protected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntitlementcreateEntitlementToGrant(String entitlementCode, Subscription subscription) protected EntitlementcreateEntitlementToRevoke(Subscription subscription) protected List<Entitlement>entitlementsToGrantBySkus(SubscriptionWithItems subscriptionWithItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<Entitlement>entitlementsToRevoke(SubscriptionWithItems subscriptionWithItem) fetchEntitlementsBySku(String skuId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected List<Entitlement>generateEntitlements(SubscriptionWithItems subscriptionWithItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected StringgetPrincipalType(Subscription subscription) protected List<SubscriptionWithItems>getSubscriptionWithItemsBySubscriptionIds(List<String> subscriptionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) voidDeprecated.voidprocess(P billingProcessResponseEvent, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidupdateSubscriptionForPaymentFailure(Subscription subscription, SubscriptionWithItems subscriptionWithItems, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidupdateSubscriptionForPaymentSuccess(Subscription subscription, SubscriptionWithItems subscriptionWithItems, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected voidupdateSubscriptionForProcessedPayment(BillingEventPaymentProcessedEvent paymentProcessedEvent, Map<String, SubscriptionWithItems> mapSubscriptionIdToSubscription, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
subscriptionService
-
subscriptionNextBillDateService
-
billingProcessingResultHandlerService
-
entitlementLookupService
-
typeFactory
@Autowired protected com.broadleafcommerce.common.extension.TypeFactory typeFactory -
billingJobProperties
-
-
Constructor Details
-
BillingProcessingResultHandler
public BillingProcessingResultHandler()
-
-
Method Details
-
process
Deprecated. -
process
public void process(P billingProcessResponseEvent, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateSubscriptionForProcessedPayment
protected void updateSubscriptionForProcessedPayment(BillingEventPaymentProcessedEvent paymentProcessedEvent, Map<String, SubscriptionWithItems> mapSubscriptionIdToSubscription, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateSubscriptionForPaymentSuccess
protected void updateSubscriptionForPaymentSuccess(Subscription subscription, SubscriptionWithItems subscriptionWithItems, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateSubscriptionForPaymentFailure
protected void updateSubscriptionForPaymentFailure(Subscription subscription, SubscriptionWithItems subscriptionWithItems, BillingProcessingResultHandlerDTO billingProcessingResultHandlerDTO, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getSubscriptionWithItemsBySubscriptionIds
protected List<SubscriptionWithItems> getSubscriptionWithItemsBySubscriptionIds(List<String> subscriptionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
entitlementsToGrantBySkus
@Nullable protected List<Entitlement> entitlementsToGrantBySkus(SubscriptionWithItems subscriptionWithItem, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
entitlementsToRevoke
-
fetchEntitlementsBySku
-
generateEntitlements
@Nullable protected List<Entitlement> generateEntitlements(SubscriptionWithItems subscriptionWithItem, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
createEntitlementToGrant
-
getPrincipalType
-
createEntitlementToRevoke
-
process(ProcessBillingEventPaymentResults, ContextInfo)instead