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:24]
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 ===
 <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 148: Línea 149:
   "​Confirmed":​ true,   "​Confirmed":​ true,
   "​Modified":​ false,   "​Modified":​ false,
-  "​BookingNumber": ​3,+  "​BookingNumber": ​4,
   "​Error":​ "",​   "​Error":​ "",​
   "​ErrorCode":​ 0,   "​ErrorCode":​ 0,
Línea 154: Línea 155:
     "​Paxes":​ [     "​Paxes":​ [
       {       {
-        "​Id": ​0,+        "​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 168: Línea 167:
       },       },
       {       {
-        "​Id": ​1,+        "​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":​ [
-          ​1004+          ​1006
-          ​1005+          ​1007
         ],         ],
         "​Price":​ 150         "​Price":​ 150
Línea 200: Línea 196:
   "​EntryDate":​ "​0001-01-01T00:​00:​00",​   "​EntryDate":​ "​0001-01-01T00:​00:​00",​
   "​ExitDate":​ "​0001-01-01T00:​00:​00",​   "​ExitDate":​ "​0001-01-01T00:​00:​00",​
-  "​BookingDate":​ "​2016-11-10T13:​23:36.5042581+01:​00",​+  "​BookingDate":​ "​2016-11-10T13:​30:15.2650353+01:​00",​
   "​StartDate":​ "​2017-01-13T00:​00:​00"​   "​StartDate":​ "​2017-01-13T00:​00:​00"​
 } }
 </​code>​ </​code>​
public/book.1478780647.txt.gz · Última modificación: 2017/01/20 13:16 (editor externo)