@@ -519,6 +519,8 @@ class TransactionError(Resource):
519
519
Code
520
520
decline_code : str
521
521
Decline code
522
+ fraud_info : TransactionFraudInfo
523
+ Fraud information
522
524
merchant_advice : str
523
525
Merchant message
524
526
message : str
@@ -535,6 +537,7 @@ class TransactionError(Resource):
535
537
"category" : str ,
536
538
"code" : str ,
537
539
"decline_code" : str ,
540
+ "fraud_info" : "TransactionFraudInfo" ,
538
541
"merchant_advice" : str ,
539
542
"message" : str ,
540
543
"object" : str ,
@@ -543,6 +546,47 @@ class TransactionError(Resource):
543
546
}
544
547
545
548
549
+ class TransactionFraudInfo (Resource ):
550
+ """
551
+ Attributes
552
+ ----------
553
+ decision : str
554
+ Kount decision
555
+ object : str
556
+ Object type
557
+ reference : str
558
+ Kount transaction reference ID
559
+ risk_rules_triggered : :obj:`list` of :obj:`FraudRiskRule`
560
+ A list of fraud risk rules that were triggered for the transaction.
561
+ score : int
562
+ Kount score
563
+ """
564
+
565
+ schema = {
566
+ "decision" : str ,
567
+ "object" : str ,
568
+ "reference" : str ,
569
+ "risk_rules_triggered" : ["FraudRiskRule" ],
570
+ "score" : int ,
571
+ }
572
+
573
+
574
+ class FraudRiskRule (Resource ):
575
+ """
576
+ Attributes
577
+ ----------
578
+ code : str
579
+ The Kount rule number.
580
+ message : str
581
+ Description of why the rule was triggered
582
+ """
583
+
584
+ schema = {
585
+ "code" : str ,
586
+ "message" : str ,
587
+ }
588
+
589
+
546
590
class AccountAcquisition (Resource ):
547
591
"""
548
592
Attributes
@@ -896,47 +940,6 @@ class TransactionPaymentGateway(Resource):
896
940
}
897
941
898
942
899
- class TransactionFraudInfo (Resource ):
900
- """
901
- Attributes
902
- ----------
903
- decision : str
904
- Kount decision
905
- object : str
906
- Object type
907
- reference : str
908
- Kount transaction reference ID
909
- risk_rules_triggered : :obj:`list` of :obj:`FraudRiskRule`
910
- A list of fraud risk rules that were triggered for the transaction.
911
- score : int
912
- Kount score
913
- """
914
-
915
- schema = {
916
- "decision" : str ,
917
- "object" : str ,
918
- "reference" : str ,
919
- "risk_rules_triggered" : ["FraudRiskRule" ],
920
- "score" : int ,
921
- }
922
-
923
-
924
- class FraudRiskRule (Resource ):
925
- """
926
- Attributes
927
- ----------
928
- code : str
929
- The Kount rule number.
930
- message : str
931
- Description of why the rule was triggered
932
- """
933
-
934
- schema = {
935
- "code" : str ,
936
- "message" : str ,
937
- }
938
-
939
-
940
943
class CouponRedemption (Resource ):
941
944
"""
942
945
Attributes
0 commit comments