Files
speckle-server/packages/server/modules/gatekeeper/tests/helpers/stripe.ts
T
Daniel Gak Anagrov 3e7e11b8a1 feat(gatekeeper): add error log on seat mismatch (#5004)
* feat: added a specific errors on downscale issues
2025-07-07 12:28:59 +02:00

12 lines
295 B
TypeScript

import Stripe from 'stripe'
export const buildFakeStripe = (updates: Record<string, unknown> = {}): Stripe => {
return {
subscriptions: {
update: async (subscriptionId: string, params?: unknown) => {
updates[subscriptionId] = params
}
}
} as unknown as Stripe
}