priced.GetInstanceID()
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
|
|
||||||
type PricedItemITF interface {
|
type PricedItemITF interface {
|
||||||
GetID() string
|
GetID() string
|
||||||
|
GetInstanceID() string
|
||||||
GetType() tools.DataType
|
GetType() tools.DataType
|
||||||
IsPurchasable() bool
|
IsPurchasable() bool
|
||||||
IsBooked() bool
|
IsBooked() bool
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ func (abs *PricedResource) GetID() string {
|
|||||||
return abs.ResourceID
|
return abs.ResourceID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (abs *PricedResource) GetInstanceID() string {
|
||||||
|
return abs.InstanceID
|
||||||
|
}
|
||||||
|
|
||||||
func (abs *PricedResource) GetType() tools.DataType {
|
func (abs *PricedResource) GetType() tools.DataType {
|
||||||
return abs.ResourceType
|
return abs.ResourceType
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,7 @@ func (d *WorkflowExecution) buyEach(bs pricing.BillingStrategy, executionsID str
|
|||||||
ExecutionsID: executionsID,
|
ExecutionsID: executionsID,
|
||||||
DestPeerID: priced.GetCreatorID(),
|
DestPeerID: priced.GetCreatorID(),
|
||||||
ResourceID: priced.GetID(),
|
ResourceID: priced.GetID(),
|
||||||
|
InstanceID: priced.GetInstanceID(),
|
||||||
ResourceType: dt,
|
ResourceType: dt,
|
||||||
EndDate: &end,
|
EndDate: &end,
|
||||||
}
|
}
|
||||||
@@ -212,6 +213,7 @@ func (d *WorkflowExecution) bookEach(executionsID string, wfID string, dt tools.
|
|||||||
ExecutionsID: executionsID,
|
ExecutionsID: executionsID,
|
||||||
State: enum.SCHEDULED,
|
State: enum.SCHEDULED,
|
||||||
ResourceID: priced.GetID(),
|
ResourceID: priced.GetID(),
|
||||||
|
InstanceID: priced.GetInstanceID(),
|
||||||
ResourceType: dt,
|
ResourceType: dt,
|
||||||
DestPeerID: priced.GetCreatorID(),
|
DestPeerID: priced.GetCreatorID(),
|
||||||
WorkflowID: wfID,
|
WorkflowID: wfID,
|
||||||
|
|||||||
Reference in New Issue
Block a user