massive draft for payment process (UNCOMPLETE)
This commit is contained in:
17
models/common/pricing/interfaces.go
Normal file
17
models/common/pricing/interfaces.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package pricing
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"cloud.o-forge.io/core/oc-lib/tools"
|
||||
)
|
||||
|
||||
type PricedItemITF interface {
|
||||
GetID() string
|
||||
GetType() tools.DataType
|
||||
IsBuying(request *tools.APIRequest) bool
|
||||
GetCreatorID() string
|
||||
GetLocationStart() *time.Time
|
||||
GetLocationEnd() *time.Time
|
||||
GetPrice(request *tools.APIRequest) (float64, error)
|
||||
}
|
||||
Reference in New Issue
Block a user