[add]: eco endpoints and dummy responses

This commit is contained in:
VivianDee
2025-07-30 05:16:47 +01:00
parent cfc40b89dc
commit 038c5323b0
41 changed files with 998 additions and 7 deletions
@@ -0,0 +1,12 @@
{
"type": "object",
"required": ["username", "password"],
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
@@ -0,0 +1,14 @@
{
"type": "object",
"properties": {
"resultCode": {
"type": "string"
},
"resultDescription": {
"type": "string"
},
"token": {
"type": "string"
}
}
}
@@ -0,0 +1,13 @@
{
"type": "object",
"required": ["requestId", "affiliateCode", "debtId", "principal", "interest", "penalty", "collectAmount"],
"properties": {
"requestId": { "type": "string" },
"affiliateCode": { "type": "string" },
"debtId": { "type": "integer" },
"principal": { "type": "number" },
"interest": { "type": "number" },
"penalty": { "type": "number" },
"collectAmount": { "type": "number" }
}
}
@@ -0,0 +1,9 @@
{
"type": "object",
"properties": {
"transactionId": { "type": "string" },
"amountCollected": { "type": "number" },
"resultCode": { "type": "integer" },
"resultDescription": { "type": "string" }
}
}
@@ -0,0 +1,11 @@
{
"type": "object",
"required": ["requestId", "affiliateCode", "customerId", "accountId", "debtId"],
"properties": {
"requestId": { "type": "string" },
"affiliateCode": { "type": "string" },
"customerId": { "type": "string" },
"accountId": { "type": "string" },
"debtId": { "type": "integer" }
}
}
@@ -0,0 +1,7 @@
{
"type": "object",
"properties": {
"resultCode": { "type": "integer" },
"resultDescription": { "type": "string" }
}
}
@@ -0,0 +1,15 @@
{
"type": "object",
"required": ["requestId", "affiliateCode", "debtId", "productId", "customerId", "accountId", "provideAmount", "collectAmount", "interestRate"],
"properties": {
"requestId": { "type": "string" },
"affiliateCode": { "type": "string" },
"debtId": { "type": "integer" },
"productId": { "type": "string" },
"customerId": { "type": "string" },
"accountId": { "type": "string" },
"provideAmount": { "type": "number" },
"collectAmount": { "type": "number" },
"interestRate": { "type": "number" }
}
}
@@ -0,0 +1,8 @@
{
"type": "object",
"properties": {
"transactionId": { "type": "string" },
"resultCode": { "type": "integer" },
"resultDescription": { "type": "string" }
}
}
@@ -0,0 +1,13 @@
{
"type": "object",
"required": ["requestId", "phoneNums", "affiliateCode", "message"],
"properties": {
"requestId": { "type": "string" },
"phoneNums": {
"type": "array",
"items": { "type": "string" }
},
"affiliateCode": { "type": "string" },
"message": { "type": "string" }
}
}
@@ -0,0 +1,11 @@
{
"type": "object",
"properties": {
"undelivered": {
"type": "array",
"items": { "type": "string" }
},
"resultCode": { "type": "integer" },
"resultDescription": { "type": "string" }
}
}