# TinapiMinka.SignerApi

All URIs are relative to *https://achtin-tst.minka.io/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**callAction**](SignerApi.md#callAction) | **POST** /signer/{userAddress}/router/{actionId}/action | Call action in user&#39;s Bank
[**callDownload**](SignerApi.md#callDownload) | **POST** /signer/{solicitanteAddress}/router/{actionId}/download | Call credit in user&#39;s bank
[**callStatus**](SignerApi.md#callStatus) | **POST** /signer/{solicitanteAddress}/router/{actionId}/status | Notify status
[**callUpload**](SignerApi.md#callUpload) | **POST** /signer/{userAddress}/router/{actionId}/upload | Call debit in user&#39;s bank
[**createSigner**](SignerApi.md#createSigner) | **POST** /signer | Crea un signer
[**deleteSignerByAddress**](SignerApi.md#deleteSignerByAddress) | **DELETE** /signer/{signerAddress} | Delete signer
[**getSignerByAddress**](SignerApi.md#getSignerByAddress) | **GET** /signer/{signerAddress} | Obtiene un signer por address
[**getSigners**](SignerApi.md#getSigners) | **GET** /signer | Obtiene un signer
[**updateSigner**](SignerApi.md#updateSigner) | **PUT** /signer/{signerAddress} | Actualiza un signer


<a name="callAction"></a>
# **callAction**
> CreateTransferResponse callAction(userAddress, actionId)

Call action in user&#39;s Bank

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var userAddress = "userAddress_example"; // String | 
var actionId = "actionId_example"; // String | 
apiInstance.callAction(userAddress, actionId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userAddress** | **String**|  | 
 **actionId** | **String**|  | 

### Return type

[**CreateTransferResponse**](CreateTransferResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="callDownload"></a>
# **callDownload**
> CreateTransferResponse callDownload(API_KEY, solicitanteAddress, actionId)

Call credit in user&#39;s bank

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var API_KEY = "API_KEY_example"; // String | 
var solicitanteAddress = "solicitanteAddress_example"; // String | 
var actionId = "actionId_example"; // String | 
apiInstance.callDownload(API_KEY, solicitanteAddress, actionId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **API_KEY** | **String**|  | 
 **solicitanteAddress** | **String**|  | 
 **actionId** | **String**|  | 

### Return type

[**CreateTransferResponse**](CreateTransferResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="callStatus"></a>
# **callStatus**
> ErrorResponse callStatus(API_KEY, solicitanteAddress, actionId)

Notify status

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var API_KEY = "API_KEY_example"; // String | 
var solicitanteAddress = "solicitanteAddress_example"; // String | 
var actionId = "actionId_example"; // String | 
apiInstance.callStatus(API_KEY, solicitanteAddress, actionId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **API_KEY** | **String**|  | 
 **solicitanteAddress** | **String**|  | 
 **actionId** | **String**|  | 

### Return type

[**ErrorResponse**](ErrorResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="callUpload"></a>
# **callUpload**
> CreateTransferResponse callUpload(userAddress, actionId)

Call debit in user&#39;s bank

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var userAddress = "userAddress_example"; // String | 
var actionId = "actionId_example"; // String | 
apiInstance.callUpload(userAddress, actionId).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userAddress** | **String**|  | 
 **actionId** | **String**|  | 

### Return type

[**CreateTransferResponse**](CreateTransferResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="createSigner"></a>
# **createSigner**
> SignerResponse createSigner(signerRequest)

Crea un signer

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var signerRequest = new TinapiMinka.SignerRequest(); // SignerRequest | 
apiInstance.createSigner(signerRequest).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **signerRequest** | [**SignerRequest**](SignerRequest.md)|  | 

### Return type

[**SignerResponse**](SignerResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="deleteSignerByAddress"></a>
# **deleteSignerByAddress**
> SignerResponse deleteSignerByAddress(signerAddress)

Delete signer

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var signerAddress = "signerAddress_example"; // String | 
apiInstance.deleteSignerByAddress(signerAddress).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **signerAddress** | **String**|  | 

### Return type

[**SignerResponse**](SignerResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getSignerByAddress"></a>
# **getSignerByAddress**
> SignerResponse getSignerByAddress(signerAddress)

Obtiene un signer por address

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var signerAddress = "signerAddress_example"; // String | 
apiInstance.getSignerByAddress(signerAddress).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **signerAddress** | **String**|  | 

### Return type

[**SignerResponse**](SignerResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getSigners"></a>
# **getSigners**
> SignerListResponse getSigners(customQuery)

Obtiene un signer

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var customQuery = "customQuery_example"; // String | 
apiInstance.getSigners(customQuery).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **customQuery** | **String**|  | 

### Return type

[**SignerListResponse**](SignerListResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="updateSigner"></a>
# **updateSigner**
> SignerResponse updateSigner(signerAddress, opts)

Actualiza un signer

### Example
```javascript
var TinapiMinka = require('tinapi_minka');
var defaultClient = TinapiMinka.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure API key authorization: XNonce
var XNonce = defaultClient.authentications['XNonce'];
XNonce.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//XNonce.apiKeyPrefix = 'Token';
// Configure OAuth2 access token for authorization: oAuth2ClientCredentials
var oAuth2ClientCredentials = defaultClient.authentications['oAuth2ClientCredentials'];
oAuth2ClientCredentials.accessToken = 'YOUR ACCESS TOKEN';

var apiInstance = new TinapiMinka.SignerApi();
var signerAddress = "signerAddress_example"; // String | 
var opts = {
  'signerRequest': new TinapiMinka.SignerRequest() // SignerRequest | 
};
apiInstance.updateSigner(signerAddress, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **signerAddress** | **String**|  | 
 **signerRequest** | [**SignerRequest**](SignerRequest.md)|  | [optional] 

### Return type

[**SignerResponse**](SignerResponse.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth), [XNonce](../README.md#XNonce), [oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

