// Code generated by go-swagger; DO NOT EDIT.

package bulk_management

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"net/http"

	"github.com/go-openapi/runtime"

	"github.com/Cyclops-Labs/cyclops-4-hpc.git/services/billing/models"
)

// GetBillRunOKCode is the HTTP code returned for type GetBillRunOK
const GetBillRunOKCode int = 200

/*GetBillRunOK Description of a successfully operation

swagger:response getBillRunOK
*/
type GetBillRunOK struct {

	/*
	  In: Body
	*/
	Payload *models.BillRunReport `json:"body,omitempty"`
}

// NewGetBillRunOK creates GetBillRunOK with default headers values
func NewGetBillRunOK() *GetBillRunOK {

	return &GetBillRunOK{}
}

// WithPayload adds the payload to the get bill run o k response
func (o *GetBillRunOK) WithPayload(payload *models.BillRunReport) *GetBillRunOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get bill run o k response
func (o *GetBillRunOK) SetPayload(payload *models.BillRunReport) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetBillRunOK) 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) // let the recovery middleware deal with this
		}
	}
}

// GetBillRunNotFoundCode is the HTTP code returned for type GetBillRunNotFound
const GetBillRunNotFoundCode int = 404

/*GetBillRunNotFound The invoice id provided doesn't exist

swagger:response getBillRunNotFound
*/
type GetBillRunNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

// NewGetBillRunNotFound creates GetBillRunNotFound with default headers values
func NewGetBillRunNotFound() *GetBillRunNotFound {

	return &GetBillRunNotFound{}
}

// WithPayload adds the payload to the get bill run not found response
func (o *GetBillRunNotFound) WithPayload(payload *models.ErrorResponse) *GetBillRunNotFound {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get bill run not found response
func (o *GetBillRunNotFound) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetBillRunNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(404)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}

// GetBillRunInternalServerErrorCode is the HTTP code returned for type GetBillRunInternalServerError
const GetBillRunInternalServerErrorCode int = 500

/*GetBillRunInternalServerError Something unexpected happend, error raised

swagger:response getBillRunInternalServerError
*/
type GetBillRunInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ErrorResponse `json:"body,omitempty"`
}

// NewGetBillRunInternalServerError creates GetBillRunInternalServerError with default headers values
func NewGetBillRunInternalServerError() *GetBillRunInternalServerError {

	return &GetBillRunInternalServerError{}
}

// WithPayload adds the payload to the get bill run internal server error response
func (o *GetBillRunInternalServerError) WithPayload(payload *models.ErrorResponse) *GetBillRunInternalServerError {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the get bill run internal server error response
func (o *GetBillRunInternalServerError) SetPayload(payload *models.ErrorResponse) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *GetBillRunInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(500)
	if o.Payload != nil {
		payload := o.Payload
		if err := producer.Produce(rw, payload); err != nil {
			panic(err) // let the recovery middleware deal with this
		}
	}
}
