8080use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \SearchRequest ;
8181use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \SearchResponse ;
8282use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \SearchShrinkRequest ;
83+ use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \StandardSearchHeaders ;
84+ use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \StandardSearchRequest ;
85+ use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \StandardSearchResponse ;
86+ use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \StandardSearchShrinkRequest ;
8387use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \TicketingCheckHeaders ;
8488use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \TicketingCheckRequest ;
8589use AlibabaCloud \SDK \AirticketOpen \V20230117 \Models \TicketingCheckResponse ;
@@ -748,7 +752,7 @@ public function changeConfirm($request)
748752 }
749753
750754 /**
751- * 改签 -Detail.
755+ * Change -Detail.
752756 *
753757 * @param request - ChangeDetailRequest
754758 * @param headers - ChangeDetailHeaders
@@ -803,7 +807,7 @@ public function changeDetailWithOptions($request, $headers, $runtime)
803807 }
804808
805809 /**
806- * 改签 -Detail.
810+ * Change -Detail.
807811 *
808812 * @param request - ChangeDetailRequest
809813 *
@@ -1653,7 +1657,7 @@ public function orderList($request)
16531657 }
16541658
16551659 /**
1656- * Trade - Seat and Price Verification.
1660+ * Transaction - Seat and Price Verification.
16571661 *
16581662 * @remarks
16591663 * Check is price and remaining seats of solution you selected has changed. You should enter the solution_id returned by enrich.
@@ -1711,7 +1715,7 @@ public function pricingWithOptions($request, $headers, $runtime)
17111715 }
17121716
17131717 /**
1714- * Trade - Seat and Price Verification.
1718+ * Transaction - Seat and Price Verification.
17151719 *
17161720 * @remarks
17171721 * Check is price and remaining seats of solution you selected has changed. You should enter the solution_id returned by enrich.
@@ -1733,10 +1737,7 @@ public function pricing($request)
17331737 }
17341738
17351739 /**
1736- * 退票-申请.
1737- *
1738- * @remarks
1739- * Apply for a refund and generate a refund order.
1740+ * Ticket Refund - Application.
17401741 *
17411742 * @param tmpReq - RefundApplyRequest
17421743 * @param headers - RefundApplyHeaders
@@ -1817,10 +1818,7 @@ public function refundApplyWithOptions($tmpReq, $headers, $runtime)
18171818 }
18181819
18191820 /**
1820- * 退票-申请.
1821- *
1822- * @remarks
1823- * Apply for a refund and generate a refund order.
1821+ * Ticket Refund - Application.
18241822 *
18251823 * @param request - RefundApplyRequest
18261824 *
@@ -1841,9 +1839,6 @@ public function refundApply($request)
18411839 /**
18421840 * Refund - Detail.
18431841 *
1844- * @remarks
1845- * Query refund order detail.
1846- *
18471842 * @param request - RefundDetailRequest
18481843 * @param headers - RefundDetailHeaders
18491844 * @param runtime - runtime options for this request RuntimeOptions
@@ -1899,9 +1894,6 @@ public function refundDetailWithOptions($request, $headers, $runtime)
18991894 /**
19001895 * Refund - Detail.
19011896 *
1902- * @remarks
1903- * Query refund order detail.
1904- *
19051897 * @param request - RefundDetailRequest
19061898 *
19071899 * @returns RefundDetailResponse
@@ -1921,9 +1913,6 @@ public function refundDetail($request)
19211913 /**
19221914 * Refund - Detail List.
19231915 *
1924- * @remarks
1925- * Query refund order detail.
1926- *
19271916 * @param request - RefundDetailListRequest
19281917 * @param headers - RefundDetailListHeaders
19291918 * @param runtime - runtime options for this request RuntimeOptions
@@ -1995,9 +1984,6 @@ public function refundDetailListWithOptions($request, $headers, $runtime)
19951984 /**
19961985 * Refund - Detail List.
19971986 *
1998- * @remarks
1999- * Query refund order detail.
2000- *
20011987 * @param request - RefundDetailListRequest
20021988 *
20031989 * @returns RefundDetailListResponse
@@ -2015,7 +2001,7 @@ public function refundDetailList($request)
20152001 }
20162002
20172003 /**
2018- * search .
2004+ * Search .
20192005 *
20202006 * @remarks
20212007 * Enter the information of departure, arrival, departure date, passenger number and cabin, return the lowest price for each flight.
@@ -2103,7 +2089,7 @@ public function searchWithOptions($tmpReq, $headers, $runtime)
21032089 }
21042090
21052091 /**
2106- * search .
2092+ * Search .
21072093 *
21082094 * @remarks
21092095 * Enter the information of departure, arrival, departure date, passenger number and cabin, return the lowest price for each flight.
@@ -2124,6 +2110,110 @@ public function search($request)
21242110 return $ this ->searchWithOptions ($ request , $ headers , $ runtime );
21252111 }
21262112
2113+ /**
2114+ * 标准搜索.
2115+ *
2116+ * @param tmpReq - StandardSearchRequest
2117+ * @param headers - StandardSearchHeaders
2118+ * @param runtime - runtime options for this request RuntimeOptions
2119+ *
2120+ * @returns StandardSearchResponse
2121+ *
2122+ * @param StandardSearchRequest $tmpReq
2123+ * @param StandardSearchHeaders $headers
2124+ * @param RuntimeOptions $runtime
2125+ *
2126+ * @return StandardSearchResponse
2127+ */
2128+ public function standardSearchWithOptions ($ tmpReq , $ headers , $ runtime )
2129+ {
2130+ $ tmpReq ->validate ();
2131+ $ request = new StandardSearchShrinkRequest ([]);
2132+ Utils::convert ($ tmpReq , $ request );
2133+ if (null !== $ tmpReq ->airLegs ) {
2134+ $ request ->airLegsShrink = Utils::arrayToStringWithSpecifiedStyle ($ tmpReq ->airLegs , 'air_legs ' , 'json ' );
2135+ }
2136+
2137+ if (null !== $ tmpReq ->searchControlOptions ) {
2138+ $ request ->searchControlOptionsShrink = Utils::arrayToStringWithSpecifiedStyle ($ tmpReq ->searchControlOptions , 'search_control_options ' , 'json ' );
2139+ }
2140+
2141+ $ body = [];
2142+ if (null !== $ request ->adults ) {
2143+ @$ body ['adults ' ] = $ request ->adults ;
2144+ }
2145+
2146+ if (null !== $ request ->airLegsShrink ) {
2147+ @$ body ['air_legs ' ] = $ request ->airLegsShrink ;
2148+ }
2149+
2150+ if (null !== $ request ->cabinClass ) {
2151+ @$ body ['cabin_class ' ] = $ request ->cabinClass ;
2152+ }
2153+
2154+ if (null !== $ request ->children ) {
2155+ @$ body ['children ' ] = $ request ->children ;
2156+ }
2157+
2158+ if (null !== $ request ->infants ) {
2159+ @$ body ['infants ' ] = $ request ->infants ;
2160+ }
2161+
2162+ if (null !== $ request ->searchControlOptionsShrink ) {
2163+ @$ body ['search_control_options ' ] = $ request ->searchControlOptionsShrink ;
2164+ }
2165+
2166+ $ realHeaders = [];
2167+ if (null !== $ headers ->commonHeaders ) {
2168+ $ realHeaders = $ headers ->commonHeaders ;
2169+ }
2170+
2171+ if (null !== $ headers ->xAcsAirticketAccessToken ) {
2172+ @$ realHeaders ['x-acs-airticket-access-token ' ] = '' . $ headers ->xAcsAirticketAccessToken ;
2173+ }
2174+
2175+ if (null !== $ headers ->xAcsAirticketLanguage ) {
2176+ @$ realHeaders ['x-acs-airticket-language ' ] = '' . $ headers ->xAcsAirticketLanguage ;
2177+ }
2178+
2179+ $ req = new OpenApiRequest ([
2180+ 'headers ' => $ realHeaders ,
2181+ 'body ' => Utils::parseToMap ($ body ),
2182+ ]);
2183+ $ params = new Params ([
2184+ 'action ' => 'StandardSearch ' ,
2185+ 'version ' => '2023-01-17 ' ,
2186+ 'protocol ' => 'HTTPS ' ,
2187+ 'pathname ' => '/airticket/v1/trade/action-standardsearch ' ,
2188+ 'method ' => 'POST ' ,
2189+ 'authType ' => 'AK ' ,
2190+ 'style ' => 'ROA ' ,
2191+ 'reqBodyType ' => 'formData ' ,
2192+ 'bodyType ' => 'json ' ,
2193+ ]);
2194+
2195+ return StandardSearchResponse::fromMap ($ this ->callApi ($ params , $ req , $ runtime ));
2196+ }
2197+
2198+ /**
2199+ * 标准搜索.
2200+ *
2201+ * @param request - StandardSearchRequest
2202+ *
2203+ * @returns StandardSearchResponse
2204+ *
2205+ * @param StandardSearchRequest $request
2206+ *
2207+ * @return StandardSearchResponse
2208+ */
2209+ public function standardSearch ($ request )
2210+ {
2211+ $ runtime = new RuntimeOptions ([]);
2212+ $ headers = new StandardSearchHeaders ([]);
2213+
2214+ return $ this ->standardSearchWithOptions ($ request , $ headers , $ runtime );
2215+ }
2216+
21272217 /**
21282218 * Transaction - Payment and Ticket Issuance.
21292219 *
0 commit comments