// TODO: This is a lot of injected dependencies... public WebhookHandlerService(IPaymentHandlerSubscription paymentHandlerSubscription, IPaymentHandlerCustomerService paymentHandlerCustomerService, IPaymentHandlerInvoice paymentHandlerInvoice, IPaymentHandlerEventService paymentHandlerEvent, INewMemberService newMemberService, IMemberAddBillingActivityService memberAddBillingActivityService, IMemberSubscriptionRenewalService memberSubscriptionRenewalService, IMemberCancellationService memberCancellationService, IMemberSubscriptionEndedAdminEmailService memberSubscriptionEndedAdminEmailService, IUserLookupService userLookupService, IRepository <Member> repository, AdminUpdatesWebhook webhook, IAppLogger <WebhookHandlerService> logger) { _paymentHandlerSubscription = paymentHandlerSubscription; _paymentHandlerCustomerService = paymentHandlerCustomerService; _paymentHandlerInvoice = paymentHandlerInvoice; _paymentHandlerEventService = paymentHandlerEvent; _newMemberService = newMemberService; _memberAddBillingActivityService = memberAddBillingActivityService; _memberSubscriptionRenewalService = memberSubscriptionRenewalService; _memberCancellationService = memberCancellationService; _memberSubscriptionEndedAdminEmailService = memberSubscriptionEndedAdminEmailService; _userLookupService = userLookupService; _repository = repository; _webhook = webhook; _logger = logger; }
public StripeWebhookHandler(IAppLogger <StripeWebhookHandler> logger, IPaymentHandlerSubscription paymentHandlerSubscription, IPaymentHandlerEventService paymentHandlerEvent, IPaymentHandlerInvoice paymentHandlerInvoice, IWebhookHandlerService webhookHandlerService) { _logger = logger; _paymentHandlerSubscription = paymentHandlerSubscription; _paymentHandlerEventService = paymentHandlerEvent; _paymentHandlerInvoice = paymentHandlerInvoice; _webhookHandlerService = webhookHandlerService; }