4b06f42db7
* sort of works * type fixes * added option to run old way too
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
import type 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
|
|
}
|