ResponseWrapperCurrencyListDto
Wrapper to get currency rates list
Status of the response
Possible values: [SUCCESS
, ERROR
]
ERROR/SUCCESS
Message describing the response
Request failed/Request successful
Code message describing the response
ERR-001/SUC-001
data object
Represents paginated results.
content object[]
The list of items in the current page.
The code of the currency (e.g., USD, EUR, GBP).
USD
The exchange rate of the currency compared to the base currency.
1.15
detailedRate object
Name of the currency (e.g. USD, EUR)
USD
Rate at which the currency can be purchased
1.15
Rate at which the currency can be sold
1.2
The total number of elements across all pages.
100
The total number of pages available.
10
The current page number (zero-based).
0
The number of items per page.
10
error object
Detailed information about the error response
Error code
ERR-142
Error message
Resource not found / Internal server error
details object[]
List of error details
Error code
ER4001
Detailed error message
Invalid input
Target of the error
username
List of suggestions for resolving the error
["Check the resource ID","Ensure the resource exists"]
metaData object
Additional metadata about the error, that could help in debugging
Additional metadata about the error, that could help in debugging
{"requestId":"3c5e4cebf39cbc5b","operationId":"66fd4d2ae6b6"}
Timestamp of when the response was generated
{
"status": "ERROR/SUCCESS",
"message": "Request failed/Request successful",
"codeMessage": "ERR-001/SUC-001",
"data": {
"content": [
{
"code": "USD",
"exchangeRate": 1.15,
"detailedRate": {
"currencyName": "USD",
"purchaseRate": "1.15",
"sellingRate": "1.2"
}
}
],
"totalElements": 100,
"totalPages": 10,
"number": 0,
"size": 10
},
"error": {
"code": "ERR-142",
"message": "Resource not found / Internal server error",
"details": [
{
"code": "ER4001",
"message": "Invalid input",
"target": "username"
}
],
"suggestions": [
"Check the resource ID",
"Ensure the resource exists"
],
"metaData": {
"requestId": "3c5e4cebf39cbc5b",
"operationId": "66fd4d2ae6b6"
}
},
"timestamp": "2024-07-29T15:51:28.071Z"
}