oc-lib/models/common/pricing/interfaces.go

21 lines
383 B
Go
Raw Normal View History

package pricing
import (
"time"
"cloud.o-forge.io/core/oc-lib/tools"
)
type PricedItemITF interface {
GetID() string
GetType() tools.DataType
2025-01-13 11:24:07 +01:00
IsPurchased() bool
GetCreatorID() string
GetLocationStart() *time.Time
2025-01-13 11:24:07 +01:00
SetLocationStart(start time.Time)
SetLocationEnd(end time.Time)
GetLocationEnd() *time.Time
2025-01-13 11:24:07 +01:00
GetExplicitDurationInS() float64
GetPrice() (float64, error)
}