package native_tools

import (
	"cloud.o-forge.io/core/oc-lib/models/booking"
	"cloud.o-forge.io/core/oc-lib/models/common/pricing"
)

/*
* Workflow Event is a struct that represents a native functiunality.
 */

type WorkflowEventParams struct {
	WorkflowResourceID string               `json:"workflow_execution_id" bson:"workflow_execution_id" validate:"required"`
	ManualCheck        bool                 `json:"manual_check" bson:"manual_check"`
	Input              string               `json:"input" bson:"input"`
	Payload            string               `json:"payload" bson:"payload"`
	BookingMode        *booking.BookingMode `json:"booking_mode" bson:"booking_mode"`
}

func (wep *WorkflowEventParams) GetBuyingStrategy() pricing.BillingStrategy {
	return pricing.BILL_ONCE
}
