@bash-app/bash-common 29.27.0 → 29.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +4 -4
- package/src/index.ts +1 -0
- package/src/utils/stripeAccountUtils.ts +11 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -995,10 +995,10 @@ model Service {
|
|
|
995
995
|
|
|
996
996
|
visibility VisibilityPreference @default(Public)
|
|
997
997
|
|
|
998
|
-
|
|
999
|
-
bookings
|
|
1000
|
-
media
|
|
1001
|
-
serviceLinks
|
|
998
|
+
bashesNotInterestedIn BashEventType[]
|
|
999
|
+
bookings Booking[]
|
|
1000
|
+
media Media[]
|
|
1001
|
+
serviceLinks ServiceLink[]
|
|
1002
1002
|
|
|
1003
1003
|
volunteerServiceId String?
|
|
1004
1004
|
volunteerService VolunteerService? @relation(fields: [volunteerServiceId], references: [id])
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StripeLinkingStatus } from "../definitions";
|
|
2
|
+
import { isProduction } from "./apiUtils";
|
|
3
|
+
|
|
4
|
+
export const stripeAccountFullyLinked = (linkingStatus: StripeLinkingStatus): boolean => {
|
|
5
|
+
return (
|
|
6
|
+
!linkingStatus.hasOutstandingRequirements &&
|
|
7
|
+
!linkingStatus.isOnboarded &&
|
|
8
|
+
!linkingStatus.paymentsEnabled &&
|
|
9
|
+
(!isProduction() || linkingStatus.taxMonitoringEnabled)
|
|
10
|
+
);
|
|
11
|
+
}
|