File tree Expand file tree Collapse file tree
packages/source-stripe/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,8 +136,9 @@ export function makeClient(
136136
137137 async createWebhookEndpoint ( params : {
138138 url : string
139- enabled_events : string [ ]
140- metadata ?: Record < string , string >
139+ enabled_events : string [ ] ,
140+ api_version : string ,
141+ metadata ?: Record < string , string > ,
141142 } ) : Promise < StripeWebhookEndpoint > {
142143 const json = await requestWithRetry ( 'POST' , '/v1/webhook_endpoints' , params )
143144 return StripeWebhookEndpointSchema . parse ( json )
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ export function createStripeSource(
237237 url : config . webhook_url ,
238238 enabled_events : [ '*' ] ,
239239 metadata : { managed_by : 'stripe-sync' } ,
240+ api_version : config . api_version ?? BUNDLED_API_VERSION
240241 } )
241242 // Secret is only available at creation time — not on list/retrieve
242243 if ( ! config . webhook_secret && created . secret ) {
You can’t perform that action at this time.
0 commit comments