1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
use ;
/// 13.3.4. ReserveNow Object
///
/// The evse_uid is optional. If no EVSE is specified, the Charge Point should keep
/// one EVSE available for the EV Driver identified by the given Token.
/// (This might not be supported by all Charge Points).
/// A reservation can be replaced/updated by sending a `RESERVE_NOW` request with the
/// same Location (Charge Point) and the same reservation_id.
///
/// A successful reservation will result in a new Session object being created by the CPO.
///
/// A not used Reservation of a Charge Point/EVSE MAY result in cost being made, thus also a CDR.
///
/// The eMSP provides a Token that has to be used by the Charge Point.
/// The Token provided by the eMSP for the ReserveNow SHALL be authorized by the eMSP before
/// sending it to the CPO.
/// Therefor the CPO SHALL NOT check the validity of the Token provided before sending the request to
/// the Charge Point.
///
/// If this is an OCPP Charge Point, the Charge Point decides if it needs to validate the
/// given Token, in such case:
///
/// • If this Token is of type: AD_HOC_USER or APP_USER
/// the CPO SHALL NOT do a realtime authorization at the eMSP for this .
///
/// • If this Token is of type: RFID,
/// the CPO SHALL NOT do a realtime authorization at the eMSP for this Token at the given
/// EVSE/Charge Point within 15 minutes after having received this ReserveNow.
///
/// The eMSP MAY use Tokens that have not been pushed via the Token module,
/// especially AD_HOC_USER or APP_USER Tokens are only used by commands send by an eMSP.
/// As these are never used locally at the Charge Point like RFID.
///
/// Unknown Tokens received by the CPO in the ReserveNow Object don’t need to be stored
/// in the Token module. In other words, when a Token has been received via ReserveNow,
/// the same Token does not have to be returned in a Token GET request from the eMSP.
///
/// An eMSP sending a ReserveNow SHALL only use Token that are owned by this eMSP in ReserveNow,
/// using Tokens of other eMSPs is not allowed.
///
/// The reservation_id send by the Sender (eMSP) to the Receiver (CPO) SHALL NOT be send
/// directly to a Charge Point. The CPO SHALL make sure the Reservation ID send to the
/// Charge Point is unique, is not used by another Sender (eMSP).
/// We don’t want a Sender (eMSP) to replace or cancel a reservation of another Sender (eMSP).