update carbon api

This commit is contained in:
Asim Aslam
2022-01-12 09:40:33 +00:00
parent cf7b2bf35a
commit 131a693a2c
4 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ Purchase carbon offsets
# Carbon Service
Purchase carbon offsets to help climate change and achieve carbon neutrality.
Offset purchases are currently limited to 1 tonne per request.
Offset purchases are currently limited to 1KG (0.001 tonne) per request.
Make multiple requests to purchase the required amount.
Powered by [Ecologi](https://ecologi.com/)

View File

@@ -50,7 +50,7 @@ func (c *Carbon) Offset(ctx context.Context, req *pb.OffsetRequest, rsp *pb.Offs
// currently do not support options
r := &domain.OffsetRequest{
Number: 1000,
Number: 1,
Units: "KG",
}

View File

@@ -17,7 +17,7 @@ message Project {
double tonnes = 3;
}
// Purchase 1 tonne of carbon offsets in a single request
// Purchase 1K (0.001 tonne) of carbon offsets in a single request
message OffsetRequest {}
message OffsetResponse {

View File

@@ -4,6 +4,6 @@
"category": "climate",
"display_name": "Carbon",
"pricing": {
"Carbon.Offset": 5000000
"Carbon.Offset": 10000
}
}