Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions fraudScan.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
},
"fraudScanId": {
"type": "string",
"description": "Unique reference for this fraud scan"
"description": "Unique reference for this fraud scan",
"deprecated": true
},
"connectorLibrary": {
"type": "string",
"description": "Connector used for this fraud scan"
"description": "Connector used for this fraud scan",
"deprecated": true
},
"suggestedAction": {
"type": "string",
Expand All @@ -30,17 +32,25 @@
"description": "Time the scan was performed, output as the number of seconds since unix epoch"
},
"overallScore": {
"$ref": "fraudScore.json"
"$ref": "fraudScore.json",
"deprecated": true
},
"subScores": {
"type": "array",
"items": {
"$ref": "fraudScore.json"
}
},
"deprecated": true
},
"references": {
"type": "object",
"description": "References associated with this scan"
},
"scanData": {
"type": "array",
"items": {
"$ref": "fraudScanData.json"
}
}
}
}
52 changes: 52 additions & 0 deletions fraudScanData.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "fraudScanData",
"type": "object",
"properties": {
"chargeUuid": {
"type": "string",
"description": "Unique ID for the charge that has been created"
},
"fraudScanId": {
"type": "string",
"description": "Unique reference for this fraud scan"
},
"connectorLibrary": {
"type": "string",
"description": "Connector used for this fraud scan"
},
"suggestedAction": {
"type": "string",
"enum": [
"NO_SUGGESTION",
"REVIEW",
"ALLOW",
"DENY"
],
"description": "Recommendation from the fraud scan"
},
"scanTime": {
"type": "number",
"description": "Time the scan was performed, output as the number of seconds since unix epoch"
},
"overallScore": {
"$ref": "fraudScore.json"
},
"subScores": {
"type": "array",
"items": {
"$ref": "fraudScore.json"
}
},
"references": {
"type": "object",
"description": "References associated with this scan"
},
"subScans": {
"type": "array",
"items": {
"$ref": "fraudScan.json"
}
}
}
}