mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
update carbon api
This commit is contained in:
@@ -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/)
|
||||
|
||||
@@ -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",
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"category": "climate",
|
||||
"display_name": "Carbon",
|
||||
"pricing": {
|
||||
"Carbon.Offset": 5000000
|
||||
"Carbon.Offset": 10000
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user