@findhotel/sapi 1.0.1-beta.0 → 1.0.2
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.
- package/README.md +7 -51
- package/dist/index.js +1 -1
- package/dist/types/packages/core/src/types/types.d.ts +5 -1
- package/package.json +2 -2
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -425,12 +425,14 @@ the state can be repeated between different callbacks.
|
|
|
425
425
|
Returns hotel's offers (incomplete response) in
|
|
426
426
|
`response.hotelOfferEntities` object as well as updated
|
|
427
427
|
hotel sort order in `response.hotelIds` array (sorted
|
|
428
|
-
according to HSO and taking into account the real offers data)
|
|
428
|
+
according to HSO and taking into account the real offers data)\
|
|
429
|
+
The offers response with the detailed description can be found in the [Offers Response](./docs/offers.md)
|
|
429
430
|
|
|
430
431
|
5. ### onComplete()
|
|
431
432
|
|
|
432
433
|
Runs when current search is complete and all offers are retrieved\
|
|
433
|
-
Return complete SAPI seearch response
|
|
434
|
+
Return complete SAPI seearch response.\
|
|
435
|
+
The offers response with the detailed description can be found in the [Offers Response](./docs/offers.md)
|
|
434
436
|
|
|
435
437
|
### Response
|
|
436
438
|
<a id="search-response"></a>
|
|
@@ -496,7 +498,7 @@ so there is a simplified example:
|
|
|
496
498
|
"hotelIds": ["1840170", "2766940", "3310443", "3035769"],
|
|
497
499
|
"hotelOfferEntities": {
|
|
498
500
|
"1041597": {
|
|
499
|
-
"
|
|
501
|
+
"anchorRate": {
|
|
500
502
|
"base": 244.6021305,
|
|
501
503
|
"hotelFees": 23.122149135,
|
|
502
504
|
"taxes": 20.4147
|
|
@@ -508,7 +510,7 @@ so there is a simplified example:
|
|
|
508
510
|
"id": "o5vFF4-wmvcc",
|
|
509
511
|
"currency": "EUR",
|
|
510
512
|
"availableRooms": 6,
|
|
511
|
-
"url": "https://r.
|
|
513
|
+
"url": "https://r.vio.com?...",
|
|
512
514
|
"rate": {
|
|
513
515
|
"base": 197.17,
|
|
514
516
|
"taxes": 17.75,
|
|
@@ -899,50 +901,4 @@ const parameters = {
|
|
|
899
901
|
}
|
|
900
902
|
```
|
|
901
903
|
|
|
902
|
-
|
|
903
|
-
{
|
|
904
|
-
"anchorPriceRateBreakdown": {
|
|
905
|
-
"base": 244.6021305,
|
|
906
|
-
"hotelFees": 23.122149135,
|
|
907
|
-
"taxes": 20.4147
|
|
908
|
-
},
|
|
909
|
-
"availableOffersCount": 23,
|
|
910
|
-
"id": "1041597",
|
|
911
|
-
"offers": [
|
|
912
|
-
{
|
|
913
|
-
"id": "o5vFF4-wmvcc",
|
|
914
|
-
"currency": "EUR",
|
|
915
|
-
"availableRooms": 6,
|
|
916
|
-
"url": "https://r.findhotel.net?...",
|
|
917
|
-
"rate": {
|
|
918
|
-
"base": 197.17,
|
|
919
|
-
"taxes": 17.75,
|
|
920
|
-
"hotelFees": 31.8
|
|
921
|
-
},
|
|
922
|
-
"accessTier": "",
|
|
923
|
-
"providerCode": "BKS",
|
|
924
|
-
"intermediaryProvider": "BKS",
|
|
925
|
-
"roomName": "Standard Twin Room",
|
|
926
|
-
"package": {
|
|
927
|
-
"amenities": [
|
|
928
|
-
"breakfast"
|
|
929
|
-
],
|
|
930
|
-
"canPayLater": false
|
|
931
|
-
},
|
|
932
|
-
"cancellationPenalties": [],
|
|
933
|
-
"tags": [
|
|
934
|
-
"top_offer"
|
|
935
|
-
],
|
|
936
|
-
"metadata": {
|
|
937
|
-
"feedID": ""
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
],
|
|
941
|
-
"discount": {
|
|
942
|
-
"discountProvider": "FHT",
|
|
943
|
-
"hasDiscountProvider": true,
|
|
944
|
-
"hasParityProvider": true,
|
|
945
|
-
"modifier": "b"
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
```
|
|
904
|
+
The response with the detailed description can be found in the [Offers Response](./docs/offers.md)
|