func (o *GetTransactionsParams) validateStatus(formats strfmt.Registry) error {
	if err := validate.Enum("status", "query", *o.Status, []interface{}{"failed", "in_progress"}); err != nil {
		return err
	}
	return nil
}
validateStatus carries on validations for parameter Status
package transactions
import (
	"net/http"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/runtime/middleware"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)
func NewGetTransactionsParams() GetTransactionsParams {
	return GetTransactionsParams{}
}
type GetTransactionsParams struct {
	HTTPRequest *http.Request `json:"-"`
	Status *string
}
func (o *GetTransactionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
	var res []error
	o.HTTPRequest = r
	qs := runtime.Values(r.URL.Query())
	qStatus, qhkStatus, _ := qs.GetOK("status")
	if err := o.bindStatus(qStatus, qhkStatus, route.Formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (o *GetTransactionsParams) bindStatus(rawData []string, hasKey bool, formats strfmt.Registry) error {
	var raw string
	if len(rawData) > 0 {
		raw = rawData[len(rawData)-1]
	}
	if raw == "" {  
		return nil
	}
	o.Status = &raw
	if err := o.validateStatus(formats); err != nil {
		return err
	}
	return nil
}