# DepositProductsConfigurationApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**get**](#get) | **GET** /configuration/depositproducts.yaml | Get configuration for all deposit products|
|[**update**](#update) | **PUT** /configuration/depositproducts.yaml | Update all deposit products configuration|

# **get**
> DepositProductsConfiguration get()


### Example

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

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

let type: Array<'CURRENT_ACCOUNT' | 'REGULAR_SAVINGS' | 'FIXED_DEPOSIT' | 'SAVINGS_PLAN' | 'INVESTOR_ACCOUNT'>; //The product type of the deposit products to get. When this is used multiple times it will get all the deposit products of the given types.If the parameter is absent, all the deposit products will be returned. (optional) (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **type** | **Array<&#39;CURRENT_ACCOUNT&#39; &#124; &#39;REGULAR_SAVINGS&#39; &#124; &#39;FIXED_DEPOSIT&#39; &#124; &#39;SAVINGS_PLAN&#39; &#124; &#39;INVESTOR_ACCOUNT&#39;>** | The product type of the deposit products to get. When this is used multiple times it will get all the deposit products of the given types.If the parameter is absent, all the deposit products will be returned. | (optional) defaults to undefined|


### Return type

**DepositProductsConfiguration**

### 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** | The configuration for all deposit products has been returned. |  -  |
|**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 {
    DepositProductsConfigurationApi,
    Configuration,
    DepositProductsConfiguration
} from './api';

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

let xMambuAsync: boolean; // (optional) (default to undefined)
let xMambuCallback: string; // (optional) (default to undefined)
let depositProductsConfiguration: DepositProductsConfiguration; // (optional)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **depositProductsConfiguration** | **DepositProductsConfiguration**|  | |
| **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** | The configuration for all deposit products has been updated. |  -  |
|**202** | The request has been accepted for processing. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | The configuration was 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)

