mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
Correctly register PaymentIntegration as tenant model
This commit is contained in:
@@ -3,12 +3,10 @@ import { CreateStripeAccountLinkService } from './CreateStripeAccountLink';
|
|||||||
import { CreateStripeAccountService } from './CreateStripeAccountService';
|
import { CreateStripeAccountService } from './CreateStripeAccountService';
|
||||||
import { StripePaymentApplication } from './StripePaymentApplication';
|
import { StripePaymentApplication } from './StripePaymentApplication';
|
||||||
import { ExchangeStripeOAuthTokenService } from './ExchangeStripeOauthToken';
|
import { ExchangeStripeOAuthTokenService } from './ExchangeStripeOauthToken';
|
||||||
import { PaymentIntegration } from './models/PaymentIntegration.model';
|
|
||||||
import { SeedStripeAccountsOnOAuthGrantedSubscriber } from './subscribers/SeedStripeAccounts';
|
import { SeedStripeAccountsOnOAuthGrantedSubscriber } from './subscribers/SeedStripeAccounts';
|
||||||
import { StripeWebhooksSubscriber } from './subscribers/StripeWebhooksSubscriber';
|
import { StripeWebhooksSubscriber } from './subscribers/StripeWebhooksSubscriber';
|
||||||
import { StripeIntegrationController } from './StripePayment.controller';
|
import { StripeIntegrationController } from './StripePayment.controller';
|
||||||
import { StripePaymentService } from './StripePaymentService';
|
import { StripePaymentService } from './StripePaymentService';
|
||||||
import { InjectSystemModel } from '../System/SystemModels/SystemModels.module';
|
|
||||||
import { GetStripeAuthorizationLinkService } from './GetStripeAuthorizationLink';
|
import { GetStripeAuthorizationLinkService } from './GetStripeAuthorizationLink';
|
||||||
import { AccountsModule } from '../Accounts/Accounts.module';
|
import { AccountsModule } from '../Accounts/Accounts.module';
|
||||||
import { CreatePaymentReceiveStripePayment } from './CreatePaymentReceivedStripePayment';
|
import { CreatePaymentReceiveStripePayment } from './CreatePaymentReceivedStripePayment';
|
||||||
@@ -16,8 +14,6 @@ import { SaleInvoicesModule } from '../SaleInvoices/SaleInvoices.module';
|
|||||||
import { PaymentsReceivedModule } from '../PaymentReceived/PaymentsReceived.module';
|
import { PaymentsReceivedModule } from '../PaymentReceived/PaymentsReceived.module';
|
||||||
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
import { TenancyContext } from '../Tenancy/TenancyContext.service';
|
||||||
|
|
||||||
const models = [InjectSystemModel(PaymentIntegration)];
|
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
AccountsModule,
|
AccountsModule,
|
||||||
@@ -25,7 +21,6 @@ const models = [InjectSystemModel(PaymentIntegration)];
|
|||||||
forwardRef(() => SaleInvoicesModule),
|
forwardRef(() => SaleInvoicesModule),
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
...models,
|
|
||||||
StripePaymentService,
|
StripePaymentService,
|
||||||
GetStripeAuthorizationLinkService,
|
GetStripeAuthorizationLinkService,
|
||||||
CreateStripeAccountLinkService,
|
CreateStripeAccountLinkService,
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import { BillLandedCostEntry } from '@/modules/BillLandedCosts/models/BillLanded
|
|||||||
import { BillLandedCost } from '@/modules/BillLandedCosts/models/BillLandedCost';
|
import { BillLandedCost } from '@/modules/BillLandedCosts/models/BillLandedCost';
|
||||||
import { VendorCreditAppliedBill } from '@/modules/VendorCreditsApplyBills/models/VendorCreditAppliedBill';
|
import { VendorCreditAppliedBill } from '@/modules/VendorCreditsApplyBills/models/VendorCreditAppliedBill';
|
||||||
import { SaleInvoice } from '@/modules/SaleInvoices/models/SaleInvoice';
|
import { SaleInvoice } from '@/modules/SaleInvoices/models/SaleInvoice';
|
||||||
|
import { PaymentIntegration } from '@/modules/StripePayment/models/PaymentIntegration.model';
|
||||||
import { PaymentReceivedEntry } from '@/modules/PaymentReceived/models/PaymentReceivedEntry';
|
import { PaymentReceivedEntry } from '@/modules/PaymentReceived/models/PaymentReceivedEntry';
|
||||||
import { CreditNoteAppliedInvoice } from '@/modules/CreditNotesApplyInvoice/models/CreditNoteAppliedInvoice';
|
import { CreditNoteAppliedInvoice } from '@/modules/CreditNotesApplyInvoice/models/CreditNoteAppliedInvoice';
|
||||||
import { CreditNote } from '@/modules/CreditNotes/models/CreditNote';
|
import { CreditNote } from '@/modules/CreditNotes/models/CreditNote';
|
||||||
@@ -75,6 +76,7 @@ const models = [
|
|||||||
VendorCredit,
|
VendorCredit,
|
||||||
VendorCreditAppliedBill,
|
VendorCreditAppliedBill,
|
||||||
RefundVendorCredit,
|
RefundVendorCredit,
|
||||||
|
PaymentIntegration,
|
||||||
PaymentReceived,
|
PaymentReceived,
|
||||||
PaymentReceivedEntry,
|
PaymentReceivedEntry,
|
||||||
TenantUser,
|
TenantUser,
|
||||||
|
|||||||
Reference in New Issue
Block a user