-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.ts
36 lines (32 loc) · 1.21 KB
/
constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export default {
minimumDownPayment: 0.05,
price: {
nonPositive: "price must be positive",
invalid: "invalid price",
undefined: "price is undefined"
},
downPayment: {
nonPositive: "down payment must be positive",
insufficientDownPayment: `down payment must be at least 5% of the asking price`,
belowPrice: "down payment must be less than or equal to asking price",
invalid: "invalid down payment",
undefined: "down payment is undefined"
},
interest: {
nonPositive: "interest rate must be positive",
betweenZeroOne: "interest rate must be between 0 and 1",
invalid: "invalid interest rate",
undefined: "interest rate is undefined"
},
amortizationPeriod: {
invalidIncrement: "amortization period must be a 5 year increment between 5 and 30 years",
nonPositive: "amortization period must be positive",
invalid: "invalid amortization period",
undefined: "amortization period is undefined"
},
paymentSchedule: {
nonPositive: "payment schedule must be positive",
invalid: "invalid payment schedule",
undefined: "payment schedule is undefined"
}
}