1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::v1_6::types::RemoteStartStopStatus;

/// This contains the field definitions of the RemoteStopTransactionRequest PDU sent to Charge Point by Central System. See also Remote Stop Transaction
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct RemoteStopTransactionRequest {
    /// Required. The identifier of the transaction which Charge Point is requested to stop.
    pub transaction_id: i64,
}

/// This contains the field definitions of the RemoteStopTransactionResponse PDU sent from Charge Point to Central System. See also Remote Stop Transaction
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, PartialEq, Default)]
#[serde(rename_all = "camelCase")]
pub struct RemoteStopTransactionResponse {
    // Required. Status indicating whether Charge Point accepts the request to stop a transaction.
    pub status: RemoteStartStopStatus,
}