Code Cleanup

This commit is contained in:
VivianDee
2025-03-19 19:37:53 +01:00
parent e2769472bb
commit 5e848b40d7
58 changed files with 2303 additions and 2144 deletions
+18
View File
@@ -0,0 +1,18 @@
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"type": {
"type": "string"
},
"message": {
"type": "string"
}
},
"xml": {
"name": "##default"
}
}
+25
View File
@@ -0,0 +1,25 @@
{
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"example": "This is a test message for SMS request method."
},
"dest": {
"type": "string",
"example": "+2348039409144"
},
"unicode": {
"type": "boolean",
"example": true
}
},
"required": [
"text",
"dest",
"unicode"
]
}
}
+24
View File
@@ -0,0 +1,24 @@
{
"type": "object",
"properties": {
"data": {
"type": "string",
"example": ""
},
"statusCode": {
"type": "integer",
"example": 200
},
"IsSuccessful": {
"type": "boolean",
"example": true
},
"errorMessage": {
"type": [
"string",
"null"
],
"example": null
}
}
}
+65
View File
@@ -0,0 +1,65 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T002"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"productId": {
"type": "string",
"example": "101"
},
"collectAmount": {
"type": "number",
"format": "double",
"example": 80000.0
},
"penalCharge": {
"type": "number",
"format": "double",
"example": 0.0
},
"collectionMethod": {
"type": "integer",
"example": 1
},
"lienAmount": {
"type": "number",
"format": "double",
"example": 80000.0
},
"countryId": {
"type": "string",
"example": "01"
},
"comment": {
"type": "string",
"example": "Testing CollectionLoanRequest"
}
},
"required": [
"transactionId",
"debtId",
"customerId",
"accountId",
"productId",
"collectAmount",
"penalCharge",
"collectionMethod",
"lienAmount",
"countryId",
"comment"
]
}
+70
View File
@@ -0,0 +1,70 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T002"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"productId": {
"type": "string",
"example": "101"
},
"collectAmount": {
"type": "number",
"format": "double",
"example": 60000.0
},
"penalCharge": {
"type": "number",
"format": "double",
"example": 0.0
},
"lienAmount": {
"type": "number",
"format": "double",
"example": 20000.0
},
"countryId": {
"type": "string",
"example": "01"
},
"comment": {
"type": "string",
"example": "Testing CollectionLoanRequest"
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Loan Collection Successful"
}
},
"required": [
"transactionId",
"debtId",
"customerId",
"accountId",
"productId",
"collectAmount",
"penalCharge",
"lienAmount",
"countryId",
"comment",
"resultCode",
"resultDescription"
]
}
+43
View File
@@ -0,0 +1,43 @@
{
"type": "object",
"properties": {
"$type": {
"type": "string",
"example": "CustomerConsentRequest"
},
"transactionId": {
"type": "string",
"example": "20171209232177"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "ACN8263457"
},
"requestTime": {
"type": "string",
"format": "date-time",
"example": "2019-10-18 14:26:21.063"
},
"consentType": {
"type": "string",
"example": "Revoke"
},
"channel": {
"type": "string",
"example": "USSD"
}
},
"required": [
"$type",
"transactionId",
"customerId",
"accountId",
"requestTime",
"consentType",
"channel"
]
}
+17
View File
@@ -0,0 +1,17 @@
{
"type": "object",
"properties": {
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Request is received"
}
},
"required": [
"resultCode",
"resultDescription"
]
}
+77
View File
@@ -0,0 +1,77 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T001"
},
"TransactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"productId": {
"type": "string",
"example": "101"
},
"provideAmount": {
"type": "number",
"format": "double",
"example": 100000.0
},
"collectAmountInterest": {
"type": "number",
"format": "double",
"example": 5000.0
},
"collectAmountMgtFee": {
"type": "number",
"format": "double",
"example": 1000.0
},
"collectAmountInsurance": {
"type": "number",
"format": "double",
"example": 1000.0
},
"collectAmountVAT": {
"type": "number",
"format": "double",
"example": 75.0
},
"countryId": {
"type": "string",
"example": "01"
},
"comment": {
"type": "string",
"example": "Testing LoanRequest"
}
},
"required": [
"transactionId",
"TransactionId",
"debtId",
"customerId",
"accountId",
"productId",
"provideAmount",
"collectAmountInterest",
"collectAmountMgtFee",
"collectAmountInsurance",
"collectAmountVAT",
"countryId",
"comment"
]
}
+82
View File
@@ -0,0 +1,82 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T001"
},
"TransactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"productId": {
"type": "string",
"example": "101"
},
"provideAmount": {
"type": "number",
"format": "double",
"example": 100000.0
},
"collectAmountInterest": {
"type": "number",
"format": "double",
"example": 5000.0
},
"collectAmountMgtFee": {
"type": "number",
"format": "double",
"example": 1000.0
},
"collectAmountInsurance": {
"type": "number",
"format": "double",
"example": 1000.0
},
"collectAmountVAT": {
"type": "number",
"format": "double",
"example": 75.0
},
"countryId": {
"type": "string",
"example": "01"
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Loan Request Completed Successfully!"
}
},
"required": [
"transactionId",
"TransactionId",
"debtId",
"customerId",
"accountId",
"productId",
"provideAmount",
"collectAmountInterest",
"collectAmountMgtFee",
"collectAmountInsurance",
"collectAmountVAT",
"countryId",
"resultCode",
"resultDescription"
]
}
+37
View File
@@ -0,0 +1,37 @@
{
"type": "object",
"properties": {
"lienAmount": {
"type": "number",
"format": "double",
"example": 500.01
},
"transactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"countryCode": {
"type": "string",
"example": "NGR"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"msisdn": {
"type": "string",
"example": "3451342"
},
"channel": {
"type": "string",
"example": "USSD"
},
"accountId": {
"type": "string",
"example": "ACN8263457"
}
},
"xml": {
"name": "EligibilityCheckRequest"
}
}
+32
View File
@@ -0,0 +1,32 @@
{
"type": "object",
"properties": {
"eligibleOffers": {
"type": "string",
"example": "OFFERS ARRAY HERE"
},
"resultDescription": {
"type": "string",
"example": "Successful"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"msisdn": {
"type": "string",
"example": "3451342"
},
"resultCode": {
"type": "string",
"example": "00"
},
"accountId": {
"type": "string",
"example": "ACN8263457"
}
},
"xml": {
"name": "EligibilityCheckResponse"
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "SMB1234567"
},
"customerId": {
"type": "string",
"example": "123456"
},
"accountId": {
"type": "string",
"example": "E9F77222920BAAB1C5ACF2253C6D6113"
},
"countryId": {
"type": "string",
"example": "01"
}
}
}
+17
View File
@@ -0,0 +1,17 @@
{
"type": "object",
"properties": {
"lienAmount": {
"type": "number",
"example": 20000.0
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Successful"
}
}
}
+28
View File
@@ -0,0 +1,28 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"resultDescription": {
"type": "string",
"example": "Successful"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"msisdn": {
"type": "string",
"example": "3451342"
},
"channel": {
"type": "string",
"example": "USSD"
}
},
"xml": {
"name": "LoanInformationRequest"
}
}
+28
View File
@@ -0,0 +1,28 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"resultDescription": {
"type": "string",
"example": "Successful"
},
"resultCode": {
"type": "string",
"example": "00"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"loan": {
"type": "string",
"example": "Arrray of loans"
}
},
"xml": {
"name": "LoanInformationResponse"
}
}
+29
View File
@@ -0,0 +1,29 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "173021"
},
"debtId": {
"type": "string",
"example": "173021"
},
"transactionType": {
"type": "string",
"example": "Disbursement"
},
"fbnTransactionId": {
"type": "string",
"example": "FBN2411011411413A74960"
},
"origTransactionId": {
"type": "string",
"example": "2411011411413A74960"
},
"customerId": {
"type": "string",
"example": "CN621868"
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"type": "object",
"properties": {
"status": {
"type": "string",
"example": "Success"
},
"message": {
"type": "string",
"example": "Transaction check completed successfully."
}
}
}
+41
View File
@@ -0,0 +1,41 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T004"
},
"fbnTransactionId": {
"type": "string",
"example": "Tr201712RK9232P115"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"penalCharge": {
"type": "number",
"example": 1.2
},
"lienAmount": {
"type": "number",
"example": 101.2
},
"countryId": {
"type": "string",
"example": "01"
},
"comment": {
"type": "string",
"example": "Testing PenalChargeRequest"
}
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"type": "object",
"properties": {
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Penal charge debited successfully"
}
}
}
View File
View File
+28
View File
@@ -0,0 +1,28 @@
{
"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"
}
}
+65
View File
@@ -0,0 +1,65 @@
{
"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"
}
}
+42
View File
@@ -0,0 +1,42 @@
{
"type": "object",
"properties": {
"$type": {
"type": "string",
"example": "RepaymentRequest"
},
"msisdn": {
"type": "string",
"example": "3451342"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"productId": {
"type": "string",
"example": "101"
},
"transactionId": {
"type": "string",
"example": "20171209232115"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"channel": {
"type": "string",
"example": "USSD"
}
},
"required": [
"$type",
"msisdn",
"debtId",
"productId",
"transactionId",
"customerId",
"channel"
]
}
+32
View File
@@ -0,0 +1,32 @@
{
"type": "object",
"properties": {
"customerId": {
"type": "string",
"example": "CN621868"
},
"productId": {
"type": "string",
"example": "101"
},
"debtId": {
"type": "string",
"example": "273194670"
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Successful"
}
},
"required": [
"customerId",
"productId",
"debtId",
"resultCode",
"resultDescription"
]
}
+38
View File
@@ -0,0 +1,38 @@
{
"type": "object",
"properties": {
"transactionId": {
"type": "string",
"example": "T0014"
},
"fbnTransactionId": {
"type": "string",
"example": "20171209232177"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"processTime": {
"type": "string",
"format": "date-time",
"example": "2019-10-18 14:26:21.063"
},
"consentType": {
"type": "string",
"example": "Revoke"
},
"countryId": {
"type": "string",
"example": "01"
},
"comment": {
"type": "string",
"example": "Testing RevokeEnableConsentRequest"
}
}
}
+25
View File
@@ -0,0 +1,25 @@
{
"type": "object",
"properties": {
"$type": {
"type": "string",
"example": "RevokeEnableConsentResponse"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Success"
}
}
}
+22
View File
@@ -0,0 +1,22 @@
{
"type": "object",
"properties": {
"text": {
"type": "string",
"example": "This is a test message for SMS request method."
},
"dest": {
"type": "string",
"example": "+2348039409144"
},
"unicode": {
"type": "boolean",
"example": false
}
},
"required": [
"text",
"dest",
"unicode"
]
}
+24
View File
@@ -0,0 +1,24 @@
{
"type": "object",
"properties": {
"data": {
"type": "string",
"example": ""
},
"statusCode": {
"type": "integer",
"example": 200
},
"IsSuccessful": {
"type": "boolean",
"example": true
},
"errorMessage": {
"type": [
"string",
"null"
],
"example": null
}
}
}
+41
View File
@@ -0,0 +1,41 @@
{
"type": "object",
"properties": {
"requestId": {
"type": "string",
"example": "202111170001371256908"
},
"transactionId": {
"type": "string",
"example": "1231231321232"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"msisdn": {
"type": "string",
"example": "123456789"
},
"requestedAmount": {
"type": "number",
"format": "double",
"example": 10000.55
},
"accountId": {
"type": "string",
"example": "ACN8263457"
},
"productid": {
"type": "string",
"example": "101"
},
"channel": {
"type": "string",
"example": "USSD"
}
},
"xml": {
"name": "SelectOffersRequest"
}
}
+36
View File
@@ -0,0 +1,36 @@
{
"type": "object",
"properties": {
"requestId": {
"type": "string",
"example": "202111170001371256908"
},
"transactionId": {
"type": "string",
"example": "1231231321232"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "ACN8263457"
},
"offers": {
"type": "string",
"example": "ARRAY of Offers"
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Successful"
}
},
"xml": {
"name": "SelectOffersResponse"
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"type": "object",
"properties": {
"UserId": {
"type": "string",
"example": "TMP0840"
},
"TokenCode": {
"type": "string",
"example": "32365214"
},
"RequestId": {
"type": "string",
"example": "SMB1234567"
},
"CountryId": {
"type": "string",
"example": "01"
}
}
}
+25
View File
@@ -0,0 +1,25 @@
{
"type": "object",
"properties": {
"Authenticated": {
"type": "boolean",
"example": true
},
"AuthenticatedMessage": {
"type": "string",
"example": "The user Oluwole Olusoga has successfully authenticated!"
},
"ResponseCode": {
"type": "string",
"example": "00"
},
"ResponseMessage": {
"type": "string",
"example": "Successful"
},
"RequestId": {
"type": "string",
"example": "SMB1234567"
}
}
}
+33
View File
@@ -0,0 +1,33 @@
{
"type": "object",
"properties": {
"counter": {
"type": "string",
"example": "2"
},
"TransactionId": {
"type": "string",
"example": "T002"
},
"RequestId": {
"type": "string",
"example": "R02802"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"countryId": {
"type": "string",
"example": "01"
},
"transactionType": {
"type": "string",
"example": "Disbursement"
}
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"type": "object",
"properties": {
"$type": {
"type": "string",
"example": "TransactionCheckResponse"
},
"nativeId": {
"type": "string",
"example": "FBN20191031104405CN621868"
},
"customerId": {
"type": "string",
"example": "CN621868"
},
"accountId": {
"type": "string",
"example": "2017821799"
},
"providedAmount": {
"type": "number",
"example": 0.0
},
"collectedAmount": {
"type": "number",
"example": 7.50
},
"resultCode": {
"type": "string",
"example": "00"
},
"resultDescription": {
"type": "string",
"example": "Collect Status retrieved successfully."
}
}
}
+101
View File
@@ -0,0 +1,101 @@
{
"EligibilityCheckRequest": {
"$ref": "./EligibilityCheckRequest.json"
},
"EligibilityCheckResponse": {
"$ref": "./EligibilityCheckResponse.json"
},
"SelectOfferRequest": {
"$ref": "./SelectOfferRequest.json"
},
"SelectOfferResponse": {
"$ref": "./SelectOfferResponse.json"
},
"LoanInformationRequest": {
"$ref": "./LoanInformationRequest.json"
},
"LoanInformationResponse": {
"$ref": "./LoanInformationResponse.json"
},
"RepaymentRequest": {
"$ref": "./RepaymentRequest.json"
},
"RepaymentResponse": {
"$ref": "./RepaymentResponse.json"
},
"RACCheckRequest": {
"$ref": "./RACCheckRequest.json"
},
"RACCheckResponse": {
"$ref": "./RACCheckResponse.json"
},
"CustomerConsentRequest": {
"$ref": "./CustomerConsentRequest.json"
},
"CustomerConsentResponse": {
"$ref": "./CustomerConsentResponse.json"
},
"DisbursementRequest": {
"$ref": "./DisbursementRequest.json"
},
"DisbursementResponse": {
"$ref": "./DisbursementResponse.json"
},
"CollectLoanRequest": {
"$ref": "./CollectLoanRequest.json"
},
"CollectLoanResponse": {
"$ref": "./CollectLoanResponse.json"
},
"TransactionVerifyRequest": {
"$ref": "./TransactionVerifyRequest.json"
},
"TransactionVerifyResponse": {
"$ref": "./TransactionVerifyResponse.json"
},
"PenalChargeRequest": {
"$ref": "./PenalChargeRequest.json"
},
"PenalChargeResponse": {
"$ref": "./PenalChargeResponse.json"
},
"RevokeEnableConsentRequest": {
"$ref": "./RevokeEnableConsentRequest.json"
},
"RevokeEnableConsentResponse": {
"$ref": "./RevokeEnableConsentResponse.json"
},
"TokenValidationRequest": {
"$ref": "./TokenValidationRequest.json"
},
"TokenValidationResponse": {
"$ref": "./TokenValidationResponse.json"
},
"NewTransactionCheckRequest": {
"$ref": "./NewTransactionCheckRequest.json"
},
"NewTransactionCheckResponse": {
"$ref": "./NewTransactionCheckResponse.json"
},
"LienCheckRequest": {
"$ref": "./LienCheckRequest.json"
},
"LienCheckResponse": {
"$ref": "./LienCheckResponse.json"
},
"SMSRequest": {
"$ref": "./SMSRequest.json"
},
"SMSResponse": {
"$ref": "./SMSResponse.json"
},
"BulkSMSRequest": {
"$ref": "./BulkSMSRequest.json"
},
"BulkSMSResponse": {
"$ref": "./BulkSMSResponse.json"
},
"ApiResponse": {
"$ref": "./ApiResponse.json"
}
}