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/SUCCESSMessage describing the response
Request failed/Request successfulCode message describing the response
ERR-001/SUC-001data object
DTO representing a discount with associated details.
effects object[]
List of effects (EscompteDto) associated with the discount.
Account number associated with the effect.
12345678Type of the effect (e.g., Bill, Invoice).
BillDate when the effect was submitted.
Due date for the effect.
Bordereau number associated with the effect.
BD12345Effect number (e.g., Invoice number).
EF12345Third-party identifier associated with the effect.
Company XYZAmount per submission for the effect.
5000Formatted amount per submission.
5,000.00Currency type for the effect amount.
USDBranch code associated with the effect.
001Account radical associated with the effect.
78654382Currency for the discount.
USDTotal amount of the discount.
15000Total number of elements in the discount.
5Formatted total amount of the discount.
15,000.00error object
Detailed information about the error response
Error code
ERR-142Error message
Resource not found / Internal server errordetails object[]
List of error details
Error code
ER4001Detailed error message
Invalid inputTarget of the error
usernameList 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"
}