Offer id and interest amount
This commit is contained in:
@@ -123,6 +123,7 @@ class BaseService:
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
"interest": interest,
|
"interest": interest,
|
||||||
|
"interest_amount": interest_amount,
|
||||||
"management": management,
|
"management": management,
|
||||||
"insurance": insurance,
|
"insurance": insurance,
|
||||||
"vat": vat,
|
"vat": vat,
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class SelectOfferService(BaseService):
|
|||||||
insurance = charges["insurance"]
|
insurance = charges["insurance"]
|
||||||
vat = charges["vat"]
|
vat = charges["vat"]
|
||||||
repayment_amount = charges["repayment_amount"]
|
repayment_amount = charges["repayment_amount"]
|
||||||
|
interest_amount = charges["interest_amount"]
|
||||||
|
|
||||||
|
|
||||||
# Calculate the repayment dates
|
# Calculate the repayment dates
|
||||||
@@ -81,11 +82,12 @@ class SelectOfferService(BaseService):
|
|||||||
|
|
||||||
offers = [
|
offers = [
|
||||||
{
|
{
|
||||||
"offerId": offer.id,
|
"offerId": offer.offer_id,
|
||||||
"productId": product_id,
|
"productId": product_id,
|
||||||
"amount": amount,
|
"amount": amount,
|
||||||
"upfrontPayment": upfront_payment,
|
"upfrontPayment": upfront_payment,
|
||||||
"interestRate": offer.interest_rate,
|
"interestRate": offer.interest_rate,
|
||||||
|
"interestAmount": interest_amount,
|
||||||
"managementRate": offer.management_rate,
|
"managementRate": offer.management_rate,
|
||||||
"managementFee": management["fee"],
|
"managementFee": management["fee"],
|
||||||
"insuranceRate": offer.insurance_rate,
|
"insuranceRate": offer.insurance_rate,
|
||||||
|
|||||||
Reference in New Issue
Block a user