docs(form): add loan_multiplier to /form response
Indicate the user-entered amount must be a multiple of this value (e.g. 100000) for frontend validation.
This commit is contained in:
@@ -451,7 +451,8 @@ Struct: `usecase.LoaFormRequest` (`internal/interfaces/usecase/loa.go:20`)
|
|||||||
"product_type": "Jcb Platinum",
|
"product_type": "Jcb Platinum",
|
||||||
"cc_image_slim": "http://.../card/jcb_platinum_slim.png",
|
"cc_image_slim": "http://.../card/jcb_platinum_slim.png",
|
||||||
"minimum_loan": 1000000,
|
"minimum_loan": 1000000,
|
||||||
"maximum_loan": 20000000
|
"maximum_loan": 20000000,
|
||||||
|
"loan_multiplier": 100000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -460,6 +461,8 @@ Struct: `usecase.LoaFormRequest` (`internal/interfaces/usecase/loa.go:20`)
|
|||||||
|
|
||||||
`data` is `usecase.LoaFormResponse` (`internal/interfaces/usecase/loa.go:30`).
|
`data` is `usecase.LoaFormResponse` (`internal/interfaces/usecase/loa.go:30`).
|
||||||
|
|
||||||
|
> **Frontend validation:** the user-entered `amount` must be a multiple of `loan_multiplier` (e.g. if `100000`, only values like `100000`, `200000`, `1500000`, … are accepted).
|
||||||
|
|
||||||
### Error Codes
|
### Error Codes
|
||||||
|
|
||||||
| Code | When |
|
| Code | When |
|
||||||
|
|||||||
Reference in New Issue
Block a user