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:21]
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": ​true,+      "​Age":​ 0, 
 +      "​DepartureFlight":​ "​string",​ 
 +      "​ReturnFlight":​ "​string"​ 
 +    }, 
 +    { 
 +      "​Id":​ 1, 
 +      "​Name":​ "​string",​ 
 +      "​Passport":​ "​string",​ 
 +      "​Email":​ "​string",​ 
 +      "​Address":​ "​string",​ 
 +      "​Telephone": "​string",​ 
 +      "​Child": ​false,
       "​Age":​ 0,       "​Age":​ 0,
       "​DepartureFlight":​ "​string",​       "​DepartureFlight":​ "​string",​
Línea 88: Línea 95:
     {     {
       "​Type":​ 1,       "​Type":​ 1,
-      "​Category":​ 0, 
       "​PaxIds":​ [       "​PaxIds":​ [
-        0+        0,1
       ],       ],
-      "​Price": ​0+      "​Price": ​150
     }     }
   ]   ]
Línea 100: 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 ===
 <code xml Example.xml>​ <code xml Example.xml>​
-<Booking Confirmed="​true"​ Modified="​false"​ BookingNumber="​2" Price="​150.10"​ Pax="​2"​ TourID="​1"​ CompleteTour="​true"​ EntryDate="​0001-01-01T00:​00:​00"​ ExitDate="​0001-01-01T00:​00:​00"​ BookingDate="​2016-11-10T13:​13:07.7895248+01:​00"​ StartDate="​2017-01-13T00:​00:​00">​+<Booking Confirmed="​true"​ Modified="​false"​ BookingNumber="​5" Price="​150.10"​ Pax="​2"​ TourID="​1"​ CompleteTour="​true"​ EntryDate="​0001-01-01T00:​00:​00"​ ExitDate="​0001-01-01T00:​00:​00"​ BookingDate="​2016-11-10T13:​31:44.0233894+01:​00"​ StartDate="​2017-01-13T00:​00:​00">​
   <Error />   <Error />
   <​ErrorCode>​No_Error</​ErrorCode>​   <​ErrorCode>​No_Error</​ErrorCode>​
   <​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="1008" 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="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>​1002</​PaxId>​ +          <​PaxId>​1008</​PaxId>​ 
-          <​PaxId>​1003</​PaxId>​+          <​PaxId>​1009</​PaxId>​
         </​PaxIds>​         </​PaxIds>​
       </​Room>​       </​Room>​
Línea 132: Línea 147:
 <code javascript Example.json>​ <code javascript Example.json>​
 { {
-  "Tours": ​[ +  "Confirmed": ​true, 
-    { +  "Modified": ​false
-      ​"Id": ​1+  "BookingNumber": ​4
-      "Name": ​"​Esencia Europea 2017"+  "Error": "",​ 
-      "Image": "",​ +  "ErrorCode": ​0, 
-      "URL": ""​ +  ​"BookingInfo": { 
-    ​}, +    ​"​Paxes":​ [ 
-    +      
-      "​Id": ​2+        "​Id": ​1006
-      "​Name":​ "Europa Preferente 2017", +        "​Name":​ "string", 
-      "Image": "",​ +        "Passport": "string", 
-      "URL": ""​ +        "Email": "string", 
-    }+        "Address": "string", 
-    { +        "Telephone": "string", 
-      ​"Id": ​3, +        "Child": ​false
-      ​"Name": "Ronda Europea 2017", +        "Age": ​0
-      "Image": "",​ +        "DepartureFlight": "string", 
-      "URL": ​""​ +        "ReturnFlight": "string
-    }+      }, 
-    { +      
-      ​"Id": ​4+        "​Id": ​1007
-      "Name": "Viva Europa 2017", +        "​Name":​ "string", 
-      "Image": ""​, +        "Passport": "string", 
-      ​"​URL":​ ""​ +        "Email": "string", 
-    ​}, +        "Address": "string", 
-    +        "Telephone": "string", 
-      "​Id": ​5+        "Child": ​false
-      "​Name":​ "Encanto de Europa 2017", +        "Age": ​0
-      "Image": "",​ +        "DepartureFlight": "string", 
-      "URL": ""​ +        "ReturnFlight": "string
-    }+      ​} 
-    { +    ​]
-      ​"Id": ​6, +    "Rooms": ​[ 
-      ​"Name": "​Europa Emocionante 2017", +      ​
-      "Image": "",​ +        ​"Type": ​1
-      "URL": ​""​ +        "PaxIds": ​
-    }+          1006
-    { +          ​1007 
-      ​"Id": ​7+        ], 
-      "Name": "Europa de Gala 2017", +        ​"Price": ​150 
-      "Image": ""​, +      } 
-      ​"​URL":​ ""​ +    ​
-    ​}+  ​}, 
-    ​+  "Price": ​150
-      ​"Id": ​8, +  "Pax": ​2
-      "Name": ​"Rutas de Europa 2017"+  "TourID": ​1, 
-      "Image": ​""​+  ​"CompleteTour": true
-      "URL": ​""​ +  "EntryDate": "0001-01-01T00:​00:​00", 
-    }, +  "ExitDate": "0001-01-01T00:00:00", 
-    { +  "BookingDate": "2016-11-10T13:​30:​15.2650353+01:​00", 
-      ​"Id": ​9+  "StartDate": "2017-01-13T00:​00:​00"
-      "Name": ​"​Europa Bella 2017"+
-      "Image": "",​ +
-      "URL": ""​ +
-    }+
-    { +
-      ​"Id": ​10, +
-      "Name": ​"Magia Europea 2017", +
-      "Image": "",​ +
-      "URL": ""​ +
-    } +
-  ]+
 } }
 </​code>​ </​code>​
public/book.1478780514.txt.gz · Última modificación: 2017/01/20 13:16 (editor externo)