From 8dc156c68359af2580d1b0c07365cf9ffc73fc58 Mon Sep 17 00:00:00 2001 From: VivianDee <115420678+VivianDee@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:02:03 +0100 Subject: [PATCH] [add]: RACCheck --- digifi_swagger.json | 242 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 236 insertions(+), 6 deletions(-) diff --git a/digifi_swagger.json b/digifi_swagger.json index ec609eb..0dafa27 100644 --- a/digifi_swagger.json +++ b/digifi_swagger.json @@ -74,12 +74,99 @@ "description": "Find out more", "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": { "/EligibilityCheck": { "post": { - "tags": [ "EligibilityCheck" ], @@ -145,7 +232,6 @@ }, "/SelectOffer": { "post": { - "tags": [ "SelectOffer" ], @@ -211,7 +297,6 @@ }, "/ProvideLoan": { "post": { - "tags": [ "ProvideLoan" ], @@ -277,7 +362,6 @@ }, "/LoanInformation": { "get": { - "tags": [ "LoanInformation" ], @@ -343,7 +427,6 @@ }, "/NotificationCallback": { "post": { - "tags": [ "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": { "schemas": { @@ -591,7 +728,7 @@ "type": "string", "example": "Tr201712RK9232P115" }, - "resultDescription":{ + "resultDescription": { "type": "string", "example": "Successful" }, @@ -612,6 +749,99 @@ "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": { "type": "object", "properties": {