@@ -195,6 +195,39 @@ export const balanceTransactions: BalanceTransactions = (() => {
195
195
return { retrieve, list }
196
196
} ) ( )
197
197
198
+ export interface Checkout {
199
+ create : ( params : Stripe . Checkout . SessionCreateParams ) => Promise < Stripe . Response < Stripe . Checkout . Session > >
200
+ retrieve : ( sessionId : string ) => Promise < Stripe . Response < Stripe . Checkout . Session > >
201
+ expire : ( sessionId : string ) => Promise < Stripe . Response < Stripe . Checkout . Session > >
202
+ list : ( params : Stripe . Checkout . SessionListParams ) => Promise < Stripe . Response < Stripe . ApiList < Stripe . Checkout . Session > > >
203
+ listLineItems : ( sessionId : string , params ?: Stripe . Checkout . SessionListLineItemsParams ) => Promise < Stripe . Response < Stripe . ApiList < Stripe . LineItem > > >
204
+ }
205
+
206
+ export const checkout : Checkout = ( ( ) => {
207
+ async function create ( params : Stripe . Checkout . SessionCreateParams ) : Promise < Stripe . Response < Stripe . Checkout . Session > > {
208
+ return await client . checkout . sessions . create ( params )
209
+ }
210
+
211
+ async function retrieve ( sessionId : string ) : Promise < Stripe . Response < Stripe . Checkout . Session > > {
212
+ return await client . checkout . sessions . retrieve ( sessionId )
213
+ }
214
+
215
+ async function expire ( sessionId : string ) : Promise < Stripe . Response < Stripe . Checkout . Session > > {
216
+ return await client . checkout . sessions . expire ( sessionId )
217
+ }
218
+
219
+ async function list ( params : Stripe . Checkout . SessionListParams ) : Promise < Stripe . Response < Stripe . ApiList < Stripe . Checkout . Session > > > {
220
+ return await client . checkout . sessions . list ( params )
221
+ }
222
+
223
+ async function listLineItems ( sessionId : string , params ?: Stripe . Checkout . SessionListLineItemsParams ) : Promise < Stripe . Response < Stripe . ApiList < Stripe . LineItem > > > {
224
+ return await client . checkout . sessions . listLineItems ( sessionId , params )
225
+ }
226
+
227
+ return { create, retrieve, expire, list, listLineItems }
228
+ } ) ( )
229
+
230
+
198
231
export interface Dispute {
199
232
retrieve : ( stripeId : string ) => Promise < Stripe . Response < Stripe . Dispute > >
200
233
update : ( stripeId : string , params : Stripe . DisputeUpdateParams ) => Promise < Stripe . Response < Stripe . Dispute > >
0 commit comments