# LoanProductsConfigurationApi

All URIs are relative to *http://localhost:8889/api*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**get**](#get) | **GET** /configuration/loanproducts.yaml | Allows you to get or update the loan products configuration.|
|[**update**](#update) | **PUT** /configuration/loanproducts.yaml | Update loan products configuration|

# **get**
> LoanProductsConfiguration get()


### Example

```typescript
import {
    LoanProductsConfigurationApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new LoanProductsConfigurationApi(configuration);

let type: Array<'FIXED_TERM_LOAN' | 'DYNAMIC_TERM_LOAN' | 'INTEREST_FREE_LOAN' | 'TRANCHED_LOAN' | 'REVOLVING_CREDIT' | 'INTEREST_ONLY_EQUAL_INSTALLMENTS' | 'DYNAMIC_MORTGAGE' | 'REVOLVING_CREDIT_CARD'>; //The product type of the loan products to be returned. If the parameter is absent, all the loan products will be returned. (optional) (default to undefined)

const { status, data } = await apiInstance.get(
    type
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **type** | **Array<&#39;FIXED_TERM_LOAN&#39; &#124; &#39;DYNAMIC_TERM_LOAN&#39; &#124; &#39;INTEREST_FREE_LOAN&#39; &#124; &#39;TRANCHED_LOAN&#39; &#124; &#39;REVOLVING_CREDIT&#39; &#124; &#39;INTEREST_ONLY_EQUAL_INSTALLMENTS&#39; &#124; &#39;DYNAMIC_MORTGAGE&#39; &#124; &#39;REVOLVING_CREDIT_CARD&#39;>** | The product type of the loan products to be returned. If the parameter is absent, all the loan products will be returned. | (optional) defaults to undefined|


### Return type

**LoanProductsConfiguration**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+yaml


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Loan products configuration returned. |  -  |
|**400** | A validation error occurred. |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **update**
> update()


### Example

```typescript
import {
    LoanProductsConfigurationApi,
    Configuration,
    LoanProductsConfiguration
} from './api';

const configuration = new Configuration();
const apiInstance = new LoanProductsConfigurationApi(configuration);

let xMambuAsync: boolean; // (optional) (default to undefined)
let xMambuCallback: string; // (optional) (default to undefined)
let loanProductsConfiguration: LoanProductsConfiguration; // (optional)

const { status, data } = await apiInstance.update(
    xMambuAsync,
    xMambuCallback,
    loanProductsConfiguration
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **loanProductsConfiguration** | **LoanProductsConfiguration**|  | |
| **xMambuAsync** | [**boolean**] |  | (optional) defaults to undefined|
| **xMambuCallback** | [**string**] |  | (optional) defaults to undefined|


### Return type

void (empty response body)

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: application/yaml
 - **Accept**: application/vnd.mambu.v2+yaml


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Loan products configuration updated. |  -  |
|**202** | The request has been accepted for processing. |  -  |
|**400** | A validation error occurred. |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Configuration not found. |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

