priced.GetInstanceID()

This commit is contained in:
mr
2026-02-23 15:22:48 +01:00
parent 5d32b4646a
commit b08bbf51dd
3 changed files with 7 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import (
type PricedItemITF interface {
GetID() string
GetInstanceID() string
GetType() tools.DataType
IsPurchasable() bool
IsBooked() bool

View File

@@ -47,6 +47,10 @@ func (abs *PricedResource) GetID() string {
return abs.ResourceID
}
func (abs *PricedResource) GetInstanceID() string {
return abs.InstanceID
}
func (abs *PricedResource) GetType() tools.DataType {
return abs.ResourceType
}

View File

@@ -162,6 +162,7 @@ func (d *WorkflowExecution) buyEach(bs pricing.BillingStrategy, executionsID str
ExecutionsID: executionsID,
DestPeerID: priced.GetCreatorID(),
ResourceID: priced.GetID(),
InstanceID: priced.GetInstanceID(),
ResourceType: dt,
EndDate: &end,
}
@@ -212,6 +213,7 @@ func (d *WorkflowExecution) bookEach(executionsID string, wfID string, dt tools.
ExecutionsID: executionsID,
State: enum.SCHEDULED,
ResourceID: priced.GetID(),
InstanceID: priced.GetInstanceID(),
ResourceType: dt,
DestPeerID: priced.GetCreatorID(),
WorkflowID: wfID,