# NodeSwaggerApi.CompanyApi

All URIs are relative to *https://api.supremepay.lk:3011/api/admin*

Method | HTTP request | Description
------------- | ------------- | -------------
[**deleteContact**](CompanyApi.md#deleteContact) | **DELETE** /admin/company/profile/contacts/{id} | 
[**deleteImage**](CompanyApi.md#deleteImage) | **DELETE** /admin/company/profile/images/{id} | 
[**updateImage**](CompanyApi.md#updateImage) | **PUT** /admin/company/profile/images | 
[**updateProfile**](CompanyApi.md#updateProfile) | **POST** /admin/company/profile | 
[**viewProfile**](CompanyApi.md#viewProfile) | **GET** /admin/company/profile | 


<a name="deleteContact"></a>
# **deleteContact**
> CompanyProfile deleteContact(id)



delete contact from company profile

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');

var apiInstance = new NodeSwaggerApi.CompanyApi();

var id = "id_example"; // String | contact id to remove


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deleteContact(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| contact id to remove | 

### Return type

[**CompanyProfile**](CompanyProfile.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="deleteImage"></a>
# **deleteImage**
> CompanyProfile deleteImage(id)



delete image from company profile

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');

var apiInstance = new NodeSwaggerApi.CompanyApi();

var id = "id_example"; // String | image id to remove


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.deleteImage(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| image id to remove | 

### Return type

[**CompanyProfile**](CompanyProfile.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="updateImage"></a>
# **updateImage**
> CompanyProfile updateImage(image, payload)



update company profile images

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new NodeSwaggerApi.CompanyApi();

var image = "/path/to/file.txt"; // File | The file to upload

var payload = "payload_example"; // String | form data to process


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateImage(image, payload, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **image** | **File**| The file to upload | 
 **payload** | **String**| form data to process | 

### Return type

[**CompanyProfile**](CompanyProfile.md)

### Authorization

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

### HTTP request headers

 - **Content-Type**: multipart/form-data
 - **Accept**: application/json, application/xml

<a name="updateProfile"></a>
# **updateProfile**
> CompanyProfile updateProfile(profile)



update company profile informations

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new NodeSwaggerApi.CompanyApi();

var profile = new NodeSwaggerApi.CompanyProfile(); // CompanyProfile | json body profile model


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateProfile(profile, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **profile** | [**CompanyProfile**](CompanyProfile.md)| json body profile model | 

### Return type

[**CompanyProfile**](CompanyProfile.md)

### Authorization

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

### HTTP request headers

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

<a name="viewProfile"></a>
# **viewProfile**
> CompanyProfile viewProfile()



view company profile informations

### Example
```javascript
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

var apiInstance = new NodeSwaggerApi.CompanyApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.viewProfile(callback);
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**CompanyProfile**](CompanyProfile.md)

### Authorization

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

### HTTP request headers

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

