ResponseWrapperDiscountDto
Wrapper DTO for responses related to discount information, including status, response code, message, and discount details.
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
DTO representing a discount with associated details.
effects object[]
List of effects (EscompteDto) associated with the discount.
Account number associated with the effect.
12345678
Type of the effect (e.g., Bill, Invoice).
Bill
Date when the effect was submitted.
Due date for the effect.
Bordereau number associated with the effect.
BD12345
Effect number (e.g., Invoice number).
EF12345
Third-party identifier associated with the effect.
Company XYZ
Amount per submission for the effect.
5000
Formatted amount per submission.
5,000.00
Currency type for the effect amount.
USD
Branch code associated with the effect.
001
Account radical associated with the effect.
78654382
Currency for the discount.
USD
Total amount of the discount.
15000
Total number of elements in the discount.
5
Formatted total amount of the discount.
15,000.00
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": {
"effects": [
{
"accountNumber": "12345678",
"effectType": "Bill",
"submissionDate": "2024-07-29T15:51:28.071Z",
"dueDate": "2024-07-29T15:51:28.071Z",
"bordereauNumber": "BD12345",
"effectNumber": "EF12345",
"thirdParty": "Company XYZ",
"amountPerSubmission": 5000,
"formattedAmountPerSubmission": "5,000.00",
"currency": "USD",
"branchCode": "001",
"accountRadical": "78654382"
}
],
"currency": "USD",
"totalAmount": 15000,
"totalElement": 5,
"formattedTotalAmount": "15,000.00"
},
"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"
}