MCPcopy
hub / github.com/simstudioai/sim / stripeItem

Function stripeItem

apps/sim/lib/billing/webhooks/outbox-handlers.test.ts:56–76  ·  view source on GitHub ↗
(overrides: {
  quantity?: number
  priceId?: string
  interval?: 'month' | 'year'
})

Source from the content-addressed store, hash-verified

54}
55
56function stripeItem(overrides: {
57 quantity?: number
58 priceId?: string
59 interval?: 'month' | 'year'
60}) {
61 return {
62 status: 'active',
63 items: {
64 data: [
65 {
66 id: 'si_1',
67 quantity: overrides.quantity ?? 1,
68 price: {
69 id: overrides.priceId ?? 'price_pro_month',
70 recurring: { interval: overrides.interval ?? 'month' },
71 },
72 },
73 ],
74 },
75 }
76}
77
78describe('stripeSyncSubscriptionSeats outbox handler', () => {
79 beforeEach(() => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected