lines_of_accounting

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RequestLineOfAccountingBadRequestCode int = 400

RequestLineOfAccountingBadRequestCode is the HTTP code returned for type RequestLineOfAccountingBadRequest

View Source
const RequestLineOfAccountingForbiddenCode int = 403

RequestLineOfAccountingForbiddenCode is the HTTP code returned for type RequestLineOfAccountingForbidden

View Source
const RequestLineOfAccountingInternalServerErrorCode int = 500

RequestLineOfAccountingInternalServerErrorCode is the HTTP code returned for type RequestLineOfAccountingInternalServerError

View Source
const RequestLineOfAccountingNotFoundCode int = 404

RequestLineOfAccountingNotFoundCode is the HTTP code returned for type RequestLineOfAccountingNotFound

View Source
const RequestLineOfAccountingOKCode int = 200

RequestLineOfAccountingOKCode is the HTTP code returned for type RequestLineOfAccountingOK

View Source
const RequestLineOfAccountingUnauthorizedCode int = 401

RequestLineOfAccountingUnauthorizedCode is the HTTP code returned for type RequestLineOfAccountingUnauthorized

View Source
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

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

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

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

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

SetPayload sets the payload to the request line of accounting internal server error response

func (*RequestLineOfAccountingInternalServerError) WithPayload

WithPayload adds the payload to the request line of accounting internal server error response

func (*RequestLineOfAccountingInternalServerError) WriteResponse

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

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

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

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

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

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

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 {

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

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

WithPayload adds the payload to the request line of accounting unauthorized response

func (*RequestLineOfAccountingUnauthorized) WriteResponse

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

SetPayload sets the payload to the request line of accounting unprocessable entity response

func (*RequestLineOfAccountingUnprocessableEntity) WithPayload

WithPayload adds the payload to the request line of accounting unprocessable entity response

func (*RequestLineOfAccountingUnprocessableEntity) WriteResponse

WriteResponse to the client

Jump to

Keyboard shortcuts

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