keithwoodlock commented on Bug MIFOSX-171

Madhukar, issue #1:

Unable to create fixed deposit product through api using api documentation provided example request:

{
"locale": "en", "name": "Test", "description": "A new fixed deposit product.", "currencyCode": "USD", "digitsAfterDecimal": "2", "minimumBalance": "100", "maximumBalance": "1,000", "tenureInMonths": "12", "renewalAllowed": "true", "preClosureAllowed": "false", "interestCompoundingAllowed": "true", "isLockinPeriodAllowed": "false", "maturityDefaultInterestRate": "12", "maturityMinInterestRate": "8", "maturityMaxInterestRate": "12", "preClosureInterestRate": "6", "interestCompoundedEvery": "1", "interestCompoundedEveryPeriodType": "2", "lockinPeriod": "2", "lockinPeriodType": "2"
}

I get the following result:


{
  "developerMessage": "The request was invalid. This typically will happen due to validation errors which are provided.",
  "developerDocLink": "https://github.com/keithwoodlock/mifosx/wiki/HTTP-API-Error-codes",
  "httpStatusCode": "400",
  "defaultUserMessage": "Validation errors exist.",
  "userMessageGlobalisationCode": "validation.msg.validation.errors.exist",
  "errors": [
    {
      "developerMessage": "The parameter preClosureAllowed must be set as true or false.",
      "defaultUserMessage": "The parameter preClosureAllowed must be set as true or false.",
      "userMessageGlobalisationCode": "validation.msg.deposit.product.preClosureAllowed.must.be.true.or.false",
      "parameterName": "preClosureAllowed",
      "value": null,
      "args": []
    },
    {
      "developerMessage": "The parameter isLockinPeriodAllowed must be set as true or false.",
      "defaultUserMessage": "The parameter isLockinPeriodAllowed must be set as true or false.",
      "userMessageGlobalisationCode": "validation.msg.deposit.product.isLockinPeriodAllowed.must.be.true.or.false",
      "parameterName": "isLockinPeriodAllowed",
      "value": null,
      "args": []
    }
  ]
}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to