Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ type UsageItem struct {
Date string `json:"date"`
Product string `json:"product"`
SKU string `json:"sku"`
Quantity int `json:"quantity"`
Quantity float64 `json:"quantity"`
UnitType string `json:"unitType"`
PricePerUnit float64 `json:"pricePerUnit"`
GrossAmount float64 `json:"grossAmount"`
Expand Down
4 changes: 2 additions & 2 deletions github/billing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ func TestBillingService_GetOrganizationUsageReport(t *testing.T) {
Date: "2023-08-01",
Product: "Actions",
SKU: "Actions Linux",
Quantity: 100,
Quantity: 100.0,
UnitType: "minutes",
PricePerUnit: 0.008,
GrossAmount: 0.8,
Expand Down Expand Up @@ -488,7 +488,7 @@ func TestBillingService_GetUsageReport(t *testing.T) {
Date: "2023-08-15",
Product: "Codespaces",
SKU: "Codespaces Linux",
Quantity: 50,
Quantity: 50.0,
UnitType: "hours",
PricePerUnit: 0.18,
GrossAmount: 9.0,
Expand Down
Loading