diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/swagger/digifi_swagger.json b/app/swagger/digifi_swagger.json index c5862c6..4f4cbc4 100644 --- a/app/swagger/digifi_swagger.json +++ b/app/swagger/digifi_swagger.json @@ -15,10 +15,50 @@ }, "servers": [ { - "url": "http://localhost:6337" + "url": "https://devcore.digifi.chiefsoft.net/v1/api/salary" } ], "tags": [ + { + "name": "EligibilityCheck", + "description": "Eligibility Check Request", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } + }, + { + "name": "SelectOffer", + "description": "This method is used the send the offer the customer selected to Simbrella.", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } + }, + { + "name": "ProvideLoan", + "description": "Provide Loan Request.", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } + }, + { + "name": "LoanStatus", + "description": "Loan Status Request.", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } + }, + { + "name": "Repayment", + "description": "Repayment Request.", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } + }, { "name": "RACCheck", "description": "Risk Acceptance Criteria Request", @@ -59,22 +99,6 @@ "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", @@ -84,8 +108,24 @@ } }, { - "name": "NewTransactionCheck", - "description": "New Transaction Check", + "name": "StatusCall", + "description": "Status Call", + "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" @@ -93,119 +133,156 @@ } ], "paths": { + "/EligibilityCheck": { + "$ref": "./paths/EligibilityCheck.json" + }, + "/SelectOffer": { + "$ref": "./paths/SelectOffer.json" + }, + "/ProvideLoan": { + "$ref": "./paths/ProvideLoan.json" + }, + "/LoanStatus": { + "$ref": "./paths/LoanStatus.json" + }, + "/Repayment": { + "$ref": "./paths/Repayment.json" + }, "/RACCheck": { - "$ref": "swagger/paths/RACCheck.json" + "$ref": "./paths/RACCheck.json" }, "/Disbursement": { - "$ref": "swagger/paths/Disbursement.json" + "$ref": "./paths/Disbursement.json" }, "/CollectLoan": { - "$ref": "swagger/paths/CollectLoan.json" + "$ref": "./paths/CollectLoan.json" }, "/TransactionVerify": { - "$ref": "swagger/paths/TransactionVerify.json" + "$ref": "./paths/TransactionVerify.json" }, "/PenalCharge": { - "$ref": "swagger/paths/PenalCharge.json" - }, - "/RevokeEnableConsent": { - "$ref": "swagger/paths/RevokeEnableConsent.json" - }, - "/TokenValidation": { - "$ref": "swagger/paths/TokenValidation.json" + "$ref": "./paths/PenalCharge.json" }, "/LienCheck": { - "$ref": "swagger/paths/LienCheck.json" + "$ref": "./paths/LienCheck.json" }, - "/NewTransactionCheck": { - "$ref": "swagger/paths/NewTransactionCheck.json" + "/StatusCall": { + "$ref": "./paths/StatusCall.json" + }, + "/SMS": { + "$ref": "./paths/SMS.json" + }, + "/BulkSMS": { + "$ref": "./paths/BulkSMS.json" } }, "components": { "schemas": { + "EligibilityCheckRequest": { + "$ref": "./schemas/EligibilityCheckRequest.json" + }, + "EligibilityCheckResponse": { + "$ref": "./schemas/EligibilityCheckResponse.json" + }, + "SelectOfferRequest": { + "$ref": "./schemas/SelectOfferRequest.json" + }, + "SelectOfferResponse": { + "$ref": "./schemas/SelectOfferResponse.json" + }, + "LoanStatusRequest": { + "$ref": "./schemas/LoanStatusRequest.json" + }, + "LoanStatusResponse": { + "$ref": "./schemas/LoanStatusResponse.json" + }, + "RepaymentRequest": { + "$ref": "./schemas/RepaymentRequest.json" + }, + "RepaymentResponse": { + "$ref": "./schemas/RepaymentResponse.json" + }, "RACCheckRequest": { - "$ref": "swagger/schemas/RACCheckRequest.json" + "$ref": "./schemas/RACCheckRequest.json" }, "RACCheckResponse": { - "$ref": "swagger/schemas/RACCheckResponse.json" - }, - "CustomerConsentRequest": { - "$ref": "swagger/schemas/CustomerConsentRequest.json" - }, - "CustomerConsentResponse": { - "$ref": "swagger/schemas/CustomerConsentResponse.json" + "$ref": "./schemas/RACCheckResponse.json" }, "DisbursementRequest": { - "$ref": "swagger/schemas/DisbursementRequest.json" + "$ref": "./schemas/DisbursementRequest.json" }, "DisbursementResponse": { - "$ref": "swagger/schemas/DisbursementResponse.json" + "$ref": "./schemas/DisbursementResponse.json" }, "CollectLoanRequest": { - "$ref": "swagger/schemas/CollectLoanRequest.json" + "$ref": "./schemas/CollectLoanRequest.json" }, "CollectLoanResponse": { - "$ref": "swagger/schemas/CollectLoanResponse.json" + "$ref": "./schemas/CollectLoanResponse.json" }, "TransactionVerifyRequest": { - "$ref": "swagger/schemas/TransactionVerifyRequest.json" + "$ref": "./schemas/TransactionVerifyRequest.json" }, "TransactionVerifyResponse": { - "$ref": "swagger/schemas/TransactionVerifyResponse.json" + "$ref": "./schemas/TransactionVerifyResponse.json" }, "PenalChargeRequest": { - "$ref": "swagger/schemas/PenalChargeRequest.json" + "$ref": "./schemas/PenalChargeRequest.json" }, "PenalChargeResponse": { - "$ref": "swagger/schemas/PenalChargeResponse.json" + "$ref": "./schemas/PenalChargeResponse.json" }, - "RevokeEnableConsentRequest": { - "$ref": "swagger/schemas/RevokeEnableConsentRequest.json" + "StatusCallRequest": { + "$ref": "./schemas/StatusCallRequest.json" }, - "RevokeEnableConsentResponse": { - "$ref": "swagger/schemas/RevokeEnableConsentResponse.json" - }, - "TokenValidationRequest": { - "$ref": "swagger/schemas/TokenValidationRequest.json" - }, - "TokenValidationResponse": { - "$ref": "swagger/schemas/TokenValidationResponse.json" - }, - "NewTransactionCheckRequest": { - "$ref": "swagger/schemas/NewTransactionCheckRequest.json" - }, - "NewTransactionCheckResponse": { - "$ref": "swagger/schemas/NewTransactionCheckResponse.json" + "StatusCallResponse": { + "$ref": "./schemas/StatusCallResponse.json" }, "LienCheckRequest": { - "$ref": "swagger/schemas/LienCheckRequest.json" + "$ref": "./schemas/LienCheckRequest.json" }, "LienCheckResponse": { - "$ref": "swagger/schemas/LienCheckResponse.json" + "$ref": "./schemas/LienCheckResponse.json" + }, + "SMSRequest": { + "$ref": "./schemas/SMSRequest.json" + }, + "SMSResponse": { + "$ref": "./schemas/SMSResponse.json" + }, + "BulkSMSRequest": { + "$ref": "./schemas/BulkSMSRequest.json" + }, + "BulkSMSResponse": { + "$ref": "./schemas/BulkSMSResponse.json" }, "ApiResponse": { - "$ref": "swagger/schemas/ApiResponse.json" + "$ref": "./schemas/ApiResponse.json" } }, "securitySchemes": { + "petstore_auth": { + "type": "oauth2", + "flows": { + "implicit": { + "authorizationUrl": "https://petstore3.swagger.io/oauth/authorize", + "scopes": { + "write:pets": "modify pets in your account", + "read:pets": "read your pets" + } + } + } + }, "api_key": { "type": "apiKey", - "name": "x-api-key", + "name": "api_key", "in": "header" }, - "app_id": { - "type": "apiKey", - "name": "App-Id", - "in": "header" + "basic_auth": { + "type": "http", + "scheme": "basic", + "description": "Basic authentication with username and password" } } - }, - "security": [ - { - "api_key": [] - }, - { - "app_id": [] - } - ] + } } \ No newline at end of file diff --git a/app/swagger/paths/BulkSMS.json b/app/swagger/paths/BulkSMS.json new file mode 100644 index 0000000..e6bf52e --- /dev/null +++ b/app/swagger/paths/BulkSMS.json @@ -0,0 +1,58 @@ +{ + "post": { + "tags": [ + "BulkSMS" + ], + "summary": "Send Bulk SMS", + "description": "This request is used to send Bulk SMS messages to multiple customers. The max length of the array should equal 20. The API is hosted in FIRSTBANK and it is the HTTP wrapper for the real SMS sending interface.", + "operationId": "bulkSmsNotification", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/BulkSMSRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/BulkSMSRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/BulkSMSRequest.json" + } + } + } + }, + "responses": { + "200": { + "description": "Bulk SMS sent successfully", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/BulkSMSResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/BulkSMSResponse.json" + } + } + } + }, + "400": { + "description": "Unsuccessful Response with Client Error" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "api_key": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/CollectLoan.json b/app/swagger/paths/CollectLoan.json index 0ca0636..3fec2e2 100644 --- a/app/swagger/paths/CollectLoan.json +++ b/app/swagger/paths/CollectLoan.json @@ -4,8 +4,8 @@ "CollectLoan" ], "summary": "Collect Loan Request", - "description": "Collect Loan Request", - "operationId": "CollectLoan", + "description": "This request is to collect money from user accounts. When request is received, FIRSTBANK should check all user accounts and collect as much as possible money to cover existing loan either partially or fully. In response, FIRSTBANK should return total amount that is actually collected from user accounts. First FBN collects body amount, then penal charge. If requested amount is not collected or collected partially FBN places a lien on user account. FBN places lien for body amount and penal charge separately.", + "operationId": "collectLoan", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "CollectLoan Successful", + "description": "Loan Collection Successful", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/CustomerConsent.json b/app/swagger/paths/CustomerConsent.json index f246704..fc59673 100644 --- a/app/swagger/paths/CustomerConsent.json +++ b/app/swagger/paths/CustomerConsent.json @@ -4,8 +4,8 @@ "CustomerConsent" ], "summary": "Customer Consent Request", - "description": "Customer Consent Request", - "operationId": "CustomerConsent", + "description": "This endpoint allows FirstBank to send customer consent requests to Simbrella", + "operationId": "customerConsent", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "Successful", + "description": "Successful operation", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "basic_auth": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/Disbursement.json b/app/swagger/paths/Disbursement.json index e84f28d..72a1284 100644 --- a/app/swagger/paths/Disbursement.json +++ b/app/swagger/paths/Disbursement.json @@ -3,9 +3,9 @@ "tags": [ "Disbursement" ], - "summary": "Disbursement Request", - "description": "Disbursement Request", - "operationId": "Disbursement", + "summary": "Loan Disbursement Request", + "description": "This request should be executed as a simultaneous operation where loan provision and collection are executed together in same API call. If one of the operations is failed, the whole transaction should be rolled back.", + "operationId": "disbursement", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "Disbursement Successful", + "description": "Disbursement request accepted", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/EligibilityCheck.json b/app/swagger/paths/EligibilityCheck.json new file mode 100644 index 0000000..710ed0f --- /dev/null +++ b/app/swagger/paths/EligibilityCheck.json @@ -0,0 +1,62 @@ +{ + "post": { + "tags": [ + "EligibilityCheck" + ], + "summary": "Check customer eligibility for loan products", + "description": "This endpoint is used by FirstBank to check if a customer is eligible for loan products and returns available offers", + "operationId": "eligibilityCheck", + "requestBody": { + "description": "Customer information for eligibility check", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/EligibilityCheckRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/EligibilityCheckRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/EligibilityCheckRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/EligibilityCheckResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/EligibilityCheckResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request parameters" + }, + "401": { + "description": "Authentication failed" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/LienCheck.json b/app/swagger/paths/LienCheck.json index 4cff841..d5b50f0 100644 --- a/app/swagger/paths/LienCheck.json +++ b/app/swagger/paths/LienCheck.json @@ -4,8 +4,8 @@ "LienCheck" ], "summary": "Lien Check Request", - "description": "Lien Check Request", - "operationId": "LienCheck", + "description": "This method is to check the amount of the lien on a specific account", + "operationId": "lienCheck", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "LienCheck Successful", + "description": "Lien check successful", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/LoanStatus.json b/app/swagger/paths/LoanStatus.json new file mode 100644 index 0000000..1081840 --- /dev/null +++ b/app/swagger/paths/LoanStatus.json @@ -0,0 +1,65 @@ +{ + "post": { + "tags": [ + "LoanStatus" + ], + "summary": "Get information about customer's existing loans", + "description": "Loan Information Request to retrieve details about customer's existing loans", + "operationId": "loanInformation", + "requestBody": { + "description": "Customer information for loan details", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/LoanStatusRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/LoanStatusRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/LoanStatusRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/LoanStatusResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/LoanStatusResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request parameters" + }, + "401": { + "description": "Authentication failed" + }, + "404": { + "description": "No loans found" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/NotificationCallback.json b/app/swagger/paths/NotificationCallback.json new file mode 100644 index 0000000..504c387 --- /dev/null +++ b/app/swagger/paths/NotificationCallback.json @@ -0,0 +1,59 @@ +{ + "post": { + "tags": [ + "NotificationCallback" + ], + "summary": "Notification Callback", + "description": "This new feature will be used for informing Simbrella about status of the transactions that FBN have processed. Retry mechanism should be implemented by FirstBank in case of connection issues, sending notification should be repeated for 5 minutes in case of there is connection issues, after which Simbrella will try to check the status of transaction with New Transaction Check endpoint.", + "operationId": "notificationCallback", + "requestBody": { + "description": "Transaction status notification from FirstBank to Simbrella", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/NotificationCallbackRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/NotificationCallbackRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/NotificationCallbackRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Notification received successfully", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/NotificationCallbackResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/NotificationCallbackResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/PenalCharge.json b/app/swagger/paths/PenalCharge.json index 7ea784a..202c8ce 100644 --- a/app/swagger/paths/PenalCharge.json +++ b/app/swagger/paths/PenalCharge.json @@ -4,8 +4,8 @@ "PenalCharge" ], "summary": "Penal Charge Request", - "description": "Penal Charge Request", - "operationId": "PenalCharge", + "description": "This request is used to charge customers for penalty as per existing debt", + "operationId": "penalCharge", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "PenalCharge Successful", + "description": "Penal Charge Request Accepted", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/ProvideLoan.json b/app/swagger/paths/ProvideLoan.json new file mode 100644 index 0000000..c6cc9ea --- /dev/null +++ b/app/swagger/paths/ProvideLoan.json @@ -0,0 +1,59 @@ +{ + "post": { + "tags": [ + "ProvideLoan" + ], + "summary": "Provide Loan Request", + "description": "This endpoint is used by FirstBank to request a loan provision for a customer. It allows FirstBank to specify the loan details including the amount, collection type, and loan type.", + "operationId": "provideLoan", + "requestBody": { + "description": "Loan provision request details", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/ProvideLoanRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/ProvideLoanRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/ProvideLoanRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Loan provision request processed successfully", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/ProvideLoanResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/ProvideLoanResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/RACCheck.json b/app/swagger/paths/RACCheck.json index 2a85879..338f0ea 100644 --- a/app/swagger/paths/RACCheck.json +++ b/app/swagger/paths/RACCheck.json @@ -4,7 +4,7 @@ "RACCheck" ], "summary": "Risk Acceptance Criteria Check", - "description": "Check if a customer passes the Risk Acceptance Criteria defined by the bank", + "description": "This request is used to check if a customer passes the Risk Acceptance Criteria defined by the bank", "operationId": "racCheck", "requestBody": { "required": true, @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/Repayment.json b/app/swagger/paths/Repayment.json new file mode 100644 index 0000000..0961382 --- /dev/null +++ b/app/swagger/paths/Repayment.json @@ -0,0 +1,65 @@ +{ + "post": { + "tags": [ + "Repayment" + ], + "summary": "Process a loan repayment request", + "description": "Repayment Request to initiate loan repayment", + "operationId": "repayment", + "requestBody": { + "description": "Repayment request details", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/RepaymentRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/RepaymentRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/RepaymentRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Repayment Successful", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/RepaymentResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/RepaymentResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request parameters" + }, + "401": { + "description": "Authentication failed" + }, + "404": { + "description": "Debt not found" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/RevokeEnableConsent.json b/app/swagger/paths/RevokeEnableConsent.json index edb494e..8e914df 100644 --- a/app/swagger/paths/RevokeEnableConsent.json +++ b/app/swagger/paths/RevokeEnableConsent.json @@ -3,9 +3,9 @@ "tags": [ "RevokeEnableConsent" ], - "summary": "Revoke Enable Consent Request", - "description": "Revoke Enable Consent Request", - "operationId": "RevokeEnableConsent", + "summary": "Revoke or Enable Consent Request", + "description": "This endpoint is used to notify FirstBank about the processing of a customer consent request. It allows Simbrella to inform FirstBank when a customer's consent has been either enabled or revoked.", + "operationId": "revokeEnableConsent", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "RevokeEnableConsent Successful", + "description": "Consent status update successful", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/SMS.json b/app/swagger/paths/SMS.json new file mode 100644 index 0000000..db054e5 --- /dev/null +++ b/app/swagger/paths/SMS.json @@ -0,0 +1,58 @@ +{ + "post": { + "tags": [ + "SMS" + ], + "summary": "Send Single SMS", + "description": "This request is used to send a single SMS message to a customer. The API is hosted in FIRSTBANK and it is the HTTP wrapper for the real SMS sending interface.", + "operationId": "smsNotification", + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/SMSRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/SMSRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/SMSRequest.json" + } + } + } + }, + "responses": { + "200": { + "description": "SMS sent successfully", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/SMSResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/SMSResponse.json" + } + } + } + }, + "400": { + "description": "Unsuccessful Response with Client Error" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "api_key": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/SelectOffer.json b/app/swagger/paths/SelectOffer.json new file mode 100644 index 0000000..8ebf3b6 --- /dev/null +++ b/app/swagger/paths/SelectOffer.json @@ -0,0 +1,62 @@ +{ + "post": { + "tags": [ + "SelectOffer" + ], + "summary": "Send the offer the customer selected to Simbrella", + "description": "This method is used to send the offer the customer selected to Simbrella", + "operationId": "selectOffer", + "requestBody": { + "description": "Customer selected offer details", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/SelectOfferRequest.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/SelectOfferRequest.json" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "../schemas/SelectOfferRequest.json" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "Successful operation", + "content": { + "application/json": { + "schema": { + "$ref": "../schemas/SelectOfferResponse.json" + } + }, + "application/xml": { + "schema": { + "$ref": "../schemas/SelectOfferResponse.json" + } + } + } + }, + "400": { + "description": "Invalid request parameters" + }, + "401": { + "description": "Authentication failed" + }, + "500": { + "description": "Internal server error" + } + }, + "security": [ + { + "basic_auth": [] + } + ] + } +} \ No newline at end of file diff --git a/app/swagger/paths/NewTransactionCheck.json b/app/swagger/paths/StatusCall.json similarity index 54% rename from app/swagger/paths/NewTransactionCheck.json rename to app/swagger/paths/StatusCall.json index 9e79b00..7fb1289 100644 --- a/app/swagger/paths/NewTransactionCheck.json +++ b/app/swagger/paths/StatusCall.json @@ -1,43 +1,43 @@ { "post": { "tags": [ - "NewTransactionCheck" + "StatusCall" ], - "summary": "New Transaction Check Request", - "description": "New Transaction Check Request", - "operationId": "NewTransactionCheck", + "summary": "Status Call Request", + "description": "This will be used to check the status of a transaction by Simbrella to Firstabank if there is no initial response after 2mins.", + "operationId": "statusCall", "requestBody": { "required": true, "content": { "application/json": { "schema": { - "$ref": "../schemas/NewTransactionCheckRequest.json" + "$ref": "../schemas/StatusCallRequest.json" } }, "application/xml": { "schema": { - "$ref": "../schemas/NewTransactionCheckRequest.json" + "$ref": "../schemas/StatusCallRequest.json" } }, "application/x-www-form-urlencoded": { "schema": { - "$ref": "../schemas/NewTransactionCheckRequest.json" + "$ref": "../schemas/StatusCallRequest.json" } } } }, "responses": { "200": { - "description": "NewTransactionCheck Successful", + "description": "Transaction check successful", "content": { "application/json": { "schema": { - "$ref": "../schemas/NewTransactionCheckResponse.json" + "$ref": "../schemas/StatusCallResponse.json" } }, "application/xml": { "schema": { - "$ref": "../schemas/NewTransactionCheckResponse.json" + "$ref": "../schemas/StatusCallResponse.json" } } } @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/TokenValidation.json b/app/swagger/paths/TokenValidation.json index 7f41d23..7eeaa9c 100644 --- a/app/swagger/paths/TokenValidation.json +++ b/app/swagger/paths/TokenValidation.json @@ -4,8 +4,8 @@ "TokenValidation" ], "summary": "Token Validation Request", - "description": "Token Validation Request", - "operationId": "TokenValidation", + "description": "This method is used while users from FBN access Customer Care Portal. User will enter soft/hard token code. This will be captured and sent to this endpoint for validation.", + "operationId": "validateToken", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "TokenValidation Successful", + "description": "Token validation successful", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/paths/TransactionVerify.json b/app/swagger/paths/TransactionVerify.json index cad3f8e..940364c 100644 --- a/app/swagger/paths/TransactionVerify.json +++ b/app/swagger/paths/TransactionVerify.json @@ -3,9 +3,9 @@ "tags": [ "TransactionVerify" ], - "summary": "Transaction Verify Request", - "description": "Transaction Verify Request", - "operationId": "TransactionVerify", + "summary": "Transaction Verification Request", + "description": "This request is to double check the response received from DisburseLoan and CollectLoan Synchronous APIs. This request is required to check transaction results on FIRSTBANK.", + "operationId": "transactionVerify", "requestBody": { "required": true, "content": { @@ -28,7 +28,7 @@ }, "responses": { "200": { - "description": "TransactionVerify Successful", + "description": "Transaction Verification Successful", "content": { "application/json": { "schema": { @@ -45,12 +45,14 @@ "400": { "description": "Invalid request" }, - "422": { - "description": "Validation exception" - }, "500": { "description": "Internal server error" } - } + }, + "security": [ + { + "api_key": [] + } + ] } - } \ No newline at end of file +} \ No newline at end of file diff --git a/app/swagger/schemas/BulkSMSRequest.json b/app/swagger/schemas/BulkSMSRequest.json new file mode 100644 index 0000000..5ff0a63 --- /dev/null +++ b/app/swagger/schemas/BulkSMSRequest.json @@ -0,0 +1,32 @@ +{ + "type": "array", + "maxItems": 20, + "items": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Message to send to customer", + "example": "This is a test message for SMS request method." + }, + "dest": { + "type": "string", + "description": "Phone Number in international format", + "example": "+2348039409144" + }, + "unicode": { + "type": "boolean", + "description": "Character encoding standard (set as True for bulk SMS)", + "example": true + } + }, + "required": [ + "text", + "dest", + "unicode" + ] + }, + "xml": { + "name": "BulkSMSRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/BulkSMSResponse.json b/app/swagger/schemas/BulkSMSResponse.json new file mode 100644 index 0000000..e518a89 --- /dev/null +++ b/app/swagger/schemas/BulkSMSResponse.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "properties": { + "data": { + "type": "string", + "description": "Any additional data in response", + "example": "" + }, + "statusCode": { + "type": "integer", + "description": "Result code of executed process (200 = Success)", + "example": 200 + }, + "IsSuccessful": { + "type": "boolean", + "description": "An Indicator that the process was successful or not", + "example": true + }, + "errorMessage": { + "type": "string", + "description": "Description of status code if process is failed, null if successful", + "example": null + } + }, + "required": [ + "data", + "statusCode", + "IsSuccessful", + "errorMessage" + ], + "xml": { + "name": "BulkSMSResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/CollectLoanRequest.json b/app/swagger/schemas/CollectLoanRequest.json index 14b67bf..baa1615 100644 --- a/app/swagger/schemas/CollectLoanRequest.json +++ b/app/swagger/schemas/CollectLoanRequest.json @@ -3,53 +3,66 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique identifier of transaction in Simbrella system", "example": "T002" }, "fbnTransactionId": { - "type": "string", - "example": "FBN20231123" - }, + "type": "string", + "description": "Unique id of the transaction received from FBN in Eligibility or Provision requests", + "example": "Tr201712RK9232P115" + }, "debtId": { "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", "example": "273194670" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "productId": { "type": "string", + "description": "Identifier of a product for which collection to be made", "example": "101" }, "collectAmount": { "type": "number", "format": "double", + "description": "Amount to be collected from user's account (penalCharge is not included)", "example": 80000.0 }, "penalCharge": { "type": "number", "format": "double", + "description": "Amount of penalty to be collected from user's account. If there is no penalty, amount is '0'", "example": 0.0 }, "collectionMethod": { "type": "integer", + "description": "1 - on deposit of salary; 2 - on due date; 3 - initiated by user", + "enum": [1, 2, 3], "example": 1 }, "lienAmount": { "type": "number", "format": "double", + "description": "Aggregated (summed up) lien amount", "example": 80000.0 }, "countryId": { "type": "string", + "description": "Set to static value '01'", "example": "01" }, "comment": { "type": "string", + "description": "Any additional comment for provided loan operation", "example": "Testing CollectionLoanRequest" } }, @@ -61,10 +74,11 @@ "accountId", "productId", "collectAmount", - "penalCharge", "collectionMethod", "lienAmount", - "countryId", - "comment" - ] + "countryId" + ], + "xml": { + "name": "CollectLoanRequest" + } } \ No newline at end of file diff --git a/app/swagger/schemas/CollectLoanResponse.json b/app/swagger/schemas/CollectLoanResponse.json index 523a49f..aefa298 100644 --- a/app/swagger/schemas/CollectLoanResponse.json +++ b/app/swagger/schemas/CollectLoanResponse.json @@ -3,53 +3,65 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique identifier of transaction in Simbrella system", "example": "T002" }, "debtId": { "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", "example": "273194670" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "productId": { "type": "string", + "description": "Identifier of a product for which collection to be made", "example": "101" }, "collectAmount": { "type": "number", "format": "double", + "description": "Amount collected from user's account (penalCharge is not included)", "example": 60000.0 }, "penalCharge": { "type": "number", "format": "double", + "description": "Amount of penalty collected from user's account. If there is no penalty, amount is '0'", "example": 0.0 }, "lienAmount": { "type": "number", "format": "double", + "description": "Aggregated (summed up) lien amount", "example": 20000.0 }, "countryId": { "type": "string", + "description": "Set to static value '01'", "example": "01" }, "comment": { "type": "string", + "description": "Any additional comment for provided loan operation", "example": "Testing CollectionLoanRequest" }, "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Loan Collection Successful" } }, @@ -62,9 +74,10 @@ "collectAmount", "penalCharge", "lienAmount", - "countryId", - "comment", "resultCode", "resultDescription" - ] + ], + "xml": { + "name": "CollectLoanResponse" + } } \ No newline at end of file diff --git a/app/swagger/schemas/CustomerConsentRequest.json b/app/swagger/schemas/CustomerConsentRequest.json index c3566b1..e8e831f 100644 --- a/app/swagger/schemas/CustomerConsentRequest.json +++ b/app/swagger/schemas/CustomerConsentRequest.json @@ -1,34 +1,37 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "example": "CustomerConsentRequest" - }, "transactionId": { "type": "string", + "description": "Unique identifier of transaction in FIRSTBANK system", "example": "20171209232177" }, "customerId": { "type": "string", + "description": "Unique identifier of a customer", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "ACN8263457" }, "requestTime": { "type": "string", "format": "date-time", + "description": "Date and time of consent request", "example": "2019-10-18 14:26:21.063" }, "consentType": { "type": "string", + "description": "Type of consent: 'Enable' or 'Revoke'", + "enum": ["Enable", "Revoke"], "example": "Revoke" }, "channel": { "type": "string", - "example": "USSD" + "description": "Request channel: 'USSD' or 'APP'", + "example": "100" } }, "required": [ @@ -39,5 +42,8 @@ "requestTime", "consentType", "channel" - ] + ], + "xml": { + "name": "CustomerConsentRequest" + } } \ No newline at end of file diff --git a/app/swagger/schemas/CustomerConsentResponse.json b/app/swagger/schemas/CustomerConsentResponse.json index 4f52996..71fb928 100644 --- a/app/swagger/schemas/CustomerConsentResponse.json +++ b/app/swagger/schemas/CustomerConsentResponse.json @@ -3,15 +3,20 @@ "properties": { "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Request is received" } }, "required": [ "resultCode", "resultDescription" - ] + ], + "xml": { + "name": "CustomerConsentResponse" + } } \ No newline at end of file diff --git a/app/swagger/schemas/DisbursementRequest.json b/app/swagger/schemas/DisbursementRequest.json index 0c7000b..4d2886a 100644 --- a/app/swagger/schemas/DisbursementRequest.json +++ b/app/swagger/schemas/DisbursementRequest.json @@ -3,75 +3,123 @@ "properties": { "requestId": { "type": "string", - "example": "7876786" + "description": "Unique identifier of request", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" }, "transactionId": { "type": "string", - "example": "T001" + "description": "Unique identifier of transaction in Simbrella system", + "example": "Tr201712RK9232P115" }, "debtId": { "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", "example": "273194670" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "productId": { "type": "string", + "description": "Identifier of a product to be provided to a user", "example": "101" }, "provideAmount": { "type": "number", "format": "double", + "description": "Amount of loan (including service fee) to be provided on a specific account of a user", "example": 100000.0 }, - "collectAmountInterest": { + "totalFees": { "type": "number", "format": "double", - "example": 5000.0 + "description": "Total amount of all fees combined", + "example": 7075 }, - "collectAmountMgtFee": { - "type": "number", - "format": "double", - "example": 1000.0 - }, - "collectAmountInsurance": { - "type": "number", - "format": "double", - "example": 1000.0 - }, - "collectAmountVAT": { - "type": "number", - "format": "double", - "example": 75.0 + "feesDetails": { + "type": "object", + "description": "Detailed breakdown of all fees", + "properties": { + "collectAmountInterest": { + "type": "number", + "format": "double", + "description": "Interest Amount to be collected immediately after loan is provided (Only for 30 days)", + "example": 5000 + }, + "collectAmountMgtFee": { + "type": "number", + "format": "double", + "description": "Management Fee Amount to be collected immediately after loan is provided", + "example": 1000 + }, + "collectAmountInsurance": { + "type": "number", + "format": "double", + "description": "Insurance Amount to be collected immediately after loan is provided", + "example": 1000 + }, + "collectAmountVAT": { + "type": "number", + "format": "double", + "description": "VAT Amount to be collected immediately after loan is provided", + "example": 75 + } + }, + "required": [ + "collectAmountInterest", + "collectAmountMgtFee", + "collectAmountInsurance", + "collectAmountVAT" + ] }, "countryId": { "type": "string", + "description": "Set to static value '01'", "example": "01" - }, - "comment": { - "type": "string", - "example": "Testing LoanRequest" } }, "required": [ "requestId", + "countryCode", "transactionId", "debtId", "customerId", "accountId", "productId", "provideAmount", - "collectAmountInterest", - "collectAmountMgtFee", - "collectAmountInsurance", - "collectAmountVAT", - "countryId", - "comment" - ] + "totalFees", + "feesDetails" + ], + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "transactionId": "Tr201712RK9232P115", + "debtId": "273194670", + "customerId": "CN621868", + "accountId": "2017821799", + "productId": "101", + "provideAmount": 100000.0, + "totalFees": 7075, + "feesDetails": { + "collectAmountInterest": 5000, + "collectAmountMgtFee": 1000, + "collectAmountInsurance": 1000, + "collectAmountVAT": 75 + } + }, + "xml": { + "name": "DisbursementRequest" + } } \ No newline at end of file diff --git a/app/swagger/schemas/DisbursementResponse.json b/app/swagger/schemas/DisbursementResponse.json index ac12c6e..ad757f3 100644 --- a/app/swagger/schemas/DisbursementResponse.json +++ b/app/swagger/schemas/DisbursementResponse.json @@ -1,82 +1,134 @@ { "type": "object", "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code.", + "example": "NGR" + }, "transactionId": { "type": "string", - "example": "T001" - }, - "TransactionId": { - "type": "string", + "description": "Unique ID of customer’s USSD session. Must be consistent throughout whole USSD journey", "example": "Tr201712RK9232P115" }, "debtId": { "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", "example": "273194670" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "productId": { "type": "string", + "description": "Identifier of a product to be provided to a user", "example": "101" }, "provideAmount": { "type": "number", "format": "double", + "description": "Amount of loan (including service fee) to be provided on a specific account of a user", "example": 100000.0 }, - "collectAmountInterest": { + "totalFees": { "type": "number", "format": "double", - "example": 5000.0 + "description": "Total amount of all fees combined", + "example": 7075 }, - "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" + "feesDetails": { + "type": "object", + "description": "Detailed breakdown of all fees", + "properties": { + "collectAmountInterest": { + "type": "number", + "format": "double", + "description": "Interest Amount to be collected immediately after loan is provided (Only for 30 days)", + "example": 5000 + }, + "collectAmountMgtFee": { + "type": "number", + "format": "double", + "description": "Management Fee Amount to be collected immediately after loan is provided", + "example": 1000 + }, + "collectAmountInsurance": { + "type": "number", + "format": "double", + "description": "Insurance Amount to be collected immediately after loan is provided", + "example": 1000 + }, + "collectAmountVAT": { + "type": "number", + "format": "double", + "description": "VAT Amount to be collected immediately after loan is provided", + "example": 75 + } + }, + "required": [ + "collectAmountInterest", + "collectAmountMgtFee", + "collectAmountInsurance", + "collectAmountVAT" + ] }, "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Loan Request Completed Successfully!" } }, "required": [ + "requestId", + "countryCode", "transactionId", - "TransactionId", "debtId", "customerId", "accountId", "productId", "provideAmount", - "collectAmountInterest", - "collectAmountMgtFee", - "collectAmountInsurance", - "collectAmountVAT", - "countryId", + "totalFees", + "feesDetails", "resultCode", "resultDescription" - ] + ], + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "transactionId": "Tr201712RK9232P115", + "debtId": "273194670", + "customerId": "CN621868", + "accountId": "2017821799", + "productId": "101", + "provideAmount": 100000.0, + "totalFees": 7075, + "feesDetails": { + "collectAmountInterest": 5000, + "collectAmountMgtFee": 1000, + "collectAmountInsurance": 1000, + "collectAmountVAT": 75 + }, + "resultCode": "00", + "resultDescription": "Loan Request Completed Successfully!" + }, + "xml": { + "name": "DisbursementResponse" + } } \ No newline at end of file diff --git a/app/swagger/schemas/EligibilityCheckRequest.json b/app/swagger/schemas/EligibilityCheckRequest.json new file mode 100644 index 0000000..9b90d25 --- /dev/null +++ b/app/swagger/schemas/EligibilityCheckRequest.json @@ -0,0 +1,45 @@ +{ + "type": "object", + "required": [ + "transactionId", + "countryCode", + "customerId", + "accountId", + "channel" + ], + "properties": { + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "ACN8263457" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "8012345678" + }, + "channel": { + "type": "string", + "description": "Request channel: USSD, MobApp, or Web - type Channel", + "example": "100" + } + }, + "xml": { + "name": "EligibilityCheckRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/EligibilityCheckResponse.json b/app/swagger/schemas/EligibilityCheckResponse.json new file mode 100644 index 0000000..ff9fb9b --- /dev/null +++ b/app/swagger/schemas/EligibilityCheckResponse.json @@ -0,0 +1,105 @@ +{ + "type": "object", + "required": [ + "customerId", + "transactionId", + "countryCode", + "eligibleOffers", + "resultCode", + "resultDescription" + ], + "properties": { + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to “Country Codes” table", + "example": "NGR" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "2348012345678" + }, + "eligibleOffers": { + "type": "array", + "description": "Array of loan offers the customer is eligible for", + "items": { + "type": "object", + "properties": { + "offerId": { + "type": "integer", + "description": "Offer identifier", + "example": 101 + }, + "minAmount": { + "type": "number", + "format": "double", + "description": "Minimum loan amount", + "example": 5000 + }, + "maxAmount": { + "type": "number", + "format": "double", + "description": "Maximum loan amount", + "example": 20000 + }, + "productId": { + "type": "integer", + "description": "Product identifier", + "example": 2030101 + }, + "tenor": { + "type": "integer", + "description": "Loan tenor in days", + "example": 30 + } + }, + "required": [ + "offerId", + "minAmount", + "maxAmount", + "productId", + "tenor" + ] + }, + "example": [ + { + "offerId": 101, + "minAmount": 5000, + "maxAmount": 20000, + "productId": 2030, + "tenor": 30 + }, + { + "offerId": 102, + "minAmount": 20000, + "maxAmount": 50000, + "productId": 2090, + "tenor": 90 + } + ] + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Textual description of provided result code. In case if customer is not eligible (where resultCode is «05») this parameter contains end-user message that can be show directly to the customer.", + "example": "Successful" + } + }, + "xml": { + "name": "EligibilityCheckResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/LienCheckRequest.json b/app/swagger/schemas/LienCheckRequest.json index ebe13be..cf50dc5 100644 --- a/app/swagger/schemas/LienCheckRequest.json +++ b/app/swagger/schemas/LienCheckRequest.json @@ -3,19 +3,26 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique Identifier in Simbrella system", "example": "SMB1234567" }, "customerId": { "type": "string", + "description": "Unique identifier of customer", "example": "123456" }, "accountId": { "type": "string", + "description": "Unique identifier of account", "example": "E9F77222920BAAB1C5ACF2253C6D6113" - }, - "countryId": { - "type": "string", - "example": "01" } + }, + "required": [ + "transactionId", + "customerId", + "accountId" + ], + "xml": { + "name": "LienCheckRequest" } } \ No newline at end of file diff --git a/app/swagger/schemas/LienCheckResponse.json b/app/swagger/schemas/LienCheckResponse.json index 3509d88..8f4e743 100644 --- a/app/swagger/schemas/LienCheckResponse.json +++ b/app/swagger/schemas/LienCheckResponse.json @@ -3,15 +3,27 @@ "properties": { "lienAmount": { "type": "number", + "format": "double", + "description": "Lien amount applied to the account", "example": 20000.0 }, "resultCode": { "type": "string", + "description": "Result code of response", "example": "00" }, "resultDescription": { "type": "string", + "description": "Response description", "example": "Successful" } + }, + "required": [ + "lienAmount", + "resultCode", + "resultDescription" + ], + "xml": { + "name": "LienCheckResponse" } } \ No newline at end of file diff --git a/app/swagger/schemas/LoanStatusRequest.json b/app/swagger/schemas/LoanStatusRequest.json new file mode 100644 index 0000000..9f4e94e --- /dev/null +++ b/app/swagger/schemas/LoanStatusRequest.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "required": [ + "transactionId", + "customerId", + "channel" + ], + "properties": { + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "3451342" + }, + "channel": { + "type": "string", + "description": "Request channel: USSD, MobileApp, or Web", + "example": "100" + } + }, + "xml": { + "name": "LoanStatusRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/LoanStatusResponse.json b/app/swagger/schemas/LoanStatusResponse.json new file mode 100644 index 0000000..f6b4496 --- /dev/null +++ b/app/swagger/schemas/LoanStatusResponse.json @@ -0,0 +1,96 @@ +{ + "type": "object", + "required": [ + "customerId", + "transactionId", + "loans", + "resultCode", + "resultDescription" + ], + "properties": { + "customerId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "CN621868" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "loans": { + "type": "array", + "description": "Array of loan entities. If customer doesn't have a loan, this array will be empty", + "items": { + "type": "object", + "properties": { + "debtId": { + "type": "string", + "description": "Unique identifier of a debt of a user", + "example": "123456789" + }, + "loanDate": { + "type": "string", + "format": "date-time", + "description": "Date and time of provided loan", + "example": "2019-10-18 14:26:21.063" + }, + "dueDate": { + "type": "string", + "format": "date-time", + "description": "Due date of provided loan", + "example": "2019-11-20 14:26:21.063" + }, + "currentLoanAmount": { + "type": "number", + "format": "double", + "description": "Outstanding debt amount of the user", + "example": 8500.0 + }, + "initialLoanAmount": { + "type": "number", + "format": "double", + "description": "Initial loan amount", + "example": 10000.0 + }, + "defaultPenaltyFee": { + "type": "number", + "format": "double", + "description": "Penalty fee amount", + "example": 0.0 + }, + "continuousFee": { + "type": "number", + "format": "double", + "description": "Interest fee charged continuously. First occurs when payment is delayed", + "example": 0.0 + }, + "productId": { + "type": "string", + "description": "Identifier of a provided product to a user", + "example": "101" + } + } + } + }, + "totalDebtAmount": { + "type": "number", + "format": "double", + "description": "Sum amount of all existing debts of a user", + "example": 8500.0 + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "example": "Successful" + } + }, + "xml": { + "name": "LoanStatusResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/NewTransactionCheckRequest.json b/app/swagger/schemas/NewTransactionCheckRequest.json deleted file mode 100644 index b7d79c4..0000000 --- a/app/swagger/schemas/NewTransactionCheckRequest.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "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" - } - } -} \ No newline at end of file diff --git a/app/swagger/schemas/NewTransactionCheckResponse.json b/app/swagger/schemas/NewTransactionCheckResponse.json deleted file mode 100644 index 086cbc0..0000000 --- a/app/swagger/schemas/NewTransactionCheckResponse.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "object", - "properties": { - "status": { - "type": "string", - "example": "Success" - }, - "message": { - "type": "string", - "example": "Transaction check completed successfully." - } - } -} \ No newline at end of file diff --git a/app/swagger/schemas/NotificationCallbackRequest.json b/app/swagger/schemas/NotificationCallbackRequest.json new file mode 100644 index 0000000..cfed94d --- /dev/null +++ b/app/swagger/schemas/NotificationCallbackRequest.json @@ -0,0 +1,73 @@ +{ + "type": "object", + "properties": { + "fbnTransactionId": { + "type": "string", + "description": "Unique id of the transaction received from FBN in Eligibility or Provision requests", + "example": "123456789" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction in FIRSTBANK system", + "example": "123456789" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "ACN8263457" + }, + "debtId": { + "type": "string", + "description": "Unique identifier of providing loan in Simbrella system", + "example": "987654321" + }, + "transactionType": { + "type": "string", + "description": "Type of transaction initiated by Simbrella", + "enum": ["Disbursement", "Collection", "PenalCharge"], + "example": "Disbursement" + }, + "amountProvided": { + "type": "number", + "format": "double", + "description": "Amount provided to customer within Disbursement operation. Will be 0 for Collection or PenalCharge transactions.", + "example": 1000.00 + }, + "amountCollected": { + "type": "number", + "format": "double", + "description": "Amount collected during execution of operation. In case of Disbursement this value will be equal to 0. In case of Collection this value will represent amount successfully collected from customers account. In case of Penal charge this value will represent penalty amount collected from customer's account.", + "example": 0.00 + }, + "responseCode": { + "type": "string", + "description": "Result code of the notification, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "responseDescription": { + "type": "string", + "description": "Result description of the notification, detailing status of the transaction", + "example": "Successful" + } + }, + "required": [ + "fbnTransactionId", + "transactionId", + "customerId", + "accountId", + "debtId", + "transactionType", + "amountProvided", + "amountCollected", + "responseCode", + "responseDescription" + ], + "xml": { + "name": "NotificationCallbackRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/NotificationCallbackResponse.json b/app/swagger/schemas/NotificationCallbackResponse.json new file mode 100644 index 0000000..28bae3b --- /dev/null +++ b/app/swagger/schemas/NotificationCallbackResponse.json @@ -0,0 +1,24 @@ +{ + "type": "object", + "properties": { + "resultCode": { + "type": "string", + "description": "Result code of successful request. See Simbrella Result Codes", + "maxLength": 2, + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "maxLength": 100, + "example": "Successful" + } + }, + "required": [ + "resultCode", + "resultDescription" + ], + "xml": { + "name": "NotificationCallbackResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/PenalChargeRequest.json b/app/swagger/schemas/PenalChargeRequest.json index 64af9c8..391024a 100644 --- a/app/swagger/schemas/PenalChargeRequest.json +++ b/app/swagger/schemas/PenalChargeRequest.json @@ -3,39 +3,57 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique identifier of transaction in Simbrella system", "example": "T004" }, "fbnTransactionId": { "type": "string", + "description": "Unique id of the transaction received from FBN in Eligibility or Provision requests", "example": "Tr201712RK9232P115" }, "debtId": { "type": "string", + "description": "Unique identifier of providing loan in Simbrella system", "example": "273194670" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "penalCharge": { "type": "number", - "example": 1.2 + "format": "double", + "description": "Penalty amount that needs to be collected from user's account", + "example": 101.2 }, "lienAmount": { "type": "number", + "format": "double", + "description": "Aggregated (summed up) lien amount", "example": 101.2 }, - "countryId": { - "type": "string", - "example": "01" - }, "comment": { "type": "string", + "description": "Any additional comment for provided loan operation", "example": "Testing PenalChargeRequest" } + }, + "required": [ + "transactionId", + "fbnTransactionId", + "debtId", + "customerId", + "accountId", + "penalCharge", + "lienAmount" + ], + "xml": { + "name": "PenalChargeRequest" } } \ No newline at end of file diff --git a/app/swagger/schemas/PenalChargeResponse.json b/app/swagger/schemas/PenalChargeResponse.json index 0cc2482..73d2388 100644 --- a/app/swagger/schemas/PenalChargeResponse.json +++ b/app/swagger/schemas/PenalChargeResponse.json @@ -3,11 +3,20 @@ "properties": { "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Penal charge debited successfully" } + }, + "required": [ + "resultCode", + "resultDescription" + ], + "xml": { + "name": "PenalChargeResponse" } } \ No newline at end of file diff --git a/app/swagger/schemas/ProvideLoanRequest.json b/app/swagger/schemas/ProvideLoanRequest.json new file mode 100644 index 0000000..a44cd24 --- /dev/null +++ b/app/swagger/schemas/ProvideLoanRequest.json @@ -0,0 +1,72 @@ +{ + "type": "object", + "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "202111170001371256908" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "ACN8263457" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "3451342" + }, + "productId": { + "type": "string", + "description": "Identifier of a product chosen by user", + "example": "101" + }, + "requestedAmount": { + "type": "number", + "format": "double", + "description": "Amount of loan that requested by user", + "example": 900 + }, + "collectionType": { + "type": "integer", + "description": "Type of collection that user is preferred. 0 – as soon as salary inflow occurs; 1- as soon as any new inflow occurs, 1 – collection after XX days.", + "enum": [0, 1], + "example": 1 + }, + "offerId": { + "type": "integer", + "description": "Offer ID of the loan selected by Customer", + "example": 1127 + }, + "channel": { + "type": "string", + "description": "Request channel: “USSD” or “MobileApp” or “Web” - Reference Channel types", + "enum": ["USSD", "MobileApp", "Web"], + "example": "100" + } + }, + "required": [ + "$type", + "transactionId", + "customerId", + "accountId", + "productId", + "requestedAmount", + "collectionType", + "offerId", + "channel" + ], + "xml": { + "name": "ProvideLoanRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/ProvideLoanResponse.json b/app/swagger/schemas/ProvideLoanResponse.json new file mode 100644 index 0000000..701d80b --- /dev/null +++ b/app/swagger/schemas/ProvideLoanResponse.json @@ -0,0 +1,51 @@ +{ + "type": "object", + "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "202111170001371256908" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "ACN8263457" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "3451342" + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "example": "Successful" + } + }, + "required": [ + "requestId", + "transactionId", + "customerId", + "accountId", + "resultCode", + "resultDescription" + ], + "xml": { + "name": "ProvideLoanResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/RACCheckRequest.json b/app/swagger/schemas/RACCheckRequest.json index 2cf59d5..ff65f98 100644 --- a/app/swagger/schemas/RACCheckRequest.json +++ b/app/swagger/schemas/RACCheckRequest.json @@ -3,88 +3,40 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", "example": "T001" }, "fbnTransactionId": { "type": "string", + "description": "Unique id of the transaction received from FBN in Eligibility or Provision requests", "example": "Tr201712RK9232P115" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "RAC_Array": { "type": "array", + "description": "Array of RAC items to check (BVN, CRC, CRMS, Salary account, lien, whitelist, lien, account status, no bounced check and existing loan)", "items": { - "type": "object", - "properties": { - "salaryAccount": { - "type": "boolean", - "example": true - }, - "bvn": { - "type": "string", - "example": "12345678901" - }, - "crc": { - "type": "boolean", - "example": false - }, - "crms": { - "type": "boolean", - "example": true - }, - "accountStatus": { - "type": "string", - "example": "active" - }, - "lien": { - "type": "boolean", - "example": false - }, - "noBouncedCheck": { - "type": "boolean", - "example": true - }, - "existingLoan": { - "type": "boolean", - "example": false - }, - "whitelist": { - "type": "boolean", - "example": true - }, - "noPastDueSalaryLoan": { - "type": "boolean", - "example": true - }, - "noPastDueOtherLoans": { - "type": "boolean", - "example": false - } - } + "type": "string" }, - "example": [ - { - "salaryAccount": true, - "bvn": "12345678901", - "crc": false, - "crms": true, - "accountStatus": "active", - "lien": false, - "noBouncedCheck": true, - "existingLoan": false, - "whitelist": true, - "noPastDueSalaryLoan": true, - "noPastDueOtherLoans": false - } - ] + "example": ["SalaryAccount", "BVN", "BVNAttachedtoAccount", "CRC", "CRMS", "AccountStatus", "Lien", "NoBouncedCheck", "Whitelist", "NoPastDueSalaryLoan", "NoPastDueOtherLoan"] } }, + "required": [ + "transactionId", + "fbnTransactionId", + "customerId", + "accountId", + "RAC_Array" + ], "xml": { "name": "RACCheckRequest" } diff --git a/app/swagger/schemas/RACCheckResponse.json b/app/swagger/schemas/RACCheckResponse.json index 110b555..6444982 100644 --- a/app/swagger/schemas/RACCheckResponse.json +++ b/app/swagger/schemas/RACCheckResponse.json @@ -1,64 +1,107 @@ { "type": "object", "properties": { - "resultCode": { + "transactionId": { "type": "string", - "example": "00" + "description": "Unique identifier of transaction in Simbrella system", + "example": "T001" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "2017821799" }, "RACResponse": { "type": "object", + "description": "Object containing binary responses for each RAC check", "properties": { "Salary account": { "type": "string", + "description": "Has Salary account or Not (1 = Yes, 0 = No)", "example": "1" }, "BVN": { "type": "string", + "description": "BVN Ok (1 = Yes, 0 = No)", "example": "1" }, - "BVNAttachedtoAccount": { + "BVNAttachedToAccount": { "type": "string", + "description": "BVN attached to account (1 = Yes, 0 = No)", "example": "1" }, "CRMS": { "type": "string", + "description": "No Delinquent loan in CRMS (1 = Yes, 0 = No)", "example": "1" }, "CRC": { "type": "string", + "description": "No Delinquent loan in CRC (1 = Yes, 0 = No)", "example": "1" }, "AccountStatus": { "type": "string", + "description": "Has 'Regular' account status (1 = Yes, 0 = No)", "example": "1" }, "Lien": { "type": "string", + "description": "No Lien on account (1 = Yes, 0 = No)", "example": "1" }, "NoBouncedCheck": { "type": "string", + "description": "No Bounced Check (1 = Yes, 0 = No)", "example": "1" }, "Whitelist": { "type": "string", + "description": "Not blacklisted (1 = Yes, 0 = No)", "example": "1" }, "NoPastDueSalaryLoan": { "type": "string", + "description": "No Past Due Salary Loan (1 = Yes, 0 = No)", "example": "1" }, "NoPastDueOtherLoan": { "type": "string", + "description": "No Past Due Other Loans (1 = Yes, 0 = No)", "example": "1" } - } + }, + "required": [ + "Salary account", + "BVNAttachedToAccount", + "CRC", + "CRMS", + "AccountStatus", + "Lien", + "NoBouncedCheck", + "Whitelist", + "NoPastDueSalaryLoan", + "NoPastDueOtherLoan" + ] }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "RAC Check Successful" } }, + "required": [ + "transactionId", + "customerId", + "accountId", + "RACResponse", + "resultDescription" + ], "xml": { "name": "RACCheckResponse" } diff --git a/app/swagger/schemas/RepaymentRequest.json b/app/swagger/schemas/RepaymentRequest.json new file mode 100644 index 0000000..ce7803a --- /dev/null +++ b/app/swagger/schemas/RepaymentRequest.json @@ -0,0 +1,98 @@ +{ + "type": "object", + "required": [ + "requestId", + "countryCode", + "transactionId", + "debtId", + "customerId", + "accountId", + "productId", + "collectedAmount", + "collectionMethod", + "lienAmount" + ], + "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction in Simbrella system", + "example": "Tr201712RK9232P115" + }, + "debtId": { + "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", + "example": "273194670" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "2017821799" + }, + "productId": { + "type": "string", + "description": "Identifier of a product for which collection to be made", + "example": "101" + }, + "collectedAmount": { + "type": "number", + "format": "double", + "description": "Amount to be collected from user's account (penalCharge is not included)", + "example": 80000.00 + }, + "penalCharge": { + "type": "number", + "format": "double", + "description": "Amount of penalty to be collected from user's account. If there is no penalty, amount is '0'", + "example": 0 + }, + "collectionMethod": { + "type": "integer", + "description": "1 - on deposit of salary. the collection was triggered after a salary inflow to account, 2 - on due date. the collection was triggered on due date, 3 - initiated by user. the debtor initiated the collection from the request channel (USSD, Web or App)", + "enum": [1, 2, 3], + "example": 1 + }, + "lienAmount": { + "type": "number", + "format": "double", + "description": "Aggregated (summed up) lien amount", + "example": 80000.00 + }, + "comment": { + "type": "string", + "description": "Any additional comment for provided loan operation", + "example": "Testing CollectionLoanRequest" + } + }, + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "transactionId": "Tr201712RK9232P115", + "debtId": "273194670", + "customerId": "CN621868", + "accountId": "2017821799", + "productId": "101", + "collectedAmount": 80000.00, + "penalCharge": 0, + "collectionMethod": 1, + "lienAmount": 80000.00, + "comment": "Testing CollectionLoanRequest" + }, + "xml": { + "name": "RepaymentRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/RepaymentResponse.json b/app/swagger/schemas/RepaymentResponse.json new file mode 100644 index 0000000..726e23c --- /dev/null +++ b/app/swagger/schemas/RepaymentResponse.json @@ -0,0 +1,104 @@ +{ + "type": "object", + "required": [ + "requestId", + "countryCode", + "transactionId", + "debtId", + "customerId", + "accountId", + "productId", + "collectedAmount", + "lienAmount", + "resultCode", + "resultDescription" + ], + "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction in Simbrella system", + "example": "Tr201712RK9232P115" + }, + "debtId": { + "type": "string", + "description": "Unique identifier of a loan in Simbrella system that is going to be collected (it correlates with provision request)", + "example": "273194670" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "CN621868" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "2017821799" + }, + "productId": { + "type": "string", + "description": "Identifier of a product for which collection to be made", + "example": "101" + }, + "collectedAmount": { + "type": "number", + "format": "double", + "description": "Amount to be collected from user's account (penalCharge is not included)", + "example": 60000.00 + }, + "penalCharge": { + "type": "number", + "format": "double", + "description": "Amount of penalty to be collected from user's account. If there is no penalty, amount is '0'", + "example": 0 + }, + "lienAmount": { + "type": "number", + "format": "double", + "description": "Aggregated (summed up) lien amount", + "example": 20000 + }, + "comment": { + "type": "string", + "description": "Any additional comment for provided loan operation", + "example": "Testing CollectionLoanRequest" + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "example": "Loan Collection Successful" + } + }, + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "transactionId": "Tr201712RK9232P115", + "debtId": "273194670", + "customerId": "CN621868", + "accountId": "2017821799", + "productId": "101", + "collectedAmount": 60000.00, + "penalCharge": 0, + "lienAmount": 20000, + "comment": "Testing CollectionLoanRequest", + "resultCode": "00", + "resultDescription": "Loan Collection Successful" + }, + "xml": { + "name": "RepaymentResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/RevokeEnableConsentRequest.json b/app/swagger/schemas/RevokeEnableConsentRequest.json index a148151..e55f5b1 100644 --- a/app/swagger/schemas/RevokeEnableConsentRequest.json +++ b/app/swagger/schemas/RevokeEnableConsentRequest.json @@ -3,36 +3,57 @@ "properties": { "transactionId": { "type": "string", + "description": "Unique identifier of transaction in Simbrella system", "example": "T0014" }, "fbnTransactionId": { "type": "string", + "description": "Unique id of the transaction received from FBN in CustomerConsentRequest", "example": "20171209232177" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "processTime": { "type": "string", "format": "date-time", + "description": "Date and time when consent request was processed", "example": "2019-10-18 14:26:21.063" }, "consentType": { "type": "string", + "description": "Type of consent: 'Enable' or 'Revoke'", + "enum": ["Enable", "Revoke"], "example": "Revoke" }, "countryId": { "type": "string", + "description": "Set to static value '01'", "example": "01" }, "comment": { "type": "string", + "description": "Any additional comment for consent operation", "example": "Testing RevokeEnableConsentRequest" } + }, + "required": [ + "transactionId", + "fbnTransactionId", + "customerId", + "accountId", + "processTime", + "consentType", + "countryId" + ], + "xml": { + "name": "RevokeEnableConsentRequest" } } \ No newline at end of file diff --git a/app/swagger/schemas/RevokeEnableConsentResponse.json b/app/swagger/schemas/RevokeEnableConsentResponse.json index 0d1bdba..9c5dca9 100644 --- a/app/swagger/schemas/RevokeEnableConsentResponse.json +++ b/app/swagger/schemas/RevokeEnableConsentResponse.json @@ -1,25 +1,35 @@ { "type": "object", "properties": { - "$type": { - "type": "string", - "example": "RevokeEnableConsentResponse" - }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Success" } + }, + "required": [ + "$type", + "customerId", + "accountId", + "resultCode", + "resultDescription" + ], + "xml": { + "name": "RevokeEnableConsentResponse" } } \ No newline at end of file diff --git a/app/swagger/schemas/SMSRequest.json b/app/swagger/schemas/SMSRequest.json new file mode 100644 index 0000000..c622138 --- /dev/null +++ b/app/swagger/schemas/SMSRequest.json @@ -0,0 +1,28 @@ +{ + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Message to send to customer", + "example": "This is a test message for SMS request method." + }, + "dest": { + "type": "string", + "description": "Phone Number in international format", + "example": "+2348039409144" + }, + "unicode": { + "type": "boolean", + "description": "Character encoding standard (set as False for single SMS)", + "example": false + } + }, + "required": [ + "text", + "dest", + "unicode" + ], + "xml": { + "name": "SMSRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/SMSResponse.json b/app/swagger/schemas/SMSResponse.json new file mode 100644 index 0000000..fe42e0a --- /dev/null +++ b/app/swagger/schemas/SMSResponse.json @@ -0,0 +1,34 @@ +{ + "type": "object", + "properties": { + "data": { + "type": "string", + "description": "Any additional data in response", + "example": "" + }, + "statusCode": { + "type": "integer", + "description": "Result code of executed process (200 = Success)", + "example": 200 + }, + "IsSuccessful": { + "type": "boolean", + "description": "An Indicator that the process was successful or not", + "example": true + }, + "errorMessage": { + "type": "string", + "description": "Description of status code if process is failed, null if successful", + "example": null + } + }, + "required": [ + "data", + "statusCode", + "IsSuccessful", + "errorMessage" + ], + "xml": { + "name": "SMSResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/SelectOfferRequest.json b/app/swagger/schemas/SelectOfferRequest.json new file mode 100644 index 0000000..ff35ae8 --- /dev/null +++ b/app/swagger/schemas/SelectOfferRequest.json @@ -0,0 +1,60 @@ +{ + "type": "object", + "required": [ + "requestId", + "transactionId", + "customerId", + "accountId", + "msisdn", + "requestedAmount", + "productId", + "channel" + ], + "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "202111170001371256908" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "1231231321232" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "1256907" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "5948306019" + }, + "msisdn": { + "type": "string", + "description": "User's mobile number in an international format", + "example": "123456789" + }, + "requestedAmount": { + "type": "number", + "format": "double", + "description": "Amount of loan requested by user", + "example": 10000.0 + }, + "productId": { + "type": "string", + "description": "Product ID", + "example": "101" + }, + "channel": { + "type": "string", + "description": "Channel of incoming request", + "enum": ["USSD", "FistMobile LitApp", "Web"], + "example": "USSD" + } + }, + "xml": { + "name": "SelectOfferRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/SelectOfferResponse.json b/app/swagger/schemas/SelectOfferResponse.json new file mode 100644 index 0000000..f57f512 --- /dev/null +++ b/app/swagger/schemas/SelectOfferResponse.json @@ -0,0 +1,147 @@ +{ + "type": "object", + "required": [ + "requestId", + "transactionId", + "customerId", + "accountId", + "loan", + "resultCode", + "resultDescription" + ], + "properties": { + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platform", + "example": "1231231321232" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a customer", + "example": "1256907" + }, + "accountId": { + "type": "string", + "description": "Specific identifier of a user's account", + "example": "5948306019" + }, + "outstandingDebtAmount": { + "type": "number", + "format": "double", + "description": "Outstanding debt amount if any", + "example": 0 + }, + "loan": { + "type": "array", + "description": "Array of loan loan", + "items": { + "type": "object", + "properties": { + "offerId": { + "type": "string", + "description": "Unique identifier of the offer", + "example": "14451" + }, + "productId": { + "type": "string", + "description": "Product identifier", + "example": "2030" + }, + "amount": { + "type": "number", + "format": "double", + "description": "Amount of loan customer is eligible for", + "example": 10000.0 + }, + "upfrontPayment": { + "type": "number", + "format": "double", + "description": "Amount to be deducted upfront", + "example": 1000.0 + }, + "interestRate": { + "type": "number", + "format": "double", + "description": "Percentage (%) of interest rate", + "example": 3.0 + }, + "Interest": { + "type": "number", + "format": "double", + "description": "Amount of interest", + "example": 300.0 + }, + "ManagementRate": { + "type": "number", + "format": "double", + "description": "Percentage (%) of management fee", + "example": 1.0 + }, + "ManagementFee": { + "type": "number", + "format": "double", + "description": "Amount of management fee", + "example": 100.0 + }, + "InsuranceRate": { + "type": "number", + "format": "double", + "description": "Percentage (%) of insurance", + "example": 1.0 + }, + "InsuranceFee": { + "type": "number", + "format": "double", + "description": "Amount of insurance", + "example": 100.0 + }, + "VATRate": { + "type": "number", + "format": "double", + "description": "Percentage (%) of VAT", + "example": 7.5 + }, + "VATamount": { + "type": "number", + "format": "double", + "description": "Amount of VAT", + "example": 100.0 + }, + "recommendedRepaymentDates": { + "type": "array", + "description": "Array of recommended payment dates for all installments in yyyy-mm-dd format", + "items": { + "type": "string", + "example": "2022-11-30" + } + }, + "installmentAmount": { + "type": "number", + "format": "double", + "description": "Amount to be paid each month (upfrontPayment not included)", + "example": 11000.0 + }, + "totalRepaymentAmount": { + "type": "number", + "format": "double", + "description": "Total amount to be paid by customer. All installment amounts + upfront payment", + "example": 11000.0 + } + } + } + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "example": "Successful" + } + }, + "xml": { + "name": "SelectOfferResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/StatusCallRequest.json b/app/swagger/schemas/StatusCallRequest.json new file mode 100644 index 0000000..14d5035 --- /dev/null +++ b/app/swagger/schemas/StatusCallRequest.json @@ -0,0 +1,47 @@ +{ + "type": "object", + "properties": { + "requestId": { + "type": "string", + "description": "RequestId for transaction sent by Simbrella within initial request to Firstbank API", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code.", + "example": "NGR" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction. This transaction Id must be consistent across all platforms", + "example": "Tr201712RK9232P115" + }, + "debtId": { + "type": "string", + "description": "Unique identifier of provided loan in Simbrella system", + "example": "173021" + }, + "transactionType": { + "type": "string", + "description": "Type of Transaction Simbrella is sending Transaction Check for", + "enum": ["Disbursement", "Collection", "PenalCharge"], + "example": "Disbursement" + }, + "customerId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "CN621868" + } + }, + "required": [ + "requestId", + "countryCode", + "transactionId", + "debtId", + "transactionType", + "customerId" + ], + "xml": { + "name": "StatusCallRequest" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/StatusCallResponse.json b/app/swagger/schemas/StatusCallResponse.json new file mode 100644 index 0000000..9ad4169 --- /dev/null +++ b/app/swagger/schemas/StatusCallResponse.json @@ -0,0 +1,69 @@ +{ + "type": "object", + "properties": { + "transactionId": { + "type": "string", + "description": "Unique identifier of request in Simbrella system", + "example": "24110114545374721" + }, + "data": { + "type": "object", + "description": "Object containing details of transaction Simbrella querying", + "properties": { + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction in Simbrella system that was sent for transaction check", + "example": "241101" + }, + "providedAmount": { + "type": "number", + "format": "double", + "description": "Amount collected from user's account within disbursement operation. Amount should always be equal to zero if operation is of any type other than Disbursement", + "example": 1000.00 + }, + "collectedAmount": { + "type": "number", + "format": "double", + "description": "Amount collected from user's account. In case of Disbursement this value will be equal to 0. In case of Collection this value will represent amount successfully collected from customers account. In case of Penal charge this value will represent penalty amount collected from customer's account.", + "example": 0.00 + }, + "resultCode": { + "type": "string", + "description": "Result code of the operation one sent for transaction check, e.g. (00 – Success etc.)", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code that was sent for transaction check", + "example": "Loan Provision is successful" + } + }, + "required": [ + "transactionId", + "providedAmount", + "collectedAmount", + "resultCode", + "resultDescription" + ] + }, + "resultCode": { + "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.)", + "example": "00" + }, + "resultDescription": { + "type": "string", + "description": "Description of provided result code", + "example": "SUCCESS" + } + }, + "required": [ + "transactionId", + "data", + "resultCode", + "resultDescription" + ], + "xml": { + "name": "StatusCallResponse" + } +} \ No newline at end of file diff --git a/app/swagger/schemas/TokenValidationRequest.json b/app/swagger/schemas/TokenValidationRequest.json index 65a3407..7c3a7b3 100644 --- a/app/swagger/schemas/TokenValidationRequest.json +++ b/app/swagger/schemas/TokenValidationRequest.json @@ -1,21 +1,34 @@ { "type": "object", "properties": { - "UserId": { - "type": "string", - "example": "TMP0840" - }, - "TokenCode": { - "type": "string", - "example": "32365214" - }, "RequestId": { "type": "string", + "description": "Unique Identifier in Simbrella system", "example": "SMB1234567" }, + "UserId": { + "type": "string", + "description": "Unique identifier of a user", + "example": "TMP0840" + }, "CountryId": { "type": "string", + "description": "Set to static value '01'", "example": "01" + }, + "TokenCode": { + "type": "string", + "description": "Token code to be validated", + "example": "32365214" } + }, + "required": [ + "RequestId", + "UserId", + "CountryId", + "TokenCode" + ], + "xml": { + "name": "TokenValidationRequest" } } \ No newline at end of file diff --git a/app/swagger/schemas/TokenValidationResponse.json b/app/swagger/schemas/TokenValidationResponse.json index c3ff2c7..af1e9c8 100644 --- a/app/swagger/schemas/TokenValidationResponse.json +++ b/app/swagger/schemas/TokenValidationResponse.json @@ -3,23 +3,38 @@ "properties": { "Authenticated": { "type": "boolean", + "description": "Boolean value describing result of validation", "example": true }, "AuthenticatedMessage": { "type": "string", + "description": "Message describing authentication", "example": "The user Oluwole Olusoga has successfully authenticated!" }, "ResponseCode": { "type": "string", + "description": "Result code of response", "example": "00" }, "ResponseMessage": { "type": "string", + "description": "Response description", "example": "Successful" }, "RequestId": { "type": "string", + "description": "Unique id that was sent in request", "example": "SMB1234567" } + }, + "required": [ + "Authenticated", + "AuthenticatedMessage", + "ResponseCode", + "ResponseMessage", + "RequestId" + ], + "xml": { + "name": "TokenValidationResponse" } } \ No newline at end of file diff --git a/app/swagger/schemas/TransactionVerifyRequest.json b/app/swagger/schemas/TransactionVerifyRequest.json index fce9a28..8f6c9b9 100644 --- a/app/swagger/schemas/TransactionVerifyRequest.json +++ b/app/swagger/schemas/TransactionVerifyRequest.json @@ -1,33 +1,62 @@ { "type": "object", + "required": [ + "requestId", + "countryCode", + "counter", + "transactionId", + "customerId", + "accountId", + "transactionType" + ], "properties": { + "requestId": { + "type": "string", + "description": "Unique identifier of request", + "example": "R02802" + }, + "countryCode": { + "type": "string", + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" + }, "counter": { "type": "string", + "description": "Unique counter for number of attempts of the API call. Original attempt is 1", "example": "2" }, "transactionId": { "type": "string", - "example": "T002" - }, - "requestID": { - "type": "string", - "example": "R02802" + "description": "Id of the transaction we are checking", + "example": "Tr201712RK9232P115" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, - "countryId": { - "type": "string", - "example": "01" - }, "transactionType": { "type": "string", + "description": "To check state of loan disbursal transaction, value must be 'Disbursement', to check state of loan collection transaction, value must be 'Collection', to check state of penalty charge transaction, value must be 'Penalty'", + "enum": ["Disbursement", "Collection", "Penalty"], "example": "Disbursement" } + }, + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "counter": "2", + "transactionId": "Tr201712RK9232P115", + "customerId": "CN621868", + "accountId": "2017821799", + "transactionType": "Disbursement" + }, + "xml": { + "name": "TransactionVerifyRequest" } } \ No newline at end of file diff --git a/app/swagger/schemas/TransactionVerifyResponse.json b/app/swagger/schemas/TransactionVerifyResponse.json index 8bff555..78e22c2 100644 --- a/app/swagger/schemas/TransactionVerifyResponse.json +++ b/app/swagger/schemas/TransactionVerifyResponse.json @@ -1,37 +1,85 @@ { "type": "object", + "required": [ + "requestId", + "countryCode", + "transactionId", + "transactionType", + "customerId", + "accountId", + "providedAmount", + "collectedAmount", + "resultCode", + "resultDescription" + ], "properties": { - "$type": { + "requestId": { "type": "string", - "example": "TransactionCheckResponse" + "description": "Unique identifier of request", + "example": "R02802" }, - "nativeId": { + "countryCode": { "type": "string", - "example": "FBN20191031104405CN621868" + "description": "Unique country code. Please refer to Country Codes table", + "example": "NGR" + }, + "transactionId": { + "type": "string", + "description": "Unique identifier of transaction in Simbrella system", + "example": "Tr201712RK9232P115" + }, + "transactionType": { + "type": "string", + "description": "Type of transaction: Disbursement, Collection, or Penalty", + "enum": ["Disbursement", "Collection", "Penalty"], + "example": "Disbursement" }, "customerId": { "type": "string", + "description": "Unique identifier of a user", "example": "CN621868" }, "accountId": { "type": "string", + "description": "Specific identifier of a user's account", "example": "2017821799" }, "providedAmount": { "type": "number", - "example": 0.0 + "format": "double", + "description": "Amount provided to a user within loan provision operation", + "example": 100.0 }, "collectedAmount": { "type": "number", + "format": "double", + "description": "Amount collected from user's account within collection operation", "example": 7.50 }, "resultCode": { "type": "string", + "description": "Result code of executed transaction, e.g. (00 – Success etc.) see result codes table", "example": "00" }, "resultDescription": { "type": "string", + "description": "Description of provided result code", "example": "Collect Status retrieved successfully." } + }, + "example": { + "requestId": "R02802", + "countryCode": "NGR", + "transactionId": "Tr201712RK9232P115", + "transactionType": "Disbursement", + "customerId": "CN621868", + "accountId": "2017821799", + "providedAmount": 100.0, + "collectedAmount": 7.50, + "resultCode": "00", + "resultDescription": "Collect Status retrieved successfully." + }, + "xml": { + "name": "TransactionVerifyResponse" } } \ No newline at end of file diff --git a/app/swagger/schemas/schemas.json b/app/swagger/schemas/schemas.json new file mode 100644 index 0000000..83889ac --- /dev/null +++ b/app/swagger/schemas/schemas.json @@ -0,0 +1,107 @@ +{ + "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" + }, + "NotificationCallbackRequest": { + "$ref": "./NotificationCallbackRequest.json" + }, + "NotificationCallbackResponse": { + "$ref": "./NotificationCallbackResponse.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" + } +} \ No newline at end of file