[add]: RACCheck

This commit is contained in:
VivianDee
2025-03-19 16:02:03 +01:00
parent d7f9318310
commit 8dc156c683
+236 -6
View File
@@ -74,12 +74,99 @@
"description": "Find out more", "description": "Find out more",
"url": "https://www.simbrellang.net" "url": "https://www.simbrellang.net"
} }
},
{
"name": "RACCheck",
"description": "Risk Acceptance Criteria Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "LoanDisbursement",
"description": "Loan Disbursement Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "Collect Loan",
"description": "Collect Loan Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "TransactionCheck",
"description": "Transaction Check Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "PenalCharge",
"description": "Penal Charge Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "RevokeEnableConsent",
"description": "Revoke Enable Consent Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "TokenValidation",
"description": "Token Validation",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "LienCheck",
"description": "Lien Check",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "NewTransactionCheck",
"description": "New Transaction Check",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "SMS",
"description": "SMSRequest",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "BulkSMS",
"description": "Bulk SMS Request",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
} }
], ],
"paths": { "paths": {
"/EligibilityCheck": { "/EligibilityCheck": {
"post": { "post": {
"tags": [ "tags": [
"EligibilityCheck" "EligibilityCheck"
], ],
@@ -145,7 +232,6 @@
}, },
"/SelectOffer": { "/SelectOffer": {
"post": { "post": {
"tags": [ "tags": [
"SelectOffer" "SelectOffer"
], ],
@@ -211,7 +297,6 @@
}, },
"/ProvideLoan": { "/ProvideLoan": {
"post": { "post": {
"tags": [ "tags": [
"ProvideLoan" "ProvideLoan"
], ],
@@ -277,7 +362,6 @@
}, },
"/LoanInformation": { "/LoanInformation": {
"get": { "get": {
"tags": [ "tags": [
"LoanInformation" "LoanInformation"
], ],
@@ -343,7 +427,6 @@
}, },
"/NotificationCallback": { "/NotificationCallback": {
"post": { "post": {
"tags": [ "tags": [
"NotificationCallback" "NotificationCallback"
], ],
@@ -406,7 +489,61 @@
} }
] ]
} }
},
"/RACCheck": {
"post": {
"tags": [
"RACCheck"
],
"summary": "Risk Acceptance Criteria Check",
"description": "Check if a customer passes the Risk Acceptance Criteria defined by the bank",
"operationId": "racCheck",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RACCheckRequest"
}
},
"application/xml": {
"schema": {
"$ref": "#/components/schemas/RACCheckRequest"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "#/components/schemas/RACCheckRequest"
}
}
}
},
"responses": {
"200": {
"description": "RAC Check Successful",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RACCheckResponse"
}
},
"application/xml": {
"schema": {
"$ref": "#/components/schemas/RACCheckResponse"
}
}
}
},
"400": {
"description": "Invalid request"
},
"500": {
"description": "Internal server error"
}
}
}
} }
}, },
"components": { "components": {
"schemas": { "schemas": {
@@ -591,7 +728,7 @@
"type": "string", "type": "string",
"example": "Tr201712RK9232P115" "example": "Tr201712RK9232P115"
}, },
"resultDescription":{ "resultDescription": {
"type": "string", "type": "string",
"example": "Successful" "example": "Successful"
}, },
@@ -612,6 +749,99 @@
"name": "LoanInformationResponse" "name": "LoanInformationResponse"
} }
}, },
"RACCheckRequest": {
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T001"
},
"fbnTransactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"RAC_Array": {
"type": "string",
"example": "XXX"
}
},
"xml": {
"name": "RACCheckRequest"
}
},
"RACCheckResponse": {
"type": "object",
"properties": {
"resultCode": {
"type": "string",
"example": "00"
},
"RACResponse": {
"type": "object",
"properties": {
"Salary account": {
"type": "string",
"example": "1"
},
"BVN": {
"type": "string",
"example": "1"
},
"BVNAttachedtoAccount": {
"type": "string",
"example": "1"
},
"CRMS": {
"type": "string",
"example": "1"
},
"CRC": {
"type": "string",
"example": "1"
},
"AccountStatus": {
"type": "string",
"example": "1"
},
"Lien": {
"type": "string",
"example": "1"
},
"NoBouncedCheck": {
"type": "string",
"example": "1"
},
"Whitelist": {
"type": "string",
"example": "1"
},
"NoPastDueSalaryLoan": {
"type": "string",
"example": "1"
},
"NoPastDueOtherLoan": {
"type": "string",
"example": "1"
}
}
},
"resultDescription": {
"type": "string",
"example": "RAC Check Successful"
}
},
"xml": {
"name": "RACCheckResponse"
}
},
"ApiResponse": { "ApiResponse": {
"type": "object", "type": "object",
"properties": { "properties": {