mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
Add the carbon api (#351)
This commit is contained in:
21
carbon/domain/domain.go
Normal file
21
carbon/domain/domain.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package domain
|
||||
|
||||
type Project struct {
|
||||
Name string `json:"name"`
|
||||
Percentage float64 `json:"splitPercentage"`
|
||||
Tonnes float64 `json:"splitAmountTonnes"`
|
||||
}
|
||||
|
||||
type OffsetRequest struct {
|
||||
Number int32 `json:"number"`
|
||||
Units string `json:"units"`
|
||||
}
|
||||
|
||||
type OffsetResponse struct {
|
||||
Number int32 `json:"number"`
|
||||
Units string `json:"units"`
|
||||
Tonnes float64 `json:"numberInTonnes"`
|
||||
Amount float64 `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
Projects []Project `json:"projectDetails"`
|
||||
}
|
||||
Reference in New Issue
Block a user