/
6.2. RAIL RESERVATION INITIATE RESPONSE

6.2. RAIL RESERVATION INITIATE RESPONSE

Reservation Initiate Response returns the final price and availability of the requested offer as well as fares and rules.

OTA_RailBookRS*:

*mandatory

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

 

PrimaryLangID

 

For more information see Common Data Description section in Glossary.

0..1

 

TransactionStatusCode

string (“Initiate”)

Indicates type of request. Must always be “Initiate” for that step.

0..1

 

TransactionIdentifier

integer

Contains unique transaction identifier. It must be further passed to the Confirmation step.

0..1

Success

 

 

For more information see Common Data Description section in Glossary.

 

Warnings

 

 

 

Errors

 

 

 

RailReservations

 

 

Contains information about rail offers to be booked.

0..1

 

ResStatus

 

Indicates the status of the whole reservation.

0..1

RailReservations/RailReservation*

 

 

Contains information about rail offer to be booked.

1..1

OTA_RailBookRS/RailReservations/RailReservation*:

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

 

ResStatus*

 

Indicates the reservation status. Possible values are:

"Reserved" - means that the booking were confirmed successfully.

"Request denied" - means that supplier denied this request and offer can not be booked.

1..1

 

RPH

integer

 

0..1

 

BookingCode

string

Unique offer identifier.

Note: the BookingCode in Reservation Initiate Response may change.

0..1

 

ElRegDateTimeLimit

dateTime

Indicates last time to cancel ER or tickets

0..1

RailItinerary

 

 

Contains full details on the rail itinerary referenced by this reservation. Rail itinerary represents all inventory booked and associated with this specific reservation.

0..1

RailItinerary/OriginDestinationInformation

 

 

Contains information on one specific journey from one specific origin to one specific destination.

0..1

RailItinerary/OriginDestinationInformation/TrainSegment

 

 

For more information see Rail Schedule Search Response section.

 

PriceInfo*

 

 

Contains price information of this specific itinerary.

1..1

Ticketing

 

 

нужен ли атрибут?

0..99

 

TicketNumber

string

 

0..1

 

TicketIssueDate

DateTime

 

0..1

 

TravelerRefNumber

positive integer

 

0..1

 

ElRegistration

boolean

 

0..1

 

TicketStatus

string(Issued, TicketVoid, Pending)

 

0..1

PassengerInfo*

 

 

Passenger information for a reservation.

1..1

PassengerInfo/PassengerDetail*

 

 

For more information see Rail Reservation Initiate Request section.

1..99

PaymentRules

 

 

A collection of payment rules associated with this rail reservation.

0..1

PaymentRules/PaymentRule*

 

 

A specific payment rule associated with this reservation.

1..1

 

RuleType*

string

A rule type. The RuleType attribute refers to OTA code “RUL”.

1..1

 

DateTime

DateTime

The date until ticket need to be issued.

0..1

 

Duration

Duration

Time duration the ticket need to be issued.

0..1

VoucherProperties

 

 

Voucher property info block.

0..1

VoucherProperties/Property*

 

 

Contains property pair.

1..*

 

Name

string

Property name.

0..1

 

Value

string

Property value.

0..1

RailReservationIDs

 

 

For more information see Rail Reservation Initiate Request section.

 

OTA_RailBookRS/RailReservations/RailReservation/PriceInfo*:

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

TotalFare*

 

 

Price of the inventory including taxes.

1..1

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

TotalRetailFare

 

 

Price of the inventory including taxes.

0..1

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

 

isMin

boolean

"True" if the TotalRetailFare is the minimal allowed price for selling, and supplier does not allow to set selling price less than the TotalRetailFare. If "false", then supplier allows to set selling price less than the TotalRetailFare.

0..1

 

isMax

boolean

"True" if the TotalRetailFare is the maximal allowed price for selling, and supplier does not allow to set selling price higher than the TotalRetailFare. If "false", then supplier allows to set selling price higher than the TotalRetailFare.

0..1

PriceInfo/BaseFare*

 

 

Price of the inventory excluding taxes and fees.

1..1

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

PTC_FareBreakdowns/PTC_FareBreakdown*

 

 

Type code pricing for this itinerary per passenger.

1..20

OTA_RailBookRS/RailReservations/RailReservation/PriceInfo/PTC_FareBreakdowns/PTC_FareBreakdown*:

Element

Attribute

Type

Description

Min…Max occurs

Element

Attribute

Type

Description

Min…Max occurs

TravelerRefNumber

 

 

Contains the PassengerID reference to the traveler.

0..99

 

PassengerID

positive integer

A unique reference for the traveler.

0..1

PassengerFare

 

 

The total passenger fare with cost breakdown.

0..1

PassengerFare/BaseFare

 

 

Price of the inventory excluding taxes and fees.

1..1

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

PassengerFare/BaseFare/Description

 

string

Contains fare description.

0..1

 

Language

 

For more information see Common Data Description section in Glossary.

0..1

PassengerFare/Fees

 

 

A collection of Fees.

0..1

PassengerFare/Fees/Fee*

 

 

Contains information about the particular fee.

1..9

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

 

FeeCode

string

Contains code of the fee.

0..1

PassengerFare/TotalFare*

 

 

The total price that the passenger would pay (includes fare, taxes, fees)

1..1

 

CurrencyCode*

 

For more information see Common Data Description section in Glossary.

1..1

 

Amount*

 

1..1

 

MaxAmount

 

0..1

PassengerFare/TotalFare/Description

 

string

Contains fare description.

0..1

 

Language

 

For more information see Common Data Description section in Glossary.

0..1

<?xml version="1.0" encoding="UTF-8"?> <OTA_RailBookRS xmlns="http://www.opentravel.org/OTA/2003/05" EchoToken="12345" TransactionIdentifier="0" TransactionStatusCode="Initiate" Version="2.0"> <Success/> <RailReservations> <RailReservation BookingCode="3ea" ResStatus="Reserved"> <RailItinerary> <OriginDestinationInformation> <TrainSegment ArrivalDateTime="2014-12-12T09:00:00" DepartureDateTime="2014-12-12T00:56:00" JourneyDistance="650" JourneyDuration="PT8H4M0.000S"> <DepartureStation> <Details CodeContext="ufs" LocationCode="2000000" LocationName="МОСКВА" LocationType="station" TicketPrinterInd="true"/> </DepartureStation> <ArrivalStation> <Details CodeContext="ufs" LocationCode="2004000" LocationName="САНКТ-ПЕТЕРБУРГ" LocationType="station"/> </ArrivalStation> <CarCompany CompanyRPH="1"> <MarketingCompany CompanyShortName="ТВЕРСК"/> <OperatingCompany CompanyShortName="РЖД/ОКТ"/> </CarCompany> <TrainInfo> <Train TrainTypeCode="СК"> <TrainNumber>020У</TrainNumber> <TrainName>Megapolis</TrainName> </Train> </TrainInfo> <VendorMessages> <VendorMessage InfoType="2"> <SubSection> <Paragraph> <Text>ВРЕМЯ ОТПР И ПРИБ МОСКОВСКОЕ</Text> </Paragraph> </SubSection> </VendorMessage> <VendorMessage InfoType="5"> <SubSection> <Paragraph> <Text>Пункт выдачи заказа: В кассах ОАО "РЖД", ОАО "ФПК", на транзакционных терминалах ТТС и ТТР</Text> </Paragraph> </SubSection> </VendorMessage> </VendorMessages> <Remarks> <Remark Code="У0" Language="ru"> <Text>Без питания.</Text> </Remark> </Remarks> <ClassCode Code="2Э" CodeContext="ufs" DirectionContext="Local"/> <Assignment PassengerID="1"> <AccommodationDetail> <Seat Number="001"> <Position Value="Lower"/> </Seat> <Compartment GenderType="Male"/> <Car CarCompanyRPH="1" Number="03" Type="Купе"/> </AccommodationDetail> </Assignment> <Assignment PassengerID="2"> <AccommodationDetail> <Seat Number="002"> <Position Value="Upper"/> </Seat> <Compartment GenderType="Male"/> <Car CarCompanyRPH="1" Number="03" Type="Купе"/> </AccommodationDetail> </Assignment> <AncillaryServices> <AncillaryService Code="PAP" CodeContext="ufs" Description="пресса"/> <AncillaryService Code="COND" CodeContext="ufs" Description="кондиционер"/> <AncillaryService Code="BED" CodeContext="ufs" Description="постельное белье"/> <AncillaryService Code="SAN" CodeContext="ufs" Description="сан.гигиен.набор"/> <AncillaryService Code="WIFI" CodeContext="ufs" Description="WIFI"/> </AncillaryServices> </TrainSegment> </OriginDestinationInformation> </RailItinerary> <PriceInfo> <TotalFare Amount="5941.20" CurrencyCode="RUB"/> <BaseFare Amount="5035.76" CurrencyCode="RUB"/> <PTC_FareBreakdowns> <PTC_FareBreakdown> <TravelerRefNumber PassengerID="1"/> <PassengerFare> <BaseFare Amount="2517.88" CurrencyCode="RUB"> <Description>ПОЛНЫЙ</Description> </BaseFare> <Fees> <Fee Amount="452.72" CurrencyCode="RUB" FeeCode="VAT"/> </Fees> <TotalFare Amount="2970.60" CurrencyCode="RUB"/> </PassengerFare> </PTC_FareBreakdown> <PTC_FareBreakdown> <TravelerRefNumber PassengerID="2"/> <PassengerFare> <BaseFare Amount="2517.88" CurrencyCode="RUB"> <Description>ПОЛНЫЙ</Description> </BaseFare> <Fees> <Fee Amount="452.72" CurrencyCode="RUB" FeeCode="VAT"/> </Fees> <TotalFare Amount="2970.60" CurrencyCode="RUB"/> </PassengerFare> </PTC_FareBreakdown> </PTC_FareBreakdowns> </PriceInfo> <PassengerInfo> <PassengerDetail AgeQualifyingCode="ADT" BirthDate="1985-07-15" BirthPlace="Москва" Gender="Male"> <Identification> <NamePrefix>Mr</NamePrefix> <GivenName>Ivan</GivenName> <MiddleName>Ivanovich</MiddleName> <Surname>Ivanov</Surname> <Document DocHolderNationality="RUS" DocID="550000000" DocType="ЗП" DocTypeContext="ufs"/> </Identification> <ProfileRef> <UniqueID ID="1" Type="1"/> </ProfileRef> <Telephone PhoneNumber="12312321123"/> <Email>ivanov@testemail.com</Email> <Address> <AddressLine>ул.Скрыганова 3-45</AddressLine> <CityName>Москва</CityName> <PostalCode>321465</PostalCode> <CountryName Code="RU"/> </Address> </PassengerDetail> <PassengerDetail AgeQualifyingCode="ADT" BirthDate="1986-08-25" BirthPlace="Москва" Gender="Male"> <Identification> <NamePrefix>Mr</NamePrefix> <GivenName>Oleg</GivenName> <MiddleName>Ivanovich</MiddleName> <Surname>Ivanov</Surname> <Document DocHolderNationality="RUS" DocID="540000000" DocType="ЗП" DocTypeContext="ufs"/> </Identification> <ProfileRef> <UniqueID ID="2" Type="1"/> </ProfileRef> <Telephone PhoneNumber="12312321123"/> <Email>o.ivanov@testemail.com</Email> <Address> <AddressLine>ул.Скрыганова 3-45</AddressLine> <CityName>Москва</CityName> <PostalCode>321465</PostalCode> <CountryName Code="RU"/> </Address> </PassengerDetail> </PassengerInfo> <PaymentRules> <PaymentRule DateTime="2014-12-10T20:32:21" RuleType="5"/> </PaymentRules> <RailReservationIDs> <RailReservationID ResID_Source="agent" ResID_Value="1234"/> <RailReservationID ResID_Source="client" ResID_Value="1234"/> </RailReservationIDs> </RailReservation> </RailReservations> </OTA_RailBookRS>