@@ -11,10 +11,12 @@ describe('resource checkoutSessions', () => {
1111 // skipped: tests are disabled for the time being
1212 test . skip ( 'create: only required params' , async ( ) => {
1313 const responsePromise = client . checkoutSessions . create ( {
14- cancelUrl : 'cancelUrl' ,
15- customerExternalId : 'customerExternalId' ,
16- priceId : 'priceId' ,
17- successUrl : 'successUrl' ,
14+ checkoutSession : {
15+ cancelUrl : 'cancelUrl' ,
16+ customerExternalId : 'customerExternalId' ,
17+ priceId : 'priceId' ,
18+ successUrl : 'successUrl' ,
19+ } ,
1820 } ) ;
1921 const rawResponse = await responsePromise . asResponse ( ) ;
2022 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
@@ -28,13 +30,15 @@ describe('resource checkoutSessions', () => {
2830 // skipped: tests are disabled for the time being
2931 test . skip ( 'create: required and optional params' , async ( ) => {
3032 const response = await client . checkoutSessions . create ( {
31- cancelUrl : 'cancelUrl' ,
32- customerExternalId : 'customerExternalId' ,
33- priceId : 'priceId' ,
34- successUrl : 'successUrl' ,
35- outputMetadata : { foo : 'bar' } ,
36- outputName : 'outputName' ,
37- quantity : 0 ,
33+ checkoutSession : {
34+ cancelUrl : 'cancelUrl' ,
35+ customerExternalId : 'customerExternalId' ,
36+ priceId : 'priceId' ,
37+ successUrl : 'successUrl' ,
38+ outputMetadata : { foo : 'bar' } ,
39+ outputName : 'outputName' ,
40+ quantity : 0 ,
41+ } ,
3842 } ) ;
3943 } ) ;
4044
0 commit comments