Changes for page 4. CalcCheckout

Last modified by Giorgi Mdivnishvili on 2024/04/11 16:59

From version 5.1
edited by Giorgi Mdivnishvili
on 2024/04/11 07:33
Change comment: There is no comment for this version
To version 3.1
edited by Giorgi Mdivnishvili
on 2024/04/11 05:00
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,11 +8,10 @@
8 8  
9 9  This method is used to calculate full package with hotels and flights, to recheck prices, availability, prices and cancelation policy before book.
10 10  
11 -
12 12  == Endpoint URL - [POST] ==
13 13  
14 14  {{info}}
15 -[[https:~~/~~/integration.kazunion.com/api/Checkout/CalcCheckout>>https://integration.kazunion.com/api/Checkout/CalcCheckout]]
14 +[[https:~~/~~/integration.kazunion.com/api/TourPackages/CalcPackage>>https://integration.kazunion.com/api/TourPackages/CalcPackage]]
16 16  {{/info}}
17 17  
18 18  
... ... @@ -28,97 +28,20 @@
28 28  
29 29  {{code language="Json"}}
30 30  {
31 - "reservationId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
32 - "calcTourPackageRequests": [
33 - {
34 - "packageId": "string",
35 - "extraServicePriceCodes": [
36 - "string"
37 - ],
38 - "flightPassengers": [
39 - {
40 - "id": "string",
41 - "selectedForwardBaggageCode": "string",
42 - "selectedBackwardBaggageCode": "string"
43 - }
44 - ],
45 - "includeInsurance": true,
46 - "refreshPrices": true
47 - }
30 + "packageId": "string",
31 + "extraServicePriceCodes": [
32 + "string"
48 48   ],
49 - "calcOnlyHotelPackageRequests": [
34 + "flightPassengers": [
50 50   {
51 - "packageId": "string",
52 - "extraServicePriceCodes": [
53 - "string"
54 - ],
55 - "includeInsurance": true,
56 - "refreshPrices": true
36 + "id": "string",
37 + "selectedForwardBaggageCode": "string",
38 + "selectedBackwardBaggageCode": "string"
57 57   }
58 58   ],
59 - "calcOnlyAviaPackageRequests": [
60 - {
61 - "packageId": "string",
62 - "refreshPrices": true,
63 - "flightPassengers": [
64 - {
65 - "id": "string",
66 - "selectedForwardBaggageCode": "string",
67 - "selectedBackwardBaggageCode": "string"
68 - }
69 - ]
70 - }
71 - ],
72 - "hotels": [
73 - {
74 - "hotelPriceId": "string",
75 - "agentConfirmationNumber": "string",
76 - "note": "string",
77 - "touristIds": [
78 - "3fa85f64-5717-4562-b3fc-2c963f66afa6"
79 - ]
80 - }
81 - ],
82 - "tourists": [
83 - {
84 - "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
85 - "firstName": "string",
86 - "lastName": "string",
87 - "birthDate": "2024-04-11T03:34:15.828Z",
88 - "passportNumber": "string",
89 - "passportExpiry": "2024-04-11T03:34:15.828Z",
90 - "passportIssue": "2024-04-11T03:34:15.828Z",
91 - "citizenship": "string",
92 - "tin": "string",
93 - "isMale": true,
94 - "flightIds": [
95 - "string"
96 - ],
97 - "arrivalFlightInfo": {
98 - "flightNumber": "string",
99 - "terminalCode": "string",
100 - "date": "2024-04-11T03:34:15.828Z",
101 - "time": "string"
102 - },
103 - "departureFlightInfo": {
104 - "flightNumber": "string",
105 - "terminalCode": "string",
106 - "date": "2024-04-11T03:34:15.828Z",
107 - "time": "string"
108 - },
109 - "selectedVisaId": "string",
110 - "transfers": [
111 - {
112 - "id": "string",
113 - "selectedTransferPriceId": "string"
114 - }
115 - ]
116 - }
117 - ],
118 - "note": "string",
119 - "contactPhone": "string"
41 + "includeInsurance": true,
42 + "refreshPrices": true
120 120  }
121 -
122 122  {{/code}}
123 123  
124 124  (% class="wikigeneratedid" id="HRequestBodyexample" %)
... ... @@ -130,28 +130,19 @@
130 130  
131 131  {{code language="Json"}}
132 132  {
133 - "calcTourPackageRequests": [
134 - {
135 - "refreshPrices": true,
136 - "packageId": "tour:7caef71d-25e3-4882-b0db-81e766af2b72:fa7a89d5-1c20-4004-b3d2-f8d08163827f:53552191-59ea-469d-ae9d-5b848da8839d",
137 - "flightPassengers": [
138 - {
139 - "id": "53552191-59ea-469d-ae9d-5b848da8839d-A1",
140 - "selectedForwardBaggageCode": "INCLUDED",
141 - "selectedBackwardBaggageCode": "INCLUDED"
142 - },
143 - {
144 - "id": "53552191-59ea-469d-ae9d-5b848da8839d-A2",
145 - "selectedForwardBaggageCode": "INCLUDED",
146 - "selectedBackwardBaggageCode": "INCLUDED"
147 - }
148 - ],
149 - "extraServicePriceCodes": [],
150 - "includeInsurance": true
151 - }
152 - ],
153 - "calcOnlyHotelPackageRequests": [],
154 - "calcOnlyAviaPackageRequests": []
55 + "packageId": "tour:1d0fa533-4261-4254-93bb-83599d581ffc:193990fa-41a5-46e6-9805-50f82c3c377f:0c299240-6fc6-4f79-ba99-3548f2de3f57",
56 + "extraServicePriceCodes": [
57 +
58 + ],
59 + "flightPassengers": [
60 + {
61 + "id": "42779531011000004-A1",
62 + "selectedForwardBaggageCode": "",
63 + "selectedBackwardBaggageCode": ""
64 + }
65 + ],
66 + "includeInsurance": true,
67 + "refreshPrices": true
155 155  }
156 156  {{/code}}
157 157  
... ... @@ -865,6 +865,8 @@
865 865  === Schema ===
866 866  
867 867  {{success}}
781 +CalcOnlyHotelPackageResponse{
782 +
868 868  |error|boolean
869 869  |errorCode|string
870 870  nullable: true
... ... @@ -872,178 +872,128 @@
872 872  nullable: true
873 873  |userErrorDescription|string
874 874  nullable: true
790 +|package|OnlyHotelPackage{(((
791 +|id|string
792 +nullable: true
875 875  |priceCurrency|string
876 876  nullable: true
877 877  |totalPrice|number($double)
878 878  |agentCommissionPercent|number($double)
879 879  |agentCommissionAmount|number($double)
880 -|requiredCitizenIdentifiers|[
881 -nullable: trueCitizenIdentifier{(((
882 -|countryCode|[...]
883 -|identifierType|IdentifierTypeEnumstringEnum:
884 -[ TIN, FIN ]
885 -
886 -}]
887 -)))
888 -|hotels|[
889 -nullable: trueCheckoutHotelOut{(((
798 +|hotel|PackageHotel{(((
890 890  |hotelPriceId|string
891 891  nullable: true
892 -|touristIds|[
893 -nullable: truestring($uuid)]
894 -|errorCode|string
801 +|providerId|integer($int32)
802 +|hotelName|string
895 895  nullable: true
896 -|errorMessage|string
804 +|hotelCode|string
897 897  nullable: true
898 -|description|string
806 +|nigths|integer($int32)
807 +|mealPlan|string
899 899  nullable: true
900 -
901 -}]
902 -)))
903 -|tourists|[
904 -nullable: trueCheckoutTouristOut{(((
905 -|id|[...]
906 -|age|[...]
907 -|isAdult|[...]
908 -|flightIds|[...]
909 -|flights|[...]
910 -|arrivalFlightInfo|ManualFlightInfo{(((
911 -|flightNumber|string
809 +|hotelClass|string
912 912  nullable: true
913 -|terminalCode|string
811 +|availabilityType|RoomAvailabilityTypeEnumstringEnum:
812 +[ OnRequest, FreeSale, StopSale ]
813 +|availableRoomsCount|integer($int32)
814 +|fewRooms|boolean
815 +|roomCategoryCode|string
914 914  nullable: true
915 -|date|string($date-time)
817 +|roomCategoryName|string
916 916  nullable: true
917 -|time|string
819 +|placementTypeName|string
918 918  nullable: true
919 -
920 -}
921 -)))
922 -|departureFlightInfo|ManualFlightInfo{(((
923 -|flightNumber|string
821 +|placementDescription|string
924 924  nullable: true
925 -|terminalCode|string
823 +|checkInDate|string($date-time)
824 +|checkOutDate|string($date-time)
825 +|adults|integer($int32)
826 +|children|integer($int32)
827 +|districtUID|string($uuid)
926 926  nullable: true
927 -|date|string($date-time)
829 +|districtName|string
928 928  nullable: true
929 -|time|string
831 +|cityUID|string($uuid)
930 930  nullable: true
931 -
932 -}
933 -)))
934 -|insurancePrice|InsurancePriceForTourist{(((
935 -|insuranceId|string($uuid)
936 -|insuranceServiceId|string($uuid)
937 -|insurancePriceId|string($uuid)
938 -|touristId|string($uuid)
939 -|insuranceName|string
833 +|cityName|string
940 940  nullable: true
941 -|insuranceDescription|string
835 +|countryCode|string
942 942  nullable: true
943 -|contragentName|string
837 +|countryName|string
944 944  nullable: true
945 -|contragentFullName|string
839 +|hasAlcohol|boolean
840 +|hasFreeWifi|boolean
841 +|hasMetro|boolean
842 +|hasPool|boolean
843 +|hasMall|boolean
844 +|cancellationPolicyDescription|string
946 946  nullable: true
947 -|actualStartDate|string($date-time)
948 -|actualEndDate|string($date-time)
949 -|costCurrencyCode|string
846 +|cancellationPolicy|CancellationPolicyExchange{(((
847 +|cancellationPolicyCode|string
950 950  nullable: true
951 -|costAmount|number($double)
952 -|priceCurrencyCode|string
849 +|noShowChargeValue|number($double)
953 953  nullable: true
954 -|priceAmount|number($double)
955 -|coverageCurrencyCode|string
851 +|noShowChargeValueType|string
956 956  nullable: true
957 -|coverageAmount|number($double)
958 -
959 -}
960 -)))
961 -|selectedVisaId|string
853 +|earlyDepartureChargeValue|number($double)
962 962  nullable: true
963 -|transfers|[
964 -nullable: trueCheckoutTransferOut{(((
965 -|id|string
855 +|earlyDepartureChargeValueType|string
966 966  nullable: true
967 -|type|CheckoutTransferTypeEnumstringEnum:
968 -[ Arrival, Departure, HotelToHotel ]
969 -|flightId|string
857 +|conditions|[
858 +nullable: trueCancellationPolicyConditionExchange{(((
859 +|timeunits|integer($int32)
860 +|timeunitType|string
970 970  nullable: true
971 -|flightInfo|ManualFlightInfo{(((
972 -|flightNumber|string
862 +|timeOffsetTypeName|string
973 973  nullable: true
974 -|terminalCode|string
864 +|chargeValue|number($double)
975 975  nullable: true
976 -|date|string($date-time)
866 +|chargeValueType|string
977 977  nullable: true
978 -|time|string
979 -nullable: true
980 980  
869 +}]
870 +)))
871 +
981 981  }
982 982  )))
983 -|checkInHotelId|string
874 +
875 +}
876 +)))
877 +|extraServices|[
878 +nullable: trueHotelExtraServiceBase{(((
879 +|extraServiceCode|string
984 984  nullable: true
985 -|checkOutHotelId|string
881 +|extraServiceTypeCode|string
986 986  nullable: true
987 -|selectedTransferPriceId|string
883 +|isMandatory|integer($int32)
884 +|extraServiceName|string
988 988  nullable: true
989 -|transferPrices|[
990 -nullable: trueCheckoutTransferPrice{(((
991 -|id|string
886 +|minimalServiceAmount|number($double)
887 +|includedPriceCode|string
992 992  nullable: true
993 -|name|string
889 +|prices|[
890 +nullable: trueHotelExtraServicePriceBase{(((
891 +|extraServicePriceCode|string
994 994  nullable: true
995 -|adultPlaces|integer($int32)
996 -|childPlaces|integer($int32)
997 -|perPersonPrice|boolean
998 -|adultPrice|number($double)
999 -|childPrice|number($double)
1000 -
1001 -}]
1002 -)))
1003 -
1004 -}]
1005 -)))
1006 -|errorCode|string
893 +|displayName|string
1007 1007  nullable: true
1008 -|errorMessage|string
895 +|restrictionInfo|string
1009 1009  nullable: true
1010 -|description|string
897 +|additionalInfo|string
1011 1011  nullable: true
899 +|price|number($double)
900 +|extraPrice|number($double)
901 +|currency|string
902 +nullable: true
1012 1012  
1013 1013  }]
1014 1014  )))
1015 -|visas|[
1016 -nullable: trueServicePrice{(((
1017 -|prid|string($uuid)
1018 -|prName|string
1019 -nullable: true
1020 -|prValue|number($double)
1021 -|sortingOrder|integer($int32)
1022 1022  
1023 1023  }]
1024 1024  )))
1025 -|terminals|[
1026 -nullable: trueTerminal{(((
1027 -|terminalCode|string
1028 -nullable: true
1029 -|cityUID|string($uuid)
1030 -nullable: true
1031 -|districtUID|string($uuid)
1032 -nullable: true
1033 -|terminalName|string
1034 -nullable: true
1035 -|countryCode|string
1036 -nullable: true
1037 -|note|string
1038 -nullable: true
1039 1039  
1040 -}]
910 +}
1041 1041  )))
1042 -|containsError|boolean
1043 -|refreshPriceResult|RefreshPriceResultEnumstringEnum:
1044 -[ Success, HotelPriceNoMoreAvailable, FlightPriceNoMoreAvailable ]
1045 -|reservationId|string($uuid)
1046 -|reservationDetailsUnavailable|boolean
1047 1047  
1048 1048  }
1049 1049  {{/success}}