@citrineos/data
Version:
The OCPP data module which includes all persistence layer implementation.
20 lines • 730 B
JavaScript
;
// Copyright Contributors to the CitrineOS Project
//
// SPDX-License-Identifier: Apache 2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionMapper = void 0;
class TransactionMapper {
static toTransactionType(transaction) {
return {
transactionId: transaction.transactionId,
chargingState: transaction.chargingState,
timeSpentCharging: transaction.timeSpentCharging,
stoppedReason: transaction.stoppedReason,
remoteStartId: transaction.remoteStartId,
customData: transaction.customData,
};
}
}
exports.TransactionMapper = TransactionMapper;
//# sourceMappingURL=TransactionMapper.js.map