ocpi-types
Version:
TypeScript DTOs and enums for OCPI 2.2.1 specification.
40 lines (39 loc) • 1.26 kB
TypeScript
import { CdrTokenDto } from './cdr-token.dto';
import { CdrLocationDto } from './cdr-location.dto';
import { TariffDto } from '../../tariffs/dtos/tariff.dto';
import { ChargingPeriodDto } from './charging-period.dto';
import { SignedDataDto } from './signed-data.dto';
import { PriceDto } from '../../../dtos/price.dto';
import { AuthMethod } from '../enums/auth-method.enum';
export declare class CdrDto {
countryCode: string;
partyId: string;
id: string;
startDateTime: string;
endDateTime: string;
sessionId?: string;
cdrToken: CdrTokenDto;
authMethod: AuthMethod;
authorizationReference?: string;
cdrLocation: CdrLocationDto;
meterId?: string;
currency: string;
tariffs?: TariffDto[];
chargingPeriods: ChargingPeriodDto[];
signedData?: SignedDataDto;
totalCost: PriceDto;
totalFixedCost?: PriceDto;
totalEnergy: number;
totalEnergyCost?: PriceDto;
totalTime: number;
totalTimeCost?: PriceDto;
totalParkingTime?: number;
totalParkingCost?: PriceDto;
totalReservationCost?: PriceDto;
remark?: string;
invoiceReferenceId?: string;
credit?: boolean;
creditReferenceId?: string;
homeChargingCompensation?: boolean;
lastUpdated: string;
}