UNPKG

@citrineos/data

Version:

The OCPP data module which includes all persistence layer implementation.

18 lines 693 B
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project // // SPDX-License-Identifier: Apache-2.0 import { OCPP2_0_1 } from '@citrineos/base'; import { Transaction } from '../../model/index.js'; export class TransactionMapper { static toTransactionType(transaction) { return { transactionId: transaction.transactionId, chargingState: transaction.chargingState, timeSpentCharging: transaction.timeSpentCharging, stoppedReason: transaction.stoppedReason, remoteStartId: transaction.remoteStartId, customData: transaction.customData, }; } } //# sourceMappingURL=TransactionMapper.js.map