Herramientas de usuario

Herramientas del sitio


public:book

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
public:book [2016/11/10 13:32]
onieto
public:book [2017/01/20 13:17] (actual)
Línea 27: Línea 27:
       * Pax -> Elemento con la información sobre una persona       * Pax -> Elemento con la información sobre una persona
         * Id -> Identificador de la persona en la información de la reserva         * Id -> Identificador de la persona en la información de la reserva
-        * Name -> Nombre +        * Name -> Nombre ​(y apellidos)
-        * SurName -> Apellidos+
         * Passport -> Pasaporte         * Passport -> Pasaporte
         * Email -> Email         * Email -> Email
         * Address -> Dirección         * Address -> Dirección
-        * Telephone1 ​-> Teléfono ​+        * Telephone ​-> Teléfono
-        * Telpehone2 -> Teléfono 2+
         * Child -> Controla si la persona es un niño (menor de 8 años)         * Child -> Controla si la persona es un niño (menor de 8 años)
         * Age -> Si la persona es un niño es obligatorio especificar su edad         * Age -> Si la persona es un niño es obligatorio especificar su edad
Línea 41: Línea 39:
       * Room -> Elemento con la información sobre la habitación       * Room -> Elemento con la información sobre la habitación
         * Type -> [[public:​enums|Enumerador del tipo de habitación]]         * Type -> [[public:​enums|Enumerador del tipo de habitación]]
-        * Category -> [[public:​enums|Enumerador del tipo de categoría de la habitación]] 
         * Price -> Precio de la habitación (obligatorio superior al neto de Eurorutas)         * Price -> Precio de la habitación (obligatorio superior al neto de Eurorutas)
         * PaxIds -> Contenedor de la distribución de personas asociados a la habitación         * PaxIds -> Contenedor de la distribución de personas asociados a la habitación
Línea 53: Línea 50:
 <​BookingInfo>​ <​BookingInfo>​
   <​Paxes>​   <​Paxes>​
-    <Pax Id="​0"​ Name="​string"​ SurName="​string"​ Passport="​string" ​ Email="​string"​ Address="​string" ​Telephone1="​string"​ Telephone2="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ /> +    <Pax Id="​0"​ Name="​string"​ Passport="​string" ​ Email="​string"​ Address="​string" ​Telephone="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ /> 
-    <Pax Id="​1"​ Name="​string"​ SurName="​string"​ Passport="​string" ​ Email="​string"​ Address="​string" ​Telephone1="​string"​ Telephone2="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ />+    <Pax Id="​1"​ Name="​string"​ Passport="​string" ​ Email="​string"​ Address="​string" ​Telephone="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ />
   </​Paxes>​   </​Paxes>​
   <​Rooms>​   <​Rooms>​
-    <Room Type="​Double" Category="​Turista" Price="​150.10">​+    <Room Type="​Double"​ Price="​150.10">​
       <​PaxIds>​       <​PaxIds>​
         <​PaxId>​0</​PaxId>​         <​PaxId>​0</​PaxId>​
Línea 73: Línea 70:
       "​Id":​ 0,       "​Id":​ 0,
       "​Name":​ "​string",​       "​Name":​ "​string",​
-      "​SurName":​ "​string",​ 
       "​Passport":​ "​string",​       "​Passport":​ "​string",​
       "​Email":​ "​string",​       "​Email":​ "​string",​
       "​Address":​ "​string",​       "​Address":​ "​string",​
-      "Telephone1":​ "​string",​ +      "Telephone": "​string",​
-      "​Telephone2": "​string",​+
       "​Child":​ false,       "​Child":​ false,
       "​Age":​ 0,       "​Age":​ 0,
Línea 87: Línea 82:
       "​Id":​ 1,       "​Id":​ 1,
       "​Name":​ "​string",​       "​Name":​ "​string",​
-      "​SurName":​ "​string",​ 
       "​Passport":​ "​string",​       "​Passport":​ "​string",​
       "​Email":​ "​string",​       "​Email":​ "​string",​
       "​Address":​ "​string",​       "​Address":​ "​string",​
-      "Telephone1":​ "​string",​ +      "Telephone": "​string",​
-      "​Telephone2": "​string",​+
       "​Child":​ false,       "​Child":​ false,
       "​Age":​ 0,       "​Age":​ 0,
Línea 102: Línea 95:
     {     {
       "​Type":​ 1,       "​Type":​ 1,
-      "​Category":​ 0, 
       "​PaxIds":​ [       "​PaxIds":​ [
         0,1         0,1
Línea 114: Línea 106:
 --------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------
 === Esquema de la respuesta === === Esquema de la respuesta ===
-  * TourList ​-> Root +  * Booking ​-> Root 
-    * Tours -> Contenedor +    * Confirmed ​-> Indica si la reserva ha sido confirmada correctamente 
-      Tour -> Elemento +    Modified ​-> Indica si la reserva ha sido modificada correctamente (sólo en transacciones de modificación) 
-        Id -> Identificador del tour +    BookingNumber -> Número de la reserva 
-        Name -> Nombre del tour +    * Price -> Precio total de la reserva 
-        Image -> URL a la imagen ​del tour +    * Pax -> Número total de personas en la reserva 
-        URL -> URL a la descripción ​del tour+    * TourID ​-> Identificador del tour 
 +    CompleteTour ​-> Controla si la reserva es sobre el tour completo o parcial (días en concreto). ​ 
 +    EntryDate ​-> Fecha de entrada al tour (para rutas parciales) 
 +    * ExitDate -> Fecha de salida ​del tour (para rutas parciales) 
 +    BookingDate ​-> Fecha de la reserva 
 +    * StartDate -> Fecha de salida ​del tour 
 +    * Error -> Descripción del error 
 +    * ErrorCode -> [[public:​enums|Enumerador del tipo de error]] 
 +    * BookingInfo -> Elemento con la información de personas y habitaciones (descrito en la petición) 
 --------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------
 === Respuestas de ejemplo === === Respuestas de ejemplo ===
Línea 129: Línea 130:
   <​BookingInfo>​   <​BookingInfo>​
     <​Paxes>​     <​Paxes>​
-      <Pax Id="​1008"​ Name="​string"​ SurName="​string"​ Passport="​string"​ Email="​string"​ Address="​string" ​Telephone1="​string"​ Telephone2="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ /> +      <Pax Id="​1008"​ Name="​string"​ Passport="​string"​ Email="​string"​ Address="​string" ​Telephone="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ /> 
-      <Pax Id="​1009"​ Name="​string"​ SurName="​string"​ Passport="​string"​ Email="​string"​ Address="​string" ​Telephone1="​string"​ Telephone2="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ />+      <Pax Id="​1009"​ Name="​string"​ Passport="​string"​ Email="​string"​ Address="​string" ​Telephone="​string"​ Child="​false"​ Age="​0"​ DepartureFlight="​string"​ ReturnFlight="​string"​ />
     </​Paxes>​     </​Paxes>​
     <​Rooms>​     <​Rooms>​
-      <Room Type="​Double" Category="​Turista" Price="​150.10">​+      <Room Type="​Double"​ Price="​150.10">​
         <​PaxIds>​         <​PaxIds>​
           <​PaxId>​1008</​PaxId>​           <​PaxId>​1008</​PaxId>​
Línea 156: Línea 157:
         "​Id":​ 1006,         "​Id":​ 1006,
         "​Name":​ "​string",​         "​Name":​ "​string",​
-        "​SurName":​ "​string",​ 
         "​Passport":​ "​string",​         "​Passport":​ "​string",​
         "​Email":​ "​string",​         "​Email":​ "​string",​
         "​Address":​ "​string",​         "​Address":​ "​string",​
-        "Telephone1":​ "​string",​ +        "Telephone": "​string",​
-        "​Telephone2": "​string",​+
         "​Child":​ false,         "​Child":​ false,
         "​Age":​ 0,         "​Age":​ 0,
Línea 170: Línea 169:
         "​Id":​ 1007,         "​Id":​ 1007,
         "​Name":​ "​string",​         "​Name":​ "​string",​
-        "​SurName":​ "​string",​ 
         "​Passport":​ "​string",​         "​Passport":​ "​string",​
         "​Email":​ "​string",​         "​Email":​ "​string",​
         "​Address":​ "​string",​         "​Address":​ "​string",​
-        "Telephone1":​ "​string",​ +        "Telephone": "​string",​
-        "​Telephone2": "​string",​+
         "​Child":​ false,         "​Child":​ false,
         "​Age":​ 0,         "​Age":​ 0,
Línea 185: Línea 182:
       {       {
         "​Type":​ 1,         "​Type":​ 1,
-        "​Category":​ 0, 
         "​PaxIds":​ [         "​PaxIds":​ [
           1006,           1006,
public/book.1478781124.txt.gz · Última modificación: 2017/01/20 13:16 (editor externo)