Updated Json Response for Array
This commit is contained in:
+55
-5
@@ -1157,7 +1157,7 @@
|
||||
"description": "Textual description of provided result code"
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
"SelectOffersRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -1332,24 +1332,74 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"example": ["2022-11-30"],
|
||||
"example": ["2022-11-30", "2022-12-30", "2023-01-29"],
|
||||
"description": "Array of recommended payment dates for all installments in yyyy-mm-dd format"
|
||||
},
|
||||
"installmentAmount": {
|
||||
"type": "number",
|
||||
"format": "double",
|
||||
"example": 11000.0,
|
||||
"example": 4021.15,
|
||||
"description": "Amount to be paid each month (upfrontPayment not included)"
|
||||
},
|
||||
"totalRepaymentAmount": {
|
||||
"type": "number",
|
||||
"format": "double",
|
||||
"example": 11000.0,
|
||||
"example": 12063.45,
|
||||
"description": "Total amount to be paid by customer. All installment amounts + upfront payment"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Array of offers"
|
||||
"description": "Array of offers",
|
||||
"example": [
|
||||
{
|
||||
"offerId": "14451",
|
||||
"productId": "2030",
|
||||
"amount": 10000.0,
|
||||
"upfrontPayment": 1000.0,
|
||||
"interestRate": 3.0,
|
||||
"ManagementRate": 1.0,
|
||||
"ManagementFee": 1.0,
|
||||
"InsuranceRate": 1.0,
|
||||
"InsuranceFee": 100.0,
|
||||
"VATRate": 7.5,
|
||||
"VATamount": 100.0,
|
||||
"recommendedRepaymentDates": ["2022-11-30"],
|
||||
"installmentAmount": 11000.0,
|
||||
"totalRepaymentAmount": 11000.0
|
||||
},
|
||||
{
|
||||
"offerId": "16645",
|
||||
"productId": "2060",
|
||||
"amount": 10000.0,
|
||||
"upfrontPayment": 0.0,
|
||||
"interestRate": 3.0,
|
||||
"ManagementRate": 1.0,
|
||||
"ManagementFee": 1.0,
|
||||
"InsuranceRate": 1.0,
|
||||
"InsuranceFee": 100.0,
|
||||
"VATRate": 7.5,
|
||||
"VATamount": 100.0,
|
||||
"recommendedRepaymentDates": ["2022-11-30", "2023-12-30"],
|
||||
"installmentAmount": 5761.9,
|
||||
"totalRepaymentAmount": 11523.8
|
||||
},
|
||||
{
|
||||
"offerId": "122212",
|
||||
"productId": "2090",
|
||||
"amount": 10000.0,
|
||||
"upfrontPayment": 0.0,
|
||||
"interestRate": 3.0,
|
||||
"ManagementRate": 1.0,
|
||||
"ManagementFee": 1.0,
|
||||
"InsuranceRate": 1.0,
|
||||
"InsuranceFee": 100.0,
|
||||
"VATRate": 7.5,
|
||||
"VATamount": 100.0,
|
||||
"recommendedRepaymentDates": ["2022-11-30", "2022-12-30", "2023-01-29"],
|
||||
"installmentAmount": 4021.15,
|
||||
"totalRepaymentAmount": 12063.45
|
||||
}
|
||||
]
|
||||
},
|
||||
"resultCode": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user