Skip to content

Commit fa767bb

Browse files
Merge pull request #669 from recurly/v3-v2021-02-25-7645912432
Generated Latest Changes for v2021-02-25
2 parents ba9a7e3 + 17698fd commit fa767bb

File tree

2 files changed

+47
-42
lines changed

2 files changed

+47
-42
lines changed

openapi/api.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ paths:
956956
Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode:
957957
recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion:
958958
\ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth:
959-
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv:
959+
\ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"30\"),\n\t\tCvv:
960960
\ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif
961961
e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation
962962
{\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
@@ -24833,6 +24833,8 @@ components:
2483324833
a transaction. Pass this value to Recurly.js so it can continue
2483424834
the challenge flow.
2483524835
maxLength: 22
24836+
fraud_info:
24837+
"$ref": "#/components/schemas/TransactionFraudInfo"
2483624838
RelatedTypeEnum:
2483724839
type: string
2483824840
enum:

recurly/resources.py

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ class TransactionError(Resource):
519519
Code
520520
decline_code : str
521521
Decline code
522+
fraud_info : TransactionFraudInfo
523+
Fraud information
522524
merchant_advice : str
523525
Merchant message
524526
message : str
@@ -535,6 +537,7 @@ class TransactionError(Resource):
535537
"category": str,
536538
"code": str,
537539
"decline_code": str,
540+
"fraud_info": "TransactionFraudInfo",
538541
"merchant_advice": str,
539542
"message": str,
540543
"object": str,
@@ -543,6 +546,47 @@ class TransactionError(Resource):
543546
}
544547

545548

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+
546590
class AccountAcquisition(Resource):
547591
"""
548592
Attributes
@@ -896,47 +940,6 @@ class TransactionPaymentGateway(Resource):
896940
}
897941

898942

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-
940943
class CouponRedemption(Resource):
941944
"""
942945
Attributes

0 commit comments

Comments
 (0)