New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@revolugo/booking-api-client

Package Overview
Dependencies
Maintainers
2
Versions
2151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revolugo/booking-api-client - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0-beta.0

29

build/v1/apis/ResourceHotelRoomOffersApi.d.ts

@@ -13,3 +13,3 @@ /**

import * as runtime from '../runtime';
import { HotelRoomOffersApiResponse } from '../models';
import { HotelRoomOfferApiResponse, HotelRoomOffersApiResponse, HotelRoomOffersCreateApi } from '../models';
import { TPollerCallback } from '../../poller';

@@ -22,2 +22,5 @@ export interface HotelRoomOffersListPayload {

}
export interface HotelRoomOffersCreatePayload {
body?: HotelRoomOffersCreateApi;
}
/**

@@ -47,2 +50,16 @@ * HotelRoomOffers - interface

list(requestParameters: HotelRoomOffersListPayload, pollerCallback?: TPollerCallback, initOverrides?: RequestInit): Promise<HotelRoomOffersApiResponse>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* @summary Create Hotel Room Offer
* @param {HotelRoomOffersCreateApi} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof HotelRoomOffersInterface
*/
createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
create(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferApiResponse>;
}

@@ -63,2 +80,12 @@ /**

list(requestParameters: HotelRoomOffersListPayload, pollerCallback?: TPollerCallback, initOverrides?: RequestInit): Promise<HotelRoomOffersApiResponse>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
create(requestParameters?: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferApiResponse>;
}

@@ -65,0 +92,0 @@ /**

@@ -93,2 +93,29 @@ "use strict";

}
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
async createRaw(requestParameters, initOverrides) {
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
if (this.configuration && this.configuration.apiKey) {
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // x-api-key authentication
}
const response = await this.request({
path: `/v1/hotel_room_offers`,
method: 'POST',
headers: headerParameters,
query: (0, case_transformers_1.keysChangeCase)(queryParameters, 'snakecase'),
body: (0, case_transformers_1.keysChangeCase)(requestParameters.body, 'snakecase'),
}, initOverrides);
return await (new runtime.JSONApiResponse(response, (result) => (0, case_transformers_1.keysChangeCase)(result, 'camelcase'))).value();
}
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
async create(requestParameters = {}, initOverrides) {
return this.createRaw(requestParameters, initOverrides);
}
}

@@ -95,0 +122,0 @@ exports.HotelRoomOffers = HotelRoomOffers;

2

package.json

@@ -33,3 +33,3 @@ {

"types": "build/index.d.ts",
"version": "1.0.4"
"version": "1.1.0-beta.0"
}

@@ -20,3 +20,6 @@ /* tslint:disable */

import {
ErrorApiResponse,
HotelRoomOfferApiResponse,
HotelRoomOffersApiResponse,
HotelRoomOffersCreateApi,
} from '../models';

@@ -34,2 +37,6 @@ import { keysChangeCase } from '../../utils/case-transformers'

}
export interface HotelRoomOffersCreatePayload {
body?: HotelRoomOffersCreateApi;
}
/**

@@ -59,2 +66,16 @@ * HotelRoomOffers - interface

list(requestParameters: HotelRoomOffersListPayload, pollerCallback?: TPollerCallback, initOverrides?: RequestInit): Promise<HotelRoomOffersApiResponse>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* @summary Create Hotel Room Offer
* @param {HotelRoomOffersCreateApi} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof HotelRoomOffersInterface
*/
createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>>;
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
create(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<HotelRoomOfferApiResponse>;
}

@@ -116,2 +137,29 @@ /**

}
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
async createRaw(requestParameters: HotelRoomOffersCreatePayload, initOverrides?: RequestInit): Promise<runtime.ApiResponse<HotelRoomOfferApiResponse>> {
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
headerParameters['Content-Type'] = 'application/json';
if (this.configuration && this.configuration.apiKey) {
headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // x-api-key authentication
}
const response = await this.request({
path: `/v1/hotel_room_offers`,
method: 'POST',
headers: headerParameters,
query: keysChangeCase(queryParameters, 'snakecase'),
body: keysChangeCase(requestParameters.body, 'snakecase'),
}, initOverrides);
return await (new runtime.JSONApiResponse(response, (result) => keysChangeCase(result, 'camelcase'))).value();
}
/**
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
* Create Hotel Room Offer
*/
async create(requestParameters: HotelRoomOffersCreatePayload = {}, initOverrides?: RequestInit): Promise<HotelRoomOfferApiResponse> {
return this.createRaw(requestParameters, initOverrides);
}
}

@@ -118,0 +166,0 @@ /**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc