2804
правки
Изменения
Перейти к навигации
Перейти к поиску
Пример<?xml version="1.0" encoding="UTF-8"?><order_snapshot xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <header currency="RUB" time_gmt="2014-03-21 09:39:47" time="2014-03-21 13:39:47" ord_id="263440" site="332" /> <customer email="mail@host.com" phone="XXXX4567" name="Сидоров В. К." corp_code="332" /> <products> <product> <air_ticket_prod prod_id="0" psg_type="A" title="Москва - Санкт-Петербург" taxes="189" fare="2000" origin="MOW" service_fee="0" form_owner="SU" validating_carrier="SU" destination="LED" comission="0"> <air_seg segment_id="0" carrier="SU" flight_number="0014" op_carrier="SU" departure_datetime="2014-04-22 11:55:00" arrival_datetime="2014-04-22 13:25:00" departure_airport="SVO" arrival_airport="LED" fare_basis="NPXOWRF" /> </air_ticket_prod> </product> </products> <reservations> <reservation crs="SABRE" rloc="MHKPTF" /> </reservations> <passengers> <passenger doc_number="1806326598" psgr_id="0" doc_country="RU" psgr_type="A" doc_type="C" birth_date="1987-05-20" name="IVAN" gender="M" first_name="IVANOV" /> </passengers> <travel_docs> <travel_doc> <air_ticket_doc tkt_oper="TKT" tkt_number="5554659179055" tkt_date="2014-03-21 13:39:00" prod_id="0" psgr_id="0" /> </travel_doc> </travel_docs> <payments> <payment pay_id="117601216" pay_oper="PAY" pay_time="2014-03-21 13:38:26" psp_code="011" psp_name="Testpay" psp_pay_id="" amount="2189" fop="CA" /> </payments></order_snapshot>
→Выгрузка заказа для компонента «Авиабилеты»
<div class="mw-collapsible-content">
<syntaxhighlight lang="xml" line enclose="div" style="font-size:9pt;background: #F9F9F9; border: 1px dashed #2F6FAB; padding: 10px 5px; margin: 10px 0;">
</syntaxhighlight>
</div>