File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -391,16 +391,17 @@ describe("Notification Test", function (): void {
391
391
it ( "should deserialize BalanceWebhooks BalanceAccountBalanceNotificationRequest" , function ( ) : void {
392
392
const json = {
393
393
"data" : {
394
- "settingIds" : "BWHS00000000000000000000000001" ,
395
- "creationDate" : "2025-01-19T13:37:38+02:00" ,
394
+ "balanceAccountId" : "BWHS00000000000000000000000001" ,
396
395
"balancePlatform" : "YOUR_BALANCE_PLATFORM" ,
397
- "currency" : "USD" ,
398
396
"balances" : {
399
397
"available" : 499900 ,
400
398
"pending" : 350000 ,
401
399
"reserved" : 120000 ,
402
400
"balance" : 470000
403
- }
401
+ } ,
402
+ "creationDate" : "2025-01-19T13:37:38+02:00" ,
403
+ "currency" : "USD" ,
404
+ "settingIds" : [ "WK1" , "WK2" ]
404
405
} ,
405
406
"environment" : "test" ,
406
407
"type" : "balancePlatform.balanceAccount.balance.updated"
@@ -414,6 +415,8 @@ describe("Notification Test", function (): void {
414
415
) ;
415
416
expect ( balanceAccountBalanceNotificationRequest . environment ) . toBe ( "test" ) ;
416
417
expect ( balanceAccountBalanceNotificationRequest . data ) . toBeDefined ( ) ;
418
+ expect ( balanceAccountBalanceNotificationRequest . data . settingIds ) . toBeTruthy ( ) ;
419
+ expect ( balanceAccountBalanceNotificationRequest . data . settingIds . length ) . toBe ( 2 ) ;
417
420
expect ( balanceAccountBalanceNotificationRequest . data . balancePlatform ) . toBe ( "YOUR_BALANCE_PLATFORM" ) ;
418
421
expect ( balanceAccountBalanceNotificationRequest . data . currency ) . toBe ( "USD" ) ;
419
422
} ) ;
You can’t perform that action at this time.
0 commit comments