Documentation ¶
Index ¶
- Constants
- type RequestLineOfAccounting
- type RequestLineOfAccountingBadRequest
- func (o *RequestLineOfAccountingBadRequest) SetPayload(payload *ghcmessages.Error)
- func (o *RequestLineOfAccountingBadRequest) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingBadRequest
- func (o *RequestLineOfAccountingBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingForbidden
- func (o *RequestLineOfAccountingForbidden) SetPayload(payload *ghcmessages.Error)
- func (o *RequestLineOfAccountingForbidden) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingForbidden
- func (o *RequestLineOfAccountingForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingHandler
- type RequestLineOfAccountingHandlerFunc
- type RequestLineOfAccountingInternalServerError
- func (o *RequestLineOfAccountingInternalServerError) SetPayload(payload *ghcmessages.Error)
- func (o *RequestLineOfAccountingInternalServerError) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingInternalServerError
- func (o *RequestLineOfAccountingInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingNotFound
- func (o *RequestLineOfAccountingNotFound) SetPayload(payload *ghcmessages.Error)
- func (o *RequestLineOfAccountingNotFound) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingNotFound
- func (o *RequestLineOfAccountingNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingOK
- func (o *RequestLineOfAccountingOK) SetPayload(payload *ghcmessages.LineOfAccounting)
- func (o *RequestLineOfAccountingOK) WithPayload(payload *ghcmessages.LineOfAccounting) *RequestLineOfAccountingOK
- func (o *RequestLineOfAccountingOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingParams
- type RequestLineOfAccountingURL
- func (o *RequestLineOfAccountingURL) Build() (*url.URL, error)
- func (o *RequestLineOfAccountingURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RequestLineOfAccountingURL) Must(u *url.URL, err error) *url.URL
- func (o *RequestLineOfAccountingURL) SetBasePath(bp string)
- func (o *RequestLineOfAccountingURL) String() string
- func (o *RequestLineOfAccountingURL) StringFull(scheme, host string) string
- func (o *RequestLineOfAccountingURL) WithBasePath(bp string) *RequestLineOfAccountingURL
- type RequestLineOfAccountingUnauthorized
- func (o *RequestLineOfAccountingUnauthorized) SetPayload(payload *ghcmessages.Error)
- func (o *RequestLineOfAccountingUnauthorized) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingUnauthorized
- func (o *RequestLineOfAccountingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RequestLineOfAccountingUnprocessableEntity
- func (o *RequestLineOfAccountingUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
- func (o *RequestLineOfAccountingUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *RequestLineOfAccountingUnprocessableEntity
- func (o *RequestLineOfAccountingUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
Constants ¶
const RequestLineOfAccountingBadRequestCode int = 400
RequestLineOfAccountingBadRequestCode is the HTTP code returned for type RequestLineOfAccountingBadRequest
const RequestLineOfAccountingForbiddenCode int = 403
RequestLineOfAccountingForbiddenCode is the HTTP code returned for type RequestLineOfAccountingForbidden
const RequestLineOfAccountingInternalServerErrorCode int = 500
RequestLineOfAccountingInternalServerErrorCode is the HTTP code returned for type RequestLineOfAccountingInternalServerError
const RequestLineOfAccountingNotFoundCode int = 404
RequestLineOfAccountingNotFoundCode is the HTTP code returned for type RequestLineOfAccountingNotFound
const RequestLineOfAccountingOKCode int = 200
RequestLineOfAccountingOKCode is the HTTP code returned for type RequestLineOfAccountingOK
RequestLineOfAccountingUnauthorizedCode is the HTTP code returned for type RequestLineOfAccountingUnauthorized
const RequestLineOfAccountingUnprocessableEntityCode int = 422
RequestLineOfAccountingUnprocessableEntityCode is the HTTP code returned for type RequestLineOfAccountingUnprocessableEntity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestLineOfAccounting ¶
type RequestLineOfAccounting struct { Context *middleware.Context Handler RequestLineOfAccountingHandler }
RequestLineOfAccounting swagger:route POST /lines-of-accounting linesOfAccounting requestLineOfAccounting
Fetch line of accounting ¶
Fetches a line of accounting based on provided service member affiliation, effective date, and Transportation Accounting Code (TAC). It uses these parameters to filter the correct Line of Accounting for the provided TAC. It does this by filtering through both TAC and LOAs based on the provided code and effective date. The 'Effective Date' is the date that can be either the orders issued date (For HHG shipments), MTO approval date (For NTS shipments), or even the current date for NTS shipments with no approval yet (Just providing a preview to the office users per customer request). Effective date is used to find "Active" TGET data by searching for the TACs and LOAs with begin and end dates containing this date.
func NewRequestLineOfAccounting ¶
func NewRequestLineOfAccounting(ctx *middleware.Context, handler RequestLineOfAccountingHandler) *RequestLineOfAccounting
NewRequestLineOfAccounting creates a new http.Handler for the request line of accounting operation
func (*RequestLineOfAccounting) ServeHTTP ¶
func (o *RequestLineOfAccounting) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RequestLineOfAccountingBadRequest ¶
type RequestLineOfAccountingBadRequest struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
RequestLineOfAccountingBadRequest The request payload is invalid
swagger:response requestLineOfAccountingBadRequest
func NewRequestLineOfAccountingBadRequest ¶
func NewRequestLineOfAccountingBadRequest() *RequestLineOfAccountingBadRequest
NewRequestLineOfAccountingBadRequest creates RequestLineOfAccountingBadRequest with default headers values
func (*RequestLineOfAccountingBadRequest) SetPayload ¶
func (o *RequestLineOfAccountingBadRequest) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the request line of accounting bad request response
func (*RequestLineOfAccountingBadRequest) WithPayload ¶
func (o *RequestLineOfAccountingBadRequest) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingBadRequest
WithPayload adds the payload to the request line of accounting bad request response
func (*RequestLineOfAccountingBadRequest) WriteResponse ¶
func (o *RequestLineOfAccountingBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingForbidden ¶
type RequestLineOfAccountingForbidden struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
RequestLineOfAccountingForbidden The request was denied
swagger:response requestLineOfAccountingForbidden
func NewRequestLineOfAccountingForbidden ¶
func NewRequestLineOfAccountingForbidden() *RequestLineOfAccountingForbidden
NewRequestLineOfAccountingForbidden creates RequestLineOfAccountingForbidden with default headers values
func (*RequestLineOfAccountingForbidden) SetPayload ¶
func (o *RequestLineOfAccountingForbidden) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the request line of accounting forbidden response
func (*RequestLineOfAccountingForbidden) WithPayload ¶
func (o *RequestLineOfAccountingForbidden) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingForbidden
WithPayload adds the payload to the request line of accounting forbidden response
func (*RequestLineOfAccountingForbidden) WriteResponse ¶
func (o *RequestLineOfAccountingForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingHandler ¶
type RequestLineOfAccountingHandler interface {
Handle(RequestLineOfAccountingParams) middleware.Responder
}
RequestLineOfAccountingHandler interface for that can handle valid request line of accounting params
type RequestLineOfAccountingHandlerFunc ¶
type RequestLineOfAccountingHandlerFunc func(RequestLineOfAccountingParams) middleware.Responder
RequestLineOfAccountingHandlerFunc turns a function with the right signature into a request line of accounting handler
func (RequestLineOfAccountingHandlerFunc) Handle ¶
func (fn RequestLineOfAccountingHandlerFunc) Handle(params RequestLineOfAccountingParams) middleware.Responder
Handle executing the request and returning a response
type RequestLineOfAccountingInternalServerError ¶
type RequestLineOfAccountingInternalServerError struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
RequestLineOfAccountingInternalServerError A server error occurred
swagger:response requestLineOfAccountingInternalServerError
func NewRequestLineOfAccountingInternalServerError ¶
func NewRequestLineOfAccountingInternalServerError() *RequestLineOfAccountingInternalServerError
NewRequestLineOfAccountingInternalServerError creates RequestLineOfAccountingInternalServerError with default headers values
func (*RequestLineOfAccountingInternalServerError) SetPayload ¶
func (o *RequestLineOfAccountingInternalServerError) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the request line of accounting internal server error response
func (*RequestLineOfAccountingInternalServerError) WithPayload ¶
func (o *RequestLineOfAccountingInternalServerError) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingInternalServerError
WithPayload adds the payload to the request line of accounting internal server error response
func (*RequestLineOfAccountingInternalServerError) WriteResponse ¶
func (o *RequestLineOfAccountingInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingNotFound ¶
type RequestLineOfAccountingNotFound struct { /* In: Body */ Payload *ghcmessages.Error `json:"body,omitempty"` }
RequestLineOfAccountingNotFound The requested resource wasn't found
swagger:response requestLineOfAccountingNotFound
func NewRequestLineOfAccountingNotFound ¶
func NewRequestLineOfAccountingNotFound() *RequestLineOfAccountingNotFound
NewRequestLineOfAccountingNotFound creates RequestLineOfAccountingNotFound with default headers values
func (*RequestLineOfAccountingNotFound) SetPayload ¶
func (o *RequestLineOfAccountingNotFound) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the request line of accounting not found response
func (*RequestLineOfAccountingNotFound) WithPayload ¶
func (o *RequestLineOfAccountingNotFound) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingNotFound
WithPayload adds the payload to the request line of accounting not found response
func (*RequestLineOfAccountingNotFound) WriteResponse ¶
func (o *RequestLineOfAccountingNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingOK ¶
type RequestLineOfAccountingOK struct { /* In: Body */ Payload *ghcmessages.LineOfAccounting `json:"body,omitempty"` }
RequestLineOfAccountingOK Successfully retrieved line of accounting
swagger:response requestLineOfAccountingOK
func NewRequestLineOfAccountingOK ¶
func NewRequestLineOfAccountingOK() *RequestLineOfAccountingOK
NewRequestLineOfAccountingOK creates RequestLineOfAccountingOK with default headers values
func (*RequestLineOfAccountingOK) SetPayload ¶
func (o *RequestLineOfAccountingOK) SetPayload(payload *ghcmessages.LineOfAccounting)
SetPayload sets the payload to the request line of accounting o k response
func (*RequestLineOfAccountingOK) WithPayload ¶
func (o *RequestLineOfAccountingOK) WithPayload(payload *ghcmessages.LineOfAccounting) *RequestLineOfAccountingOK
WithPayload adds the payload to the request line of accounting o k response
func (*RequestLineOfAccountingOK) WriteResponse ¶
func (o *RequestLineOfAccountingOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingParams ¶
type RequestLineOfAccountingParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Service member affiliation, effective date, and TAC code. Required: true In: body */ Body *ghcmessages.FetchLineOfAccountingPayload }
RequestLineOfAccountingParams contains all the bound params for the request line of accounting operation typically these are obtained from a http.Request
swagger:parameters requestLineOfAccounting
func NewRequestLineOfAccountingParams ¶
func NewRequestLineOfAccountingParams() RequestLineOfAccountingParams
NewRequestLineOfAccountingParams creates a new RequestLineOfAccountingParams object
There are no default values defined in the spec.
func (*RequestLineOfAccountingParams) BindRequest ¶
func (o *RequestLineOfAccountingParams) 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 NewRequestLineOfAccountingParams() beforehand.
type RequestLineOfAccountingURL ¶
type RequestLineOfAccountingURL struct {
// contains filtered or unexported fields
}
RequestLineOfAccountingURL generates an URL for the request line of accounting operation
func (*RequestLineOfAccountingURL) Build ¶
func (o *RequestLineOfAccountingURL) Build() (*url.URL, error)
Build a url path and query string
func (*RequestLineOfAccountingURL) BuildFull ¶
func (o *RequestLineOfAccountingURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RequestLineOfAccountingURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RequestLineOfAccountingURL) SetBasePath ¶
func (o *RequestLineOfAccountingURL) 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 (*RequestLineOfAccountingURL) String ¶
func (o *RequestLineOfAccountingURL) String() string
String returns the string representation of the path with query string
func (*RequestLineOfAccountingURL) StringFull ¶
func (o *RequestLineOfAccountingURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RequestLineOfAccountingURL) WithBasePath ¶
func (o *RequestLineOfAccountingURL) WithBasePath(bp string) *RequestLineOfAccountingURL
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 RequestLineOfAccountingUnauthorized ¶
type RequestLineOfAccountingUnauthorized struct { ghcmessages.Error `json:"body,omitempty"` }Payload *
RequestLineOfAccountingUnauthorized The request was denied
swagger:response requestLineOfAccountingUnauthorized
func NewRequestLineOfAccountingUnauthorized ¶
func NewRequestLineOfAccountingUnauthorized() *RequestLineOfAccountingUnauthorized
NewRequestLineOfAccountingUnauthorized creates RequestLineOfAccountingUnauthorized with default headers values
func (*RequestLineOfAccountingUnauthorized) SetPayload ¶
func (o *RequestLineOfAccountingUnauthorized) SetPayload(payload *ghcmessages.Error)
SetPayload sets the payload to the request line of accounting unauthorized response
func (*RequestLineOfAccountingUnauthorized) WithPayload ¶
func (o *RequestLineOfAccountingUnauthorized) WithPayload(payload *ghcmessages.Error) *RequestLineOfAccountingUnauthorized
WithPayload adds the payload to the request line of accounting unauthorized response
func (*RequestLineOfAccountingUnauthorized) WriteResponse ¶
func (o *RequestLineOfAccountingUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RequestLineOfAccountingUnprocessableEntity ¶
type RequestLineOfAccountingUnprocessableEntity struct { /* In: Body */ Payload *ghcmessages.ValidationError `json:"body,omitempty"` }
RequestLineOfAccountingUnprocessableEntity The payload was unprocessable.
swagger:response requestLineOfAccountingUnprocessableEntity
func NewRequestLineOfAccountingUnprocessableEntity ¶
func NewRequestLineOfAccountingUnprocessableEntity() *RequestLineOfAccountingUnprocessableEntity
NewRequestLineOfAccountingUnprocessableEntity creates RequestLineOfAccountingUnprocessableEntity with default headers values
func (*RequestLineOfAccountingUnprocessableEntity) SetPayload ¶
func (o *RequestLineOfAccountingUnprocessableEntity) SetPayload(payload *ghcmessages.ValidationError)
SetPayload sets the payload to the request line of accounting unprocessable entity response
func (*RequestLineOfAccountingUnprocessableEntity) WithPayload ¶
func (o *RequestLineOfAccountingUnprocessableEntity) WithPayload(payload *ghcmessages.ValidationError) *RequestLineOfAccountingUnprocessableEntity
WithPayload adds the payload to the request line of accounting unprocessable entity response
func (*RequestLineOfAccountingUnprocessableEntity) WriteResponse ¶
func (o *RequestLineOfAccountingUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client