2024-12-12 16:25:47 +01:00
|
|
|
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
|
2024-12-12 16:25:47 +01:00
|
|
|
GetCreatorID() string
|
|
|
|
GetLocationStart() *time.Time
|
2025-01-13 11:24:07 +01:00
|
|
|
SetLocationStart(start time.Time)
|
|
|
|
SetLocationEnd(end time.Time)
|
2024-12-12 16:25:47 +01:00
|
|
|
GetLocationEnd() *time.Time
|
2025-01-13 11:24:07 +01:00
|
|
|
GetExplicitDurationInS() float64
|
|
|
|
GetPrice() (float64, error)
|
2024-12-12 16:25:47 +01:00
|
|
|
}
|