func (o *CommitTransactionAccepted) SetPayload(payload *models.Transaction) {
	o.Payload = payload
}
SetPayload sets the payload to the commit transaction accepted response
package transactions
import (
	"net/http"
	"github.com/go-openapi/runtime"
	"github.com/haproxytech/client-native/v2/models"
)
const CommitTransactionOKCode int = 200
type CommitTransactionOK struct {
	Payload *models.Transaction `json:"body,omitempty"`
}
func NewCommitTransactionOK() *CommitTransactionOK {
	return &CommitTransactionOK{}
}
func (o *CommitTransactionOK) WithPayload(payload *models.Transaction) *CommitTransactionOK {
	o.Payload = payload
	return o
}
func (o *CommitTransactionOK) SetPayload(payload *models.Transaction) {
	o.Payload = payload
}
func (o *CommitTransactionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
	rw.WriteHeader(200)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err)  
		}
	}
}
const CommitTransactionAcceptedCode int = 202
type CommitTransactionAccepted struct {
	ReloadID string `json:"Reload-ID"`
	Payload *models.Transaction `json:"body,omitempty"`
}
func NewCommitTransactionAccepted() *CommitTransactionAccepted {
	return &CommitTransactionAccepted{}
}
func (o *CommitTransactionAccepted) WithReloadID(reloadID string) *CommitTransactionAccepted {
	o.ReloadID = reloadID
	return o
}
func (o *CommitTransactionAccepted) SetReloadID(reloadID string) {
	o.ReloadID = reloadID
}
func (o *CommitTransactionAccepted) WithPayload(payload *models.Transaction) *CommitTransactionAccepted {
	o.Payload = payload
	return o
}