Ejemplo n.º 1
0
 public function prepareAllParametersToMakeTheSeatReservationCall(SeatReservationRequest $seatReservationRequest)
 {
     $departureDate = $seatReservationRequest->getFechaCorrida();
     $formattedDepartureDate = $departureDate->format('dmY');
     $soapParams = array('p_cve_origen_1' => $seatReservationRequest->getClaveOrigen(), 'p_cve_destino_2' => $seatReservationRequest->getClaveDestino(), 'p_fecha_3' => $formattedDepartureDate, 'p_hora_4' => $seatReservationRequest->getHora(), 'p_no_adulto_5' => $seatReservationRequest->getNumAdulto(), 'p_no_nino_6' => $seatReservationRequest->getNumNino(), 'p_no_insen_7' => $seatReservationRequest->getNumInsen(), 'p_no_estudiante_8' => $seatReservationRequest->getNumEstudiante(), 'p_no_maestro_9' => $seatReservationRequest->getNumMaestro(), 'p_corrida_10' => $seatReservationRequest->getNumCorrida(), 'p_asientos_11' => $seatReservationRequest->getAsientos(), 'p_nombres_12' => $seatReservationRequest->getNombre(), 'p_folio_reservacion_13' => $seatReservationRequest->getFolioReservacion(), 'E_aClaveEmpresaSolicita' => $seatReservationRequest->getCveEmpresaSolicita(), 'E_aClaveEmpresaViaja' => $seatReservationRequest->getCveEmpresaViaje(), 'P_no_promocion' => $seatReservationRequest->getNumPromocion(), 'P_aCadenaPromociones' => $seatReservationRequest->getCadenaPromocion(), 'E_aTipoTerminal' => $seatReservationRequest->getTipoTerminal(), 'E_aTipoCliente' => $seatReservationRequest->getTipoCliente(), 'E_aTipoOperacion' => $seatReservationRequest->getTipoOperacion(), 'E_nEsIntercambio' => $seatReservationRequest->getEsIntercambio(), 'E_nClaveOperacionOriginal' => $seatReservationRequest->getClaveOperacionOriginal(), 'E_nConsecutivoOperacionOrigina' => $seatReservationRequest->getConsecutivoOperOriginal(), 'E_no_ProgramaPaisano' => $seatReservationRequest->getNumProgPaisano(), 'E_EsBoletoFrontera' => $seatReservationRequest->getEsBoletoFrontera(), 'E_aDatosBoletoFrontera' => $seatReservationRequest->getDatosBoletosFrontera());
     return $soapParams;
 }