mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 05:35:10 +00:00
update carbon api
This commit is contained in:
@@ -3,7 +3,7 @@ Purchase carbon offsets
|
|||||||
# Carbon Service
|
# Carbon Service
|
||||||
|
|
||||||
Purchase carbon offsets to help climate change and achieve carbon neutrality.
|
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.
|
Make multiple requests to purchase the required amount.
|
||||||
|
|
||||||
Powered by [Ecologi](https://ecologi.com/)
|
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
|
// currently do not support options
|
||||||
r := &domain.OffsetRequest{
|
r := &domain.OffsetRequest{
|
||||||
Number: 1000,
|
Number: 1,
|
||||||
Units: "KG",
|
Units: "KG",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ message Project {
|
|||||||
double tonnes = 3;
|
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 OffsetRequest {}
|
||||||
|
|
||||||
message OffsetResponse {
|
message OffsetResponse {
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
"category": "climate",
|
"category": "climate",
|
||||||
"display_name": "Carbon",
|
"display_name": "Carbon",
|
||||||
"pricing": {
|
"pricing": {
|
||||||
"Carbon.Offset": 5000000
|
"Carbon.Offset": 10000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user