ds/Loan.js

  1. /**
  2. * @fileoverview Exposed data type for use outside of VdsClient.
  3. * All properties should be exposed to allow use from uncompiled
  4. * code.
  5. *
  6. * @author anders.rejdebrant@spark-vision.com (Anders Rejdebrant)
  7. */
  8. goog.provide('spv.ds.Loan');
  9. /**
  10. * @export
  11. * @struct
  12. * @constructor
  13. * @param {Number} arrangement_fee
  14. * @param {string} currency
  15. * @param {string} currency_monthly
  16. * @param {string} currency_position
  17. * @param {Number} down_payment
  18. * @param {Number} down_payment_ratio_max
  19. * @param {Number} down_payment_ratio_min
  20. * @param {Number} interest_rate
  21. * @param {Number} interest_rate_max
  22. * @param {Number} interest_rate_min
  23. * @param {Number} invoice_fee
  24. * @param {Number} monthly_loan_price
  25. * @param {Number} number_of_months
  26. * @param {Number} number_of_months_max
  27. * @param {Number} number_of_months_min
  28. * @param {Number} total_purchase_price
  29. */
  30. spv.ds.Loan = function(
  31. arrangement_fee,
  32. currency,
  33. currency_monthly,
  34. currency_position,
  35. down_payment,
  36. down_payment_ratio_max,
  37. down_payment_ratio_min,
  38. interest_rate,
  39. interest_rate_max,
  40. interest_rate_min,
  41. invoice_fee,
  42. monthly_loan_price,
  43. number_of_months,
  44. number_of_months_max,
  45. number_of_months_min,
  46. total_purchase_price)
  47. {
  48. /**
  49. * @type {Number}
  50. * @nocollapse
  51. */
  52. this.arrangement_fee = arrangement_fee;
  53. /**
  54. * @type {string}
  55. * @nocollapse
  56. */
  57. this.currency = currency;
  58. /**
  59. * @type {string}
  60. * @nocollapse
  61. */
  62. this.currency_monthly = currency_monthly;
  63. /**
  64. * @type {string}
  65. * @nocollapse
  66. */
  67. this.currency_position = currency_position;
  68. /**
  69. * @type {Number}
  70. * @nocollapse
  71. */
  72. this.down_payment = down_payment;
  73. /**
  74. * @type {Number}
  75. * @nocollapse
  76. */
  77. this.down_payment_ratio_max = down_payment_ratio_max;
  78. /**
  79. * @type {Number}
  80. * @nocollapse
  81. */
  82. this.down_payment_ratio_min = down_payment_ratio_min;
  83. /**
  84. * @type {Number}
  85. * @nocollapse
  86. */
  87. this.interest_rate = interest_rate;
  88. /**
  89. * @type {Number}
  90. * @nocollapse
  91. */
  92. this.interest_rate_max = interest_rate_max;
  93. /**
  94. * @type {Number}
  95. * @nocollapse
  96. */
  97. this.interest_rate_min = interest_rate_min;
  98. /**
  99. * @type {Number}
  100. * @nocollapse
  101. */
  102. this.invoice_fee = invoice_fee;
  103. /**
  104. * @type {Number}
  105. * @nocollapse
  106. */
  107. this.monthly_loan_price = monthly_loan_price;
  108. /**
  109. * @type {Number}
  110. * @nocollapse
  111. */
  112. this.number_of_months = number_of_months;
  113. /**
  114. * @type {Number}
  115. * @nocollapse
  116. */
  117. this.number_of_months_max = number_of_months_max;
  118. /**
  119. * @type {Number}
  120. * @nocollapse
  121. */
  122. this.number_of_months_min = number_of_months_min;
  123. /**
  124. * @type {Number}
  125. * @nocollapse
  126. */
  127. this.total_purchase_price = total_purchase_price;
  128. };