customer

package
v0.0.0-...-c407d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CreateCustomerWithOktaOptionBadRequestCode int = 400

CreateCustomerWithOktaOptionBadRequestCode is the HTTP code returned for type CreateCustomerWithOktaOptionBadRequest

View Source
const CreateCustomerWithOktaOptionForbiddenCode int = 403

CreateCustomerWithOktaOptionForbiddenCode is the HTTP code returned for type CreateCustomerWithOktaOptionForbidden

View Source
const CreateCustomerWithOktaOptionInternalServerErrorCode int = 500

CreateCustomerWithOktaOptionInternalServerErrorCode is the HTTP code returned for type CreateCustomerWithOktaOptionInternalServerError

View Source
const CreateCustomerWithOktaOptionNotFoundCode int = 404

CreateCustomerWithOktaOptionNotFoundCode is the HTTP code returned for type CreateCustomerWithOktaOptionNotFound

View Source
const CreateCustomerWithOktaOptionOKCode int = 200

CreateCustomerWithOktaOptionOKCode is the HTTP code returned for type CreateCustomerWithOktaOptionOK

View Source
const CreateCustomerWithOktaOptionPreconditionFailedCode int = 412

CreateCustomerWithOktaOptionPreconditionFailedCode is the HTTP code returned for type CreateCustomerWithOktaOptionPreconditionFailed

View Source
const CreateCustomerWithOktaOptionUnauthorizedCode int = 401

CreateCustomerWithOktaOptionUnauthorizedCode is the HTTP code returned for type CreateCustomerWithOktaOptionUnauthorized

View Source
const CreateCustomerWithOktaOptionUnprocessableEntityCode int = 422

CreateCustomerWithOktaOptionUnprocessableEntityCode is the HTTP code returned for type CreateCustomerWithOktaOptionUnprocessableEntity

View Source
const GetCustomerBadRequestCode int = 400

GetCustomerBadRequestCode is the HTTP code returned for type GetCustomerBadRequest

View Source
const GetCustomerForbiddenCode int = 403

GetCustomerForbiddenCode is the HTTP code returned for type GetCustomerForbidden

View Source
const GetCustomerInternalServerErrorCode int = 500

GetCustomerInternalServerErrorCode is the HTTP code returned for type GetCustomerInternalServerError

View Source
const GetCustomerNotFoundCode int = 404

GetCustomerNotFoundCode is the HTTP code returned for type GetCustomerNotFound

View Source
const GetCustomerOKCode int = 200

GetCustomerOKCode is the HTTP code returned for type GetCustomerOK

View Source
const GetCustomerUnauthorizedCode int = 401

GetCustomerUnauthorizedCode is the HTTP code returned for type GetCustomerUnauthorized

View Source
const UpdateCustomerBadRequestCode int = 400

UpdateCustomerBadRequestCode is the HTTP code returned for type UpdateCustomerBadRequest

View Source
const UpdateCustomerForbiddenCode int = 403

UpdateCustomerForbiddenCode is the HTTP code returned for type UpdateCustomerForbidden

View Source
const UpdateCustomerInternalServerErrorCode int = 500

UpdateCustomerInternalServerErrorCode is the HTTP code returned for type UpdateCustomerInternalServerError

View Source
const UpdateCustomerNotFoundCode int = 404

UpdateCustomerNotFoundCode is the HTTP code returned for type UpdateCustomerNotFound

View Source
const UpdateCustomerOKCode int = 200

UpdateCustomerOKCode is the HTTP code returned for type UpdateCustomerOK

View Source
const UpdateCustomerPreconditionFailedCode int = 412

UpdateCustomerPreconditionFailedCode is the HTTP code returned for type UpdateCustomerPreconditionFailed

View Source
const UpdateCustomerUnauthorizedCode int = 401

UpdateCustomerUnauthorizedCode is the HTTP code returned for type UpdateCustomerUnauthorized

View Source
const UpdateCustomerUnprocessableEntityCode int = 422

UpdateCustomerUnprocessableEntityCode is the HTTP code returned for type UpdateCustomerUnprocessableEntity

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCustomerWithOktaOption

type CreateCustomerWithOktaOption struct {
	Context *middleware.Context
	Handler CreateCustomerWithOktaOptionHandler
}
CreateCustomerWithOktaOption swagger:route POST /customer customer createCustomerWithOktaOption

Creates a customer with Okta option

Creates a customer with option to also create an Okta profile account based on the office user's input when completing the UI form and submitting.

func NewCreateCustomerWithOktaOption

func NewCreateCustomerWithOktaOption(ctx *middleware.Context, handler CreateCustomerWithOktaOptionHandler) *CreateCustomerWithOktaOption

NewCreateCustomerWithOktaOption creates a new http.Handler for the create customer with okta option operation

func (*CreateCustomerWithOktaOption) ServeHTTP

type CreateCustomerWithOktaOptionBadRequest

type CreateCustomerWithOktaOptionBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionBadRequest The request payload is invalid

swagger:response createCustomerWithOktaOptionBadRequest

func NewCreateCustomerWithOktaOptionBadRequest

func NewCreateCustomerWithOktaOptionBadRequest() *CreateCustomerWithOktaOptionBadRequest

NewCreateCustomerWithOktaOptionBadRequest creates CreateCustomerWithOktaOptionBadRequest with default headers values

func (*CreateCustomerWithOktaOptionBadRequest) SetPayload

SetPayload sets the payload to the create customer with okta option bad request response

func (*CreateCustomerWithOktaOptionBadRequest) WithPayload

WithPayload adds the payload to the create customer with okta option bad request response

func (*CreateCustomerWithOktaOptionBadRequest) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionForbidden

type CreateCustomerWithOktaOptionForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionForbidden The request was denied

swagger:response createCustomerWithOktaOptionForbidden

func NewCreateCustomerWithOktaOptionForbidden

func NewCreateCustomerWithOktaOptionForbidden() *CreateCustomerWithOktaOptionForbidden

NewCreateCustomerWithOktaOptionForbidden creates CreateCustomerWithOktaOptionForbidden with default headers values

func (*CreateCustomerWithOktaOptionForbidden) SetPayload

SetPayload sets the payload to the create customer with okta option forbidden response

func (*CreateCustomerWithOktaOptionForbidden) WithPayload

WithPayload adds the payload to the create customer with okta option forbidden response

func (*CreateCustomerWithOktaOptionForbidden) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionHandler

type CreateCustomerWithOktaOptionHandler interface {
	Handle(CreateCustomerWithOktaOptionParams) middleware.Responder
}

CreateCustomerWithOktaOptionHandler interface for that can handle valid create customer with okta option params

type CreateCustomerWithOktaOptionHandlerFunc

type CreateCustomerWithOktaOptionHandlerFunc func(CreateCustomerWithOktaOptionParams) middleware.Responder

CreateCustomerWithOktaOptionHandlerFunc turns a function with the right signature into a create customer with okta option handler

func (CreateCustomerWithOktaOptionHandlerFunc) Handle

Handle executing the request and returning a response

type CreateCustomerWithOktaOptionInternalServerError

type CreateCustomerWithOktaOptionInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionInternalServerError A server error occurred

swagger:response createCustomerWithOktaOptionInternalServerError

func NewCreateCustomerWithOktaOptionInternalServerError

func NewCreateCustomerWithOktaOptionInternalServerError() *CreateCustomerWithOktaOptionInternalServerError

NewCreateCustomerWithOktaOptionInternalServerError creates CreateCustomerWithOktaOptionInternalServerError with default headers values

func (*CreateCustomerWithOktaOptionInternalServerError) SetPayload

SetPayload sets the payload to the create customer with okta option internal server error response

func (*CreateCustomerWithOktaOptionInternalServerError) WithPayload

WithPayload adds the payload to the create customer with okta option internal server error response

func (*CreateCustomerWithOktaOptionInternalServerError) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionNotFound

type CreateCustomerWithOktaOptionNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionNotFound The requested resource wasn't found

swagger:response createCustomerWithOktaOptionNotFound

func NewCreateCustomerWithOktaOptionNotFound

func NewCreateCustomerWithOktaOptionNotFound() *CreateCustomerWithOktaOptionNotFound

NewCreateCustomerWithOktaOptionNotFound creates CreateCustomerWithOktaOptionNotFound with default headers values

func (*CreateCustomerWithOktaOptionNotFound) SetPayload

func (o *CreateCustomerWithOktaOptionNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the create customer with okta option not found response

func (*CreateCustomerWithOktaOptionNotFound) WithPayload

WithPayload adds the payload to the create customer with okta option not found response

func (*CreateCustomerWithOktaOptionNotFound) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionOK

type CreateCustomerWithOktaOptionOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.CreatedCustomer `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionOK successfully created the customer

swagger:response createCustomerWithOktaOptionOK

func NewCreateCustomerWithOktaOptionOK

func NewCreateCustomerWithOktaOptionOK() *CreateCustomerWithOktaOptionOK

NewCreateCustomerWithOktaOptionOK creates CreateCustomerWithOktaOptionOK with default headers values

func (*CreateCustomerWithOktaOptionOK) SetPayload

SetPayload sets the payload to the create customer with okta option o k response

func (*CreateCustomerWithOktaOptionOK) WithPayload

WithPayload adds the payload to the create customer with okta option o k response

func (*CreateCustomerWithOktaOptionOK) WriteResponse

func (o *CreateCustomerWithOktaOptionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateCustomerWithOktaOptionParams

type CreateCustomerWithOktaOptionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Body *ghcmessages.CreateCustomerPayload
}

CreateCustomerWithOktaOptionParams contains all the bound params for the create customer with okta option operation typically these are obtained from a http.Request

swagger:parameters createCustomerWithOktaOption

func NewCreateCustomerWithOktaOptionParams

func NewCreateCustomerWithOktaOptionParams() CreateCustomerWithOktaOptionParams

NewCreateCustomerWithOktaOptionParams creates a new CreateCustomerWithOktaOptionParams object

There are no default values defined in the spec.

func (*CreateCustomerWithOktaOptionParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateCustomerWithOktaOptionParams() beforehand.

type CreateCustomerWithOktaOptionPreconditionFailed

type CreateCustomerWithOktaOptionPreconditionFailed struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionPreconditionFailed Precondition failed

swagger:response createCustomerWithOktaOptionPreconditionFailed

func NewCreateCustomerWithOktaOptionPreconditionFailed

func NewCreateCustomerWithOktaOptionPreconditionFailed() *CreateCustomerWithOktaOptionPreconditionFailed

NewCreateCustomerWithOktaOptionPreconditionFailed creates CreateCustomerWithOktaOptionPreconditionFailed with default headers values

func (*CreateCustomerWithOktaOptionPreconditionFailed) SetPayload

SetPayload sets the payload to the create customer with okta option precondition failed response

func (*CreateCustomerWithOktaOptionPreconditionFailed) WithPayload

WithPayload adds the payload to the create customer with okta option precondition failed response

func (*CreateCustomerWithOktaOptionPreconditionFailed) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionURL

type CreateCustomerWithOktaOptionURL struct {
	// contains filtered or unexported fields
}

CreateCustomerWithOktaOptionURL generates an URL for the create customer with okta option operation

func (*CreateCustomerWithOktaOptionURL) Build

Build a url path and query string

func (*CreateCustomerWithOktaOptionURL) BuildFull

func (o *CreateCustomerWithOktaOptionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateCustomerWithOktaOptionURL) Must

func (o *CreateCustomerWithOktaOptionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateCustomerWithOktaOptionURL) SetBasePath

func (o *CreateCustomerWithOktaOptionURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateCustomerWithOktaOptionURL) String

String returns the string representation of the path with query string

func (*CreateCustomerWithOktaOptionURL) StringFull

func (o *CreateCustomerWithOktaOptionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateCustomerWithOktaOptionURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateCustomerWithOktaOptionUnauthorized

type CreateCustomerWithOktaOptionUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionUnauthorized The request was denied

swagger:response createCustomerWithOktaOptionUnauthorized

func NewCreateCustomerWithOktaOptionUnauthorized

func NewCreateCustomerWithOktaOptionUnauthorized() *CreateCustomerWithOktaOptionUnauthorized

NewCreateCustomerWithOktaOptionUnauthorized creates CreateCustomerWithOktaOptionUnauthorized with default headers values

func (*CreateCustomerWithOktaOptionUnauthorized) SetPayload

SetPayload sets the payload to the create customer with okta option unauthorized response

func (*CreateCustomerWithOktaOptionUnauthorized) WithPayload

WithPayload adds the payload to the create customer with okta option unauthorized response

func (*CreateCustomerWithOktaOptionUnauthorized) WriteResponse

WriteResponse to the client

type CreateCustomerWithOktaOptionUnprocessableEntity

type CreateCustomerWithOktaOptionUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

CreateCustomerWithOktaOptionUnprocessableEntity The payload was unprocessable.

swagger:response createCustomerWithOktaOptionUnprocessableEntity

func NewCreateCustomerWithOktaOptionUnprocessableEntity

func NewCreateCustomerWithOktaOptionUnprocessableEntity() *CreateCustomerWithOktaOptionUnprocessableEntity

NewCreateCustomerWithOktaOptionUnprocessableEntity creates CreateCustomerWithOktaOptionUnprocessableEntity with default headers values

func (*CreateCustomerWithOktaOptionUnprocessableEntity) SetPayload

SetPayload sets the payload to the create customer with okta option unprocessable entity response

func (*CreateCustomerWithOktaOptionUnprocessableEntity) WithPayload

WithPayload adds the payload to the create customer with okta option unprocessable entity response

func (*CreateCustomerWithOktaOptionUnprocessableEntity) WriteResponse

WriteResponse to the client

type GetCustomer

type GetCustomer struct {
	Context *middleware.Context
	Handler GetCustomerHandler
}
GetCustomer swagger:route GET /customer/{customerID} customer getCustomer

Returns a given customer

Returns a given customer

func NewGetCustomer

func NewGetCustomer(ctx *middleware.Context, handler GetCustomerHandler) *GetCustomer

NewGetCustomer creates a new http.Handler for the get customer operation

func (*GetCustomer) ServeHTTP

func (o *GetCustomer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetCustomerBadRequest

type GetCustomerBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetCustomerBadRequest The request payload is invalid

swagger:response getCustomerBadRequest

func NewGetCustomerBadRequest

func NewGetCustomerBadRequest() *GetCustomerBadRequest

NewGetCustomerBadRequest creates GetCustomerBadRequest with default headers values

func (*GetCustomerBadRequest) SetPayload

func (o *GetCustomerBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get customer bad request response

func (*GetCustomerBadRequest) WithPayload

WithPayload adds the payload to the get customer bad request response

func (*GetCustomerBadRequest) WriteResponse

func (o *GetCustomerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCustomerForbidden

type GetCustomerForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetCustomerForbidden The request was denied

swagger:response getCustomerForbidden

func NewGetCustomerForbidden

func NewGetCustomerForbidden() *GetCustomerForbidden

NewGetCustomerForbidden creates GetCustomerForbidden with default headers values

func (*GetCustomerForbidden) SetPayload

func (o *GetCustomerForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get customer forbidden response

func (*GetCustomerForbidden) WithPayload

func (o *GetCustomerForbidden) WithPayload(payload *ghcmessages.Error) *GetCustomerForbidden

WithPayload adds the payload to the get customer forbidden response

func (*GetCustomerForbidden) WriteResponse

func (o *GetCustomerForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCustomerHandler

type GetCustomerHandler interface {
	Handle(GetCustomerParams) middleware.Responder
}

GetCustomerHandler interface for that can handle valid get customer params

type GetCustomerHandlerFunc

type GetCustomerHandlerFunc func(GetCustomerParams) middleware.Responder

GetCustomerHandlerFunc turns a function with the right signature into a get customer handler

func (GetCustomerHandlerFunc) Handle

Handle executing the request and returning a response

type GetCustomerInternalServerError

type GetCustomerInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetCustomerInternalServerError A server error occurred

swagger:response getCustomerInternalServerError

func NewGetCustomerInternalServerError

func NewGetCustomerInternalServerError() *GetCustomerInternalServerError

NewGetCustomerInternalServerError creates GetCustomerInternalServerError with default headers values

func (*GetCustomerInternalServerError) SetPayload

func (o *GetCustomerInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get customer internal server error response

func (*GetCustomerInternalServerError) WithPayload

WithPayload adds the payload to the get customer internal server error response

func (*GetCustomerInternalServerError) WriteResponse

func (o *GetCustomerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCustomerNotFound

type GetCustomerNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetCustomerNotFound The requested resource wasn't found

swagger:response getCustomerNotFound

func NewGetCustomerNotFound

func NewGetCustomerNotFound() *GetCustomerNotFound

NewGetCustomerNotFound creates GetCustomerNotFound with default headers values

func (*GetCustomerNotFound) SetPayload

func (o *GetCustomerNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get customer not found response

func (*GetCustomerNotFound) WithPayload

func (o *GetCustomerNotFound) WithPayload(payload *ghcmessages.Error) *GetCustomerNotFound

WithPayload adds the payload to the get customer not found response

func (*GetCustomerNotFound) WriteResponse

func (o *GetCustomerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCustomerOK

type GetCustomerOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Customer `json:"body,omitempty"`
}

GetCustomerOK Successfully retrieved information on an individual customer

swagger:response getCustomerOK

func NewGetCustomerOK

func NewGetCustomerOK() *GetCustomerOK

NewGetCustomerOK creates GetCustomerOK with default headers values

func (*GetCustomerOK) SetPayload

func (o *GetCustomerOK) SetPayload(payload *ghcmessages.Customer)

SetPayload sets the payload to the get customer o k response

func (*GetCustomerOK) WithPayload

func (o *GetCustomerOK) WithPayload(payload *ghcmessages.Customer) *GetCustomerOK

WithPayload adds the payload to the get customer o k response

func (*GetCustomerOK) WriteResponse

func (o *GetCustomerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetCustomerParams

type GetCustomerParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*ID of customer to use
	  Required: true
	  In: path
	*/
	CustomerID strfmt.UUID
}

GetCustomerParams contains all the bound params for the get customer operation typically these are obtained from a http.Request

swagger:parameters getCustomer

func NewGetCustomerParams

func NewGetCustomerParams() GetCustomerParams

NewGetCustomerParams creates a new GetCustomerParams object

There are no default values defined in the spec.

func (*GetCustomerParams) BindRequest

func (o *GetCustomerParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetCustomerParams() beforehand.

type GetCustomerURL

type GetCustomerURL struct {
	CustomerID strfmt.UUID
	// contains filtered or unexported fields
}

GetCustomerURL generates an URL for the get customer operation

func (*GetCustomerURL) Build

func (o *GetCustomerURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetCustomerURL) BuildFull

func (o *GetCustomerURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetCustomerURL) Must

func (o *GetCustomerURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetCustomerURL) SetBasePath

func (o *GetCustomerURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetCustomerURL) String

func (o *GetCustomerURL) String() string

String returns the string representation of the path with query string

func (*GetCustomerURL) StringFull

func (o *GetCustomerURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetCustomerURL) WithBasePath

func (o *GetCustomerURL) WithBasePath(bp string) *GetCustomerURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetCustomerUnauthorized

type GetCustomerUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

GetCustomerUnauthorized The request was denied

swagger:response getCustomerUnauthorized

func NewGetCustomerUnauthorized

func NewGetCustomerUnauthorized() *GetCustomerUnauthorized

NewGetCustomerUnauthorized creates GetCustomerUnauthorized with default headers values

func (*GetCustomerUnauthorized) SetPayload

func (o *GetCustomerUnauthorized) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the get customer unauthorized response

func (*GetCustomerUnauthorized) WithPayload

WithPayload adds the payload to the get customer unauthorized response

func (*GetCustomerUnauthorized) WriteResponse

func (o *GetCustomerUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomer

type UpdateCustomer struct {
	Context *middleware.Context
	Handler UpdateCustomerHandler
}
UpdateCustomer swagger:route PATCH /customer/{customerID} customer updateCustomer

Updates customer info

Updates customer info by ID

func NewUpdateCustomer

func NewUpdateCustomer(ctx *middleware.Context, handler UpdateCustomerHandler) *UpdateCustomer

NewUpdateCustomer creates a new http.Handler for the update customer operation

func (*UpdateCustomer) ServeHTTP

func (o *UpdateCustomer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateCustomerBadRequest

type UpdateCustomerBadRequest struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerBadRequest The request payload is invalid

swagger:response updateCustomerBadRequest

func NewUpdateCustomerBadRequest

func NewUpdateCustomerBadRequest() *UpdateCustomerBadRequest

NewUpdateCustomerBadRequest creates UpdateCustomerBadRequest with default headers values

func (*UpdateCustomerBadRequest) SetPayload

func (o *UpdateCustomerBadRequest) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer bad request response

func (*UpdateCustomerBadRequest) WithPayload

WithPayload adds the payload to the update customer bad request response

func (*UpdateCustomerBadRequest) WriteResponse

func (o *UpdateCustomerBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerForbidden

type UpdateCustomerForbidden struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerForbidden The request was denied

swagger:response updateCustomerForbidden

func NewUpdateCustomerForbidden

func NewUpdateCustomerForbidden() *UpdateCustomerForbidden

NewUpdateCustomerForbidden creates UpdateCustomerForbidden with default headers values

func (*UpdateCustomerForbidden) SetPayload

func (o *UpdateCustomerForbidden) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer forbidden response

func (*UpdateCustomerForbidden) WithPayload

WithPayload adds the payload to the update customer forbidden response

func (*UpdateCustomerForbidden) WriteResponse

func (o *UpdateCustomerForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerHandler

type UpdateCustomerHandler interface {
	Handle(UpdateCustomerParams) middleware.Responder
}

UpdateCustomerHandler interface for that can handle valid update customer params

type UpdateCustomerHandlerFunc

type UpdateCustomerHandlerFunc func(UpdateCustomerParams) middleware.Responder

UpdateCustomerHandlerFunc turns a function with the right signature into a update customer handler

func (UpdateCustomerHandlerFunc) Handle

Handle executing the request and returning a response

type UpdateCustomerInternalServerError

type UpdateCustomerInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerInternalServerError A server error occurred

swagger:response updateCustomerInternalServerError

func NewUpdateCustomerInternalServerError

func NewUpdateCustomerInternalServerError() *UpdateCustomerInternalServerError

NewUpdateCustomerInternalServerError creates UpdateCustomerInternalServerError with default headers values

func (*UpdateCustomerInternalServerError) SetPayload

func (o *UpdateCustomerInternalServerError) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer internal server error response

func (*UpdateCustomerInternalServerError) WithPayload

WithPayload adds the payload to the update customer internal server error response

func (*UpdateCustomerInternalServerError) WriteResponse

func (o *UpdateCustomerInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerNotFound

type UpdateCustomerNotFound struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerNotFound The requested resource wasn't found

swagger:response updateCustomerNotFound

func NewUpdateCustomerNotFound

func NewUpdateCustomerNotFound() *UpdateCustomerNotFound

NewUpdateCustomerNotFound creates UpdateCustomerNotFound with default headers values

func (*UpdateCustomerNotFound) SetPayload

func (o *UpdateCustomerNotFound) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer not found response

func (*UpdateCustomerNotFound) WithPayload

WithPayload adds the payload to the update customer not found response

func (*UpdateCustomerNotFound) WriteResponse

func (o *UpdateCustomerNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerOK

type UpdateCustomerOK struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Customer `json:"body,omitempty"`
}

UpdateCustomerOK updated instance of orders

swagger:response updateCustomerOK

func NewUpdateCustomerOK

func NewUpdateCustomerOK() *UpdateCustomerOK

NewUpdateCustomerOK creates UpdateCustomerOK with default headers values

func (*UpdateCustomerOK) SetPayload

func (o *UpdateCustomerOK) SetPayload(payload *ghcmessages.Customer)

SetPayload sets the payload to the update customer o k response

func (*UpdateCustomerOK) WithPayload

func (o *UpdateCustomerOK) WithPayload(payload *ghcmessages.Customer) *UpdateCustomerOK

WithPayload adds the payload to the update customer o k response

func (*UpdateCustomerOK) WriteResponse

func (o *UpdateCustomerOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerParams

type UpdateCustomerParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: header
	*/
	IfMatch string
	/*
	  Required: true
	  In: body
	*/
	Body *ghcmessages.UpdateCustomerPayload
	/*ID of customer to use
	  Required: true
	  In: path
	*/
	CustomerID strfmt.UUID
}

UpdateCustomerParams contains all the bound params for the update customer operation typically these are obtained from a http.Request

swagger:parameters updateCustomer

func NewUpdateCustomerParams

func NewUpdateCustomerParams() UpdateCustomerParams

NewUpdateCustomerParams creates a new UpdateCustomerParams object

There are no default values defined in the spec.

func (*UpdateCustomerParams) BindRequest

func (o *UpdateCustomerParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateCustomerParams() beforehand.

type UpdateCustomerPreconditionFailed

type UpdateCustomerPreconditionFailed struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerPreconditionFailed Precondition failed

swagger:response updateCustomerPreconditionFailed

func NewUpdateCustomerPreconditionFailed

func NewUpdateCustomerPreconditionFailed() *UpdateCustomerPreconditionFailed

NewUpdateCustomerPreconditionFailed creates UpdateCustomerPreconditionFailed with default headers values

func (*UpdateCustomerPreconditionFailed) SetPayload

func (o *UpdateCustomerPreconditionFailed) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer precondition failed response

func (*UpdateCustomerPreconditionFailed) WithPayload

WithPayload adds the payload to the update customer precondition failed response

func (*UpdateCustomerPreconditionFailed) WriteResponse

func (o *UpdateCustomerPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerURL

type UpdateCustomerURL struct {
	CustomerID strfmt.UUID
	// contains filtered or unexported fields
}

UpdateCustomerURL generates an URL for the update customer operation

func (*UpdateCustomerURL) Build

func (o *UpdateCustomerURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateCustomerURL) BuildFull

func (o *UpdateCustomerURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateCustomerURL) Must

func (o *UpdateCustomerURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateCustomerURL) SetBasePath

func (o *UpdateCustomerURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateCustomerURL) String

func (o *UpdateCustomerURL) String() string

String returns the string representation of the path with query string

func (*UpdateCustomerURL) StringFull

func (o *UpdateCustomerURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateCustomerURL) WithBasePath

func (o *UpdateCustomerURL) WithBasePath(bp string) *UpdateCustomerURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateCustomerUnauthorized

type UpdateCustomerUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.Error `json:"body,omitempty"`
}

UpdateCustomerUnauthorized The request was denied

swagger:response updateCustomerUnauthorized

func NewUpdateCustomerUnauthorized

func NewUpdateCustomerUnauthorized() *UpdateCustomerUnauthorized

NewUpdateCustomerUnauthorized creates UpdateCustomerUnauthorized with default headers values

func (*UpdateCustomerUnauthorized) SetPayload

func (o *UpdateCustomerUnauthorized) SetPayload(payload *ghcmessages.Error)

SetPayload sets the payload to the update customer unauthorized response

func (*UpdateCustomerUnauthorized) WithPayload

WithPayload adds the payload to the update customer unauthorized response

func (*UpdateCustomerUnauthorized) WriteResponse

func (o *UpdateCustomerUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateCustomerUnprocessableEntity

type UpdateCustomerUnprocessableEntity struct {

	/*
	  In: Body
	*/
	Payload *ghcmessages.ValidationError `json:"body,omitempty"`
}

UpdateCustomerUnprocessableEntity The payload was unprocessable.

swagger:response updateCustomerUnprocessableEntity

func NewUpdateCustomerUnprocessableEntity

func NewUpdateCustomerUnprocessableEntity() *UpdateCustomerUnprocessableEntity

NewUpdateCustomerUnprocessableEntity creates UpdateCustomerUnprocessableEntity with default headers values

func (*UpdateCustomerUnprocessableEntity) SetPayload

SetPayload sets the payload to the update customer unprocessable entity response

func (*UpdateCustomerUnprocessableEntity) WithPayload

WithPayload adds the payload to the update customer unprocessable entity response

func (*UpdateCustomerUnprocessableEntity) WriteResponse

func (o *UpdateCustomerUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL