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