# JiboHotelServicesApi.RoomCheckOutApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**checkOutPost**](RoomCheckOutApi.md#checkOutPost) | **POST** /CheckOut | Room Check-Out Execution and Payment
[**expendCheckOutPost**](RoomCheckOutApi.md#expendCheckOutPost) | **POST** /ExpendCheckOut | Room Check-Out Time Expansion
[**invoiceGet**](RoomCheckOutApi.md#invoiceGet) | **GET** /Invoice | Get Room Check-Out Information


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

Room Check-Out Execution and Payment

The Check-Out Payment endpoint pays the Bill using PayPal API with credit card information stored in the DB 

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

var apiInstance = new JiboHotelServicesApi.RoomCheckOutApi();

var hotelId = "hotelId_example"; // String | Unique ID of the hotel.

var roomId = "roomId_example"; // String | Room Id where is the customer and JIBO.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelId** | **String**| Unique ID of the hotel. | 
 **roomId** | **String**| Room Id where is the customer and JIBO. | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="expendCheckOutPost"></a>
# **expendCheckOutPost**
> InlineResponse2005 expendCheckOutPost(hotelId, roomId)

Room Check-Out Time Expansion

The Check-Out Payment endpoint pays the Bill using PayPal API with credit card information stored in the DB 

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

var apiInstance = new JiboHotelServicesApi.RoomCheckOutApi();

var hotelId = "hotelId_example"; // String | Unique ID of the hotel.

var roomId = "roomId_example"; // String | Room Id where is the customer and JIBO.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelId** | **String**| Unique ID of the hotel. | 
 **roomId** | **String**| Room Id where is the customer and JIBO. | 

### Return type

[**InlineResponse2005**](InlineResponse2005.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="invoiceGet"></a>
# **invoiceGet**
> InlineResponse2005 invoiceGet(hotelId, roomId)

Get Room Check-Out Information

The Invoice endpoint returns information about the *Bill* including the detailed description of the for a given room at a hotel. 

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

var apiInstance = new JiboHotelServicesApi.RoomCheckOutApi();

var hotelId = "hotelId_example"; // String | Unique ID of the hotel.

var roomId = "roomId_example"; // String | Room Id where is the customer and JIBO.


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelId** | **String**| Unique ID of the hotel. | 
 **roomId** | **String**| Room Id where is the customer and JIBO. | 

### Return type

[**InlineResponse2005**](InlineResponse2005.md)

### Authorization

No authorization required

### HTTP request headers

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

