Changes for page 4. CalcCheckout
Last modified by Giorgi Mdivnishvili on 2024/04/11 16:59
From version 3.1
edited by Giorgi Mdivnishvili
on 2024/04/11 05:00
on 2024/04/11 05:00
Change comment:
There is no comment for this version
To version 5.1
edited by Giorgi Mdivnishvili
on 2024/04/11 07:33
on 2024/04/11 07:33
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -8,10 +8,11 @@ 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 + 11 11 == Endpoint URL - [POST] == 12 12 13 13 {{info}} 14 -[[https:~~/~~/integration.kazunion.com/api/ TourPackages/CalcPackage>>https://integration.kazunion.com/api/TourPackages/CalcPackage]]15 +[[https:~~/~~/integration.kazunion.com/api/Checkout/CalcCheckout>>https://integration.kazunion.com/api/Checkout/CalcCheckout]] 15 15 {{/info}} 16 16 17 17 ... ... @@ -27,20 +27,97 @@ 27 27 28 28 {{code language="Json"}} 29 29 { 30 - "packageId": "string", 31 - "extraServicePriceCodes": [ 32 - "string" 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 + } 33 33 ], 34 - " flightPassengers": [49 + "calcOnlyHotelPackageRequests": [ 35 35 { 36 - "id": "string", 37 - "selectedForwardBaggageCode": "string", 38 - "selectedBackwardBaggageCode": "string" 51 + "packageId": "string", 52 + "extraServicePriceCodes": [ 53 + "string" 54 + ], 55 + "includeInsurance": true, 56 + "refreshPrices": true 39 39 } 40 40 ], 41 - "includeInsurance": true, 42 - "refreshPrices": true 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" 43 43 } 121 + 44 44 {{/code}} 45 45 46 46 (% class="wikigeneratedid" id="HRequestBodyexample" %) ... ... @@ -52,19 +52,28 @@ 52 52 53 53 {{code language="Json"}} 54 54 { 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 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": [] 68 68 } 69 69 {{/code}} 70 70 ... ... @@ -778,8 +778,6 @@ 778 778 === Schema === 779 779 780 780 {{success}} 781 -CalcOnlyHotelPackageResponse{ 782 - 783 783 |error|boolean 784 784 |errorCode|string 785 785 nullable: true ... ... @@ -787,128 +787,178 @@ 787 787 nullable: true 788 788 |userErrorDescription|string 789 789 nullable: true 790 -|package|OnlyHotelPackage{((( 791 -|id|string 792 -nullable: true 793 793 |priceCurrency|string 794 794 nullable: true 795 795 |totalPrice|number($double) 796 796 |agentCommissionPercent|number($double) 797 797 |agentCommissionAmount|number($double) 798 -|hotel|PackageHotel{((( 880 +|requiredCitizenIdentifiers|[ 881 +nullable: trueCitizenIdentifier{((( 882 +|countryCode|[...] 883 +|identifierType|IdentifierTypeEnumstringEnum: 884 +[ TIN, FIN ] 885 + 886 +}] 887 +))) 888 +|hotels|[ 889 +nullable: trueCheckoutHotelOut{((( 799 799 |hotelPriceId|string 800 800 nullable: true 801 -|providerId|integer($int32) 802 -|hotelName|string 892 +|touristIds|[ 893 +nullable: truestring($uuid)] 894 +|errorCode|string 803 803 nullable: true 804 -| hotelCode|string896 +|errorMessage|string 805 805 nullable: true 806 -|nigths|integer($int32) 807 -|mealPlan|string 898 +|description|string 808 808 nullable: true 809 -|hotelClass|string 900 + 901 +}] 902 +))) 903 +|tourists|[ 904 +nullable: trueCheckoutTouristOut{((( 905 +|id|[...] 906 +|age|[...] 907 +|isAdult|[...] 908 +|flightIds|[...] 909 +|flights|[...] 910 +|arrivalFlightInfo|ManualFlightInfo{((( 911 +|flightNumber|string 810 810 nullable: true 811 -|availabilityType|RoomAvailabilityTypeEnumstringEnum: 812 -[ OnRequest, FreeSale, StopSale ] 813 -|availableRoomsCount|integer($int32) 814 -|fewRooms|boolean 815 -|roomCategoryCode|string 913 +|terminalCode|string 816 816 nullable: true 817 -| roomCategoryName|string915 +|date|string($date-time) 818 818 nullable: true 819 -| placementTypeName|string917 +|time|string 820 820 nullable: true 821 -|placementDescription|string 919 + 920 +} 921 +))) 922 +|departureFlightInfo|ManualFlightInfo{((( 923 +|flightNumber|string 822 822 nullable: true 823 -|checkInDate|string($date-time) 824 -|checkOutDate|string($date-time) 825 -|adults|integer($int32) 826 -|children|integer($int32) 827 -|districtUID|string($uuid) 925 +|terminalCode|string 828 828 nullable: true 829 -|d istrictName|string927 +|date|string($date-time) 830 830 nullable: true 831 -| cityUID|string($uuid)929 +|time|string 832 832 nullable: true 833 -|cityName|string 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 834 834 nullable: true 835 -| countryCode|string941 +|insuranceDescription|string 836 836 nullable: true 837 -|co untryName|string943 +|contragentName|string 838 838 nullable: true 839 -|hasAlcohol|boolean 840 -|hasFreeWifi|boolean 841 -|hasMetro|boolean 842 -|hasPool|boolean 843 -|hasMall|boolean 844 -|cancellationPolicyDescription|string 945 +|contragentFullName|string 845 845 nullable: true 846 -|cancellationPolicy|CancellationPolicyExchange{((( 847 -|cancellationPolicyCode|string 947 +|actualStartDate|string($date-time) 948 +|actualEndDate|string($date-time) 949 +|costCurrencyCode|string 848 848 nullable: true 849 -|noShowChargeValue|number($double) 951 +|costAmount|number($double) 952 +|priceCurrencyCode|string 850 850 nullable: true 851 -|noShowChargeValueType|string 954 +|priceAmount|number($double) 955 +|coverageCurrencyCode|string 852 852 nullable: true 853 -|earlyDepartureChargeValue|number($double) 957 +|coverageAmount|number($double) 958 + 959 +} 960 +))) 961 +|selectedVisaId|string 854 854 nullable: true 855 -|earlyDepartureChargeValueType|string 963 +|transfers|[ 964 +nullable: trueCheckoutTransferOut{((( 965 +|id|string 856 856 nullable: true 857 -|conditions|[ 858 -nullable: trueCancellationPolicyConditionExchange{((( 859 -|timeunits|integer($int32) 860 -|timeunitType|string 967 +|type|CheckoutTransferTypeEnumstringEnum: 968 +[ Arrival, Departure, HotelToHotel ] 969 +|flightId|string 861 861 nullable: true 862 -|timeOffsetTypeName|string 971 +|flightInfo|ManualFlightInfo{((( 972 +|flightNumber|string 863 863 nullable: true 864 -| chargeValue|number($double)974 +|terminalCode|string 865 865 nullable: true 866 -| chargeValueType|string976 +|date|string($date-time) 867 867 nullable: true 978 +|time|string 979 +nullable: true 868 868 869 -}] 870 -))) 871 - 872 872 } 873 873 ))) 874 - 875 -} 876 -))) 877 -|extraServices|[ 878 -nullable: trueHotelExtraServiceBase{((( 879 -|extraServiceCode|string 983 +|checkInHotelId|string 880 880 nullable: true 881 -| extraServiceTypeCode|string985 +|checkOutHotelId|string 882 882 nullable: true 883 -|isMandatory|integer($int32) 884 -|extraServiceName|string 987 +|selectedTransferPriceId|string 885 885 nullable: true 886 -|minimalServiceAmount|number($double) 887 -|includedPriceCode|string 989 +|transferPrices|[ 990 +nullable: trueCheckoutTransferPrice{((( 991 +|id|string 888 888 nullable: true 889 -|prices|[ 890 -nullable: trueHotelExtraServicePriceBase{((( 891 -|extraServicePriceCode|string 993 +|name|string 892 892 nullable: true 893 -|displayName|string 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 894 894 nullable: true 895 -| restrictionInfo|string1008 +|errorMessage|string 896 896 nullable: true 897 -| additionalInfo|string1010 +|description|string 898 898 nullable: true 899 -|price|number($double) 900 -|extraPrice|number($double) 901 -|currency|string 902 -nullable: true 903 903 904 904 }] 905 905 ))) 1015 +|visas|[ 1016 +nullable: trueServicePrice{((( 1017 +|prid|string($uuid) 1018 +|prName|string 1019 +nullable: true 1020 +|prValue|number($double) 1021 +|sortingOrder|integer($int32) 906 906 907 907 }] 908 908 ))) 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 909 909 910 -} 1040 +}] 911 911 ))) 1042 +|containsError|boolean 1043 +|refreshPriceResult|RefreshPriceResultEnumstringEnum: 1044 +[ Success, HotelPriceNoMoreAvailable, FlightPriceNoMoreAvailable ] 1045 +|reservationId|string($uuid) 1046 +|reservationDetailsUnavailable|boolean 912 912 913 913 } 914 914 {{/success}}