[fix]: request schems
This commit is contained in:
@@ -89,22 +89,22 @@
|
|||||||
"components": {
|
"components": {
|
||||||
"schemas": {
|
"schemas": {
|
||||||
"AuthenticationRequest": {
|
"AuthenticationRequest": {
|
||||||
"$ref": "./schemas/eco/AuthenticationRequest.json"
|
"$ref": "swagger/schemas/eco/AuthenticationRequest.json"
|
||||||
},
|
},
|
||||||
"AuthenticationResponse": {
|
"AuthenticationResponse": {
|
||||||
"$ref": "./schemas/eco/AuthenticationResponse.json"
|
"$ref": "swagger/schemas/eco/AuthenticationResponse.json"
|
||||||
},
|
},
|
||||||
"DebtClosureNotificationRequest": {
|
"DebtClosureNotificationRequest": {
|
||||||
"$ref": "./schemas/eco/DebtClosureNotificationRequest.json"
|
"$ref": "swagger/schemas/eco/DebtClosureNotificationRequest.json"
|
||||||
},
|
},
|
||||||
"DebtClosureNotificationResponse": {
|
"DebtClosureNotificationResponse": {
|
||||||
"$ref": "./schemas/eco/DebtClosureNotificationResponse.json"
|
"$ref": "swagger/schemas/eco/DebtClosureNotificationResponse.json"
|
||||||
},
|
},
|
||||||
"SendSMSRequest": {
|
"SendSMSRequest": {
|
||||||
"$ref": "./schemas/eco/SendSMSRequest.json"
|
"$ref": "swagger/schemas/eco/SendSMSRequest.json"
|
||||||
},
|
},
|
||||||
"SendSMSResponse": {
|
"SendSMSResponse": {
|
||||||
"$ref": "./schemas/eco/SendSMSResponse.json"
|
"$ref": "swagger/schemas/eco/SendSMSResponse.json"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"securitySchemes": {
|
"securitySchemes": {
|
||||||
|
|||||||
@@ -3,10 +3,12 @@
|
|||||||
"required": ["username", "password"],
|
"required": ["username", "password"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"username": {
|
"username": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "user"
|
||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "password"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,10 +5,12 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"resultDescription": {
|
"resultDescription": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "Authentication successful"
|
||||||
},
|
},
|
||||||
"token": {
|
"token": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["requestId", "affiliateCode", "debtId", "principal", "interest", "penalty", "collectAmount"],
|
"required": ["requestId", "affiliateCode", "debtId", "principal", "interest", "penalty", "collectAmount"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"requestId": { "type": "string" },
|
"requestId": { "type": "string", "example": "req-12345" },
|
||||||
"affiliateCode": { "type": "string" },
|
"affiliateCode": { "type": "string", "example": "aff-67890" },
|
||||||
"debtId": { "type": "integer" },
|
"debtId": { "type": "integer", "example": 123456 },
|
||||||
"principal": { "type": "number" },
|
"principal": { "type": "number", "example": 1000.00 },
|
||||||
"interest": { "type": "number" },
|
"interest": { "type": "number", "example": 100.00 },
|
||||||
"penalty": { "type": "number" },
|
"penalty": { "type": "number", "example": 50.00 },
|
||||||
"collectAmount": { "type": "number" }
|
"collectAmount": { "type": "number", "example": 1150.00 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"transactionId": { "type": "string" },
|
"transactionId": { "type": "string", "example": "txn-12345" },
|
||||||
"amountCollected": { "type": "number" },
|
"amountCollected": { "type": "number", "example": 1150.00 },
|
||||||
"resultCode": { "type": "integer" },
|
"resultCode": { "type": "integer", "example": 0 },
|
||||||
"resultDescription": { "type": "string" }
|
"resultDescription": { "type": "string", "example": "Collection successful" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["requestId", "affiliateCode", "customerId", "accountId", "debtId"],
|
"required": ["requestId", "affiliateCode", "customerId", "accountId", "debtId"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"requestId": { "type": "string" },
|
"requestId": { "type": "string", "example": "req-12345" },
|
||||||
"affiliateCode": { "type": "string" },
|
"affiliateCode": { "type": "string", "example": "aff-67890" },
|
||||||
"customerId": { "type": "string" },
|
"customerId": { "type": "string", "example": "cust-54321" },
|
||||||
"accountId": { "type": "string" },
|
"accountId": { "type": "string", "example": "acc-98765" },
|
||||||
"debtId": { "type": "integer" }
|
"debtId": { "type": "integer", "example": 123456 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"resultCode": { "type": "integer" },
|
"resultCode": { "type": "integer", "example": 0 },
|
||||||
"resultDescription": { "type": "string" }
|
"resultDescription": { "type": "string", "example": "Debt closure notification sent successfully" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["requestId", "affiliateCode", "debtId", "productId", "customerId", "accountId", "provideAmount", "collectAmount", "interestRate"],
|
"required": ["requestId", "affiliateCode", "debtId", "productId", "customerId", "accountId", "provideAmount", "collectAmount", "interestRate"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"requestId": { "type": "string" },
|
"requestId": { "type": "string", "example": "req-12345" },
|
||||||
"affiliateCode": { "type": "string" },
|
"affiliateCode": { "type": "string", "example": "aff-67890" },
|
||||||
"debtId": { "type": "integer" },
|
"debtId": { "type": "integer", "example": 123456 },
|
||||||
"productId": { "type": "string" },
|
"productId": { "type": "string", "example": "prod-78901" },
|
||||||
"customerId": { "type": "string" },
|
"customerId": { "type": "string", "example": "cust-54321" },
|
||||||
"accountId": { "type": "string" },
|
"accountId": { "type": "string", "example": "acc-98765" },
|
||||||
"provideAmount": { "type": "number" },
|
"provideAmount": { "type": "number", "example": 1000.00 },
|
||||||
"collectAmount": { "type": "number" },
|
"collectAmount": { "type": "number", "example": 1150.00 },
|
||||||
"interestRate": { "type": "number" }
|
"interestRate": { "type": "number", "example": 5.0 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"transactionId": { "type": "string" },
|
"transactionId": { "type": "string", "example": "txn-12345" },
|
||||||
"resultCode": { "type": "integer" },
|
"resultCode": { "type": "integer", "example": 0 },
|
||||||
"resultDescription": { "type": "string" }
|
"resultDescription": { "type": "string", "example": "Disbursement successful" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["requestId", "phoneNums", "affiliateCode", "message"],
|
"required": ["requestId", "phoneNums", "affiliateCode", "message"],
|
||||||
"properties": {
|
"properties": {
|
||||||
"requestId": { "type": "string" },
|
"requestId": { "type": "string", "example": "req-12345" },
|
||||||
"phoneNums": {
|
"phoneNums": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": { "type": "string" }
|
"items": { "type": "string", "example": "+1234567890" }
|
||||||
},
|
},
|
||||||
"affiliateCode": { "type": "string" },
|
"affiliateCode": { "type": "string", "example": "aff-67890" },
|
||||||
"message": { "type": "string" }
|
"message": { "type": "string", "example": "Your verification code is 123456" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"undelivered": {
|
"undelivered": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": { "type": "string" }
|
"items": { "type": "string", "example": "+1234567890" }
|
||||||
},
|
},
|
||||||
"resultCode": { "type": "integer" },
|
"resultCode": { "type": "integer", "example": 0 },
|
||||||
"resultDescription": { "type": "string" }
|
"resultDescription": { "type": "string", "example": "SMS sent successfully" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user