1- import { Module } from '@nestjs/common' ;
1+ import { Logger , Module } from '@nestjs/common' ;
22import { TypedConfigModule , dotenvLoader } from 'nest-typed-config' ;
33import { AppController } from './app.controller' ;
44import { AppService } from './app.service' ;
55import { RootConfig } from '../config' ;
6+ import {
7+ StripeEventManager ,
8+ StripeWebhooksController ,
9+ StripeWebhookService ,
10+ SubscriptionEventsService ,
11+ } from '@fxa/payments/webhooks' ;
12+ import { FirestoreProvider } from '@fxa/shared/db/firestore' ;
13+ import { StripeClient } from '@fxa/payments/stripe' ;
14+ import { StatsDProvider } from '@fxa/shared/metrics/statsd' ;
15+ import {
16+ CustomerManager ,
17+ InvoiceManager ,
18+ PaymentMethodManager ,
19+ PriceManager ,
20+ SubscriptionManager ,
21+ } from '@fxa/payments/customer' ;
22+ import {
23+ PaypalBillingAgreementManager ,
24+ PayPalClient ,
25+ PaypalClientConfig ,
26+ PaypalCustomerManager ,
27+ } from '@fxa/payments/paypal' ;
28+ import { CurrencyManager } from '@fxa/payments/currency' ;
29+ import { AccountDatabaseNestFactory } from '@fxa/shared/db/mysql/account' ;
30+ import { AccountManager } from '@fxa/shared/account/account' ;
31+ import { CartManager } from '@fxa/payments/cart' ;
32+ import { ProductConfigurationManager , StrapiClient } from '@fxa/shared/cms' ;
33+ import {
34+ MockPaymentsGleanFactory ,
35+ PaymentsGleanManager ,
36+ } from '@fxa/payments/metrics' ;
37+ import { PaymentsGleanFactory } from '@fxa/payments/metrics/provider' ;
38+ import { PaymentsEmitterService } from '@fxa/payments/events' ;
639
740@Module ( {
841 imports : [
@@ -18,7 +51,35 @@ import { RootConfig } from '../config';
1851 } ) ,
1952 } ) ,
2053 ] ,
21- controllers : [ AppController ] ,
22- providers : [ AppService ] ,
54+ controllers : [ AppController , StripeWebhooksController ] ,
55+ providers : [
56+ Logger ,
57+ AccountDatabaseNestFactory ,
58+ AccountManager ,
59+ AppService ,
60+ ProductConfigurationManager ,
61+ CartManager ,
62+ SubscriptionEventsService ,
63+ PaymentsGleanFactory ,
64+ PaymentsGleanManager ,
65+ PaymentsEmitterService ,
66+ PriceManager ,
67+ FirestoreProvider ,
68+ StatsDProvider ,
69+ StripeClient ,
70+ PayPalClient ,
71+ PaypalClientConfig ,
72+ SubscriptionManager ,
73+ CustomerManager ,
74+ InvoiceManager ,
75+ PaymentMethodManager ,
76+ CurrencyManager ,
77+ StripeWebhookService ,
78+ StripeEventManager ,
79+ PaypalBillingAgreementManager ,
80+ PaypalCustomerManager ,
81+ StrapiClient ,
82+ MockPaymentsGleanFactory ,
83+ ] ,
2384} )
2485export class AppModule { }
0 commit comments