@kohost/api-client 3.0.0-beta.62 → 3.0.0-beta.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5135,6 +5135,82 @@ var require_PurchaseReservationRoomUpgrades = __commonJS({
5135
5135
  }
5136
5136
  });
5137
5137
 
5138
+ // dist/useCases/DescribeReservationLateCheckOutProducts.js
5139
+ var require_DescribeReservationLateCheckOutProducts = __commonJS({
5140
+ "dist/useCases/DescribeReservationLateCheckOutProducts.js"(exports2, module2) {
5141
+ module2.exports = /* @__PURE__ */ __name(function DescribeReservationLateCheckOutProducts2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5142
+ if (!requestData)
5143
+ requestData = {};
5144
+ const pathParams = [":id"];
5145
+ const { data, query, headers } = requestData;
5146
+ let url = "/reservations/:id/products/lateCheckOut";
5147
+ if (pathParams && data) {
5148
+ for (const param of pathParams) {
5149
+ const paramName = param.replace(":", "");
5150
+ url = url.replace(param, data[paramName]);
5151
+ }
5152
+ }
5153
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5154
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5155
+ const missing = missingParams.map((param) => param.replace(":", ""));
5156
+ return Promise.reject(
5157
+ new Error("Missing parameters: " + missing.join(", "))
5158
+ );
5159
+ }
5160
+ const config = {
5161
+ method: "get",
5162
+ url,
5163
+ ...httpConfigOptions
5164
+ };
5165
+ if (data)
5166
+ config.data = data;
5167
+ if (query)
5168
+ config.params = query;
5169
+ if (headers)
5170
+ config.headers = headers;
5171
+ return this._http.request(config);
5172
+ }, "DescribeReservationLateCheckOutProducts");
5173
+ }
5174
+ });
5175
+
5176
+ // dist/useCases/PurchaseReservationLateCheckOutProducts.js
5177
+ var require_PurchaseReservationLateCheckOutProducts = __commonJS({
5178
+ "dist/useCases/PurchaseReservationLateCheckOutProducts.js"(exports2, module2) {
5179
+ module2.exports = /* @__PURE__ */ __name(function PurchaseReservationLateCheckOutProducts2(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5180
+ if (!requestData)
5181
+ requestData = {};
5182
+ const pathParams = [":id"];
5183
+ const { data, query, headers } = requestData;
5184
+ let url = "/reservations/:id/products/lateCheckOut";
5185
+ if (pathParams && data) {
5186
+ for (const param of pathParams) {
5187
+ const paramName = param.replace(":", "");
5188
+ url = url.replace(param, data[paramName]);
5189
+ }
5190
+ }
5191
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5192
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5193
+ const missing = missingParams.map((param) => param.replace(":", ""));
5194
+ return Promise.reject(
5195
+ new Error("Missing parameters: " + missing.join(", "))
5196
+ );
5197
+ }
5198
+ const config = {
5199
+ method: "post",
5200
+ url,
5201
+ ...httpConfigOptions
5202
+ };
5203
+ if (data)
5204
+ config.data = data;
5205
+ if (query)
5206
+ config.params = query;
5207
+ if (headers)
5208
+ config.headers = headers;
5209
+ return this._http.request(config);
5210
+ }, "PurchaseReservationLateCheckOutProducts");
5211
+ }
5212
+ });
5213
+
5138
5214
  // dist/useCases/OCRDocument.js
5139
5215
  var require_OCRDocument = __commonJS({
5140
5216
  "dist/useCases/OCRDocument.js"(exports2, module2) {
@@ -5917,6 +5993,8 @@ var DescribeReservationEarlyCheckInProducts = require_DescribeReservationEarlyCh
5917
5993
  var PurchaseReservationEarlyCheckInProducts = require_PurchaseReservationEarlyCheckInProducts();
5918
5994
  var DescribeReservationRoomUpgrades = require_DescribeReservationRoomUpgrades();
5919
5995
  var PurchaseReservationRoomUpgrades = require_PurchaseReservationRoomUpgrades();
5996
+ var DescribeReservationLateCheckOutProducts = require_DescribeReservationLateCheckOutProducts();
5997
+ var PurchaseReservationLateCheckOutProducts = require_PurchaseReservationLateCheckOutProducts();
5920
5998
  var OCRDocument = require_OCRDocument();
5921
5999
  var CreateOrganization = require_CreateOrganization();
5922
6000
  var AdminUpdateCustomer = require_AdminUpdateCustomer();
@@ -6181,6 +6259,8 @@ KohostApiClient.prototype.DescribeReservationEarlyCheckInProducts = DescribeRese
6181
6259
  KohostApiClient.prototype.PurchaseReservationEarlyCheckInProducts = PurchaseReservationEarlyCheckInProducts;
6182
6260
  KohostApiClient.prototype.DescribeReservationRoomUpgrades = DescribeReservationRoomUpgrades;
6183
6261
  KohostApiClient.prototype.PurchaseReservationRoomUpgrades = PurchaseReservationRoomUpgrades;
6262
+ KohostApiClient.prototype.DescribeReservationLateCheckOutProducts = DescribeReservationLateCheckOutProducts;
6263
+ KohostApiClient.prototype.PurchaseReservationLateCheckOutProducts = PurchaseReservationLateCheckOutProducts;
6184
6264
  KohostApiClient.prototype.OCRDocument = OCRDocument;
6185
6265
  KohostApiClient.prototype.CreateOrganization = CreateOrganization;
6186
6266
  KohostApiClient.prototype.AdminUpdateCustomer = AdminUpdateCustomer;
@@ -19,6 +19,8 @@ export interface Property {
19
19
  * Reference (id) to the organization that owns this property
20
20
  */
21
21
  organization: string;
22
+ checkInTime?: string;
23
+ checkOutTime?: string;
22
24
  address?: {
23
25
  street?: string;
24
26
  city?: string;
@@ -70,14 +72,24 @@ export interface Property {
70
72
  identification?: unknown;
71
73
  earlyCheckIn?: {
72
74
  dynamic: boolean;
73
- checkInTime: string;
74
- checkOutTime: string;
75
+ minimumPrice?: number;
76
+ maximumPrice?: number;
77
+ priceRatioPerHour?: number;
75
78
  [k: string]: unknown;
76
79
  };
77
80
  roomUpgrades?: unknown;
78
81
  [k: string]: unknown;
79
82
  };
80
- CheckOut?: unknown;
83
+ CheckOut?: {
84
+ lateCheckOut?: {
85
+ dynamic: boolean;
86
+ minimumPrice?: number;
87
+ maximumPrice?: number;
88
+ priceRatioPerHour?: number;
89
+ [k: string]: unknown;
90
+ };
91
+ [k: string]: unknown;
92
+ };
81
93
  Concierge?: unknown;
82
94
  DigitalKey?: {
83
95
  system?: "salto";
@@ -29,6 +29,12 @@
29
29
  "type": "string",
30
30
  "description": "Reference (id) to the organization that owns this property"
31
31
  },
32
+ "checkInTime": {
33
+ "type": "string"
34
+ },
35
+ "checkOutTime": {
36
+ "type": "string"
37
+ },
32
38
  "address": {
33
39
  "type": "object",
34
40
  "properties": {
@@ -187,24 +193,55 @@
187
193
  "identification": {},
188
194
  "earlyCheckIn": {
189
195
  "type": "object",
190
- "required": ["dynamic", "checkInTime", "checkOutTime"],
196
+ "required": ["dynamic"],
191
197
  "properties": {
192
198
  "dynamic": {
193
199
  "type": "boolean",
194
200
  "default": false
195
201
  },
196
- "checkInTime": {
197
- "type": "string"
202
+ "minimumPrice": {
203
+ "type": "number",
204
+ "default": 10
205
+ },
206
+ "maximumPrice": {
207
+ "type": "number",
208
+ "default": 50
198
209
  },
199
- "checkOutTime": {
200
- "type": "string"
210
+ "priceRatioPerHour": {
211
+ "type": "number",
212
+ "default": 0.1
201
213
  }
202
214
  }
203
215
  },
204
216
  "roomUpgrades": {}
205
217
  }
206
218
  },
207
- "CheckOut": {},
219
+ "CheckOut": {
220
+ "properties": {
221
+ "lateCheckOut": {
222
+ "type": "object",
223
+ "required": ["dynamic"],
224
+ "properties": {
225
+ "dynamic": {
226
+ "type": "boolean",
227
+ "default": false
228
+ },
229
+ "minimumPrice": {
230
+ "type": "number",
231
+ "default": 10
232
+ },
233
+ "maximumPrice": {
234
+ "type": "number",
235
+ "default": 50
236
+ },
237
+ "priceRatioPerHour": {
238
+ "type": "number",
239
+ "default": 0.1
240
+ }
241
+ }
242
+ }
243
+ }
244
+ },
208
245
  "Concierge": {},
209
246
  "DigitalKey": {
210
247
  "type": "object",
@@ -5135,6 +5135,82 @@ var require_PurchaseReservationRoomUpgrades = __commonJS({
5135
5135
  }
5136
5136
  });
5137
5137
 
5138
+ // dist/useCases/DescribeReservationLateCheckOutProducts.js
5139
+ var require_DescribeReservationLateCheckOutProducts = __commonJS({
5140
+ "dist/useCases/DescribeReservationLateCheckOutProducts.js"(exports, module) {
5141
+ module.exports = /* @__PURE__ */ __name(function DescribeReservationLateCheckOutProducts(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5142
+ if (!requestData)
5143
+ requestData = {};
5144
+ const pathParams = [":id"];
5145
+ const { data, query, headers } = requestData;
5146
+ let url = "/reservations/:id/products/lateCheckOut";
5147
+ if (pathParams && data) {
5148
+ for (const param of pathParams) {
5149
+ const paramName = param.replace(":", "");
5150
+ url = url.replace(param, data[paramName]);
5151
+ }
5152
+ }
5153
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5154
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5155
+ const missing = missingParams.map((param) => param.replace(":", ""));
5156
+ return Promise.reject(
5157
+ new Error("Missing parameters: " + missing.join(", "))
5158
+ );
5159
+ }
5160
+ const config = {
5161
+ method: "get",
5162
+ url,
5163
+ ...httpConfigOptions
5164
+ };
5165
+ if (data)
5166
+ config.data = data;
5167
+ if (query)
5168
+ config.params = query;
5169
+ if (headers)
5170
+ config.headers = headers;
5171
+ return this._http.request(config);
5172
+ }, "DescribeReservationLateCheckOutProducts");
5173
+ }
5174
+ });
5175
+
5176
+ // dist/useCases/PurchaseReservationLateCheckOutProducts.js
5177
+ var require_PurchaseReservationLateCheckOutProducts = __commonJS({
5178
+ "dist/useCases/PurchaseReservationLateCheckOutProducts.js"(exports, module) {
5179
+ module.exports = /* @__PURE__ */ __name(function PurchaseReservationLateCheckOutProducts(requestData = { data: null, query: null, headers: null }, httpConfigOptions = {}) {
5180
+ if (!requestData)
5181
+ requestData = {};
5182
+ const pathParams = [":id"];
5183
+ const { data, query, headers } = requestData;
5184
+ let url = "/reservations/:id/products/lateCheckOut";
5185
+ if (pathParams && data) {
5186
+ for (const param of pathParams) {
5187
+ const paramName = param.replace(":", "");
5188
+ url = url.replace(param, data[paramName]);
5189
+ }
5190
+ }
5191
+ if (url.match(/:[a-zA-Z0-9]+/g)) {
5192
+ const missingParams = url.match(/:[a-zA-Z0-9]+/g);
5193
+ const missing = missingParams.map((param) => param.replace(":", ""));
5194
+ return Promise.reject(
5195
+ new Error("Missing parameters: " + missing.join(", "))
5196
+ );
5197
+ }
5198
+ const config = {
5199
+ method: "post",
5200
+ url,
5201
+ ...httpConfigOptions
5202
+ };
5203
+ if (data)
5204
+ config.data = data;
5205
+ if (query)
5206
+ config.params = query;
5207
+ if (headers)
5208
+ config.headers = headers;
5209
+ return this._http.request(config);
5210
+ }, "PurchaseReservationLateCheckOutProducts");
5211
+ }
5212
+ });
5213
+
5138
5214
  // dist/useCases/OCRDocument.js
5139
5215
  var require_OCRDocument = __commonJS({
5140
5216
  "dist/useCases/OCRDocument.js"(exports, module) {
@@ -8388,6 +8464,8 @@ var require_Client = __commonJS({
8388
8464
  var PurchaseReservationEarlyCheckInProducts = require_PurchaseReservationEarlyCheckInProducts();
8389
8465
  var DescribeReservationRoomUpgrades = require_DescribeReservationRoomUpgrades();
8390
8466
  var PurchaseReservationRoomUpgrades = require_PurchaseReservationRoomUpgrades();
8467
+ var DescribeReservationLateCheckOutProducts = require_DescribeReservationLateCheckOutProducts();
8468
+ var PurchaseReservationLateCheckOutProducts = require_PurchaseReservationLateCheckOutProducts();
8391
8469
  var OCRDocument = require_OCRDocument();
8392
8470
  var CreateOrganization = require_CreateOrganization();
8393
8471
  var AdminUpdateCustomer = require_AdminUpdateCustomer();
@@ -8652,6 +8730,8 @@ var require_Client = __commonJS({
8652
8730
  KohostApiClient.prototype.PurchaseReservationEarlyCheckInProducts = PurchaseReservationEarlyCheckInProducts;
8653
8731
  KohostApiClient.prototype.DescribeReservationRoomUpgrades = DescribeReservationRoomUpgrades;
8654
8732
  KohostApiClient.prototype.PurchaseReservationRoomUpgrades = PurchaseReservationRoomUpgrades;
8733
+ KohostApiClient.prototype.DescribeReservationLateCheckOutProducts = DescribeReservationLateCheckOutProducts;
8734
+ KohostApiClient.prototype.PurchaseReservationLateCheckOutProducts = PurchaseReservationLateCheckOutProducts;
8655
8735
  KohostApiClient.prototype.OCRDocument = OCRDocument;
8656
8736
  KohostApiClient.prototype.CreateOrganization = CreateOrganization;
8657
8737
  KohostApiClient.prototype.AdminUpdateCustomer = AdminUpdateCustomer;