Service's split

master
Nikolay Ushmodin 6 years ago
parent 32a56a2db9
commit 89f9821c94

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<xs:import schemaLocation="avs5rs_sale.xsd" namespace=""/>
<xs:import schemaLocation="avs5rs_transit.xsd" namespace=""/>
</xs:schema>

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<xs:simpleType name="IDType">
<xs:restriction base="xs:string">
<xs:maxLength value="36"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="AbstractResponse">
<xs:sequence>
<xs:element name="Error" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="code" type="xs:string" minOccurs="1"/>
<xs:element name="message" type="xs:string" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="UidType">
<xs:restriction base="xs:string">
<xs:length value="36"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="RouteKey">
<xs:sequence>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="dispatchTime" type="xs:time"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ErrorCode">
<xs:restriction base="xs:string">
<xs:enumeration value="INTERNAL"/>
<xs:enumeration value="NOT_FOUND"/>
<xs:enumeration value="SEAT_OCCUPIED"/>
<xs:enumeration value="PERSONAL_DATA_INCORRECT"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="UpdateTicketRequest">
<xs:complexType>
<c:sequence>
<xs:element name="RouteKey" type="RouteKey" minOccurs="1"/>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="passengerGone" type="xs:boolean" minOccurs="0"/>
</c:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UpdateTicketResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
@ -364,43 +364,6 @@
</xs:complexType>
</xs:element>
<xs:element name="GetFreeSeatsRequest">
<xs:complexType>
<xs:choice>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
</xs:sequence>
<xs:sequence>
<xs:element name="tripId" type="IDType" minOccurs="1"/>
<xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
<xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="GetFreeSeatsResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:choice>
<xs:element name="Seat" type="Seat" maxOccurs="unbounded"/>
<xs:element name="TransitSeat" type="TransitSeat" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="GetTicketTypesRequest">
<xs:complexType>
<xs:sequence>
@ -639,220 +602,4 @@
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="SetStationInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="stationId" type="IDType" minOccurs="1"/>
<xs:element name="uid" type="UidType" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SetStationInfoResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="TransitSeat">
<xs:sequence>
<xs:element name="seatId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitBookRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="seatId" type="IDType" maxOccurs="unbounded" minOccurs="1"/>
<xs:element name="Agent" type="Agent" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitBookResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="TransitTicket" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:simpleType name="RelationType">
<xs:restriction base="xs:string">
<xs:enumeration value="OWN"/>
<xs:enumeration value="AGENT"/>
<xs:enumeration value="ATP"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="TransitConfirmRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Ticket" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Passenger" type="Passenger" minOccurs="0"/>
<xs:element name="ticketSeries" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="ticketNumber" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="price" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
<xs:element name="relation" type="RelationType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitConfirmResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="TransitCancelRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitCancelResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="CarrierType">
<xs:sequence>
<xs:element name="name" type="SimpleStringType" minOccurs="0"/>
<xs:element name="inn" type="InnType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitTripInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="dispatchStationUid" type="UidType" minOccurs="0"/>
<xs:element name="arrivalStationUid" type="UidType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="TransitTicket">
<xs:sequence>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="dispatchStationName" type="SimpleStringType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="arrivalStationName" type="SimpleStringType"/>
<xs:element name="Passenger" type="Passenger"/>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="ticketSeries" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="ticketNumber" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
<xs:element name="Agent" type="Agent"/>
<xs:element name="price" type="xs:decimal"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitTripInfoResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="Ticket" type="TransitTicket" maxOccurs="unbounded"/>
<xs:element name="maxSeats" type="xs:int"/>
<xs:element name="freeSeats" type="xs:int"/>
<xs:element name="Carrier" type="CarrierType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="TransitRouteInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="RouteItem">
<xs:sequence>
<xs:element name="order" type="xs:int"/>
<xs:element name="stationName" type="SimpleStringType"/>
<xs:element name="stationUid" type="UidType"/>
<xs:element name="distance" type="xs:integer"/>
<xs:element name="arrivalTime" type="xs:time"/>
<xs:element name="dispatchTime" type="xs:time"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitRouteInfoResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="SimpleStringType"/>
<xs:element name="RouteItem" type="RouteItem" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
@ -72,7 +72,28 @@
</xs:sequence>
</xs:complexType>
<xs:complexType name="Seat">
<xs:sequence>
<xs:element name="id" type="IDType" minOccurs="1"/>
<xs:element name="num" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="GenderType">
<xs:restriction base="xs:string">
<xs:enumeration value="MALE"/>
<xs:enumeration value="FEMALE"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ErrorCode">
<xs:restriction base="xs:string">
<xs:enumeration value="INTERNAL"/>
<xs:enumeration value="NOT_FOUND"/>
<xs:enumeration value="SEAT_OCCUPIED"/>
<xs:enumeration value="PERSONAL_DATA_INCORRECT"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="SetStationInfoRequest">
<xs:complexType>
@ -82,7 +103,7 @@
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SetStationInfoResponse">
<xs:complexType>
<xs:complexContent>
@ -91,18 +112,28 @@
</xs:complexType>
</xs:element>
<xs:element name="GetFreeSeatsRequest">
<xs:complexType name="TransitSeat">
<xs:sequence>
<xs:element name="seatId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitBookRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="seatId" type="IDType" maxOccurs="unbounded" minOccurs="1"/>
<xs:element name="Agent" type="Agent" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GetFreeSeatsResponse">
<xs:element name="TransitBookResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
@ -110,7 +141,14 @@
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="TransitSeat" type="TransitSeat" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="TransitTicket" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
@ -120,44 +158,121 @@
</xs:complexType>
</xs:element>
<xs:complexType name="TransitSeat">
<xs:sequence>
<xs:element name="seatId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="RelationType">
<xs:restriction base="xs:string">
<xs:enumeration value="OWN"/>
<xs:enumeration value="AGENT"/>
<xs:enumeration value="ATP"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="TransitConfirmRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Ticket" maxOccurs="unbounded" minOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="1"/>
<xs:element name="Passenger" type="Passenger" minOccurs="0"/>
<xs:element name="ticketSeries" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="ticketNumber" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="price" type="xs:decimal" minOccurs="1" maxOccurs="1"/>
<xs:element name="relation" type="RelationType" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitBookRequest">
<xs:element name="TransitConfirmResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="TransitCancelRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="seatId" type="IDType" maxOccurs="unbounded" minOccurs="1"/>
<xs:element name="Agent" type="Agent" minOccurs="1"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="TransitTicket">
<xs:element name="TransitCancelResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="CarrierType">
<xs:sequence>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
<xs:element name="name" type="SimpleStringType" minOccurs="0"/>
<xs:element name="inn" type="InnType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitBookResponse">
<xs:complexType name="Passenger">
<xs:sequence>
<xs:element name="firstName" type="xs:string" minOccurs="1"/>
<xs:element name="lastName" type="xs:string" minOccurs="1"/>
<xs:element name="middleName" type="xs:string" minOccurs="0"/>
<xs:element name="docNum" type="xs:string" minOccurs="0"/>
<xs:element name="docSeries" type="xs:string" minOccurs="0"/>
<xs:element name="docTypeId" type="IDType" minOccurs="1"/>
<xs:element name="birthday" type="xs:date" minOccurs="0"/>
<xs:element name="citizenshipISO2" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:length value="2"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="gender" type="GenderType" minOccurs="0"/>
<xs:element name="phone" type="xs:string" minOccurs="0"/>
<xs:element name="info" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:element name="GetFreeSeatsRequest">
<xs:complexType>
<xs:choice>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
</xs:sequence>
<xs:sequence>
<xs:element name="tripId" type="IDType" minOccurs="1"/>
<xs:element name="dispatchStationId" type="IDType" minOccurs="1"/>
<xs:element name="arrivalStationId" type="IDType" minOccurs="1"/>
</xs:sequence>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="GetFreeSeatsResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="TransitTicket" type="TransitTicket" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:choice>
<xs:element name="Seat" type="Seat" maxOccurs="unbounded"/>
<xs:element name="TransitSeat" type="TransitSeat" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
@ -166,38 +281,91 @@
</xs:complexType>
</xs:element>
<xs:element name="TransitConfirmRequest">
<xs:element name="TransitTripInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
<xs:element name="date" type="xs:date"/>
<xs:element name="dispatchStationUid" type="UidType" minOccurs="0"/>
<xs:element name="arrivalStationUid" type="UidType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitConfirmResponse">
<xs:complexType name="TransitTicket">
<xs:sequence>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="dispatchStationName" type="SimpleStringType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="arrivalStationName" type="SimpleStringType"/>
<xs:element name="Passenger" type="Passenger"/>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="ticketSeries" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="ticketNumber" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="seatNum" type="xs:int" minOccurs="1"/>
<xs:element name="Agent" type="Agent"/>
<xs:element name="price" type="xs:decimal"/>
<xs:element name="passengerGone" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitTripInfoResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="Ticket" type="TransitTicket" maxOccurs="unbounded"/>
<xs:element name="maxSeats" type="xs:int"/>
<xs:element name="freeSeats" type="xs:int"/>
<xs:element name="Carrier" type="CarrierType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="TransitCancelRequest">
<xs:element name="TransitRouteInfoRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="RouteKey" type="RouteKey"/>
<xs:element name="ticketId" type="IDType" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Agent" type="Agent" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="TransitCancelResponse">
<xs:complexType name="RouteItem">
<xs:sequence>
<xs:element name="order" type="xs:int"/>
<xs:element name="stationName" type="SimpleStringType"/>
<xs:element name="stationUid" type="UidType"/>
<xs:element name="distance" type="xs:integer"/>
<xs:element name="arrivalTime" type="xs:time"/>
<xs:element name="dispatchTime" type="xs:time"/>
</xs:sequence>
</xs:complexType>
<xs:element name="TransitRouteInfoResponse">
<xs:complexType>
<xs:complexContent>
<xs:restriction base="AbstractResponse"/>
<xs:extension base="AbstractResponse">
<xs:sequence>
<xs:element name="Body">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="SimpleStringType"/>
<xs:element name="RouteItem" type="RouteItem" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>

@ -0,0 +1,21 @@
package com.artmark.avs5rs.dispatcher;
import com.artmark.avs5rs.dispatcher.model.UpdateTicketRequest;
import com.artmark.avs5rs.dispatcher.model.UpdateTicketResponse;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
/**
* Сервис операций диспетчера.
* @author Ushmodin N.
* @since 07.07.2016 10:06
*/
@Path("/dispatcher")
public interface DispatcherService {
@POST
@Path("updateTicket")
UpdateTicketResponse updateTicket(UpdateTicketRequest request);
}

@ -0,0 +1,160 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AbstractResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="AbstractResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Error" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractResponse", propOrder = {
"error"
})
@XmlSeeAlso({
UpdateTicketResponse.class
})
public class AbstractResponse {
@XmlElement(name = "Error")
protected AbstractResponse.Error error;
/**
* Gets the value of the error property.
*
* @return
* possible object is
* {@link AbstractResponse.Error }
*
*/
public AbstractResponse.Error getError() {
return error;
}
/**
* Sets the value of the error property.
*
* @param value
* allowed object is
* {@link AbstractResponse.Error }
*
*/
public void setError(AbstractResponse.Error value) {
this.error = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"code",
"message"
})
public static class Error {
@XmlElement(required = true)
protected String code;
@XmlElement(required = true)
protected String message;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(String value) {
this.message = value;
}
}
}

@ -0,0 +1,42 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ErrorCode.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="ErrorCode">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="INTERNAL"/>
* &lt;enumeration value="NOT_FOUND"/>
* &lt;enumeration value="SEAT_OCCUPIED"/>
* &lt;enumeration value="PERSONAL_DATA_INCORRECT"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "ErrorCode")
@XmlEnum
public enum ErrorCode {
INTERNAL,
NOT_FOUND,
SEAT_OCCUPIED,
PERSONAL_DATA_INCORRECT;
public String value() {
return name();
}
public static ErrorCode fromValue(String v) {
return valueOf(v);
}
}

@ -0,0 +1,72 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.artmark.avs5rs.dispatcher.model package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.artmark.avs5rs.dispatcher.model
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link AbstractResponse }
*
*/
public AbstractResponse createAbstractResponse() {
return new AbstractResponse();
}
/**
* Create an instance of {@link UpdateTicketResponse }
*
*/
public UpdateTicketResponse createUpdateTicketResponse() {
return new UpdateTicketResponse();
}
/**
* Create an instance of {@link AbstractResponse.Error }
*
*/
public AbstractResponse.Error createAbstractResponseError() {
return new AbstractResponse.Error();
}
/**
* Create an instance of {@link UpdateTicketRequest }
*
*/
public UpdateTicketRequest createUpdateTicketRequest() {
return new UpdateTicketRequest();
}
/**
* Create an instance of {@link RouteKey }
*
*/
public RouteKey createRouteKey() {
return new RouteKey();
}
}

@ -0,0 +1,121 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for RouteKey complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="RouteKey">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="dispatchStationUid" type="{}UidType"/>
* &lt;element name="arrivalStationUid" type="{}UidType"/>
* &lt;element name="dispatchTime" type="{http://www.w3.org/2001/XMLSchema}time"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RouteKey", propOrder = {
"dispatchStationUid",
"arrivalStationUid",
"dispatchTime"
})
public class RouteKey {
@XmlElement(required = true)
protected String dispatchStationUid;
@XmlElement(required = true)
protected String arrivalStationUid;
@XmlElement(required = true)
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar dispatchTime;
/**
* Gets the value of the dispatchStationUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationUid() {
return dispatchStationUid;
}
/**
* Sets the value of the dispatchStationUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationUid(String value) {
this.dispatchStationUid = value;
}
/**
* Gets the value of the arrivalStationUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationUid() {
return arrivalStationUid;
}
/**
* Sets the value of the arrivalStationUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationUid(String value) {
this.arrivalStationUid = value;
}
/**
* Gets the value of the dispatchTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDispatchTime() {
return dispatchTime;
}
/**
* Sets the value of the dispatchTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDispatchTime(XMLGregorianCalendar value) {
this.dispatchTime = value;
}
}

@ -0,0 +1,119 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="RouteKey" type="{}RouteKey"/>
* &lt;element name="ticketId" type="{}IDType"/>
* &lt;element name="passengerGone" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"routeKey",
"ticketId",
"passengerGone"
})
@XmlRootElement(name = "UpdateTicketRequest")
public class UpdateTicketRequest {
@XmlElement(name = "RouteKey", required = true)
protected RouteKey routeKey;
@XmlElement(required = true)
protected String ticketId;
protected Boolean passengerGone;
/**
* Gets the value of the routeKey property.
*
* @return
* possible object is
* {@link RouteKey }
*
*/
public RouteKey getRouteKey() {
return routeKey;
}
/**
* Sets the value of the routeKey property.
*
* @param value
* allowed object is
* {@link RouteKey }
*
*/
public void setRouteKey(RouteKey value) {
this.routeKey = value;
}
/**
* Gets the value of the ticketId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTicketId() {
return ticketId;
}
/**
* Sets the value of the ticketId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTicketId(String value) {
this.ticketId = value;
}
/**
* Gets the value of the passengerGone property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isPassengerGone() {
return passengerGone;
}
/**
* Sets the value of the passengerGone property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setPassengerGone(Boolean value) {
this.passengerGone = value;
}
}

@ -0,0 +1,34 @@
package com.artmark.avs5rs.dispatcher.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "UpdateTicketResponse")
public class UpdateTicketResponse
extends AbstractResponse
{
}

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="qualified">
<xs:simpleType name="IDType">
<xs:restriction base="xs:string">
<xs:maxLength value="36"/>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="AbstractResponse">
<xs:sequence>
<xs:element name="Error" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="code" type="xs:string" minOccurs="1"/>
<xs:element name="message" type="xs:string" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="UidType">
<xs:restriction base="xs:string">
<xs:length value="36"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="RouteKey">
<xs:sequence>
<xs:element name="dispatchStationUid" type="UidType"/>
<xs:element name="arrivalStationUid" type="UidType"/>
<xs:element name="dispatchTime" type="xs:time"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="ErrorCode">
<xs:restriction base="xs:string">
<xs:enumeration value="INTERNAL"/>
<xs:enumeration value="NOT_FOUND"/>
<xs:enumeration value="SEAT_OCCUPIED"/>
<xs:enumeration value="PERSONAL_DATA_INCORRECT"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="UpdateTicketRequest">
<xs:complexType>
<c:sequence>
<xs:element name="RouteKey" type="RouteKey" minOccurs="1"/>
<xs:element name="ticketId" type="IDType" minOccurs="1"/>
<xs:element name="passengerGone" type="xs:boolean" minOccurs="0"/>
</c:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UpdateTicketResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="AbstractResponse"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:schema>

@ -1,44 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* Информация об агенте
*
* @author V.Skorykh
* @since 30.05.2016 13:42
* @since 5.2
*/
@XmlType
@XmlAccessorType(XmlAccessType.FIELD)
public class Agent {
/**
* ИНН агента
*/
private String inn;
/**
* Имя агента (название организации)
*/
private String name;
public String getInn() {
return inn;
}
public void setInn(String inn) {
this.inn = inn;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -1,64 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:04
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "BookOrderRequest")
public class BookOrderRequest {
private String tripId;
private String dispatchStationId;
private String arrivalStationId;
@XmlElement(name = "Sale")
private List<Sale> sales;
@XmlElement(name = "Agent")
private Agent agent;
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
public List<Sale> getSales() {
return sales;
}
public void setSales(List<Sale> sales) {
this.sales = sales;
}
public Agent getAgent() {
return agent;
}
public void setAgent(Agent agent) {
this.agent = agent;
}
}

@ -1,28 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:09
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BookOrderResponse")
public class BookOrderResponse {
/**
* Идентификато договора
*/
private String orderId;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
}

@ -1,35 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:23
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "CancelTicketRequest")
public class CancelTicketRequest {
private String ticketId;
@XmlElement(name = "Agent")
private Agent agent;
public String getTicketId() {
return ticketId;
}
public void setTicketId(String ticketId) {
this.ticketId = ticketId;
}
public Agent getAgent() {
return agent;
}
public void setAgent(Agent agent) {
this.agent = agent;
}
}

@ -1,26 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:23
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CancelTicketResponse")
public class CancelTicketResponse {
@XmlElement(name = "Ticket")
private Ticket ticket;
public Ticket getTicket() {
return ticket;
}
public void setTicket(Ticket ticket) {
this.ticket = ticket;
}
}

@ -1,35 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:18
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ConfirmOrderRequest")
public class ConfirmOrderRequest {
private String orderId;
@XmlElement(name = "Agent")
private Agent agent;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public Agent getAgent() {
return agent;
}
public void setAgent(Agent agent) {
this.agent = agent;
}
}

@ -1,37 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:18
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ConfirmOrderResponse")
public class ConfirmOrderResponse {
private String orderId;
@XmlElement(name = "Ticket")
private List<Ticket> tickets;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public List<Ticket> getTickets() {
return tickets;
}
public void setTickets(List<Ticket> tickets) {
this.tickets = tickets;
}
}

@ -1,28 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Ushmodin N.
* @since 07.07.2016 14:34
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class DateAdapter extends XmlAdapter<String, Date> {
private static final String FORMAT = "yyyy-MM-dd";
@Override
public Date unmarshal(String s) throws Exception {
return new SimpleDateFormat(FORMAT).parse(s);
}
@Override
public String marshal(Date date) throws Exception {
return new SimpleDateFormat(FORMAT).format(date);
}
}

@ -1,38 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:36
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class DocumentType {
/**
* ID типа документа. Обязателен. Может совпадать с названием.
*/
protected String id;
/**
* Название типа документа. Обязателен.
*/
protected String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:25
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "EchoRequest")
public class EchoRequest {
/**
* Сообщение которое будет возвращено в ответ
*/
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}

@ -1,26 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:25
*/
@XmlType(name = "EchoResponse")
@XmlAccessorType(XmlAccessType.FIELD)
public class EchoResponse {
/**
* Сообщение переданное в запросе
*/
private String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}

@ -1,10 +0,0 @@
package com.artmark.avs5rs.model;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:27
*/
public enum Gender {
MALE, FEMALE
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:27
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetArrivalStationsRequest")
public class GetArrivalStationsRequest {
/**
* Идентификатор станции отправления. Обязательно.
*/
private String dispatchStationId;
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:30
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetArrivalStationsResponse")
public class GetArrivalStationsResponse {
@XmlElement(name = "Station")
private List<Station> stations;
public List<Station> getStations() {
return stations;
}
public void setStations(List<Station> stations) {
this.stations = stations;
}
}

@ -1,15 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 08.07.2016 09:08
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetDispatchStationsRequest")
public class GetDispatchStationsRequest {
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:27
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetDispatchStationsResponse")
public class GetDispatchStationsResponse {
@XmlElement(name = "Station")
private List<Station> station;
public List<Station> getStation() {
return station;
}
public void setStation(List<Station> station) {
this.station = station;
}
}

@ -1,43 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:59
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetDocumentTypesRequest")
public class GetDocumentTypesRequest {
private String tripId;
private String dispatchStationId;
private String arrivalStationId;
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
}

@ -1,28 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:59
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetDocumentTypesResponse")
public class GetDocumentTypesResponse {
@XmlElement(name = "DocumentType")
private List<DocumentType> documentTypes;
public List<DocumentType> getDocumentTypes() {
return documentTypes;
}
public void setDocumentTypes(List<DocumentType> documentTypes) {
this.documentTypes = documentTypes;
}
}

@ -1,52 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:53
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetFreeSeatsRequest")
public class GetFreeSeatsRequest {
/**
* Идентификатор рейса. Обязательный.
*/
private String tripId;
/**
* Идентификатор станции отправления. Обязательный.
*/
private String dispatchStationId;
/**
* Идентификатор станции назначения. Обязательный.
*/
private String arrivalStationId;
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:54
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetFreeSeatsResponse")
public class GetFreeSeatsResponse {
@XmlElement(name = "Seat")
private List<Seat> seats;
public List<Seat> getSeats() {
return seats;
}
public void setSeats(List<Seat> seats) {
this.seats = seats;
}
}

@ -1,24 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:15
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetOrderRequest")
public class GetOrderRequest {
private String orderId;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
}

@ -1,37 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:15
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetOrderResponse")
public class GetOrderResponse {
private String orderId;
@XmlElement(name = "Ticket")
private List<Ticket> tickets;
public String getOrderId() {
return orderId;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public List<Ticket> getTickets() {
return tickets;
}
public void setTickets(List<Ticket> tickets) {
this.tickets = tickets;
}
}

@ -1,42 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:55
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetTicketTypesRequest")
public class GetTicketTypesRequest {
private String tripId;
private String dispatchStationId;
private String arrivalStationId;
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
}

@ -1,28 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:58
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetTicketTypesResponse")
public class GetTicketTypesResponse {
@XmlElement(name = "TicketType")
private List<TicketType> ticketTypes;
public List<TicketType> getTicketTypes() {
return ticketTypes;
}
public void setTicketTypes(List<TicketType> ticketTypes) {
this.ticketTypes = ticketTypes;
}
}

@ -1,28 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:49
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "GetTripStopsRequest")
public class GetTripStopsRequest {
/**
* Идентификатор рейса. Обязательно.
*/
private String tripId;
public String getTripId() {
return tripId;
}
public void setTripId(String tripId) {
this.tripId = tripId;
}
}

@ -1,27 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:49
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "GetTripStopsResponse")
public class GetTripStopsResponse {
@XmlElement(name = "Stop")
private List<Stop> stops;
public List<Stop> getStops() {
return stops;
}
public void setStops(List<Stop> stops) {
this.stops = stops;
}
}

@ -1,162 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Date;
/**
* Пассажир
*
* @author V.Skorykh
* @since 31.01.2008 21:36:36
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Passenger")
public class Passenger {
/**
* Фамилия. Лимит: 64 символа.
*/
protected String lastName;
/**
* Имя. Лимит: 64 символа.
*/
protected String firstName;
/**
* Отчество. Заполняется для международных рейсов. Лимит: 64 символа.
*/
protected String middleName;
/**
* Номер документа. Лимит: 16 символов.
*/
protected String docNum;
/**
* Серия документа. Лимит: 16 символов.
*/
protected String docSeries;
/**
* ID типа документа
*/
protected String docTypeId;
/**
* Телефон пассажира. Может использоваться для экстренной связи с пассажиром
*/
protected String phone;
/**
* Дата рождения. Заполняется для международных рейсов.
*/
@XmlJavaTypeAdapter(DateAdapter.class)
protected Date birthday;
/**
* Гражданство. Лимит: 32 символа. Начиная с версии 5.2.2 можно подавать не название страны, а двузначный код страны
*/
protected String citizenshipISO2;
/**
* Пол. См. константы GENDER_MALE и GENDER_FEMALE
*/
protected Gender gender;
/**
* Дополнительная информация. Лимит: 32 символа
*/
protected String info;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getMiddleName() {
return middleName;
}
public void setMiddleName(String middleName) {
this.middleName = middleName;
}
public String getDocNum() {
return docNum;
}
public void setDocNum(String docNum) {
this.docNum = docNum;
}
public String getDocSeries() {
return docSeries;
}
public void setDocSeries(String docSeries) {
this.docSeries = docSeries;
}
public String getDocTypeId() {
return docTypeId;
}
public void setDocTypeId(String docTypeId) {
this.docTypeId = docTypeId;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getCitizenshipISO2() {
return citizenshipISO2;
}
public void setCitizenshipISO2(String citizenshipISO2) {
this.citizenshipISO2 = citizenshipISO2;
}
public Gender getGender() {
return gender;
}
public void setGender(Gender gender) {
this.gender = gender;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
}

@ -1,82 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.*;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:10
*/
@XmlRootElement(name = "Response")
@XmlAccessorType(XmlAccessType.FIELD)
public class Response<T> {
@XmlAttribute
private boolean success;
@XmlElement(name = "Body")
private T body;
@XmlElement(name = "Error")
private ResponseError error;
public static <T> Response<T> ok(T body) {
Response<T> result = new Response<T>();
result.success = true;
result.body = body;
return result;
}
public static <T> Response<T> error(String code, String message) {
Response<T> result = new Response<T>();
result.success = false;
result.error = new ResponseError();
result.error.code = code;
result.error.message = message;
return result;
}
public boolean isSuccess() {
return success;
}
public T getBody() {
return body;
}
public ResponseError getError() {
return error;
}
public void setSuccess(boolean success) {
this.success = success;
}
public void setBody(T body) {
this.body = body;
}
public void setError(ResponseError error) {
this.error = error;
}
@XmlType(name = "ResponseError")
public static class ResponseError {
private String code;
private String message;
public String getCode() {
return code;
}
public String getMessage() {
return message;
}
public void setCode(String code) {
this.code = code;
}
public void setMessage(String message) {
this.message = message;
}
}
}

@ -1,35 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "ReturnTicketRequest")
public class ReturnTicketRequest {
private String ticketId;
@XmlElement(name = "Agent")
private Agent agent;
public String getTicketId() {
return ticketId;
}
public void setTicketId(String ticketId) {
this.ticketId = ticketId;
}
public Agent getAgent() {
return agent;
}
public void setAgent(Agent agent) {
this.agent = agent;
}
}

@ -1,26 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:21
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReturnTicketResponse")
public class ReturnTicketResponse {
@XmlElement(name = "Ticket")
private Ticket ticket;
public Ticket getTicket() {
return ticket;
}
public void setTicket(Ticket ticket) {
this.ticket = ticket;
}
}

@ -1,44 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:29
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Sale")
public class Sale {
private String seatId;
private String ticketTypeId;
@XmlElement(name = "Passenger")
private Passenger passenger;
public String getSeatId() {
return seatId;
}
public void setSeatId(String seatId) {
this.seatId = seatId;
}
public String getTicketTypeId() {
return ticketTypeId;
}
public void setTicketTypeId(String ticketTypeId) {
this.ticketTypeId = ticketTypeId;
}
public Passenger getPassenger() {
return passenger;
}
public void setPassenger(Passenger passenger) {
this.passenger = passenger;
}
}

@ -1,54 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Date;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:33
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "SearchTripsRequest")
public class SearchTripsRequest {
/**
* Идентификатор станции отправления
*/
private String dispatchStationId;
/**
* Идентификатор станции назначения
*/
private String arrivalStationId;
/**
* Дата на которую выполняется поиск рейса
*/
@XmlJavaTypeAdapter(DateAdapter.class)
private Date date;
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
}

@ -1,30 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;
/**
* @author Ushmodin N.
* @since 07.07.2016 10:32
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SearchTripsResponse")
public class SearchTripsResponse {
/**
* Список рейсов
*/
@XmlElement(name = "Trip")
private List<Trip> trips;
public List<Trip> getTrips() {
return trips;
}
public void setTrips(List<Trip> trips) {
this.trips = trips;
}
}

@ -1,51 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:35
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Seat")
public class Seat {
/**
* Идентификатор места. Обязателен. Может сопадать с названием.
*/
private String id;
/**
* Название места. Обязателен. Отображается в интерфейсе пользователя.
*/
private String name;
/**
* Тип места. Не обязателен
*/
private String type;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}

@ -1,64 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:38
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Station")
public class Station {
/**
* Идентификатор станции. Обязателен.
*/
private String id;
/**
* Наименование станции. Обязателен. Использется для отображения в интерфейсе пользователя
*/
private String name;
/**
* Название региона станции. Не обязателен. Использется для отображения в интерфейсе пользователя
*/
private String region;
/**
* ОКАТО станции. Не обязателен. Использется для поиска одинковых станций и отображения в интерфейсе пользователя
* TODO: обязателен или нет?
*/
private String okato;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public String getOkato() {
return okato;
}
public void setOkato(String okato) {
this.okato = okato;
}
}

@ -1,125 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.util.Date;
/**
* Остановка рейса
*
* @author V.Skorykh
* @since 28.08.2014 14:46
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class Stop {
/**
* ID остановки. Совпадает с ID станции. Обязателен.
*/
private String id;
/**
* Название остановки. Совпадает с названием станции. Обязателен.
*/
private String name;
/**
* Район расположения остановки. Не обязателен.
*/
private String regionName;
/**
* Дата-время прибытия на остановку. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
private Date arrivalDate;
/**
* Дата-время отправления с остановки. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
private Date dispatchDate;
/**
* Время стоянки в минутах. Не Обязателен.
*/
private Integer stopTime;
/**
* Расстояние от пункта отправления до остановки в км. Не Обязателен.
*/
private Integer distance;
/**
* Цена полного билета. Обязателен.
*/
private BigDecimal price;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRegionName() {
return regionName;
}
public void setRegionName(String regionName) {
this.regionName = regionName;
}
public Date getArrivalDate() {
return arrivalDate;
}
public void setArrivalDate(Date arrivalDate) {
this.arrivalDate = arrivalDate;
}
public Date getDispatchDate() {
return dispatchDate;
}
public void setDispatchDate(Date dispatchDate) {
this.dispatchDate = dispatchDate;
}
public Integer getStopTime() {
return stopTime;
}
public void setStopTime(Integer stopTime) {
this.stopTime = stopTime;
}
public Integer getDistance() {
return distance;
}
public void setDistance(Integer distance) {
this.distance = distance;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
}

@ -1,413 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:38
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Ticket")
public class Ticket {
/**
* Идентификатор квитанции билета. Обязателен.
*/
protected String id;
/**
* Серия билета. Не Обязателен.
*/
protected String series;
/**
* Номер билета. Обязателен.
*/
protected String number;
/**
* Дата и время продажи билета. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
protected Date created;
/**
* Дата и время возврата билета. Заполняется после возврата или отмены билета.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
protected Date returned;
/**
* ID статуса билета. Обязателен
*/
protected TicketStatusCode status;
/**
* класс билета. Обязателен.
*/
protected TicketClassCode ticketClass;
/**
* ID типа билета. Обязателен.
*/
protected String typeId;
/**
* Номер маршрута. Не Обязателен.
*/
protected String routeNum;
/**
* Название маршрута. Обязателен.
*/
protected String routeName;
/**
* Описание рейса. Не Обязателен.
*/
protected String description;
/**
* Описание автобуса. Обязателен.
*/
protected String busInfo;
/**
* Перевозчик. Обязателен.
*/
protected String carrierName;
/**
* ИНН перевозчика. Обязателен.
*/
protected String carrierInn;
/**
* Платформа. Не Обязателен.
*/
protected String platform;
/**
* Дата отправления рейса. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
protected Date dispatchDate;
/**
* Станция отправления. Обязателен.
*/
protected String dispatchStation;
/**
* Адрес отправления. Не Обязателен.
*/
protected String dispatchAddress;
/**
* Дата и время прибытия на станцию. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
protected Date arrivalDate;
/**
* Станция назначения. Обязателен.
*/
protected String arrivalStation;
/**
* Адрес станции прибытия. Не Обязателен.
*/
protected String arrivalAddress;
/**
* Место. Обязателен.
*/
protected String seatName;
/**
* Информация о пассажире. Обязателен.
*/
@XmlElement(name = "Passenger")
protected Passenger passenger;
/**
* Тариф (руб). Обязателен.
*/
protected BigDecimal fare;
/**
* Cборы (руб). Обязателен. Если нет то 0.
*/
protected BigDecimal fees;
/**
* Удержано Тариф (руб). Заполняется в случает возврата или отмены.
*/
protected BigDecimal chargeFare;
/**
* Удержано Остальные сборы (руб). Заполняется в случает возврата или отмены.
*/
protected BigDecimal chargeOthers;
/**
* Возврат Тариф (руб). Заполняется в случает возврата или отмены.
*/
protected BigDecimal repaymentFare;
/**
* Возврат Остальные сборы (руб). Заполняется в случает возврата или отмены.
*/
protected BigDecimal repaymentOthers;
/**
* Информация о страховании. Обязательно. Неоходим при печати билета.
*/
protected String insuranceInfo;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getSeries() {
return series;
}
public void setSeries(String series) {
this.series = series;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getReturned() {
return returned;
}
public void setReturned(Date returned) {
this.returned = returned;
}
public TicketStatusCode getStatus() {
return status;
}
public void setStatus(TicketStatusCode status) {
this.status = status;
}
public TicketClassCode getTicketClass() {
return ticketClass;
}
public void setTicketClass(TicketClassCode ticketClass) {
this.ticketClass = ticketClass;
}
public String getTypeId() {
return typeId;
}
public void setTypeId(String typeId) {
this.typeId = typeId;
}
public String getRouteNum() {
return routeNum;
}
public void setRouteNum(String routeNum) {
this.routeNum = routeNum;
}
public String getRouteName() {
return routeName;
}
public void setRouteName(String routeName) {
this.routeName = routeName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getBusInfo() {
return busInfo;
}
public void setBusInfo(String busInfo) {
this.busInfo = busInfo;
}
public String getCarrierName() {
return carrierName;
}
public void setCarrierName(String carrierName) {
this.carrierName = carrierName;
}
public String getCarrierInn() {
return carrierInn;
}
public void setCarrierInn(String carrierInn) {
this.carrierInn = carrierInn;
}
public String getPlatform() {
return platform;
}
public void setPlatform(String platform) {
this.platform = platform;
}
public Date getDispatchDate() {
return dispatchDate;
}
public void setDispatchDate(Date dispatchDate) {
this.dispatchDate = dispatchDate;
}
public String getDispatchStation() {
return dispatchStation;
}
public void setDispatchStation(String dispatchStation) {
this.dispatchStation = dispatchStation;
}
public String getDispatchAddress() {
return dispatchAddress;
}
public void setDispatchAddress(String dispatchAddress) {
this.dispatchAddress = dispatchAddress;
}
public Date getArrivalDate() {
return arrivalDate;
}
public void setArrivalDate(Date arrivalDate) {
this.arrivalDate = arrivalDate;
}
public String getArrivalStation() {
return arrivalStation;
}
public void setArrivalStation(String arrivalStation) {
this.arrivalStation = arrivalStation;
}
public String getArrivalAddress() {
return arrivalAddress;
}
public void setArrivalAddress(String arrivalAddress) {
this.arrivalAddress = arrivalAddress;
}
public String getSeatName() {
return seatName;
}
public void setSeatName(String seatName) {
this.seatName = seatName;
}
public Passenger getPassenger() {
return passenger;
}
public void setPassenger(Passenger passenger) {
this.passenger = passenger;
}
public BigDecimal getFare() {
return fare;
}
public void setFare(BigDecimal fare) {
this.fare = fare;
}
public BigDecimal getFees() {
return fees;
}
public void setFees(BigDecimal fees) {
this.fees = fees;
}
public BigDecimal getChargeFare() {
return chargeFare;
}
public void setChargeFare(BigDecimal chargeFare) {
this.chargeFare = chargeFare;
}
public BigDecimal getChargeOthers() {
return chargeOthers;
}
public void setChargeOthers(BigDecimal chargeOthers) {
this.chargeOthers = chargeOthers;
}
public BigDecimal getRepaymentFare() {
return repaymentFare;
}
public void setRepaymentFare(BigDecimal repaymentFare) {
this.repaymentFare = repaymentFare;
}
public BigDecimal getRepaymentOthers() {
return repaymentOthers;
}
public void setRepaymentOthers(BigDecimal repaymentOthers) {
this.repaymentOthers = repaymentOthers;
}
public String getInsuranceInfo() {
return insuranceInfo;
}
public void setInsuranceInfo(String insuranceInfo) {
this.insuranceInfo = insuranceInfo;
}
}

@ -1,17 +0,0 @@
package com.artmark.avs5rs.model;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:36
*/
public enum TicketClassCode {
/**
* Пассажирский билет, с выделением места
*/
PASSENGER,
/**
* Багажный билет, без выделения места
*/
BAGGAGE
}

@ -1,29 +0,0 @@
package com.artmark.avs5rs.model;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:45
*/
public enum TicketStatusCode {
/**
* Забронирован. Данный статус билет получает после бронирования. bookOrder
*/
RESERVED,
/**
* Продан. Данный статус билет получает после операции продажи. confirmOrder
*/
SOLD,
/**
* Отмена билета. Данный статус билет получает после отмены билета. cancelTicket
*/
CANCELED,
/**
* Выполнен возврат билета. Данный статус билет получает после возрата билета. returnTicket
*/
RETURNED
}

@ -1,65 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.math.BigDecimal;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:34
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TicketType")
public class TicketType {
/**
* Идентификатор типа билета. Обязателен. Может совпадать с названием.
*/
private String id;
/**
* Название типа билета. Обязателен.
*/
private String name;
/**
* Цена для заданного типа билета (со сборами).
*/
private BigDecimal price;
/**
* Класс билета
*/
private TicketClassCode ticketClass;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public TicketClassCode getTicketClass() {
return ticketClass;
}
public void setTicketClass(TicketClassCode ticketClass) {
this.ticketClass = ticketClass;
}
}

@ -1,26 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.adapters.XmlAdapter;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author Ushmodin N.
* @since 07.07.2016 14:36
*/
public class TimestampAdapter extends XmlAdapter<String,Date> {
private static final String FORMAT = "yyyy-MM-dd'T'HH:mm:ss";
@Override
public Date unmarshal(String s) throws Exception {
return new SimpleDateFormat(FORMAT).parse(s);
}
@Override
public String marshal(Date date) throws Exception {
return new SimpleDateFormat(FORMAT).format(date);
}
}

@ -1,267 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.math.BigDecimal;
import java.util.Date;
/**
* @author Ushmodin N.
* @since 07.07.2016 11:42
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Trip")
public class Trip {
/**
* ID рейса. Обязателен.
*/
private String id;
/**
* Номер маршрута. Не обязателен.
*/
private String num;
/**
* Идентификатор маршрута. Не обязательно.
*/
private String routeId;
/**
* Название маршрута. Обязателен.
*/
private String name;
/**
* Дата и время отправления. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
private Date dispatchDate;
/**
* Дата и время прибытия. Обязателен.
*/
@XmlJavaTypeAdapter(TimestampAdapter.class)
private Date arrivalDate;
/**
* ID станции отправления. Обязателен.
*/
private String dispatchStationId;
/**
* Станция отправления рейса. Обязателен.
*/
private String dispatchStationName;
/**
* ID станции назначения. Обязателен.
*/
private String arrivalStationId;
/**
* Станция назначения рейса. Обязателен.
*/
private String arrivalStationName;
/**
* Цена полного проездного билета (включая сборы). Обязателен.
*/
private BigDecimal price;
/**
* Название перевозчика. Не Обязателен.
*/
private String carrierName;
/**
* ИНН перевозчика. Обязателен.
*/
private String carrierInn;
/**
* Описание автобуса. Обязателен.
*/
private String busInfo;
/**
* тип рейса. Обязателен.
*/
private TripTypeCode type;
/**
* статус рейса. Обязателен.
*/
private TripStatusCode status;
@XmlElement(name = "class")
private TripClassCode clazz;
/**
* Количество мест в автобусе. Обязателен.
*/
private Integer seatCount;
/**
* Кол-во мест, доступных для продажи. Обязателен.
*/
private Integer freeSeatCount;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getDispatchDate() {
return dispatchDate;
}
public void setDispatchDate(Date dispatchDate) {
this.dispatchDate = dispatchDate;
}
public Date getArrivalDate() {
return arrivalDate;
}
public void setArrivalDate(Date arrivalDate) {
this.arrivalDate = arrivalDate;
}
public String getDispatchStationId() {
return dispatchStationId;
}
public void setDispatchStationId(String dispatchStationId) {
this.dispatchStationId = dispatchStationId;
}
public String getDispatchStationName() {
return dispatchStationName;
}
public void setDispatchStationName(String dispatchStationName) {
this.dispatchStationName = dispatchStationName;
}
public String getArrivalStationId() {
return arrivalStationId;
}
public void setArrivalStationId(String arrivalStationId) {
this.arrivalStationId = arrivalStationId;
}
public String getArrivalStationName() {
return arrivalStationName;
}
public void setArrivalStationName(String arrivalStationName) {
this.arrivalStationName = arrivalStationName;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public String getCarrierName() {
return carrierName;
}
public void setCarrierName(String carrierName) {
this.carrierName = carrierName;
}
public String getCarrierInn() {
return carrierInn;
}
public void setCarrierInn(String carrierInn) {
this.carrierInn = carrierInn;
}
public String getBusInfo() {
return busInfo;
}
public void setBusInfo(String busInfo) {
this.busInfo = busInfo;
}
public TripTypeCode getType() {
return type;
}
public void setType(TripTypeCode type) {
this.type = type;
}
public TripStatusCode getStatus() {
return status;
}
public void setStatus(TripStatusCode status) {
this.status = status;
}
public Integer getSeatCount() {
return seatCount;
}
public void setSeatCount(Integer seatCount) {
this.seatCount = seatCount;
}
public Integer getFreeSeatCount() {
return freeSeatCount;
}
public void setFreeSeatCount(Integer freeSeatCount) {
this.freeSeatCount = freeSeatCount;
}
public TripClassCode getClazz() {
return clazz;
}
public void setClazz(TripClassCode clazz) {
this.clazz = clazz;
}
public String getRouteId() {
return routeId;
}
public void setRouteId(String routeId) {
this.routeId = routeId;
}
}

@ -1,18 +0,0 @@
package com.artmark.avs5rs.model;
/**
* Класс рейса
* @author Ushmodin N.
* @since 26.12.2016 12:53
*/
public enum TripClassCode {
/**
* Регулярный рейс
*/
REGULAR,
/**
* Заказной рейс
*/
CUSTOM
}

@ -1,30 +0,0 @@
package com.artmark.avs5rs.model;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:24
*/
public enum TripStatusCode {
/**
* В продаже. На рейса доступны все опрерации.
*/
ON_SALE,
/**
* Приостановка остановка продажи. Рейс не доступен для продажи.
*/
SUSPENDED,
/**
* Рейс отменен. Рейс не доступен для продажи.
*/
CANCELED,
/**
* Неопределенный статус. Рейс не доступен для продажи.
*/
UNKNOWN,
/**
* Рейс отправлен. Продажа запрещена.
*
*/
DISPATCHED
}

@ -1,59 +0,0 @@
package com.artmark.avs5rs.model;
/**
* @author Ushmodin N.
* @since 07.07.2016 12:23
*/
public enum TripTypeCode {
/**
* Типа рейса - Междугородный
*/
@Deprecated
INTERURBAN,
/**
* Типа рейса - Пригородный
*/
@Deprecated
SUBURBAN,
/**
* Типа рейса - Внутриобластной
*/
@Deprecated
INTRAREGIONAL,
/**
* Типа рейса - Межреспубликанский
*/
@Deprecated
INTERREPUBLICAN,
/**
* Типа рейса - Внутрирайонный
*/
@Deprecated
INTRADISTRICT,
/**
* Международный
*/
INTERNATIONAL,
/**
* Межрегиональный
*/
INTERREGIONAL,
/**
* Смежный межрегиональный.
*/
ADJACENT_INTERREGIONAL,
/**
* Межмуниципальный.
*/
INTERMUNICIPAL,
/**
* Муниципальный.
*/
MUNICIPAL,
}

@ -1,44 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* @author Ushmodin N.
* @since 12.07.2016 12:14
*/
@XmlRootElement(name = "UpdateTicketRequest")
@XmlAccessorType(XmlAccessType.FIELD)
public class UpdateTicketRequest {
private String ticketId;
@XmlElement(name = "Passenger")
private Passenger passenger;
@XmlElement(name = "Agent")
private Agent agent;
public String getTicketId() {
return ticketId;
}
public void setTicketId(String ticketId) {
this.ticketId = ticketId;
}
public Passenger getPassenger() {
return passenger;
}
public void setPassenger(Passenger passenger) {
this.passenger = passenger;
}
public Agent getAgent() {
return agent;
}
public void setAgent(Agent agent) {
this.agent = agent;
}
}

@ -1,25 +0,0 @@
package com.artmark.avs5rs.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* @author Ushmodin N.
* @since 12.07.2016 12:13
*/
@XmlType(name = "UpdateTicketResponse")
@XmlAccessorType(XmlAccessType.FIELD)
public class UpdateTicketResponse {
@XmlElement(name = "Ticket")
private Ticket ticket;
public Ticket getTicket() {
return ticket;
}
public void setTicket(Ticket ticket) {
this.ticket = ticket;
}
}

@ -1,6 +1,6 @@
package com.artmark.avs5rs;
package com.artmark.avs5rs.sale;
import com.artmark.avs5rs.model.*;
import com.artmark.avs5rs.sale.model.*;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
@ -20,7 +20,7 @@ public interface SaleService {
*/
@Path("/echo")
@POST
Response<EchoResponse> echo(EchoRequest request);
EchoResponse echo(EchoRequest request);
/**
* Метод получения станций отправления.
@ -29,7 +29,7 @@ public interface SaleService {
*/
@Path("/getDispatchStations")
@POST
Response<GetDispatchStationsResponse> getDispatchStations(GetDispatchStationsRequest request);
GetDispatchStationsResponse getDispatchStations(GetDispatchStationsRequest request);
/**
* Метод получения станций назначения от станции отправления. В параметра принимает идентификато станции отправления.
@ -37,7 +37,7 @@ public interface SaleService {
*/
@Path("/getArrivalStations")
@POST
Response<GetArrivalStationsResponse> getArrivalStations(GetArrivalStationsRequest request);
GetArrivalStationsResponse getArrivalStations(GetArrivalStationsRequest request);
/**
* Метод возвращает список рейсов от станции отправления до станции назначения на заданную дату.
@ -45,7 +45,7 @@ public interface SaleService {
*/
@Path("/searchTrips")
@POST
Response<SearchTripsResponse> searchTrips(SearchTripsRequest request);
SearchTripsResponse searchTrips(SearchTripsRequest request);
/**
* Метод возвращает список остановочных пунктов для рейса.
@ -54,7 +54,7 @@ public interface SaleService {
*/
@Path("/getTripStops")
@POST
Response<GetTripStopsResponse> getTripStops(GetTripStopsRequest request);
GetTripStopsResponse getTripStops(GetTripStopsRequest request);
/**
* Получение списка свободных мест для рейса.
@ -62,7 +62,7 @@ public interface SaleService {
*/
@Path("/getFreeSeats")
@POST
Response<GetFreeSeatsResponse> getFreeSeats(GetFreeSeatsRequest request);
GetFreeSeatsResponse getFreeSeats(GetFreeSeatsRequest request);
/**
* Получение списка типов билетов, доступных для продажи.
@ -70,7 +70,7 @@ public interface SaleService {
*/
@Path("/getTicketTypes")
@POST
Response<GetTicketTypesResponse> getTicketTypes(GetTicketTypesRequest request);
GetTicketTypesResponse getTicketTypes(GetTicketTypesRequest request);
/**
* Получение списка типов документов, допустимых при оформлении билетов. Система должна предоставить хотя бы один тип документа.
@ -79,7 +79,7 @@ public interface SaleService {
*/
@Path("/getDocumentTypes")
@POST
Response<GetDocumentTypesResponse> getDocumentTypes(GetDocumentTypesRequest request);
GetDocumentTypesResponse getDocumentTypes(GetDocumentTypesRequest request);
/**
@ -94,7 +94,7 @@ public interface SaleService {
*/
@Path("/bookOrder")
@POST
Response<BookOrderResponse> bookOrder(BookOrderRequest request);
BookOrderResponse bookOrder(BookOrderRequest request);
/**
* Получение информации о заказе. В пареметрах принимает идентификатор заказа, полученный в результате bookOrder
@ -102,7 +102,7 @@ public interface SaleService {
*/
@Path("/getOrder")
@POST
Response<GetOrderResponse> getOrder(GetOrderRequest request);
GetOrderResponse getOrder(GetOrderRequest request);
/**
* Подтверждение оплаты заказа. Данный метод должен вызываться только после того как заказ действительно был
@ -113,7 +113,7 @@ public interface SaleService {
*/
@Path("/confirmOrder")
@POST
Response<ConfirmOrderResponse> confirmOrder(ConfirmOrderRequest request);
ConfirmOrderResponse confirmOrder(ConfirmOrderRequest request);
/**
* Возврат билета. При возврате возможны удержания. В пареметрах принимает идентификатор билета и информацию
@ -121,7 +121,7 @@ public interface SaleService {
*/
@Path("/returnTicket")
@POST
Response<ReturnTicketResponse> returnTicket(ReturnTicketRequest request);
ReturnTicketResponse returnTicket(ReturnTicketRequest request);
/**
* Отмена билета. Техническая операция, выполняет полный возврат билета без удержаний.
@ -131,7 +131,7 @@ public interface SaleService {
*/
@Path("/cancelTicket")
@POST
Response<CancelTicketResponse> cancelTicket(CancelTicketRequest request);
CancelTicketResponse cancelTicket(CancelTicketRequest request);
/**
* Изменение персональных данных пассажира в забронированном или проданном билете.
@ -140,5 +140,5 @@ public interface SaleService {
*/
@Path("/updateTicket")
@POST
Response<UpdateTicketResponse> updateTicket(UpdateTicketRequest request);
UpdateTicketResponse updateTicket(UpdateTicketRequest request);
}

@ -0,0 +1,172 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for AbstractResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="AbstractResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Error" minOccurs="0">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractResponse", propOrder = {
"error"
})
@XmlSeeAlso({
ReturnTicketResponse.class,
GetOrderResponse.class,
CancelTicketResponse.class,
BookOrderResponse.class,
GetTicketTypesResponse.class,
ConfirmOrderResponse.class,
GetTripStopsResponse.class,
UpdateTicketResponse.class,
SearchTripsResponse.class,
GetArrivalStationsResponse.class,
GetDispatchStationsResponse.class,
GetDocumentTypesResponse.class,
EchoResponse.class
})
public class AbstractResponse {
@XmlElement(name = "Error")
protected AbstractResponse.Error error;
/**
* Gets the value of the error property.
*
* @return
* possible object is
* {@link AbstractResponse.Error }
*
*/
public AbstractResponse.Error getError() {
return error;
}
/**
* Sets the value of the error property.
*
* @param value
* allowed object is
* {@link AbstractResponse.Error }
*
*/
public void setError(AbstractResponse.Error value) {
this.error = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"code",
"message"
})
public static class Error {
@XmlElement(required = true)
protected String code;
@XmlElement(required = true)
protected String message;
/**
* Gets the value of the code property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCode() {
return code;
}
/**
* Sets the value of the code property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCode(String value) {
this.code = value;
}
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(String value) {
this.message = value;
}
}
}

@ -0,0 +1,89 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Agent complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Agent">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="name" type="{}NameType" minOccurs="0"/>
* &lt;element name="inn" type="{}InnType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Agent", propOrder = {
"name",
"inn"
})
public class Agent {
protected String name;
@XmlElement(required = true)
protected String inn;
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the inn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInn() {
return inn;
}
/**
* Sets the value of the inn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInn(String value) {
this.inn = value;
}
}

@ -0,0 +1,183 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="tripId" type="{}IDType"/>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;element name="arrivalStationId" type="{}IDType"/>
* &lt;element name="Sale" type="{}Sale" maxOccurs="unbounded" minOccurs="0"/>
* &lt;element name="Agent" type="{}Agent" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"tripId",
"dispatchStationId",
"arrivalStationId",
"sale",
"agent"
})
@XmlRootElement(name = "BookOrderRequest")
public class BookOrderRequest {
@XmlElement(required = true)
protected String tripId;
@XmlElement(required = true)
protected String dispatchStationId;
@XmlElement(required = true)
protected String arrivalStationId;
@XmlElement(name = "Sale")
protected List<Sale> sale;
@XmlElement(name = "Agent")
protected Agent agent;
/**
* Gets the value of the tripId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTripId() {
return tripId;
}
/**
* Sets the value of the tripId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTripId(String value) {
this.tripId = value;
}
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
/**
* Gets the value of the arrivalStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationId() {
return arrivalStationId;
}
/**
* Sets the value of the arrivalStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationId(String value) {
this.arrivalStationId = value;
}
/**
* Gets the value of the sale property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the sale property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSale().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Sale }
*
*
*/
public List<Sale> getSale() {
if (sale == null) {
sale = new ArrayList<Sale>();
}
return this.sale;
}
/**
* Gets the value of the agent property.
*
* @return
* possible object is
* {@link Agent }
*
*/
public Agent getAgent() {
return agent;
}
/**
* Sets the value of the agent property.
*
* @param value
* allowed object is
* {@link Agent }
*
*/
public void setAgent(Agent value) {
this.agent = value;
}
}

@ -0,0 +1,151 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="lifetime" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "BookOrderResponse")
public class BookOrderResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected BookOrderResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link BookOrderResponse.Body }
*
*/
public BookOrderResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link BookOrderResponse.Body }
*
*/
public void setBody(BookOrderResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="lifetime" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orderId",
"lifetime"
})
public static class Body {
@XmlElement(required = true)
protected String orderId;
protected int lifetime;
/**
* Gets the value of the orderId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderId() {
return orderId;
}
/**
* Sets the value of the orderId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderId(String value) {
this.orderId = value;
}
/**
* Gets the value of the lifetime property.
*
*/
public int getLifetime() {
return lifetime;
}
/**
* Sets the value of the lifetime property.
*
*/
public void setLifetime(int value) {
this.lifetime = value;
}
}
}

@ -0,0 +1,99 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ticketId" type="{}IDType" maxOccurs="unbounded"/>
* &lt;element name="Agent" type="{}Agent"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ticketId",
"agent"
})
@XmlRootElement(name = "CancelTicketRequest")
public class CancelTicketRequest {
@XmlElement(required = true)
protected List<String> ticketId;
@XmlElement(name = "Agent", required = true)
protected Agent agent;
/**
* Gets the value of the ticketId property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticketId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicketId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getTicketId() {
if (ticketId == null) {
ticketId = new ArrayList<String>();
}
return this.ticketId;
}
/**
* Gets the value of the agent property.
*
* @return
* possible object is
* {@link Agent }
*
*/
public Agent getAgent() {
return agent;
}
/**
* Sets the value of the agent property.
*
* @param value
* allowed object is
* {@link Agent }
*
*/
public void setAgent(Agent value) {
this.agent = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "CancelTicketResponse")
public class CancelTicketResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected CancelTicketResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link CancelTicketResponse.Body }
*
*/
public CancelTicketResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link CancelTicketResponse.Body }
*
*/
public void setBody(CancelTicketResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ticket"
})
public static class Body {
@XmlElement(name = "Ticket", required = true)
protected List<Ticket> ticket;
/**
* Gets the value of the ticket property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticket property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicket().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Ticket }
*
*
*/
public List<Ticket> getTicket() {
if (ticket == null) {
ticket = new ArrayList<Ticket>();
}
return this.ticket;
}
}
}

@ -0,0 +1,92 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="Agent" type="{}Agent"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orderId",
"agent"
})
@XmlRootElement(name = "ConfirmOrderRequest")
public class ConfirmOrderRequest {
@XmlElement(required = true)
protected String orderId;
@XmlElement(name = "Agent", required = true)
protected Agent agent;
/**
* Gets the value of the orderId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderId() {
return orderId;
}
/**
* Sets the value of the orderId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderId(String value) {
this.orderId = value;
}
/**
* Gets the value of the agent property.
*
* @return
* possible object is
* {@link Agent }
*
*/
public Agent getAgent() {
return agent;
}
/**
* Sets the value of the agent property.
*
* @param value
* allowed object is
* {@link Agent }
*
*/
public void setAgent(Agent value) {
this.agent = value;
}
}

@ -0,0 +1,167 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "ConfirmOrderResponse")
public class ConfirmOrderResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected ConfirmOrderResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link ConfirmOrderResponse.Body }
*
*/
public ConfirmOrderResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link ConfirmOrderResponse.Body }
*
*/
public void setBody(ConfirmOrderResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orderId",
"ticket"
})
public static class Body {
@XmlElement(required = true)
protected String orderId;
@XmlElement(name = "Ticket", required = true)
protected List<Ticket> ticket;
/**
* Gets the value of the orderId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderId() {
return orderId;
}
/**
* Sets the value of the orderId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderId(String value) {
this.orderId = value;
}
/**
* Gets the value of the ticket property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticket property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicket().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Ticket }
*
*
*/
public List<Ticket> getTicket() {
if (ticket == null) {
ticket = new ArrayList<Ticket>();
}
return this.ticket;
}
}
}

@ -0,0 +1,90 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for DocumentType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="DocumentType">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="name" type="{}NameType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DocumentType", propOrder = {
"id",
"name"
})
public class DocumentType {
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}

@ -0,0 +1,64 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"message"
})
@XmlRootElement(name = "EchoRequest")
public class EchoRequest {
@XmlElement(required = true)
protected String message;
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(String value) {
this.message = value;
}
}

@ -0,0 +1,131 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "EchoResponse")
public class EchoResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected EchoResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link EchoResponse.Body }
*
*/
public EchoResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link EchoResponse.Body }
*
*/
public void setBody(EchoResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"message"
})
public static class Body {
@XmlElement(required = true)
protected String message;
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessage(String value) {
this.message = value;
}
}
}

@ -0,0 +1,42 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ErrorCode.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="ErrorCode">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="INTERNAL"/>
* &lt;enumeration value="NOT_FOUND"/>
* &lt;enumeration value="SEAT_OCCUPIED"/>
* &lt;enumeration value="PERSONAL_DATA_INCORRECT"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "ErrorCode")
@XmlEnum
public enum ErrorCode {
INTERNAL,
NOT_FOUND,
SEAT_OCCUPIED,
PERSONAL_DATA_INCORRECT;
public String value() {
return name();
}
public static ErrorCode fromValue(String v) {
return valueOf(v);
}
}

@ -0,0 +1,38 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for GenderType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="GenderType">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="MALE"/>
* &lt;enumeration value="FEMALE"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "GenderType")
@XmlEnum
public enum GenderType {
MALE,
FEMALE;
public String value() {
return name();
}
public static GenderType fromValue(String v) {
return valueOf(v);
}
}

@ -0,0 +1,64 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"dispatchStationId"
})
@XmlRootElement(name = "GetArrivalStationsRequest")
public class GetArrivalStationsRequest {
@XmlElement(required = true)
protected String dispatchStationId;
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Station" type="{}Station" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetArrivalStationsResponse")
public class GetArrivalStationsResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetArrivalStationsResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetArrivalStationsResponse.Body }
*
*/
public GetArrivalStationsResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetArrivalStationsResponse.Body }
*
*/
public void setBody(GetArrivalStationsResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Station" type="{}Station" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"station"
})
public static class Body {
@XmlElement(name = "Station", required = true)
protected List<Station> station;
/**
* Gets the value of the station property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the station property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getStation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Station }
*
*
*/
public List<Station> getStation() {
if (station == null) {
station = new ArrayList<Station>();
}
return this.station;
}
}
}

@ -0,0 +1,32 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "GetDispatchStationsRequest")
public class GetDispatchStationsRequest {
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Station" type="{}Station" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetDispatchStationsResponse")
public class GetDispatchStationsResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetDispatchStationsResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetDispatchStationsResponse.Body }
*
*/
public GetDispatchStationsResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetDispatchStationsResponse.Body }
*
*/
public void setBody(GetDispatchStationsResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Station" type="{}Station" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"station"
})
public static class Body {
@XmlElement(name = "Station", required = true)
protected List<Station> station;
/**
* Gets the value of the station property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the station property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getStation().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Station }
*
*
*/
public List<Station> getStation() {
if (station == null) {
station = new ArrayList<Station>();
}
return this.station;
}
}
}

@ -0,0 +1,120 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="tripId" type="{}IDType"/>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;element name="arrivalStationId" type="{}IDType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"tripId",
"dispatchStationId",
"arrivalStationId"
})
@XmlRootElement(name = "GetDocumentTypesRequest")
public class GetDocumentTypesRequest {
@XmlElement(required = true)
protected String tripId;
@XmlElement(required = true)
protected String dispatchStationId;
@XmlElement(required = true)
protected String arrivalStationId;
/**
* Gets the value of the tripId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTripId() {
return tripId;
}
/**
* Sets the value of the tripId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTripId(String value) {
this.tripId = value;
}
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
/**
* Gets the value of the arrivalStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationId() {
return arrivalStationId;
}
/**
* Sets the value of the arrivalStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationId(String value) {
this.arrivalStationId = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="DocumentType" type="{}DocumentType" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetDocumentTypesResponse")
public class GetDocumentTypesResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetDocumentTypesResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetDocumentTypesResponse.Body }
*
*/
public GetDocumentTypesResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetDocumentTypesResponse.Body }
*
*/
public void setBody(GetDocumentTypesResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="DocumentType" type="{}DocumentType" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"documentType"
})
public static class Body {
@XmlElement(name = "DocumentType", required = true)
protected List<DocumentType> documentType;
/**
* Gets the value of the documentType property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the documentType property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDocumentType().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DocumentType }
*
*
*/
public List<DocumentType> getDocumentType() {
if (documentType == null) {
documentType = new ArrayList<DocumentType>();
}
return this.documentType;
}
}
}

@ -0,0 +1,64 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orderId"
})
@XmlRootElement(name = "GetOrderRequest")
public class GetOrderRequest {
@XmlElement(required = true)
protected String orderId;
/**
* Gets the value of the orderId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderId() {
return orderId;
}
/**
* Sets the value of the orderId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderId(String value) {
this.orderId = value;
}
}

@ -0,0 +1,167 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetOrderResponse")
public class GetOrderResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetOrderResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetOrderResponse.Body }
*
*/
public GetOrderResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetOrderResponse.Body }
*
*/
public void setBody(GetOrderResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="orderId" type="{}IDType"/>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"orderId",
"ticket"
})
public static class Body {
@XmlElement(required = true)
protected String orderId;
@XmlElement(name = "Ticket", required = true)
protected List<Ticket> ticket;
/**
* Gets the value of the orderId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOrderId() {
return orderId;
}
/**
* Sets the value of the orderId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOrderId(String value) {
this.orderId = value;
}
/**
* Gets the value of the ticket property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticket property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicket().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Ticket }
*
*
*/
public List<Ticket> getTicket() {
if (ticket == null) {
ticket = new ArrayList<Ticket>();
}
return this.ticket;
}
}
}

@ -0,0 +1,120 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="tripId" type="{}IDType"/>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;element name="arrivalStationId" type="{}IDType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"tripId",
"dispatchStationId",
"arrivalStationId"
})
@XmlRootElement(name = "GetTicketTypesRequest")
public class GetTicketTypesRequest {
@XmlElement(required = true)
protected String tripId;
@XmlElement(required = true)
protected String dispatchStationId;
@XmlElement(required = true)
protected String arrivalStationId;
/**
* Gets the value of the tripId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTripId() {
return tripId;
}
/**
* Sets the value of the tripId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTripId(String value) {
this.tripId = value;
}
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
/**
* Gets the value of the arrivalStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationId() {
return arrivalStationId;
}
/**
* Sets the value of the arrivalStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationId(String value) {
this.arrivalStationId = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="TicketType" type="{}TicketType" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetTicketTypesResponse")
public class GetTicketTypesResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetTicketTypesResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetTicketTypesResponse.Body }
*
*/
public GetTicketTypesResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetTicketTypesResponse.Body }
*
*/
public void setBody(GetTicketTypesResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="TicketType" type="{}TicketType" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ticketType"
})
public static class Body {
@XmlElement(name = "TicketType", required = true)
protected List<TicketType> ticketType;
/**
* Gets the value of the ticketType property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticketType property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicketType().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TicketType }
*
*
*/
public List<TicketType> getTicketType() {
if (ticketType == null) {
ticketType = new ArrayList<TicketType>();
}
return this.ticketType;
}
}
}

@ -0,0 +1,64 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="tripId" type="{}IDType"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"tripId"
})
@XmlRootElement(name = "GetTripStopsRequest")
public class GetTripStopsRequest {
@XmlElement(required = true)
protected String tripId;
/**
* Gets the value of the tripId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTripId() {
return tripId;
}
/**
* Sets the value of the tripId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTripId(String value) {
this.tripId = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Stop" type="{}TripStop" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "GetTripStopsResponse")
public class GetTripStopsResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected GetTripStopsResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link GetTripStopsResponse.Body }
*
*/
public GetTripStopsResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link GetTripStopsResponse.Body }
*
*/
public void setBody(GetTripStopsResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Stop" type="{}TripStop" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"stop"
})
public static class Body {
@XmlElement(name = "Stop", required = true)
protected List<TripStop> stop;
/**
* Gets the value of the stop property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the stop property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getStop().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TripStop }
*
*
*/
public List<TripStop> getStop() {
if (stop == null) {
stop = new ArrayList<TripStop>();
}
return this.stop;
}
}
}

@ -0,0 +1,440 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlRegistry;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.artmark.avs5rs.sale.model package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.artmark.avs5rs.sale.model
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link AbstractResponse }
*
*/
public AbstractResponse createAbstractResponse() {
return new AbstractResponse();
}
/**
* Create an instance of {@link EchoResponse }
*
*/
public EchoResponse createEchoResponse() {
return new EchoResponse();
}
/**
* Create an instance of {@link GetDocumentTypesResponse }
*
*/
public GetDocumentTypesResponse createGetDocumentTypesResponse() {
return new GetDocumentTypesResponse();
}
/**
* Create an instance of {@link GetDispatchStationsResponse }
*
*/
public GetDispatchStationsResponse createGetDispatchStationsResponse() {
return new GetDispatchStationsResponse();
}
/**
* Create an instance of {@link GetArrivalStationsResponse }
*
*/
public GetArrivalStationsResponse createGetArrivalStationsResponse() {
return new GetArrivalStationsResponse();
}
/**
* Create an instance of {@link SearchTripsResponse }
*
*/
public SearchTripsResponse createSearchTripsResponse() {
return new SearchTripsResponse();
}
/**
* Create an instance of {@link GetTripStopsResponse }
*
*/
public GetTripStopsResponse createGetTripStopsResponse() {
return new GetTripStopsResponse();
}
/**
* Create an instance of {@link ConfirmOrderResponse }
*
*/
public ConfirmOrderResponse createConfirmOrderResponse() {
return new ConfirmOrderResponse();
}
/**
* Create an instance of {@link GetTicketTypesResponse }
*
*/
public GetTicketTypesResponse createGetTicketTypesResponse() {
return new GetTicketTypesResponse();
}
/**
* Create an instance of {@link BookOrderResponse }
*
*/
public BookOrderResponse createBookOrderResponse() {
return new BookOrderResponse();
}
/**
* Create an instance of {@link CancelTicketResponse }
*
*/
public CancelTicketResponse createCancelTicketResponse() {
return new CancelTicketResponse();
}
/**
* Create an instance of {@link GetOrderResponse }
*
*/
public GetOrderResponse createGetOrderResponse() {
return new GetOrderResponse();
}
/**
* Create an instance of {@link ReturnTicketResponse }
*
*/
public ReturnTicketResponse createReturnTicketResponse() {
return new ReturnTicketResponse();
}
/**
* Create an instance of {@link AbstractResponse.Error }
*
*/
public AbstractResponse.Error createAbstractResponseError() {
return new AbstractResponse.Error();
}
/**
* Create an instance of {@link EchoResponse.Body }
*
*/
public EchoResponse.Body createEchoResponseBody() {
return new EchoResponse.Body();
}
/**
* Create an instance of {@link GetDocumentTypesResponse.Body }
*
*/
public GetDocumentTypesResponse.Body createGetDocumentTypesResponseBody() {
return new GetDocumentTypesResponse.Body();
}
/**
* Create an instance of {@link SearchTripsRequest }
*
*/
public SearchTripsRequest createSearchTripsRequest() {
return new SearchTripsRequest();
}
/**
* Create an instance of {@link GetDispatchStationsResponse.Body }
*
*/
public GetDispatchStationsResponse.Body createGetDispatchStationsResponseBody() {
return new GetDispatchStationsResponse.Body();
}
/**
* Create an instance of {@link GetArrivalStationsRequest }
*
*/
public GetArrivalStationsRequest createGetArrivalStationsRequest() {
return new GetArrivalStationsRequest();
}
/**
* Create an instance of {@link UpdateTicketRequest }
*
*/
public UpdateTicketRequest createUpdateTicketRequest() {
return new UpdateTicketRequest();
}
/**
* Create an instance of {@link Passenger }
*
*/
public Passenger createPassenger() {
return new Passenger();
}
/**
* Create an instance of {@link ConfirmOrderRequest }
*
*/
public ConfirmOrderRequest createConfirmOrderRequest() {
return new ConfirmOrderRequest();
}
/**
* Create an instance of {@link Agent }
*
*/
public Agent createAgent() {
return new Agent();
}
/**
* Create an instance of {@link EchoRequest }
*
*/
public EchoRequest createEchoRequest() {
return new EchoRequest();
}
/**
* Create an instance of {@link GetArrivalStationsResponse.Body }
*
*/
public GetArrivalStationsResponse.Body createGetArrivalStationsResponseBody() {
return new GetArrivalStationsResponse.Body();
}
/**
* Create an instance of {@link SearchTripsResponse.Body }
*
*/
public SearchTripsResponse.Body createSearchTripsResponseBody() {
return new SearchTripsResponse.Body();
}
/**
* Create an instance of {@link GetDispatchStationsRequest }
*
*/
public GetDispatchStationsRequest createGetDispatchStationsRequest() {
return new GetDispatchStationsRequest();
}
/**
* Create an instance of {@link UpdateTicketResponse }
*
*/
public UpdateTicketResponse createUpdateTicketResponse() {
return new UpdateTicketResponse();
}
/**
* Create an instance of {@link GetTripStopsResponse.Body }
*
*/
public GetTripStopsResponse.Body createGetTripStopsResponseBody() {
return new GetTripStopsResponse.Body();
}
/**
* Create an instance of {@link GetOrderRequest }
*
*/
public GetOrderRequest createGetOrderRequest() {
return new GetOrderRequest();
}
/**
* Create an instance of {@link BookOrderRequest }
*
*/
public BookOrderRequest createBookOrderRequest() {
return new BookOrderRequest();
}
/**
* Create an instance of {@link Sale }
*
*/
public Sale createSale() {
return new Sale();
}
/**
* Create an instance of {@link ConfirmOrderResponse.Body }
*
*/
public ConfirmOrderResponse.Body createConfirmOrderResponseBody() {
return new ConfirmOrderResponse.Body();
}
/**
* Create an instance of {@link CancelTicketRequest }
*
*/
public CancelTicketRequest createCancelTicketRequest() {
return new CancelTicketRequest();
}
/**
* Create an instance of {@link GetTicketTypesResponse.Body }
*
*/
public GetTicketTypesResponse.Body createGetTicketTypesResponseBody() {
return new GetTicketTypesResponse.Body();
}
/**
* Create an instance of {@link BookOrderResponse.Body }
*
*/
public BookOrderResponse.Body createBookOrderResponseBody() {
return new BookOrderResponse.Body();
}
/**
* Create an instance of {@link CancelTicketResponse.Body }
*
*/
public CancelTicketResponse.Body createCancelTicketResponseBody() {
return new CancelTicketResponse.Body();
}
/**
* Create an instance of {@link ReturnTicketRequest }
*
*/
public ReturnTicketRequest createReturnTicketRequest() {
return new ReturnTicketRequest();
}
/**
* Create an instance of {@link GetTicketTypesRequest }
*
*/
public GetTicketTypesRequest createGetTicketTypesRequest() {
return new GetTicketTypesRequest();
}
/**
* Create an instance of {@link GetTripStopsRequest }
*
*/
public GetTripStopsRequest createGetTripStopsRequest() {
return new GetTripStopsRequest();
}
/**
* Create an instance of {@link GetDocumentTypesRequest }
*
*/
public GetDocumentTypesRequest createGetDocumentTypesRequest() {
return new GetDocumentTypesRequest();
}
/**
* Create an instance of {@link GetOrderResponse.Body }
*
*/
public GetOrderResponse.Body createGetOrderResponseBody() {
return new GetOrderResponse.Body();
}
/**
* Create an instance of {@link ReturnTicketResponse.Body }
*
*/
public ReturnTicketResponse.Body createReturnTicketResponseBody() {
return new ReturnTicketResponse.Body();
}
/**
* Create an instance of {@link TripStop }
*
*/
public TripStop createTripStop() {
return new TripStop();
}
/**
* Create an instance of {@link Seat }
*
*/
public Seat createSeat() {
return new Seat();
}
/**
* Create an instance of {@link RouteKey }
*
*/
public RouteKey createRouteKey() {
return new RouteKey();
}
/**
* Create an instance of {@link TicketType }
*
*/
public TicketType createTicketType() {
return new TicketType();
}
/**
* Create an instance of {@link Ticket }
*
*/
public Ticket createTicket() {
return new Ticket();
}
/**
* Create an instance of {@link Trip }
*
*/
public Trip createTrip() {
return new Trip();
}
/**
* Create an instance of {@link DocumentType }
*
*/
public DocumentType createDocumentType() {
return new DocumentType();
}
/**
* Create an instance of {@link Station }
*
*/
public Station createStation() {
return new Station();
}
}

@ -0,0 +1,344 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for Passenger complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Passenger">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="firstName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="lastName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="middleName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="docNum" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="docSeries" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="docTypeId" type="{}IDType"/>
* &lt;element name="birthday" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
* &lt;element name="citizenshipISO2" minOccurs="0">
* &lt;simpleType>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;length value="2"/>
* &lt;/restriction>
* &lt;/simpleType>
* &lt;/element>
* &lt;element name="gender" type="{}GenderType" minOccurs="0"/>
* &lt;element name="phone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="info" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Passenger", propOrder = {
"firstName",
"lastName",
"middleName",
"docNum",
"docSeries",
"docTypeId",
"birthday",
"citizenshipISO2",
"gender",
"phone",
"info"
})
public class Passenger {
@XmlElement(required = true)
protected String firstName;
@XmlElement(required = true)
protected String lastName;
protected String middleName;
protected String docNum;
protected String docSeries;
@XmlElement(required = true)
protected String docTypeId;
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar birthday;
protected String citizenshipISO2;
@XmlSchemaType(name = "string")
protected GenderType gender;
protected String phone;
protected String info;
/**
* Gets the value of the firstName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFirstName() {
return firstName;
}
/**
* Sets the value of the firstName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFirstName(String value) {
this.firstName = value;
}
/**
* Gets the value of the lastName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLastName() {
return lastName;
}
/**
* Sets the value of the lastName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastName(String value) {
this.lastName = value;
}
/**
* Gets the value of the middleName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMiddleName() {
return middleName;
}
/**
* Sets the value of the middleName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMiddleName(String value) {
this.middleName = value;
}
/**
* Gets the value of the docNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocNum() {
return docNum;
}
/**
* Sets the value of the docNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocNum(String value) {
this.docNum = value;
}
/**
* Gets the value of the docSeries property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocSeries() {
return docSeries;
}
/**
* Sets the value of the docSeries property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocSeries(String value) {
this.docSeries = value;
}
/**
* Gets the value of the docTypeId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDocTypeId() {
return docTypeId;
}
/**
* Sets the value of the docTypeId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDocTypeId(String value) {
this.docTypeId = value;
}
/**
* Gets the value of the birthday property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getBirthday() {
return birthday;
}
/**
* Sets the value of the birthday property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setBirthday(XMLGregorianCalendar value) {
this.birthday = value;
}
/**
* Gets the value of the citizenshipISO2 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCitizenshipISO2() {
return citizenshipISO2;
}
/**
* Sets the value of the citizenshipISO2 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCitizenshipISO2(String value) {
this.citizenshipISO2 = value;
}
/**
* Gets the value of the gender property.
*
* @return
* possible object is
* {@link GenderType }
*
*/
public GenderType getGender() {
return gender;
}
/**
* Sets the value of the gender property.
*
* @param value
* allowed object is
* {@link GenderType }
*
*/
public void setGender(GenderType value) {
this.gender = value;
}
/**
* Gets the value of the phone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhone() {
return phone;
}
/**
* Sets the value of the phone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPhone(String value) {
this.phone = value;
}
/**
* Gets the value of the info property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInfo() {
return info;
}
/**
* Sets the value of the info property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInfo(String value) {
this.info = value;
}
}

@ -0,0 +1,99 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="ticketId" type="{}IDType" maxOccurs="unbounded"/>
* &lt;element name="Agent" type="{}Agent"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ticketId",
"agent"
})
@XmlRootElement(name = "ReturnTicketRequest")
public class ReturnTicketRequest {
@XmlElement(required = true)
protected List<String> ticketId;
@XmlElement(name = "Agent", required = true)
protected Agent agent;
/**
* Gets the value of the ticketId property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticketId property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicketId().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getTicketId() {
if (ticketId == null) {
ticketId = new ArrayList<String>();
}
return this.ticketId;
}
/**
* Gets the value of the agent property.
*
* @return
* possible object is
* {@link Agent }
*
*/
public Agent getAgent() {
return agent;
}
/**
* Sets the value of the agent property.
*
* @param value
* allowed object is
* {@link Agent }
*
*/
public void setAgent(Agent value) {
this.agent = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "ReturnTicketResponse")
public class ReturnTicketResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected ReturnTicketResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link ReturnTicketResponse.Body }
*
*/
public ReturnTicketResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link ReturnTicketResponse.Body }
*
*/
public void setBody(ReturnTicketResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Ticket" type="{}Ticket" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ticket"
})
public static class Body {
@XmlElement(name = "Ticket", required = true)
protected List<Ticket> ticket;
/**
* Gets the value of the ticket property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the ticket property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTicket().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Ticket }
*
*
*/
public List<Ticket> getTicket() {
if (ticket == null) {
ticket = new ArrayList<Ticket>();
}
return this.ticket;
}
}
}

@ -0,0 +1,121 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for RouteKey complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="RouteKey">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="dispatchStationUid" type="{}UidType"/>
* &lt;element name="arrivalStationUid" type="{}UidType"/>
* &lt;element name="dispatchTime" type="{http://www.w3.org/2001/XMLSchema}time"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RouteKey", propOrder = {
"dispatchStationUid",
"arrivalStationUid",
"dispatchTime"
})
public class RouteKey {
@XmlElement(required = true)
protected String dispatchStationUid;
@XmlElement(required = true)
protected String arrivalStationUid;
@XmlElement(required = true)
@XmlSchemaType(name = "time")
protected XMLGregorianCalendar dispatchTime;
/**
* Gets the value of the dispatchStationUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationUid() {
return dispatchStationUid;
}
/**
* Sets the value of the dispatchStationUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationUid(String value) {
this.dispatchStationUid = value;
}
/**
* Gets the value of the arrivalStationUid property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationUid() {
return arrivalStationUid;
}
/**
* Sets the value of the arrivalStationUid property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationUid(String value) {
this.arrivalStationUid = value;
}
/**
* Gets the value of the dispatchTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDispatchTime() {
return dispatchTime;
}
/**
* Sets the value of the dispatchTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDispatchTime(XMLGregorianCalendar value) {
this.dispatchTime = value;
}
}

@ -0,0 +1,117 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Sale complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Sale">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="seatId" type="{}IDType" minOccurs="0"/>
* &lt;element name="ticketTypeId" type="{}IDType"/>
* &lt;element name="Passenger" type="{}Passenger" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Sale", propOrder = {
"seatId",
"ticketTypeId",
"passenger"
})
public class Sale {
protected String seatId;
@XmlElement(required = true)
protected String ticketTypeId;
@XmlElement(name = "Passenger")
protected Passenger passenger;
/**
* Gets the value of the seatId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSeatId() {
return seatId;
}
/**
* Sets the value of the seatId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSeatId(String value) {
this.seatId = value;
}
/**
* Gets the value of the ticketTypeId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTicketTypeId() {
return ticketTypeId;
}
/**
* Sets the value of the ticketTypeId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTicketTypeId(String value) {
this.ticketTypeId = value;
}
/**
* Gets the value of the passenger property.
*
* @return
* possible object is
* {@link Passenger }
*
*/
public Passenger getPassenger() {
return passenger;
}
/**
* Sets the value of the passenger property.
*
* @param value
* allowed object is
* {@link Passenger }
*
*/
public void setPassenger(Passenger value) {
this.passenger = value;
}
}

@ -0,0 +1,123 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;element name="arrivalStationId" type="{}IDType"/>
* &lt;element name="date" type="{http://www.w3.org/2001/XMLSchema}date"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"dispatchStationId",
"arrivalStationId",
"date"
})
@XmlRootElement(name = "SearchTripsRequest")
public class SearchTripsRequest {
@XmlElement(required = true)
protected String dispatchStationId;
@XmlElement(required = true)
protected String arrivalStationId;
@XmlElement(required = true)
@XmlSchemaType(name = "date")
protected XMLGregorianCalendar date;
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
/**
* Gets the value of the arrivalStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationId() {
return arrivalStationId;
}
/**
* Sets the value of the arrivalStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationId(String value) {
this.arrivalStationId = value;
}
/**
* Gets the value of the date property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDate() {
return date;
}
/**
* Sets the value of the date property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDate(XMLGregorianCalendar value) {
this.date = value;
}
}

@ -0,0 +1,138 @@
package com.artmark.avs5rs.sale.model;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;extension base="{}AbstractResponse">
* &lt;sequence>
* &lt;element name="Body">
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Trip" type="{}Trip" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* &lt;/element>
* &lt;/sequence>
* &lt;/extension>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"body"
})
@XmlRootElement(name = "SearchTripsResponse")
public class SearchTripsResponse
extends AbstractResponse
{
@XmlElement(name = "Body", required = true)
protected SearchTripsResponse.Body body;
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link SearchTripsResponse.Body }
*
*/
public SearchTripsResponse.Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link SearchTripsResponse.Body }
*
*/
public void setBody(SearchTripsResponse.Body value) {
this.body = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Trip" type="{}Trip" maxOccurs="unbounded"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"trip"
})
public static class Body {
@XmlElement(name = "Trip", required = true)
protected List<Trip> trip;
/**
* Gets the value of the trip property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the trip property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTrip().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Trip }
*
*
*/
public List<Trip> getTrip() {
if (trip == null) {
trip = new ArrayList<Trip>();
}
return this.trip;
}
}
}

@ -0,0 +1,81 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Seat complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Seat">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="num" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Seat", propOrder = {
"id",
"num"
})
public class Seat {
@XmlElement(required = true)
protected String id;
protected int num;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the num property.
*
*/
public int getNum() {
return num;
}
/**
* Sets the value of the num property.
*
*/
public void setNum(int value) {
this.num = value;
}
}

@ -0,0 +1,144 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Station complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Station">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="name" type="{}NameType"/>
* &lt;element name="okato" type="{}OkatoType" minOccurs="0"/>
* &lt;element name="region" type="{}SimpleStringType" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Station", propOrder = {
"id",
"name",
"okato",
"region"
})
public class Station {
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
protected String okato;
protected String region;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the okato property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOkato() {
return okato;
}
/**
* Sets the value of the okato property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOkato(String value) {
this.okato = value;
}
/**
* Gets the value of the region property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRegion() {
return region;
}
/**
* Sets the value of the region property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRegion(String value) {
this.region = value;
}
}

@ -0,0 +1,700 @@
package com.artmark.avs5rs.sale.model;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for Ticket complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Ticket">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="number" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="series" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="created" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="returned" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="status" type="{}TicketStatus"/>
* &lt;element name="ticketClass" type="{}TicketClass"/>
* &lt;element name="typeId" type="{}IDType"/>
* &lt;element name="routeNum" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="routeName" type="{}NameType"/>
* &lt;element name="busInfo" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="carrierName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="carrierInn" type="{}InnType"/>
* &lt;element name="platform" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="dispatchDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="arrivalDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="dispatchStation" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="arrivalStation" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="seatNum" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="Passenger" type="{}Passenger" minOccurs="0"/>
* &lt;element name="fare" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="fees" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="repayment" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
* &lt;element name="insuranceInfo" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Ticket", propOrder = {
"id",
"number",
"series",
"created",
"returned",
"status",
"ticketClass",
"typeId",
"routeNum",
"routeName",
"busInfo",
"carrierName",
"carrierInn",
"platform",
"dispatchDate",
"arrivalDate",
"dispatchStation",
"arrivalStation",
"seatNum",
"passenger",
"fare",
"fees",
"repayment",
"insuranceInfo"
})
public class Ticket {
@XmlElement(required = true)
protected String id;
protected String number;
protected String series;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar created;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar returned;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected TicketStatus status;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected TicketClass ticketClass;
@XmlElement(required = true)
protected String typeId;
protected String routeNum;
@XmlElement(required = true)
protected String routeName;
@XmlElement(required = true)
protected String busInfo;
protected String carrierName;
@XmlElement(required = true)
protected String carrierInn;
protected String platform;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dispatchDate;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar arrivalDate;
@XmlElement(required = true)
protected String dispatchStation;
@XmlElement(required = true)
protected String arrivalStation;
protected int seatNum;
@XmlElement(name = "Passenger")
protected Passenger passenger;
@XmlElement(required = true)
protected BigDecimal fare;
@XmlElement(required = true)
protected BigDecimal fees;
protected BigDecimal repayment;
@XmlElement(required = true)
protected String insuranceInfo;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the number property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumber() {
return number;
}
/**
* Sets the value of the number property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumber(String value) {
this.number = value;
}
/**
* Gets the value of the series property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSeries() {
return series;
}
/**
* Sets the value of the series property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSeries(String value) {
this.series = value;
}
/**
* Gets the value of the created property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreated() {
return created;
}
/**
* Sets the value of the created property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreated(XMLGregorianCalendar value) {
this.created = value;
}
/**
* Gets the value of the returned property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getReturned() {
return returned;
}
/**
* Sets the value of the returned property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setReturned(XMLGregorianCalendar value) {
this.returned = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link TicketStatus }
*
*/
public TicketStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link TicketStatus }
*
*/
public void setStatus(TicketStatus value) {
this.status = value;
}
/**
* Gets the value of the ticketClass property.
*
* @return
* possible object is
* {@link TicketClass }
*
*/
public TicketClass getTicketClass() {
return ticketClass;
}
/**
* Sets the value of the ticketClass property.
*
* @param value
* allowed object is
* {@link TicketClass }
*
*/
public void setTicketClass(TicketClass value) {
this.ticketClass = value;
}
/**
* Gets the value of the typeId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTypeId() {
return typeId;
}
/**
* Sets the value of the typeId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTypeId(String value) {
this.typeId = value;
}
/**
* Gets the value of the routeNum property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRouteNum() {
return routeNum;
}
/**
* Sets the value of the routeNum property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRouteNum(String value) {
this.routeNum = value;
}
/**
* Gets the value of the routeName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRouteName() {
return routeName;
}
/**
* Sets the value of the routeName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRouteName(String value) {
this.routeName = value;
}
/**
* Gets the value of the busInfo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusInfo() {
return busInfo;
}
/**
* Sets the value of the busInfo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusInfo(String value) {
this.busInfo = value;
}
/**
* Gets the value of the carrierName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCarrierName() {
return carrierName;
}
/**
* Sets the value of the carrierName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCarrierName(String value) {
this.carrierName = value;
}
/**
* Gets the value of the carrierInn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCarrierInn() {
return carrierInn;
}
/**
* Sets the value of the carrierInn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCarrierInn(String value) {
this.carrierInn = value;
}
/**
* Gets the value of the platform property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPlatform() {
return platform;
}
/**
* Sets the value of the platform property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPlatform(String value) {
this.platform = value;
}
/**
* Gets the value of the dispatchDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDispatchDate() {
return dispatchDate;
}
/**
* Sets the value of the dispatchDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDispatchDate(XMLGregorianCalendar value) {
this.dispatchDate = value;
}
/**
* Gets the value of the arrivalDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getArrivalDate() {
return arrivalDate;
}
/**
* Sets the value of the arrivalDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setArrivalDate(XMLGregorianCalendar value) {
this.arrivalDate = value;
}
/**
* Gets the value of the dispatchStation property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStation() {
return dispatchStation;
}
/**
* Sets the value of the dispatchStation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStation(String value) {
this.dispatchStation = value;
}
/**
* Gets the value of the arrivalStation property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStation() {
return arrivalStation;
}
/**
* Sets the value of the arrivalStation property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStation(String value) {
this.arrivalStation = value;
}
/**
* Gets the value of the seatNum property.
*
*/
public int getSeatNum() {
return seatNum;
}
/**
* Sets the value of the seatNum property.
*
*/
public void setSeatNum(int value) {
this.seatNum = value;
}
/**
* Gets the value of the passenger property.
*
* @return
* possible object is
* {@link Passenger }
*
*/
public Passenger getPassenger() {
return passenger;
}
/**
* Sets the value of the passenger property.
*
* @param value
* allowed object is
* {@link Passenger }
*
*/
public void setPassenger(Passenger value) {
this.passenger = value;
}
/**
* Gets the value of the fare property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getFare() {
return fare;
}
/**
* Sets the value of the fare property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setFare(BigDecimal value) {
this.fare = value;
}
/**
* Gets the value of the fees property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getFees() {
return fees;
}
/**
* Sets the value of the fees property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setFees(BigDecimal value) {
this.fees = value;
}
/**
* Gets the value of the repayment property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getRepayment() {
return repayment;
}
/**
* Sets the value of the repayment property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setRepayment(BigDecimal value) {
this.repayment = value;
}
/**
* Gets the value of the insuranceInfo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getInsuranceInfo() {
return insuranceInfo;
}
/**
* Sets the value of the insuranceInfo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setInsuranceInfo(String value) {
this.insuranceInfo = value;
}
}

@ -0,0 +1,40 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TicketClass.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="TicketClass">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="PASSENGER"/>
* &lt;enumeration value="BAGGAGE"/>
* &lt;enumeration value="WITHOUT_SEAT"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "TicketClass")
@XmlEnum
public enum TicketClass {
PASSENGER,
BAGGAGE,
WITHOUT_SEAT;
public String value() {
return name();
}
public static TicketClass fromValue(String v) {
return valueOf(v);
}
}

@ -0,0 +1,42 @@
package com.artmark.avs5rs.sale.model;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TicketStatus.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* &lt;simpleType name="TicketStatus">
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
* &lt;enumeration value="RESERVED"/>
* &lt;enumeration value="SOLD"/>
* &lt;enumeration value="CANCELED"/>
* &lt;enumeration value="RETURNED"/>
* &lt;/restriction>
* &lt;/simpleType>
* </pre>
*
*/
@XmlType(name = "TicketStatus")
@XmlEnum
public enum TicketStatus {
RESERVED,
SOLD,
CANCELED,
RETURNED;
public String value() {
return name();
}
public static TicketStatus fromValue(String v) {
return valueOf(v);
}
}

@ -0,0 +1,149 @@
package com.artmark.avs5rs.sale.model;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for TicketType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TicketType">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="name" type="{}NameType"/>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="ticketClass" type="{}TicketClass"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TicketType", propOrder = {
"id",
"name",
"price",
"ticketClass"
})
public class TicketType {
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected BigDecimal price;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected TicketClass ticketClass;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the price property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPrice(BigDecimal value) {
this.price = value;
}
/**
* Gets the value of the ticketClass property.
*
* @return
* possible object is
* {@link TicketClass }
*
*/
public TicketClass getTicketClass() {
return ticketClass;
}
/**
* Sets the value of the ticketClass property.
*
* @param value
* allowed object is
* {@link TicketClass }
*
*/
public void setTicketClass(TicketClass value) {
this.ticketClass = value;
}
}

@ -0,0 +1,579 @@
package com.artmark.avs5rs.sale.model;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
/**
* <p>Java class for Trip complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Trip">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="id" type="{}IDType"/>
* &lt;element name="name" type="{}NameType"/>
* &lt;element name="num" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="dispatchDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="arrivalDate" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="dispatchStationId" type="{}IDType"/>
* &lt;element name="dispatchStationName" type="{}NameType"/>
* &lt;element name="arrivalStationId" type="{}IDType"/>
* &lt;element name="arrivalStationName" type="{}NameType"/>
* &lt;element name="price" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="carrierName" type="{}NameType" minOccurs="0"/>
* &lt;element name="carrierInn" type="{}InnType"/>
* &lt;element name="busInfo" type="{http://www.w3.org/2001/XMLSchema}string"/>
* &lt;element name="platform" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="type" type="{}TripType"/>
* &lt;element name="status" type="{}TripStatus"/>
* &lt;element name="tripClass" type="{}TripClass" minOccurs="0"/>
* &lt;element name="seatCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="freeSeatCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
* &lt;element name="routeKey" type="{}RouteKey" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Trip", propOrder = {
"id",
"name",
"num",
"dispatchDate",
"arrivalDate",
"dispatchStationId",
"dispatchStationName",
"arrivalStationId",
"arrivalStationName",
"price",
"carrierName",
"carrierInn",
"busInfo",
"platform",
"type",
"status",
"tripClass",
"seatCount",
"freeSeatCount",
"routeKey"
})
public class Trip {
@XmlElement(required = true)
protected String id;
@XmlElement(required = true)
protected String name;
protected String num;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dispatchDate;
@XmlElement(required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar arrivalDate;
@XmlElement(required = true)
protected String dispatchStationId;
@XmlElement(required = true)
protected String dispatchStationName;
@XmlElement(required = true)
protected String arrivalStationId;
@XmlElement(required = true)
protected String arrivalStationName;
@XmlElement(required = true)
protected BigDecimal price;
protected String carrierName;
@XmlElement(required = true)
protected String carrierInn;
@XmlElement(required = true)
protected String busInfo;
protected String platform;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected TripType type;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected TripStatus status;
@XmlSchemaType(name = "string")
protected TripClass tripClass;
protected int seatCount;
protected int freeSeatCount;
protected RouteKey routeKey;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the num property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNum() {
return num;
}
/**
* Sets the value of the num property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNum(String value) {
this.num = value;
}
/**
* Gets the value of the dispatchDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDispatchDate() {
return dispatchDate;
}
/**
* Sets the value of the dispatchDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDispatchDate(XMLGregorianCalendar value) {
this.dispatchDate = value;
}
/**
* Gets the value of the arrivalDate property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getArrivalDate() {
return arrivalDate;
}
/**
* Sets the value of the arrivalDate property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setArrivalDate(XMLGregorianCalendar value) {
this.arrivalDate = value;
}
/**
* Gets the value of the dispatchStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationId() {
return dispatchStationId;
}
/**
* Sets the value of the dispatchStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationId(String value) {
this.dispatchStationId = value;
}
/**
* Gets the value of the dispatchStationName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDispatchStationName() {
return dispatchStationName;
}
/**
* Sets the value of the dispatchStationName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDispatchStationName(String value) {
this.dispatchStationName = value;
}
/**
* Gets the value of the arrivalStationId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationId() {
return arrivalStationId;
}
/**
* Sets the value of the arrivalStationId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationId(String value) {
this.arrivalStationId = value;
}
/**
* Gets the value of the arrivalStationName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArrivalStationName() {
return arrivalStationName;
}
/**
* Sets the value of the arrivalStationName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArrivalStationName(String value) {
this.arrivalStationName = value;
}
/**
* Gets the value of the price property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setPrice(BigDecimal value) {
this.price = value;
}
/**
* Gets the value of the carrierName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCarrierName() {
return carrierName;
}
/**
* Sets the value of the carrierName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCarrierName(String value) {
this.carrierName = value;
}
/**
* Gets the value of the carrierInn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCarrierInn() {
return carrierInn;
}
/**
* Sets the value of the carrierInn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCarrierInn(String value) {
this.carrierInn = value;
}
/**
* Gets the value of the busInfo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getBusInfo() {
return busInfo;
}
/**
* Sets the value of the busInfo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setBusInfo(String value) {
this.busInfo = value;
}
/**
* Gets the value of the platform property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPlatform() {
return platform;
}
/**
* Sets the value of the platform property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPlatform(String value) {
this.platform = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TripType }
*
*/
public TripType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TripType }
*
*/
public void setType(TripType value) {
this.type = value;
}
/**
* Gets the value of the status property.
*
* @return
* possible object is
* {@link TripStatus }
*
*/
public TripStatus getStatus() {
return status;
}
/**
* Sets the value of the status property.
*
* @param value
* allowed object is
* {@link TripStatus }
*
*/
public void setStatus(TripStatus value) {
this.status = value;
}
/**
* Gets the value of the tripClass property.
*
* @return
* possible object is
* {@link TripClass }
*
*/
public TripClass getTripClass() {
return tripClass;
}
/**
* Sets the value of the tripClass property.
*
* @param value
* allowed object is
* {@link TripClass }
*
*/
public void setTripClass(TripClass value) {
this.tripClass = value;
}
/**
* Gets the value of the seatCount property.
*
*/
public int getSeatCount() {
return seatCount;
}
/**
* Sets the value of the seatCount property.
*
*/
public void setSeatCount(int value) {
this.seatCount = value;
}
/**
* Gets the value of the freeSeatCount property.
*
*/
public int getFreeSeatCount() {
return freeSeatCount;
}
/**
* Sets the value of the freeSeatCount property.
*
*/
public void setFreeSeatCount(int value) {
this.freeSeatCount = value;
}
/**
* Gets the value of the routeKey property.
*
* @return
* possible object is
* {@link RouteKey }
*
*/
public RouteKey getRouteKey() {
return routeKey;
}
/**
* Sets the value of the routeKey property.
*
* @param value
* allowed object is
* {@link RouteKey }
*
*/
public void setRouteKey(RouteKey value) {
this.routeKey = value;
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save