2019-11-15 14:27:44 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package payments
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/skyrings/skyring-common/tools/uuid"
|
2020-03-04 13:23:10 +00:00
|
|
|
|
|
|
|
"storj.io/storj/satellite/accounting"
|
2019-11-15 14:27:44 +00:00
|
|
|
)
|
|
|
|
|
2020-03-04 13:23:10 +00:00
|
|
|
// ProjectCharge shows project usage and how much money current project will charge in the end of the month.
|
2019-11-15 14:27:44 +00:00
|
|
|
type ProjectCharge struct {
|
2020-03-04 13:23:10 +00:00
|
|
|
accounting.ProjectUsage
|
|
|
|
|
2019-11-15 14:27:44 +00:00
|
|
|
ProjectID uuid.UUID `json:"projectId"`
|
|
|
|
// StorageGbHrs shows how much cents we should pay for storing GB*Hrs.
|
2020-03-04 13:23:10 +00:00
|
|
|
StorageGbHrs int64 `json:"storagePrice"`
|
2019-11-15 14:27:44 +00:00
|
|
|
// Egress shows how many cents we should pay for Egress.
|
2020-03-04 13:23:10 +00:00
|
|
|
Egress int64 `json:"egressPrice"`
|
2019-11-15 14:27:44 +00:00
|
|
|
// ObjectCount shows how many cents we should pay for objects count.
|
2020-03-04 13:23:10 +00:00
|
|
|
ObjectCount int64 `json:"objectPrice"`
|
2019-11-15 14:27:44 +00:00
|
|
|
}
|