# HivelocityApi.BillingInfoApi

All URIs are relative to *https://localhost/api/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getBillingInfoResource**](BillingInfoApi.md#getBillingInfoResource) | **GET** /billing-info/ | Return a list with all Billing Info
[**postBillingInfoResource**](BillingInfoApi.md#postBillingInfoResource) | **POST** /billing-info/ | Create verification for credit card with all Billing Info
[**putBillingInfoResource**](BillingInfoApi.md#putBillingInfoResource) | **PUT** /billing-info/ | Verify credit card with all Billing Info


<a name="getBillingInfoResource"></a>
# **getBillingInfoResource**
> [BillingInfo] getBillingInfoResource(opts)

Return a list with all Billing Info

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

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

var apiInstance = new HivelocityApi.BillingInfoApi();

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**[BillingInfo]**](BillingInfo.md)

### Authorization

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

### HTTP request headers

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

<a name="postBillingInfoResource"></a>
# **postBillingInfoResource**
> BillingInfo postBillingInfoResource(payload, opts)

Create verification for credit card with all Billing Info

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

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

var apiInstance = new HivelocityApi.BillingInfoApi();

var payload = new HivelocityApi.BillingInfoVerification(); // BillingInfoVerification | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **payload** | [**BillingInfoVerification**](BillingInfoVerification.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**BillingInfo**](BillingInfo.md)

### Authorization

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

### HTTP request headers

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

<a name="putBillingInfoResource"></a>
# **putBillingInfoResource**
> Credit putBillingInfoResource(payload, opts)

Verify credit card with all Billing Info

### Example
```javascript
var HivelocityApi = require('hivelocity_api');
var defaultClient = HivelocityApi.ApiClient.instance;

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

var apiInstance = new HivelocityApi.BillingInfoApi();

var payload = new HivelocityApi.BillingInfoVerification(); // BillingInfoVerification | 

var opts = { 
  'xFields': "xFields_example" // String | An optional fields mask
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **payload** | [**BillingInfoVerification**](BillingInfoVerification.md)|  | 
 **xFields** | **String**| An optional fields mask | [optional] 

### Return type

[**Credit**](Credit.md)

### Authorization

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

### HTTP request headers

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

