Draft booking flow

This commit is contained in:
mr
2026-03-16 08:52:31 +01:00
parent 12ba346427
commit 465b91fd6e
4 changed files with 21 additions and 6 deletions

View File

@@ -19,6 +19,10 @@ type PurchaseResource struct {
InstanceID string `json:"instance_id,omitempty" bson:"instance_id,omitempty" validate:"required"` // could be a Compute or a Storage
ResourceType tools.DataType `json:"resource_type" bson:"resource_type" validate:"required"`
// Authorization: identifies who created this draft and the Check session it belongs to.
SchedulerPeerID string `json:"scheduler_peer_id,omitempty" bson:"scheduler_peer_id,omitempty"`
SchedulingSessionID string `json:"scheduling_session_id,omitempty" bson:"scheduling_session_id,omitempty"`
}
func (d *PurchaseResource) GetAccessor(request *tools.APIRequest) utils.Accessor {