Action - getSettings

Purpose:

When invoked, this action will allow the user to retrieve settings.

Inputs:

Inputs
settingsGroup
Data type : string
Purpose : specify the the settings group caller
Allowed values : "lender:company"
Example : "settingsGroup": "lender:company"

Returns:

Type: Promise

==> Resolved:

The settings corresponding to the requested settignsGroup. Below is a sample of the lender configured:

{
    "category": "Feature",
    "setting": "EnabledCreditScoreModels",
    "valueType": "array",
    "value": [
        "FICOClassic",
        "FICO10T",
        "VantageScore4"
    ]
}

If the user does not have permission, the Promise will resolve to an empty object - {}

==> Rejected

An error is raised, containing a message attribute with details on the error that occurred

{
  message: "{{ERROR_DETAILS}}"
}