# JiboHotelServicesApi.CreditCardApi

All URIs are relative to *https://jiboinroom.accpmo.com/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**creditCardGet**](CreditCardApi.md#creditCardGet) | **GET** /CreditCard | Get CreditCard Data
[**creditCardPost**](CreditCardApi.md#creditCardPost) | **POST** /CreditCard | Post CreditCard Data


<a name="creditCardGet"></a>
# **creditCardGet**
> InlineResponse2002 creditCardGet(hotelID, roomID)

Get CreditCard Data

The Get CreditCard endpoint returns the CreditCard Data saved during the Check-In using the hotel_id and the room_id where Jibo is placed. 

### Example
```javascript
var JiboHotelServicesApi = require('jibo_hotel_services_api');

var apiInstance = new JiboHotelServicesApi.CreditCardApi();

var hotelID = "hotelID_example"; // String | Hotel where JIBO is placed at the moment.

var roomID = "roomID_example"; // String | JIBO's actual room location.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelID** | **String**| Hotel where JIBO is placed at the moment. | 
 **roomID** | **String**| JIBO&#39;s actual room location. | 

### Return type

[**InlineResponse2002**](InlineResponse2002.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="creditCardPost"></a>
# **creditCardPost**
> &#39;String&#39; creditCardPost(roomId, ccData)

Post CreditCard Data

The Post CreditCard endpoint posts the CreditCard Data in the PMS or in the DataBase of the Hotel. 

### Example
```javascript
var JiboHotelServicesApi = require('jibo_hotel_services_api');

var apiInstance = new JiboHotelServicesApi.CreditCardApi();

var roomId = "roomId_example"; // String | Unique ID of the room.

var ccData = new JiboHotelServicesApi.CcData(); // CcData | Credit Card Data


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **roomId** | **String**| Unique ID of the room. | 
 **ccData** | [**CcData**](CcData.md)| Credit Card Data | 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP request headers

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

