public void startTransaction ( ChargingStationId chargingStationId , EvseId evseId , IdentifyingToken idTag , FutureEventCallback futureEventCallback , AddOnIdentity addOnIdentity ) { ChargingStation chargingStation = this . checkChargingStationExistsAndIsRegisteredAndConfigured ( chargingStationId ) ; if ( evseId . getNumberedId ( ) > chargingStation . getNumberOfEvses ( ) ) { throw new IllegalStateException ( "Cannot start transaction on a unknown evse." ) ; } // authorize the token, the future contains the call to start the transaction authorize ( chargingStationId , idTag . getToken ( ) , futureEventCallback , addOnIdentity ) ; }
Generates a transaction identifier and starts a transaction by dispatching a StartTransactionCommand .