ordersoperations

package
v0.0.0-...-34c5031 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const GetOrdersBadRequestCode int = 400

GetOrdersBadRequestCode is the HTTP code returned for type GetOrdersBadRequest

View Source
const GetOrdersByIssuerAndOrdersNumBadRequestCode int = 400

GetOrdersByIssuerAndOrdersNumBadRequestCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumBadRequest

View Source
const GetOrdersByIssuerAndOrdersNumForbiddenCode int = 403

GetOrdersByIssuerAndOrdersNumForbiddenCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumForbidden

View Source
const GetOrdersByIssuerAndOrdersNumInternalServerErrorCode int = 500

GetOrdersByIssuerAndOrdersNumInternalServerErrorCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumInternalServerError

View Source
const GetOrdersByIssuerAndOrdersNumNotFoundCode int = 404

GetOrdersByIssuerAndOrdersNumNotFoundCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumNotFound

View Source
const GetOrdersByIssuerAndOrdersNumOKCode int = 200

GetOrdersByIssuerAndOrdersNumOKCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumOK

View Source
const GetOrdersByIssuerAndOrdersNumUnauthorizedCode int = 401

GetOrdersByIssuerAndOrdersNumUnauthorizedCode is the HTTP code returned for type GetOrdersByIssuerAndOrdersNumUnauthorized

View Source
const GetOrdersCountByIssuerBadRequestCode int = 400

GetOrdersCountByIssuerBadRequestCode is the HTTP code returned for type GetOrdersCountByIssuerBadRequest

View Source
const GetOrdersCountByIssuerForbiddenCode int = 403

GetOrdersCountByIssuerForbiddenCode is the HTTP code returned for type GetOrdersCountByIssuerForbidden

View Source
const GetOrdersCountByIssuerInternalServerErrorCode int = 500

GetOrdersCountByIssuerInternalServerErrorCode is the HTTP code returned for type GetOrdersCountByIssuerInternalServerError

View Source
const GetOrdersCountByIssuerOKCode int = 200

GetOrdersCountByIssuerOKCode is the HTTP code returned for type GetOrdersCountByIssuerOK

View Source
const GetOrdersCountByIssuerUnauthorizedCode int = 401

GetOrdersCountByIssuerUnauthorizedCode is the HTTP code returned for type GetOrdersCountByIssuerUnauthorized

View Source
const GetOrdersForbiddenCode int = 403

GetOrdersForbiddenCode is the HTTP code returned for type GetOrdersForbidden

View Source
const GetOrdersInternalServerErrorCode int = 500

GetOrdersInternalServerErrorCode is the HTTP code returned for type GetOrdersInternalServerError

View Source
const GetOrdersNotFoundCode int = 404

GetOrdersNotFoundCode is the HTTP code returned for type GetOrdersNotFound

View Source
const GetOrdersOKCode int = 200

GetOrdersOKCode is the HTTP code returned for type GetOrdersOK

View Source
const GetOrdersUnauthorizedCode int = 401

GetOrdersUnauthorizedCode is the HTTP code returned for type GetOrdersUnauthorized

View Source
const IndexOrdersForMemberBadRequestCode int = 400

IndexOrdersForMemberBadRequestCode is the HTTP code returned for type IndexOrdersForMemberBadRequest

View Source
const IndexOrdersForMemberForbiddenCode int = 403

IndexOrdersForMemberForbiddenCode is the HTTP code returned for type IndexOrdersForMemberForbidden

View Source
const IndexOrdersForMemberInternalServerErrorCode int = 500

IndexOrdersForMemberInternalServerErrorCode is the HTTP code returned for type IndexOrdersForMemberInternalServerError

View Source
const IndexOrdersForMemberNotFoundCode int = 404

IndexOrdersForMemberNotFoundCode is the HTTP code returned for type IndexOrdersForMemberNotFound

View Source
const IndexOrdersForMemberOKCode int = 200

IndexOrdersForMemberOKCode is the HTTP code returned for type IndexOrdersForMemberOK

View Source
const IndexOrdersForMemberUnauthorizedCode int = 401

IndexOrdersForMemberUnauthorizedCode is the HTTP code returned for type IndexOrdersForMemberUnauthorized

View Source
const PostRevisionBadRequestCode int = 400

PostRevisionBadRequestCode is the HTTP code returned for type PostRevisionBadRequest

View Source
const PostRevisionConflictCode int = 409

PostRevisionConflictCode is the HTTP code returned for type PostRevisionConflict

View Source
const PostRevisionCreatedCode int = 201

PostRevisionCreatedCode is the HTTP code returned for type PostRevisionCreated

View Source
const PostRevisionForbiddenCode int = 403

PostRevisionForbiddenCode is the HTTP code returned for type PostRevisionForbidden

View Source
const PostRevisionInternalServerErrorCode int = 500

PostRevisionInternalServerErrorCode is the HTTP code returned for type PostRevisionInternalServerError

View Source
const PostRevisionNotFoundCode int = 404

PostRevisionNotFoundCode is the HTTP code returned for type PostRevisionNotFound

View Source
const PostRevisionToOrdersBadRequestCode int = 400

PostRevisionToOrdersBadRequestCode is the HTTP code returned for type PostRevisionToOrdersBadRequest

View Source
const PostRevisionToOrdersConflictCode int = 409

PostRevisionToOrdersConflictCode is the HTTP code returned for type PostRevisionToOrdersConflict

View Source
const PostRevisionToOrdersCreatedCode int = 201

PostRevisionToOrdersCreatedCode is the HTTP code returned for type PostRevisionToOrdersCreated

View Source
const PostRevisionToOrdersForbiddenCode int = 403

PostRevisionToOrdersForbiddenCode is the HTTP code returned for type PostRevisionToOrdersForbidden

View Source
const PostRevisionToOrdersInternalServerErrorCode int = 500

PostRevisionToOrdersInternalServerErrorCode is the HTTP code returned for type PostRevisionToOrdersInternalServerError

View Source
const PostRevisionToOrdersNotFoundCode int = 404

PostRevisionToOrdersNotFoundCode is the HTTP code returned for type PostRevisionToOrdersNotFound

View Source
const PostRevisionToOrdersUnauthorizedCode int = 401

PostRevisionToOrdersUnauthorizedCode is the HTTP code returned for type PostRevisionToOrdersUnauthorized

View Source
const PostRevisionUnauthorizedCode int = 401

PostRevisionUnauthorizedCode is the HTTP code returned for type PostRevisionUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetOrders

type GetOrders struct {
	Context *middleware.Context
	Handler GetOrdersHandler
}

GetOrders swagger:route GET /orders/{uuid} getOrders

Retrieve a set of Orders and all of its Revisions by UUID

Gets Orders with the supplied UUID. ## Errors Users of this endpoint must have permission to read Orders for the `issuer` associated with the Orders. If not, this endpoint will return `403 Forbidden`. The UUID must match an existing set of Orders. Otherwise, this endpoint will return `404 Not Found`.

func NewGetOrders

func NewGetOrders(ctx *middleware.Context, handler GetOrdersHandler) *GetOrders

NewGetOrders creates a new http.Handler for the get orders operation

func (*GetOrders) ServeHTTP

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

type GetOrdersBadRequest

type GetOrdersBadRequest struct {
}

GetOrdersBadRequest Invalid

swagger:response getOrdersBadRequest

func NewGetOrdersBadRequest

func NewGetOrdersBadRequest() *GetOrdersBadRequest

NewGetOrdersBadRequest creates GetOrdersBadRequest with default headers values

func (*GetOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNum

type GetOrdersByIssuerAndOrdersNum struct {
	Context *middleware.Context
	Handler GetOrdersByIssuerAndOrdersNumHandler
}

GetOrdersByIssuerAndOrdersNum swagger:route GET /issuers/{issuer}/orders/{ordersNum} getOrdersByIssuerAndOrdersNum

Retrieve orders by issuer and orders number

Return Orders with the provided issuer and orders number. # Errors Users of this endpoint must have permission to read Orders for the specified issuer. Otherwise, this endpoint will return `403 Forbidden`. If there are no Orders with the specified orders number from the specified issuer, then this endpoint will return `404 Not Found`.

func NewGetOrdersByIssuerAndOrdersNum

func NewGetOrdersByIssuerAndOrdersNum(ctx *middleware.Context, handler GetOrdersByIssuerAndOrdersNumHandler) *GetOrdersByIssuerAndOrdersNum

NewGetOrdersByIssuerAndOrdersNum creates a new http.Handler for the get orders by issuer and orders num operation

func (*GetOrdersByIssuerAndOrdersNum) ServeHTTP

type GetOrdersByIssuerAndOrdersNumBadRequest

type GetOrdersByIssuerAndOrdersNumBadRequest struct {
}

GetOrdersByIssuerAndOrdersNumBadRequest Invalid

swagger:response getOrdersByIssuerAndOrdersNumBadRequest

func NewGetOrdersByIssuerAndOrdersNumBadRequest

func NewGetOrdersByIssuerAndOrdersNumBadRequest() *GetOrdersByIssuerAndOrdersNumBadRequest

NewGetOrdersByIssuerAndOrdersNumBadRequest creates GetOrdersByIssuerAndOrdersNumBadRequest with default headers values

func (*GetOrdersByIssuerAndOrdersNumBadRequest) WriteResponse

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNumForbidden

type GetOrdersByIssuerAndOrdersNumForbidden struct {
}

GetOrdersByIssuerAndOrdersNumForbidden Forbidden

swagger:response getOrdersByIssuerAndOrdersNumForbidden

func NewGetOrdersByIssuerAndOrdersNumForbidden

func NewGetOrdersByIssuerAndOrdersNumForbidden() *GetOrdersByIssuerAndOrdersNumForbidden

NewGetOrdersByIssuerAndOrdersNumForbidden creates GetOrdersByIssuerAndOrdersNumForbidden with default headers values

func (*GetOrdersByIssuerAndOrdersNumForbidden) WriteResponse

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNumHandler

type GetOrdersByIssuerAndOrdersNumHandler interface {
	Handle(GetOrdersByIssuerAndOrdersNumParams) middleware.Responder
}

GetOrdersByIssuerAndOrdersNumHandler interface for that can handle valid get orders by issuer and orders num params

type GetOrdersByIssuerAndOrdersNumHandlerFunc

type GetOrdersByIssuerAndOrdersNumHandlerFunc func(GetOrdersByIssuerAndOrdersNumParams) middleware.Responder

GetOrdersByIssuerAndOrdersNumHandlerFunc turns a function with the right signature into a get orders by issuer and orders num handler

func (GetOrdersByIssuerAndOrdersNumHandlerFunc) Handle

Handle executing the request and returning a response

type GetOrdersByIssuerAndOrdersNumInternalServerError

type GetOrdersByIssuerAndOrdersNumInternalServerError struct {
}

GetOrdersByIssuerAndOrdersNumInternalServerError Server error

swagger:response getOrdersByIssuerAndOrdersNumInternalServerError

func NewGetOrdersByIssuerAndOrdersNumInternalServerError

func NewGetOrdersByIssuerAndOrdersNumInternalServerError() *GetOrdersByIssuerAndOrdersNumInternalServerError

NewGetOrdersByIssuerAndOrdersNumInternalServerError creates GetOrdersByIssuerAndOrdersNumInternalServerError with default headers values

func (*GetOrdersByIssuerAndOrdersNumInternalServerError) WriteResponse

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNumNotFound

type GetOrdersByIssuerAndOrdersNumNotFound struct {
}

GetOrdersByIssuerAndOrdersNumNotFound Orders not found

swagger:response getOrdersByIssuerAndOrdersNumNotFound

func NewGetOrdersByIssuerAndOrdersNumNotFound

func NewGetOrdersByIssuerAndOrdersNumNotFound() *GetOrdersByIssuerAndOrdersNumNotFound

NewGetOrdersByIssuerAndOrdersNumNotFound creates GetOrdersByIssuerAndOrdersNumNotFound with default headers values

func (*GetOrdersByIssuerAndOrdersNumNotFound) WriteResponse

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNumOK

type GetOrdersByIssuerAndOrdersNumOK struct {

	/*
	  In: Body
	*/
	Payload *ordersmessages.Orders `json:"body,omitempty"`
}

GetOrdersByIssuerAndOrdersNumOK Successful

swagger:response getOrdersByIssuerAndOrdersNumOK

func NewGetOrdersByIssuerAndOrdersNumOK

func NewGetOrdersByIssuerAndOrdersNumOK() *GetOrdersByIssuerAndOrdersNumOK

NewGetOrdersByIssuerAndOrdersNumOK creates GetOrdersByIssuerAndOrdersNumOK with default headers values

func (*GetOrdersByIssuerAndOrdersNumOK) SetPayload

func (o *GetOrdersByIssuerAndOrdersNumOK) SetPayload(payload *ordersmessages.Orders)

SetPayload sets the payload to the get orders by issuer and orders num o k response

func (*GetOrdersByIssuerAndOrdersNumOK) WithPayload

WithPayload adds the payload to the get orders by issuer and orders num o k response

func (*GetOrdersByIssuerAndOrdersNumOK) WriteResponse

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

WriteResponse to the client

type GetOrdersByIssuerAndOrdersNumParams

type GetOrdersByIssuerAndOrdersNumParams struct {

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

	/*Organization that issued the Orders
	  Required: true
	  In: path
	*/
	Issuer string
	/*Orders number, corresponding to the ORDERS number (Army), the CT SDN (Navy, Marines), the SPECIAL ORDER NO (Air Force), the Travel Order No (Coast Guard), or the Travel Authorization Number (Civilian).
	  Required: true
	  In: path
	*/
	OrdersNum string
}

GetOrdersByIssuerAndOrdersNumParams contains all the bound params for the get orders by issuer and orders num operation typically these are obtained from a http.Request

swagger:parameters getOrdersByIssuerAndOrdersNum

func NewGetOrdersByIssuerAndOrdersNumParams

func NewGetOrdersByIssuerAndOrdersNumParams() GetOrdersByIssuerAndOrdersNumParams

NewGetOrdersByIssuerAndOrdersNumParams creates a new GetOrdersByIssuerAndOrdersNumParams object no default values defined in spec.

func (*GetOrdersByIssuerAndOrdersNumParams) 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 NewGetOrdersByIssuerAndOrdersNumParams() beforehand.

type GetOrdersByIssuerAndOrdersNumURL

type GetOrdersByIssuerAndOrdersNumURL struct {
	Issuer    string
	OrdersNum string
	// contains filtered or unexported fields
}

GetOrdersByIssuerAndOrdersNumURL generates an URL for the get orders by issuer and orders num operation

func (*GetOrdersByIssuerAndOrdersNumURL) Build

Build a url path and query string

func (*GetOrdersByIssuerAndOrdersNumURL) BuildFull

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

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

func (*GetOrdersByIssuerAndOrdersNumURL) Must

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

func (*GetOrdersByIssuerAndOrdersNumURL) SetBasePath

func (o *GetOrdersByIssuerAndOrdersNumURL) 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 (*GetOrdersByIssuerAndOrdersNumURL) String

String returns the string representation of the path with query string

func (*GetOrdersByIssuerAndOrdersNumURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetOrdersByIssuerAndOrdersNumURL) 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 GetOrdersByIssuerAndOrdersNumUnauthorized

type GetOrdersByIssuerAndOrdersNumUnauthorized struct {
}

GetOrdersByIssuerAndOrdersNumUnauthorized must be authenticated to use this endpoint

swagger:response getOrdersByIssuerAndOrdersNumUnauthorized

func NewGetOrdersByIssuerAndOrdersNumUnauthorized

func NewGetOrdersByIssuerAndOrdersNumUnauthorized() *GetOrdersByIssuerAndOrdersNumUnauthorized

NewGetOrdersByIssuerAndOrdersNumUnauthorized creates GetOrdersByIssuerAndOrdersNumUnauthorized with default headers values

func (*GetOrdersByIssuerAndOrdersNumUnauthorized) WriteResponse

WriteResponse to the client

type GetOrdersCountByIssuer

type GetOrdersCountByIssuer struct {
	Context *middleware.Context
	Handler GetOrdersCountByIssuerHandler
}

GetOrdersCountByIssuer swagger:route GET /issuers/{issuer}/count getOrdersCountByIssuer

Retrieve a count of Orders by issuer

Gets a Count of Orders by issuer. ## Errors Users of this endpoint must have permission to read Orders for the `issuer` associated with the Orders. If not, this endpoint will return `403 Forbidden`.

func NewGetOrdersCountByIssuer

func NewGetOrdersCountByIssuer(ctx *middleware.Context, handler GetOrdersCountByIssuerHandler) *GetOrdersCountByIssuer

NewGetOrdersCountByIssuer creates a new http.Handler for the get orders count by issuer operation

func (*GetOrdersCountByIssuer) ServeHTTP

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

type GetOrdersCountByIssuerBadRequest

type GetOrdersCountByIssuerBadRequest struct {
}

GetOrdersCountByIssuerBadRequest Invalid

swagger:response getOrdersCountByIssuerBadRequest

func NewGetOrdersCountByIssuerBadRequest

func NewGetOrdersCountByIssuerBadRequest() *GetOrdersCountByIssuerBadRequest

NewGetOrdersCountByIssuerBadRequest creates GetOrdersCountByIssuerBadRequest with default headers values

func (*GetOrdersCountByIssuerBadRequest) WriteResponse

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

WriteResponse to the client

type GetOrdersCountByIssuerForbidden

type GetOrdersCountByIssuerForbidden struct {
}

GetOrdersCountByIssuerForbidden Forbidden

swagger:response getOrdersCountByIssuerForbidden

func NewGetOrdersCountByIssuerForbidden

func NewGetOrdersCountByIssuerForbidden() *GetOrdersCountByIssuerForbidden

NewGetOrdersCountByIssuerForbidden creates GetOrdersCountByIssuerForbidden with default headers values

func (*GetOrdersCountByIssuerForbidden) WriteResponse

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

WriteResponse to the client

type GetOrdersCountByIssuerHandler

type GetOrdersCountByIssuerHandler interface {
	Handle(GetOrdersCountByIssuerParams) middleware.Responder
}

GetOrdersCountByIssuerHandler interface for that can handle valid get orders count by issuer params

type GetOrdersCountByIssuerHandlerFunc

type GetOrdersCountByIssuerHandlerFunc func(GetOrdersCountByIssuerParams) middleware.Responder

GetOrdersCountByIssuerHandlerFunc turns a function with the right signature into a get orders count by issuer handler

func (GetOrdersCountByIssuerHandlerFunc) Handle

Handle executing the request and returning a response

type GetOrdersCountByIssuerInternalServerError

type GetOrdersCountByIssuerInternalServerError struct {
}

GetOrdersCountByIssuerInternalServerError Server error

swagger:response getOrdersCountByIssuerInternalServerError

func NewGetOrdersCountByIssuerInternalServerError

func NewGetOrdersCountByIssuerInternalServerError() *GetOrdersCountByIssuerInternalServerError

NewGetOrdersCountByIssuerInternalServerError creates GetOrdersCountByIssuerInternalServerError with default headers values

func (*GetOrdersCountByIssuerInternalServerError) WriteResponse

WriteResponse to the client

type GetOrdersCountByIssuerOK

type GetOrdersCountByIssuerOK struct {

	/*
	  In: Body
	*/
	Payload *ordersmessages.OrdersCountByIssuer `json:"body,omitempty"`
}

GetOrdersCountByIssuerOK Successful

swagger:response getOrdersCountByIssuerOK

func NewGetOrdersCountByIssuerOK

func NewGetOrdersCountByIssuerOK() *GetOrdersCountByIssuerOK

NewGetOrdersCountByIssuerOK creates GetOrdersCountByIssuerOK with default headers values

func (*GetOrdersCountByIssuerOK) SetPayload

SetPayload sets the payload to the get orders count by issuer o k response

func (*GetOrdersCountByIssuerOK) WithPayload

WithPayload adds the payload to the get orders count by issuer o k response

func (*GetOrdersCountByIssuerOK) WriteResponse

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

WriteResponse to the client

type GetOrdersCountByIssuerParams

type GetOrdersCountByIssuerParams struct {

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

	/*Search date-time end
	  In: query
	*/
	EndDateTime *strfmt.DateTime
	/*Organization that issued the Orders.
	  Required: true
	  In: path
	*/
	Issuer string
	/*Search date-time start
	  In: query
	*/
	StartDateTime *strfmt.DateTime
}

GetOrdersCountByIssuerParams contains all the bound params for the get orders count by issuer operation typically these are obtained from a http.Request

swagger:parameters getOrdersCountByIssuer

func NewGetOrdersCountByIssuerParams

func NewGetOrdersCountByIssuerParams() GetOrdersCountByIssuerParams

NewGetOrdersCountByIssuerParams creates a new GetOrdersCountByIssuerParams object no default values defined in spec.

func (*GetOrdersCountByIssuerParams) 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 NewGetOrdersCountByIssuerParams() beforehand.

type GetOrdersCountByIssuerURL

type GetOrdersCountByIssuerURL struct {
	Issuer string

	EndDateTime   *strfmt.DateTime
	StartDateTime *strfmt.DateTime
	// contains filtered or unexported fields
}

GetOrdersCountByIssuerURL generates an URL for the get orders count by issuer operation

func (*GetOrdersCountByIssuerURL) Build

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

Build a url path and query string

func (*GetOrdersCountByIssuerURL) BuildFull

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

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

func (*GetOrdersCountByIssuerURL) Must

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

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

func (*GetOrdersCountByIssuerURL) SetBasePath

func (o *GetOrdersCountByIssuerURL) 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 (*GetOrdersCountByIssuerURL) String

func (o *GetOrdersCountByIssuerURL) String() string

String returns the string representation of the path with query string

func (*GetOrdersCountByIssuerURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetOrdersCountByIssuerURL) 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 GetOrdersCountByIssuerUnauthorized

type GetOrdersCountByIssuerUnauthorized struct {
}

GetOrdersCountByIssuerUnauthorized must be authenticated to use this endpoint

swagger:response getOrdersCountByIssuerUnauthorized

func NewGetOrdersCountByIssuerUnauthorized

func NewGetOrdersCountByIssuerUnauthorized() *GetOrdersCountByIssuerUnauthorized

NewGetOrdersCountByIssuerUnauthorized creates GetOrdersCountByIssuerUnauthorized with default headers values

func (*GetOrdersCountByIssuerUnauthorized) WriteResponse

WriteResponse to the client

type GetOrdersForbidden

type GetOrdersForbidden struct {
}

GetOrdersForbidden Forbidden

swagger:response getOrdersForbidden

func NewGetOrdersForbidden

func NewGetOrdersForbidden() *GetOrdersForbidden

NewGetOrdersForbidden creates GetOrdersForbidden with default headers values

func (*GetOrdersForbidden) WriteResponse

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

WriteResponse to the client

type GetOrdersHandler

type GetOrdersHandler interface {
	Handle(GetOrdersParams) middleware.Responder
}

GetOrdersHandler interface for that can handle valid get orders params

type GetOrdersHandlerFunc

type GetOrdersHandlerFunc func(GetOrdersParams) middleware.Responder

GetOrdersHandlerFunc turns a function with the right signature into a get orders handler

func (GetOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type GetOrdersInternalServerError

type GetOrdersInternalServerError struct {
}

GetOrdersInternalServerError Server error

swagger:response getOrdersInternalServerError

func NewGetOrdersInternalServerError

func NewGetOrdersInternalServerError() *GetOrdersInternalServerError

NewGetOrdersInternalServerError creates GetOrdersInternalServerError with default headers values

func (*GetOrdersInternalServerError) WriteResponse

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

WriteResponse to the client

type GetOrdersNotFound

type GetOrdersNotFound struct {
}

GetOrdersNotFound Orders not found

swagger:response getOrdersNotFound

func NewGetOrdersNotFound

func NewGetOrdersNotFound() *GetOrdersNotFound

NewGetOrdersNotFound creates GetOrdersNotFound with default headers values

func (*GetOrdersNotFound) WriteResponse

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

WriteResponse to the client

type GetOrdersOK

type GetOrdersOK struct {

	/*
	  In: Body
	*/
	Payload *ordersmessages.Orders `json:"body,omitempty"`
}

GetOrdersOK Successful

swagger:response getOrdersOK

func NewGetOrdersOK

func NewGetOrdersOK() *GetOrdersOK

NewGetOrdersOK creates GetOrdersOK with default headers values

func (*GetOrdersOK) SetPayload

func (o *GetOrdersOK) SetPayload(payload *ordersmessages.Orders)

SetPayload sets the payload to the get orders o k response

func (*GetOrdersOK) WithPayload

func (o *GetOrdersOK) WithPayload(payload *ordersmessages.Orders) *GetOrdersOK

WithPayload adds the payload to the get orders o k response

func (*GetOrdersOK) WriteResponse

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

WriteResponse to the client

type GetOrdersParams

type GetOrdersParams struct {

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

	/*UUID of the orders to return
	  Required: true
	  In: path
	*/
	UUID strfmt.UUID
}

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

swagger:parameters getOrders

func NewGetOrdersParams

func NewGetOrdersParams() GetOrdersParams

NewGetOrdersParams creates a new GetOrdersParams object no default values defined in spec.

func (*GetOrdersParams) BindRequest

func (o *GetOrdersParams) 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 NewGetOrdersParams() beforehand.

type GetOrdersURL

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

GetOrdersURL generates an URL for the get orders operation

func (*GetOrdersURL) Build

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

Build a url path and query string

func (*GetOrdersURL) BuildFull

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

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

func (*GetOrdersURL) Must

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

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

func (*GetOrdersURL) SetBasePath

func (o *GetOrdersURL) 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 (*GetOrdersURL) String

func (o *GetOrdersURL) String() string

String returns the string representation of the path with query string

func (*GetOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetOrdersURL) WithBasePath

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

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 GetOrdersUnauthorized

type GetOrdersUnauthorized struct {
}

GetOrdersUnauthorized must be authenticated to use this endpoint

swagger:response getOrdersUnauthorized

func NewGetOrdersUnauthorized

func NewGetOrdersUnauthorized() *GetOrdersUnauthorized

NewGetOrdersUnauthorized creates GetOrdersUnauthorized with default headers values

func (*GetOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type IndexOrdersForMember

type IndexOrdersForMember struct {
	Context *middleware.Context
	Handler IndexOrdersForMemberHandler
}

IndexOrdersForMember swagger:route GET /edipis/{edipi}/orders indexOrdersForMember

Retrieve orders for a particular member

Returns all Orders for the specified service member. This endpoint will only return Orders cut by issuers to which the user has read permission.

func NewIndexOrdersForMember

func NewIndexOrdersForMember(ctx *middleware.Context, handler IndexOrdersForMemberHandler) *IndexOrdersForMember

NewIndexOrdersForMember creates a new http.Handler for the index orders for member operation

func (*IndexOrdersForMember) ServeHTTP

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

type IndexOrdersForMemberBadRequest

type IndexOrdersForMemberBadRequest struct {
}

IndexOrdersForMemberBadRequest Bad request

swagger:response indexOrdersForMemberBadRequest

func NewIndexOrdersForMemberBadRequest

func NewIndexOrdersForMemberBadRequest() *IndexOrdersForMemberBadRequest

NewIndexOrdersForMemberBadRequest creates IndexOrdersForMemberBadRequest with default headers values

func (*IndexOrdersForMemberBadRequest) WriteResponse

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

WriteResponse to the client

type IndexOrdersForMemberForbidden

type IndexOrdersForMemberForbidden struct {
}

IndexOrdersForMemberForbidden Forbidden

swagger:response indexOrdersForMemberForbidden

func NewIndexOrdersForMemberForbidden

func NewIndexOrdersForMemberForbidden() *IndexOrdersForMemberForbidden

NewIndexOrdersForMemberForbidden creates IndexOrdersForMemberForbidden with default headers values

func (*IndexOrdersForMemberForbidden) WriteResponse

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

WriteResponse to the client

type IndexOrdersForMemberHandler

type IndexOrdersForMemberHandler interface {
	Handle(IndexOrdersForMemberParams) middleware.Responder
}

IndexOrdersForMemberHandler interface for that can handle valid index orders for member params

type IndexOrdersForMemberHandlerFunc

type IndexOrdersForMemberHandlerFunc func(IndexOrdersForMemberParams) middleware.Responder

IndexOrdersForMemberHandlerFunc turns a function with the right signature into a index orders for member handler

func (IndexOrdersForMemberHandlerFunc) Handle

Handle executing the request and returning a response

type IndexOrdersForMemberInternalServerError

type IndexOrdersForMemberInternalServerError struct {
}

IndexOrdersForMemberInternalServerError Server error

swagger:response indexOrdersForMemberInternalServerError

func NewIndexOrdersForMemberInternalServerError

func NewIndexOrdersForMemberInternalServerError() *IndexOrdersForMemberInternalServerError

NewIndexOrdersForMemberInternalServerError creates IndexOrdersForMemberInternalServerError with default headers values

func (*IndexOrdersForMemberInternalServerError) WriteResponse

WriteResponse to the client

type IndexOrdersForMemberNotFound

type IndexOrdersForMemberNotFound struct {
}

IndexOrdersForMemberNotFound No orders found

swagger:response indexOrdersForMemberNotFound

func NewIndexOrdersForMemberNotFound

func NewIndexOrdersForMemberNotFound() *IndexOrdersForMemberNotFound

NewIndexOrdersForMemberNotFound creates IndexOrdersForMemberNotFound with default headers values

func (*IndexOrdersForMemberNotFound) WriteResponse

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

WriteResponse to the client

type IndexOrdersForMemberOK

type IndexOrdersForMemberOK struct {

	/*
	  In: Body
	*/
	Payload []*ordersmessages.Orders `json:"body,omitempty"`
}

IndexOrdersForMemberOK Successful

swagger:response indexOrdersForMemberOK

func NewIndexOrdersForMemberOK

func NewIndexOrdersForMemberOK() *IndexOrdersForMemberOK

NewIndexOrdersForMemberOK creates IndexOrdersForMemberOK with default headers values

func (*IndexOrdersForMemberOK) SetPayload

func (o *IndexOrdersForMemberOK) SetPayload(payload []*ordersmessages.Orders)

SetPayload sets the payload to the index orders for member o k response

func (*IndexOrdersForMemberOK) WithPayload

WithPayload adds the payload to the index orders for member o k response

func (*IndexOrdersForMemberOK) WriteResponse

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

WriteResponse to the client

type IndexOrdersForMemberParams

type IndexOrdersForMemberParams struct {

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

	/*EDIPI of the member to retrieve Orders
	  Required: true
	  Pattern: ^\d{10}$
	  In: path
	*/
	Edipi string
}

IndexOrdersForMemberParams contains all the bound params for the index orders for member operation typically these are obtained from a http.Request

swagger:parameters indexOrdersForMember

func NewIndexOrdersForMemberParams

func NewIndexOrdersForMemberParams() IndexOrdersForMemberParams

NewIndexOrdersForMemberParams creates a new IndexOrdersForMemberParams object no default values defined in spec.

func (*IndexOrdersForMemberParams) 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 NewIndexOrdersForMemberParams() beforehand.

type IndexOrdersForMemberURL

type IndexOrdersForMemberURL struct {
	Edipi string
	// contains filtered or unexported fields
}

IndexOrdersForMemberURL generates an URL for the index orders for member operation

func (*IndexOrdersForMemberURL) Build

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

Build a url path and query string

func (*IndexOrdersForMemberURL) BuildFull

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

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

func (*IndexOrdersForMemberURL) Must

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

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

func (*IndexOrdersForMemberURL) SetBasePath

func (o *IndexOrdersForMemberURL) 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 (*IndexOrdersForMemberURL) String

func (o *IndexOrdersForMemberURL) String() string

String returns the string representation of the path with query string

func (*IndexOrdersForMemberURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IndexOrdersForMemberURL) 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 IndexOrdersForMemberUnauthorized

type IndexOrdersForMemberUnauthorized struct {
}

IndexOrdersForMemberUnauthorized must be authenticated to use this endpoint

swagger:response indexOrdersForMemberUnauthorized

func NewIndexOrdersForMemberUnauthorized

func NewIndexOrdersForMemberUnauthorized() *IndexOrdersForMemberUnauthorized

NewIndexOrdersForMemberUnauthorized creates IndexOrdersForMemberUnauthorized with default headers values

func (*IndexOrdersForMemberUnauthorized) WriteResponse

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

WriteResponse to the client

type MilmoveOrdersAPI

type MilmoveOrdersAPI struct {
	Middleware func(middleware.Builder) http.Handler

	// BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator
	// APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator
	// BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function.
	// It has a default implementation in the security package, however you can replace it for your particular usage.
	BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator
	// JSONConsumer registers a consumer for the following mime types:
	//   - application/json
	JSONConsumer runtime.Consumer
	// JSONProducer registers a producer for the following mime types:
	//   - application/json
	JSONProducer runtime.Producer

	// GetOrdersHandler sets the operation handler for the get orders operation
	GetOrdersHandler GetOrdersHandler
	// GetOrdersByIssuerAndOrdersNumHandler sets the operation handler for the get orders by issuer and orders num operation
	GetOrdersByIssuerAndOrdersNumHandler GetOrdersByIssuerAndOrdersNumHandler
	// GetOrdersCountByIssuerHandler sets the operation handler for the get orders count by issuer operation
	GetOrdersCountByIssuerHandler GetOrdersCountByIssuerHandler
	// IndexOrdersForMemberHandler sets the operation handler for the index orders for member operation
	IndexOrdersForMemberHandler IndexOrdersForMemberHandler
	// PostRevisionHandler sets the operation handler for the post revision operation
	PostRevisionHandler PostRevisionHandler
	// PostRevisionToOrdersHandler sets the operation handler for the post revision to orders operation
	PostRevisionToOrdersHandler PostRevisionToOrdersHandler
	// ServeError is called when an error is received, there is a default handler
	// but you can set your own with this
	ServeError func(http.ResponseWriter, *http.Request, error)

	// PreServerShutdown is called before the HTTP(S) server is shutdown
	// This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic
	PreServerShutdown func()

	// ServerShutdown is called when the HTTP(S) server is shut down and done
	// handling all active connections and does not accept connections any more
	ServerShutdown func()

	// Custom command line argument groups with their descriptions
	CommandLineOptionsGroups []swag.CommandLineOptionsGroup

	// User defined logger function.
	Logger func(string, ...interface{})
	// contains filtered or unexported fields
}

MilmoveOrdersAPI API to submit, amend, and cancel orders for move.mil.

func NewMilmoveOrdersAPI

func NewMilmoveOrdersAPI(spec *loads.Document) *MilmoveOrdersAPI

NewMilmoveOrdersAPI creates a new MilmoveOrders instance

func (*MilmoveOrdersAPI) AuthenticatorsFor

func (o *MilmoveOrdersAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*MilmoveOrdersAPI) Authorizer

func (o *MilmoveOrdersAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*MilmoveOrdersAPI) ConsumersFor

func (o *MilmoveOrdersAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*MilmoveOrdersAPI) Context

func (o *MilmoveOrdersAPI) Context() *middleware.Context

Context returns the middleware context for the milmove orders API

func (*MilmoveOrdersAPI) DefaultConsumes

func (o *MilmoveOrdersAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*MilmoveOrdersAPI) DefaultProduces

func (o *MilmoveOrdersAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*MilmoveOrdersAPI) Formats

func (o *MilmoveOrdersAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*MilmoveOrdersAPI) HandlerFor

func (o *MilmoveOrdersAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*MilmoveOrdersAPI) Init

func (o *MilmoveOrdersAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*MilmoveOrdersAPI) ProducersFor

func (o *MilmoveOrdersAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*MilmoveOrdersAPI) RegisterConsumer

func (o *MilmoveOrdersAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*MilmoveOrdersAPI) RegisterFormat

func (o *MilmoveOrdersAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*MilmoveOrdersAPI) RegisterProducer

func (o *MilmoveOrdersAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*MilmoveOrdersAPI) Serve

func (o *MilmoveOrdersAPI) Serve(builder middleware.Builder) http.Handler

Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))

func (*MilmoveOrdersAPI) ServeErrorFor

func (o *MilmoveOrdersAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*MilmoveOrdersAPI) SetDefaultConsumes

func (o *MilmoveOrdersAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*MilmoveOrdersAPI) SetDefaultProduces

func (o *MilmoveOrdersAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*MilmoveOrdersAPI) SetSpec

func (o *MilmoveOrdersAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*MilmoveOrdersAPI) Validate

func (o *MilmoveOrdersAPI) Validate() error

Validate validates the registrations in the MilmoveOrdersAPI

type PostRevision

type PostRevision struct {
	Context *middleware.Context
	Handler PostRevisionHandler
}

PostRevision swagger:route POST /orders postRevision

Submit a new set of orders, make an amendment to an existing set of orders, or cancel a set of orders.

Creates a Revision of a set of orders. # Identifying the service member The Orders Gateway associates Orders and their Revisions with the member's EDIPI. For users of this API who do not have the member's EDIPI but do have the member's SSN, they can submit the SSN instead. The Orders Gateway will then fetch the member's EDIPI using DMDC's Identity Web Services. Calls using the 9-digit SSN instead of the 10-digit EDIPI will take longer to respond due to the additional overhead. # Submitting Orders Revisions ## New Orders The supplied Revision is considered part of a new set of Orders if the combination of `ordersNum` and `issuer` has never been seen before. A new UUID is created and associated with the Orders, which is returned along with the supplied Revision. ## Amended Orders If the system already has Orders with the supplied combination of `ordersNum` and `issuer`, then the supplied Revision is considered to be an amendment of those Orders. The Revision with the highest `seqNum` is considered the most recent amendment, which is not necessarily the Revision with the latest `dateIssued` or the Revision submitted last. If you stored the UUID of the Orders from a previous call to this API, you have the option of using the `POST /orders/{uuid}` API instead to supply a new Revision. ## Canceled, Rescinded, or Revoked Orders To cancel, rescind, or revoke Orders, POST a new Revision with the status set to "canceled". # Errors Users of this endpoint must have permission to write Orders for the specified `issuer`. Otherwise, this endpoint will return `403 Forbidden`. If SSN instead of EDIPI is provided to identify the member, and DMDC's Identity Web Services does not return an EDIPI for that SSN, then this endpoint will return `404 Not Found`. If amending existing Orders, the supplied seqNum must be unique when compared to existing Revisions in those Orders. If it has already been used, this endpoint will return `409 Conflict`. If amending existing Orders, the supplied memberId, as an EDIPI, or as an EDIPI retrieved from DMDC by SSN, must match the EDIPI in the existing Orders. If the EDIPIs do not match, this endpoint will return `409 Conflict`.

func NewPostRevision

func NewPostRevision(ctx *middleware.Context, handler PostRevisionHandler) *PostRevision

NewPostRevision creates a new http.Handler for the post revision operation

func (*PostRevision) ServeHTTP

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

type PostRevisionBadRequest

type PostRevisionBadRequest struct {
}

PostRevisionBadRequest Invalid

swagger:response postRevisionBadRequest

func NewPostRevisionBadRequest

func NewPostRevisionBadRequest() *PostRevisionBadRequest

NewPostRevisionBadRequest creates PostRevisionBadRequest with default headers values

func (*PostRevisionBadRequest) WriteResponse

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

WriteResponse to the client

type PostRevisionConflict

type PostRevisionConflict struct {
}

PostRevisionConflict Conflict

swagger:response postRevisionConflict

func NewPostRevisionConflict

func NewPostRevisionConflict() *PostRevisionConflict

NewPostRevisionConflict creates PostRevisionConflict with default headers values

func (*PostRevisionConflict) WriteResponse

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

WriteResponse to the client

type PostRevisionCreated

type PostRevisionCreated struct {

	/*
	  In: Body
	*/
	Payload *ordersmessages.Orders `json:"body,omitempty"`
}

PostRevisionCreated Created

swagger:response postRevisionCreated

func NewPostRevisionCreated

func NewPostRevisionCreated() *PostRevisionCreated

NewPostRevisionCreated creates PostRevisionCreated with default headers values

func (*PostRevisionCreated) SetPayload

func (o *PostRevisionCreated) SetPayload(payload *ordersmessages.Orders)

SetPayload sets the payload to the post revision created response

func (*PostRevisionCreated) WithPayload

WithPayload adds the payload to the post revision created response

func (*PostRevisionCreated) WriteResponse

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

WriteResponse to the client

type PostRevisionForbidden

type PostRevisionForbidden struct {
}

PostRevisionForbidden Forbidden

swagger:response postRevisionForbidden

func NewPostRevisionForbidden

func NewPostRevisionForbidden() *PostRevisionForbidden

NewPostRevisionForbidden creates PostRevisionForbidden with default headers values

func (*PostRevisionForbidden) WriteResponse

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

WriteResponse to the client

type PostRevisionHandler

type PostRevisionHandler interface {
	Handle(PostRevisionParams) middleware.Responder
}

PostRevisionHandler interface for that can handle valid post revision params

type PostRevisionHandlerFunc

type PostRevisionHandlerFunc func(PostRevisionParams) middleware.Responder

PostRevisionHandlerFunc turns a function with the right signature into a post revision handler

func (PostRevisionHandlerFunc) Handle

Handle executing the request and returning a response

type PostRevisionInternalServerError

type PostRevisionInternalServerError struct {
}

PostRevisionInternalServerError Server error

swagger:response postRevisionInternalServerError

func NewPostRevisionInternalServerError

func NewPostRevisionInternalServerError() *PostRevisionInternalServerError

NewPostRevisionInternalServerError creates PostRevisionInternalServerError with default headers values

func (*PostRevisionInternalServerError) WriteResponse

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

WriteResponse to the client

type PostRevisionNotFound

type PostRevisionNotFound struct {
}

PostRevisionNotFound Not Found

swagger:response postRevisionNotFound

func NewPostRevisionNotFound

func NewPostRevisionNotFound() *PostRevisionNotFound

NewPostRevisionNotFound creates PostRevisionNotFound with default headers values

func (*PostRevisionNotFound) WriteResponse

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

WriteResponse to the client

type PostRevisionParams

type PostRevisionParams struct {

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

	/*Organization that issued the Orders.
	  Required: true
	  In: query
	*/
	Issuer string
	/*Electronic Data Interchange Personal Identifier of the member (preferred). If the member's EDIPI is unknown, then the Social Security Number may be provided instead.

	  Required: true
	  Pattern: ^\d{9}\d?$
	  In: query
	*/
	MemberID string
	/*Orders number, corresponding to the ORDERS number (Army), the CT SDN (Navy, Marines), the SPECIAL ORDER NO (Air Force), the Travel Order No (Coast Guard), or the Travel Authorization Number (Civilian).
	  Required: true
	  In: query
	*/
	OrdersNum string
	/*
	  Required: true
	  In: body
	*/
	Revision *ordersmessages.Revision
}

PostRevisionParams contains all the bound params for the post revision operation typically these are obtained from a http.Request

swagger:parameters postRevision

func NewPostRevisionParams

func NewPostRevisionParams() PostRevisionParams

NewPostRevisionParams creates a new PostRevisionParams object no default values defined in spec.

func (*PostRevisionParams) BindRequest

func (o *PostRevisionParams) 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 NewPostRevisionParams() beforehand.

type PostRevisionToOrders

type PostRevisionToOrders struct {
	Context *middleware.Context
	Handler PostRevisionToOrdersHandler
}

PostRevisionToOrders swagger:route POST /orders/{uuid} postRevisionToOrders

Make an amendment to or cancel an existing set of orders by UUID

Creates a Revision of a set of orders. The Orders to be amended or canceled must already exist with the supplied UUID. ## Amendment requirements The `seqNum` in the supplied Revision must be unique among all Revisions in these Orders. Other than `seqNum`, nothing else is required to change in the Revision compared to any other Revision in these Orders. # Errors Users of this endpoint must have permission to write Orders for the `issuer` associated with the Orders that were originally POST'd to the `orders` endpoint. If not, this endpoint will return `403 Forbidden`. The UUID must match an existing set of Orders. Otherwise, this endpoint will return `404 Not Found`. If amending existing Orders, the supplied seqNum must be unique. If it has already been used, this endpoint will return `409 Conflict`.

func NewPostRevisionToOrders

func NewPostRevisionToOrders(ctx *middleware.Context, handler PostRevisionToOrdersHandler) *PostRevisionToOrders

NewPostRevisionToOrders creates a new http.Handler for the post revision to orders operation

func (*PostRevisionToOrders) ServeHTTP

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

type PostRevisionToOrdersBadRequest

type PostRevisionToOrdersBadRequest struct {
}

PostRevisionToOrdersBadRequest Invalid

swagger:response postRevisionToOrdersBadRequest

func NewPostRevisionToOrdersBadRequest

func NewPostRevisionToOrdersBadRequest() *PostRevisionToOrdersBadRequest

NewPostRevisionToOrdersBadRequest creates PostRevisionToOrdersBadRequest with default headers values

func (*PostRevisionToOrdersBadRequest) WriteResponse

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

WriteResponse to the client

type PostRevisionToOrdersConflict

type PostRevisionToOrdersConflict struct {
}

PostRevisionToOrdersConflict Conflict

swagger:response postRevisionToOrdersConflict

func NewPostRevisionToOrdersConflict

func NewPostRevisionToOrdersConflict() *PostRevisionToOrdersConflict

NewPostRevisionToOrdersConflict creates PostRevisionToOrdersConflict with default headers values

func (*PostRevisionToOrdersConflict) WriteResponse

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

WriteResponse to the client

type PostRevisionToOrdersCreated

type PostRevisionToOrdersCreated struct {

	/*
	  In: Body
	*/
	Payload *ordersmessages.Orders `json:"body,omitempty"`
}

PostRevisionToOrdersCreated Created

swagger:response postRevisionToOrdersCreated

func NewPostRevisionToOrdersCreated

func NewPostRevisionToOrdersCreated() *PostRevisionToOrdersCreated

NewPostRevisionToOrdersCreated creates PostRevisionToOrdersCreated with default headers values

func (*PostRevisionToOrdersCreated) SetPayload

func (o *PostRevisionToOrdersCreated) SetPayload(payload *ordersmessages.Orders)

SetPayload sets the payload to the post revision to orders created response

func (*PostRevisionToOrdersCreated) WithPayload

WithPayload adds the payload to the post revision to orders created response

func (*PostRevisionToOrdersCreated) WriteResponse

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

WriteResponse to the client

type PostRevisionToOrdersForbidden

type PostRevisionToOrdersForbidden struct {
}

PostRevisionToOrdersForbidden Forbidden

swagger:response postRevisionToOrdersForbidden

func NewPostRevisionToOrdersForbidden

func NewPostRevisionToOrdersForbidden() *PostRevisionToOrdersForbidden

NewPostRevisionToOrdersForbidden creates PostRevisionToOrdersForbidden with default headers values

func (*PostRevisionToOrdersForbidden) WriteResponse

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

WriteResponse to the client

type PostRevisionToOrdersHandler

type PostRevisionToOrdersHandler interface {
	Handle(PostRevisionToOrdersParams) middleware.Responder
}

PostRevisionToOrdersHandler interface for that can handle valid post revision to orders params

type PostRevisionToOrdersHandlerFunc

type PostRevisionToOrdersHandlerFunc func(PostRevisionToOrdersParams) middleware.Responder

PostRevisionToOrdersHandlerFunc turns a function with the right signature into a post revision to orders handler

func (PostRevisionToOrdersHandlerFunc) Handle

Handle executing the request and returning a response

type PostRevisionToOrdersInternalServerError

type PostRevisionToOrdersInternalServerError struct {
}

PostRevisionToOrdersInternalServerError Server error

swagger:response postRevisionToOrdersInternalServerError

func NewPostRevisionToOrdersInternalServerError

func NewPostRevisionToOrdersInternalServerError() *PostRevisionToOrdersInternalServerError

NewPostRevisionToOrdersInternalServerError creates PostRevisionToOrdersInternalServerError with default headers values

func (*PostRevisionToOrdersInternalServerError) WriteResponse

WriteResponse to the client

type PostRevisionToOrdersNotFound

type PostRevisionToOrdersNotFound struct {
}

PostRevisionToOrdersNotFound Orders not found

swagger:response postRevisionToOrdersNotFound

func NewPostRevisionToOrdersNotFound

func NewPostRevisionToOrdersNotFound() *PostRevisionToOrdersNotFound

NewPostRevisionToOrdersNotFound creates PostRevisionToOrdersNotFound with default headers values

func (*PostRevisionToOrdersNotFound) WriteResponse

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

WriteResponse to the client

type PostRevisionToOrdersParams

type PostRevisionToOrdersParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Revision *ordersmessages.Revision
	/*UUID of the orders to amend
	  Required: true
	  In: path
	*/
	UUID strfmt.UUID
}

PostRevisionToOrdersParams contains all the bound params for the post revision to orders operation typically these are obtained from a http.Request

swagger:parameters postRevisionToOrders

func NewPostRevisionToOrdersParams

func NewPostRevisionToOrdersParams() PostRevisionToOrdersParams

NewPostRevisionToOrdersParams creates a new PostRevisionToOrdersParams object no default values defined in spec.

func (*PostRevisionToOrdersParams) 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 NewPostRevisionToOrdersParams() beforehand.

type PostRevisionToOrdersURL

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

PostRevisionToOrdersURL generates an URL for the post revision to orders operation

func (*PostRevisionToOrdersURL) Build

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

Build a url path and query string

func (*PostRevisionToOrdersURL) BuildFull

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

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

func (*PostRevisionToOrdersURL) Must

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

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

func (*PostRevisionToOrdersURL) SetBasePath

func (o *PostRevisionToOrdersURL) 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 (*PostRevisionToOrdersURL) String

func (o *PostRevisionToOrdersURL) String() string

String returns the string representation of the path with query string

func (*PostRevisionToOrdersURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostRevisionToOrdersURL) 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 PostRevisionToOrdersUnauthorized

type PostRevisionToOrdersUnauthorized struct {
}

PostRevisionToOrdersUnauthorized must be authenticated to use this endpoint

swagger:response postRevisionToOrdersUnauthorized

func NewPostRevisionToOrdersUnauthorized

func NewPostRevisionToOrdersUnauthorized() *PostRevisionToOrdersUnauthorized

NewPostRevisionToOrdersUnauthorized creates PostRevisionToOrdersUnauthorized with default headers values

func (*PostRevisionToOrdersUnauthorized) WriteResponse

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

WriteResponse to the client

type PostRevisionURL

type PostRevisionURL struct {
	Issuer    string
	MemberID  string
	OrdersNum string
	// contains filtered or unexported fields
}

PostRevisionURL generates an URL for the post revision operation

func (*PostRevisionURL) Build

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

Build a url path and query string

func (*PostRevisionURL) BuildFull

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

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

func (*PostRevisionURL) Must

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

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

func (*PostRevisionURL) SetBasePath

func (o *PostRevisionURL) 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 (*PostRevisionURL) String

func (o *PostRevisionURL) String() string

String returns the string representation of the path with query string

func (*PostRevisionURL) StringFull

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

StringFull returns the string representation of a complete url

func (*PostRevisionURL) WithBasePath

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

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 PostRevisionUnauthorized

type PostRevisionUnauthorized struct {
}

PostRevisionUnauthorized must be authenticated to use this endpoint

swagger:response postRevisionUnauthorized

func NewPostRevisionUnauthorized

func NewPostRevisionUnauthorized() *PostRevisionUnauthorized

NewPostRevisionUnauthorized creates PostRevisionUnauthorized with default headers values

func (*PostRevisionUnauthorized) WriteResponse

func (o *PostRevisionUnauthorized) 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