@@ -308,6 +308,12 @@ def test_domain(self) -> None:
308308
309309
310310class TestEvent (ValidationBase , unittest .TestCase ):
311+ def test_party (self ) -> None :
312+ for good in ("agent" , "customer" ):
313+ self .check_transaction ({"event" : {"party" : good }})
314+ for bad in ("bad" , 1 , "" ):
315+ self .check_invalid_transaction ({"event" : {"party" : bad }})
316+
311317 def test_transaction (self ) -> None :
312318 self .check_transaction_str_type ("event" , "transaction_id" )
313319
@@ -324,7 +330,9 @@ def test_type(self) -> None:
324330 for good in (
325331 "account_creation" ,
326332 "account_login" ,
333+ "credit_application" ,
327334 "email_change" ,
335+ "fund_transfer" ,
328336 "password_reset" ,
329337 "payout_change" ,
330338 "purchase" ,
@@ -370,6 +378,23 @@ def test_referrer_uri(self) -> None:
370378
371379
372380class TestPayment (ValidationBase , unittest .TestCase ):
381+ def test_method (self ) -> None :
382+ for good in (
383+ "bank_debit" ,
384+ "bank_redirect" ,
385+ "bank_transfer" ,
386+ "buy_now_pay_later" ,
387+ "card" ,
388+ "crypto" ,
389+ "digital_wallet" ,
390+ "gift_card" ,
391+ "real_time_payment" ,
392+ "rewards" ,
393+ ):
394+ self .check_transaction ({"payment" : {"method" : good }})
395+ for bad in ("bad" , 1 , "" ):
396+ self .check_invalid_transaction ({"payment" : {"method" : bad }})
397+
373398 def test_processor (self ) -> None :
374399 for good in ("adyen" , "stripe" ):
375400 self .check_transaction ({"payment" : {"processor" : good }})
0 commit comments