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

23 lines
437 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-06-20 07:51:32 +02:00
IsPurchasable() bool
IsBooked() bool
GetCreatorID() string
2025-06-20 12:10:36 +02:00
SelectPricing() PricingProfileITF
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)
}