* update stripe service * init endpoints for stripe connect atom * update stripe controller * update stripe service * add generic function to create app credential * update stripe controller * update stripe service * add handler to construct redirectUrl * restructure files for better readibility * better naming * replace STRIPE_PRIVATE_KEY with STRIPE_API_KEY * fix naming * remove unused query param * frontend for stripe connect atom * custom hooks for stripe connect atom * abstract response schema into separate file * fixup * input dto for stripe controller * update stripe module * update endpoints module to include stripe module * updatte stripe module * fixups and add check endpoint to stripe controller * add method to check stripe account * add helper fn to get on error return value * update stripe connect atom * custom hook to check user stripe credentials * add stripe connect to atom exports * update stripe connect styling * add qs stringify package * translations for stripe connect atom * updaet typing * update output dtos for stripe endpoints * add error message * fix merge conflicts * add stripe connect atom to atom exports * add query param for error rediect link * add handler for onCheck success and error redirect link * update index value * fix merge conflicts * fixup * resolve merge conflicts * war with merge conflicts * update examples app --------- Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
33 lines
1.1 KiB
TypeScript
33 lines
1.1 KiB
TypeScript
import { PlatformEndpointsModule } from "@/ee/platform-endpoints-module";
|
|
import { AtomsModule } from "@/modules/atoms/atoms.module";
|
|
import { BillingModule } from "@/modules/billing/billing.module";
|
|
import { DestinationCalendarsModule } from "@/modules/destination-calendars/destination-calendars.module";
|
|
import { OAuthClientModule } from "@/modules/oauth-clients/oauth-client.module";
|
|
import { StripeModule } from "@/modules/stripe/stripe.module";
|
|
import { TimezoneModule } from "@/modules/timezones/timezones.module";
|
|
import type { MiddlewareConsumer, NestModule } from "@nestjs/common";
|
|
import { Module } from "@nestjs/common";
|
|
|
|
import { UsersModule } from "./users/users.module";
|
|
import { WebhooksModule } from "./webhooks/webhooks.module";
|
|
|
|
@Module({
|
|
imports: [
|
|
OAuthClientModule,
|
|
BillingModule,
|
|
PlatformEndpointsModule,
|
|
TimezoneModule,
|
|
UsersModule,
|
|
WebhooksModule,
|
|
DestinationCalendarsModule,
|
|
AtomsModule,
|
|
StripeModule,
|
|
],
|
|
})
|
|
export class EndpointsModule implements NestModule {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
configure(_consumer: MiddlewareConsumer) {
|
|
// TODO: apply ratelimits
|
|
}
|
|
}
|