Worked on the Repayment Request and Repayment Response
This commit is contained in:
+126
-13
@@ -265,6 +265,53 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"/Repayment": {
|
||||||
|
"post": {
|
||||||
|
"tags": [
|
||||||
|
"Repayment"
|
||||||
|
],
|
||||||
|
"summary": "Repayment Request",
|
||||||
|
"description": "Repayment Request",
|
||||||
|
"operationId": "repaymentRequest",
|
||||||
|
"requestBody": {
|
||||||
|
"description": "Post JSON to request repayment",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/RepaymentRequest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": true
|
||||||
|
},
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Successful operation",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/RepaymentResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Invalid request parameters"
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Resource not found"
|
||||||
|
},
|
||||||
|
"422": {
|
||||||
|
"description": "Validation exception"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"security": [
|
||||||
|
{
|
||||||
|
"basicAuth": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"/NotificationCallback": {
|
"/NotificationCallback": {
|
||||||
"post": {
|
"post": {
|
||||||
|
|
||||||
@@ -765,8 +812,7 @@
|
|||||||
"description": "Description of provided result code"
|
"description": "Description of provided result code"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"LoanInformationRequest": {
|
"LoanInformationRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
@@ -890,22 +936,89 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ApiResponse": {
|
"RepaymentRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"$type",
|
||||||
|
"transactionId",
|
||||||
|
"customerId",
|
||||||
|
"debtId",
|
||||||
|
"productId",
|
||||||
|
"channel"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"code": {
|
"$type": {
|
||||||
"type": "integer",
|
"type": "string",
|
||||||
"format": "int32"
|
"example": "RepaymentRequest",
|
||||||
|
"description": "Value is fixed to 'RepaymentRequest'"
|
||||||
},
|
},
|
||||||
"type": {
|
"transactionId": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "20171209232115",
|
||||||
|
"description": "Unique identifier of transaction in FIRSTBANK system"
|
||||||
},
|
},
|
||||||
"message": {
|
"customerId": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "CN621868",
|
||||||
|
"description": "Unique identifier of a customer"
|
||||||
|
},
|
||||||
|
"msisdn": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "3451342",
|
||||||
|
"description": "User's mobile number in an international format"
|
||||||
|
},
|
||||||
|
"debtId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "273194670",
|
||||||
|
"description": "Debt identifier provided in 'Current Loans' response"
|
||||||
|
},
|
||||||
|
"productId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "101",
|
||||||
|
"description": "Identifier of a product that user is repaying for"
|
||||||
|
},
|
||||||
|
"channel": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "USSD",
|
||||||
|
"description": "Request channel: 'USSD' or 'APP'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"RepaymentResponse": {
|
||||||
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"customerId",
|
||||||
|
"productId",
|
||||||
|
"debtId",
|
||||||
|
"resultCode",
|
||||||
|
"resultDescription"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"customerId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "CN621868",
|
||||||
|
"description": "Unique identifier of a user"
|
||||||
|
},
|
||||||
|
"productId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "101",
|
||||||
|
"description": "Identifier of a product that user is payed for"
|
||||||
|
},
|
||||||
|
"debtId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "273194670",
|
||||||
|
"description": "Unique identifier of an existing debt of a user"
|
||||||
|
},
|
||||||
|
"resultCode": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "00",
|
||||||
|
"description": "Result code of executed transaction"
|
||||||
|
},
|
||||||
|
"resultDescription": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "Successful",
|
||||||
|
"description": "Description of provided result code"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"xml": {
|
|
||||||
"name": "##default"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user