This repository has been archived by the owner on May 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChargeCreated.proto
48 lines (44 loc) · 1.85 KB
/
ChargeCreated.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright 2020 Energinet DataHub A/S
*
* Licensed under the Apache License, Version 2.0 (the "License2");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Charge Created Event.
*/
syntax = "proto3";
import "google/protobuf/timestamp.proto";
option csharp_namespace = "GreenEnergyHub.Charges.Infrastructure.Integration.ChargeCreated";
message ChargeCreated {
string charge_id = 1; // A charge identifier provided by the Market Participant. Combined with Charge Owner and Charge Type it becomes unique
enum ChargeType {
CT_UNKNOWN = 0;
CT_SUBSCRIPTION = 1;
CT_FEE = 2;
CT_TARIFF = 3;
}
ChargeType charge_type = 2; // The type of charge; tariff, fee or subscription
string charge_owner = 3; // A charge owner identification, e.g. the Market Participant's GLN or EIC number
string currency = 4; // ISO 4217 currency code
enum Resolution
{
R_UNKNOWN = 0;
R_PT15m = 1;
R_PT1H = 2;
R_P1D = 3;
R_P1M = 4;
}
Resolution resolution = 5; // The resolution of a charge price list, e.g. 15 min, hourly, daily, monthly
bool tax_indicator = 6; // Indicates whether a tariff is considered a tax or not
google.protobuf.Timestamp StartDateTime = 7; // In UTC. The charge period's valid from date and time
google.protobuf.Timestamp EndDateTime = 8; // In UTC. The charge period's valid to date and time. The default value will be the equivalent to 9999-12-31T23:59:59Z without milliseconds
}