#ifndef __OCPP21_DATATYPE_H__
#define __OCPP21_DATATYPE_H__
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
#include "cJSON.h"

typedef char dateTime_t[40];

typedef struct AbsolutePriceScheduleType
{
    dateTime_t      timeAnchor;
    int             priceScheduleID;

    char            priceScheduleDescription[160];
    int             priceScheduleDescription_isUsed;

    char            currency[3];
    int             currency_isUsed;

    char            language[8];
    int             language_isUsed;

    char            priceAlgorithm[2000];
    int             priceAlgorithm_isUsed;

}AbsolutePriceScheduleType_t;

int AbsolutePriceScheduleType_encode(cJSON *parent, const char* name, AbsolutePriceScheduleType_t *value);
int AbsolutePriceScheduleType_decode(cJSON *object, AbsolutePriceScheduleType_t *value);

#endif//__OCPP21_DATATYPE_H__