From 09d3cfa67968eb61e20e3ee4c34ce0cc984cec28 Mon Sep 17 00:00:00 2001
From: Alex Lusk
-
-
-This is a support endpoint and will not be available in production.
-*/
-type HideNonFakeMoveTaskOrders struct {
- Context *middleware.Context
- Handler HideNonFakeMoveTaskOrdersHandler
-}
-
-func (o *HideNonFakeMoveTaskOrders) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewHideNonFakeMoveTaskOrdersParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go
deleted file mode 100644
index b28c903b281..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go
+++ /dev/null
@@ -1,46 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime/middleware"
-)
-
-// NewHideNonFakeMoveTaskOrdersParams creates a new HideNonFakeMoveTaskOrdersParams object
-//
-// There are no default values defined in the spec.
-func NewHideNonFakeMoveTaskOrdersParams() HideNonFakeMoveTaskOrdersParams {
-
- return HideNonFakeMoveTaskOrdersParams{}
-}
-
-// HideNonFakeMoveTaskOrdersParams contains all the bound params for the hide non fake move task orders operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters hideNonFakeMoveTaskOrders
-type HideNonFakeMoveTaskOrdersParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-}
-
-// 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 NewHideNonFakeMoveTaskOrdersParams() beforehand.
-func (o *HideNonFakeMoveTaskOrdersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go
deleted file mode 100644
index 3b8610b7ad1..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go
+++ /dev/null
@@ -1,419 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// HideNonFakeMoveTaskOrdersOKCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersOK
-const HideNonFakeMoveTaskOrdersOKCode int = 200
-
-/*
-HideNonFakeMoveTaskOrdersOK Successfully hid MTOs.
-
-swagger:response hideNonFakeMoveTaskOrdersOK
-*/
-type HideNonFakeMoveTaskOrdersOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.MTOHideMovesResponse `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersOK creates HideNonFakeMoveTaskOrdersOK with default headers values
-func NewHideNonFakeMoveTaskOrdersOK() *HideNonFakeMoveTaskOrdersOK {
-
- return &HideNonFakeMoveTaskOrdersOK{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders o k response
-func (o *HideNonFakeMoveTaskOrdersOK) WithPayload(payload *supportmessages.MTOHideMovesResponse) *HideNonFakeMoveTaskOrdersOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders o k response
-func (o *HideNonFakeMoveTaskOrdersOK) SetPayload(payload *supportmessages.MTOHideMovesResponse) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersBadRequestCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersBadRequest
-const HideNonFakeMoveTaskOrdersBadRequestCode int = 400
-
-/*
-HideNonFakeMoveTaskOrdersBadRequest The request payload is invalid.
-
-swagger:response hideNonFakeMoveTaskOrdersBadRequest
-*/
-type HideNonFakeMoveTaskOrdersBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersBadRequest creates HideNonFakeMoveTaskOrdersBadRequest with default headers values
-func NewHideNonFakeMoveTaskOrdersBadRequest() *HideNonFakeMoveTaskOrdersBadRequest {
-
- return &HideNonFakeMoveTaskOrdersBadRequest{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders bad request response
-func (o *HideNonFakeMoveTaskOrdersBadRequest) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders bad request response
-func (o *HideNonFakeMoveTaskOrdersBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersUnauthorizedCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersUnauthorized
-const HideNonFakeMoveTaskOrdersUnauthorizedCode int = 401
-
-/*
-HideNonFakeMoveTaskOrdersUnauthorized The request was denied.
-
-swagger:response hideNonFakeMoveTaskOrdersUnauthorized
-*/
-type HideNonFakeMoveTaskOrdersUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersUnauthorized creates HideNonFakeMoveTaskOrdersUnauthorized with default headers values
-func NewHideNonFakeMoveTaskOrdersUnauthorized() *HideNonFakeMoveTaskOrdersUnauthorized {
-
- return &HideNonFakeMoveTaskOrdersUnauthorized{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders unauthorized response
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders unauthorized response
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersForbiddenCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersForbidden
-const HideNonFakeMoveTaskOrdersForbiddenCode int = 403
-
-/*
-HideNonFakeMoveTaskOrdersForbidden The request was denied.
-
-swagger:response hideNonFakeMoveTaskOrdersForbidden
-*/
-type HideNonFakeMoveTaskOrdersForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersForbidden creates HideNonFakeMoveTaskOrdersForbidden with default headers values
-func NewHideNonFakeMoveTaskOrdersForbidden() *HideNonFakeMoveTaskOrdersForbidden {
-
- return &HideNonFakeMoveTaskOrdersForbidden{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders forbidden response
-func (o *HideNonFakeMoveTaskOrdersForbidden) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders forbidden response
-func (o *HideNonFakeMoveTaskOrdersForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersNotFoundCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersNotFound
-const HideNonFakeMoveTaskOrdersNotFoundCode int = 404
-
-/*
-HideNonFakeMoveTaskOrdersNotFound The requested resource wasn't found.
-
-swagger:response hideNonFakeMoveTaskOrdersNotFound
-*/
-type HideNonFakeMoveTaskOrdersNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersNotFound creates HideNonFakeMoveTaskOrdersNotFound with default headers values
-func NewHideNonFakeMoveTaskOrdersNotFound() *HideNonFakeMoveTaskOrdersNotFound {
-
- return &HideNonFakeMoveTaskOrdersNotFound{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders not found response
-func (o *HideNonFakeMoveTaskOrdersNotFound) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders not found response
-func (o *HideNonFakeMoveTaskOrdersNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersConflictCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersConflict
-const HideNonFakeMoveTaskOrdersConflictCode int = 409
-
-/*
-HideNonFakeMoveTaskOrdersConflict There was a conflict with the request.
-
-swagger:response hideNonFakeMoveTaskOrdersConflict
-*/
-type HideNonFakeMoveTaskOrdersConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersConflict creates HideNonFakeMoveTaskOrdersConflict with default headers values
-func NewHideNonFakeMoveTaskOrdersConflict() *HideNonFakeMoveTaskOrdersConflict {
-
- return &HideNonFakeMoveTaskOrdersConflict{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders conflict response
-func (o *HideNonFakeMoveTaskOrdersConflict) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders conflict response
-func (o *HideNonFakeMoveTaskOrdersConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersPreconditionFailedCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersPreconditionFailed
-const HideNonFakeMoveTaskOrdersPreconditionFailedCode int = 412
-
-/*
-HideNonFakeMoveTaskOrdersPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response hideNonFakeMoveTaskOrdersPreconditionFailed
-*/
-type HideNonFakeMoveTaskOrdersPreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersPreconditionFailed creates HideNonFakeMoveTaskOrdersPreconditionFailed with default headers values
-func NewHideNonFakeMoveTaskOrdersPreconditionFailed() *HideNonFakeMoveTaskOrdersPreconditionFailed {
-
- return &HideNonFakeMoveTaskOrdersPreconditionFailed{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders precondition failed response
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersPreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders precondition failed response
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersUnprocessableEntityCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersUnprocessableEntity
-const HideNonFakeMoveTaskOrdersUnprocessableEntityCode int = 422
-
-/*
-HideNonFakeMoveTaskOrdersUnprocessableEntity The payload was unprocessable.
-
-swagger:response hideNonFakeMoveTaskOrdersUnprocessableEntity
-*/
-type HideNonFakeMoveTaskOrdersUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersUnprocessableEntity creates HideNonFakeMoveTaskOrdersUnprocessableEntity with default headers values
-func NewHideNonFakeMoveTaskOrdersUnprocessableEntity() *HideNonFakeMoveTaskOrdersUnprocessableEntity {
-
- return &HideNonFakeMoveTaskOrdersUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders unprocessable entity response
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *HideNonFakeMoveTaskOrdersUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders unprocessable entity response
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// HideNonFakeMoveTaskOrdersInternalServerErrorCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersInternalServerError
-const HideNonFakeMoveTaskOrdersInternalServerErrorCode int = 500
-
-/*
-HideNonFakeMoveTaskOrdersInternalServerError A server error occurred.
-
-swagger:response hideNonFakeMoveTaskOrdersInternalServerError
-*/
-type HideNonFakeMoveTaskOrdersInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewHideNonFakeMoveTaskOrdersInternalServerError creates HideNonFakeMoveTaskOrdersInternalServerError with default headers values
-func NewHideNonFakeMoveTaskOrdersInternalServerError() *HideNonFakeMoveTaskOrdersInternalServerError {
-
- return &HideNonFakeMoveTaskOrdersInternalServerError{}
-}
-
-// WithPayload adds the payload to the hide non fake move task orders internal server error response
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) WithPayload(payload *supportmessages.Error) *HideNonFakeMoveTaskOrdersInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the hide non fake move task orders internal server error response
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go
deleted file mode 100644
index ba5762da8b9..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go
+++ /dev/null
@@ -1,87 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
-)
-
-// HideNonFakeMoveTaskOrdersURL generates an URL for the hide non fake move task orders operation
-type HideNonFakeMoveTaskOrdersURL struct {
- _basePath string
-}
-
-// 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
-func (o *HideNonFakeMoveTaskOrdersURL) WithBasePath(bp string) *HideNonFakeMoveTaskOrdersURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *HideNonFakeMoveTaskOrdersURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *HideNonFakeMoveTaskOrdersURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/move-task-orders/hide"
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *HideNonFakeMoveTaskOrdersURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *HideNonFakeMoveTaskOrdersURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *HideNonFakeMoveTaskOrdersURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on HideNonFakeMoveTaskOrdersURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on HideNonFakeMoveTaskOrdersURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *HideNonFakeMoveTaskOrdersURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go
deleted file mode 100644
index bdbbabe2ec8..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go
+++ /dev/null
@@ -1,61 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// ListMTOsHandlerFunc turns a function with the right signature into a list m t os handler
-type ListMTOsHandlerFunc func(ListMTOsParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn ListMTOsHandlerFunc) Handle(params ListMTOsParams) middleware.Responder {
- return fn(params)
-}
-
-// ListMTOsHandler interface for that can handle valid list m t os params
-type ListMTOsHandler interface {
- Handle(ListMTOsParams) middleware.Responder
-}
-
-// NewListMTOs creates a new http.Handler for the list m t os operation
-func NewListMTOs(ctx *middleware.Context, handler ListMTOsHandler) *ListMTOs {
- return &ListMTOs{Context: ctx, Handler: handler}
-}
-
-/*
- ListMTOs swagger:route GET /move-task-orders moveTaskOrder listMTOs
-
-listMTOs
-
-### Functionality
-This endpoint lists all MoveTaskOrders regardless of whether or not they have been made available to Prime.
-
-It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
-*/
-type ListMTOs struct {
- Context *middleware.Context
- Handler ListMTOsHandler
-}
-
-func (o *ListMTOs) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewListMTOsParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go
deleted file mode 100644
index 754c2290e71..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go
+++ /dev/null
@@ -1,83 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// NewListMTOsParams creates a new ListMTOsParams object
-//
-// There are no default values defined in the spec.
-func NewListMTOsParams() ListMTOsParams {
-
- return ListMTOsParams{}
-}
-
-// ListMTOsParams contains all the bound params for the list m t os operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters listMTOs
-type ListMTOsParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Only return move task orders updated since this time.
- In: query
- */
- Since *int64
-}
-
-// 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 NewListMTOsParams() beforehand.
-func (o *ListMTOsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- qs := runtime.Values(r.URL.Query())
-
- qSince, qhkSince, _ := qs.GetOK("since")
- if err := o.bindSince(qSince, qhkSince, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindSince binds and validates parameter Since from query.
-func (o *ListMTOsParams) bindSince(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: false
- // AllowEmptyValue: false
-
- if raw == "" { // empty values pass all other validations
- return nil
- }
-
- value, err := swag.ConvertInt64(raw)
- if err != nil {
- return errors.InvalidType("since", "query", "int64", raw)
- }
- o.Since = &value
-
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go
deleted file mode 100644
index be3f9c979c0..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ListMTOsOKCode is the HTTP code returned for type ListMTOsOK
-const ListMTOsOKCode int = 200
-
-/*
-ListMTOsOK Successfully retrieved all move task orders.
-
-swagger:response listMTOsOK
-*/
-type ListMTOsOK struct {
-
- /*
- In: Body
- */
- Payload supportmessages.MoveTaskOrders `json:"body,omitempty"`
-}
-
-// NewListMTOsOK creates ListMTOsOK with default headers values
-func NewListMTOsOK() *ListMTOsOK {
-
- return &ListMTOsOK{}
-}
-
-// WithPayload adds the payload to the list m t os o k response
-func (o *ListMTOsOK) WithPayload(payload supportmessages.MoveTaskOrders) *ListMTOsOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os o k response
-func (o *ListMTOsOK) SetPayload(payload supportmessages.MoveTaskOrders) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- payload := o.Payload
- if payload == nil {
- // return empty array
- payload = supportmessages.MoveTaskOrders{}
- }
-
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
-}
-
-// ListMTOsBadRequestCode is the HTTP code returned for type ListMTOsBadRequest
-const ListMTOsBadRequestCode int = 400
-
-/*
-ListMTOsBadRequest The request payload is invalid.
-
-swagger:response listMTOsBadRequest
-*/
-type ListMTOsBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOsBadRequest creates ListMTOsBadRequest with default headers values
-func NewListMTOsBadRequest() *ListMTOsBadRequest {
-
- return &ListMTOsBadRequest{}
-}
-
-// WithPayload adds the payload to the list m t os bad request response
-func (o *ListMTOsBadRequest) WithPayload(payload *supportmessages.ClientError) *ListMTOsBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os bad request response
-func (o *ListMTOsBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOsUnauthorizedCode is the HTTP code returned for type ListMTOsUnauthorized
-const ListMTOsUnauthorizedCode int = 401
-
-/*
-ListMTOsUnauthorized The request was denied.
-
-swagger:response listMTOsUnauthorized
-*/
-type ListMTOsUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOsUnauthorized creates ListMTOsUnauthorized with default headers values
-func NewListMTOsUnauthorized() *ListMTOsUnauthorized {
-
- return &ListMTOsUnauthorized{}
-}
-
-// WithPayload adds the payload to the list m t os unauthorized response
-func (o *ListMTOsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ListMTOsUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os unauthorized response
-func (o *ListMTOsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOsForbiddenCode is the HTTP code returned for type ListMTOsForbidden
-const ListMTOsForbiddenCode int = 403
-
-/*
-ListMTOsForbidden The request was denied.
-
-swagger:response listMTOsForbidden
-*/
-type ListMTOsForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOsForbidden creates ListMTOsForbidden with default headers values
-func NewListMTOsForbidden() *ListMTOsForbidden {
-
- return &ListMTOsForbidden{}
-}
-
-// WithPayload adds the payload to the list m t os forbidden response
-func (o *ListMTOsForbidden) WithPayload(payload *supportmessages.ClientError) *ListMTOsForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os forbidden response
-func (o *ListMTOsForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOsNotFoundCode is the HTTP code returned for type ListMTOsNotFound
-const ListMTOsNotFoundCode int = 404
-
-/*
-ListMTOsNotFound The requested resource wasn't found.
-
-swagger:response listMTOsNotFound
-*/
-type ListMTOsNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOsNotFound creates ListMTOsNotFound with default headers values
-func NewListMTOsNotFound() *ListMTOsNotFound {
-
- return &ListMTOsNotFound{}
-}
-
-// WithPayload adds the payload to the list m t os not found response
-func (o *ListMTOsNotFound) WithPayload(payload *supportmessages.ClientError) *ListMTOsNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os not found response
-func (o *ListMTOsNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOsInternalServerErrorCode is the HTTP code returned for type ListMTOsInternalServerError
-const ListMTOsInternalServerErrorCode int = 500
-
-/*
-ListMTOsInternalServerError A server error occurred.
-
-swagger:response listMTOsInternalServerError
-*/
-type ListMTOsInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewListMTOsInternalServerError creates ListMTOsInternalServerError with default headers values
-func NewListMTOsInternalServerError() *ListMTOsInternalServerError {
-
- return &ListMTOsInternalServerError{}
-}
-
-// WithPayload adds the payload to the list m t os internal server error response
-func (o *ListMTOsInternalServerError) WithPayload(payload *supportmessages.Error) *ListMTOsInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t os internal server error response
-func (o *ListMTOsInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go
deleted file mode 100644
index b78ce93d9e8..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go
+++ /dev/null
@@ -1,105 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
-
- "github.com/go-openapi/swag"
-)
-
-// ListMTOsURL generates an URL for the list m t os operation
-type ListMTOsURL struct {
- Since *int64
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *ListMTOsURL) WithBasePath(bp string) *ListMTOsURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *ListMTOsURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *ListMTOsURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/move-task-orders"
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- qs := make(url.Values)
-
- var sinceQ string
- if o.Since != nil {
- sinceQ = swag.FormatInt64(*o.Since)
- }
- if sinceQ != "" {
- qs.Set("since", sinceQ)
- }
-
- _result.RawQuery = qs.Encode()
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *ListMTOsURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *ListMTOsURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *ListMTOsURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on ListMTOsURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on ListMTOsURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *ListMTOsURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go
deleted file mode 100644
index 203b0a2c1a2..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go
+++ /dev/null
@@ -1,60 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// MakeMoveTaskOrderAvailableHandlerFunc turns a function with the right signature into a make move task order available handler
-type MakeMoveTaskOrderAvailableHandlerFunc func(MakeMoveTaskOrderAvailableParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn MakeMoveTaskOrderAvailableHandlerFunc) Handle(params MakeMoveTaskOrderAvailableParams) middleware.Responder {
- return fn(params)
-}
-
-// MakeMoveTaskOrderAvailableHandler interface for that can handle valid make move task order available params
-type MakeMoveTaskOrderAvailableHandler interface {
- Handle(MakeMoveTaskOrderAvailableParams) middleware.Responder
-}
-
-// NewMakeMoveTaskOrderAvailable creates a new http.Handler for the make move task order available operation
-func NewMakeMoveTaskOrderAvailable(ctx *middleware.Context, handler MakeMoveTaskOrderAvailableHandler) *MakeMoveTaskOrderAvailable {
- return &MakeMoveTaskOrderAvailable{Context: ctx, Handler: handler}
-}
-
-/*
- MakeMoveTaskOrderAvailable swagger:route PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime moveTaskOrder makeMoveTaskOrderAvailable
-
-makeMoveTaskOrderAvailable
-
-Updates move task order `availableToPrimeAt` to make it available to prime. No request body required.
-
-This is a support endpoint and will not be available in production.
-*/
-type MakeMoveTaskOrderAvailable struct {
- Context *middleware.Context
- Handler MakeMoveTaskOrderAvailableHandler
-}
-
-func (o *MakeMoveTaskOrderAvailable) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewMakeMoveTaskOrderAvailableParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go
deleted file mode 100644
index f4b48155900..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go
+++ /dev/null
@@ -1,102 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// NewMakeMoveTaskOrderAvailableParams creates a new MakeMoveTaskOrderAvailableParams object
-//
-// There are no default values defined in the spec.
-func NewMakeMoveTaskOrderAvailableParams() MakeMoveTaskOrderAvailableParams {
-
- return MakeMoveTaskOrderAvailableParams{}
-}
-
-// MakeMoveTaskOrderAvailableParams contains all the bound params for the make move task order available operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters makeMoveTaskOrderAvailable
-type MakeMoveTaskOrderAvailableParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- Required: true
- In: header
- */
- IfMatch string
- /*UUID of move task order.
- Required: true
- In: path
- */
- MoveTaskOrderID string
-}
-
-// 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 NewMakeMoveTaskOrderAvailableParams() beforehand.
-func (o *MakeMoveTaskOrderAvailableParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
- res = append(res, err)
- }
-
- rMoveTaskOrderID, rhkMoveTaskOrderID, _ := route.Params.GetOK("moveTaskOrderID")
- if err := o.bindMoveTaskOrderID(rMoveTaskOrderID, rhkMoveTaskOrderID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindIfMatch binds and validates parameter IfMatch from header.
-func (o *MakeMoveTaskOrderAvailableParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
- if !hasKey {
- return errors.Required("If-Match", "header", rawData)
- }
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
-
- if err := validate.RequiredString("If-Match", "header", raw); err != nil {
- return err
- }
- o.IfMatch = raw
-
- return nil
-}
-
-// bindMoveTaskOrderID binds and validates parameter MoveTaskOrderID from path.
-func (o *MakeMoveTaskOrderAvailableParams) bindMoveTaskOrderID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
- o.MoveTaskOrderID = raw
-
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go
deleted file mode 100644
index 9db559ee96c..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go
+++ /dev/null
@@ -1,374 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// MakeMoveTaskOrderAvailableOKCode is the HTTP code returned for type MakeMoveTaskOrderAvailableOK
-const MakeMoveTaskOrderAvailableOKCode int = 200
-
-/*
-MakeMoveTaskOrderAvailableOK Successfully made MTO available to Prime.
-
-swagger:response makeMoveTaskOrderAvailableOK
-*/
-type MakeMoveTaskOrderAvailableOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.MoveTaskOrder `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableOK creates MakeMoveTaskOrderAvailableOK with default headers values
-func NewMakeMoveTaskOrderAvailableOK() *MakeMoveTaskOrderAvailableOK {
-
- return &MakeMoveTaskOrderAvailableOK{}
-}
-
-// WithPayload adds the payload to the make move task order available o k response
-func (o *MakeMoveTaskOrderAvailableOK) WithPayload(payload *supportmessages.MoveTaskOrder) *MakeMoveTaskOrderAvailableOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available o k response
-func (o *MakeMoveTaskOrderAvailableOK) SetPayload(payload *supportmessages.MoveTaskOrder) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableBadRequestCode is the HTTP code returned for type MakeMoveTaskOrderAvailableBadRequest
-const MakeMoveTaskOrderAvailableBadRequestCode int = 400
-
-/*
-MakeMoveTaskOrderAvailableBadRequest The request payload is invalid.
-
-swagger:response makeMoveTaskOrderAvailableBadRequest
-*/
-type MakeMoveTaskOrderAvailableBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableBadRequest creates MakeMoveTaskOrderAvailableBadRequest with default headers values
-func NewMakeMoveTaskOrderAvailableBadRequest() *MakeMoveTaskOrderAvailableBadRequest {
-
- return &MakeMoveTaskOrderAvailableBadRequest{}
-}
-
-// WithPayload adds the payload to the make move task order available bad request response
-func (o *MakeMoveTaskOrderAvailableBadRequest) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available bad request response
-func (o *MakeMoveTaskOrderAvailableBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableUnauthorizedCode is the HTTP code returned for type MakeMoveTaskOrderAvailableUnauthorized
-const MakeMoveTaskOrderAvailableUnauthorizedCode int = 401
-
-/*
-MakeMoveTaskOrderAvailableUnauthorized The request was denied.
-
-swagger:response makeMoveTaskOrderAvailableUnauthorized
-*/
-type MakeMoveTaskOrderAvailableUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableUnauthorized creates MakeMoveTaskOrderAvailableUnauthorized with default headers values
-func NewMakeMoveTaskOrderAvailableUnauthorized() *MakeMoveTaskOrderAvailableUnauthorized {
-
- return &MakeMoveTaskOrderAvailableUnauthorized{}
-}
-
-// WithPayload adds the payload to the make move task order available unauthorized response
-func (o *MakeMoveTaskOrderAvailableUnauthorized) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available unauthorized response
-func (o *MakeMoveTaskOrderAvailableUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableForbiddenCode is the HTTP code returned for type MakeMoveTaskOrderAvailableForbidden
-const MakeMoveTaskOrderAvailableForbiddenCode int = 403
-
-/*
-MakeMoveTaskOrderAvailableForbidden The request was denied.
-
-swagger:response makeMoveTaskOrderAvailableForbidden
-*/
-type MakeMoveTaskOrderAvailableForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableForbidden creates MakeMoveTaskOrderAvailableForbidden with default headers values
-func NewMakeMoveTaskOrderAvailableForbidden() *MakeMoveTaskOrderAvailableForbidden {
-
- return &MakeMoveTaskOrderAvailableForbidden{}
-}
-
-// WithPayload adds the payload to the make move task order available forbidden response
-func (o *MakeMoveTaskOrderAvailableForbidden) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available forbidden response
-func (o *MakeMoveTaskOrderAvailableForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableNotFoundCode is the HTTP code returned for type MakeMoveTaskOrderAvailableNotFound
-const MakeMoveTaskOrderAvailableNotFoundCode int = 404
-
-/*
-MakeMoveTaskOrderAvailableNotFound The requested resource wasn't found.
-
-swagger:response makeMoveTaskOrderAvailableNotFound
-*/
-type MakeMoveTaskOrderAvailableNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableNotFound creates MakeMoveTaskOrderAvailableNotFound with default headers values
-func NewMakeMoveTaskOrderAvailableNotFound() *MakeMoveTaskOrderAvailableNotFound {
-
- return &MakeMoveTaskOrderAvailableNotFound{}
-}
-
-// WithPayload adds the payload to the make move task order available not found response
-func (o *MakeMoveTaskOrderAvailableNotFound) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available not found response
-func (o *MakeMoveTaskOrderAvailableNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailablePreconditionFailedCode is the HTTP code returned for type MakeMoveTaskOrderAvailablePreconditionFailed
-const MakeMoveTaskOrderAvailablePreconditionFailedCode int = 412
-
-/*
-MakeMoveTaskOrderAvailablePreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response makeMoveTaskOrderAvailablePreconditionFailed
-*/
-type MakeMoveTaskOrderAvailablePreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailablePreconditionFailed creates MakeMoveTaskOrderAvailablePreconditionFailed with default headers values
-func NewMakeMoveTaskOrderAvailablePreconditionFailed() *MakeMoveTaskOrderAvailablePreconditionFailed {
-
- return &MakeMoveTaskOrderAvailablePreconditionFailed{}
-}
-
-// WithPayload adds the payload to the make move task order available precondition failed response
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailablePreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available precondition failed response
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableUnprocessableEntityCode is the HTTP code returned for type MakeMoveTaskOrderAvailableUnprocessableEntity
-const MakeMoveTaskOrderAvailableUnprocessableEntityCode int = 422
-
-/*
-MakeMoveTaskOrderAvailableUnprocessableEntity The payload was unprocessable.
-
-swagger:response makeMoveTaskOrderAvailableUnprocessableEntity
-*/
-type MakeMoveTaskOrderAvailableUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableUnprocessableEntity creates MakeMoveTaskOrderAvailableUnprocessableEntity with default headers values
-func NewMakeMoveTaskOrderAvailableUnprocessableEntity() *MakeMoveTaskOrderAvailableUnprocessableEntity {
-
- return &MakeMoveTaskOrderAvailableUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the make move task order available unprocessable entity response
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *MakeMoveTaskOrderAvailableUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available unprocessable entity response
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// MakeMoveTaskOrderAvailableInternalServerErrorCode is the HTTP code returned for type MakeMoveTaskOrderAvailableInternalServerError
-const MakeMoveTaskOrderAvailableInternalServerErrorCode int = 500
-
-/*
-MakeMoveTaskOrderAvailableInternalServerError A server error occurred.
-
-swagger:response makeMoveTaskOrderAvailableInternalServerError
-*/
-type MakeMoveTaskOrderAvailableInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewMakeMoveTaskOrderAvailableInternalServerError creates MakeMoveTaskOrderAvailableInternalServerError with default headers values
-func NewMakeMoveTaskOrderAvailableInternalServerError() *MakeMoveTaskOrderAvailableInternalServerError {
-
- return &MakeMoveTaskOrderAvailableInternalServerError{}
-}
-
-// WithPayload adds the payload to the make move task order available internal server error response
-func (o *MakeMoveTaskOrderAvailableInternalServerError) WithPayload(payload *supportmessages.Error) *MakeMoveTaskOrderAvailableInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the make move task order available internal server error response
-func (o *MakeMoveTaskOrderAvailableInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *MakeMoveTaskOrderAvailableInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go
deleted file mode 100644
index 876b193942f..00000000000
--- a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go
+++ /dev/null
@@ -1,99 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-)
-
-// MakeMoveTaskOrderAvailableURL generates an URL for the make move task order available operation
-type MakeMoveTaskOrderAvailableURL struct {
- MoveTaskOrderID string
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *MakeMoveTaskOrderAvailableURL) WithBasePath(bp string) *MakeMoveTaskOrderAvailableURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *MakeMoveTaskOrderAvailableURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *MakeMoveTaskOrderAvailableURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/move-task-orders/{moveTaskOrderID}/available-to-prime"
-
- moveTaskOrderID := o.MoveTaskOrderID
- if moveTaskOrderID != "" {
- _path = strings.Replace(_path, "{moveTaskOrderID}", moveTaskOrderID, -1)
- } else {
- return nil, errors.New("moveTaskOrderId is required on MakeMoveTaskOrderAvailableURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *MakeMoveTaskOrderAvailableURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *MakeMoveTaskOrderAvailableURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *MakeMoveTaskOrderAvailableURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on MakeMoveTaskOrderAvailableURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on MakeMoveTaskOrderAvailableURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *MakeMoveTaskOrderAvailableURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go
deleted file mode 100644
index 795ce4b9285..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go
+++ /dev/null
@@ -1,60 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// UpdateMTOServiceItemStatusHandlerFunc turns a function with the right signature into a update m t o service item status handler
-type UpdateMTOServiceItemStatusHandlerFunc func(UpdateMTOServiceItemStatusParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn UpdateMTOServiceItemStatusHandlerFunc) Handle(params UpdateMTOServiceItemStatusParams) middleware.Responder {
- return fn(params)
-}
-
-// UpdateMTOServiceItemStatusHandler interface for that can handle valid update m t o service item status params
-type UpdateMTOServiceItemStatusHandler interface {
- Handle(UpdateMTOServiceItemStatusParams) middleware.Responder
-}
-
-// NewUpdateMTOServiceItemStatus creates a new http.Handler for the update m t o service item status operation
-func NewUpdateMTOServiceItemStatus(ctx *middleware.Context, handler UpdateMTOServiceItemStatusHandler) *UpdateMTOServiceItemStatus {
- return &UpdateMTOServiceItemStatus{Context: ctx, Handler: handler}
-}
-
-/*
- UpdateMTOServiceItemStatus swagger:route PATCH /mto-service-items/{mtoServiceItemID}/status mtoServiceItem updateMTOServiceItemStatus
-
-updateMTOServiceItemStatus
-
-Updates the status of a service item for a move to APPROVED or REJECTED.
-
-This is a support endpoint and will not be available in production.
-*/
-type UpdateMTOServiceItemStatus struct {
- Context *middleware.Context
- Handler UpdateMTOServiceItemStatusHandler
-}
-
-func (o *UpdateMTOServiceItemStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewUpdateMTOServiceItemStatusParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go
deleted file mode 100644
index 84aff8969a1..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go
+++ /dev/null
@@ -1,139 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "io"
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams object
-//
-// There are no default values defined in the spec.
-func NewUpdateMTOServiceItemStatusParams() UpdateMTOServiceItemStatusParams {
-
- return UpdateMTOServiceItemStatusParams{}
-}
-
-// UpdateMTOServiceItemStatusParams contains all the bound params for the update m t o service item status operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters updateMTOServiceItemStatus
-type UpdateMTOServiceItemStatusParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- Required: true
- In: header
- */
- IfMatch string
- /*
- Required: true
- In: body
- */
- Body *supportmessages.UpdateMTOServiceItemStatus
- /*UUID of mto service item to use.
- Required: true
- In: path
- */
- MtoServiceItemID string
-}
-
-// 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 NewUpdateMTOServiceItemStatusParams() beforehand.
-func (o *UpdateMTOServiceItemStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.UpdateMTOServiceItemStatus
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- if err == io.EOF {
- res = append(res, errors.Required("body", "body", ""))
- } else {
- res = append(res, errors.NewParseError("body", "body", "", err))
- }
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- } else {
- res = append(res, errors.Required("body", "body", ""))
- }
-
- rMtoServiceItemID, rhkMtoServiceItemID, _ := route.Params.GetOK("mtoServiceItemID")
- if err := o.bindMtoServiceItemID(rMtoServiceItemID, rhkMtoServiceItemID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindIfMatch binds and validates parameter IfMatch from header.
-func (o *UpdateMTOServiceItemStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
- if !hasKey {
- return errors.Required("If-Match", "header", rawData)
- }
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
-
- if err := validate.RequiredString("If-Match", "header", raw); err != nil {
- return err
- }
- o.IfMatch = raw
-
- return nil
-}
-
-// bindMtoServiceItemID binds and validates parameter MtoServiceItemID from path.
-func (o *UpdateMTOServiceItemStatusParams) bindMtoServiceItemID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
- o.MtoServiceItemID = raw
-
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go
deleted file mode 100644
index 8ef6bd9a8d4..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go
+++ /dev/null
@@ -1,419 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdateMTOServiceItemStatusOKCode is the HTTP code returned for type UpdateMTOServiceItemStatusOK
-const UpdateMTOServiceItemStatusOKCode int = 200
-
-/*
-UpdateMTOServiceItemStatusOK Successfully updated service item status for a move task order.
-
-swagger:response updateMTOServiceItemStatusOK
-*/
-type UpdateMTOServiceItemStatusOK struct {
-
- /*
- In: Body
- */
- Payload supportmessages.MTOServiceItem `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusOK creates UpdateMTOServiceItemStatusOK with default headers values
-func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK {
-
- return &UpdateMTOServiceItemStatusOK{}
-}
-
-// WithPayload adds the payload to the update m t o service item status o k response
-func (o *UpdateMTOServiceItemStatusOK) WithPayload(payload supportmessages.MTOServiceItem) *UpdateMTOServiceItemStatusOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status o k response
-func (o *UpdateMTOServiceItemStatusOK) SetPayload(payload supportmessages.MTOServiceItem) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusBadRequestCode is the HTTP code returned for type UpdateMTOServiceItemStatusBadRequest
-const UpdateMTOServiceItemStatusBadRequestCode int = 400
-
-/*
-UpdateMTOServiceItemStatusBadRequest The request payload is invalid.
-
-swagger:response updateMTOServiceItemStatusBadRequest
-*/
-type UpdateMTOServiceItemStatusBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusBadRequest creates UpdateMTOServiceItemStatusBadRequest with default headers values
-func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest {
-
- return &UpdateMTOServiceItemStatusBadRequest{}
-}
-
-// WithPayload adds the payload to the update m t o service item status bad request response
-func (o *UpdateMTOServiceItemStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status bad request response
-func (o *UpdateMTOServiceItemStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnauthorized
-const UpdateMTOServiceItemStatusUnauthorizedCode int = 401
-
-/*
-UpdateMTOServiceItemStatusUnauthorized The request was denied.
-
-swagger:response updateMTOServiceItemStatusUnauthorized
-*/
-type UpdateMTOServiceItemStatusUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusUnauthorized creates UpdateMTOServiceItemStatusUnauthorized with default headers values
-func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized {
-
- return &UpdateMTOServiceItemStatusUnauthorized{}
-}
-
-// WithPayload adds the payload to the update m t o service item status unauthorized response
-func (o *UpdateMTOServiceItemStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status unauthorized response
-func (o *UpdateMTOServiceItemStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusForbiddenCode is the HTTP code returned for type UpdateMTOServiceItemStatusForbidden
-const UpdateMTOServiceItemStatusForbiddenCode int = 403
-
-/*
-UpdateMTOServiceItemStatusForbidden The request was denied.
-
-swagger:response updateMTOServiceItemStatusForbidden
-*/
-type UpdateMTOServiceItemStatusForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusForbidden creates UpdateMTOServiceItemStatusForbidden with default headers values
-func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden {
-
- return &UpdateMTOServiceItemStatusForbidden{}
-}
-
-// WithPayload adds the payload to the update m t o service item status forbidden response
-func (o *UpdateMTOServiceItemStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status forbidden response
-func (o *UpdateMTOServiceItemStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusNotFoundCode is the HTTP code returned for type UpdateMTOServiceItemStatusNotFound
-const UpdateMTOServiceItemStatusNotFoundCode int = 404
-
-/*
-UpdateMTOServiceItemStatusNotFound The requested resource wasn't found.
-
-swagger:response updateMTOServiceItemStatusNotFound
-*/
-type UpdateMTOServiceItemStatusNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusNotFound creates UpdateMTOServiceItemStatusNotFound with default headers values
-func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound {
-
- return &UpdateMTOServiceItemStatusNotFound{}
-}
-
-// WithPayload adds the payload to the update m t o service item status not found response
-func (o *UpdateMTOServiceItemStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status not found response
-func (o *UpdateMTOServiceItemStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusConflictCode is the HTTP code returned for type UpdateMTOServiceItemStatusConflict
-const UpdateMTOServiceItemStatusConflictCode int = 409
-
-/*
-UpdateMTOServiceItemStatusConflict There was a conflict with the request.
-
-swagger:response updateMTOServiceItemStatusConflict
-*/
-type UpdateMTOServiceItemStatusConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusConflict creates UpdateMTOServiceItemStatusConflict with default headers values
-func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict {
-
- return &UpdateMTOServiceItemStatusConflict{}
-}
-
-// WithPayload adds the payload to the update m t o service item status conflict response
-func (o *UpdateMTOServiceItemStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status conflict response
-func (o *UpdateMTOServiceItemStatusConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOServiceItemStatusPreconditionFailed
-const UpdateMTOServiceItemStatusPreconditionFailedCode int = 412
-
-/*
-UpdateMTOServiceItemStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response updateMTOServiceItemStatusPreconditionFailed
-*/
-type UpdateMTOServiceItemStatusPreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusPreconditionFailed creates UpdateMTOServiceItemStatusPreconditionFailed with default headers values
-func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed {
-
- return &UpdateMTOServiceItemStatusPreconditionFailed{}
-}
-
-// WithPayload adds the payload to the update m t o service item status precondition failed response
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusPreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status precondition failed response
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnprocessableEntity
-const UpdateMTOServiceItemStatusUnprocessableEntityCode int = 422
-
-/*
-UpdateMTOServiceItemStatusUnprocessableEntity The payload was unprocessable.
-
-swagger:response updateMTOServiceItemStatusUnprocessableEntity
-*/
-type UpdateMTOServiceItemStatusUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusUnprocessableEntity creates UpdateMTOServiceItemStatusUnprocessableEntity with default headers values
-func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity {
-
- return &UpdateMTOServiceItemStatusUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the update m t o service item status unprocessable entity response
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdateMTOServiceItemStatusUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status unprocessable entity response
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOServiceItemStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOServiceItemStatusInternalServerError
-const UpdateMTOServiceItemStatusInternalServerErrorCode int = 500
-
-/*
-UpdateMTOServiceItemStatusInternalServerError A server error occurred.
-
-swagger:response updateMTOServiceItemStatusInternalServerError
-*/
-type UpdateMTOServiceItemStatusInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewUpdateMTOServiceItemStatusInternalServerError creates UpdateMTOServiceItemStatusInternalServerError with default headers values
-func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError {
-
- return &UpdateMTOServiceItemStatusInternalServerError{}
-}
-
-// WithPayload adds the payload to the update m t o service item status internal server error response
-func (o *UpdateMTOServiceItemStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdateMTOServiceItemStatusInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o service item status internal server error response
-func (o *UpdateMTOServiceItemStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOServiceItemStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go
deleted file mode 100644
index c9255587b06..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go
+++ /dev/null
@@ -1,99 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-)
-
-// UpdateMTOServiceItemStatusURL generates an URL for the update m t o service item status operation
-type UpdateMTOServiceItemStatusURL struct {
- MtoServiceItemID string
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *UpdateMTOServiceItemStatusURL) WithBasePath(bp string) *UpdateMTOServiceItemStatusURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *UpdateMTOServiceItemStatusURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *UpdateMTOServiceItemStatusURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/mto-service-items/{mtoServiceItemID}/status"
-
- mtoServiceItemID := o.MtoServiceItemID
- if mtoServiceItemID != "" {
- _path = strings.Replace(_path, "{mtoServiceItemID}", mtoServiceItemID, -1)
- } else {
- return nil, errors.New("mtoServiceItemId is required on UpdateMTOServiceItemStatusURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *UpdateMTOServiceItemStatusURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *UpdateMTOServiceItemStatusURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *UpdateMTOServiceItemStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on UpdateMTOServiceItemStatusURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on UpdateMTOServiceItemStatusURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *UpdateMTOServiceItemStatusURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go
deleted file mode 100644
index b99cc684796..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go
+++ /dev/null
@@ -1,58 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// UpdateMTOShipmentStatusHandlerFunc turns a function with the right signature into a update m t o shipment status handler
-type UpdateMTOShipmentStatusHandlerFunc func(UpdateMTOShipmentStatusParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn UpdateMTOShipmentStatusHandlerFunc) Handle(params UpdateMTOShipmentStatusParams) middleware.Responder {
- return fn(params)
-}
-
-// UpdateMTOShipmentStatusHandler interface for that can handle valid update m t o shipment status params
-type UpdateMTOShipmentStatusHandler interface {
- Handle(UpdateMTOShipmentStatusParams) middleware.Responder
-}
-
-// NewUpdateMTOShipmentStatus creates a new http.Handler for the update m t o shipment status operation
-func NewUpdateMTOShipmentStatus(ctx *middleware.Context, handler UpdateMTOShipmentStatusHandler) *UpdateMTOShipmentStatus {
- return &UpdateMTOShipmentStatus{Context: ctx, Handler: handler}
-}
-
-/*
- UpdateMTOShipmentStatus swagger:route PATCH /mto-shipments/{mtoShipmentID}/status mtoShipment updateMTOShipmentStatus
-
-updateMTOShipmentStatus
-
-Updates a shipment's status to APPROVED or REJECTED for the purpose of testing the Prime API. If APPROVED, `rejectionReason` should be blank and any value passed through the body will be ignored. If REJECTED, a value in `rejectionReason` is required.
This is a support endpoint and will not be available in production.
-*/
-type UpdateMTOShipmentStatus struct {
- Context *middleware.Context
- Handler UpdateMTOShipmentStatusHandler
-}
-
-func (o *UpdateMTOShipmentStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewUpdateMTOShipmentStatusParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go
deleted file mode 100644
index 730d906a24d..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go
+++ /dev/null
@@ -1,158 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "io"
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object
-//
-// There are no default values defined in the spec.
-func NewUpdateMTOShipmentStatusParams() UpdateMTOShipmentStatusParams {
-
- return UpdateMTOShipmentStatusParams{}
-}
-
-// UpdateMTOShipmentStatusParams contains all the bound params for the update m t o shipment status operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters updateMTOShipmentStatus
-type UpdateMTOShipmentStatusParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- Required: true
- In: header
- */
- IfMatch string
- /*
- Required: true
- In: body
- */
- Body *supportmessages.UpdateMTOShipmentStatus
- /*UUID of the shipment being updated.
- Required: true
- In: path
- */
- MtoShipmentID strfmt.UUID
-}
-
-// 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 NewUpdateMTOShipmentStatusParams() beforehand.
-func (o *UpdateMTOShipmentStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.UpdateMTOShipmentStatus
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- if err == io.EOF {
- res = append(res, errors.Required("body", "body", ""))
- } else {
- res = append(res, errors.NewParseError("body", "body", "", err))
- }
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- } else {
- res = append(res, errors.Required("body", "body", ""))
- }
-
- rMtoShipmentID, rhkMtoShipmentID, _ := route.Params.GetOK("mtoShipmentID")
- if err := o.bindMtoShipmentID(rMtoShipmentID, rhkMtoShipmentID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindIfMatch binds and validates parameter IfMatch from header.
-func (o *UpdateMTOShipmentStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
- if !hasKey {
- return errors.Required("If-Match", "header", rawData)
- }
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
-
- if err := validate.RequiredString("If-Match", "header", raw); err != nil {
- return err
- }
- o.IfMatch = raw
-
- return nil
-}
-
-// bindMtoShipmentID binds and validates parameter MtoShipmentID from path.
-func (o *UpdateMTOShipmentStatusParams) bindMtoShipmentID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
-
- // Format: uuid
- value, err := formats.Parse("uuid", raw)
- if err != nil {
- return errors.InvalidType("mtoShipmentID", "path", "strfmt.UUID", raw)
- }
- o.MtoShipmentID = *(value.(*strfmt.UUID))
-
- if err := o.validateMtoShipmentID(formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// validateMtoShipmentID carries on validations for parameter MtoShipmentID
-func (o *UpdateMTOShipmentStatusParams) validateMtoShipmentID(formats strfmt.Registry) error {
-
- if err := validate.FormatOf("mtoShipmentID", "path", "uuid", o.MtoShipmentID.String(), formats); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go
deleted file mode 100644
index 8fb69fb0fdd..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go
+++ /dev/null
@@ -1,419 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdateMTOShipmentStatusOKCode is the HTTP code returned for type UpdateMTOShipmentStatusOK
-const UpdateMTOShipmentStatusOKCode int = 200
-
-/*
-UpdateMTOShipmentStatusOK Successfully updated the shipment's status.
-
-swagger:response updateMTOShipmentStatusOK
-*/
-type UpdateMTOShipmentStatusOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.MTOShipment `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusOK creates UpdateMTOShipmentStatusOK with default headers values
-func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK {
-
- return &UpdateMTOShipmentStatusOK{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status o k response
-func (o *UpdateMTOShipmentStatusOK) WithPayload(payload *supportmessages.MTOShipment) *UpdateMTOShipmentStatusOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status o k response
-func (o *UpdateMTOShipmentStatusOK) SetPayload(payload *supportmessages.MTOShipment) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusBadRequestCode is the HTTP code returned for type UpdateMTOShipmentStatusBadRequest
-const UpdateMTOShipmentStatusBadRequestCode int = 400
-
-/*
-UpdateMTOShipmentStatusBadRequest The request payload is invalid.
-
-swagger:response updateMTOShipmentStatusBadRequest
-*/
-type UpdateMTOShipmentStatusBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusBadRequest creates UpdateMTOShipmentStatusBadRequest with default headers values
-func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest {
-
- return &UpdateMTOShipmentStatusBadRequest{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status bad request response
-func (o *UpdateMTOShipmentStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status bad request response
-func (o *UpdateMTOShipmentStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentStatusUnauthorized
-const UpdateMTOShipmentStatusUnauthorizedCode int = 401
-
-/*
-UpdateMTOShipmentStatusUnauthorized The request was denied.
-
-swagger:response updateMTOShipmentStatusUnauthorized
-*/
-type UpdateMTOShipmentStatusUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusUnauthorized creates UpdateMTOShipmentStatusUnauthorized with default headers values
-func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized {
-
- return &UpdateMTOShipmentStatusUnauthorized{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status unauthorized response
-func (o *UpdateMTOShipmentStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status unauthorized response
-func (o *UpdateMTOShipmentStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusForbiddenCode is the HTTP code returned for type UpdateMTOShipmentStatusForbidden
-const UpdateMTOShipmentStatusForbiddenCode int = 403
-
-/*
-UpdateMTOShipmentStatusForbidden The request was denied.
-
-swagger:response updateMTOShipmentStatusForbidden
-*/
-type UpdateMTOShipmentStatusForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusForbidden creates UpdateMTOShipmentStatusForbidden with default headers values
-func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden {
-
- return &UpdateMTOShipmentStatusForbidden{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status forbidden response
-func (o *UpdateMTOShipmentStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status forbidden response
-func (o *UpdateMTOShipmentStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusNotFoundCode is the HTTP code returned for type UpdateMTOShipmentStatusNotFound
-const UpdateMTOShipmentStatusNotFoundCode int = 404
-
-/*
-UpdateMTOShipmentStatusNotFound The requested resource wasn't found.
-
-swagger:response updateMTOShipmentStatusNotFound
-*/
-type UpdateMTOShipmentStatusNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusNotFound creates UpdateMTOShipmentStatusNotFound with default headers values
-func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound {
-
- return &UpdateMTOShipmentStatusNotFound{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status not found response
-func (o *UpdateMTOShipmentStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status not found response
-func (o *UpdateMTOShipmentStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusConflictCode is the HTTP code returned for type UpdateMTOShipmentStatusConflict
-const UpdateMTOShipmentStatusConflictCode int = 409
-
-/*
-UpdateMTOShipmentStatusConflict There was a conflict with the request.
-
-swagger:response updateMTOShipmentStatusConflict
-*/
-type UpdateMTOShipmentStatusConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusConflict creates UpdateMTOShipmentStatusConflict with default headers values
-func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict {
-
- return &UpdateMTOShipmentStatusConflict{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status conflict response
-func (o *UpdateMTOShipmentStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status conflict response
-func (o *UpdateMTOShipmentStatusConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentStatusPreconditionFailed
-const UpdateMTOShipmentStatusPreconditionFailedCode int = 412
-
-/*
-UpdateMTOShipmentStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response updateMTOShipmentStatusPreconditionFailed
-*/
-type UpdateMTOShipmentStatusPreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusPreconditionFailed creates UpdateMTOShipmentStatusPreconditionFailed with default headers values
-func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed {
-
- return &UpdateMTOShipmentStatusPreconditionFailed{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status precondition failed response
-func (o *UpdateMTOShipmentStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusPreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status precondition failed response
-func (o *UpdateMTOShipmentStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentStatusUnprocessableEntity
-const UpdateMTOShipmentStatusUnprocessableEntityCode int = 422
-
-/*
-UpdateMTOShipmentStatusUnprocessableEntity The payload was unprocessable.
-
-swagger:response updateMTOShipmentStatusUnprocessableEntity
-*/
-type UpdateMTOShipmentStatusUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusUnprocessableEntity creates UpdateMTOShipmentStatusUnprocessableEntity with default headers values
-func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity {
-
- return &UpdateMTOShipmentStatusUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status unprocessable entity response
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdateMTOShipmentStatusUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status unprocessable entity response
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdateMTOShipmentStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentStatusInternalServerError
-const UpdateMTOShipmentStatusInternalServerErrorCode int = 500
-
-/*
-UpdateMTOShipmentStatusInternalServerError A server error occurred.
-
-swagger:response updateMTOShipmentStatusInternalServerError
-*/
-type UpdateMTOShipmentStatusInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewUpdateMTOShipmentStatusInternalServerError creates UpdateMTOShipmentStatusInternalServerError with default headers values
-func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError {
-
- return &UpdateMTOShipmentStatusInternalServerError{}
-}
-
-// WithPayload adds the payload to the update m t o shipment status internal server error response
-func (o *UpdateMTOShipmentStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdateMTOShipmentStatusInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update m t o shipment status internal server error response
-func (o *UpdateMTOShipmentStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdateMTOShipmentStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go
deleted file mode 100644
index 6637961762f..00000000000
--- a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-
- "github.com/go-openapi/strfmt"
-)
-
-// UpdateMTOShipmentStatusURL generates an URL for the update m t o shipment status operation
-type UpdateMTOShipmentStatusURL struct {
- MtoShipmentID strfmt.UUID
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *UpdateMTOShipmentStatusURL) WithBasePath(bp string) *UpdateMTOShipmentStatusURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *UpdateMTOShipmentStatusURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *UpdateMTOShipmentStatusURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/mto-shipments/{mtoShipmentID}/status"
-
- mtoShipmentID := o.MtoShipmentID.String()
- if mtoShipmentID != "" {
- _path = strings.Replace(_path, "{mtoShipmentID}", mtoShipmentID, -1)
- } else {
- return nil, errors.New("mtoShipmentId is required on UpdateMTOShipmentStatusURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *UpdateMTOShipmentStatusURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *UpdateMTOShipmentStatusURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *UpdateMTOShipmentStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on UpdateMTOShipmentStatusURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on UpdateMTOShipmentStatusURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *UpdateMTOShipmentStatusURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/mymove_api.go b/pkg/gen/supportapi/supportoperations/mymove_api.go
deleted file mode 100644
index 7a9a7b04e5b..00000000000
--- a/pkg/gen/supportapi/supportoperations/mymove_api.go
+++ /dev/null
@@ -1,469 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportoperations
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "net/http"
- "strings"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/loads"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/runtime/security"
- "github.com/go-openapi/spec"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-
- "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/move_task_order"
- "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/mto_service_item"
- "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/mto_shipment"
- "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/payment_request"
- "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/webhook"
-)
-
-// NewMymoveAPI creates a new Mymove instance
-func NewMymoveAPI(spec *loads.Document) *MymoveAPI {
- return &MymoveAPI{
- handlers: make(map[string]map[string]http.Handler),
- formats: strfmt.Default,
- defaultConsumes: "application/json",
- defaultProduces: "application/json",
- customConsumers: make(map[string]runtime.Consumer),
- customProducers: make(map[string]runtime.Producer),
- PreServerShutdown: func() {},
- ServerShutdown: func() {},
- spec: spec,
- useSwaggerUI: false,
- ServeError: errors.ServeError,
- BasicAuthenticator: security.BasicAuth,
- APIKeyAuthenticator: security.APIKeyAuth,
- BearerAuthenticator: security.BearerAuth,
-
- JSONConsumer: runtime.JSONConsumer(),
-
- JSONProducer: runtime.JSONProducer(),
-
- MoveTaskOrderCreateMoveTaskOrderHandler: move_task_order.CreateMoveTaskOrderHandlerFunc(func(params move_task_order.CreateMoveTaskOrderParams) middleware.Responder {
- return middleware.NotImplemented("operation move_task_order.CreateMoveTaskOrder has not yet been implemented")
- }),
- WebhookCreateWebhookNotificationHandler: webhook.CreateWebhookNotificationHandlerFunc(func(params webhook.CreateWebhookNotificationParams) middleware.Responder {
- return middleware.NotImplemented("operation webhook.CreateWebhookNotification has not yet been implemented")
- }),
- MoveTaskOrderGetMoveTaskOrderHandler: move_task_order.GetMoveTaskOrderHandlerFunc(func(params move_task_order.GetMoveTaskOrderParams) middleware.Responder {
- return middleware.NotImplemented("operation move_task_order.GetMoveTaskOrder has not yet been implemented")
- }),
- PaymentRequestGetPaymentRequestEDIHandler: payment_request.GetPaymentRequestEDIHandlerFunc(func(params payment_request.GetPaymentRequestEDIParams) middleware.Responder {
- return middleware.NotImplemented("operation payment_request.GetPaymentRequestEDI has not yet been implemented")
- }),
- MoveTaskOrderHideNonFakeMoveTaskOrdersHandler: move_task_order.HideNonFakeMoveTaskOrdersHandlerFunc(func(params move_task_order.HideNonFakeMoveTaskOrdersParams) middleware.Responder {
- return middleware.NotImplemented("operation move_task_order.HideNonFakeMoveTaskOrders has not yet been implemented")
- }),
- PaymentRequestListMTOPaymentRequestsHandler: payment_request.ListMTOPaymentRequestsHandlerFunc(func(params payment_request.ListMTOPaymentRequestsParams) middleware.Responder {
- return middleware.NotImplemented("operation payment_request.ListMTOPaymentRequests has not yet been implemented")
- }),
- MoveTaskOrderListMTOsHandler: move_task_order.ListMTOsHandlerFunc(func(params move_task_order.ListMTOsParams) middleware.Responder {
- return middleware.NotImplemented("operation move_task_order.ListMTOs has not yet been implemented")
- }),
- MoveTaskOrderMakeMoveTaskOrderAvailableHandler: move_task_order.MakeMoveTaskOrderAvailableHandlerFunc(func(params move_task_order.MakeMoveTaskOrderAvailableParams) middleware.Responder {
- return middleware.NotImplemented("operation move_task_order.MakeMoveTaskOrderAvailable has not yet been implemented")
- }),
- PaymentRequestProcessReviewedPaymentRequestsHandler: payment_request.ProcessReviewedPaymentRequestsHandlerFunc(func(params payment_request.ProcessReviewedPaymentRequestsParams) middleware.Responder {
- return middleware.NotImplemented("operation payment_request.ProcessReviewedPaymentRequests has not yet been implemented")
- }),
- PaymentRequestRecalculatePaymentRequestHandler: payment_request.RecalculatePaymentRequestHandlerFunc(func(params payment_request.RecalculatePaymentRequestParams) middleware.Responder {
- return middleware.NotImplemented("operation payment_request.RecalculatePaymentRequest has not yet been implemented")
- }),
- WebhookReceiveWebhookNotificationHandler: webhook.ReceiveWebhookNotificationHandlerFunc(func(params webhook.ReceiveWebhookNotificationParams) middleware.Responder {
- return middleware.NotImplemented("operation webhook.ReceiveWebhookNotification has not yet been implemented")
- }),
- MtoServiceItemUpdateMTOServiceItemStatusHandler: mto_service_item.UpdateMTOServiceItemStatusHandlerFunc(func(params mto_service_item.UpdateMTOServiceItemStatusParams) middleware.Responder {
- return middleware.NotImplemented("operation mto_service_item.UpdateMTOServiceItemStatus has not yet been implemented")
- }),
- MtoShipmentUpdateMTOShipmentStatusHandler: mto_shipment.UpdateMTOShipmentStatusHandlerFunc(func(params mto_shipment.UpdateMTOShipmentStatusParams) middleware.Responder {
- return middleware.NotImplemented("operation mto_shipment.UpdateMTOShipmentStatus has not yet been implemented")
- }),
- PaymentRequestUpdatePaymentRequestStatusHandler: payment_request.UpdatePaymentRequestStatusHandlerFunc(func(params payment_request.UpdatePaymentRequestStatusParams) middleware.Responder {
- return middleware.NotImplemented("operation payment_request.UpdatePaymentRequestStatus has not yet been implemented")
- }),
- }
-}
-
-/*
-MymoveAPI The Support API gives you programmatic access to support functionality useful
-for testing and debugging. **This API is not available in the Production
-environment**.
-
-All endpoints are located at `/support/v1/`.
-*/
-type MymoveAPI struct {
- spec *loads.Document
- context *middleware.Context
- handlers map[string]map[string]http.Handler
- formats strfmt.Registry
- customConsumers map[string]runtime.Consumer
- customProducers map[string]runtime.Producer
- defaultConsumes string
- defaultProduces string
- Middleware func(middleware.Builder) http.Handler
- useSwaggerUI bool
-
- // 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
-
- // MoveTaskOrderCreateMoveTaskOrderHandler sets the operation handler for the create move task order operation
- MoveTaskOrderCreateMoveTaskOrderHandler move_task_order.CreateMoveTaskOrderHandler
- // WebhookCreateWebhookNotificationHandler sets the operation handler for the create webhook notification operation
- WebhookCreateWebhookNotificationHandler webhook.CreateWebhookNotificationHandler
- // MoveTaskOrderGetMoveTaskOrderHandler sets the operation handler for the get move task order operation
- MoveTaskOrderGetMoveTaskOrderHandler move_task_order.GetMoveTaskOrderHandler
- // PaymentRequestGetPaymentRequestEDIHandler sets the operation handler for the get payment request e d i operation
- PaymentRequestGetPaymentRequestEDIHandler payment_request.GetPaymentRequestEDIHandler
- // MoveTaskOrderHideNonFakeMoveTaskOrdersHandler sets the operation handler for the hide non fake move task orders operation
- MoveTaskOrderHideNonFakeMoveTaskOrdersHandler move_task_order.HideNonFakeMoveTaskOrdersHandler
- // PaymentRequestListMTOPaymentRequestsHandler sets the operation handler for the list m t o payment requests operation
- PaymentRequestListMTOPaymentRequestsHandler payment_request.ListMTOPaymentRequestsHandler
- // MoveTaskOrderListMTOsHandler sets the operation handler for the list m t os operation
- MoveTaskOrderListMTOsHandler move_task_order.ListMTOsHandler
- // MoveTaskOrderMakeMoveTaskOrderAvailableHandler sets the operation handler for the make move task order available operation
- MoveTaskOrderMakeMoveTaskOrderAvailableHandler move_task_order.MakeMoveTaskOrderAvailableHandler
- // PaymentRequestProcessReviewedPaymentRequestsHandler sets the operation handler for the process reviewed payment requests operation
- PaymentRequestProcessReviewedPaymentRequestsHandler payment_request.ProcessReviewedPaymentRequestsHandler
- // PaymentRequestRecalculatePaymentRequestHandler sets the operation handler for the recalculate payment request operation
- PaymentRequestRecalculatePaymentRequestHandler payment_request.RecalculatePaymentRequestHandler
- // WebhookReceiveWebhookNotificationHandler sets the operation handler for the receive webhook notification operation
- WebhookReceiveWebhookNotificationHandler webhook.ReceiveWebhookNotificationHandler
- // MtoServiceItemUpdateMTOServiceItemStatusHandler sets the operation handler for the update m t o service item status operation
- MtoServiceItemUpdateMTOServiceItemStatusHandler mto_service_item.UpdateMTOServiceItemStatusHandler
- // MtoShipmentUpdateMTOShipmentStatusHandler sets the operation handler for the update m t o shipment status operation
- MtoShipmentUpdateMTOShipmentStatusHandler mto_shipment.UpdateMTOShipmentStatusHandler
- // PaymentRequestUpdatePaymentRequestStatusHandler sets the operation handler for the update payment request status operation
- PaymentRequestUpdatePaymentRequestStatusHandler payment_request.UpdatePaymentRequestStatusHandler
-
- // 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{})
-}
-
-// UseRedoc for documentation at /docs
-func (o *MymoveAPI) UseRedoc() {
- o.useSwaggerUI = false
-}
-
-// UseSwaggerUI for documentation at /docs
-func (o *MymoveAPI) UseSwaggerUI() {
- o.useSwaggerUI = true
-}
-
-// SetDefaultProduces sets the default produces media type
-func (o *MymoveAPI) SetDefaultProduces(mediaType string) {
- o.defaultProduces = mediaType
-}
-
-// SetDefaultConsumes returns the default consumes media type
-func (o *MymoveAPI) SetDefaultConsumes(mediaType string) {
- o.defaultConsumes = mediaType
-}
-
-// SetSpec sets a spec that will be served for the clients.
-func (o *MymoveAPI) SetSpec(spec *loads.Document) {
- o.spec = spec
-}
-
-// DefaultProduces returns the default produces media type
-func (o *MymoveAPI) DefaultProduces() string {
- return o.defaultProduces
-}
-
-// DefaultConsumes returns the default consumes media type
-func (o *MymoveAPI) DefaultConsumes() string {
- return o.defaultConsumes
-}
-
-// Formats returns the registered string formats
-func (o *MymoveAPI) Formats() strfmt.Registry {
- return o.formats
-}
-
-// RegisterFormat registers a custom format validator
-func (o *MymoveAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator) {
- o.formats.Add(name, format, validator)
-}
-
-// Validate validates the registrations in the MymoveAPI
-func (o *MymoveAPI) Validate() error {
- var unregistered []string
-
- if o.JSONConsumer == nil {
- unregistered = append(unregistered, "JSONConsumer")
- }
-
- if o.JSONProducer == nil {
- unregistered = append(unregistered, "JSONProducer")
- }
-
- if o.MoveTaskOrderCreateMoveTaskOrderHandler == nil {
- unregistered = append(unregistered, "move_task_order.CreateMoveTaskOrderHandler")
- }
- if o.WebhookCreateWebhookNotificationHandler == nil {
- unregistered = append(unregistered, "webhook.CreateWebhookNotificationHandler")
- }
- if o.MoveTaskOrderGetMoveTaskOrderHandler == nil {
- unregistered = append(unregistered, "move_task_order.GetMoveTaskOrderHandler")
- }
- if o.PaymentRequestGetPaymentRequestEDIHandler == nil {
- unregistered = append(unregistered, "payment_request.GetPaymentRequestEDIHandler")
- }
- if o.MoveTaskOrderHideNonFakeMoveTaskOrdersHandler == nil {
- unregistered = append(unregistered, "move_task_order.HideNonFakeMoveTaskOrdersHandler")
- }
- if o.PaymentRequestListMTOPaymentRequestsHandler == nil {
- unregistered = append(unregistered, "payment_request.ListMTOPaymentRequestsHandler")
- }
- if o.MoveTaskOrderListMTOsHandler == nil {
- unregistered = append(unregistered, "move_task_order.ListMTOsHandler")
- }
- if o.MoveTaskOrderMakeMoveTaskOrderAvailableHandler == nil {
- unregistered = append(unregistered, "move_task_order.MakeMoveTaskOrderAvailableHandler")
- }
- if o.PaymentRequestProcessReviewedPaymentRequestsHandler == nil {
- unregistered = append(unregistered, "payment_request.ProcessReviewedPaymentRequestsHandler")
- }
- if o.PaymentRequestRecalculatePaymentRequestHandler == nil {
- unregistered = append(unregistered, "payment_request.RecalculatePaymentRequestHandler")
- }
- if o.WebhookReceiveWebhookNotificationHandler == nil {
- unregistered = append(unregistered, "webhook.ReceiveWebhookNotificationHandler")
- }
- if o.MtoServiceItemUpdateMTOServiceItemStatusHandler == nil {
- unregistered = append(unregistered, "mto_service_item.UpdateMTOServiceItemStatusHandler")
- }
- if o.MtoShipmentUpdateMTOShipmentStatusHandler == nil {
- unregistered = append(unregistered, "mto_shipment.UpdateMTOShipmentStatusHandler")
- }
- if o.PaymentRequestUpdatePaymentRequestStatusHandler == nil {
- unregistered = append(unregistered, "payment_request.UpdatePaymentRequestStatusHandler")
- }
-
- if len(unregistered) > 0 {
- return fmt.Errorf("missing registration: %s", strings.Join(unregistered, ", "))
- }
-
- return nil
-}
-
-// ServeErrorFor gets a error handler for a given operation id
-func (o *MymoveAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error) {
- return o.ServeError
-}
-
-// AuthenticatorsFor gets the authenticators for the specified security schemes
-func (o *MymoveAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator {
- return nil
-}
-
-// Authorizer returns the registered authorizer
-func (o *MymoveAPI) Authorizer() runtime.Authorizer {
- return nil
-}
-
-// ConsumersFor gets the consumers for the specified media types.
-// MIME type parameters are ignored here.
-func (o *MymoveAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer {
- result := make(map[string]runtime.Consumer, len(mediaTypes))
- for _, mt := range mediaTypes {
- switch mt {
- case "application/json":
- result["application/json"] = o.JSONConsumer
- }
-
- if c, ok := o.customConsumers[mt]; ok {
- result[mt] = c
- }
- }
- return result
-}
-
-// ProducersFor gets the producers for the specified media types.
-// MIME type parameters are ignored here.
-func (o *MymoveAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer {
- result := make(map[string]runtime.Producer, len(mediaTypes))
- for _, mt := range mediaTypes {
- switch mt {
- case "application/json":
- result["application/json"] = o.JSONProducer
- }
-
- if p, ok := o.customProducers[mt]; ok {
- result[mt] = p
- }
- }
- return result
-}
-
-// HandlerFor gets a http.Handler for the provided operation method and path
-func (o *MymoveAPI) HandlerFor(method, path string) (http.Handler, bool) {
- if o.handlers == nil {
- return nil, false
- }
- um := strings.ToUpper(method)
- if _, ok := o.handlers[um]; !ok {
- return nil, false
- }
- if path == "/" {
- path = ""
- }
- h, ok := o.handlers[um][path]
- return h, ok
-}
-
-// Context returns the middleware context for the mymove API
-func (o *MymoveAPI) Context() *middleware.Context {
- if o.context == nil {
- o.context = middleware.NewRoutableContext(o.spec, o, nil)
- }
-
- return o.context
-}
-
-func (o *MymoveAPI) initHandlerCache() {
- o.Context() // don't care about the result, just that the initialization happened
- if o.handlers == nil {
- o.handlers = make(map[string]map[string]http.Handler)
- }
-
- if o.handlers["POST"] == nil {
- o.handlers["POST"] = make(map[string]http.Handler)
- }
- o.handlers["POST"]["/move-task-orders"] = move_task_order.NewCreateMoveTaskOrder(o.context, o.MoveTaskOrderCreateMoveTaskOrderHandler)
- if o.handlers["POST"] == nil {
- o.handlers["POST"] = make(map[string]http.Handler)
- }
- o.handlers["POST"]["/webhook-notifications"] = webhook.NewCreateWebhookNotification(o.context, o.WebhookCreateWebhookNotificationHandler)
- if o.handlers["GET"] == nil {
- o.handlers["GET"] = make(map[string]http.Handler)
- }
- o.handlers["GET"]["/move-task-orders/{moveTaskOrderID}"] = move_task_order.NewGetMoveTaskOrder(o.context, o.MoveTaskOrderGetMoveTaskOrderHandler)
- if o.handlers["GET"] == nil {
- o.handlers["GET"] = make(map[string]http.Handler)
- }
- o.handlers["GET"]["/payment-requests/{paymentRequestID}/edi"] = payment_request.NewGetPaymentRequestEDI(o.context, o.PaymentRequestGetPaymentRequestEDIHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/move-task-orders/hide"] = move_task_order.NewHideNonFakeMoveTaskOrders(o.context, o.MoveTaskOrderHideNonFakeMoveTaskOrdersHandler)
- if o.handlers["GET"] == nil {
- o.handlers["GET"] = make(map[string]http.Handler)
- }
- o.handlers["GET"]["/move-task-orders/{moveTaskOrderID}/payment-requests"] = payment_request.NewListMTOPaymentRequests(o.context, o.PaymentRequestListMTOPaymentRequestsHandler)
- if o.handlers["GET"] == nil {
- o.handlers["GET"] = make(map[string]http.Handler)
- }
- o.handlers["GET"]["/move-task-orders"] = move_task_order.NewListMTOs(o.context, o.MoveTaskOrderListMTOsHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/move-task-orders/{moveTaskOrderID}/available-to-prime"] = move_task_order.NewMakeMoveTaskOrderAvailable(o.context, o.MoveTaskOrderMakeMoveTaskOrderAvailableHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/payment-requests/process-reviewed"] = payment_request.NewProcessReviewedPaymentRequests(o.context, o.PaymentRequestProcessReviewedPaymentRequestsHandler)
- if o.handlers["POST"] == nil {
- o.handlers["POST"] = make(map[string]http.Handler)
- }
- o.handlers["POST"]["/payment-requests/{paymentRequestID}/recalculate"] = payment_request.NewRecalculatePaymentRequest(o.context, o.PaymentRequestRecalculatePaymentRequestHandler)
- if o.handlers["POST"] == nil {
- o.handlers["POST"] = make(map[string]http.Handler)
- }
- o.handlers["POST"]["/webhook-notify"] = webhook.NewReceiveWebhookNotification(o.context, o.WebhookReceiveWebhookNotificationHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/mto-service-items/{mtoServiceItemID}/status"] = mto_service_item.NewUpdateMTOServiceItemStatus(o.context, o.MtoServiceItemUpdateMTOServiceItemStatusHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/mto-shipments/{mtoShipmentID}/status"] = mto_shipment.NewUpdateMTOShipmentStatus(o.context, o.MtoShipmentUpdateMTOShipmentStatusHandler)
- if o.handlers["PATCH"] == nil {
- o.handlers["PATCH"] = make(map[string]http.Handler)
- }
- o.handlers["PATCH"]["/payment-requests/{paymentRequestID}/status"] = payment_request.NewUpdatePaymentRequestStatus(o.context, o.PaymentRequestUpdatePaymentRequestStatusHandler)
-}
-
-// Serve creates a http handler to serve the API over HTTP
-// can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
-func (o *MymoveAPI) Serve(builder middleware.Builder) http.Handler {
- o.Init()
-
- if o.Middleware != nil {
- return o.Middleware(builder)
- }
- if o.useSwaggerUI {
- return o.context.APIHandlerSwaggerUI(builder)
- }
- return o.context.APIHandler(builder)
-}
-
-// Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
-func (o *MymoveAPI) Init() {
- if len(o.handlers) == 0 {
- o.initHandlerCache()
- }
-}
-
-// RegisterConsumer allows you to add (or override) a consumer for a media type.
-func (o *MymoveAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer) {
- o.customConsumers[mediaType] = consumer
-}
-
-// RegisterProducer allows you to add (or override) a producer for a media type.
-func (o *MymoveAPI) RegisterProducer(mediaType string, producer runtime.Producer) {
- o.customProducers[mediaType] = producer
-}
-
-// AddMiddlewareFor adds a http middleware to existing handler
-func (o *MymoveAPI) AddMiddlewareFor(method, path string, builder middleware.Builder) {
- um := strings.ToUpper(method)
- if path == "/" {
- path = ""
- }
- o.Init()
- if h, ok := o.handlers[um][path]; ok {
- o.handlers[um][path] = builder(h)
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go
deleted file mode 100644
index 8e6f851556e..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// GetPaymentRequestEDIHandlerFunc turns a function with the right signature into a get payment request e d i handler
-type GetPaymentRequestEDIHandlerFunc func(GetPaymentRequestEDIParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn GetPaymentRequestEDIHandlerFunc) Handle(params GetPaymentRequestEDIParams) middleware.Responder {
- return fn(params)
-}
-
-// GetPaymentRequestEDIHandler interface for that can handle valid get payment request e d i params
-type GetPaymentRequestEDIHandler interface {
- Handle(GetPaymentRequestEDIParams) middleware.Responder
-}
-
-// NewGetPaymentRequestEDI creates a new http.Handler for the get payment request e d i operation
-func NewGetPaymentRequestEDI(ctx *middleware.Context, handler GetPaymentRequestEDIHandler) *GetPaymentRequestEDI {
- return &GetPaymentRequestEDI{Context: ctx, Handler: handler}
-}
-
-/*
- GetPaymentRequestEDI swagger:route GET /payment-requests/{paymentRequestID}/edi paymentRequest getPaymentRequestEDI
-
-getPaymentRequestEDI
-
-Returns the EDI (Electronic Data Interchange) message for the payment request identified
-by the given payment request ID. Note that the EDI returned in the JSON payload will have where there
-would normally be line breaks (due to JSON not allowing line breaks in a string).
-
-This is a support endpoint and will not be available in production.
-*/
-type GetPaymentRequestEDI struct {
- Context *middleware.Context
- Handler GetPaymentRequestEDIHandler
-}
-
-func (o *GetPaymentRequestEDI) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewGetPaymentRequestEDIParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go
deleted file mode 100644
index ee326f2cdea..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go
+++ /dev/null
@@ -1,91 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// NewGetPaymentRequestEDIParams creates a new GetPaymentRequestEDIParams object
-//
-// There are no default values defined in the spec.
-func NewGetPaymentRequestEDIParams() GetPaymentRequestEDIParams {
-
- return GetPaymentRequestEDIParams{}
-}
-
-// GetPaymentRequestEDIParams contains all the bound params for the get payment request e d i operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters getPaymentRequestEDI
-type GetPaymentRequestEDIParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*UUID of the payment request for which EDI should be generated.
- Required: true
- In: path
- */
- PaymentRequestID strfmt.UUID
-}
-
-// 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 NewGetPaymentRequestEDIParams() beforehand.
-func (o *GetPaymentRequestEDIParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
- if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
-func (o *GetPaymentRequestEDIParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
-
- // Format: uuid
- value, err := formats.Parse("uuid", raw)
- if err != nil {
- return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
- }
- o.PaymentRequestID = *(value.(*strfmt.UUID))
-
- if err := o.validatePaymentRequestID(formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// validatePaymentRequestID carries on validations for parameter PaymentRequestID
-func (o *GetPaymentRequestEDIParams) validatePaymentRequestID(formats strfmt.Registry) error {
-
- if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go
deleted file mode 100644
index 28033983281..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go
+++ /dev/null
@@ -1,374 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// GetPaymentRequestEDIOKCode is the HTTP code returned for type GetPaymentRequestEDIOK
-const GetPaymentRequestEDIOKCode int = 200
-
-/*
-GetPaymentRequestEDIOK Successfully retrieved payment requests associated with a given move task order
-
-swagger:response getPaymentRequestEDIOK
-*/
-type GetPaymentRequestEDIOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.PaymentRequestEDI `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIOK creates GetPaymentRequestEDIOK with default headers values
-func NewGetPaymentRequestEDIOK() *GetPaymentRequestEDIOK {
-
- return &GetPaymentRequestEDIOK{}
-}
-
-// WithPayload adds the payload to the get payment request e d i o k response
-func (o *GetPaymentRequestEDIOK) WithPayload(payload *supportmessages.PaymentRequestEDI) *GetPaymentRequestEDIOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i o k response
-func (o *GetPaymentRequestEDIOK) SetPayload(payload *supportmessages.PaymentRequestEDI) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIBadRequestCode is the HTTP code returned for type GetPaymentRequestEDIBadRequest
-const GetPaymentRequestEDIBadRequestCode int = 400
-
-/*
-GetPaymentRequestEDIBadRequest The request payload is invalid.
-
-swagger:response getPaymentRequestEDIBadRequest
-*/
-type GetPaymentRequestEDIBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIBadRequest creates GetPaymentRequestEDIBadRequest with default headers values
-func NewGetPaymentRequestEDIBadRequest() *GetPaymentRequestEDIBadRequest {
-
- return &GetPaymentRequestEDIBadRequest{}
-}
-
-// WithPayload adds the payload to the get payment request e d i bad request response
-func (o *GetPaymentRequestEDIBadRequest) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i bad request response
-func (o *GetPaymentRequestEDIBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIUnauthorizedCode is the HTTP code returned for type GetPaymentRequestEDIUnauthorized
-const GetPaymentRequestEDIUnauthorizedCode int = 401
-
-/*
-GetPaymentRequestEDIUnauthorized The request was denied.
-
-swagger:response getPaymentRequestEDIUnauthorized
-*/
-type GetPaymentRequestEDIUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIUnauthorized creates GetPaymentRequestEDIUnauthorized with default headers values
-func NewGetPaymentRequestEDIUnauthorized() *GetPaymentRequestEDIUnauthorized {
-
- return &GetPaymentRequestEDIUnauthorized{}
-}
-
-// WithPayload adds the payload to the get payment request e d i unauthorized response
-func (o *GetPaymentRequestEDIUnauthorized) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i unauthorized response
-func (o *GetPaymentRequestEDIUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIForbiddenCode is the HTTP code returned for type GetPaymentRequestEDIForbidden
-const GetPaymentRequestEDIForbiddenCode int = 403
-
-/*
-GetPaymentRequestEDIForbidden The request was denied.
-
-swagger:response getPaymentRequestEDIForbidden
-*/
-type GetPaymentRequestEDIForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIForbidden creates GetPaymentRequestEDIForbidden with default headers values
-func NewGetPaymentRequestEDIForbidden() *GetPaymentRequestEDIForbidden {
-
- return &GetPaymentRequestEDIForbidden{}
-}
-
-// WithPayload adds the payload to the get payment request e d i forbidden response
-func (o *GetPaymentRequestEDIForbidden) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i forbidden response
-func (o *GetPaymentRequestEDIForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDINotFoundCode is the HTTP code returned for type GetPaymentRequestEDINotFound
-const GetPaymentRequestEDINotFoundCode int = 404
-
-/*
-GetPaymentRequestEDINotFound The requested resource wasn't found.
-
-swagger:response getPaymentRequestEDINotFound
-*/
-type GetPaymentRequestEDINotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDINotFound creates GetPaymentRequestEDINotFound with default headers values
-func NewGetPaymentRequestEDINotFound() *GetPaymentRequestEDINotFound {
-
- return &GetPaymentRequestEDINotFound{}
-}
-
-// WithPayload adds the payload to the get payment request e d i not found response
-func (o *GetPaymentRequestEDINotFound) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDINotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i not found response
-func (o *GetPaymentRequestEDINotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDINotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIConflictCode is the HTTP code returned for type GetPaymentRequestEDIConflict
-const GetPaymentRequestEDIConflictCode int = 409
-
-/*
-GetPaymentRequestEDIConflict There was a conflict with the request.
-
-swagger:response getPaymentRequestEDIConflict
-*/
-type GetPaymentRequestEDIConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIConflict creates GetPaymentRequestEDIConflict with default headers values
-func NewGetPaymentRequestEDIConflict() *GetPaymentRequestEDIConflict {
-
- return &GetPaymentRequestEDIConflict{}
-}
-
-// WithPayload adds the payload to the get payment request e d i conflict response
-func (o *GetPaymentRequestEDIConflict) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i conflict response
-func (o *GetPaymentRequestEDIConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIUnprocessableEntityCode is the HTTP code returned for type GetPaymentRequestEDIUnprocessableEntity
-const GetPaymentRequestEDIUnprocessableEntityCode int = 422
-
-/*
-GetPaymentRequestEDIUnprocessableEntity The payload was unprocessable.
-
-swagger:response getPaymentRequestEDIUnprocessableEntity
-*/
-type GetPaymentRequestEDIUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIUnprocessableEntity creates GetPaymentRequestEDIUnprocessableEntity with default headers values
-func NewGetPaymentRequestEDIUnprocessableEntity() *GetPaymentRequestEDIUnprocessableEntity {
-
- return &GetPaymentRequestEDIUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the get payment request e d i unprocessable entity response
-func (o *GetPaymentRequestEDIUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *GetPaymentRequestEDIUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i unprocessable entity response
-func (o *GetPaymentRequestEDIUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// GetPaymentRequestEDIInternalServerErrorCode is the HTTP code returned for type GetPaymentRequestEDIInternalServerError
-const GetPaymentRequestEDIInternalServerErrorCode int = 500
-
-/*
-GetPaymentRequestEDIInternalServerError A server error occurred.
-
-swagger:response getPaymentRequestEDIInternalServerError
-*/
-type GetPaymentRequestEDIInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewGetPaymentRequestEDIInternalServerError creates GetPaymentRequestEDIInternalServerError with default headers values
-func NewGetPaymentRequestEDIInternalServerError() *GetPaymentRequestEDIInternalServerError {
-
- return &GetPaymentRequestEDIInternalServerError{}
-}
-
-// WithPayload adds the payload to the get payment request e d i internal server error response
-func (o *GetPaymentRequestEDIInternalServerError) WithPayload(payload *supportmessages.Error) *GetPaymentRequestEDIInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the get payment request e d i internal server error response
-func (o *GetPaymentRequestEDIInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *GetPaymentRequestEDIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go
deleted file mode 100644
index e5c52694d20..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-
- "github.com/go-openapi/strfmt"
-)
-
-// GetPaymentRequestEDIURL generates an URL for the get payment request e d i operation
-type GetPaymentRequestEDIURL struct {
- PaymentRequestID strfmt.UUID
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *GetPaymentRequestEDIURL) WithBasePath(bp string) *GetPaymentRequestEDIURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *GetPaymentRequestEDIURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *GetPaymentRequestEDIURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/payment-requests/{paymentRequestID}/edi"
-
- paymentRequestID := o.PaymentRequestID.String()
- if paymentRequestID != "" {
- _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
- } else {
- return nil, errors.New("paymentRequestId is required on GetPaymentRequestEDIURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *GetPaymentRequestEDIURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *GetPaymentRequestEDIURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *GetPaymentRequestEDIURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on GetPaymentRequestEDIURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on GetPaymentRequestEDIURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *GetPaymentRequestEDIURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go
deleted file mode 100644
index 8f2990500fb..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// ListMTOPaymentRequestsHandlerFunc turns a function with the right signature into a list m t o payment requests handler
-type ListMTOPaymentRequestsHandlerFunc func(ListMTOPaymentRequestsParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn ListMTOPaymentRequestsHandlerFunc) Handle(params ListMTOPaymentRequestsParams) middleware.Responder {
- return fn(params)
-}
-
-// ListMTOPaymentRequestsHandler interface for that can handle valid list m t o payment requests params
-type ListMTOPaymentRequestsHandler interface {
- Handle(ListMTOPaymentRequestsParams) middleware.Responder
-}
-
-// NewListMTOPaymentRequests creates a new http.Handler for the list m t o payment requests operation
-func NewListMTOPaymentRequests(ctx *middleware.Context, handler ListMTOPaymentRequestsHandler) *ListMTOPaymentRequests {
- return &ListMTOPaymentRequests{Context: ctx, Handler: handler}
-}
-
-/*
- ListMTOPaymentRequests swagger:route GET /move-task-orders/{moveTaskOrderID}/payment-requests paymentRequest listMTOPaymentRequests
-
-listMTOPaymentRequests
-
-### Functionality
-
-This endpoint lists all PaymentRequests associated with a given MoveTaskOrder.
-
-This is a support endpoint and is not available in production.
-*/
-type ListMTOPaymentRequests struct {
- Context *middleware.Context
- Handler ListMTOPaymentRequestsHandler
-}
-
-func (o *ListMTOPaymentRequests) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewListMTOPaymentRequestsParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go
deleted file mode 100644
index 87340033535..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go
+++ /dev/null
@@ -1,91 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// NewListMTOPaymentRequestsParams creates a new ListMTOPaymentRequestsParams object
-//
-// There are no default values defined in the spec.
-func NewListMTOPaymentRequestsParams() ListMTOPaymentRequestsParams {
-
- return ListMTOPaymentRequestsParams{}
-}
-
-// ListMTOPaymentRequestsParams contains all the bound params for the list m t o payment requests operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters listMTOPaymentRequests
-type ListMTOPaymentRequestsParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Only return move task orders updated since this time.
- Required: true
- In: path
- */
- MoveTaskOrderID strfmt.UUID
-}
-
-// 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 NewListMTOPaymentRequestsParams() beforehand.
-func (o *ListMTOPaymentRequestsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- rMoveTaskOrderID, rhkMoveTaskOrderID, _ := route.Params.GetOK("moveTaskOrderID")
- if err := o.bindMoveTaskOrderID(rMoveTaskOrderID, rhkMoveTaskOrderID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindMoveTaskOrderID binds and validates parameter MoveTaskOrderID from path.
-func (o *ListMTOPaymentRequestsParams) bindMoveTaskOrderID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
-
- // Format: uuid
- value, err := formats.Parse("uuid", raw)
- if err != nil {
- return errors.InvalidType("moveTaskOrderID", "path", "strfmt.UUID", raw)
- }
- o.MoveTaskOrderID = *(value.(*strfmt.UUID))
-
- if err := o.validateMoveTaskOrderID(formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// validateMoveTaskOrderID carries on validations for parameter MoveTaskOrderID
-func (o *ListMTOPaymentRequestsParams) validateMoveTaskOrderID(formats strfmt.Registry) error {
-
- if err := validate.FormatOf("moveTaskOrderID", "path", "uuid", o.MoveTaskOrderID.String(), formats); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go
deleted file mode 100644
index 78390d49ed1..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go
+++ /dev/null
@@ -1,287 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ListMTOPaymentRequestsOKCode is the HTTP code returned for type ListMTOPaymentRequestsOK
-const ListMTOPaymentRequestsOKCode int = 200
-
-/*
-ListMTOPaymentRequestsOK Successfully retrieved payment requests associated with a given move task order
-
-swagger:response listMTOPaymentRequestsOK
-*/
-type ListMTOPaymentRequestsOK struct {
-
- /*
- In: Body
- */
- Payload supportmessages.PaymentRequests `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsOK creates ListMTOPaymentRequestsOK with default headers values
-func NewListMTOPaymentRequestsOK() *ListMTOPaymentRequestsOK {
-
- return &ListMTOPaymentRequestsOK{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests o k response
-func (o *ListMTOPaymentRequestsOK) WithPayload(payload supportmessages.PaymentRequests) *ListMTOPaymentRequestsOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests o k response
-func (o *ListMTOPaymentRequestsOK) SetPayload(payload supportmessages.PaymentRequests) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- payload := o.Payload
- if payload == nil {
- // return empty array
- payload = supportmessages.PaymentRequests{}
- }
-
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
-}
-
-// ListMTOPaymentRequestsBadRequestCode is the HTTP code returned for type ListMTOPaymentRequestsBadRequest
-const ListMTOPaymentRequestsBadRequestCode int = 400
-
-/*
-ListMTOPaymentRequestsBadRequest The request payload is invalid.
-
-swagger:response listMTOPaymentRequestsBadRequest
-*/
-type ListMTOPaymentRequestsBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsBadRequest creates ListMTOPaymentRequestsBadRequest with default headers values
-func NewListMTOPaymentRequestsBadRequest() *ListMTOPaymentRequestsBadRequest {
-
- return &ListMTOPaymentRequestsBadRequest{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests bad request response
-func (o *ListMTOPaymentRequestsBadRequest) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests bad request response
-func (o *ListMTOPaymentRequestsBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOPaymentRequestsUnauthorizedCode is the HTTP code returned for type ListMTOPaymentRequestsUnauthorized
-const ListMTOPaymentRequestsUnauthorizedCode int = 401
-
-/*
-ListMTOPaymentRequestsUnauthorized The request was denied.
-
-swagger:response listMTOPaymentRequestsUnauthorized
-*/
-type ListMTOPaymentRequestsUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsUnauthorized creates ListMTOPaymentRequestsUnauthorized with default headers values
-func NewListMTOPaymentRequestsUnauthorized() *ListMTOPaymentRequestsUnauthorized {
-
- return &ListMTOPaymentRequestsUnauthorized{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests unauthorized response
-func (o *ListMTOPaymentRequestsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests unauthorized response
-func (o *ListMTOPaymentRequestsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOPaymentRequestsForbiddenCode is the HTTP code returned for type ListMTOPaymentRequestsForbidden
-const ListMTOPaymentRequestsForbiddenCode int = 403
-
-/*
-ListMTOPaymentRequestsForbidden The request was denied.
-
-swagger:response listMTOPaymentRequestsForbidden
-*/
-type ListMTOPaymentRequestsForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsForbidden creates ListMTOPaymentRequestsForbidden with default headers values
-func NewListMTOPaymentRequestsForbidden() *ListMTOPaymentRequestsForbidden {
-
- return &ListMTOPaymentRequestsForbidden{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests forbidden response
-func (o *ListMTOPaymentRequestsForbidden) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests forbidden response
-func (o *ListMTOPaymentRequestsForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOPaymentRequestsNotFoundCode is the HTTP code returned for type ListMTOPaymentRequestsNotFound
-const ListMTOPaymentRequestsNotFoundCode int = 404
-
-/*
-ListMTOPaymentRequestsNotFound The requested resource wasn't found.
-
-swagger:response listMTOPaymentRequestsNotFound
-*/
-type ListMTOPaymentRequestsNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsNotFound creates ListMTOPaymentRequestsNotFound with default headers values
-func NewListMTOPaymentRequestsNotFound() *ListMTOPaymentRequestsNotFound {
-
- return &ListMTOPaymentRequestsNotFound{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests not found response
-func (o *ListMTOPaymentRequestsNotFound) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests not found response
-func (o *ListMTOPaymentRequestsNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ListMTOPaymentRequestsInternalServerErrorCode is the HTTP code returned for type ListMTOPaymentRequestsInternalServerError
-const ListMTOPaymentRequestsInternalServerErrorCode int = 500
-
-/*
-ListMTOPaymentRequestsInternalServerError A server error occurred.
-
-swagger:response listMTOPaymentRequestsInternalServerError
-*/
-type ListMTOPaymentRequestsInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewListMTOPaymentRequestsInternalServerError creates ListMTOPaymentRequestsInternalServerError with default headers values
-func NewListMTOPaymentRequestsInternalServerError() *ListMTOPaymentRequestsInternalServerError {
-
- return &ListMTOPaymentRequestsInternalServerError{}
-}
-
-// WithPayload adds the payload to the list m t o payment requests internal server error response
-func (o *ListMTOPaymentRequestsInternalServerError) WithPayload(payload *supportmessages.Error) *ListMTOPaymentRequestsInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the list m t o payment requests internal server error response
-func (o *ListMTOPaymentRequestsInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ListMTOPaymentRequestsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go
deleted file mode 100644
index f55d63b7339..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-
- "github.com/go-openapi/strfmt"
-)
-
-// ListMTOPaymentRequestsURL generates an URL for the list m t o payment requests operation
-type ListMTOPaymentRequestsURL struct {
- MoveTaskOrderID strfmt.UUID
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *ListMTOPaymentRequestsURL) WithBasePath(bp string) *ListMTOPaymentRequestsURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *ListMTOPaymentRequestsURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *ListMTOPaymentRequestsURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/move-task-orders/{moveTaskOrderID}/payment-requests"
-
- moveTaskOrderID := o.MoveTaskOrderID.String()
- if moveTaskOrderID != "" {
- _path = strings.Replace(_path, "{moveTaskOrderID}", moveTaskOrderID, -1)
- } else {
- return nil, errors.New("moveTaskOrderId is required on ListMTOPaymentRequestsURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *ListMTOPaymentRequestsURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *ListMTOPaymentRequestsURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *ListMTOPaymentRequestsURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on ListMTOPaymentRequestsURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on ListMTOPaymentRequestsURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *ListMTOPaymentRequestsURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go
deleted file mode 100644
index efefe2dd1b7..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go
+++ /dev/null
@@ -1,61 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// ProcessReviewedPaymentRequestsHandlerFunc turns a function with the right signature into a process reviewed payment requests handler
-type ProcessReviewedPaymentRequestsHandlerFunc func(ProcessReviewedPaymentRequestsParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn ProcessReviewedPaymentRequestsHandlerFunc) Handle(params ProcessReviewedPaymentRequestsParams) middleware.Responder {
- return fn(params)
-}
-
-// ProcessReviewedPaymentRequestsHandler interface for that can handle valid process reviewed payment requests params
-type ProcessReviewedPaymentRequestsHandler interface {
- Handle(ProcessReviewedPaymentRequestsParams) middleware.Responder
-}
-
-// NewProcessReviewedPaymentRequests creates a new http.Handler for the process reviewed payment requests operation
-func NewProcessReviewedPaymentRequests(ctx *middleware.Context, handler ProcessReviewedPaymentRequestsHandler) *ProcessReviewedPaymentRequests {
- return &ProcessReviewedPaymentRequests{Context: ctx, Handler: handler}
-}
-
-/*
- ProcessReviewedPaymentRequests swagger:route PATCH /payment-requests/process-reviewed paymentRequest processReviewedPaymentRequests
-
-processReviewedPaymentRequests
-
-Updates the status of reviewed payment requests and sends PRs to Syncada if
-the SendToSyncada flag is set
-
-This is a support endpoint and will not be available in production.
-*/
-type ProcessReviewedPaymentRequests struct {
- Context *middleware.Context
- Handler ProcessReviewedPaymentRequestsHandler
-}
-
-func (o *ProcessReviewedPaymentRequests) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewProcessReviewedPaymentRequestsParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go
deleted file mode 100644
index 644c93041ee..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go
+++ /dev/null
@@ -1,84 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "io"
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewProcessReviewedPaymentRequestsParams creates a new ProcessReviewedPaymentRequestsParams object
-//
-// There are no default values defined in the spec.
-func NewProcessReviewedPaymentRequestsParams() ProcessReviewedPaymentRequestsParams {
-
- return ProcessReviewedPaymentRequestsParams{}
-}
-
-// ProcessReviewedPaymentRequestsParams contains all the bound params for the process reviewed payment requests operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters processReviewedPaymentRequests
-type ProcessReviewedPaymentRequestsParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*
- Required: true
- In: body
- */
- Body *supportmessages.ProcessReviewedPaymentRequests
-}
-
-// 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 NewProcessReviewedPaymentRequestsParams() beforehand.
-func (o *ProcessReviewedPaymentRequestsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.ProcessReviewedPaymentRequests
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- if err == io.EOF {
- res = append(res, errors.Required("body", "body", ""))
- } else {
- res = append(res, errors.NewParseError("body", "body", "", err))
- }
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- } else {
- res = append(res, errors.Required("body", "body", ""))
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go
deleted file mode 100644
index 56b1631599a..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go
+++ /dev/null
@@ -1,332 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ProcessReviewedPaymentRequestsOKCode is the HTTP code returned for type ProcessReviewedPaymentRequestsOK
-const ProcessReviewedPaymentRequestsOKCode int = 200
-
-/*
-ProcessReviewedPaymentRequestsOK Successfully updated status of reviewed payment request and sent to Syncada if that flag is set
-
-swagger:response processReviewedPaymentRequestsOK
-*/
-type ProcessReviewedPaymentRequestsOK struct {
-
- /*
- In: Body
- */
- Payload supportmessages.PaymentRequests `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsOK creates ProcessReviewedPaymentRequestsOK with default headers values
-func NewProcessReviewedPaymentRequestsOK() *ProcessReviewedPaymentRequestsOK {
-
- return &ProcessReviewedPaymentRequestsOK{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests o k response
-func (o *ProcessReviewedPaymentRequestsOK) WithPayload(payload supportmessages.PaymentRequests) *ProcessReviewedPaymentRequestsOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests o k response
-func (o *ProcessReviewedPaymentRequestsOK) SetPayload(payload supportmessages.PaymentRequests) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- payload := o.Payload
- if payload == nil {
- // return empty array
- payload = supportmessages.PaymentRequests{}
- }
-
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
-}
-
-// ProcessReviewedPaymentRequestsBadRequestCode is the HTTP code returned for type ProcessReviewedPaymentRequestsBadRequest
-const ProcessReviewedPaymentRequestsBadRequestCode int = 400
-
-/*
-ProcessReviewedPaymentRequestsBadRequest The request payload is invalid.
-
-swagger:response processReviewedPaymentRequestsBadRequest
-*/
-type ProcessReviewedPaymentRequestsBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsBadRequest creates ProcessReviewedPaymentRequestsBadRequest with default headers values
-func NewProcessReviewedPaymentRequestsBadRequest() *ProcessReviewedPaymentRequestsBadRequest {
-
- return &ProcessReviewedPaymentRequestsBadRequest{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests bad request response
-func (o *ProcessReviewedPaymentRequestsBadRequest) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests bad request response
-func (o *ProcessReviewedPaymentRequestsBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ProcessReviewedPaymentRequestsUnauthorizedCode is the HTTP code returned for type ProcessReviewedPaymentRequestsUnauthorized
-const ProcessReviewedPaymentRequestsUnauthorizedCode int = 401
-
-/*
-ProcessReviewedPaymentRequestsUnauthorized The request was denied.
-
-swagger:response processReviewedPaymentRequestsUnauthorized
-*/
-type ProcessReviewedPaymentRequestsUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsUnauthorized creates ProcessReviewedPaymentRequestsUnauthorized with default headers values
-func NewProcessReviewedPaymentRequestsUnauthorized() *ProcessReviewedPaymentRequestsUnauthorized {
-
- return &ProcessReviewedPaymentRequestsUnauthorized{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests unauthorized response
-func (o *ProcessReviewedPaymentRequestsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests unauthorized response
-func (o *ProcessReviewedPaymentRequestsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ProcessReviewedPaymentRequestsForbiddenCode is the HTTP code returned for type ProcessReviewedPaymentRequestsForbidden
-const ProcessReviewedPaymentRequestsForbiddenCode int = 403
-
-/*
-ProcessReviewedPaymentRequestsForbidden The request was denied.
-
-swagger:response processReviewedPaymentRequestsForbidden
-*/
-type ProcessReviewedPaymentRequestsForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsForbidden creates ProcessReviewedPaymentRequestsForbidden with default headers values
-func NewProcessReviewedPaymentRequestsForbidden() *ProcessReviewedPaymentRequestsForbidden {
-
- return &ProcessReviewedPaymentRequestsForbidden{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests forbidden response
-func (o *ProcessReviewedPaymentRequestsForbidden) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests forbidden response
-func (o *ProcessReviewedPaymentRequestsForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ProcessReviewedPaymentRequestsNotFoundCode is the HTTP code returned for type ProcessReviewedPaymentRequestsNotFound
-const ProcessReviewedPaymentRequestsNotFoundCode int = 404
-
-/*
-ProcessReviewedPaymentRequestsNotFound The requested resource wasn't found.
-
-swagger:response processReviewedPaymentRequestsNotFound
-*/
-type ProcessReviewedPaymentRequestsNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsNotFound creates ProcessReviewedPaymentRequestsNotFound with default headers values
-func NewProcessReviewedPaymentRequestsNotFound() *ProcessReviewedPaymentRequestsNotFound {
-
- return &ProcessReviewedPaymentRequestsNotFound{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests not found response
-func (o *ProcessReviewedPaymentRequestsNotFound) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests not found response
-func (o *ProcessReviewedPaymentRequestsNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ProcessReviewedPaymentRequestsUnprocessableEntityCode is the HTTP code returned for type ProcessReviewedPaymentRequestsUnprocessableEntity
-const ProcessReviewedPaymentRequestsUnprocessableEntityCode int = 422
-
-/*
-ProcessReviewedPaymentRequestsUnprocessableEntity The payload was unprocessable.
-
-swagger:response processReviewedPaymentRequestsUnprocessableEntity
-*/
-type ProcessReviewedPaymentRequestsUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsUnprocessableEntity creates ProcessReviewedPaymentRequestsUnprocessableEntity with default headers values
-func NewProcessReviewedPaymentRequestsUnprocessableEntity() *ProcessReviewedPaymentRequestsUnprocessableEntity {
-
- return &ProcessReviewedPaymentRequestsUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests unprocessable entity response
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *ProcessReviewedPaymentRequestsUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests unprocessable entity response
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ProcessReviewedPaymentRequestsInternalServerErrorCode is the HTTP code returned for type ProcessReviewedPaymentRequestsInternalServerError
-const ProcessReviewedPaymentRequestsInternalServerErrorCode int = 500
-
-/*
-ProcessReviewedPaymentRequestsInternalServerError A server error occurred.
-
-swagger:response processReviewedPaymentRequestsInternalServerError
-*/
-type ProcessReviewedPaymentRequestsInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewProcessReviewedPaymentRequestsInternalServerError creates ProcessReviewedPaymentRequestsInternalServerError with default headers values
-func NewProcessReviewedPaymentRequestsInternalServerError() *ProcessReviewedPaymentRequestsInternalServerError {
-
- return &ProcessReviewedPaymentRequestsInternalServerError{}
-}
-
-// WithPayload adds the payload to the process reviewed payment requests internal server error response
-func (o *ProcessReviewedPaymentRequestsInternalServerError) WithPayload(payload *supportmessages.Error) *ProcessReviewedPaymentRequestsInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the process reviewed payment requests internal server error response
-func (o *ProcessReviewedPaymentRequestsInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ProcessReviewedPaymentRequestsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go
deleted file mode 100644
index dfabf79ef51..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go
+++ /dev/null
@@ -1,87 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
-)
-
-// ProcessReviewedPaymentRequestsURL generates an URL for the process reviewed payment requests operation
-type ProcessReviewedPaymentRequestsURL struct {
- _basePath string
-}
-
-// 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
-func (o *ProcessReviewedPaymentRequestsURL) WithBasePath(bp string) *ProcessReviewedPaymentRequestsURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *ProcessReviewedPaymentRequestsURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *ProcessReviewedPaymentRequestsURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/payment-requests/process-reviewed"
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *ProcessReviewedPaymentRequestsURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *ProcessReviewedPaymentRequestsURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *ProcessReviewedPaymentRequestsURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on ProcessReviewedPaymentRequestsURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on ProcessReviewedPaymentRequestsURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *ProcessReviewedPaymentRequestsURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go
deleted file mode 100644
index fb6b1a7f92a..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// RecalculatePaymentRequestHandlerFunc turns a function with the right signature into a recalculate payment request handler
-type RecalculatePaymentRequestHandlerFunc func(RecalculatePaymentRequestParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn RecalculatePaymentRequestHandlerFunc) Handle(params RecalculatePaymentRequestParams) middleware.Responder {
- return fn(params)
-}
-
-// RecalculatePaymentRequestHandler interface for that can handle valid recalculate payment request params
-type RecalculatePaymentRequestHandler interface {
- Handle(RecalculatePaymentRequestParams) middleware.Responder
-}
-
-// NewRecalculatePaymentRequest creates a new http.Handler for the recalculate payment request operation
-func NewRecalculatePaymentRequest(ctx *middleware.Context, handler RecalculatePaymentRequestHandler) *RecalculatePaymentRequest {
- return &RecalculatePaymentRequest{Context: ctx, Handler: handler}
-}
-
-/*
- RecalculatePaymentRequest swagger:route POST /payment-requests/{paymentRequestID}/recalculate paymentRequest recalculatePaymentRequest
-
-recalculatePaymentRequest
-
-Recalculates an existing pending payment request by creating a new payment request for the same service
-items but is priced based on the current inputs (weights, dates, etc.). The previously existing payment
-request is then deprecated. A link is made between the new and existing payment requests.
-
-This is a support endpoint and will not be available in production.
-*/
-type RecalculatePaymentRequest struct {
- Context *middleware.Context
- Handler RecalculatePaymentRequestHandler
-}
-
-func (o *RecalculatePaymentRequest) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewRecalculatePaymentRequestParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go
deleted file mode 100644
index d747015620e..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go
+++ /dev/null
@@ -1,91 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// NewRecalculatePaymentRequestParams creates a new RecalculatePaymentRequestParams object
-//
-// There are no default values defined in the spec.
-func NewRecalculatePaymentRequestParams() RecalculatePaymentRequestParams {
-
- return RecalculatePaymentRequestParams{}
-}
-
-// RecalculatePaymentRequestParams contains all the bound params for the recalculate payment request operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters recalculatePaymentRequest
-type RecalculatePaymentRequestParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*UUID of the payment request to recalculate.
- Required: true
- In: path
- */
- PaymentRequestID strfmt.UUID
-}
-
-// 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 NewRecalculatePaymentRequestParams() beforehand.
-func (o *RecalculatePaymentRequestParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
- if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
-func (o *RecalculatePaymentRequestParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
-
- // Format: uuid
- value, err := formats.Parse("uuid", raw)
- if err != nil {
- return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
- }
- o.PaymentRequestID = *(value.(*strfmt.UUID))
-
- if err := o.validatePaymentRequestID(formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// validatePaymentRequestID carries on validations for parameter PaymentRequestID
-func (o *RecalculatePaymentRequestParams) validatePaymentRequestID(formats strfmt.Registry) error {
-
- if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go
deleted file mode 100644
index 68d893ca414..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go
+++ /dev/null
@@ -1,419 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// RecalculatePaymentRequestCreatedCode is the HTTP code returned for type RecalculatePaymentRequestCreated
-const RecalculatePaymentRequestCreatedCode int = 201
-
-/*
-RecalculatePaymentRequestCreated The new payment request with recalculated pricing.
-
-swagger:response recalculatePaymentRequestCreated
-*/
-type RecalculatePaymentRequestCreated struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.PaymentRequest `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestCreated creates RecalculatePaymentRequestCreated with default headers values
-func NewRecalculatePaymentRequestCreated() *RecalculatePaymentRequestCreated {
-
- return &RecalculatePaymentRequestCreated{}
-}
-
-// WithPayload adds the payload to the recalculate payment request created response
-func (o *RecalculatePaymentRequestCreated) WithPayload(payload *supportmessages.PaymentRequest) *RecalculatePaymentRequestCreated {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request created response
-func (o *RecalculatePaymentRequestCreated) SetPayload(payload *supportmessages.PaymentRequest) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(201)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestBadRequestCode is the HTTP code returned for type RecalculatePaymentRequestBadRequest
-const RecalculatePaymentRequestBadRequestCode int = 400
-
-/*
-RecalculatePaymentRequestBadRequest The request payload is invalid.
-
-swagger:response recalculatePaymentRequestBadRequest
-*/
-type RecalculatePaymentRequestBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestBadRequest creates RecalculatePaymentRequestBadRequest with default headers values
-func NewRecalculatePaymentRequestBadRequest() *RecalculatePaymentRequestBadRequest {
-
- return &RecalculatePaymentRequestBadRequest{}
-}
-
-// WithPayload adds the payload to the recalculate payment request bad request response
-func (o *RecalculatePaymentRequestBadRequest) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request bad request response
-func (o *RecalculatePaymentRequestBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestUnauthorizedCode is the HTTP code returned for type RecalculatePaymentRequestUnauthorized
-const RecalculatePaymentRequestUnauthorizedCode int = 401
-
-/*
-RecalculatePaymentRequestUnauthorized The request was denied.
-
-swagger:response recalculatePaymentRequestUnauthorized
-*/
-type RecalculatePaymentRequestUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestUnauthorized creates RecalculatePaymentRequestUnauthorized with default headers values
-func NewRecalculatePaymentRequestUnauthorized() *RecalculatePaymentRequestUnauthorized {
-
- return &RecalculatePaymentRequestUnauthorized{}
-}
-
-// WithPayload adds the payload to the recalculate payment request unauthorized response
-func (o *RecalculatePaymentRequestUnauthorized) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request unauthorized response
-func (o *RecalculatePaymentRequestUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestForbiddenCode is the HTTP code returned for type RecalculatePaymentRequestForbidden
-const RecalculatePaymentRequestForbiddenCode int = 403
-
-/*
-RecalculatePaymentRequestForbidden The request was denied.
-
-swagger:response recalculatePaymentRequestForbidden
-*/
-type RecalculatePaymentRequestForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestForbidden creates RecalculatePaymentRequestForbidden with default headers values
-func NewRecalculatePaymentRequestForbidden() *RecalculatePaymentRequestForbidden {
-
- return &RecalculatePaymentRequestForbidden{}
-}
-
-// WithPayload adds the payload to the recalculate payment request forbidden response
-func (o *RecalculatePaymentRequestForbidden) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request forbidden response
-func (o *RecalculatePaymentRequestForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestNotFoundCode is the HTTP code returned for type RecalculatePaymentRequestNotFound
-const RecalculatePaymentRequestNotFoundCode int = 404
-
-/*
-RecalculatePaymentRequestNotFound The requested resource wasn't found.
-
-swagger:response recalculatePaymentRequestNotFound
-*/
-type RecalculatePaymentRequestNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestNotFound creates RecalculatePaymentRequestNotFound with default headers values
-func NewRecalculatePaymentRequestNotFound() *RecalculatePaymentRequestNotFound {
-
- return &RecalculatePaymentRequestNotFound{}
-}
-
-// WithPayload adds the payload to the recalculate payment request not found response
-func (o *RecalculatePaymentRequestNotFound) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request not found response
-func (o *RecalculatePaymentRequestNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestConflictCode is the HTTP code returned for type RecalculatePaymentRequestConflict
-const RecalculatePaymentRequestConflictCode int = 409
-
-/*
-RecalculatePaymentRequestConflict There was a conflict with the request.
-
-swagger:response recalculatePaymentRequestConflict
-*/
-type RecalculatePaymentRequestConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestConflict creates RecalculatePaymentRequestConflict with default headers values
-func NewRecalculatePaymentRequestConflict() *RecalculatePaymentRequestConflict {
-
- return &RecalculatePaymentRequestConflict{}
-}
-
-// WithPayload adds the payload to the recalculate payment request conflict response
-func (o *RecalculatePaymentRequestConflict) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request conflict response
-func (o *RecalculatePaymentRequestConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestPreconditionFailedCode is the HTTP code returned for type RecalculatePaymentRequestPreconditionFailed
-const RecalculatePaymentRequestPreconditionFailedCode int = 412
-
-/*
-RecalculatePaymentRequestPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response recalculatePaymentRequestPreconditionFailed
-*/
-type RecalculatePaymentRequestPreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestPreconditionFailed creates RecalculatePaymentRequestPreconditionFailed with default headers values
-func NewRecalculatePaymentRequestPreconditionFailed() *RecalculatePaymentRequestPreconditionFailed {
-
- return &RecalculatePaymentRequestPreconditionFailed{}
-}
-
-// WithPayload adds the payload to the recalculate payment request precondition failed response
-func (o *RecalculatePaymentRequestPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestPreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request precondition failed response
-func (o *RecalculatePaymentRequestPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestUnprocessableEntityCode is the HTTP code returned for type RecalculatePaymentRequestUnprocessableEntity
-const RecalculatePaymentRequestUnprocessableEntityCode int = 422
-
-/*
-RecalculatePaymentRequestUnprocessableEntity The payload was unprocessable.
-
-swagger:response recalculatePaymentRequestUnprocessableEntity
-*/
-type RecalculatePaymentRequestUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestUnprocessableEntity creates RecalculatePaymentRequestUnprocessableEntity with default headers values
-func NewRecalculatePaymentRequestUnprocessableEntity() *RecalculatePaymentRequestUnprocessableEntity {
-
- return &RecalculatePaymentRequestUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the recalculate payment request unprocessable entity response
-func (o *RecalculatePaymentRequestUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *RecalculatePaymentRequestUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request unprocessable entity response
-func (o *RecalculatePaymentRequestUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// RecalculatePaymentRequestInternalServerErrorCode is the HTTP code returned for type RecalculatePaymentRequestInternalServerError
-const RecalculatePaymentRequestInternalServerErrorCode int = 500
-
-/*
-RecalculatePaymentRequestInternalServerError A server error occurred.
-
-swagger:response recalculatePaymentRequestInternalServerError
-*/
-type RecalculatePaymentRequestInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewRecalculatePaymentRequestInternalServerError creates RecalculatePaymentRequestInternalServerError with default headers values
-func NewRecalculatePaymentRequestInternalServerError() *RecalculatePaymentRequestInternalServerError {
-
- return &RecalculatePaymentRequestInternalServerError{}
-}
-
-// WithPayload adds the payload to the recalculate payment request internal server error response
-func (o *RecalculatePaymentRequestInternalServerError) WithPayload(payload *supportmessages.Error) *RecalculatePaymentRequestInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the recalculate payment request internal server error response
-func (o *RecalculatePaymentRequestInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *RecalculatePaymentRequestInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go
deleted file mode 100644
index 61c73beca5e..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-
- "github.com/go-openapi/strfmt"
-)
-
-// RecalculatePaymentRequestURL generates an URL for the recalculate payment request operation
-type RecalculatePaymentRequestURL struct {
- PaymentRequestID strfmt.UUID
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *RecalculatePaymentRequestURL) WithBasePath(bp string) *RecalculatePaymentRequestURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *RecalculatePaymentRequestURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *RecalculatePaymentRequestURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/payment-requests/{paymentRequestID}/recalculate"
-
- paymentRequestID := o.PaymentRequestID.String()
- if paymentRequestID != "" {
- _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
- } else {
- return nil, errors.New("paymentRequestId is required on RecalculatePaymentRequestURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *RecalculatePaymentRequestURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *RecalculatePaymentRequestURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *RecalculatePaymentRequestURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on RecalculatePaymentRequestURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on RecalculatePaymentRequestURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *RecalculatePaymentRequestURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go
deleted file mode 100644
index 2d608c5d45b..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go
+++ /dev/null
@@ -1,62 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// UpdatePaymentRequestStatusHandlerFunc turns a function with the right signature into a update payment request status handler
-type UpdatePaymentRequestStatusHandlerFunc func(UpdatePaymentRequestStatusParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn UpdatePaymentRequestStatusHandlerFunc) Handle(params UpdatePaymentRequestStatusParams) middleware.Responder {
- return fn(params)
-}
-
-// UpdatePaymentRequestStatusHandler interface for that can handle valid update payment request status params
-type UpdatePaymentRequestStatusHandler interface {
- Handle(UpdatePaymentRequestStatusParams) middleware.Responder
-}
-
-// NewUpdatePaymentRequestStatus creates a new http.Handler for the update payment request status operation
-func NewUpdatePaymentRequestStatus(ctx *middleware.Context, handler UpdatePaymentRequestStatusHandler) *UpdatePaymentRequestStatus {
- return &UpdatePaymentRequestStatus{Context: ctx, Handler: handler}
-}
-
-/*
- UpdatePaymentRequestStatus swagger:route PATCH /payment-requests/{paymentRequestID}/status paymentRequest updatePaymentRequestStatus
-
-updatePaymentRequestStatus
-
-Updates status of a payment request to REVIEWED, SENT_TO_GEX, TPPS_RECEIVED, REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED, PAID, EDI_ERROR, or DEPRECATED.
-
-A status of REVIEWED can optionally have a `rejectionReason`.
-
-This is a support endpoint and is not available in production.
-*/
-type UpdatePaymentRequestStatus struct {
- Context *middleware.Context
- Handler UpdatePaymentRequestStatusHandler
-}
-
-func (o *UpdatePaymentRequestStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewUpdatePaymentRequestStatusParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go
deleted file mode 100644
index c2d24299565..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go
+++ /dev/null
@@ -1,158 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "io"
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdatePaymentRequestStatusParams creates a new UpdatePaymentRequestStatusParams object
-//
-// There are no default values defined in the spec.
-func NewUpdatePaymentRequestStatusParams() UpdatePaymentRequestStatusParams {
-
- return UpdatePaymentRequestStatusParams{}
-}
-
-// UpdatePaymentRequestStatusParams contains all the bound params for the update payment request status operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters updatePaymentRequestStatus
-type UpdatePaymentRequestStatusParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- Required: true
- In: header
- */
- IfMatch string
- /*
- Required: true
- In: body
- */
- Body *supportmessages.UpdatePaymentRequestStatus
- /*UUID of payment request.
- Required: true
- In: path
- */
- PaymentRequestID strfmt.UUID
-}
-
-// 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 NewUpdatePaymentRequestStatusParams() beforehand.
-func (o *UpdatePaymentRequestStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.UpdatePaymentRequestStatus
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- if err == io.EOF {
- res = append(res, errors.Required("body", "body", ""))
- } else {
- res = append(res, errors.NewParseError("body", "body", "", err))
- }
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- } else {
- res = append(res, errors.Required("body", "body", ""))
- }
-
- rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
- if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
- res = append(res, err)
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// bindIfMatch binds and validates parameter IfMatch from header.
-func (o *UpdatePaymentRequestStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
- if !hasKey {
- return errors.Required("If-Match", "header", rawData)
- }
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
-
- if err := validate.RequiredString("If-Match", "header", raw); err != nil {
- return err
- }
- o.IfMatch = raw
-
- return nil
-}
-
-// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
-func (o *UpdatePaymentRequestStatusParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
- var raw string
- if len(rawData) > 0 {
- raw = rawData[len(rawData)-1]
- }
-
- // Required: true
- // Parameter is provided by construction from the route
-
- // Format: uuid
- value, err := formats.Parse("uuid", raw)
- if err != nil {
- return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
- }
- o.PaymentRequestID = *(value.(*strfmt.UUID))
-
- if err := o.validatePaymentRequestID(formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// validatePaymentRequestID carries on validations for parameter PaymentRequestID
-func (o *UpdatePaymentRequestStatusParams) validatePaymentRequestID(formats strfmt.Registry) error {
-
- if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
- return err
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go
deleted file mode 100644
index 2fbd739f80d..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go
+++ /dev/null
@@ -1,419 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdatePaymentRequestStatusOKCode is the HTTP code returned for type UpdatePaymentRequestStatusOK
-const UpdatePaymentRequestStatusOKCode int = 200
-
-/*
-UpdatePaymentRequestStatusOK Successfully updated payment request status.
-
-swagger:response updatePaymentRequestStatusOK
-*/
-type UpdatePaymentRequestStatusOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.PaymentRequest `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusOK creates UpdatePaymentRequestStatusOK with default headers values
-func NewUpdatePaymentRequestStatusOK() *UpdatePaymentRequestStatusOK {
-
- return &UpdatePaymentRequestStatusOK{}
-}
-
-// WithPayload adds the payload to the update payment request status o k response
-func (o *UpdatePaymentRequestStatusOK) WithPayload(payload *supportmessages.PaymentRequest) *UpdatePaymentRequestStatusOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status o k response
-func (o *UpdatePaymentRequestStatusOK) SetPayload(payload *supportmessages.PaymentRequest) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusBadRequestCode is the HTTP code returned for type UpdatePaymentRequestStatusBadRequest
-const UpdatePaymentRequestStatusBadRequestCode int = 400
-
-/*
-UpdatePaymentRequestStatusBadRequest The request payload is invalid.
-
-swagger:response updatePaymentRequestStatusBadRequest
-*/
-type UpdatePaymentRequestStatusBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusBadRequest creates UpdatePaymentRequestStatusBadRequest with default headers values
-func NewUpdatePaymentRequestStatusBadRequest() *UpdatePaymentRequestStatusBadRequest {
-
- return &UpdatePaymentRequestStatusBadRequest{}
-}
-
-// WithPayload adds the payload to the update payment request status bad request response
-func (o *UpdatePaymentRequestStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status bad request response
-func (o *UpdatePaymentRequestStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusUnauthorizedCode is the HTTP code returned for type UpdatePaymentRequestStatusUnauthorized
-const UpdatePaymentRequestStatusUnauthorizedCode int = 401
-
-/*
-UpdatePaymentRequestStatusUnauthorized The request was denied.
-
-swagger:response updatePaymentRequestStatusUnauthorized
-*/
-type UpdatePaymentRequestStatusUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusUnauthorized creates UpdatePaymentRequestStatusUnauthorized with default headers values
-func NewUpdatePaymentRequestStatusUnauthorized() *UpdatePaymentRequestStatusUnauthorized {
-
- return &UpdatePaymentRequestStatusUnauthorized{}
-}
-
-// WithPayload adds the payload to the update payment request status unauthorized response
-func (o *UpdatePaymentRequestStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status unauthorized response
-func (o *UpdatePaymentRequestStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusForbiddenCode is the HTTP code returned for type UpdatePaymentRequestStatusForbidden
-const UpdatePaymentRequestStatusForbiddenCode int = 403
-
-/*
-UpdatePaymentRequestStatusForbidden The request was denied.
-
-swagger:response updatePaymentRequestStatusForbidden
-*/
-type UpdatePaymentRequestStatusForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusForbidden creates UpdatePaymentRequestStatusForbidden with default headers values
-func NewUpdatePaymentRequestStatusForbidden() *UpdatePaymentRequestStatusForbidden {
-
- return &UpdatePaymentRequestStatusForbidden{}
-}
-
-// WithPayload adds the payload to the update payment request status forbidden response
-func (o *UpdatePaymentRequestStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status forbidden response
-func (o *UpdatePaymentRequestStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusNotFoundCode is the HTTP code returned for type UpdatePaymentRequestStatusNotFound
-const UpdatePaymentRequestStatusNotFoundCode int = 404
-
-/*
-UpdatePaymentRequestStatusNotFound The requested resource wasn't found.
-
-swagger:response updatePaymentRequestStatusNotFound
-*/
-type UpdatePaymentRequestStatusNotFound struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusNotFound creates UpdatePaymentRequestStatusNotFound with default headers values
-func NewUpdatePaymentRequestStatusNotFound() *UpdatePaymentRequestStatusNotFound {
-
- return &UpdatePaymentRequestStatusNotFound{}
-}
-
-// WithPayload adds the payload to the update payment request status not found response
-func (o *UpdatePaymentRequestStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusNotFound {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status not found response
-func (o *UpdatePaymentRequestStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(404)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusConflictCode is the HTTP code returned for type UpdatePaymentRequestStatusConflict
-const UpdatePaymentRequestStatusConflictCode int = 409
-
-/*
-UpdatePaymentRequestStatusConflict There was a conflict with the request.
-
-swagger:response updatePaymentRequestStatusConflict
-*/
-type UpdatePaymentRequestStatusConflict struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusConflict creates UpdatePaymentRequestStatusConflict with default headers values
-func NewUpdatePaymentRequestStatusConflict() *UpdatePaymentRequestStatusConflict {
-
- return &UpdatePaymentRequestStatusConflict{}
-}
-
-// WithPayload adds the payload to the update payment request status conflict response
-func (o *UpdatePaymentRequestStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusConflict {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status conflict response
-func (o *UpdatePaymentRequestStatusConflict) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(409)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusPreconditionFailedCode is the HTTP code returned for type UpdatePaymentRequestStatusPreconditionFailed
-const UpdatePaymentRequestStatusPreconditionFailedCode int = 412
-
-/*
-UpdatePaymentRequestStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-
-swagger:response updatePaymentRequestStatusPreconditionFailed
-*/
-type UpdatePaymentRequestStatusPreconditionFailed struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusPreconditionFailed creates UpdatePaymentRequestStatusPreconditionFailed with default headers values
-func NewUpdatePaymentRequestStatusPreconditionFailed() *UpdatePaymentRequestStatusPreconditionFailed {
-
- return &UpdatePaymentRequestStatusPreconditionFailed{}
-}
-
-// WithPayload adds the payload to the update payment request status precondition failed response
-func (o *UpdatePaymentRequestStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusPreconditionFailed {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status precondition failed response
-func (o *UpdatePaymentRequestStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(412)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusUnprocessableEntityCode is the HTTP code returned for type UpdatePaymentRequestStatusUnprocessableEntity
-const UpdatePaymentRequestStatusUnprocessableEntityCode int = 422
-
-/*
-UpdatePaymentRequestStatusUnprocessableEntity The payload was unprocessable.
-
-swagger:response updatePaymentRequestStatusUnprocessableEntity
-*/
-type UpdatePaymentRequestStatusUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusUnprocessableEntity creates UpdatePaymentRequestStatusUnprocessableEntity with default headers values
-func NewUpdatePaymentRequestStatusUnprocessableEntity() *UpdatePaymentRequestStatusUnprocessableEntity {
-
- return &UpdatePaymentRequestStatusUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the update payment request status unprocessable entity response
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdatePaymentRequestStatusUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status unprocessable entity response
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// UpdatePaymentRequestStatusInternalServerErrorCode is the HTTP code returned for type UpdatePaymentRequestStatusInternalServerError
-const UpdatePaymentRequestStatusInternalServerErrorCode int = 500
-
-/*
-UpdatePaymentRequestStatusInternalServerError A server error occurred.
-
-swagger:response updatePaymentRequestStatusInternalServerError
-*/
-type UpdatePaymentRequestStatusInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewUpdatePaymentRequestStatusInternalServerError creates UpdatePaymentRequestStatusInternalServerError with default headers values
-func NewUpdatePaymentRequestStatusInternalServerError() *UpdatePaymentRequestStatusInternalServerError {
-
- return &UpdatePaymentRequestStatusInternalServerError{}
-}
-
-// WithPayload adds the payload to the update payment request status internal server error response
-func (o *UpdatePaymentRequestStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdatePaymentRequestStatusInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the update payment request status internal server error response
-func (o *UpdatePaymentRequestStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *UpdatePaymentRequestStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go
deleted file mode 100644
index 8d337b7e665..00000000000
--- a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go
+++ /dev/null
@@ -1,101 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
- "strings"
-
- "github.com/go-openapi/strfmt"
-)
-
-// UpdatePaymentRequestStatusURL generates an URL for the update payment request status operation
-type UpdatePaymentRequestStatusURL struct {
- PaymentRequestID strfmt.UUID
-
- _basePath string
- // avoid unkeyed usage
- _ struct{}
-}
-
-// 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
-func (o *UpdatePaymentRequestStatusURL) WithBasePath(bp string) *UpdatePaymentRequestStatusURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *UpdatePaymentRequestStatusURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *UpdatePaymentRequestStatusURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/payment-requests/{paymentRequestID}/status"
-
- paymentRequestID := o.PaymentRequestID.String()
- if paymentRequestID != "" {
- _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
- } else {
- return nil, errors.New("paymentRequestId is required on UpdatePaymentRequestStatusURL")
- }
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *UpdatePaymentRequestStatusURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *UpdatePaymentRequestStatusURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *UpdatePaymentRequestStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on UpdatePaymentRequestStatusURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on UpdatePaymentRequestStatusURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *UpdatePaymentRequestStatusURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go
deleted file mode 100644
index 15b207c8460..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go
+++ /dev/null
@@ -1,58 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// CreateWebhookNotificationHandlerFunc turns a function with the right signature into a create webhook notification handler
-type CreateWebhookNotificationHandlerFunc func(CreateWebhookNotificationParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn CreateWebhookNotificationHandlerFunc) Handle(params CreateWebhookNotificationParams) middleware.Responder {
- return fn(params)
-}
-
-// CreateWebhookNotificationHandler interface for that can handle valid create webhook notification params
-type CreateWebhookNotificationHandler interface {
- Handle(CreateWebhookNotificationParams) middleware.Responder
-}
-
-// NewCreateWebhookNotification creates a new http.Handler for the create webhook notification operation
-func NewCreateWebhookNotification(ctx *middleware.Context, handler CreateWebhookNotificationHandler) *CreateWebhookNotification {
- return &CreateWebhookNotification{Context: ctx, Handler: handler}
-}
-
-/*
- CreateWebhookNotification swagger:route POST /webhook-notifications webhook createWebhookNotification
-
-# Test endpoint for creating webhook notifications
-
-This endpoint creates a webhook notification in the database. If the webhook client is running, it may send the notification soon after creation.
-*/
-type CreateWebhookNotification struct {
- Context *middleware.Context
- Handler CreateWebhookNotificationHandler
-}
-
-func (o *CreateWebhookNotification) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewCreateWebhookNotificationParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go
deleted file mode 100644
index aeeedc93343..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go
+++ /dev/null
@@ -1,76 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewCreateWebhookNotificationParams creates a new CreateWebhookNotificationParams object
-//
-// There are no default values defined in the spec.
-func NewCreateWebhookNotificationParams() CreateWebhookNotificationParams {
-
- return CreateWebhookNotificationParams{}
-}
-
-// CreateWebhookNotificationParams contains all the bound params for the create webhook notification operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters createWebhookNotification
-type CreateWebhookNotificationParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*The notification sent by webhook-client.
- In: body
- */
- Body *supportmessages.WebhookNotification
-}
-
-// 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 NewCreateWebhookNotificationParams() beforehand.
-func (o *CreateWebhookNotificationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.WebhookNotification
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- res = append(res, errors.NewParseError("body", "body", "", err))
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go
deleted file mode 100644
index f697cc5bf92..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go
+++ /dev/null
@@ -1,149 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// CreateWebhookNotificationCreatedCode is the HTTP code returned for type CreateWebhookNotificationCreated
-const CreateWebhookNotificationCreatedCode int = 201
-
-/*
-CreateWebhookNotificationCreated Successful creation
-
-swagger:response createWebhookNotificationCreated
-*/
-type CreateWebhookNotificationCreated struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.WebhookNotification `json:"body,omitempty"`
-}
-
-// NewCreateWebhookNotificationCreated creates CreateWebhookNotificationCreated with default headers values
-func NewCreateWebhookNotificationCreated() *CreateWebhookNotificationCreated {
-
- return &CreateWebhookNotificationCreated{}
-}
-
-// WithPayload adds the payload to the create webhook notification created response
-func (o *CreateWebhookNotificationCreated) WithPayload(payload *supportmessages.WebhookNotification) *CreateWebhookNotificationCreated {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the create webhook notification created response
-func (o *CreateWebhookNotificationCreated) SetPayload(payload *supportmessages.WebhookNotification) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *CreateWebhookNotificationCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(201)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// CreateWebhookNotificationUnprocessableEntityCode is the HTTP code returned for type CreateWebhookNotificationUnprocessableEntity
-const CreateWebhookNotificationUnprocessableEntityCode int = 422
-
-/*
-CreateWebhookNotificationUnprocessableEntity The payload was unprocessable.
-
-swagger:response createWebhookNotificationUnprocessableEntity
-*/
-type CreateWebhookNotificationUnprocessableEntity struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ValidationError `json:"body,omitempty"`
-}
-
-// NewCreateWebhookNotificationUnprocessableEntity creates CreateWebhookNotificationUnprocessableEntity with default headers values
-func NewCreateWebhookNotificationUnprocessableEntity() *CreateWebhookNotificationUnprocessableEntity {
-
- return &CreateWebhookNotificationUnprocessableEntity{}
-}
-
-// WithPayload adds the payload to the create webhook notification unprocessable entity response
-func (o *CreateWebhookNotificationUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *CreateWebhookNotificationUnprocessableEntity {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the create webhook notification unprocessable entity response
-func (o *CreateWebhookNotificationUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *CreateWebhookNotificationUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(422)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// CreateWebhookNotificationInternalServerErrorCode is the HTTP code returned for type CreateWebhookNotificationInternalServerError
-const CreateWebhookNotificationInternalServerErrorCode int = 500
-
-/*
-CreateWebhookNotificationInternalServerError A server error occurred.
-
-swagger:response createWebhookNotificationInternalServerError
-*/
-type CreateWebhookNotificationInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewCreateWebhookNotificationInternalServerError creates CreateWebhookNotificationInternalServerError with default headers values
-func NewCreateWebhookNotificationInternalServerError() *CreateWebhookNotificationInternalServerError {
-
- return &CreateWebhookNotificationInternalServerError{}
-}
-
-// WithPayload adds the payload to the create webhook notification internal server error response
-func (o *CreateWebhookNotificationInternalServerError) WithPayload(payload *supportmessages.Error) *CreateWebhookNotificationInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the create webhook notification internal server error response
-func (o *CreateWebhookNotificationInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *CreateWebhookNotificationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go
deleted file mode 100644
index ac3646fd8a0..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go
+++ /dev/null
@@ -1,87 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
-)
-
-// CreateWebhookNotificationURL generates an URL for the create webhook notification operation
-type CreateWebhookNotificationURL struct {
- _basePath string
-}
-
-// 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
-func (o *CreateWebhookNotificationURL) WithBasePath(bp string) *CreateWebhookNotificationURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *CreateWebhookNotificationURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *CreateWebhookNotificationURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/webhook-notifications"
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *CreateWebhookNotificationURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *CreateWebhookNotificationURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *CreateWebhookNotificationURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on CreateWebhookNotificationURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on CreateWebhookNotificationURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *CreateWebhookNotificationURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go
deleted file mode 100644
index 900907c8d0d..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go
+++ /dev/null
@@ -1,58 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime/middleware"
-)
-
-// ReceiveWebhookNotificationHandlerFunc turns a function with the right signature into a receive webhook notification handler
-type ReceiveWebhookNotificationHandlerFunc func(ReceiveWebhookNotificationParams) middleware.Responder
-
-// Handle executing the request and returning a response
-func (fn ReceiveWebhookNotificationHandlerFunc) Handle(params ReceiveWebhookNotificationParams) middleware.Responder {
- return fn(params)
-}
-
-// ReceiveWebhookNotificationHandler interface for that can handle valid receive webhook notification params
-type ReceiveWebhookNotificationHandler interface {
- Handle(ReceiveWebhookNotificationParams) middleware.Responder
-}
-
-// NewReceiveWebhookNotification creates a new http.Handler for the receive webhook notification operation
-func NewReceiveWebhookNotification(ctx *middleware.Context, handler ReceiveWebhookNotificationHandler) *ReceiveWebhookNotification {
- return &ReceiveWebhookNotification{Context: ctx, Handler: handler}
-}
-
-/*
- ReceiveWebhookNotification swagger:route POST /webhook-notify webhook receiveWebhookNotification
-
-# Test endpoint for receiving messages from our own webhook-client
-
-This endpoint receives a notification that matches the webhook notification model. This is a test endpoint that represents a receiving server. In production, the Prime will set up a receiving endpoint. In testing, this server accepts notifications at this endpoint and simply responds with success and logs them. The `webhook-client` is responsible for retrieving messages from the webhook_notifications table and sending them to the Prime (this endpoint in our testing case) via an mTLS connection.
-*/
-type ReceiveWebhookNotification struct {
- Context *middleware.Context
- Handler ReceiveWebhookNotificationHandler
-}
-
-func (o *ReceiveWebhookNotification) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
- route, rCtx, _ := o.Context.RouteInfo(r)
- if rCtx != nil {
- *r = *rCtx
- }
- var Params = NewReceiveWebhookNotificationParams()
- if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
- o.Context.Respond(rw, r, route.Produces, route, err)
- return
- }
-
- res := o.Handler.Handle(Params) // actually handle the request
- o.Context.Respond(rw, r, route.Produces, route, res)
-
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go
deleted file mode 100644
index 633b176db6a..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go
+++ /dev/null
@@ -1,84 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "io"
- "net/http"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/runtime/middleware"
- "github.com/go-openapi/validate"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewReceiveWebhookNotificationParams creates a new ReceiveWebhookNotificationParams object
-//
-// There are no default values defined in the spec.
-func NewReceiveWebhookNotificationParams() ReceiveWebhookNotificationParams {
-
- return ReceiveWebhookNotificationParams{}
-}
-
-// ReceiveWebhookNotificationParams contains all the bound params for the receive webhook notification operation
-// typically these are obtained from a http.Request
-//
-// swagger:parameters receiveWebhookNotification
-type ReceiveWebhookNotificationParams struct {
-
- // HTTP Request Object
- HTTPRequest *http.Request `json:"-"`
-
- /*The webhook notification being sent
- Required: true
- In: body
- */
- Body *supportmessages.WebhookNotification
-}
-
-// 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 NewReceiveWebhookNotificationParams() beforehand.
-func (o *ReceiveWebhookNotificationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
- var res []error
-
- o.HTTPRequest = r
-
- if runtime.HasBody(r) {
- defer r.Body.Close()
- var body supportmessages.WebhookNotification
- if err := route.Consumer.Consume(r.Body, &body); err != nil {
- if err == io.EOF {
- res = append(res, errors.Required("body", "body", ""))
- } else {
- res = append(res, errors.NewParseError("body", "body", "", err))
- }
- } else {
- // validate body object
- if err := body.Validate(route.Formats); err != nil {
- res = append(res, err)
- }
-
- ctx := validate.WithOperationRequest(r.Context())
- if err := body.ContextValidate(ctx, route.Formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) == 0 {
- o.Body = &body
- }
- }
- } else {
- res = append(res, errors.Required("body", "body", ""))
- }
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go
deleted file mode 100644
index 4bc18b5f51f..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go
+++ /dev/null
@@ -1,239 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "net/http"
-
- "github.com/go-openapi/runtime"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ReceiveWebhookNotificationOKCode is the HTTP code returned for type ReceiveWebhookNotificationOK
-const ReceiveWebhookNotificationOKCode int = 200
-
-/*
-ReceiveWebhookNotificationOK Received notification
-
-swagger:response receiveWebhookNotificationOK
-*/
-type ReceiveWebhookNotificationOK struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.WebhookNotification `json:"body,omitempty"`
-}
-
-// NewReceiveWebhookNotificationOK creates ReceiveWebhookNotificationOK with default headers values
-func NewReceiveWebhookNotificationOK() *ReceiveWebhookNotificationOK {
-
- return &ReceiveWebhookNotificationOK{}
-}
-
-// WithPayload adds the payload to the receive webhook notification o k response
-func (o *ReceiveWebhookNotificationOK) WithPayload(payload *supportmessages.WebhookNotification) *ReceiveWebhookNotificationOK {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the receive webhook notification o k response
-func (o *ReceiveWebhookNotificationOK) SetPayload(payload *supportmessages.WebhookNotification) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ReceiveWebhookNotificationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(200)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ReceiveWebhookNotificationBadRequestCode is the HTTP code returned for type ReceiveWebhookNotificationBadRequest
-const ReceiveWebhookNotificationBadRequestCode int = 400
-
-/*
-ReceiveWebhookNotificationBadRequest The request payload is invalid.
-
-swagger:response receiveWebhookNotificationBadRequest
-*/
-type ReceiveWebhookNotificationBadRequest struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewReceiveWebhookNotificationBadRequest creates ReceiveWebhookNotificationBadRequest with default headers values
-func NewReceiveWebhookNotificationBadRequest() *ReceiveWebhookNotificationBadRequest {
-
- return &ReceiveWebhookNotificationBadRequest{}
-}
-
-// WithPayload adds the payload to the receive webhook notification bad request response
-func (o *ReceiveWebhookNotificationBadRequest) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationBadRequest {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the receive webhook notification bad request response
-func (o *ReceiveWebhookNotificationBadRequest) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ReceiveWebhookNotificationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(400)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ReceiveWebhookNotificationUnauthorizedCode is the HTTP code returned for type ReceiveWebhookNotificationUnauthorized
-const ReceiveWebhookNotificationUnauthorizedCode int = 401
-
-/*
-ReceiveWebhookNotificationUnauthorized The request was denied.
-
-swagger:response receiveWebhookNotificationUnauthorized
-*/
-type ReceiveWebhookNotificationUnauthorized struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewReceiveWebhookNotificationUnauthorized creates ReceiveWebhookNotificationUnauthorized with default headers values
-func NewReceiveWebhookNotificationUnauthorized() *ReceiveWebhookNotificationUnauthorized {
-
- return &ReceiveWebhookNotificationUnauthorized{}
-}
-
-// WithPayload adds the payload to the receive webhook notification unauthorized response
-func (o *ReceiveWebhookNotificationUnauthorized) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationUnauthorized {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the receive webhook notification unauthorized response
-func (o *ReceiveWebhookNotificationUnauthorized) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ReceiveWebhookNotificationUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(401)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ReceiveWebhookNotificationForbiddenCode is the HTTP code returned for type ReceiveWebhookNotificationForbidden
-const ReceiveWebhookNotificationForbiddenCode int = 403
-
-/*
-ReceiveWebhookNotificationForbidden The request was denied.
-
-swagger:response receiveWebhookNotificationForbidden
-*/
-type ReceiveWebhookNotificationForbidden struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.ClientError `json:"body,omitempty"`
-}
-
-// NewReceiveWebhookNotificationForbidden creates ReceiveWebhookNotificationForbidden with default headers values
-func NewReceiveWebhookNotificationForbidden() *ReceiveWebhookNotificationForbidden {
-
- return &ReceiveWebhookNotificationForbidden{}
-}
-
-// WithPayload adds the payload to the receive webhook notification forbidden response
-func (o *ReceiveWebhookNotificationForbidden) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationForbidden {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the receive webhook notification forbidden response
-func (o *ReceiveWebhookNotificationForbidden) SetPayload(payload *supportmessages.ClientError) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ReceiveWebhookNotificationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(403)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
-
-// ReceiveWebhookNotificationInternalServerErrorCode is the HTTP code returned for type ReceiveWebhookNotificationInternalServerError
-const ReceiveWebhookNotificationInternalServerErrorCode int = 500
-
-/*
-ReceiveWebhookNotificationInternalServerError A server error occurred.
-
-swagger:response receiveWebhookNotificationInternalServerError
-*/
-type ReceiveWebhookNotificationInternalServerError struct {
-
- /*
- In: Body
- */
- Payload *supportmessages.Error `json:"body,omitempty"`
-}
-
-// NewReceiveWebhookNotificationInternalServerError creates ReceiveWebhookNotificationInternalServerError with default headers values
-func NewReceiveWebhookNotificationInternalServerError() *ReceiveWebhookNotificationInternalServerError {
-
- return &ReceiveWebhookNotificationInternalServerError{}
-}
-
-// WithPayload adds the payload to the receive webhook notification internal server error response
-func (o *ReceiveWebhookNotificationInternalServerError) WithPayload(payload *supportmessages.Error) *ReceiveWebhookNotificationInternalServerError {
- o.Payload = payload
- return o
-}
-
-// SetPayload sets the payload to the receive webhook notification internal server error response
-func (o *ReceiveWebhookNotificationInternalServerError) SetPayload(payload *supportmessages.Error) {
- o.Payload = payload
-}
-
-// WriteResponse to the client
-func (o *ReceiveWebhookNotificationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
-
- rw.WriteHeader(500)
- if o.Payload != nil {
- payload := o.Payload
- if err := producer.Produce(rw, payload); err != nil {
- panic(err) // let the recovery middleware deal with this
- }
- }
-}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go
deleted file mode 100644
index 37421521ef9..00000000000
--- a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go
+++ /dev/null
@@ -1,87 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the generate command
-
-import (
- "errors"
- "net/url"
- golangswaggerpaths "path"
-)
-
-// ReceiveWebhookNotificationURL generates an URL for the receive webhook notification operation
-type ReceiveWebhookNotificationURL struct {
- _basePath string
-}
-
-// 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
-func (o *ReceiveWebhookNotificationURL) WithBasePath(bp string) *ReceiveWebhookNotificationURL {
- o.SetBasePath(bp)
- return o
-}
-
-// 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 (o *ReceiveWebhookNotificationURL) SetBasePath(bp string) {
- o._basePath = bp
-}
-
-// Build a url path and query string
-func (o *ReceiveWebhookNotificationURL) Build() (*url.URL, error) {
- var _result url.URL
-
- var _path = "/webhook-notify"
-
- _basePath := o._basePath
- if _basePath == "" {
- _basePath = "/support/v1"
- }
- _result.Path = golangswaggerpaths.Join(_basePath, _path)
-
- return &_result, nil
-}
-
-// Must is a helper function to panic when the url builder returns an error
-func (o *ReceiveWebhookNotificationURL) Must(u *url.URL, err error) *url.URL {
- if err != nil {
- panic(err)
- }
- if u == nil {
- panic("url can't be nil")
- }
- return u
-}
-
-// String returns the string representation of the path with query string
-func (o *ReceiveWebhookNotificationURL) String() string {
- return o.Must(o.Build()).String()
-}
-
-// BuildFull builds a full url with scheme, host, path and query string
-func (o *ReceiveWebhookNotificationURL) BuildFull(scheme, host string) (*url.URL, error) {
- if scheme == "" {
- return nil, errors.New("scheme is required for a full url on ReceiveWebhookNotificationURL")
- }
- if host == "" {
- return nil, errors.New("host is required for a full url on ReceiveWebhookNotificationURL")
- }
-
- base, err := o.Build()
- if err != nil {
- return nil, err
- }
-
- base.Scheme = scheme
- base.Host = host
- return base, nil
-}
-
-// StringFull returns the string representation of a complete url
-func (o *ReceiveWebhookNotificationURL) StringFull(scheme, host string) string {
- return o.Must(o.BuildFull(scheme, host)).String()
-}
diff --git a/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go b/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go
deleted file mode 100644
index 7e35818353c..00000000000
--- a/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go
+++ /dev/null
@@ -1,150 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewCreateMoveTaskOrderParams creates a new CreateMoveTaskOrderParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewCreateMoveTaskOrderParams() *CreateMoveTaskOrderParams {
- return &CreateMoveTaskOrderParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewCreateMoveTaskOrderParamsWithTimeout creates a new CreateMoveTaskOrderParams object
-// with the ability to set a timeout on a request.
-func NewCreateMoveTaskOrderParamsWithTimeout(timeout time.Duration) *CreateMoveTaskOrderParams {
- return &CreateMoveTaskOrderParams{
- timeout: timeout,
- }
-}
-
-// NewCreateMoveTaskOrderParamsWithContext creates a new CreateMoveTaskOrderParams object
-// with the ability to set a context for a request.
-func NewCreateMoveTaskOrderParamsWithContext(ctx context.Context) *CreateMoveTaskOrderParams {
- return &CreateMoveTaskOrderParams{
- Context: ctx,
- }
-}
-
-// NewCreateMoveTaskOrderParamsWithHTTPClient creates a new CreateMoveTaskOrderParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewCreateMoveTaskOrderParamsWithHTTPClient(client *http.Client) *CreateMoveTaskOrderParams {
- return &CreateMoveTaskOrderParams{
- HTTPClient: client,
- }
-}
-
-/*
-CreateMoveTaskOrderParams contains all the parameters to send to the API endpoint
-
- for the create move task order operation.
-
- Typically these are written to a http.Request.
-*/
-type CreateMoveTaskOrderParams struct {
-
- // Body.
- Body *supportmessages.MoveTaskOrder
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the create move task order params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *CreateMoveTaskOrderParams) WithDefaults() *CreateMoveTaskOrderParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the create move task order params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *CreateMoveTaskOrderParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the create move task order params
-func (o *CreateMoveTaskOrderParams) WithTimeout(timeout time.Duration) *CreateMoveTaskOrderParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the create move task order params
-func (o *CreateMoveTaskOrderParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the create move task order params
-func (o *CreateMoveTaskOrderParams) WithContext(ctx context.Context) *CreateMoveTaskOrderParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the create move task order params
-func (o *CreateMoveTaskOrderParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the create move task order params
-func (o *CreateMoveTaskOrderParams) WithHTTPClient(client *http.Client) *CreateMoveTaskOrderParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the create move task order params
-func (o *CreateMoveTaskOrderParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithBody adds the body to the create move task order params
-func (o *CreateMoveTaskOrderParams) WithBody(body *supportmessages.MoveTaskOrder) *CreateMoveTaskOrderParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the create move task order params
-func (o *CreateMoveTaskOrderParams) SetBody(body *supportmessages.MoveTaskOrder) {
- o.Body = body
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *CreateMoveTaskOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go b/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go
deleted file mode 100644
index 3a902aaa15e..00000000000
--- a/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go
+++ /dev/null
@@ -1,547 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// CreateMoveTaskOrderReader is a Reader for the CreateMoveTaskOrder structure.
-type CreateMoveTaskOrderReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CreateMoveTaskOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 201:
- result := NewCreateMoveTaskOrderCreated()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewCreateMoveTaskOrderBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewCreateMoveTaskOrderUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewCreateMoveTaskOrderForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewCreateMoveTaskOrderNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewCreateMoveTaskOrderUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewCreateMoveTaskOrderInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[POST /move-task-orders] createMoveTaskOrder", response, response.Code())
- }
-}
-
-// NewCreateMoveTaskOrderCreated creates a CreateMoveTaskOrderCreated with default headers values
-func NewCreateMoveTaskOrderCreated() *CreateMoveTaskOrderCreated {
- return &CreateMoveTaskOrderCreated{}
-}
-
-/*
-CreateMoveTaskOrderCreated describes a response with status code 201, with default header values.
-
-Successfully created MoveTaskOrder object.
-*/
-type CreateMoveTaskOrderCreated struct {
- Payload *supportmessages.MoveTaskOrder
-}
-
-// IsSuccess returns true when this create move task order created response has a 2xx status code
-func (o *CreateMoveTaskOrderCreated) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this create move task order created response has a 3xx status code
-func (o *CreateMoveTaskOrderCreated) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order created response has a 4xx status code
-func (o *CreateMoveTaskOrderCreated) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this create move task order created response has a 5xx status code
-func (o *CreateMoveTaskOrderCreated) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order created response a status code equal to that given
-func (o *CreateMoveTaskOrderCreated) IsCode(code int) bool {
- return code == 201
-}
-
-// Code gets the status code for the create move task order created response
-func (o *CreateMoveTaskOrderCreated) Code() int {
- return 201
-}
-
-func (o *CreateMoveTaskOrderCreated) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderCreated %+v", 201, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderCreated) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderCreated %+v", 201, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderCreated) GetPayload() *supportmessages.MoveTaskOrder {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.MoveTaskOrder)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderBadRequest creates a CreateMoveTaskOrderBadRequest with default headers values
-func NewCreateMoveTaskOrderBadRequest() *CreateMoveTaskOrderBadRequest {
- return &CreateMoveTaskOrderBadRequest{}
-}
-
-/*
-CreateMoveTaskOrderBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type CreateMoveTaskOrderBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this create move task order bad request response has a 2xx status code
-func (o *CreateMoveTaskOrderBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order bad request response has a 3xx status code
-func (o *CreateMoveTaskOrderBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order bad request response has a 4xx status code
-func (o *CreateMoveTaskOrderBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create move task order bad request response has a 5xx status code
-func (o *CreateMoveTaskOrderBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order bad request response a status code equal to that given
-func (o *CreateMoveTaskOrderBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the create move task order bad request response
-func (o *CreateMoveTaskOrderBadRequest) Code() int {
- return 400
-}
-
-func (o *CreateMoveTaskOrderBadRequest) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderBadRequest %+v", 400, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderBadRequest) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderBadRequest %+v", 400, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderUnauthorized creates a CreateMoveTaskOrderUnauthorized with default headers values
-func NewCreateMoveTaskOrderUnauthorized() *CreateMoveTaskOrderUnauthorized {
- return &CreateMoveTaskOrderUnauthorized{}
-}
-
-/*
-CreateMoveTaskOrderUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type CreateMoveTaskOrderUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this create move task order unauthorized response has a 2xx status code
-func (o *CreateMoveTaskOrderUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order unauthorized response has a 3xx status code
-func (o *CreateMoveTaskOrderUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order unauthorized response has a 4xx status code
-func (o *CreateMoveTaskOrderUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create move task order unauthorized response has a 5xx status code
-func (o *CreateMoveTaskOrderUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order unauthorized response a status code equal to that given
-func (o *CreateMoveTaskOrderUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the create move task order unauthorized response
-func (o *CreateMoveTaskOrderUnauthorized) Code() int {
- return 401
-}
-
-func (o *CreateMoveTaskOrderUnauthorized) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderUnauthorized) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderForbidden creates a CreateMoveTaskOrderForbidden with default headers values
-func NewCreateMoveTaskOrderForbidden() *CreateMoveTaskOrderForbidden {
- return &CreateMoveTaskOrderForbidden{}
-}
-
-/*
-CreateMoveTaskOrderForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type CreateMoveTaskOrderForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this create move task order forbidden response has a 2xx status code
-func (o *CreateMoveTaskOrderForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order forbidden response has a 3xx status code
-func (o *CreateMoveTaskOrderForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order forbidden response has a 4xx status code
-func (o *CreateMoveTaskOrderForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create move task order forbidden response has a 5xx status code
-func (o *CreateMoveTaskOrderForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order forbidden response a status code equal to that given
-func (o *CreateMoveTaskOrderForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the create move task order forbidden response
-func (o *CreateMoveTaskOrderForbidden) Code() int {
- return 403
-}
-
-func (o *CreateMoveTaskOrderForbidden) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderForbidden %+v", 403, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderForbidden) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderForbidden %+v", 403, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderNotFound creates a CreateMoveTaskOrderNotFound with default headers values
-func NewCreateMoveTaskOrderNotFound() *CreateMoveTaskOrderNotFound {
- return &CreateMoveTaskOrderNotFound{}
-}
-
-/*
-CreateMoveTaskOrderNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type CreateMoveTaskOrderNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this create move task order not found response has a 2xx status code
-func (o *CreateMoveTaskOrderNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order not found response has a 3xx status code
-func (o *CreateMoveTaskOrderNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order not found response has a 4xx status code
-func (o *CreateMoveTaskOrderNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create move task order not found response has a 5xx status code
-func (o *CreateMoveTaskOrderNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order not found response a status code equal to that given
-func (o *CreateMoveTaskOrderNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the create move task order not found response
-func (o *CreateMoveTaskOrderNotFound) Code() int {
- return 404
-}
-
-func (o *CreateMoveTaskOrderNotFound) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderNotFound %+v", 404, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderNotFound) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderNotFound %+v", 404, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderUnprocessableEntity creates a CreateMoveTaskOrderUnprocessableEntity with default headers values
-func NewCreateMoveTaskOrderUnprocessableEntity() *CreateMoveTaskOrderUnprocessableEntity {
- return &CreateMoveTaskOrderUnprocessableEntity{}
-}
-
-/*
-CreateMoveTaskOrderUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type CreateMoveTaskOrderUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this create move task order unprocessable entity response has a 2xx status code
-func (o *CreateMoveTaskOrderUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order unprocessable entity response has a 3xx status code
-func (o *CreateMoveTaskOrderUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order unprocessable entity response has a 4xx status code
-func (o *CreateMoveTaskOrderUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create move task order unprocessable entity response has a 5xx status code
-func (o *CreateMoveTaskOrderUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create move task order unprocessable entity response a status code equal to that given
-func (o *CreateMoveTaskOrderUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the create move task order unprocessable entity response
-func (o *CreateMoveTaskOrderUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *CreateMoveTaskOrderUnprocessableEntity) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderUnprocessableEntity) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateMoveTaskOrderInternalServerError creates a CreateMoveTaskOrderInternalServerError with default headers values
-func NewCreateMoveTaskOrderInternalServerError() *CreateMoveTaskOrderInternalServerError {
- return &CreateMoveTaskOrderInternalServerError{}
-}
-
-/*
-CreateMoveTaskOrderInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type CreateMoveTaskOrderInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this create move task order internal server error response has a 2xx status code
-func (o *CreateMoveTaskOrderInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create move task order internal server error response has a 3xx status code
-func (o *CreateMoveTaskOrderInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create move task order internal server error response has a 4xx status code
-func (o *CreateMoveTaskOrderInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this create move task order internal server error response has a 5xx status code
-func (o *CreateMoveTaskOrderInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this create move task order internal server error response a status code equal to that given
-func (o *CreateMoveTaskOrderInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the create move task order internal server error response
-func (o *CreateMoveTaskOrderInternalServerError) Code() int {
- return 500
-}
-
-func (o *CreateMoveTaskOrderInternalServerError) Error() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderInternalServerError) String() string {
- return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *CreateMoveTaskOrderInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *CreateMoveTaskOrderInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go b/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go
deleted file mode 100644
index e7b0c9c9eed..00000000000
--- a/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go
+++ /dev/null
@@ -1,151 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewGetMoveTaskOrderParams creates a new GetMoveTaskOrderParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewGetMoveTaskOrderParams() *GetMoveTaskOrderParams {
- return &GetMoveTaskOrderParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewGetMoveTaskOrderParamsWithTimeout creates a new GetMoveTaskOrderParams object
-// with the ability to set a timeout on a request.
-func NewGetMoveTaskOrderParamsWithTimeout(timeout time.Duration) *GetMoveTaskOrderParams {
- return &GetMoveTaskOrderParams{
- timeout: timeout,
- }
-}
-
-// NewGetMoveTaskOrderParamsWithContext creates a new GetMoveTaskOrderParams object
-// with the ability to set a context for a request.
-func NewGetMoveTaskOrderParamsWithContext(ctx context.Context) *GetMoveTaskOrderParams {
- return &GetMoveTaskOrderParams{
- Context: ctx,
- }
-}
-
-// NewGetMoveTaskOrderParamsWithHTTPClient creates a new GetMoveTaskOrderParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewGetMoveTaskOrderParamsWithHTTPClient(client *http.Client) *GetMoveTaskOrderParams {
- return &GetMoveTaskOrderParams{
- HTTPClient: client,
- }
-}
-
-/*
-GetMoveTaskOrderParams contains all the parameters to send to the API endpoint
-
- for the get move task order operation.
-
- Typically these are written to a http.Request.
-*/
-type GetMoveTaskOrderParams struct {
-
- /* MoveTaskOrderID.
-
- UUID of move task order to use.
- */
- MoveTaskOrderID string
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the get move task order params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *GetMoveTaskOrderParams) WithDefaults() *GetMoveTaskOrderParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the get move task order params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *GetMoveTaskOrderParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the get move task order params
-func (o *GetMoveTaskOrderParams) WithTimeout(timeout time.Duration) *GetMoveTaskOrderParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the get move task order params
-func (o *GetMoveTaskOrderParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the get move task order params
-func (o *GetMoveTaskOrderParams) WithContext(ctx context.Context) *GetMoveTaskOrderParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the get move task order params
-func (o *GetMoveTaskOrderParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the get move task order params
-func (o *GetMoveTaskOrderParams) WithHTTPClient(client *http.Client) *GetMoveTaskOrderParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the get move task order params
-func (o *GetMoveTaskOrderParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithMoveTaskOrderID adds the moveTaskOrderID to the get move task order params
-func (o *GetMoveTaskOrderParams) WithMoveTaskOrderID(moveTaskOrderID string) *GetMoveTaskOrderParams {
- o.SetMoveTaskOrderID(moveTaskOrderID)
- return o
-}
-
-// SetMoveTaskOrderID adds the moveTaskOrderId to the get move task order params
-func (o *GetMoveTaskOrderParams) SetMoveTaskOrderID(moveTaskOrderID string) {
- o.MoveTaskOrderID = moveTaskOrderID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *GetMoveTaskOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // path param moveTaskOrderID
- if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go b/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go
deleted file mode 100644
index 09f4fc6e91c..00000000000
--- a/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go
+++ /dev/null
@@ -1,399 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// GetMoveTaskOrderReader is a Reader for the GetMoveTaskOrder structure.
-type GetMoveTaskOrderReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *GetMoveTaskOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewGetMoveTaskOrderOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 401:
- result := NewGetMoveTaskOrderUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewGetMoveTaskOrderForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewGetMoveTaskOrderNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewGetMoveTaskOrderInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[GET /move-task-orders/{moveTaskOrderID}] getMoveTaskOrder", response, response.Code())
- }
-}
-
-// NewGetMoveTaskOrderOK creates a GetMoveTaskOrderOK with default headers values
-func NewGetMoveTaskOrderOK() *GetMoveTaskOrderOK {
- return &GetMoveTaskOrderOK{}
-}
-
-/*
-GetMoveTaskOrderOK describes a response with status code 200, with default header values.
-
-Successfully retrieve an individual move task order.
-*/
-type GetMoveTaskOrderOK struct {
- Payload *supportmessages.MoveTaskOrder
-}
-
-// IsSuccess returns true when this get move task order o k response has a 2xx status code
-func (o *GetMoveTaskOrderOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this get move task order o k response has a 3xx status code
-func (o *GetMoveTaskOrderOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get move task order o k response has a 4xx status code
-func (o *GetMoveTaskOrderOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this get move task order o k response has a 5xx status code
-func (o *GetMoveTaskOrderOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get move task order o k response a status code equal to that given
-func (o *GetMoveTaskOrderOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the get move task order o k response
-func (o *GetMoveTaskOrderOK) Code() int {
- return 200
-}
-
-func (o *GetMoveTaskOrderOK) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderOK %+v", 200, o.Payload)
-}
-
-func (o *GetMoveTaskOrderOK) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderOK %+v", 200, o.Payload)
-}
-
-func (o *GetMoveTaskOrderOK) GetPayload() *supportmessages.MoveTaskOrder {
- return o.Payload
-}
-
-func (o *GetMoveTaskOrderOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.MoveTaskOrder)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetMoveTaskOrderUnauthorized creates a GetMoveTaskOrderUnauthorized with default headers values
-func NewGetMoveTaskOrderUnauthorized() *GetMoveTaskOrderUnauthorized {
- return &GetMoveTaskOrderUnauthorized{}
-}
-
-/*
-GetMoveTaskOrderUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type GetMoveTaskOrderUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get move task order unauthorized response has a 2xx status code
-func (o *GetMoveTaskOrderUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get move task order unauthorized response has a 3xx status code
-func (o *GetMoveTaskOrderUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get move task order unauthorized response has a 4xx status code
-func (o *GetMoveTaskOrderUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get move task order unauthorized response has a 5xx status code
-func (o *GetMoveTaskOrderUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get move task order unauthorized response a status code equal to that given
-func (o *GetMoveTaskOrderUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the get move task order unauthorized response
-func (o *GetMoveTaskOrderUnauthorized) Code() int {
- return 401
-}
-
-func (o *GetMoveTaskOrderUnauthorized) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *GetMoveTaskOrderUnauthorized) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *GetMoveTaskOrderUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetMoveTaskOrderUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetMoveTaskOrderForbidden creates a GetMoveTaskOrderForbidden with default headers values
-func NewGetMoveTaskOrderForbidden() *GetMoveTaskOrderForbidden {
- return &GetMoveTaskOrderForbidden{}
-}
-
-/*
-GetMoveTaskOrderForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type GetMoveTaskOrderForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get move task order forbidden response has a 2xx status code
-func (o *GetMoveTaskOrderForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get move task order forbidden response has a 3xx status code
-func (o *GetMoveTaskOrderForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get move task order forbidden response has a 4xx status code
-func (o *GetMoveTaskOrderForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get move task order forbidden response has a 5xx status code
-func (o *GetMoveTaskOrderForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get move task order forbidden response a status code equal to that given
-func (o *GetMoveTaskOrderForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the get move task order forbidden response
-func (o *GetMoveTaskOrderForbidden) Code() int {
- return 403
-}
-
-func (o *GetMoveTaskOrderForbidden) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderForbidden %+v", 403, o.Payload)
-}
-
-func (o *GetMoveTaskOrderForbidden) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderForbidden %+v", 403, o.Payload)
-}
-
-func (o *GetMoveTaskOrderForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetMoveTaskOrderForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetMoveTaskOrderNotFound creates a GetMoveTaskOrderNotFound with default headers values
-func NewGetMoveTaskOrderNotFound() *GetMoveTaskOrderNotFound {
- return &GetMoveTaskOrderNotFound{}
-}
-
-/*
-GetMoveTaskOrderNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type GetMoveTaskOrderNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get move task order not found response has a 2xx status code
-func (o *GetMoveTaskOrderNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get move task order not found response has a 3xx status code
-func (o *GetMoveTaskOrderNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get move task order not found response has a 4xx status code
-func (o *GetMoveTaskOrderNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get move task order not found response has a 5xx status code
-func (o *GetMoveTaskOrderNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get move task order not found response a status code equal to that given
-func (o *GetMoveTaskOrderNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the get move task order not found response
-func (o *GetMoveTaskOrderNotFound) Code() int {
- return 404
-}
-
-func (o *GetMoveTaskOrderNotFound) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderNotFound %+v", 404, o.Payload)
-}
-
-func (o *GetMoveTaskOrderNotFound) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderNotFound %+v", 404, o.Payload)
-}
-
-func (o *GetMoveTaskOrderNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetMoveTaskOrderNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetMoveTaskOrderInternalServerError creates a GetMoveTaskOrderInternalServerError with default headers values
-func NewGetMoveTaskOrderInternalServerError() *GetMoveTaskOrderInternalServerError {
- return &GetMoveTaskOrderInternalServerError{}
-}
-
-/*
-GetMoveTaskOrderInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type GetMoveTaskOrderInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this get move task order internal server error response has a 2xx status code
-func (o *GetMoveTaskOrderInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get move task order internal server error response has a 3xx status code
-func (o *GetMoveTaskOrderInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get move task order internal server error response has a 4xx status code
-func (o *GetMoveTaskOrderInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this get move task order internal server error response has a 5xx status code
-func (o *GetMoveTaskOrderInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this get move task order internal server error response a status code equal to that given
-func (o *GetMoveTaskOrderInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the get move task order internal server error response
-func (o *GetMoveTaskOrderInternalServerError) Code() int {
- return 500
-}
-
-func (o *GetMoveTaskOrderInternalServerError) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *GetMoveTaskOrderInternalServerError) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *GetMoveTaskOrderInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *GetMoveTaskOrderInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go
deleted file mode 100644
index a88f31ff1a6..00000000000
--- a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go
+++ /dev/null
@@ -1,128 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewHideNonFakeMoveTaskOrdersParams creates a new HideNonFakeMoveTaskOrdersParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewHideNonFakeMoveTaskOrdersParams() *HideNonFakeMoveTaskOrdersParams {
- return &HideNonFakeMoveTaskOrdersParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewHideNonFakeMoveTaskOrdersParamsWithTimeout creates a new HideNonFakeMoveTaskOrdersParams object
-// with the ability to set a timeout on a request.
-func NewHideNonFakeMoveTaskOrdersParamsWithTimeout(timeout time.Duration) *HideNonFakeMoveTaskOrdersParams {
- return &HideNonFakeMoveTaskOrdersParams{
- timeout: timeout,
- }
-}
-
-// NewHideNonFakeMoveTaskOrdersParamsWithContext creates a new HideNonFakeMoveTaskOrdersParams object
-// with the ability to set a context for a request.
-func NewHideNonFakeMoveTaskOrdersParamsWithContext(ctx context.Context) *HideNonFakeMoveTaskOrdersParams {
- return &HideNonFakeMoveTaskOrdersParams{
- Context: ctx,
- }
-}
-
-// NewHideNonFakeMoveTaskOrdersParamsWithHTTPClient creates a new HideNonFakeMoveTaskOrdersParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewHideNonFakeMoveTaskOrdersParamsWithHTTPClient(client *http.Client) *HideNonFakeMoveTaskOrdersParams {
- return &HideNonFakeMoveTaskOrdersParams{
- HTTPClient: client,
- }
-}
-
-/*
-HideNonFakeMoveTaskOrdersParams contains all the parameters to send to the API endpoint
-
- for the hide non fake move task orders operation.
-
- Typically these are written to a http.Request.
-*/
-type HideNonFakeMoveTaskOrdersParams struct {
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the hide non fake move task orders params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *HideNonFakeMoveTaskOrdersParams) WithDefaults() *HideNonFakeMoveTaskOrdersParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the hide non fake move task orders params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *HideNonFakeMoveTaskOrdersParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) WithTimeout(timeout time.Duration) *HideNonFakeMoveTaskOrdersParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) WithContext(ctx context.Context) *HideNonFakeMoveTaskOrdersParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) WithHTTPClient(client *http.Client) *HideNonFakeMoveTaskOrdersParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the hide non fake move task orders params
-func (o *HideNonFakeMoveTaskOrdersParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *HideNonFakeMoveTaskOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go
deleted file mode 100644
index 8b3cf4daada..00000000000
--- a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go
+++ /dev/null
@@ -1,695 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// HideNonFakeMoveTaskOrdersReader is a Reader for the HideNonFakeMoveTaskOrders structure.
-type HideNonFakeMoveTaskOrdersReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *HideNonFakeMoveTaskOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewHideNonFakeMoveTaskOrdersOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewHideNonFakeMoveTaskOrdersBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewHideNonFakeMoveTaskOrdersUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewHideNonFakeMoveTaskOrdersForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewHideNonFakeMoveTaskOrdersNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewHideNonFakeMoveTaskOrdersConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewHideNonFakeMoveTaskOrdersPreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewHideNonFakeMoveTaskOrdersUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewHideNonFakeMoveTaskOrdersInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /move-task-orders/hide] hideNonFakeMoveTaskOrders", response, response.Code())
- }
-}
-
-// NewHideNonFakeMoveTaskOrdersOK creates a HideNonFakeMoveTaskOrdersOK with default headers values
-func NewHideNonFakeMoveTaskOrdersOK() *HideNonFakeMoveTaskOrdersOK {
- return &HideNonFakeMoveTaskOrdersOK{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersOK describes a response with status code 200, with default header values.
-
-Successfully hid MTOs.
-*/
-type HideNonFakeMoveTaskOrdersOK struct {
- Payload *supportmessages.MTOHideMovesResponse
-}
-
-// IsSuccess returns true when this hide non fake move task orders o k response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this hide non fake move task orders o k response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders o k response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this hide non fake move task orders o k response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders o k response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the hide non fake move task orders o k response
-func (o *HideNonFakeMoveTaskOrdersOK) Code() int {
- return 200
-}
-
-func (o *HideNonFakeMoveTaskOrdersOK) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersOK %+v", 200, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersOK) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersOK %+v", 200, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersOK) GetPayload() *supportmessages.MTOHideMovesResponse {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.MTOHideMovesResponse)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersBadRequest creates a HideNonFakeMoveTaskOrdersBadRequest with default headers values
-func NewHideNonFakeMoveTaskOrdersBadRequest() *HideNonFakeMoveTaskOrdersBadRequest {
- return &HideNonFakeMoveTaskOrdersBadRequest{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type HideNonFakeMoveTaskOrdersBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders bad request response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders bad request response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders bad request response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders bad request response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders bad request response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the hide non fake move task orders bad request response
-func (o *HideNonFakeMoveTaskOrdersBadRequest) Code() int {
- return 400
-}
-
-func (o *HideNonFakeMoveTaskOrdersBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersBadRequest %+v", 400, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersBadRequest) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersBadRequest %+v", 400, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersUnauthorized creates a HideNonFakeMoveTaskOrdersUnauthorized with default headers values
-func NewHideNonFakeMoveTaskOrdersUnauthorized() *HideNonFakeMoveTaskOrdersUnauthorized {
- return &HideNonFakeMoveTaskOrdersUnauthorized{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type HideNonFakeMoveTaskOrdersUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders unauthorized response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders unauthorized response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders unauthorized response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders unauthorized response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders unauthorized response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the hide non fake move task orders unauthorized response
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) Code() int {
- return 401
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersForbidden creates a HideNonFakeMoveTaskOrdersForbidden with default headers values
-func NewHideNonFakeMoveTaskOrdersForbidden() *HideNonFakeMoveTaskOrdersForbidden {
- return &HideNonFakeMoveTaskOrdersForbidden{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type HideNonFakeMoveTaskOrdersForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders forbidden response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders forbidden response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders forbidden response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders forbidden response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders forbidden response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the hide non fake move task orders forbidden response
-func (o *HideNonFakeMoveTaskOrdersForbidden) Code() int {
- return 403
-}
-
-func (o *HideNonFakeMoveTaskOrdersForbidden) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersForbidden %+v", 403, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersForbidden) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersForbidden %+v", 403, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersNotFound creates a HideNonFakeMoveTaskOrdersNotFound with default headers values
-func NewHideNonFakeMoveTaskOrdersNotFound() *HideNonFakeMoveTaskOrdersNotFound {
- return &HideNonFakeMoveTaskOrdersNotFound{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type HideNonFakeMoveTaskOrdersNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders not found response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders not found response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders not found response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders not found response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders not found response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the hide non fake move task orders not found response
-func (o *HideNonFakeMoveTaskOrdersNotFound) Code() int {
- return 404
-}
-
-func (o *HideNonFakeMoveTaskOrdersNotFound) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersNotFound %+v", 404, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersNotFound) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersNotFound %+v", 404, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersConflict creates a HideNonFakeMoveTaskOrdersConflict with default headers values
-func NewHideNonFakeMoveTaskOrdersConflict() *HideNonFakeMoveTaskOrdersConflict {
- return &HideNonFakeMoveTaskOrdersConflict{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type HideNonFakeMoveTaskOrdersConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders conflict response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders conflict response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders conflict response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders conflict response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders conflict response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the hide non fake move task orders conflict response
-func (o *HideNonFakeMoveTaskOrdersConflict) Code() int {
- return 409
-}
-
-func (o *HideNonFakeMoveTaskOrdersConflict) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersConflict %+v", 409, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersConflict) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersConflict %+v", 409, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersPreconditionFailed creates a HideNonFakeMoveTaskOrdersPreconditionFailed with default headers values
-func NewHideNonFakeMoveTaskOrdersPreconditionFailed() *HideNonFakeMoveTaskOrdersPreconditionFailed {
- return &HideNonFakeMoveTaskOrdersPreconditionFailed{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersPreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type HideNonFakeMoveTaskOrdersPreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this hide non fake move task orders precondition failed response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders precondition failed response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders precondition failed response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders precondition failed response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders precondition failed response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the hide non fake move task orders precondition failed response
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) Code() int {
- return 412
-}
-
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersUnprocessableEntity creates a HideNonFakeMoveTaskOrdersUnprocessableEntity with default headers values
-func NewHideNonFakeMoveTaskOrdersUnprocessableEntity() *HideNonFakeMoveTaskOrdersUnprocessableEntity {
- return &HideNonFakeMoveTaskOrdersUnprocessableEntity{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type HideNonFakeMoveTaskOrdersUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this hide non fake move task orders unprocessable entity response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders unprocessable entity response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders unprocessable entity response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this hide non fake move task orders unprocessable entity response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this hide non fake move task orders unprocessable entity response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the hide non fake move task orders unprocessable entity response
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewHideNonFakeMoveTaskOrdersInternalServerError creates a HideNonFakeMoveTaskOrdersInternalServerError with default headers values
-func NewHideNonFakeMoveTaskOrdersInternalServerError() *HideNonFakeMoveTaskOrdersInternalServerError {
- return &HideNonFakeMoveTaskOrdersInternalServerError{}
-}
-
-/*
-HideNonFakeMoveTaskOrdersInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type HideNonFakeMoveTaskOrdersInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this hide non fake move task orders internal server error response has a 2xx status code
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this hide non fake move task orders internal server error response has a 3xx status code
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this hide non fake move task orders internal server error response has a 4xx status code
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this hide non fake move task orders internal server error response has a 5xx status code
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this hide non fake move task orders internal server error response a status code equal to that given
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the hide non fake move task orders internal server error response
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) Code() int {
- return 500
-}
-
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *HideNonFakeMoveTaskOrdersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go b/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go
deleted file mode 100644
index 152e1d4d21f..00000000000
--- a/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go
+++ /dev/null
@@ -1,166 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// NewListMTOsParams creates a new ListMTOsParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewListMTOsParams() *ListMTOsParams {
- return &ListMTOsParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewListMTOsParamsWithTimeout creates a new ListMTOsParams object
-// with the ability to set a timeout on a request.
-func NewListMTOsParamsWithTimeout(timeout time.Duration) *ListMTOsParams {
- return &ListMTOsParams{
- timeout: timeout,
- }
-}
-
-// NewListMTOsParamsWithContext creates a new ListMTOsParams object
-// with the ability to set a context for a request.
-func NewListMTOsParamsWithContext(ctx context.Context) *ListMTOsParams {
- return &ListMTOsParams{
- Context: ctx,
- }
-}
-
-// NewListMTOsParamsWithHTTPClient creates a new ListMTOsParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewListMTOsParamsWithHTTPClient(client *http.Client) *ListMTOsParams {
- return &ListMTOsParams{
- HTTPClient: client,
- }
-}
-
-/*
-ListMTOsParams contains all the parameters to send to the API endpoint
-
- for the list m t os operation.
-
- Typically these are written to a http.Request.
-*/
-type ListMTOsParams struct {
-
- /* Since.
-
- Only return move task orders updated since this time.
-
- Format: timestamp
- */
- Since *int64
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the list m t os params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ListMTOsParams) WithDefaults() *ListMTOsParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the list m t os params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ListMTOsParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the list m t os params
-func (o *ListMTOsParams) WithTimeout(timeout time.Duration) *ListMTOsParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the list m t os params
-func (o *ListMTOsParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the list m t os params
-func (o *ListMTOsParams) WithContext(ctx context.Context) *ListMTOsParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the list m t os params
-func (o *ListMTOsParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the list m t os params
-func (o *ListMTOsParams) WithHTTPClient(client *http.Client) *ListMTOsParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the list m t os params
-func (o *ListMTOsParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithSince adds the since to the list m t os params
-func (o *ListMTOsParams) WithSince(since *int64) *ListMTOsParams {
- o.SetSince(since)
- return o
-}
-
-// SetSince adds the since to the list m t os params
-func (o *ListMTOsParams) SetSince(since *int64) {
- o.Since = since
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *ListMTOsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- if o.Since != nil {
-
- // query param since
- var qrSince int64
-
- if o.Since != nil {
- qrSince = *o.Since
- }
- qSince := swag.FormatInt64(qrSince)
- if qSince != "" {
-
- if err := r.SetQueryParam("since", qSince); err != nil {
- return err
- }
- }
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go b/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go
deleted file mode 100644
index 8f622a31f3d..00000000000
--- a/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go
+++ /dev/null
@@ -1,471 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ListMTOsReader is a Reader for the ListMTOs structure.
-type ListMTOsReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *ListMTOsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewListMTOsOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewListMTOsBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewListMTOsUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewListMTOsForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewListMTOsNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewListMTOsInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[GET /move-task-orders] listMTOs", response, response.Code())
- }
-}
-
-// NewListMTOsOK creates a ListMTOsOK with default headers values
-func NewListMTOsOK() *ListMTOsOK {
- return &ListMTOsOK{}
-}
-
-/*
-ListMTOsOK describes a response with status code 200, with default header values.
-
-Successfully retrieved all move task orders.
-*/
-type ListMTOsOK struct {
- Payload supportmessages.MoveTaskOrders
-}
-
-// IsSuccess returns true when this list m t os o k response has a 2xx status code
-func (o *ListMTOsOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this list m t os o k response has a 3xx status code
-func (o *ListMTOsOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os o k response has a 4xx status code
-func (o *ListMTOsOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this list m t os o k response has a 5xx status code
-func (o *ListMTOsOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t os o k response a status code equal to that given
-func (o *ListMTOsOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the list m t os o k response
-func (o *ListMTOsOK) Code() int {
- return 200
-}
-
-func (o *ListMTOsOK) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsOK %+v", 200, o.Payload)
-}
-
-func (o *ListMTOsOK) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsOK %+v", 200, o.Payload)
-}
-
-func (o *ListMTOsOK) GetPayload() supportmessages.MoveTaskOrders {
- return o.Payload
-}
-
-func (o *ListMTOsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- // response payload
- if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOsBadRequest creates a ListMTOsBadRequest with default headers values
-func NewListMTOsBadRequest() *ListMTOsBadRequest {
- return &ListMTOsBadRequest{}
-}
-
-/*
-ListMTOsBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type ListMTOsBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t os bad request response has a 2xx status code
-func (o *ListMTOsBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t os bad request response has a 3xx status code
-func (o *ListMTOsBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os bad request response has a 4xx status code
-func (o *ListMTOsBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t os bad request response has a 5xx status code
-func (o *ListMTOsBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t os bad request response a status code equal to that given
-func (o *ListMTOsBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the list m t os bad request response
-func (o *ListMTOsBadRequest) Code() int {
- return 400
-}
-
-func (o *ListMTOsBadRequest) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ListMTOsBadRequest) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ListMTOsBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOsUnauthorized creates a ListMTOsUnauthorized with default headers values
-func NewListMTOsUnauthorized() *ListMTOsUnauthorized {
- return &ListMTOsUnauthorized{}
-}
-
-/*
-ListMTOsUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type ListMTOsUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t os unauthorized response has a 2xx status code
-func (o *ListMTOsUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t os unauthorized response has a 3xx status code
-func (o *ListMTOsUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os unauthorized response has a 4xx status code
-func (o *ListMTOsUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t os unauthorized response has a 5xx status code
-func (o *ListMTOsUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t os unauthorized response a status code equal to that given
-func (o *ListMTOsUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the list m t os unauthorized response
-func (o *ListMTOsUnauthorized) Code() int {
- return 401
-}
-
-func (o *ListMTOsUnauthorized) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ListMTOsUnauthorized) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ListMTOsUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOsForbidden creates a ListMTOsForbidden with default headers values
-func NewListMTOsForbidden() *ListMTOsForbidden {
- return &ListMTOsForbidden{}
-}
-
-/*
-ListMTOsForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type ListMTOsForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t os forbidden response has a 2xx status code
-func (o *ListMTOsForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t os forbidden response has a 3xx status code
-func (o *ListMTOsForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os forbidden response has a 4xx status code
-func (o *ListMTOsForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t os forbidden response has a 5xx status code
-func (o *ListMTOsForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t os forbidden response a status code equal to that given
-func (o *ListMTOsForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the list m t os forbidden response
-func (o *ListMTOsForbidden) Code() int {
- return 403
-}
-
-func (o *ListMTOsForbidden) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ListMTOsForbidden) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ListMTOsForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOsNotFound creates a ListMTOsNotFound with default headers values
-func NewListMTOsNotFound() *ListMTOsNotFound {
- return &ListMTOsNotFound{}
-}
-
-/*
-ListMTOsNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type ListMTOsNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t os not found response has a 2xx status code
-func (o *ListMTOsNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t os not found response has a 3xx status code
-func (o *ListMTOsNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os not found response has a 4xx status code
-func (o *ListMTOsNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t os not found response has a 5xx status code
-func (o *ListMTOsNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t os not found response a status code equal to that given
-func (o *ListMTOsNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the list m t os not found response
-func (o *ListMTOsNotFound) Code() int {
- return 404
-}
-
-func (o *ListMTOsNotFound) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ListMTOsNotFound) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ListMTOsNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOsInternalServerError creates a ListMTOsInternalServerError with default headers values
-func NewListMTOsInternalServerError() *ListMTOsInternalServerError {
- return &ListMTOsInternalServerError{}
-}
-
-/*
-ListMTOsInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type ListMTOsInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this list m t os internal server error response has a 2xx status code
-func (o *ListMTOsInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t os internal server error response has a 3xx status code
-func (o *ListMTOsInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t os internal server error response has a 4xx status code
-func (o *ListMTOsInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this list m t os internal server error response has a 5xx status code
-func (o *ListMTOsInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this list m t os internal server error response a status code equal to that given
-func (o *ListMTOsInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the list m t os internal server error response
-func (o *ListMTOsInternalServerError) Code() int {
- return 500
-}
-
-func (o *ListMTOsInternalServerError) Error() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ListMTOsInternalServerError) String() string {
- return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ListMTOsInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *ListMTOsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go
deleted file mode 100644
index 765ce898477..00000000000
--- a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go
+++ /dev/null
@@ -1,174 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewMakeMoveTaskOrderAvailableParams creates a new MakeMoveTaskOrderAvailableParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewMakeMoveTaskOrderAvailableParams() *MakeMoveTaskOrderAvailableParams {
- return &MakeMoveTaskOrderAvailableParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewMakeMoveTaskOrderAvailableParamsWithTimeout creates a new MakeMoveTaskOrderAvailableParams object
-// with the ability to set a timeout on a request.
-func NewMakeMoveTaskOrderAvailableParamsWithTimeout(timeout time.Duration) *MakeMoveTaskOrderAvailableParams {
- return &MakeMoveTaskOrderAvailableParams{
- timeout: timeout,
- }
-}
-
-// NewMakeMoveTaskOrderAvailableParamsWithContext creates a new MakeMoveTaskOrderAvailableParams object
-// with the ability to set a context for a request.
-func NewMakeMoveTaskOrderAvailableParamsWithContext(ctx context.Context) *MakeMoveTaskOrderAvailableParams {
- return &MakeMoveTaskOrderAvailableParams{
- Context: ctx,
- }
-}
-
-// NewMakeMoveTaskOrderAvailableParamsWithHTTPClient creates a new MakeMoveTaskOrderAvailableParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewMakeMoveTaskOrderAvailableParamsWithHTTPClient(client *http.Client) *MakeMoveTaskOrderAvailableParams {
- return &MakeMoveTaskOrderAvailableParams{
- HTTPClient: client,
- }
-}
-
-/*
-MakeMoveTaskOrderAvailableParams contains all the parameters to send to the API endpoint
-
- for the make move task order available operation.
-
- Typically these are written to a http.Request.
-*/
-type MakeMoveTaskOrderAvailableParams struct {
-
- /* IfMatch.
-
- Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- */
- IfMatch string
-
- /* MoveTaskOrderID.
-
- UUID of move task order.
- */
- MoveTaskOrderID string
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the make move task order available params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *MakeMoveTaskOrderAvailableParams) WithDefaults() *MakeMoveTaskOrderAvailableParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the make move task order available params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *MakeMoveTaskOrderAvailableParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) WithTimeout(timeout time.Duration) *MakeMoveTaskOrderAvailableParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) WithContext(ctx context.Context) *MakeMoveTaskOrderAvailableParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) WithHTTPClient(client *http.Client) *MakeMoveTaskOrderAvailableParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithIfMatch adds the ifMatch to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) WithIfMatch(ifMatch string) *MakeMoveTaskOrderAvailableParams {
- o.SetIfMatch(ifMatch)
- return o
-}
-
-// SetIfMatch adds the ifMatch to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) SetIfMatch(ifMatch string) {
- o.IfMatch = ifMatch
-}
-
-// WithMoveTaskOrderID adds the moveTaskOrderID to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) WithMoveTaskOrderID(moveTaskOrderID string) *MakeMoveTaskOrderAvailableParams {
- o.SetMoveTaskOrderID(moveTaskOrderID)
- return o
-}
-
-// SetMoveTaskOrderID adds the moveTaskOrderId to the make move task order available params
-func (o *MakeMoveTaskOrderAvailableParams) SetMoveTaskOrderID(moveTaskOrderID string) {
- o.MoveTaskOrderID = moveTaskOrderID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *MakeMoveTaskOrderAvailableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // header param If-Match
- if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
- return err
- }
-
- // path param moveTaskOrderID
- if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go
deleted file mode 100644
index 8e488681cef..00000000000
--- a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go
+++ /dev/null
@@ -1,621 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// MakeMoveTaskOrderAvailableReader is a Reader for the MakeMoveTaskOrderAvailable structure.
-type MakeMoveTaskOrderAvailableReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *MakeMoveTaskOrderAvailableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewMakeMoveTaskOrderAvailableOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewMakeMoveTaskOrderAvailableBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewMakeMoveTaskOrderAvailableUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewMakeMoveTaskOrderAvailableForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewMakeMoveTaskOrderAvailableNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewMakeMoveTaskOrderAvailablePreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewMakeMoveTaskOrderAvailableUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewMakeMoveTaskOrderAvailableInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime] makeMoveTaskOrderAvailable", response, response.Code())
- }
-}
-
-// NewMakeMoveTaskOrderAvailableOK creates a MakeMoveTaskOrderAvailableOK with default headers values
-func NewMakeMoveTaskOrderAvailableOK() *MakeMoveTaskOrderAvailableOK {
- return &MakeMoveTaskOrderAvailableOK{}
-}
-
-/*
-MakeMoveTaskOrderAvailableOK describes a response with status code 200, with default header values.
-
-Successfully made MTO available to Prime.
-*/
-type MakeMoveTaskOrderAvailableOK struct {
- Payload *supportmessages.MoveTaskOrder
-}
-
-// IsSuccess returns true when this make move task order available o k response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this make move task order available o k response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available o k response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this make move task order available o k response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available o k response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the make move task order available o k response
-func (o *MakeMoveTaskOrderAvailableOK) Code() int {
- return 200
-}
-
-func (o *MakeMoveTaskOrderAvailableOK) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableOK %+v", 200, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableOK) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableOK %+v", 200, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableOK) GetPayload() *supportmessages.MoveTaskOrder {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.MoveTaskOrder)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableBadRequest creates a MakeMoveTaskOrderAvailableBadRequest with default headers values
-func NewMakeMoveTaskOrderAvailableBadRequest() *MakeMoveTaskOrderAvailableBadRequest {
- return &MakeMoveTaskOrderAvailableBadRequest{}
-}
-
-/*
-MakeMoveTaskOrderAvailableBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type MakeMoveTaskOrderAvailableBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this make move task order available bad request response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available bad request response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available bad request response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available bad request response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available bad request response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the make move task order available bad request response
-func (o *MakeMoveTaskOrderAvailableBadRequest) Code() int {
- return 400
-}
-
-func (o *MakeMoveTaskOrderAvailableBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableBadRequest %+v", 400, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableBadRequest) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableBadRequest %+v", 400, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableUnauthorized creates a MakeMoveTaskOrderAvailableUnauthorized with default headers values
-func NewMakeMoveTaskOrderAvailableUnauthorized() *MakeMoveTaskOrderAvailableUnauthorized {
- return &MakeMoveTaskOrderAvailableUnauthorized{}
-}
-
-/*
-MakeMoveTaskOrderAvailableUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type MakeMoveTaskOrderAvailableUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this make move task order available unauthorized response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available unauthorized response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available unauthorized response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available unauthorized response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available unauthorized response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the make move task order available unauthorized response
-func (o *MakeMoveTaskOrderAvailableUnauthorized) Code() int {
- return 401
-}
-
-func (o *MakeMoveTaskOrderAvailableUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableForbidden creates a MakeMoveTaskOrderAvailableForbidden with default headers values
-func NewMakeMoveTaskOrderAvailableForbidden() *MakeMoveTaskOrderAvailableForbidden {
- return &MakeMoveTaskOrderAvailableForbidden{}
-}
-
-/*
-MakeMoveTaskOrderAvailableForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type MakeMoveTaskOrderAvailableForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this make move task order available forbidden response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available forbidden response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available forbidden response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available forbidden response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available forbidden response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the make move task order available forbidden response
-func (o *MakeMoveTaskOrderAvailableForbidden) Code() int {
- return 403
-}
-
-func (o *MakeMoveTaskOrderAvailableForbidden) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableForbidden %+v", 403, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableForbidden) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableForbidden %+v", 403, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableNotFound creates a MakeMoveTaskOrderAvailableNotFound with default headers values
-func NewMakeMoveTaskOrderAvailableNotFound() *MakeMoveTaskOrderAvailableNotFound {
- return &MakeMoveTaskOrderAvailableNotFound{}
-}
-
-/*
-MakeMoveTaskOrderAvailableNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type MakeMoveTaskOrderAvailableNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this make move task order available not found response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available not found response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available not found response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available not found response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available not found response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the make move task order available not found response
-func (o *MakeMoveTaskOrderAvailableNotFound) Code() int {
- return 404
-}
-
-func (o *MakeMoveTaskOrderAvailableNotFound) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableNotFound %+v", 404, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableNotFound) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableNotFound %+v", 404, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailablePreconditionFailed creates a MakeMoveTaskOrderAvailablePreconditionFailed with default headers values
-func NewMakeMoveTaskOrderAvailablePreconditionFailed() *MakeMoveTaskOrderAvailablePreconditionFailed {
- return &MakeMoveTaskOrderAvailablePreconditionFailed{}
-}
-
-/*
-MakeMoveTaskOrderAvailablePreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type MakeMoveTaskOrderAvailablePreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this make move task order available precondition failed response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available precondition failed response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available precondition failed response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available precondition failed response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available precondition failed response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the make move task order available precondition failed response
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) Code() int {
- return 412
-}
-
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailablePreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailablePreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailablePreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableUnprocessableEntity creates a MakeMoveTaskOrderAvailableUnprocessableEntity with default headers values
-func NewMakeMoveTaskOrderAvailableUnprocessableEntity() *MakeMoveTaskOrderAvailableUnprocessableEntity {
- return &MakeMoveTaskOrderAvailableUnprocessableEntity{}
-}
-
-/*
-MakeMoveTaskOrderAvailableUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type MakeMoveTaskOrderAvailableUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this make move task order available unprocessable entity response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available unprocessable entity response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available unprocessable entity response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this make move task order available unprocessable entity response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this make move task order available unprocessable entity response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the make move task order available unprocessable entity response
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewMakeMoveTaskOrderAvailableInternalServerError creates a MakeMoveTaskOrderAvailableInternalServerError with default headers values
-func NewMakeMoveTaskOrderAvailableInternalServerError() *MakeMoveTaskOrderAvailableInternalServerError {
- return &MakeMoveTaskOrderAvailableInternalServerError{}
-}
-
-/*
-MakeMoveTaskOrderAvailableInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type MakeMoveTaskOrderAvailableInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this make move task order available internal server error response has a 2xx status code
-func (o *MakeMoveTaskOrderAvailableInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this make move task order available internal server error response has a 3xx status code
-func (o *MakeMoveTaskOrderAvailableInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this make move task order available internal server error response has a 4xx status code
-func (o *MakeMoveTaskOrderAvailableInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this make move task order available internal server error response has a 5xx status code
-func (o *MakeMoveTaskOrderAvailableInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this make move task order available internal server error response a status code equal to that given
-func (o *MakeMoveTaskOrderAvailableInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the make move task order available internal server error response
-func (o *MakeMoveTaskOrderAvailableInternalServerError) Code() int {
- return 500
-}
-
-func (o *MakeMoveTaskOrderAvailableInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *MakeMoveTaskOrderAvailableInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *MakeMoveTaskOrderAvailableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/move_task_order/move_task_order_client.go b/pkg/gen/supportclient/move_task_order/move_task_order_client.go
deleted file mode 100644
index fb46a6a86ba..00000000000
--- a/pkg/gen/supportclient/move_task_order/move_task_order_client.go
+++ /dev/null
@@ -1,278 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package move_task_order
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-)
-
-// New creates a new move task order API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
- return &Client{transport: transport, formats: formats}
-}
-
-/*
-Client for move task order API
-*/
-type Client struct {
- transport runtime.ClientTransport
- formats strfmt.Registry
-}
-
-// ClientOption is the option for Client methods
-type ClientOption func(*runtime.ClientOperation)
-
-// ClientService is the interface for Client methods
-type ClientService interface {
- CreateMoveTaskOrder(params *CreateMoveTaskOrderParams, opts ...ClientOption) (*CreateMoveTaskOrderCreated, error)
-
- GetMoveTaskOrder(params *GetMoveTaskOrderParams, opts ...ClientOption) (*GetMoveTaskOrderOK, error)
-
- HideNonFakeMoveTaskOrders(params *HideNonFakeMoveTaskOrdersParams, opts ...ClientOption) (*HideNonFakeMoveTaskOrdersOK, error)
-
- ListMTOs(params *ListMTOsParams, opts ...ClientOption) (*ListMTOsOK, error)
-
- MakeMoveTaskOrderAvailable(params *MakeMoveTaskOrderAvailableParams, opts ...ClientOption) (*MakeMoveTaskOrderAvailableOK, error)
-
- SetTransport(transport runtime.ClientTransport)
-}
-
-/*
- CreateMoveTaskOrder creates move task order
-
- Creates an instance of moveTaskOrder.
-
-Currently this will also create a number of nested objects but not all.
-It will currently create
-* MoveTaskOrder
-* Order
-* Customer
-* User
-* Entitlement
-
-It will not create addresses, duty stations, shipments, payment requests or service items. It requires an existing contractor ID, destination duty station ID,
-origin duty station ID, and an uploaded orders ID to be passed into the request.
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) CreateMoveTaskOrder(params *CreateMoveTaskOrderParams, opts ...ClientOption) (*CreateMoveTaskOrderCreated, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewCreateMoveTaskOrderParams()
- }
- op := &runtime.ClientOperation{
- ID: "createMoveTaskOrder",
- Method: "POST",
- PathPattern: "/move-task-orders",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &CreateMoveTaskOrderReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*CreateMoveTaskOrderCreated)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for createMoveTaskOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- GetMoveTaskOrder gets move task order
-
- ### Functionality
-
-This endpoint gets an individual MoveTaskOrder by ID.
-
-It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
-
-This is a support endpoint and is not available in production.
-*/
-func (a *Client) GetMoveTaskOrder(params *GetMoveTaskOrderParams, opts ...ClientOption) (*GetMoveTaskOrderOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewGetMoveTaskOrderParams()
- }
- op := &runtime.ClientOperation{
- ID: "getMoveTaskOrder",
- Method: "GET",
- PathPattern: "/move-task-orders/{moveTaskOrderID}",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &GetMoveTaskOrderReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*GetMoveTaskOrderOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for getMoveTaskOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- HideNonFakeMoveTaskOrders hides non fake move task orders
-
- Updates move task order without fake user data `show` to false. No request body required.
-
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) HideNonFakeMoveTaskOrders(params *HideNonFakeMoveTaskOrdersParams, opts ...ClientOption) (*HideNonFakeMoveTaskOrdersOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewHideNonFakeMoveTaskOrdersParams()
- }
- op := &runtime.ClientOperation{
- ID: "hideNonFakeMoveTaskOrders",
- Method: "PATCH",
- PathPattern: "/move-task-orders/hide",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &HideNonFakeMoveTaskOrdersReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*HideNonFakeMoveTaskOrdersOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for hideNonFakeMoveTaskOrders: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- ListMTOs lists m t os
-
- ### Functionality
-
-This endpoint lists all MoveTaskOrders regardless of whether or not they have been made available to Prime.
-
-It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
-*/
-func (a *Client) ListMTOs(params *ListMTOsParams, opts ...ClientOption) (*ListMTOsOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewListMTOsParams()
- }
- op := &runtime.ClientOperation{
- ID: "listMTOs",
- Method: "GET",
- PathPattern: "/move-task-orders",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &ListMTOsReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*ListMTOsOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for listMTOs: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- MakeMoveTaskOrderAvailable makes move task order available
-
- Updates move task order `availableToPrimeAt` to make it available to prime. No request body required.
-
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) MakeMoveTaskOrderAvailable(params *MakeMoveTaskOrderAvailableParams, opts ...ClientOption) (*MakeMoveTaskOrderAvailableOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewMakeMoveTaskOrderAvailableParams()
- }
- op := &runtime.ClientOperation{
- ID: "makeMoveTaskOrderAvailable",
- Method: "PATCH",
- PathPattern: "/move-task-orders/{moveTaskOrderID}/available-to-prime",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &MakeMoveTaskOrderAvailableReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*MakeMoveTaskOrderAvailableOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for makeMoveTaskOrderAvailable: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-// SetTransport changes the transport on the client
-func (a *Client) SetTransport(transport runtime.ClientTransport) {
- a.transport = transport
-}
diff --git a/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go b/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go
deleted file mode 100644
index 43ba2309d44..00000000000
--- a/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go
+++ /dev/null
@@ -1,84 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-)
-
-// New creates a new mto service item API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
- return &Client{transport: transport, formats: formats}
-}
-
-/*
-Client for mto service item API
-*/
-type Client struct {
- transport runtime.ClientTransport
- formats strfmt.Registry
-}
-
-// ClientOption is the option for Client methods
-type ClientOption func(*runtime.ClientOperation)
-
-// ClientService is the interface for Client methods
-type ClientService interface {
- UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, error)
-
- SetTransport(transport runtime.ClientTransport)
-}
-
-/*
- UpdateMTOServiceItemStatus updates m t o service item status
-
- Updates the status of a service item for a move to APPROVED or REJECTED.
-
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewUpdateMTOServiceItemStatusParams()
- }
- op := &runtime.ClientOperation{
- ID: "updateMTOServiceItemStatus",
- Method: "PATCH",
- PathPattern: "/mto-service-items/{mtoServiceItemID}/status",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &UpdateMTOServiceItemStatusReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*UpdateMTOServiceItemStatusOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for updateMTOServiceItemStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-// SetTransport changes the transport on the client
-func (a *Client) SetTransport(transport runtime.ClientTransport) {
- a.transport = transport
-}
diff --git a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go
deleted file mode 100644
index b8fd5908aaf..00000000000
--- a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go
+++ /dev/null
@@ -1,195 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewUpdateMTOServiceItemStatusParams() *UpdateMTOServiceItemStatusParams {
- return &UpdateMTOServiceItemStatusParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewUpdateMTOServiceItemStatusParamsWithTimeout creates a new UpdateMTOServiceItemStatusParams object
-// with the ability to set a timeout on a request.
-func NewUpdateMTOServiceItemStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemStatusParams {
- return &UpdateMTOServiceItemStatusParams{
- timeout: timeout,
- }
-}
-
-// NewUpdateMTOServiceItemStatusParamsWithContext creates a new UpdateMTOServiceItemStatusParams object
-// with the ability to set a context for a request.
-func NewUpdateMTOServiceItemStatusParamsWithContext(ctx context.Context) *UpdateMTOServiceItemStatusParams {
- return &UpdateMTOServiceItemStatusParams{
- Context: ctx,
- }
-}
-
-// NewUpdateMTOServiceItemStatusParamsWithHTTPClient creates a new UpdateMTOServiceItemStatusParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewUpdateMTOServiceItemStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemStatusParams {
- return &UpdateMTOServiceItemStatusParams{
- HTTPClient: client,
- }
-}
-
-/*
-UpdateMTOServiceItemStatusParams contains all the parameters to send to the API endpoint
-
- for the update m t o service item status operation.
-
- Typically these are written to a http.Request.
-*/
-type UpdateMTOServiceItemStatusParams struct {
-
- /* IfMatch.
-
- Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- */
- IfMatch string
-
- // Body.
- Body *supportmessages.UpdateMTOServiceItemStatus
-
- /* MtoServiceItemID.
-
- UUID of mto service item to use.
- */
- MtoServiceItemID string
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the update m t o service item status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdateMTOServiceItemStatusParams) WithDefaults() *UpdateMTOServiceItemStatusParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the update m t o service item status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdateMTOServiceItemStatusParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOServiceItemStatusParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithContext(ctx context.Context) *UpdateMTOServiceItemStatusParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOServiceItemStatusParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithIfMatch adds the ifMatch to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithIfMatch(ifMatch string) *UpdateMTOServiceItemStatusParams {
- o.SetIfMatch(ifMatch)
- return o
-}
-
-// SetIfMatch adds the ifMatch to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetIfMatch(ifMatch string) {
- o.IfMatch = ifMatch
-}
-
-// WithBody adds the body to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithBody(body *supportmessages.UpdateMTOServiceItemStatus) *UpdateMTOServiceItemStatusParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetBody(body *supportmessages.UpdateMTOServiceItemStatus) {
- o.Body = body
-}
-
-// WithMtoServiceItemID adds the mtoServiceItemID to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemStatusParams {
- o.SetMtoServiceItemID(mtoServiceItemID)
- return o
-}
-
-// SetMtoServiceItemID adds the mtoServiceItemId to the update m t o service item status params
-func (o *UpdateMTOServiceItemStatusParams) SetMtoServiceItemID(mtoServiceItemID string) {
- o.MtoServiceItemID = mtoServiceItemID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *UpdateMTOServiceItemStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // header param If-Match
- if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
- return err
- }
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- // path param mtoServiceItemID
- if err := r.SetPathParam("mtoServiceItemID", o.MtoServiceItemID); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go
deleted file mode 100644
index cd3f6ec6339..00000000000
--- a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go
+++ /dev/null
@@ -1,695 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_service_item
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdateMTOServiceItemStatusReader is a Reader for the UpdateMTOServiceItemStatus structure.
-type UpdateMTOServiceItemStatusReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *UpdateMTOServiceItemStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewUpdateMTOServiceItemStatusOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewUpdateMTOServiceItemStatusBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewUpdateMTOServiceItemStatusUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewUpdateMTOServiceItemStatusForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewUpdateMTOServiceItemStatusNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewUpdateMTOServiceItemStatusConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewUpdateMTOServiceItemStatusPreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewUpdateMTOServiceItemStatusUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewUpdateMTOServiceItemStatusInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /mto-service-items/{mtoServiceItemID}/status] updateMTOServiceItemStatus", response, response.Code())
- }
-}
-
-// NewUpdateMTOServiceItemStatusOK creates a UpdateMTOServiceItemStatusOK with default headers values
-func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK {
- return &UpdateMTOServiceItemStatusOK{}
-}
-
-/*
-UpdateMTOServiceItemStatusOK describes a response with status code 200, with default header values.
-
-Successfully updated service item status for a move task order.
-*/
-type UpdateMTOServiceItemStatusOK struct {
- Payload supportmessages.MTOServiceItem
-}
-
-// IsSuccess returns true when this update m t o service item status o k response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this update m t o service item status o k response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status o k response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update m t o service item status o k response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status o k response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the update m t o service item status o k response
-func (o *UpdateMTOServiceItemStatusOK) Code() int {
- return 200
-}
-
-func (o *UpdateMTOServiceItemStatusOK) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusOK) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusOK) GetPayload() supportmessages.MTOServiceItem {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- // response payload as interface type
- payload, err := supportmessages.UnmarshalMTOServiceItem(response.Body(), consumer)
- if err != nil {
- return err
- }
- o.Payload = payload
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusBadRequest creates a UpdateMTOServiceItemStatusBadRequest with default headers values
-func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest {
- return &UpdateMTOServiceItemStatusBadRequest{}
-}
-
-/*
-UpdateMTOServiceItemStatusBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type UpdateMTOServiceItemStatusBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status bad request response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status bad request response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status bad request response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status bad request response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status bad request response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the update m t o service item status bad request response
-func (o *UpdateMTOServiceItemStatusBadRequest) Code() int {
- return 400
-}
-
-func (o *UpdateMTOServiceItemStatusBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusBadRequest) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusUnauthorized creates a UpdateMTOServiceItemStatusUnauthorized with default headers values
-func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized {
- return &UpdateMTOServiceItemStatusUnauthorized{}
-}
-
-/*
-UpdateMTOServiceItemStatusUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type UpdateMTOServiceItemStatusUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status unauthorized response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status unauthorized response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status unauthorized response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status unauthorized response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status unauthorized response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the update m t o service item status unauthorized response
-func (o *UpdateMTOServiceItemStatusUnauthorized) Code() int {
- return 401
-}
-
-func (o *UpdateMTOServiceItemStatusUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusForbidden creates a UpdateMTOServiceItemStatusForbidden with default headers values
-func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden {
- return &UpdateMTOServiceItemStatusForbidden{}
-}
-
-/*
-UpdateMTOServiceItemStatusForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type UpdateMTOServiceItemStatusForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status forbidden response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status forbidden response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status forbidden response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status forbidden response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status forbidden response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the update m t o service item status forbidden response
-func (o *UpdateMTOServiceItemStatusForbidden) Code() int {
- return 403
-}
-
-func (o *UpdateMTOServiceItemStatusForbidden) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusForbidden) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusNotFound creates a UpdateMTOServiceItemStatusNotFound with default headers values
-func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound {
- return &UpdateMTOServiceItemStatusNotFound{}
-}
-
-/*
-UpdateMTOServiceItemStatusNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type UpdateMTOServiceItemStatusNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status not found response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status not found response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status not found response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status not found response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status not found response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the update m t o service item status not found response
-func (o *UpdateMTOServiceItemStatusNotFound) Code() int {
- return 404
-}
-
-func (o *UpdateMTOServiceItemStatusNotFound) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusNotFound) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusConflict creates a UpdateMTOServiceItemStatusConflict with default headers values
-func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict {
- return &UpdateMTOServiceItemStatusConflict{}
-}
-
-/*
-UpdateMTOServiceItemStatusConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type UpdateMTOServiceItemStatusConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status conflict response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status conflict response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status conflict response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status conflict response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status conflict response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the update m t o service item status conflict response
-func (o *UpdateMTOServiceItemStatusConflict) Code() int {
- return 409
-}
-
-func (o *UpdateMTOServiceItemStatusConflict) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusConflict) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusPreconditionFailed creates a UpdateMTOServiceItemStatusPreconditionFailed with default headers values
-func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed {
- return &UpdateMTOServiceItemStatusPreconditionFailed{}
-}
-
-/*
-UpdateMTOServiceItemStatusPreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type UpdateMTOServiceItemStatusPreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o service item status precondition failed response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status precondition failed response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status precondition failed response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status precondition failed response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status precondition failed response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the update m t o service item status precondition failed response
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) Code() int {
- return 412
-}
-
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusUnprocessableEntity creates a UpdateMTOServiceItemStatusUnprocessableEntity with default headers values
-func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity {
- return &UpdateMTOServiceItemStatusUnprocessableEntity{}
-}
-
-/*
-UpdateMTOServiceItemStatusUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type UpdateMTOServiceItemStatusUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this update m t o service item status unprocessable entity response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status unprocessable entity response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status unprocessable entity response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o service item status unprocessable entity response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o service item status unprocessable entity response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the update m t o service item status unprocessable entity response
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOServiceItemStatusInternalServerError creates a UpdateMTOServiceItemStatusInternalServerError with default headers values
-func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError {
- return &UpdateMTOServiceItemStatusInternalServerError{}
-}
-
-/*
-UpdateMTOServiceItemStatusInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type UpdateMTOServiceItemStatusInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this update m t o service item status internal server error response has a 2xx status code
-func (o *UpdateMTOServiceItemStatusInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o service item status internal server error response has a 3xx status code
-func (o *UpdateMTOServiceItemStatusInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o service item status internal server error response has a 4xx status code
-func (o *UpdateMTOServiceItemStatusInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update m t o service item status internal server error response has a 5xx status code
-func (o *UpdateMTOServiceItemStatusInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this update m t o service item status internal server error response a status code equal to that given
-func (o *UpdateMTOServiceItemStatusInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the update m t o service item status internal server error response
-func (o *UpdateMTOServiceItemStatusInternalServerError) Code() int {
- return 500
-}
-
-func (o *UpdateMTOServiceItemStatusInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdateMTOServiceItemStatusInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *UpdateMTOServiceItemStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go b/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go
deleted file mode 100644
index b61940f4c96..00000000000
--- a/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go
+++ /dev/null
@@ -1,81 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-)
-
-// New creates a new mto shipment API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
- return &Client{transport: transport, formats: formats}
-}
-
-/*
-Client for mto shipment API
-*/
-type Client struct {
- transport runtime.ClientTransport
- formats strfmt.Registry
-}
-
-// ClientOption is the option for Client methods
-type ClientOption func(*runtime.ClientOperation)
-
-// ClientService is the interface for Client methods
-type ClientService interface {
- UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error)
-
- SetTransport(transport runtime.ClientTransport)
-}
-
-/*
-UpdateMTOShipmentStatus updates m t o shipment status
-
-Updates a shipment's status to APPROVED or REJECTED for the purpose of testing the Prime API. If APPROVED, `rejectionReason` should be blank and any value passed through the body will be ignored. If REJECTED, a value in `rejectionReason` is required.
This is a support endpoint and will not be available in production.
-*/
-func (a *Client) UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewUpdateMTOShipmentStatusParams()
- }
- op := &runtime.ClientOperation{
- ID: "updateMTOShipmentStatus",
- Method: "PATCH",
- PathPattern: "/mto-shipments/{mtoShipmentID}/status",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &UpdateMTOShipmentStatusReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*UpdateMTOShipmentStatusOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for updateMTOShipmentStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-// SetTransport changes the transport on the client
-func (a *Client) SetTransport(transport runtime.ClientTransport) {
- a.transport = transport
-}
diff --git a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go
deleted file mode 100644
index 5b7ddf4db0c..00000000000
--- a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewUpdateMTOShipmentStatusParams() *UpdateMTOShipmentStatusParams {
- return &UpdateMTOShipmentStatusParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewUpdateMTOShipmentStatusParamsWithTimeout creates a new UpdateMTOShipmentStatusParams object
-// with the ability to set a timeout on a request.
-func NewUpdateMTOShipmentStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams {
- return &UpdateMTOShipmentStatusParams{
- timeout: timeout,
- }
-}
-
-// NewUpdateMTOShipmentStatusParamsWithContext creates a new UpdateMTOShipmentStatusParams object
-// with the ability to set a context for a request.
-func NewUpdateMTOShipmentStatusParamsWithContext(ctx context.Context) *UpdateMTOShipmentStatusParams {
- return &UpdateMTOShipmentStatusParams{
- Context: ctx,
- }
-}
-
-// NewUpdateMTOShipmentStatusParamsWithHTTPClient creates a new UpdateMTOShipmentStatusParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewUpdateMTOShipmentStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams {
- return &UpdateMTOShipmentStatusParams{
- HTTPClient: client,
- }
-}
-
-/*
-UpdateMTOShipmentStatusParams contains all the parameters to send to the API endpoint
-
- for the update m t o shipment status operation.
-
- Typically these are written to a http.Request.
-*/
-type UpdateMTOShipmentStatusParams struct {
-
- /* IfMatch.
-
- Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- */
- IfMatch string
-
- // Body.
- Body *supportmessages.UpdateMTOShipmentStatus
-
- /* MtoShipmentID.
-
- UUID of the shipment being updated.
-
- Format: uuid
- */
- MtoShipmentID strfmt.UUID
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the update m t o shipment status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdateMTOShipmentStatusParams) WithDefaults() *UpdateMTOShipmentStatusParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the update m t o shipment status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdateMTOShipmentStatusParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithContext(ctx context.Context) *UpdateMTOShipmentStatusParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithIfMatch adds the ifMatch to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithIfMatch(ifMatch string) *UpdateMTOShipmentStatusParams {
- o.SetIfMatch(ifMatch)
- return o
-}
-
-// SetIfMatch adds the ifMatch to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetIfMatch(ifMatch string) {
- o.IfMatch = ifMatch
-}
-
-// WithBody adds the body to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithBody(body *supportmessages.UpdateMTOShipmentStatus) *UpdateMTOShipmentStatusParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetBody(body *supportmessages.UpdateMTOShipmentStatus) {
- o.Body = body
-}
-
-// WithMtoShipmentID adds the mtoShipmentID to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) WithMtoShipmentID(mtoShipmentID strfmt.UUID) *UpdateMTOShipmentStatusParams {
- o.SetMtoShipmentID(mtoShipmentID)
- return o
-}
-
-// SetMtoShipmentID adds the mtoShipmentId to the update m t o shipment status params
-func (o *UpdateMTOShipmentStatusParams) SetMtoShipmentID(mtoShipmentID strfmt.UUID) {
- o.MtoShipmentID = mtoShipmentID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *UpdateMTOShipmentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // header param If-Match
- if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
- return err
- }
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- // path param mtoShipmentID
- if err := r.SetPathParam("mtoShipmentID", o.MtoShipmentID.String()); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go
deleted file mode 100644
index 943de2db2d9..00000000000
--- a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go
+++ /dev/null
@@ -1,695 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package mto_shipment
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdateMTOShipmentStatusReader is a Reader for the UpdateMTOShipmentStatus structure.
-type UpdateMTOShipmentStatusReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *UpdateMTOShipmentStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewUpdateMTOShipmentStatusOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewUpdateMTOShipmentStatusBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewUpdateMTOShipmentStatusUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewUpdateMTOShipmentStatusForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewUpdateMTOShipmentStatusNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewUpdateMTOShipmentStatusConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewUpdateMTOShipmentStatusPreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewUpdateMTOShipmentStatusUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewUpdateMTOShipmentStatusInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /mto-shipments/{mtoShipmentID}/status] updateMTOShipmentStatus", response, response.Code())
- }
-}
-
-// NewUpdateMTOShipmentStatusOK creates a UpdateMTOShipmentStatusOK with default headers values
-func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK {
- return &UpdateMTOShipmentStatusOK{}
-}
-
-/*
-UpdateMTOShipmentStatusOK describes a response with status code 200, with default header values.
-
-Successfully updated the shipment's status.
-*/
-type UpdateMTOShipmentStatusOK struct {
- Payload *supportmessages.MTOShipment
-}
-
-// IsSuccess returns true when this update m t o shipment status o k response has a 2xx status code
-func (o *UpdateMTOShipmentStatusOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this update m t o shipment status o k response has a 3xx status code
-func (o *UpdateMTOShipmentStatusOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status o k response has a 4xx status code
-func (o *UpdateMTOShipmentStatusOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update m t o shipment status o k response has a 5xx status code
-func (o *UpdateMTOShipmentStatusOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status o k response a status code equal to that given
-func (o *UpdateMTOShipmentStatusOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the update m t o shipment status o k response
-func (o *UpdateMTOShipmentStatusOK) Code() int {
- return 200
-}
-
-func (o *UpdateMTOShipmentStatusOK) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusOK) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusOK) GetPayload() *supportmessages.MTOShipment {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.MTOShipment)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusBadRequest creates a UpdateMTOShipmentStatusBadRequest with default headers values
-func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest {
- return &UpdateMTOShipmentStatusBadRequest{}
-}
-
-/*
-UpdateMTOShipmentStatusBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type UpdateMTOShipmentStatusBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status bad request response has a 2xx status code
-func (o *UpdateMTOShipmentStatusBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status bad request response has a 3xx status code
-func (o *UpdateMTOShipmentStatusBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status bad request response has a 4xx status code
-func (o *UpdateMTOShipmentStatusBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status bad request response has a 5xx status code
-func (o *UpdateMTOShipmentStatusBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status bad request response a status code equal to that given
-func (o *UpdateMTOShipmentStatusBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the update m t o shipment status bad request response
-func (o *UpdateMTOShipmentStatusBadRequest) Code() int {
- return 400
-}
-
-func (o *UpdateMTOShipmentStatusBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusBadRequest) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusUnauthorized creates a UpdateMTOShipmentStatusUnauthorized with default headers values
-func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized {
- return &UpdateMTOShipmentStatusUnauthorized{}
-}
-
-/*
-UpdateMTOShipmentStatusUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type UpdateMTOShipmentStatusUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status unauthorized response has a 2xx status code
-func (o *UpdateMTOShipmentStatusUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status unauthorized response has a 3xx status code
-func (o *UpdateMTOShipmentStatusUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status unauthorized response has a 4xx status code
-func (o *UpdateMTOShipmentStatusUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status unauthorized response has a 5xx status code
-func (o *UpdateMTOShipmentStatusUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status unauthorized response a status code equal to that given
-func (o *UpdateMTOShipmentStatusUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the update m t o shipment status unauthorized response
-func (o *UpdateMTOShipmentStatusUnauthorized) Code() int {
- return 401
-}
-
-func (o *UpdateMTOShipmentStatusUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusForbidden creates a UpdateMTOShipmentStatusForbidden with default headers values
-func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden {
- return &UpdateMTOShipmentStatusForbidden{}
-}
-
-/*
-UpdateMTOShipmentStatusForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type UpdateMTOShipmentStatusForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status forbidden response has a 2xx status code
-func (o *UpdateMTOShipmentStatusForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status forbidden response has a 3xx status code
-func (o *UpdateMTOShipmentStatusForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status forbidden response has a 4xx status code
-func (o *UpdateMTOShipmentStatusForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status forbidden response has a 5xx status code
-func (o *UpdateMTOShipmentStatusForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status forbidden response a status code equal to that given
-func (o *UpdateMTOShipmentStatusForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the update m t o shipment status forbidden response
-func (o *UpdateMTOShipmentStatusForbidden) Code() int {
- return 403
-}
-
-func (o *UpdateMTOShipmentStatusForbidden) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusForbidden) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusNotFound creates a UpdateMTOShipmentStatusNotFound with default headers values
-func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound {
- return &UpdateMTOShipmentStatusNotFound{}
-}
-
-/*
-UpdateMTOShipmentStatusNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type UpdateMTOShipmentStatusNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status not found response has a 2xx status code
-func (o *UpdateMTOShipmentStatusNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status not found response has a 3xx status code
-func (o *UpdateMTOShipmentStatusNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status not found response has a 4xx status code
-func (o *UpdateMTOShipmentStatusNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status not found response has a 5xx status code
-func (o *UpdateMTOShipmentStatusNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status not found response a status code equal to that given
-func (o *UpdateMTOShipmentStatusNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the update m t o shipment status not found response
-func (o *UpdateMTOShipmentStatusNotFound) Code() int {
- return 404
-}
-
-func (o *UpdateMTOShipmentStatusNotFound) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusNotFound) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusConflict creates a UpdateMTOShipmentStatusConflict with default headers values
-func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict {
- return &UpdateMTOShipmentStatusConflict{}
-}
-
-/*
-UpdateMTOShipmentStatusConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type UpdateMTOShipmentStatusConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status conflict response has a 2xx status code
-func (o *UpdateMTOShipmentStatusConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status conflict response has a 3xx status code
-func (o *UpdateMTOShipmentStatusConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status conflict response has a 4xx status code
-func (o *UpdateMTOShipmentStatusConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status conflict response has a 5xx status code
-func (o *UpdateMTOShipmentStatusConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status conflict response a status code equal to that given
-func (o *UpdateMTOShipmentStatusConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the update m t o shipment status conflict response
-func (o *UpdateMTOShipmentStatusConflict) Code() int {
- return 409
-}
-
-func (o *UpdateMTOShipmentStatusConflict) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusConflict) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusPreconditionFailed creates a UpdateMTOShipmentStatusPreconditionFailed with default headers values
-func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed {
- return &UpdateMTOShipmentStatusPreconditionFailed{}
-}
-
-/*
-UpdateMTOShipmentStatusPreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type UpdateMTOShipmentStatusPreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update m t o shipment status precondition failed response has a 2xx status code
-func (o *UpdateMTOShipmentStatusPreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status precondition failed response has a 3xx status code
-func (o *UpdateMTOShipmentStatusPreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status precondition failed response has a 4xx status code
-func (o *UpdateMTOShipmentStatusPreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status precondition failed response has a 5xx status code
-func (o *UpdateMTOShipmentStatusPreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status precondition failed response a status code equal to that given
-func (o *UpdateMTOShipmentStatusPreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the update m t o shipment status precondition failed response
-func (o *UpdateMTOShipmentStatusPreconditionFailed) Code() int {
- return 412
-}
-
-func (o *UpdateMTOShipmentStatusPreconditionFailed) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusPreconditionFailed) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusUnprocessableEntity creates a UpdateMTOShipmentStatusUnprocessableEntity with default headers values
-func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity {
- return &UpdateMTOShipmentStatusUnprocessableEntity{}
-}
-
-/*
-UpdateMTOShipmentStatusUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type UpdateMTOShipmentStatusUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this update m t o shipment status unprocessable entity response has a 2xx status code
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status unprocessable entity response has a 3xx status code
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status unprocessable entity response has a 4xx status code
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update m t o shipment status unprocessable entity response has a 5xx status code
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update m t o shipment status unprocessable entity response a status code equal to that given
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the update m t o shipment status unprocessable entity response
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdateMTOShipmentStatusInternalServerError creates a UpdateMTOShipmentStatusInternalServerError with default headers values
-func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError {
- return &UpdateMTOShipmentStatusInternalServerError{}
-}
-
-/*
-UpdateMTOShipmentStatusInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type UpdateMTOShipmentStatusInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this update m t o shipment status internal server error response has a 2xx status code
-func (o *UpdateMTOShipmentStatusInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update m t o shipment status internal server error response has a 3xx status code
-func (o *UpdateMTOShipmentStatusInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update m t o shipment status internal server error response has a 4xx status code
-func (o *UpdateMTOShipmentStatusInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update m t o shipment status internal server error response has a 5xx status code
-func (o *UpdateMTOShipmentStatusInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this update m t o shipment status internal server error response a status code equal to that given
-func (o *UpdateMTOShipmentStatusInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the update m t o shipment status internal server error response
-func (o *UpdateMTOShipmentStatusInternalServerError) Code() int {
- return 500
-}
-
-func (o *UpdateMTOShipmentStatusInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdateMTOShipmentStatusInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *UpdateMTOShipmentStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/mymove_client.go b/pkg/gen/supportclient/mymove_client.go
deleted file mode 100644
index 4df4df28067..00000000000
--- a/pkg/gen/supportclient/mymove_client.go
+++ /dev/null
@@ -1,132 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportclient
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "github.com/go-openapi/runtime"
- httptransport "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportclient/move_task_order"
- "github.com/transcom/mymove/pkg/gen/supportclient/mto_service_item"
- "github.com/transcom/mymove/pkg/gen/supportclient/mto_shipment"
- "github.com/transcom/mymove/pkg/gen/supportclient/payment_request"
- "github.com/transcom/mymove/pkg/gen/supportclient/webhook"
-)
-
-// Default mymove HTTP client.
-var Default = NewHTTPClient(nil)
-
-const (
- // DefaultHost is the default Host
- // found in Meta (info) section of spec file
- DefaultHost string = "localhost"
- // DefaultBasePath is the default BasePath
- // found in Meta (info) section of spec file
- DefaultBasePath string = "/support/v1"
-)
-
-// DefaultSchemes are the default schemes found in Meta (info) section of spec file
-var DefaultSchemes = []string{"http"}
-
-// NewHTTPClient creates a new mymove HTTP client.
-func NewHTTPClient(formats strfmt.Registry) *Mymove {
- return NewHTTPClientWithConfig(formats, nil)
-}
-
-// NewHTTPClientWithConfig creates a new mymove HTTP client,
-// using a customizable transport config.
-func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Mymove {
- // ensure nullable parameters have default
- if cfg == nil {
- cfg = DefaultTransportConfig()
- }
-
- // create transport and client
- transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
- return New(transport, formats)
-}
-
-// New creates a new mymove client
-func New(transport runtime.ClientTransport, formats strfmt.Registry) *Mymove {
- // ensure nullable parameters have default
- if formats == nil {
- formats = strfmt.Default
- }
-
- cli := new(Mymove)
- cli.Transport = transport
- cli.MoveTaskOrder = move_task_order.New(transport, formats)
- cli.MtoServiceItem = mto_service_item.New(transport, formats)
- cli.MtoShipment = mto_shipment.New(transport, formats)
- cli.PaymentRequest = payment_request.New(transport, formats)
- cli.Webhook = webhook.New(transport, formats)
- return cli
-}
-
-// DefaultTransportConfig creates a TransportConfig with the
-// default settings taken from the meta section of the spec file.
-func DefaultTransportConfig() *TransportConfig {
- return &TransportConfig{
- Host: DefaultHost,
- BasePath: DefaultBasePath,
- Schemes: DefaultSchemes,
- }
-}
-
-// TransportConfig contains the transport related info,
-// found in the meta section of the spec file.
-type TransportConfig struct {
- Host string
- BasePath string
- Schemes []string
-}
-
-// WithHost overrides the default host,
-// provided by the meta section of the spec file.
-func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
- cfg.Host = host
- return cfg
-}
-
-// WithBasePath overrides the default basePath,
-// provided by the meta section of the spec file.
-func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
- cfg.BasePath = basePath
- return cfg
-}
-
-// WithSchemes overrides the default schemes,
-// provided by the meta section of the spec file.
-func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
- cfg.Schemes = schemes
- return cfg
-}
-
-// Mymove is a client for mymove
-type Mymove struct {
- MoveTaskOrder move_task_order.ClientService
-
- MtoServiceItem mto_service_item.ClientService
-
- MtoShipment mto_shipment.ClientService
-
- PaymentRequest payment_request.ClientService
-
- Webhook webhook.ClientService
-
- Transport runtime.ClientTransport
-}
-
-// SetTransport changes the transport on the client and all its subresources
-func (c *Mymove) SetTransport(transport runtime.ClientTransport) {
- c.Transport = transport
- c.MoveTaskOrder.SetTransport(transport)
- c.MtoServiceItem.SetTransport(transport)
- c.MtoShipment.SetTransport(transport)
- c.PaymentRequest.SetTransport(transport)
- c.Webhook.SetTransport(transport)
-}
diff --git a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go
deleted file mode 100644
index d4632c91481..00000000000
--- a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go
+++ /dev/null
@@ -1,153 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewGetPaymentRequestEDIParams creates a new GetPaymentRequestEDIParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewGetPaymentRequestEDIParams() *GetPaymentRequestEDIParams {
- return &GetPaymentRequestEDIParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewGetPaymentRequestEDIParamsWithTimeout creates a new GetPaymentRequestEDIParams object
-// with the ability to set a timeout on a request.
-func NewGetPaymentRequestEDIParamsWithTimeout(timeout time.Duration) *GetPaymentRequestEDIParams {
- return &GetPaymentRequestEDIParams{
- timeout: timeout,
- }
-}
-
-// NewGetPaymentRequestEDIParamsWithContext creates a new GetPaymentRequestEDIParams object
-// with the ability to set a context for a request.
-func NewGetPaymentRequestEDIParamsWithContext(ctx context.Context) *GetPaymentRequestEDIParams {
- return &GetPaymentRequestEDIParams{
- Context: ctx,
- }
-}
-
-// NewGetPaymentRequestEDIParamsWithHTTPClient creates a new GetPaymentRequestEDIParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewGetPaymentRequestEDIParamsWithHTTPClient(client *http.Client) *GetPaymentRequestEDIParams {
- return &GetPaymentRequestEDIParams{
- HTTPClient: client,
- }
-}
-
-/*
-GetPaymentRequestEDIParams contains all the parameters to send to the API endpoint
-
- for the get payment request e d i operation.
-
- Typically these are written to a http.Request.
-*/
-type GetPaymentRequestEDIParams struct {
-
- /* PaymentRequestID.
-
- UUID of the payment request for which EDI should be generated.
-
- Format: uuid
- */
- PaymentRequestID strfmt.UUID
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the get payment request e d i params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *GetPaymentRequestEDIParams) WithDefaults() *GetPaymentRequestEDIParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the get payment request e d i params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *GetPaymentRequestEDIParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) WithTimeout(timeout time.Duration) *GetPaymentRequestEDIParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) WithContext(ctx context.Context) *GetPaymentRequestEDIParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) WithHTTPClient(client *http.Client) *GetPaymentRequestEDIParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithPaymentRequestID adds the paymentRequestID to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *GetPaymentRequestEDIParams {
- o.SetPaymentRequestID(paymentRequestID)
- return o
-}
-
-// SetPaymentRequestID adds the paymentRequestId to the get payment request e d i params
-func (o *GetPaymentRequestEDIParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
- o.PaymentRequestID = paymentRequestID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *GetPaymentRequestEDIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // path param paymentRequestID
- if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go
deleted file mode 100644
index cec8b4f5b7e..00000000000
--- a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go
+++ /dev/null
@@ -1,621 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// GetPaymentRequestEDIReader is a Reader for the GetPaymentRequestEDI structure.
-type GetPaymentRequestEDIReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *GetPaymentRequestEDIReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewGetPaymentRequestEDIOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewGetPaymentRequestEDIBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewGetPaymentRequestEDIUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewGetPaymentRequestEDIForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewGetPaymentRequestEDINotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewGetPaymentRequestEDIConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewGetPaymentRequestEDIUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewGetPaymentRequestEDIInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[GET /payment-requests/{paymentRequestID}/edi] getPaymentRequestEDI", response, response.Code())
- }
-}
-
-// NewGetPaymentRequestEDIOK creates a GetPaymentRequestEDIOK with default headers values
-func NewGetPaymentRequestEDIOK() *GetPaymentRequestEDIOK {
- return &GetPaymentRequestEDIOK{}
-}
-
-/*
-GetPaymentRequestEDIOK describes a response with status code 200, with default header values.
-
-Successfully retrieved payment requests associated with a given move task order
-*/
-type GetPaymentRequestEDIOK struct {
- Payload *supportmessages.PaymentRequestEDI
-}
-
-// IsSuccess returns true when this get payment request e d i o k response has a 2xx status code
-func (o *GetPaymentRequestEDIOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this get payment request e d i o k response has a 3xx status code
-func (o *GetPaymentRequestEDIOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i o k response has a 4xx status code
-func (o *GetPaymentRequestEDIOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this get payment request e d i o k response has a 5xx status code
-func (o *GetPaymentRequestEDIOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i o k response a status code equal to that given
-func (o *GetPaymentRequestEDIOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the get payment request e d i o k response
-func (o *GetPaymentRequestEDIOK) Code() int {
- return 200
-}
-
-func (o *GetPaymentRequestEDIOK) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIOK %+v", 200, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIOK) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIOK %+v", 200, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIOK) GetPayload() *supportmessages.PaymentRequestEDI {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.PaymentRequestEDI)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIBadRequest creates a GetPaymentRequestEDIBadRequest with default headers values
-func NewGetPaymentRequestEDIBadRequest() *GetPaymentRequestEDIBadRequest {
- return &GetPaymentRequestEDIBadRequest{}
-}
-
-/*
-GetPaymentRequestEDIBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type GetPaymentRequestEDIBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get payment request e d i bad request response has a 2xx status code
-func (o *GetPaymentRequestEDIBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i bad request response has a 3xx status code
-func (o *GetPaymentRequestEDIBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i bad request response has a 4xx status code
-func (o *GetPaymentRequestEDIBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i bad request response has a 5xx status code
-func (o *GetPaymentRequestEDIBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i bad request response a status code equal to that given
-func (o *GetPaymentRequestEDIBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the get payment request e d i bad request response
-func (o *GetPaymentRequestEDIBadRequest) Code() int {
- return 400
-}
-
-func (o *GetPaymentRequestEDIBadRequest) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIBadRequest %+v", 400, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIBadRequest) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIBadRequest %+v", 400, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIUnauthorized creates a GetPaymentRequestEDIUnauthorized with default headers values
-func NewGetPaymentRequestEDIUnauthorized() *GetPaymentRequestEDIUnauthorized {
- return &GetPaymentRequestEDIUnauthorized{}
-}
-
-/*
-GetPaymentRequestEDIUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type GetPaymentRequestEDIUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get payment request e d i unauthorized response has a 2xx status code
-func (o *GetPaymentRequestEDIUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i unauthorized response has a 3xx status code
-func (o *GetPaymentRequestEDIUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i unauthorized response has a 4xx status code
-func (o *GetPaymentRequestEDIUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i unauthorized response has a 5xx status code
-func (o *GetPaymentRequestEDIUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i unauthorized response a status code equal to that given
-func (o *GetPaymentRequestEDIUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the get payment request e d i unauthorized response
-func (o *GetPaymentRequestEDIUnauthorized) Code() int {
- return 401
-}
-
-func (o *GetPaymentRequestEDIUnauthorized) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIUnauthorized) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIForbidden creates a GetPaymentRequestEDIForbidden with default headers values
-func NewGetPaymentRequestEDIForbidden() *GetPaymentRequestEDIForbidden {
- return &GetPaymentRequestEDIForbidden{}
-}
-
-/*
-GetPaymentRequestEDIForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type GetPaymentRequestEDIForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get payment request e d i forbidden response has a 2xx status code
-func (o *GetPaymentRequestEDIForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i forbidden response has a 3xx status code
-func (o *GetPaymentRequestEDIForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i forbidden response has a 4xx status code
-func (o *GetPaymentRequestEDIForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i forbidden response has a 5xx status code
-func (o *GetPaymentRequestEDIForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i forbidden response a status code equal to that given
-func (o *GetPaymentRequestEDIForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the get payment request e d i forbidden response
-func (o *GetPaymentRequestEDIForbidden) Code() int {
- return 403
-}
-
-func (o *GetPaymentRequestEDIForbidden) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIForbidden %+v", 403, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIForbidden) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIForbidden %+v", 403, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDINotFound creates a GetPaymentRequestEDINotFound with default headers values
-func NewGetPaymentRequestEDINotFound() *GetPaymentRequestEDINotFound {
- return &GetPaymentRequestEDINotFound{}
-}
-
-/*
-GetPaymentRequestEDINotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type GetPaymentRequestEDINotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get payment request e d i not found response has a 2xx status code
-func (o *GetPaymentRequestEDINotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i not found response has a 3xx status code
-func (o *GetPaymentRequestEDINotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i not found response has a 4xx status code
-func (o *GetPaymentRequestEDINotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i not found response has a 5xx status code
-func (o *GetPaymentRequestEDINotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i not found response a status code equal to that given
-func (o *GetPaymentRequestEDINotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the get payment request e d i not found response
-func (o *GetPaymentRequestEDINotFound) Code() int {
- return 404
-}
-
-func (o *GetPaymentRequestEDINotFound) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDINotFound %+v", 404, o.Payload)
-}
-
-func (o *GetPaymentRequestEDINotFound) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDINotFound %+v", 404, o.Payload)
-}
-
-func (o *GetPaymentRequestEDINotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDINotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIConflict creates a GetPaymentRequestEDIConflict with default headers values
-func NewGetPaymentRequestEDIConflict() *GetPaymentRequestEDIConflict {
- return &GetPaymentRequestEDIConflict{}
-}
-
-/*
-GetPaymentRequestEDIConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type GetPaymentRequestEDIConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this get payment request e d i conflict response has a 2xx status code
-func (o *GetPaymentRequestEDIConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i conflict response has a 3xx status code
-func (o *GetPaymentRequestEDIConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i conflict response has a 4xx status code
-func (o *GetPaymentRequestEDIConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i conflict response has a 5xx status code
-func (o *GetPaymentRequestEDIConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i conflict response a status code equal to that given
-func (o *GetPaymentRequestEDIConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the get payment request e d i conflict response
-func (o *GetPaymentRequestEDIConflict) Code() int {
- return 409
-}
-
-func (o *GetPaymentRequestEDIConflict) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIConflict %+v", 409, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIConflict) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIConflict %+v", 409, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIUnprocessableEntity creates a GetPaymentRequestEDIUnprocessableEntity with default headers values
-func NewGetPaymentRequestEDIUnprocessableEntity() *GetPaymentRequestEDIUnprocessableEntity {
- return &GetPaymentRequestEDIUnprocessableEntity{}
-}
-
-/*
-GetPaymentRequestEDIUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type GetPaymentRequestEDIUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this get payment request e d i unprocessable entity response has a 2xx status code
-func (o *GetPaymentRequestEDIUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i unprocessable entity response has a 3xx status code
-func (o *GetPaymentRequestEDIUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i unprocessable entity response has a 4xx status code
-func (o *GetPaymentRequestEDIUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this get payment request e d i unprocessable entity response has a 5xx status code
-func (o *GetPaymentRequestEDIUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this get payment request e d i unprocessable entity response a status code equal to that given
-func (o *GetPaymentRequestEDIUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the get payment request e d i unprocessable entity response
-func (o *GetPaymentRequestEDIUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *GetPaymentRequestEDIUnprocessableEntity) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIUnprocessableEntity) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewGetPaymentRequestEDIInternalServerError creates a GetPaymentRequestEDIInternalServerError with default headers values
-func NewGetPaymentRequestEDIInternalServerError() *GetPaymentRequestEDIInternalServerError {
- return &GetPaymentRequestEDIInternalServerError{}
-}
-
-/*
-GetPaymentRequestEDIInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type GetPaymentRequestEDIInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this get payment request e d i internal server error response has a 2xx status code
-func (o *GetPaymentRequestEDIInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this get payment request e d i internal server error response has a 3xx status code
-func (o *GetPaymentRequestEDIInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this get payment request e d i internal server error response has a 4xx status code
-func (o *GetPaymentRequestEDIInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this get payment request e d i internal server error response has a 5xx status code
-func (o *GetPaymentRequestEDIInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this get payment request e d i internal server error response a status code equal to that given
-func (o *GetPaymentRequestEDIInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the get payment request e d i internal server error response
-func (o *GetPaymentRequestEDIInternalServerError) Code() int {
- return 500
-}
-
-func (o *GetPaymentRequestEDIInternalServerError) Error() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIInternalServerError) String() string {
- return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *GetPaymentRequestEDIInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *GetPaymentRequestEDIInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go
deleted file mode 100644
index 30d1611d01c..00000000000
--- a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go
+++ /dev/null
@@ -1,153 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewListMTOPaymentRequestsParams creates a new ListMTOPaymentRequestsParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewListMTOPaymentRequestsParams() *ListMTOPaymentRequestsParams {
- return &ListMTOPaymentRequestsParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewListMTOPaymentRequestsParamsWithTimeout creates a new ListMTOPaymentRequestsParams object
-// with the ability to set a timeout on a request.
-func NewListMTOPaymentRequestsParamsWithTimeout(timeout time.Duration) *ListMTOPaymentRequestsParams {
- return &ListMTOPaymentRequestsParams{
- timeout: timeout,
- }
-}
-
-// NewListMTOPaymentRequestsParamsWithContext creates a new ListMTOPaymentRequestsParams object
-// with the ability to set a context for a request.
-func NewListMTOPaymentRequestsParamsWithContext(ctx context.Context) *ListMTOPaymentRequestsParams {
- return &ListMTOPaymentRequestsParams{
- Context: ctx,
- }
-}
-
-// NewListMTOPaymentRequestsParamsWithHTTPClient creates a new ListMTOPaymentRequestsParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewListMTOPaymentRequestsParamsWithHTTPClient(client *http.Client) *ListMTOPaymentRequestsParams {
- return &ListMTOPaymentRequestsParams{
- HTTPClient: client,
- }
-}
-
-/*
-ListMTOPaymentRequestsParams contains all the parameters to send to the API endpoint
-
- for the list m t o payment requests operation.
-
- Typically these are written to a http.Request.
-*/
-type ListMTOPaymentRequestsParams struct {
-
- /* MoveTaskOrderID.
-
- Only return move task orders updated since this time.
-
- Format: uuid
- */
- MoveTaskOrderID strfmt.UUID
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the list m t o payment requests params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ListMTOPaymentRequestsParams) WithDefaults() *ListMTOPaymentRequestsParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the list m t o payment requests params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ListMTOPaymentRequestsParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) WithTimeout(timeout time.Duration) *ListMTOPaymentRequestsParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) WithContext(ctx context.Context) *ListMTOPaymentRequestsParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) WithHTTPClient(client *http.Client) *ListMTOPaymentRequestsParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithMoveTaskOrderID adds the moveTaskOrderID to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) WithMoveTaskOrderID(moveTaskOrderID strfmt.UUID) *ListMTOPaymentRequestsParams {
- o.SetMoveTaskOrderID(moveTaskOrderID)
- return o
-}
-
-// SetMoveTaskOrderID adds the moveTaskOrderId to the list m t o payment requests params
-func (o *ListMTOPaymentRequestsParams) SetMoveTaskOrderID(moveTaskOrderID strfmt.UUID) {
- o.MoveTaskOrderID = moveTaskOrderID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *ListMTOPaymentRequestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // path param moveTaskOrderID
- if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID.String()); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go
deleted file mode 100644
index 0a969ab9f9f..00000000000
--- a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go
+++ /dev/null
@@ -1,471 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ListMTOPaymentRequestsReader is a Reader for the ListMTOPaymentRequests structure.
-type ListMTOPaymentRequestsReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *ListMTOPaymentRequestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewListMTOPaymentRequestsOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewListMTOPaymentRequestsBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewListMTOPaymentRequestsUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewListMTOPaymentRequestsForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewListMTOPaymentRequestsNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewListMTOPaymentRequestsInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[GET /move-task-orders/{moveTaskOrderID}/payment-requests] listMTOPaymentRequests", response, response.Code())
- }
-}
-
-// NewListMTOPaymentRequestsOK creates a ListMTOPaymentRequestsOK with default headers values
-func NewListMTOPaymentRequestsOK() *ListMTOPaymentRequestsOK {
- return &ListMTOPaymentRequestsOK{}
-}
-
-/*
-ListMTOPaymentRequestsOK describes a response with status code 200, with default header values.
-
-Successfully retrieved payment requests associated with a given move task order
-*/
-type ListMTOPaymentRequestsOK struct {
- Payload supportmessages.PaymentRequests
-}
-
-// IsSuccess returns true when this list m t o payment requests o k response has a 2xx status code
-func (o *ListMTOPaymentRequestsOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this list m t o payment requests o k response has a 3xx status code
-func (o *ListMTOPaymentRequestsOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests o k response has a 4xx status code
-func (o *ListMTOPaymentRequestsOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this list m t o payment requests o k response has a 5xx status code
-func (o *ListMTOPaymentRequestsOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t o payment requests o k response a status code equal to that given
-func (o *ListMTOPaymentRequestsOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the list m t o payment requests o k response
-func (o *ListMTOPaymentRequestsOK) Code() int {
- return 200
-}
-
-func (o *ListMTOPaymentRequestsOK) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsOK %+v", 200, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsOK) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsOK %+v", 200, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsOK) GetPayload() supportmessages.PaymentRequests {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- // response payload
- if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOPaymentRequestsBadRequest creates a ListMTOPaymentRequestsBadRequest with default headers values
-func NewListMTOPaymentRequestsBadRequest() *ListMTOPaymentRequestsBadRequest {
- return &ListMTOPaymentRequestsBadRequest{}
-}
-
-/*
-ListMTOPaymentRequestsBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type ListMTOPaymentRequestsBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t o payment requests bad request response has a 2xx status code
-func (o *ListMTOPaymentRequestsBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t o payment requests bad request response has a 3xx status code
-func (o *ListMTOPaymentRequestsBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests bad request response has a 4xx status code
-func (o *ListMTOPaymentRequestsBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t o payment requests bad request response has a 5xx status code
-func (o *ListMTOPaymentRequestsBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t o payment requests bad request response a status code equal to that given
-func (o *ListMTOPaymentRequestsBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the list m t o payment requests bad request response
-func (o *ListMTOPaymentRequestsBadRequest) Code() int {
- return 400
-}
-
-func (o *ListMTOPaymentRequestsBadRequest) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsBadRequest) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOPaymentRequestsUnauthorized creates a ListMTOPaymentRequestsUnauthorized with default headers values
-func NewListMTOPaymentRequestsUnauthorized() *ListMTOPaymentRequestsUnauthorized {
- return &ListMTOPaymentRequestsUnauthorized{}
-}
-
-/*
-ListMTOPaymentRequestsUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type ListMTOPaymentRequestsUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t o payment requests unauthorized response has a 2xx status code
-func (o *ListMTOPaymentRequestsUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t o payment requests unauthorized response has a 3xx status code
-func (o *ListMTOPaymentRequestsUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests unauthorized response has a 4xx status code
-func (o *ListMTOPaymentRequestsUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t o payment requests unauthorized response has a 5xx status code
-func (o *ListMTOPaymentRequestsUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t o payment requests unauthorized response a status code equal to that given
-func (o *ListMTOPaymentRequestsUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the list m t o payment requests unauthorized response
-func (o *ListMTOPaymentRequestsUnauthorized) Code() int {
- return 401
-}
-
-func (o *ListMTOPaymentRequestsUnauthorized) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsUnauthorized) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOPaymentRequestsForbidden creates a ListMTOPaymentRequestsForbidden with default headers values
-func NewListMTOPaymentRequestsForbidden() *ListMTOPaymentRequestsForbidden {
- return &ListMTOPaymentRequestsForbidden{}
-}
-
-/*
-ListMTOPaymentRequestsForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type ListMTOPaymentRequestsForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t o payment requests forbidden response has a 2xx status code
-func (o *ListMTOPaymentRequestsForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t o payment requests forbidden response has a 3xx status code
-func (o *ListMTOPaymentRequestsForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests forbidden response has a 4xx status code
-func (o *ListMTOPaymentRequestsForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t o payment requests forbidden response has a 5xx status code
-func (o *ListMTOPaymentRequestsForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t o payment requests forbidden response a status code equal to that given
-func (o *ListMTOPaymentRequestsForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the list m t o payment requests forbidden response
-func (o *ListMTOPaymentRequestsForbidden) Code() int {
- return 403
-}
-
-func (o *ListMTOPaymentRequestsForbidden) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsForbidden) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOPaymentRequestsNotFound creates a ListMTOPaymentRequestsNotFound with default headers values
-func NewListMTOPaymentRequestsNotFound() *ListMTOPaymentRequestsNotFound {
- return &ListMTOPaymentRequestsNotFound{}
-}
-
-/*
-ListMTOPaymentRequestsNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type ListMTOPaymentRequestsNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this list m t o payment requests not found response has a 2xx status code
-func (o *ListMTOPaymentRequestsNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t o payment requests not found response has a 3xx status code
-func (o *ListMTOPaymentRequestsNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests not found response has a 4xx status code
-func (o *ListMTOPaymentRequestsNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this list m t o payment requests not found response has a 5xx status code
-func (o *ListMTOPaymentRequestsNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this list m t o payment requests not found response a status code equal to that given
-func (o *ListMTOPaymentRequestsNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the list m t o payment requests not found response
-func (o *ListMTOPaymentRequestsNotFound) Code() int {
- return 404
-}
-
-func (o *ListMTOPaymentRequestsNotFound) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsNotFound) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewListMTOPaymentRequestsInternalServerError creates a ListMTOPaymentRequestsInternalServerError with default headers values
-func NewListMTOPaymentRequestsInternalServerError() *ListMTOPaymentRequestsInternalServerError {
- return &ListMTOPaymentRequestsInternalServerError{}
-}
-
-/*
-ListMTOPaymentRequestsInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type ListMTOPaymentRequestsInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this list m t o payment requests internal server error response has a 2xx status code
-func (o *ListMTOPaymentRequestsInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this list m t o payment requests internal server error response has a 3xx status code
-func (o *ListMTOPaymentRequestsInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this list m t o payment requests internal server error response has a 4xx status code
-func (o *ListMTOPaymentRequestsInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this list m t o payment requests internal server error response has a 5xx status code
-func (o *ListMTOPaymentRequestsInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this list m t o payment requests internal server error response a status code equal to that given
-func (o *ListMTOPaymentRequestsInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the list m t o payment requests internal server error response
-func (o *ListMTOPaymentRequestsInternalServerError) Code() int {
- return 500
-}
-
-func (o *ListMTOPaymentRequestsInternalServerError) Error() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsInternalServerError) String() string {
- return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ListMTOPaymentRequestsInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *ListMTOPaymentRequestsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/payment_request_client.go b/pkg/gen/supportclient/payment_request/payment_request_client.go
deleted file mode 100644
index dae7a0dbbce..00000000000
--- a/pkg/gen/supportclient/payment_request/payment_request_client.go
+++ /dev/null
@@ -1,271 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-)
-
-// New creates a new payment request API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
- return &Client{transport: transport, formats: formats}
-}
-
-/*
-Client for payment request API
-*/
-type Client struct {
- transport runtime.ClientTransport
- formats strfmt.Registry
-}
-
-// ClientOption is the option for Client methods
-type ClientOption func(*runtime.ClientOperation)
-
-// ClientService is the interface for Client methods
-type ClientService interface {
- GetPaymentRequestEDI(params *GetPaymentRequestEDIParams, opts ...ClientOption) (*GetPaymentRequestEDIOK, error)
-
- ListMTOPaymentRequests(params *ListMTOPaymentRequestsParams, opts ...ClientOption) (*ListMTOPaymentRequestsOK, error)
-
- ProcessReviewedPaymentRequests(params *ProcessReviewedPaymentRequestsParams, opts ...ClientOption) (*ProcessReviewedPaymentRequestsOK, error)
-
- RecalculatePaymentRequest(params *RecalculatePaymentRequestParams, opts ...ClientOption) (*RecalculatePaymentRequestCreated, error)
-
- UpdatePaymentRequestStatus(params *UpdatePaymentRequestStatusParams, opts ...ClientOption) (*UpdatePaymentRequestStatusOK, error)
-
- SetTransport(transport runtime.ClientTransport)
-}
-
-/*
- GetPaymentRequestEDI gets payment request e d i
-
- Returns the EDI (Electronic Data Interchange) message for the payment request identified
-
-by the given payment request ID. Note that the EDI returned in the JSON payload will have where there
-would normally be line breaks (due to JSON not allowing line breaks in a string).
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) GetPaymentRequestEDI(params *GetPaymentRequestEDIParams, opts ...ClientOption) (*GetPaymentRequestEDIOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewGetPaymentRequestEDIParams()
- }
- op := &runtime.ClientOperation{
- ID: "getPaymentRequestEDI",
- Method: "GET",
- PathPattern: "/payment-requests/{paymentRequestID}/edi",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &GetPaymentRequestEDIReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*GetPaymentRequestEDIOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for getPaymentRequestEDI: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- ListMTOPaymentRequests lists m t o payment requests
-
- ### Functionality
-
-This endpoint lists all PaymentRequests associated with a given MoveTaskOrder.
-
-This is a support endpoint and is not available in production.
-*/
-func (a *Client) ListMTOPaymentRequests(params *ListMTOPaymentRequestsParams, opts ...ClientOption) (*ListMTOPaymentRequestsOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewListMTOPaymentRequestsParams()
- }
- op := &runtime.ClientOperation{
- ID: "listMTOPaymentRequests",
- Method: "GET",
- PathPattern: "/move-task-orders/{moveTaskOrderID}/payment-requests",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &ListMTOPaymentRequestsReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*ListMTOPaymentRequestsOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for listMTOPaymentRequests: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- ProcessReviewedPaymentRequests processes reviewed payment requests
-
- Updates the status of reviewed payment requests and sends PRs to Syncada if
-
-the SendToSyncada flag is set
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) ProcessReviewedPaymentRequests(params *ProcessReviewedPaymentRequestsParams, opts ...ClientOption) (*ProcessReviewedPaymentRequestsOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewProcessReviewedPaymentRequestsParams()
- }
- op := &runtime.ClientOperation{
- ID: "processReviewedPaymentRequests",
- Method: "PATCH",
- PathPattern: "/payment-requests/process-reviewed",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &ProcessReviewedPaymentRequestsReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*ProcessReviewedPaymentRequestsOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for processReviewedPaymentRequests: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- RecalculatePaymentRequest recalculates payment request
-
- Recalculates an existing pending payment request by creating a new payment request for the same service
-
-items but is priced based on the current inputs (weights, dates, etc.). The previously existing payment
-request is then deprecated. A link is made between the new and existing payment requests.
-
-This is a support endpoint and will not be available in production.
-*/
-func (a *Client) RecalculatePaymentRequest(params *RecalculatePaymentRequestParams, opts ...ClientOption) (*RecalculatePaymentRequestCreated, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewRecalculatePaymentRequestParams()
- }
- op := &runtime.ClientOperation{
- ID: "recalculatePaymentRequest",
- Method: "POST",
- PathPattern: "/payment-requests/{paymentRequestID}/recalculate",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &RecalculatePaymentRequestReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*RecalculatePaymentRequestCreated)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for recalculatePaymentRequest: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
- UpdatePaymentRequestStatus updates payment request status
-
- Updates status of a payment request to REVIEWED, SENT_TO_GEX, TPPS_RECEIVED, REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED, PAID, EDI_ERROR, or DEPRECATED.
-
-A status of REVIEWED can optionally have a `rejectionReason`.
-
-This is a support endpoint and is not available in production.
-*/
-func (a *Client) UpdatePaymentRequestStatus(params *UpdatePaymentRequestStatusParams, opts ...ClientOption) (*UpdatePaymentRequestStatusOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewUpdatePaymentRequestStatusParams()
- }
- op := &runtime.ClientOperation{
- ID: "updatePaymentRequestStatus",
- Method: "PATCH",
- PathPattern: "/payment-requests/{paymentRequestID}/status",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &UpdatePaymentRequestStatusReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*UpdatePaymentRequestStatusOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for updatePaymentRequestStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-// SetTransport changes the transport on the client
-func (a *Client) SetTransport(transport runtime.ClientTransport) {
- a.transport = transport
-}
diff --git a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go
deleted file mode 100644
index 9323038f443..00000000000
--- a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go
+++ /dev/null
@@ -1,150 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewProcessReviewedPaymentRequestsParams creates a new ProcessReviewedPaymentRequestsParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewProcessReviewedPaymentRequestsParams() *ProcessReviewedPaymentRequestsParams {
- return &ProcessReviewedPaymentRequestsParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewProcessReviewedPaymentRequestsParamsWithTimeout creates a new ProcessReviewedPaymentRequestsParams object
-// with the ability to set a timeout on a request.
-func NewProcessReviewedPaymentRequestsParamsWithTimeout(timeout time.Duration) *ProcessReviewedPaymentRequestsParams {
- return &ProcessReviewedPaymentRequestsParams{
- timeout: timeout,
- }
-}
-
-// NewProcessReviewedPaymentRequestsParamsWithContext creates a new ProcessReviewedPaymentRequestsParams object
-// with the ability to set a context for a request.
-func NewProcessReviewedPaymentRequestsParamsWithContext(ctx context.Context) *ProcessReviewedPaymentRequestsParams {
- return &ProcessReviewedPaymentRequestsParams{
- Context: ctx,
- }
-}
-
-// NewProcessReviewedPaymentRequestsParamsWithHTTPClient creates a new ProcessReviewedPaymentRequestsParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewProcessReviewedPaymentRequestsParamsWithHTTPClient(client *http.Client) *ProcessReviewedPaymentRequestsParams {
- return &ProcessReviewedPaymentRequestsParams{
- HTTPClient: client,
- }
-}
-
-/*
-ProcessReviewedPaymentRequestsParams contains all the parameters to send to the API endpoint
-
- for the process reviewed payment requests operation.
-
- Typically these are written to a http.Request.
-*/
-type ProcessReviewedPaymentRequestsParams struct {
-
- // Body.
- Body *supportmessages.ProcessReviewedPaymentRequests
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the process reviewed payment requests params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ProcessReviewedPaymentRequestsParams) WithDefaults() *ProcessReviewedPaymentRequestsParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the process reviewed payment requests params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ProcessReviewedPaymentRequestsParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) WithTimeout(timeout time.Duration) *ProcessReviewedPaymentRequestsParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) WithContext(ctx context.Context) *ProcessReviewedPaymentRequestsParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) WithHTTPClient(client *http.Client) *ProcessReviewedPaymentRequestsParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithBody adds the body to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) WithBody(body *supportmessages.ProcessReviewedPaymentRequests) *ProcessReviewedPaymentRequestsParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the process reviewed payment requests params
-func (o *ProcessReviewedPaymentRequestsParams) SetBody(body *supportmessages.ProcessReviewedPaymentRequests) {
- o.Body = body
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *ProcessReviewedPaymentRequestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go
deleted file mode 100644
index e853c7905ef..00000000000
--- a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go
+++ /dev/null
@@ -1,545 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ProcessReviewedPaymentRequestsReader is a Reader for the ProcessReviewedPaymentRequests structure.
-type ProcessReviewedPaymentRequestsReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *ProcessReviewedPaymentRequestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewProcessReviewedPaymentRequestsOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewProcessReviewedPaymentRequestsBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewProcessReviewedPaymentRequestsUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewProcessReviewedPaymentRequestsForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewProcessReviewedPaymentRequestsNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewProcessReviewedPaymentRequestsUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewProcessReviewedPaymentRequestsInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /payment-requests/process-reviewed] processReviewedPaymentRequests", response, response.Code())
- }
-}
-
-// NewProcessReviewedPaymentRequestsOK creates a ProcessReviewedPaymentRequestsOK with default headers values
-func NewProcessReviewedPaymentRequestsOK() *ProcessReviewedPaymentRequestsOK {
- return &ProcessReviewedPaymentRequestsOK{}
-}
-
-/*
-ProcessReviewedPaymentRequestsOK describes a response with status code 200, with default header values.
-
-Successfully updated status of reviewed payment request and sent to Syncada if that flag is set
-*/
-type ProcessReviewedPaymentRequestsOK struct {
- Payload supportmessages.PaymentRequests
-}
-
-// IsSuccess returns true when this process reviewed payment requests o k response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this process reviewed payment requests o k response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests o k response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this process reviewed payment requests o k response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests o k response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the process reviewed payment requests o k response
-func (o *ProcessReviewedPaymentRequestsOK) Code() int {
- return 200
-}
-
-func (o *ProcessReviewedPaymentRequestsOK) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsOK %+v", 200, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsOK) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsOK %+v", 200, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsOK) GetPayload() supportmessages.PaymentRequests {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- // response payload
- if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsBadRequest creates a ProcessReviewedPaymentRequestsBadRequest with default headers values
-func NewProcessReviewedPaymentRequestsBadRequest() *ProcessReviewedPaymentRequestsBadRequest {
- return &ProcessReviewedPaymentRequestsBadRequest{}
-}
-
-/*
-ProcessReviewedPaymentRequestsBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type ProcessReviewedPaymentRequestsBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this process reviewed payment requests bad request response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests bad request response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests bad request response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this process reviewed payment requests bad request response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests bad request response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the process reviewed payment requests bad request response
-func (o *ProcessReviewedPaymentRequestsBadRequest) Code() int {
- return 400
-}
-
-func (o *ProcessReviewedPaymentRequestsBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsBadRequest) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsUnauthorized creates a ProcessReviewedPaymentRequestsUnauthorized with default headers values
-func NewProcessReviewedPaymentRequestsUnauthorized() *ProcessReviewedPaymentRequestsUnauthorized {
- return &ProcessReviewedPaymentRequestsUnauthorized{}
-}
-
-/*
-ProcessReviewedPaymentRequestsUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type ProcessReviewedPaymentRequestsUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this process reviewed payment requests unauthorized response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests unauthorized response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests unauthorized response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this process reviewed payment requests unauthorized response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests unauthorized response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the process reviewed payment requests unauthorized response
-func (o *ProcessReviewedPaymentRequestsUnauthorized) Code() int {
- return 401
-}
-
-func (o *ProcessReviewedPaymentRequestsUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsForbidden creates a ProcessReviewedPaymentRequestsForbidden with default headers values
-func NewProcessReviewedPaymentRequestsForbidden() *ProcessReviewedPaymentRequestsForbidden {
- return &ProcessReviewedPaymentRequestsForbidden{}
-}
-
-/*
-ProcessReviewedPaymentRequestsForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type ProcessReviewedPaymentRequestsForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this process reviewed payment requests forbidden response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests forbidden response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests forbidden response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this process reviewed payment requests forbidden response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests forbidden response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the process reviewed payment requests forbidden response
-func (o *ProcessReviewedPaymentRequestsForbidden) Code() int {
- return 403
-}
-
-func (o *ProcessReviewedPaymentRequestsForbidden) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsForbidden) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsForbidden %+v", 403, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsNotFound creates a ProcessReviewedPaymentRequestsNotFound with default headers values
-func NewProcessReviewedPaymentRequestsNotFound() *ProcessReviewedPaymentRequestsNotFound {
- return &ProcessReviewedPaymentRequestsNotFound{}
-}
-
-/*
-ProcessReviewedPaymentRequestsNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type ProcessReviewedPaymentRequestsNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this process reviewed payment requests not found response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests not found response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests not found response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this process reviewed payment requests not found response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests not found response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the process reviewed payment requests not found response
-func (o *ProcessReviewedPaymentRequestsNotFound) Code() int {
- return 404
-}
-
-func (o *ProcessReviewedPaymentRequestsNotFound) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsNotFound) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsNotFound %+v", 404, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsUnprocessableEntity creates a ProcessReviewedPaymentRequestsUnprocessableEntity with default headers values
-func NewProcessReviewedPaymentRequestsUnprocessableEntity() *ProcessReviewedPaymentRequestsUnprocessableEntity {
- return &ProcessReviewedPaymentRequestsUnprocessableEntity{}
-}
-
-/*
-ProcessReviewedPaymentRequestsUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type ProcessReviewedPaymentRequestsUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this process reviewed payment requests unprocessable entity response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests unprocessable entity response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests unprocessable entity response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this process reviewed payment requests unprocessable entity response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this process reviewed payment requests unprocessable entity response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the process reviewed payment requests unprocessable entity response
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewProcessReviewedPaymentRequestsInternalServerError creates a ProcessReviewedPaymentRequestsInternalServerError with default headers values
-func NewProcessReviewedPaymentRequestsInternalServerError() *ProcessReviewedPaymentRequestsInternalServerError {
- return &ProcessReviewedPaymentRequestsInternalServerError{}
-}
-
-/*
-ProcessReviewedPaymentRequestsInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type ProcessReviewedPaymentRequestsInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this process reviewed payment requests internal server error response has a 2xx status code
-func (o *ProcessReviewedPaymentRequestsInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this process reviewed payment requests internal server error response has a 3xx status code
-func (o *ProcessReviewedPaymentRequestsInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this process reviewed payment requests internal server error response has a 4xx status code
-func (o *ProcessReviewedPaymentRequestsInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this process reviewed payment requests internal server error response has a 5xx status code
-func (o *ProcessReviewedPaymentRequestsInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this process reviewed payment requests internal server error response a status code equal to that given
-func (o *ProcessReviewedPaymentRequestsInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the process reviewed payment requests internal server error response
-func (o *ProcessReviewedPaymentRequestsInternalServerError) Code() int {
- return 500
-}
-
-func (o *ProcessReviewedPaymentRequestsInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ProcessReviewedPaymentRequestsInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *ProcessReviewedPaymentRequestsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go b/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go
deleted file mode 100644
index a6660aa968f..00000000000
--- a/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go
+++ /dev/null
@@ -1,153 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-)
-
-// NewRecalculatePaymentRequestParams creates a new RecalculatePaymentRequestParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewRecalculatePaymentRequestParams() *RecalculatePaymentRequestParams {
- return &RecalculatePaymentRequestParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewRecalculatePaymentRequestParamsWithTimeout creates a new RecalculatePaymentRequestParams object
-// with the ability to set a timeout on a request.
-func NewRecalculatePaymentRequestParamsWithTimeout(timeout time.Duration) *RecalculatePaymentRequestParams {
- return &RecalculatePaymentRequestParams{
- timeout: timeout,
- }
-}
-
-// NewRecalculatePaymentRequestParamsWithContext creates a new RecalculatePaymentRequestParams object
-// with the ability to set a context for a request.
-func NewRecalculatePaymentRequestParamsWithContext(ctx context.Context) *RecalculatePaymentRequestParams {
- return &RecalculatePaymentRequestParams{
- Context: ctx,
- }
-}
-
-// NewRecalculatePaymentRequestParamsWithHTTPClient creates a new RecalculatePaymentRequestParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewRecalculatePaymentRequestParamsWithHTTPClient(client *http.Client) *RecalculatePaymentRequestParams {
- return &RecalculatePaymentRequestParams{
- HTTPClient: client,
- }
-}
-
-/*
-RecalculatePaymentRequestParams contains all the parameters to send to the API endpoint
-
- for the recalculate payment request operation.
-
- Typically these are written to a http.Request.
-*/
-type RecalculatePaymentRequestParams struct {
-
- /* PaymentRequestID.
-
- UUID of the payment request to recalculate.
-
- Format: uuid
- */
- PaymentRequestID strfmt.UUID
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the recalculate payment request params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *RecalculatePaymentRequestParams) WithDefaults() *RecalculatePaymentRequestParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the recalculate payment request params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *RecalculatePaymentRequestParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) WithTimeout(timeout time.Duration) *RecalculatePaymentRequestParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) WithContext(ctx context.Context) *RecalculatePaymentRequestParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) WithHTTPClient(client *http.Client) *RecalculatePaymentRequestParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithPaymentRequestID adds the paymentRequestID to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *RecalculatePaymentRequestParams {
- o.SetPaymentRequestID(paymentRequestID)
- return o
-}
-
-// SetPaymentRequestID adds the paymentRequestId to the recalculate payment request params
-func (o *RecalculatePaymentRequestParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
- o.PaymentRequestID = paymentRequestID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *RecalculatePaymentRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // path param paymentRequestID
- if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go b/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go
deleted file mode 100644
index b604df58365..00000000000
--- a/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go
+++ /dev/null
@@ -1,695 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// RecalculatePaymentRequestReader is a Reader for the RecalculatePaymentRequest structure.
-type RecalculatePaymentRequestReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *RecalculatePaymentRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 201:
- result := NewRecalculatePaymentRequestCreated()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewRecalculatePaymentRequestBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewRecalculatePaymentRequestUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewRecalculatePaymentRequestForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewRecalculatePaymentRequestNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewRecalculatePaymentRequestConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewRecalculatePaymentRequestPreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewRecalculatePaymentRequestUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewRecalculatePaymentRequestInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[POST /payment-requests/{paymentRequestID}/recalculate] recalculatePaymentRequest", response, response.Code())
- }
-}
-
-// NewRecalculatePaymentRequestCreated creates a RecalculatePaymentRequestCreated with default headers values
-func NewRecalculatePaymentRequestCreated() *RecalculatePaymentRequestCreated {
- return &RecalculatePaymentRequestCreated{}
-}
-
-/*
-RecalculatePaymentRequestCreated describes a response with status code 201, with default header values.
-
-The new payment request with recalculated pricing.
-*/
-type RecalculatePaymentRequestCreated struct {
- Payload *supportmessages.PaymentRequest
-}
-
-// IsSuccess returns true when this recalculate payment request created response has a 2xx status code
-func (o *RecalculatePaymentRequestCreated) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this recalculate payment request created response has a 3xx status code
-func (o *RecalculatePaymentRequestCreated) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request created response has a 4xx status code
-func (o *RecalculatePaymentRequestCreated) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this recalculate payment request created response has a 5xx status code
-func (o *RecalculatePaymentRequestCreated) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request created response a status code equal to that given
-func (o *RecalculatePaymentRequestCreated) IsCode(code int) bool {
- return code == 201
-}
-
-// Code gets the status code for the recalculate payment request created response
-func (o *RecalculatePaymentRequestCreated) Code() int {
- return 201
-}
-
-func (o *RecalculatePaymentRequestCreated) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestCreated %+v", 201, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestCreated) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestCreated %+v", 201, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestCreated) GetPayload() *supportmessages.PaymentRequest {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.PaymentRequest)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestBadRequest creates a RecalculatePaymentRequestBadRequest with default headers values
-func NewRecalculatePaymentRequestBadRequest() *RecalculatePaymentRequestBadRequest {
- return &RecalculatePaymentRequestBadRequest{}
-}
-
-/*
-RecalculatePaymentRequestBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type RecalculatePaymentRequestBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request bad request response has a 2xx status code
-func (o *RecalculatePaymentRequestBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request bad request response has a 3xx status code
-func (o *RecalculatePaymentRequestBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request bad request response has a 4xx status code
-func (o *RecalculatePaymentRequestBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request bad request response has a 5xx status code
-func (o *RecalculatePaymentRequestBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request bad request response a status code equal to that given
-func (o *RecalculatePaymentRequestBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the recalculate payment request bad request response
-func (o *RecalculatePaymentRequestBadRequest) Code() int {
- return 400
-}
-
-func (o *RecalculatePaymentRequestBadRequest) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestBadRequest %+v", 400, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestBadRequest) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestBadRequest %+v", 400, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestUnauthorized creates a RecalculatePaymentRequestUnauthorized with default headers values
-func NewRecalculatePaymentRequestUnauthorized() *RecalculatePaymentRequestUnauthorized {
- return &RecalculatePaymentRequestUnauthorized{}
-}
-
-/*
-RecalculatePaymentRequestUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type RecalculatePaymentRequestUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request unauthorized response has a 2xx status code
-func (o *RecalculatePaymentRequestUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request unauthorized response has a 3xx status code
-func (o *RecalculatePaymentRequestUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request unauthorized response has a 4xx status code
-func (o *RecalculatePaymentRequestUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request unauthorized response has a 5xx status code
-func (o *RecalculatePaymentRequestUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request unauthorized response a status code equal to that given
-func (o *RecalculatePaymentRequestUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the recalculate payment request unauthorized response
-func (o *RecalculatePaymentRequestUnauthorized) Code() int {
- return 401
-}
-
-func (o *RecalculatePaymentRequestUnauthorized) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestUnauthorized) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestForbidden creates a RecalculatePaymentRequestForbidden with default headers values
-func NewRecalculatePaymentRequestForbidden() *RecalculatePaymentRequestForbidden {
- return &RecalculatePaymentRequestForbidden{}
-}
-
-/*
-RecalculatePaymentRequestForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type RecalculatePaymentRequestForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request forbidden response has a 2xx status code
-func (o *RecalculatePaymentRequestForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request forbidden response has a 3xx status code
-func (o *RecalculatePaymentRequestForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request forbidden response has a 4xx status code
-func (o *RecalculatePaymentRequestForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request forbidden response has a 5xx status code
-func (o *RecalculatePaymentRequestForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request forbidden response a status code equal to that given
-func (o *RecalculatePaymentRequestForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the recalculate payment request forbidden response
-func (o *RecalculatePaymentRequestForbidden) Code() int {
- return 403
-}
-
-func (o *RecalculatePaymentRequestForbidden) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestForbidden %+v", 403, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestForbidden) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestForbidden %+v", 403, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestNotFound creates a RecalculatePaymentRequestNotFound with default headers values
-func NewRecalculatePaymentRequestNotFound() *RecalculatePaymentRequestNotFound {
- return &RecalculatePaymentRequestNotFound{}
-}
-
-/*
-RecalculatePaymentRequestNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type RecalculatePaymentRequestNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request not found response has a 2xx status code
-func (o *RecalculatePaymentRequestNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request not found response has a 3xx status code
-func (o *RecalculatePaymentRequestNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request not found response has a 4xx status code
-func (o *RecalculatePaymentRequestNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request not found response has a 5xx status code
-func (o *RecalculatePaymentRequestNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request not found response a status code equal to that given
-func (o *RecalculatePaymentRequestNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the recalculate payment request not found response
-func (o *RecalculatePaymentRequestNotFound) Code() int {
- return 404
-}
-
-func (o *RecalculatePaymentRequestNotFound) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestNotFound %+v", 404, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestNotFound) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestNotFound %+v", 404, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestConflict creates a RecalculatePaymentRequestConflict with default headers values
-func NewRecalculatePaymentRequestConflict() *RecalculatePaymentRequestConflict {
- return &RecalculatePaymentRequestConflict{}
-}
-
-/*
-RecalculatePaymentRequestConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type RecalculatePaymentRequestConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request conflict response has a 2xx status code
-func (o *RecalculatePaymentRequestConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request conflict response has a 3xx status code
-func (o *RecalculatePaymentRequestConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request conflict response has a 4xx status code
-func (o *RecalculatePaymentRequestConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request conflict response has a 5xx status code
-func (o *RecalculatePaymentRequestConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request conflict response a status code equal to that given
-func (o *RecalculatePaymentRequestConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the recalculate payment request conflict response
-func (o *RecalculatePaymentRequestConflict) Code() int {
- return 409
-}
-
-func (o *RecalculatePaymentRequestConflict) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestConflict %+v", 409, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestConflict) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestConflict %+v", 409, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestPreconditionFailed creates a RecalculatePaymentRequestPreconditionFailed with default headers values
-func NewRecalculatePaymentRequestPreconditionFailed() *RecalculatePaymentRequestPreconditionFailed {
- return &RecalculatePaymentRequestPreconditionFailed{}
-}
-
-/*
-RecalculatePaymentRequestPreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type RecalculatePaymentRequestPreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this recalculate payment request precondition failed response has a 2xx status code
-func (o *RecalculatePaymentRequestPreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request precondition failed response has a 3xx status code
-func (o *RecalculatePaymentRequestPreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request precondition failed response has a 4xx status code
-func (o *RecalculatePaymentRequestPreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request precondition failed response has a 5xx status code
-func (o *RecalculatePaymentRequestPreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request precondition failed response a status code equal to that given
-func (o *RecalculatePaymentRequestPreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the recalculate payment request precondition failed response
-func (o *RecalculatePaymentRequestPreconditionFailed) Code() int {
- return 412
-}
-
-func (o *RecalculatePaymentRequestPreconditionFailed) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestPreconditionFailed) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestPreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestUnprocessableEntity creates a RecalculatePaymentRequestUnprocessableEntity with default headers values
-func NewRecalculatePaymentRequestUnprocessableEntity() *RecalculatePaymentRequestUnprocessableEntity {
- return &RecalculatePaymentRequestUnprocessableEntity{}
-}
-
-/*
-RecalculatePaymentRequestUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type RecalculatePaymentRequestUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this recalculate payment request unprocessable entity response has a 2xx status code
-func (o *RecalculatePaymentRequestUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request unprocessable entity response has a 3xx status code
-func (o *RecalculatePaymentRequestUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request unprocessable entity response has a 4xx status code
-func (o *RecalculatePaymentRequestUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this recalculate payment request unprocessable entity response has a 5xx status code
-func (o *RecalculatePaymentRequestUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this recalculate payment request unprocessable entity response a status code equal to that given
-func (o *RecalculatePaymentRequestUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the recalculate payment request unprocessable entity response
-func (o *RecalculatePaymentRequestUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *RecalculatePaymentRequestUnprocessableEntity) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestUnprocessableEntity) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewRecalculatePaymentRequestInternalServerError creates a RecalculatePaymentRequestInternalServerError with default headers values
-func NewRecalculatePaymentRequestInternalServerError() *RecalculatePaymentRequestInternalServerError {
- return &RecalculatePaymentRequestInternalServerError{}
-}
-
-/*
-RecalculatePaymentRequestInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type RecalculatePaymentRequestInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this recalculate payment request internal server error response has a 2xx status code
-func (o *RecalculatePaymentRequestInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this recalculate payment request internal server error response has a 3xx status code
-func (o *RecalculatePaymentRequestInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this recalculate payment request internal server error response has a 4xx status code
-func (o *RecalculatePaymentRequestInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this recalculate payment request internal server error response has a 5xx status code
-func (o *RecalculatePaymentRequestInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this recalculate payment request internal server error response a status code equal to that given
-func (o *RecalculatePaymentRequestInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the recalculate payment request internal server error response
-func (o *RecalculatePaymentRequestInternalServerError) Code() int {
- return 500
-}
-
-func (o *RecalculatePaymentRequestInternalServerError) Error() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestInternalServerError) String() string {
- return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *RecalculatePaymentRequestInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *RecalculatePaymentRequestInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go b/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go
deleted file mode 100644
index 0f91c418a23..00000000000
--- a/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go
+++ /dev/null
@@ -1,197 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewUpdatePaymentRequestStatusParams creates a new UpdatePaymentRequestStatusParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewUpdatePaymentRequestStatusParams() *UpdatePaymentRequestStatusParams {
- return &UpdatePaymentRequestStatusParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewUpdatePaymentRequestStatusParamsWithTimeout creates a new UpdatePaymentRequestStatusParams object
-// with the ability to set a timeout on a request.
-func NewUpdatePaymentRequestStatusParamsWithTimeout(timeout time.Duration) *UpdatePaymentRequestStatusParams {
- return &UpdatePaymentRequestStatusParams{
- timeout: timeout,
- }
-}
-
-// NewUpdatePaymentRequestStatusParamsWithContext creates a new UpdatePaymentRequestStatusParams object
-// with the ability to set a context for a request.
-func NewUpdatePaymentRequestStatusParamsWithContext(ctx context.Context) *UpdatePaymentRequestStatusParams {
- return &UpdatePaymentRequestStatusParams{
- Context: ctx,
- }
-}
-
-// NewUpdatePaymentRequestStatusParamsWithHTTPClient creates a new UpdatePaymentRequestStatusParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewUpdatePaymentRequestStatusParamsWithHTTPClient(client *http.Client) *UpdatePaymentRequestStatusParams {
- return &UpdatePaymentRequestStatusParams{
- HTTPClient: client,
- }
-}
-
-/*
-UpdatePaymentRequestStatusParams contains all the parameters to send to the API endpoint
-
- for the update payment request status operation.
-
- Typically these are written to a http.Request.
-*/
-type UpdatePaymentRequestStatusParams struct {
-
- /* IfMatch.
-
- Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
-
- */
- IfMatch string
-
- // Body.
- Body *supportmessages.UpdatePaymentRequestStatus
-
- /* PaymentRequestID.
-
- UUID of payment request.
-
- Format: uuid
- */
- PaymentRequestID strfmt.UUID
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the update payment request status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdatePaymentRequestStatusParams) WithDefaults() *UpdatePaymentRequestStatusParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the update payment request status params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *UpdatePaymentRequestStatusParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithTimeout(timeout time.Duration) *UpdatePaymentRequestStatusParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithContext(ctx context.Context) *UpdatePaymentRequestStatusParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithHTTPClient(client *http.Client) *UpdatePaymentRequestStatusParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithIfMatch adds the ifMatch to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithIfMatch(ifMatch string) *UpdatePaymentRequestStatusParams {
- o.SetIfMatch(ifMatch)
- return o
-}
-
-// SetIfMatch adds the ifMatch to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetIfMatch(ifMatch string) {
- o.IfMatch = ifMatch
-}
-
-// WithBody adds the body to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithBody(body *supportmessages.UpdatePaymentRequestStatus) *UpdatePaymentRequestStatusParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetBody(body *supportmessages.UpdatePaymentRequestStatus) {
- o.Body = body
-}
-
-// WithPaymentRequestID adds the paymentRequestID to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *UpdatePaymentRequestStatusParams {
- o.SetPaymentRequestID(paymentRequestID)
- return o
-}
-
-// SetPaymentRequestID adds the paymentRequestId to the update payment request status params
-func (o *UpdatePaymentRequestStatusParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
- o.PaymentRequestID = paymentRequestID
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *UpdatePaymentRequestStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
-
- // header param If-Match
- if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
- return err
- }
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- // path param paymentRequestID
- if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go b/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go
deleted file mode 100644
index a6b142179ac..00000000000
--- a/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go
+++ /dev/null
@@ -1,695 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package payment_request
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// UpdatePaymentRequestStatusReader is a Reader for the UpdatePaymentRequestStatus structure.
-type UpdatePaymentRequestStatusReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *UpdatePaymentRequestStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewUpdatePaymentRequestStatusOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewUpdatePaymentRequestStatusBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewUpdatePaymentRequestStatusUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewUpdatePaymentRequestStatusForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 404:
- result := NewUpdatePaymentRequestStatusNotFound()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 409:
- result := NewUpdatePaymentRequestStatusConflict()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 412:
- result := NewUpdatePaymentRequestStatusPreconditionFailed()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 422:
- result := NewUpdatePaymentRequestStatusUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewUpdatePaymentRequestStatusInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[PATCH /payment-requests/{paymentRequestID}/status] updatePaymentRequestStatus", response, response.Code())
- }
-}
-
-// NewUpdatePaymentRequestStatusOK creates a UpdatePaymentRequestStatusOK with default headers values
-func NewUpdatePaymentRequestStatusOK() *UpdatePaymentRequestStatusOK {
- return &UpdatePaymentRequestStatusOK{}
-}
-
-/*
-UpdatePaymentRequestStatusOK describes a response with status code 200, with default header values.
-
-Successfully updated payment request status.
-*/
-type UpdatePaymentRequestStatusOK struct {
- Payload *supportmessages.PaymentRequest
-}
-
-// IsSuccess returns true when this update payment request status o k response has a 2xx status code
-func (o *UpdatePaymentRequestStatusOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this update payment request status o k response has a 3xx status code
-func (o *UpdatePaymentRequestStatusOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status o k response has a 4xx status code
-func (o *UpdatePaymentRequestStatusOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update payment request status o k response has a 5xx status code
-func (o *UpdatePaymentRequestStatusOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status o k response a status code equal to that given
-func (o *UpdatePaymentRequestStatusOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the update payment request status o k response
-func (o *UpdatePaymentRequestStatusOK) Code() int {
- return 200
-}
-
-func (o *UpdatePaymentRequestStatusOK) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusOK) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusOK %+v", 200, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusOK) GetPayload() *supportmessages.PaymentRequest {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.PaymentRequest)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusBadRequest creates a UpdatePaymentRequestStatusBadRequest with default headers values
-func NewUpdatePaymentRequestStatusBadRequest() *UpdatePaymentRequestStatusBadRequest {
- return &UpdatePaymentRequestStatusBadRequest{}
-}
-
-/*
-UpdatePaymentRequestStatusBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type UpdatePaymentRequestStatusBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status bad request response has a 2xx status code
-func (o *UpdatePaymentRequestStatusBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status bad request response has a 3xx status code
-func (o *UpdatePaymentRequestStatusBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status bad request response has a 4xx status code
-func (o *UpdatePaymentRequestStatusBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status bad request response has a 5xx status code
-func (o *UpdatePaymentRequestStatusBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status bad request response a status code equal to that given
-func (o *UpdatePaymentRequestStatusBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the update payment request status bad request response
-func (o *UpdatePaymentRequestStatusBadRequest) Code() int {
- return 400
-}
-
-func (o *UpdatePaymentRequestStatusBadRequest) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusBadRequest) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusBadRequest %+v", 400, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusUnauthorized creates a UpdatePaymentRequestStatusUnauthorized with default headers values
-func NewUpdatePaymentRequestStatusUnauthorized() *UpdatePaymentRequestStatusUnauthorized {
- return &UpdatePaymentRequestStatusUnauthorized{}
-}
-
-/*
-UpdatePaymentRequestStatusUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type UpdatePaymentRequestStatusUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status unauthorized response has a 2xx status code
-func (o *UpdatePaymentRequestStatusUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status unauthorized response has a 3xx status code
-func (o *UpdatePaymentRequestStatusUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status unauthorized response has a 4xx status code
-func (o *UpdatePaymentRequestStatusUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status unauthorized response has a 5xx status code
-func (o *UpdatePaymentRequestStatusUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status unauthorized response a status code equal to that given
-func (o *UpdatePaymentRequestStatusUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the update payment request status unauthorized response
-func (o *UpdatePaymentRequestStatusUnauthorized) Code() int {
- return 401
-}
-
-func (o *UpdatePaymentRequestStatusUnauthorized) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusUnauthorized) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusForbidden creates a UpdatePaymentRequestStatusForbidden with default headers values
-func NewUpdatePaymentRequestStatusForbidden() *UpdatePaymentRequestStatusForbidden {
- return &UpdatePaymentRequestStatusForbidden{}
-}
-
-/*
-UpdatePaymentRequestStatusForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type UpdatePaymentRequestStatusForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status forbidden response has a 2xx status code
-func (o *UpdatePaymentRequestStatusForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status forbidden response has a 3xx status code
-func (o *UpdatePaymentRequestStatusForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status forbidden response has a 4xx status code
-func (o *UpdatePaymentRequestStatusForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status forbidden response has a 5xx status code
-func (o *UpdatePaymentRequestStatusForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status forbidden response a status code equal to that given
-func (o *UpdatePaymentRequestStatusForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the update payment request status forbidden response
-func (o *UpdatePaymentRequestStatusForbidden) Code() int {
- return 403
-}
-
-func (o *UpdatePaymentRequestStatusForbidden) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusForbidden) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusForbidden %+v", 403, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusNotFound creates a UpdatePaymentRequestStatusNotFound with default headers values
-func NewUpdatePaymentRequestStatusNotFound() *UpdatePaymentRequestStatusNotFound {
- return &UpdatePaymentRequestStatusNotFound{}
-}
-
-/*
-UpdatePaymentRequestStatusNotFound describes a response with status code 404, with default header values.
-
-The requested resource wasn't found.
-*/
-type UpdatePaymentRequestStatusNotFound struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status not found response has a 2xx status code
-func (o *UpdatePaymentRequestStatusNotFound) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status not found response has a 3xx status code
-func (o *UpdatePaymentRequestStatusNotFound) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status not found response has a 4xx status code
-func (o *UpdatePaymentRequestStatusNotFound) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status not found response has a 5xx status code
-func (o *UpdatePaymentRequestStatusNotFound) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status not found response a status code equal to that given
-func (o *UpdatePaymentRequestStatusNotFound) IsCode(code int) bool {
- return code == 404
-}
-
-// Code gets the status code for the update payment request status not found response
-func (o *UpdatePaymentRequestStatusNotFound) Code() int {
- return 404
-}
-
-func (o *UpdatePaymentRequestStatusNotFound) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusNotFound) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusNotFound %+v", 404, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusNotFound) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusConflict creates a UpdatePaymentRequestStatusConflict with default headers values
-func NewUpdatePaymentRequestStatusConflict() *UpdatePaymentRequestStatusConflict {
- return &UpdatePaymentRequestStatusConflict{}
-}
-
-/*
-UpdatePaymentRequestStatusConflict describes a response with status code 409, with default header values.
-
-There was a conflict with the request.
-*/
-type UpdatePaymentRequestStatusConflict struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status conflict response has a 2xx status code
-func (o *UpdatePaymentRequestStatusConflict) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status conflict response has a 3xx status code
-func (o *UpdatePaymentRequestStatusConflict) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status conflict response has a 4xx status code
-func (o *UpdatePaymentRequestStatusConflict) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status conflict response has a 5xx status code
-func (o *UpdatePaymentRequestStatusConflict) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status conflict response a status code equal to that given
-func (o *UpdatePaymentRequestStatusConflict) IsCode(code int) bool {
- return code == 409
-}
-
-// Code gets the status code for the update payment request status conflict response
-func (o *UpdatePaymentRequestStatusConflict) Code() int {
- return 409
-}
-
-func (o *UpdatePaymentRequestStatusConflict) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusConflict) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusConflict %+v", 409, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusConflict) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusPreconditionFailed creates a UpdatePaymentRequestStatusPreconditionFailed with default headers values
-func NewUpdatePaymentRequestStatusPreconditionFailed() *UpdatePaymentRequestStatusPreconditionFailed {
- return &UpdatePaymentRequestStatusPreconditionFailed{}
-}
-
-/*
-UpdatePaymentRequestStatusPreconditionFailed describes a response with status code 412, with default header values.
-
-Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
-*/
-type UpdatePaymentRequestStatusPreconditionFailed struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this update payment request status precondition failed response has a 2xx status code
-func (o *UpdatePaymentRequestStatusPreconditionFailed) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status precondition failed response has a 3xx status code
-func (o *UpdatePaymentRequestStatusPreconditionFailed) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status precondition failed response has a 4xx status code
-func (o *UpdatePaymentRequestStatusPreconditionFailed) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status precondition failed response has a 5xx status code
-func (o *UpdatePaymentRequestStatusPreconditionFailed) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status precondition failed response a status code equal to that given
-func (o *UpdatePaymentRequestStatusPreconditionFailed) IsCode(code int) bool {
- return code == 412
-}
-
-// Code gets the status code for the update payment request status precondition failed response
-func (o *UpdatePaymentRequestStatusPreconditionFailed) Code() int {
- return 412
-}
-
-func (o *UpdatePaymentRequestStatusPreconditionFailed) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusPreconditionFailed) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusPreconditionFailed %+v", 412, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusUnprocessableEntity creates a UpdatePaymentRequestStatusUnprocessableEntity with default headers values
-func NewUpdatePaymentRequestStatusUnprocessableEntity() *UpdatePaymentRequestStatusUnprocessableEntity {
- return &UpdatePaymentRequestStatusUnprocessableEntity{}
-}
-
-/*
-UpdatePaymentRequestStatusUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type UpdatePaymentRequestStatusUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this update payment request status unprocessable entity response has a 2xx status code
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status unprocessable entity response has a 3xx status code
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status unprocessable entity response has a 4xx status code
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this update payment request status unprocessable entity response has a 5xx status code
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this update payment request status unprocessable entity response a status code equal to that given
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the update payment request status unprocessable entity response
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewUpdatePaymentRequestStatusInternalServerError creates a UpdatePaymentRequestStatusInternalServerError with default headers values
-func NewUpdatePaymentRequestStatusInternalServerError() *UpdatePaymentRequestStatusInternalServerError {
- return &UpdatePaymentRequestStatusInternalServerError{}
-}
-
-/*
-UpdatePaymentRequestStatusInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type UpdatePaymentRequestStatusInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this update payment request status internal server error response has a 2xx status code
-func (o *UpdatePaymentRequestStatusInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this update payment request status internal server error response has a 3xx status code
-func (o *UpdatePaymentRequestStatusInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this update payment request status internal server error response has a 4xx status code
-func (o *UpdatePaymentRequestStatusInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this update payment request status internal server error response has a 5xx status code
-func (o *UpdatePaymentRequestStatusInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this update payment request status internal server error response a status code equal to that given
-func (o *UpdatePaymentRequestStatusInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the update payment request status internal server error response
-func (o *UpdatePaymentRequestStatusInternalServerError) Code() int {
- return 500
-}
-
-func (o *UpdatePaymentRequestStatusInternalServerError) Error() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusInternalServerError) String() string {
- return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *UpdatePaymentRequestStatusInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *UpdatePaymentRequestStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go b/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go
deleted file mode 100644
index 9b4ee14ea55..00000000000
--- a/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go
+++ /dev/null
@@ -1,153 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewCreateWebhookNotificationParams creates a new CreateWebhookNotificationParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewCreateWebhookNotificationParams() *CreateWebhookNotificationParams {
- return &CreateWebhookNotificationParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewCreateWebhookNotificationParamsWithTimeout creates a new CreateWebhookNotificationParams object
-// with the ability to set a timeout on a request.
-func NewCreateWebhookNotificationParamsWithTimeout(timeout time.Duration) *CreateWebhookNotificationParams {
- return &CreateWebhookNotificationParams{
- timeout: timeout,
- }
-}
-
-// NewCreateWebhookNotificationParamsWithContext creates a new CreateWebhookNotificationParams object
-// with the ability to set a context for a request.
-func NewCreateWebhookNotificationParamsWithContext(ctx context.Context) *CreateWebhookNotificationParams {
- return &CreateWebhookNotificationParams{
- Context: ctx,
- }
-}
-
-// NewCreateWebhookNotificationParamsWithHTTPClient creates a new CreateWebhookNotificationParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewCreateWebhookNotificationParamsWithHTTPClient(client *http.Client) *CreateWebhookNotificationParams {
- return &CreateWebhookNotificationParams{
- HTTPClient: client,
- }
-}
-
-/*
-CreateWebhookNotificationParams contains all the parameters to send to the API endpoint
-
- for the create webhook notification operation.
-
- Typically these are written to a http.Request.
-*/
-type CreateWebhookNotificationParams struct {
-
- /* Body.
-
- The notification sent by webhook-client.
- */
- Body *supportmessages.WebhookNotification
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the create webhook notification params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *CreateWebhookNotificationParams) WithDefaults() *CreateWebhookNotificationParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the create webhook notification params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *CreateWebhookNotificationParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the create webhook notification params
-func (o *CreateWebhookNotificationParams) WithTimeout(timeout time.Duration) *CreateWebhookNotificationParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the create webhook notification params
-func (o *CreateWebhookNotificationParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the create webhook notification params
-func (o *CreateWebhookNotificationParams) WithContext(ctx context.Context) *CreateWebhookNotificationParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the create webhook notification params
-func (o *CreateWebhookNotificationParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the create webhook notification params
-func (o *CreateWebhookNotificationParams) WithHTTPClient(client *http.Client) *CreateWebhookNotificationParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the create webhook notification params
-func (o *CreateWebhookNotificationParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithBody adds the body to the create webhook notification params
-func (o *CreateWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *CreateWebhookNotificationParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the create webhook notification params
-func (o *CreateWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification) {
- o.Body = body
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *CreateWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go b/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go
deleted file mode 100644
index c12b9427076..00000000000
--- a/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go
+++ /dev/null
@@ -1,251 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// CreateWebhookNotificationReader is a Reader for the CreateWebhookNotification structure.
-type CreateWebhookNotificationReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *CreateWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 201:
- result := NewCreateWebhookNotificationCreated()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 422:
- result := NewCreateWebhookNotificationUnprocessableEntity()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewCreateWebhookNotificationInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[POST /webhook-notifications] createWebhookNotification", response, response.Code())
- }
-}
-
-// NewCreateWebhookNotificationCreated creates a CreateWebhookNotificationCreated with default headers values
-func NewCreateWebhookNotificationCreated() *CreateWebhookNotificationCreated {
- return &CreateWebhookNotificationCreated{}
-}
-
-/*
-CreateWebhookNotificationCreated describes a response with status code 201, with default header values.
-
-Successful creation
-*/
-type CreateWebhookNotificationCreated struct {
- Payload *supportmessages.WebhookNotification
-}
-
-// IsSuccess returns true when this create webhook notification created response has a 2xx status code
-func (o *CreateWebhookNotificationCreated) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this create webhook notification created response has a 3xx status code
-func (o *CreateWebhookNotificationCreated) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create webhook notification created response has a 4xx status code
-func (o *CreateWebhookNotificationCreated) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this create webhook notification created response has a 5xx status code
-func (o *CreateWebhookNotificationCreated) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create webhook notification created response a status code equal to that given
-func (o *CreateWebhookNotificationCreated) IsCode(code int) bool {
- return code == 201
-}
-
-// Code gets the status code for the create webhook notification created response
-func (o *CreateWebhookNotificationCreated) Code() int {
- return 201
-}
-
-func (o *CreateWebhookNotificationCreated) Error() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationCreated %+v", 201, o.Payload)
-}
-
-func (o *CreateWebhookNotificationCreated) String() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationCreated %+v", 201, o.Payload)
-}
-
-func (o *CreateWebhookNotificationCreated) GetPayload() *supportmessages.WebhookNotification {
- return o.Payload
-}
-
-func (o *CreateWebhookNotificationCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.WebhookNotification)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateWebhookNotificationUnprocessableEntity creates a CreateWebhookNotificationUnprocessableEntity with default headers values
-func NewCreateWebhookNotificationUnprocessableEntity() *CreateWebhookNotificationUnprocessableEntity {
- return &CreateWebhookNotificationUnprocessableEntity{}
-}
-
-/*
-CreateWebhookNotificationUnprocessableEntity describes a response with status code 422, with default header values.
-
-The payload was unprocessable.
-*/
-type CreateWebhookNotificationUnprocessableEntity struct {
- Payload *supportmessages.ValidationError
-}
-
-// IsSuccess returns true when this create webhook notification unprocessable entity response has a 2xx status code
-func (o *CreateWebhookNotificationUnprocessableEntity) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create webhook notification unprocessable entity response has a 3xx status code
-func (o *CreateWebhookNotificationUnprocessableEntity) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create webhook notification unprocessable entity response has a 4xx status code
-func (o *CreateWebhookNotificationUnprocessableEntity) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this create webhook notification unprocessable entity response has a 5xx status code
-func (o *CreateWebhookNotificationUnprocessableEntity) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this create webhook notification unprocessable entity response a status code equal to that given
-func (o *CreateWebhookNotificationUnprocessableEntity) IsCode(code int) bool {
- return code == 422
-}
-
-// Code gets the status code for the create webhook notification unprocessable entity response
-func (o *CreateWebhookNotificationUnprocessableEntity) Code() int {
- return 422
-}
-
-func (o *CreateWebhookNotificationUnprocessableEntity) Error() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *CreateWebhookNotificationUnprocessableEntity) String() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationUnprocessableEntity %+v", 422, o.Payload)
-}
-
-func (o *CreateWebhookNotificationUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
- return o.Payload
-}
-
-func (o *CreateWebhookNotificationUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ValidationError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewCreateWebhookNotificationInternalServerError creates a CreateWebhookNotificationInternalServerError with default headers values
-func NewCreateWebhookNotificationInternalServerError() *CreateWebhookNotificationInternalServerError {
- return &CreateWebhookNotificationInternalServerError{}
-}
-
-/*
-CreateWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type CreateWebhookNotificationInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this create webhook notification internal server error response has a 2xx status code
-func (o *CreateWebhookNotificationInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this create webhook notification internal server error response has a 3xx status code
-func (o *CreateWebhookNotificationInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this create webhook notification internal server error response has a 4xx status code
-func (o *CreateWebhookNotificationInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this create webhook notification internal server error response has a 5xx status code
-func (o *CreateWebhookNotificationInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this create webhook notification internal server error response a status code equal to that given
-func (o *CreateWebhookNotificationInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the create webhook notification internal server error response
-func (o *CreateWebhookNotificationInternalServerError) Code() int {
- return 500
-}
-
-func (o *CreateWebhookNotificationInternalServerError) Error() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *CreateWebhookNotificationInternalServerError) String() string {
- return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *CreateWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *CreateWebhookNotificationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go b/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go
deleted file mode 100644
index f42c1ff0445..00000000000
--- a/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go
+++ /dev/null
@@ -1,153 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "net/http"
- "time"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/runtime"
- cr "github.com/go-openapi/runtime/client"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// NewReceiveWebhookNotificationParams creates a new ReceiveWebhookNotificationParams object,
-// with the default timeout for this client.
-//
-// Default values are not hydrated, since defaults are normally applied by the API server side.
-//
-// To enforce default values in parameter, use SetDefaults or WithDefaults.
-func NewReceiveWebhookNotificationParams() *ReceiveWebhookNotificationParams {
- return &ReceiveWebhookNotificationParams{
- timeout: cr.DefaultTimeout,
- }
-}
-
-// NewReceiveWebhookNotificationParamsWithTimeout creates a new ReceiveWebhookNotificationParams object
-// with the ability to set a timeout on a request.
-func NewReceiveWebhookNotificationParamsWithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams {
- return &ReceiveWebhookNotificationParams{
- timeout: timeout,
- }
-}
-
-// NewReceiveWebhookNotificationParamsWithContext creates a new ReceiveWebhookNotificationParams object
-// with the ability to set a context for a request.
-func NewReceiveWebhookNotificationParamsWithContext(ctx context.Context) *ReceiveWebhookNotificationParams {
- return &ReceiveWebhookNotificationParams{
- Context: ctx,
- }
-}
-
-// NewReceiveWebhookNotificationParamsWithHTTPClient creates a new ReceiveWebhookNotificationParams object
-// with the ability to set a custom HTTPClient for a request.
-func NewReceiveWebhookNotificationParamsWithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams {
- return &ReceiveWebhookNotificationParams{
- HTTPClient: client,
- }
-}
-
-/*
-ReceiveWebhookNotificationParams contains all the parameters to send to the API endpoint
-
- for the receive webhook notification operation.
-
- Typically these are written to a http.Request.
-*/
-type ReceiveWebhookNotificationParams struct {
-
- /* Body.
-
- The webhook notification being sent
- */
- Body *supportmessages.WebhookNotification
-
- timeout time.Duration
- Context context.Context
- HTTPClient *http.Client
-}
-
-// WithDefaults hydrates default values in the receive webhook notification params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ReceiveWebhookNotificationParams) WithDefaults() *ReceiveWebhookNotificationParams {
- o.SetDefaults()
- return o
-}
-
-// SetDefaults hydrates default values in the receive webhook notification params (not the query body).
-//
-// All values with no default are reset to their zero value.
-func (o *ReceiveWebhookNotificationParams) SetDefaults() {
- // no default values defined for this parameter
-}
-
-// WithTimeout adds the timeout to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) WithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams {
- o.SetTimeout(timeout)
- return o
-}
-
-// SetTimeout adds the timeout to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) SetTimeout(timeout time.Duration) {
- o.timeout = timeout
-}
-
-// WithContext adds the context to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) WithContext(ctx context.Context) *ReceiveWebhookNotificationParams {
- o.SetContext(ctx)
- return o
-}
-
-// SetContext adds the context to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) SetContext(ctx context.Context) {
- o.Context = ctx
-}
-
-// WithHTTPClient adds the HTTPClient to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) WithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams {
- o.SetHTTPClient(client)
- return o
-}
-
-// SetHTTPClient adds the HTTPClient to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) SetHTTPClient(client *http.Client) {
- o.HTTPClient = client
-}
-
-// WithBody adds the body to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *ReceiveWebhookNotificationParams {
- o.SetBody(body)
- return o
-}
-
-// SetBody adds the body to the receive webhook notification params
-func (o *ReceiveWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification) {
- o.Body = body
-}
-
-// WriteToRequest writes these params to a swagger request
-func (o *ReceiveWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
-
- if err := r.SetTimeout(o.timeout); err != nil {
- return err
- }
- var res []error
- if o.Body != nil {
- if err := r.SetBodyParam(o.Body); err != nil {
- return err
- }
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go b/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go
deleted file mode 100644
index ad7f5cadcb3..00000000000
--- a/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go
+++ /dev/null
@@ -1,399 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
- "io"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-
- "github.com/transcom/mymove/pkg/gen/supportmessages"
-)
-
-// ReceiveWebhookNotificationReader is a Reader for the ReceiveWebhookNotification structure.
-type ReceiveWebhookNotificationReader struct {
- formats strfmt.Registry
-}
-
-// ReadResponse reads a server response into the received o.
-func (o *ReceiveWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
- switch response.Code() {
- case 200:
- result := NewReceiveWebhookNotificationOK()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return result, nil
- case 400:
- result := NewReceiveWebhookNotificationBadRequest()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 401:
- result := NewReceiveWebhookNotificationUnauthorized()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 403:
- result := NewReceiveWebhookNotificationForbidden()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- case 500:
- result := NewReceiveWebhookNotificationInternalServerError()
- if err := result.readResponse(response, consumer, o.formats); err != nil {
- return nil, err
- }
- return nil, result
- default:
- return nil, runtime.NewAPIError("[POST /webhook-notify] receiveWebhookNotification", response, response.Code())
- }
-}
-
-// NewReceiveWebhookNotificationOK creates a ReceiveWebhookNotificationOK with default headers values
-func NewReceiveWebhookNotificationOK() *ReceiveWebhookNotificationOK {
- return &ReceiveWebhookNotificationOK{}
-}
-
-/*
-ReceiveWebhookNotificationOK describes a response with status code 200, with default header values.
-
-Received notification
-*/
-type ReceiveWebhookNotificationOK struct {
- Payload *supportmessages.WebhookNotification
-}
-
-// IsSuccess returns true when this receive webhook notification o k response has a 2xx status code
-func (o *ReceiveWebhookNotificationOK) IsSuccess() bool {
- return true
-}
-
-// IsRedirect returns true when this receive webhook notification o k response has a 3xx status code
-func (o *ReceiveWebhookNotificationOK) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this receive webhook notification o k response has a 4xx status code
-func (o *ReceiveWebhookNotificationOK) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this receive webhook notification o k response has a 5xx status code
-func (o *ReceiveWebhookNotificationOK) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this receive webhook notification o k response a status code equal to that given
-func (o *ReceiveWebhookNotificationOK) IsCode(code int) bool {
- return code == 200
-}
-
-// Code gets the status code for the receive webhook notification o k response
-func (o *ReceiveWebhookNotificationOK) Code() int {
- return 200
-}
-
-func (o *ReceiveWebhookNotificationOK) Error() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationOK %+v", 200, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationOK) String() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationOK %+v", 200, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationOK) GetPayload() *supportmessages.WebhookNotification {
- return o.Payload
-}
-
-func (o *ReceiveWebhookNotificationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.WebhookNotification)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewReceiveWebhookNotificationBadRequest creates a ReceiveWebhookNotificationBadRequest with default headers values
-func NewReceiveWebhookNotificationBadRequest() *ReceiveWebhookNotificationBadRequest {
- return &ReceiveWebhookNotificationBadRequest{}
-}
-
-/*
-ReceiveWebhookNotificationBadRequest describes a response with status code 400, with default header values.
-
-The request payload is invalid.
-*/
-type ReceiveWebhookNotificationBadRequest struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this receive webhook notification bad request response has a 2xx status code
-func (o *ReceiveWebhookNotificationBadRequest) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this receive webhook notification bad request response has a 3xx status code
-func (o *ReceiveWebhookNotificationBadRequest) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this receive webhook notification bad request response has a 4xx status code
-func (o *ReceiveWebhookNotificationBadRequest) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this receive webhook notification bad request response has a 5xx status code
-func (o *ReceiveWebhookNotificationBadRequest) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this receive webhook notification bad request response a status code equal to that given
-func (o *ReceiveWebhookNotificationBadRequest) IsCode(code int) bool {
- return code == 400
-}
-
-// Code gets the status code for the receive webhook notification bad request response
-func (o *ReceiveWebhookNotificationBadRequest) Code() int {
- return 400
-}
-
-func (o *ReceiveWebhookNotificationBadRequest) Error() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationBadRequest) String() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationBadRequest %+v", 400, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationBadRequest) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ReceiveWebhookNotificationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewReceiveWebhookNotificationUnauthorized creates a ReceiveWebhookNotificationUnauthorized with default headers values
-func NewReceiveWebhookNotificationUnauthorized() *ReceiveWebhookNotificationUnauthorized {
- return &ReceiveWebhookNotificationUnauthorized{}
-}
-
-/*
-ReceiveWebhookNotificationUnauthorized describes a response with status code 401, with default header values.
-
-The request was denied.
-*/
-type ReceiveWebhookNotificationUnauthorized struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this receive webhook notification unauthorized response has a 2xx status code
-func (o *ReceiveWebhookNotificationUnauthorized) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this receive webhook notification unauthorized response has a 3xx status code
-func (o *ReceiveWebhookNotificationUnauthorized) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this receive webhook notification unauthorized response has a 4xx status code
-func (o *ReceiveWebhookNotificationUnauthorized) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this receive webhook notification unauthorized response has a 5xx status code
-func (o *ReceiveWebhookNotificationUnauthorized) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this receive webhook notification unauthorized response a status code equal to that given
-func (o *ReceiveWebhookNotificationUnauthorized) IsCode(code int) bool {
- return code == 401
-}
-
-// Code gets the status code for the receive webhook notification unauthorized response
-func (o *ReceiveWebhookNotificationUnauthorized) Code() int {
- return 401
-}
-
-func (o *ReceiveWebhookNotificationUnauthorized) Error() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationUnauthorized) String() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationUnauthorized %+v", 401, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationUnauthorized) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ReceiveWebhookNotificationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewReceiveWebhookNotificationForbidden creates a ReceiveWebhookNotificationForbidden with default headers values
-func NewReceiveWebhookNotificationForbidden() *ReceiveWebhookNotificationForbidden {
- return &ReceiveWebhookNotificationForbidden{}
-}
-
-/*
-ReceiveWebhookNotificationForbidden describes a response with status code 403, with default header values.
-
-The request was denied.
-*/
-type ReceiveWebhookNotificationForbidden struct {
- Payload *supportmessages.ClientError
-}
-
-// IsSuccess returns true when this receive webhook notification forbidden response has a 2xx status code
-func (o *ReceiveWebhookNotificationForbidden) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this receive webhook notification forbidden response has a 3xx status code
-func (o *ReceiveWebhookNotificationForbidden) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this receive webhook notification forbidden response has a 4xx status code
-func (o *ReceiveWebhookNotificationForbidden) IsClientError() bool {
- return true
-}
-
-// IsServerError returns true when this receive webhook notification forbidden response has a 5xx status code
-func (o *ReceiveWebhookNotificationForbidden) IsServerError() bool {
- return false
-}
-
-// IsCode returns true when this receive webhook notification forbidden response a status code equal to that given
-func (o *ReceiveWebhookNotificationForbidden) IsCode(code int) bool {
- return code == 403
-}
-
-// Code gets the status code for the receive webhook notification forbidden response
-func (o *ReceiveWebhookNotificationForbidden) Code() int {
- return 403
-}
-
-func (o *ReceiveWebhookNotificationForbidden) Error() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationForbidden %+v", 403, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationForbidden) String() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationForbidden %+v", 403, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationForbidden) GetPayload() *supportmessages.ClientError {
- return o.Payload
-}
-
-func (o *ReceiveWebhookNotificationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.ClientError)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
-
-// NewReceiveWebhookNotificationInternalServerError creates a ReceiveWebhookNotificationInternalServerError with default headers values
-func NewReceiveWebhookNotificationInternalServerError() *ReceiveWebhookNotificationInternalServerError {
- return &ReceiveWebhookNotificationInternalServerError{}
-}
-
-/*
-ReceiveWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
-
-A server error occurred.
-*/
-type ReceiveWebhookNotificationInternalServerError struct {
- Payload *supportmessages.Error
-}
-
-// IsSuccess returns true when this receive webhook notification internal server error response has a 2xx status code
-func (o *ReceiveWebhookNotificationInternalServerError) IsSuccess() bool {
- return false
-}
-
-// IsRedirect returns true when this receive webhook notification internal server error response has a 3xx status code
-func (o *ReceiveWebhookNotificationInternalServerError) IsRedirect() bool {
- return false
-}
-
-// IsClientError returns true when this receive webhook notification internal server error response has a 4xx status code
-func (o *ReceiveWebhookNotificationInternalServerError) IsClientError() bool {
- return false
-}
-
-// IsServerError returns true when this receive webhook notification internal server error response has a 5xx status code
-func (o *ReceiveWebhookNotificationInternalServerError) IsServerError() bool {
- return true
-}
-
-// IsCode returns true when this receive webhook notification internal server error response a status code equal to that given
-func (o *ReceiveWebhookNotificationInternalServerError) IsCode(code int) bool {
- return code == 500
-}
-
-// Code gets the status code for the receive webhook notification internal server error response
-func (o *ReceiveWebhookNotificationInternalServerError) Code() int {
- return 500
-}
-
-func (o *ReceiveWebhookNotificationInternalServerError) Error() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationInternalServerError) String() string {
- return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationInternalServerError %+v", 500, o.Payload)
-}
-
-func (o *ReceiveWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error {
- return o.Payload
-}
-
-func (o *ReceiveWebhookNotificationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
-
- o.Payload = new(supportmessages.Error)
-
- // response payload
- if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
- return err
- }
-
- return nil
-}
diff --git a/pkg/gen/supportclient/webhook/webhook_client.go b/pkg/gen/supportclient/webhook/webhook_client.go
deleted file mode 100644
index 0c645fb4d8b..00000000000
--- a/pkg/gen/supportclient/webhook/webhook_client.go
+++ /dev/null
@@ -1,123 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package webhook
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "fmt"
-
- "github.com/go-openapi/runtime"
- "github.com/go-openapi/strfmt"
-)
-
-// New creates a new webhook API client.
-func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
- return &Client{transport: transport, formats: formats}
-}
-
-/*
-Client for webhook API
-*/
-type Client struct {
- transport runtime.ClientTransport
- formats strfmt.Registry
-}
-
-// ClientOption is the option for Client methods
-type ClientOption func(*runtime.ClientOperation)
-
-// ClientService is the interface for Client methods
-type ClientService interface {
- CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error)
-
- ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error)
-
- SetTransport(transport runtime.ClientTransport)
-}
-
-/*
-CreateWebhookNotification tests endpoint for creating webhook notifications
-
-This endpoint creates a webhook notification in the database. If the webhook client is running, it may send the notification soon after creation.
-*/
-func (a *Client) CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewCreateWebhookNotificationParams()
- }
- op := &runtime.ClientOperation{
- ID: "createWebhookNotification",
- Method: "POST",
- PathPattern: "/webhook-notifications",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &CreateWebhookNotificationReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*CreateWebhookNotificationCreated)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for createWebhookNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-/*
-ReceiveWebhookNotification tests endpoint for receiving messages from our own webhook client
-
-This endpoint receives a notification that matches the webhook notification model. This is a test endpoint that represents a receiving server. In production, the Prime will set up a receiving endpoint. In testing, this server accepts notifications at this endpoint and simply responds with success and logs them. The `webhook-client` is responsible for retrieving messages from the webhook_notifications table and sending them to the Prime (this endpoint in our testing case) via an mTLS connection.
-*/
-func (a *Client) ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error) {
- // TODO: Validate the params before sending
- if params == nil {
- params = NewReceiveWebhookNotificationParams()
- }
- op := &runtime.ClientOperation{
- ID: "receiveWebhookNotification",
- Method: "POST",
- PathPattern: "/webhook-notify",
- ProducesMediaTypes: []string{"application/json"},
- ConsumesMediaTypes: []string{"application/json"},
- Schemes: []string{"http"},
- Params: params,
- Reader: &ReceiveWebhookNotificationReader{formats: a.formats},
- Context: params.Context,
- Client: params.HTTPClient,
- }
- for _, opt := range opts {
- opt(op)
- }
-
- result, err := a.transport.Submit(op)
- if err != nil {
- return nil, err
- }
- success, ok := result.(*ReceiveWebhookNotificationOK)
- if ok {
- return success, nil
- }
- // unexpected success response
- // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
- msg := fmt.Sprintf("unexpected success response for receiveWebhookNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
- panic(msg)
-}
-
-// SetTransport changes the transport on the client
-func (a *Client) SetTransport(transport runtime.ClientTransport) {
- a.transport = transport
-}
diff --git a/pkg/gen/supportmessages/orders_type_detail.go b/pkg/gen/supportmessages/orders_type_detail.go
deleted file mode 100644
index 55d6d1e2f10..00000000000
--- a/pkg/gen/supportmessages/orders_type_detail.go
+++ /dev/null
@@ -1,93 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// OrdersTypeDetail Orders type detail
-//
-// swagger:model OrdersTypeDetail
-type OrdersTypeDetail string
-
-func NewOrdersTypeDetail(value OrdersTypeDetail) *OrdersTypeDetail {
- return &value
-}
-
-// Pointer returns a pointer to a freshly-allocated OrdersTypeDetail.
-func (m OrdersTypeDetail) Pointer() *OrdersTypeDetail {
- return &m
-}
-
-const (
-
- // OrdersTypeDetailHHGPERMITTED captures enum value "HHG_PERMITTED"
- OrdersTypeDetailHHGPERMITTED OrdersTypeDetail = "HHG_PERMITTED"
-
- // OrdersTypeDetailPCSTDY captures enum value "PCS_TDY"
- OrdersTypeDetailPCSTDY OrdersTypeDetail = "PCS_TDY"
-
- // OrdersTypeDetailHHGRESTRICTEDPROHIBITED captures enum value "HHG_RESTRICTED_PROHIBITED"
- OrdersTypeDetailHHGRESTRICTEDPROHIBITED OrdersTypeDetail = "HHG_RESTRICTED_PROHIBITED"
-
- // OrdersTypeDetailHHGRESTRICTEDAREA captures enum value "HHG_RESTRICTED_AREA"
- OrdersTypeDetailHHGRESTRICTEDAREA OrdersTypeDetail = "HHG_RESTRICTED_AREA"
-
- // OrdersTypeDetailINSTRUCTION20WEEKS captures enum value "INSTRUCTION_20_WEEKS"
- OrdersTypeDetailINSTRUCTION20WEEKS OrdersTypeDetail = "INSTRUCTION_20_WEEKS"
-
- // OrdersTypeDetailHHGPROHIBITED20WEEKS captures enum value "HHG_PROHIBITED_20_WEEKS"
- OrdersTypeDetailHHGPROHIBITED20WEEKS OrdersTypeDetail = "HHG_PROHIBITED_20_WEEKS"
-
- // OrdersTypeDetailDELAYEDAPPROVAL captures enum value "DELAYED_APPROVAL"
- OrdersTypeDetailDELAYEDAPPROVAL OrdersTypeDetail = "DELAYED_APPROVAL"
-)
-
-// for schema
-var ordersTypeDetailEnum []interface{}
-
-func init() {
- var res []OrdersTypeDetail
- if err := json.Unmarshal([]byte(`["HHG_PERMITTED","PCS_TDY","HHG_RESTRICTED_PROHIBITED","HHG_RESTRICTED_AREA","INSTRUCTION_20_WEEKS","HHG_PROHIBITED_20_WEEKS","DELAYED_APPROVAL"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- ordersTypeDetailEnum = append(ordersTypeDetailEnum, v)
- }
-}
-
-func (m OrdersTypeDetail) validateOrdersTypeDetailEnum(path, location string, value OrdersTypeDetail) error {
- if err := validate.EnumCase(path, location, value, ordersTypeDetailEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-// Validate validates this orders type detail
-func (m OrdersTypeDetail) Validate(formats strfmt.Registry) error {
- var res []error
-
- // value enum
- if err := m.validateOrdersTypeDetailEnum("", "body", m); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validates this orders type detail based on context it is used
-func (m OrdersTypeDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
diff --git a/pkg/gen/supportmessages/payment_request.go b/pkg/gen/supportmessages/payment_request.go
deleted file mode 100644
index b3bd5e62162..00000000000
--- a/pkg/gen/supportmessages/payment_request.go
+++ /dev/null
@@ -1,289 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// PaymentRequest payment request
-//
-// swagger:model PaymentRequest
-type PaymentRequest struct {
-
- // document package
- DocumentPackage *ProofOfServicePackage `json:"documentPackage,omitempty"`
-
- // e tag
- // Read Only: true
- ETag string `json:"eTag,omitempty"`
-
- // id
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Read Only: true
- // Format: uuid
- ID strfmt.UUID `json:"id,omitempty"`
-
- // is final
- IsFinal *bool `json:"isFinal,omitempty"`
-
- // move task order ID
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- MoveTaskOrderID strfmt.UUID `json:"moveTaskOrderID,omitempty"`
-
- // payment request number
- // Example: 1234-5678-1
- // Read Only: true
- PaymentRequestNumber string `json:"paymentRequestNumber,omitempty"`
-
- // recalculation of payment request ID
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Read Only: true
- // Format: uuid
- RecalculationOfPaymentRequestID *strfmt.UUID `json:"recalculationOfPaymentRequestID,omitempty"`
-
- // rejection reason
- // Example: documentation was incomplete
- RejectionReason *string `json:"rejectionReason,omitempty"`
-
- // status
- Status PaymentRequestStatus `json:"status,omitempty"`
-}
-
-// Validate validates this payment request
-func (m *PaymentRequest) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDocumentPackage(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateMoveTaskOrderID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateRecalculationOfPaymentRequestID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *PaymentRequest) validateDocumentPackage(formats strfmt.Registry) error {
- if swag.IsZero(m.DocumentPackage) { // not required
- return nil
- }
-
- if m.DocumentPackage != nil {
- if err := m.DocumentPackage.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("documentPackage")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("documentPackage")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *PaymentRequest) validateID(formats strfmt.Registry) error {
- if swag.IsZero(m.ID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) validateMoveTaskOrderID(formats strfmt.Registry) error {
- if swag.IsZero(m.MoveTaskOrderID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("moveTaskOrderID", "body", "uuid", m.MoveTaskOrderID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) validateRecalculationOfPaymentRequestID(formats strfmt.Registry) error {
- if swag.IsZero(m.RecalculationOfPaymentRequestID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("recalculationOfPaymentRequestID", "body", "uuid", m.RecalculationOfPaymentRequestID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this payment request based on the context it is used
-func (m *PaymentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateDocumentPackage(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateETag(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateID(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidatePaymentRequestNumber(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateRecalculationOfPaymentRequestID(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateStatus(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *PaymentRequest) contextValidateDocumentPackage(ctx context.Context, formats strfmt.Registry) error {
-
- if m.DocumentPackage != nil {
-
- if swag.IsZero(m.DocumentPackage) { // not required
- return nil
- }
-
- if err := m.DocumentPackage.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("documentPackage")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("documentPackage")
- }
- return err
- }
- }
-
- return nil
-}
-
-func (m *PaymentRequest) contextValidateETag(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "eTag", "body", string(m.ETag)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) contextValidatePaymentRequestNumber(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "paymentRequestNumber", "body", string(m.PaymentRequestNumber)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) contextValidateRecalculationOfPaymentRequestID(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "recalculationOfPaymentRequestID", "body", m.RecalculationOfPaymentRequestID); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
-
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *PaymentRequest) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *PaymentRequest) UnmarshalBinary(b []byte) error {
- var res PaymentRequest
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/payment_request_e_d_i.go b/pkg/gen/supportmessages/payment_request_e_d_i.go
deleted file mode 100644
index c739c6d72d3..00000000000
--- a/pkg/gen/supportmessages/payment_request_e_d_i.go
+++ /dev/null
@@ -1,111 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// PaymentRequestEDI payment request e d i
-//
-// swagger:model PaymentRequestEDI
-type PaymentRequestEDI struct {
-
- // edi
- // Read Only: true
- Edi string `json:"edi,omitempty"`
-
- // id
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Read Only: true
- // Format: uuid
- ID strfmt.UUID `json:"id,omitempty"`
-}
-
-// Validate validates this payment request e d i
-func (m *PaymentRequestEDI) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *PaymentRequestEDI) validateID(formats strfmt.Registry) error {
- if swag.IsZero(m.ID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this payment request e d i based on the context it is used
-func (m *PaymentRequestEDI) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateEdi(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateID(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *PaymentRequestEDI) contextValidateEdi(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "edi", "body", string(m.Edi)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *PaymentRequestEDI) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *PaymentRequestEDI) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *PaymentRequestEDI) UnmarshalBinary(b []byte) error {
- var res PaymentRequestEDI
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/payment_request_status.go b/pkg/gen/supportmessages/payment_request_status.go
deleted file mode 100644
index 3fd718cfb10..00000000000
--- a/pkg/gen/supportmessages/payment_request_status.go
+++ /dev/null
@@ -1,96 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// PaymentRequestStatus Payment Request Status
-//
-// swagger:model PaymentRequestStatus
-type PaymentRequestStatus string
-
-func NewPaymentRequestStatus(value PaymentRequestStatus) *PaymentRequestStatus {
- return &value
-}
-
-// Pointer returns a pointer to a freshly-allocated PaymentRequestStatus.
-func (m PaymentRequestStatus) Pointer() *PaymentRequestStatus {
- return &m
-}
-
-const (
-
- // PaymentRequestStatusPENDING captures enum value "PENDING"
- PaymentRequestStatusPENDING PaymentRequestStatus = "PENDING"
-
- // PaymentRequestStatusREVIEWED captures enum value "REVIEWED"
- PaymentRequestStatusREVIEWED PaymentRequestStatus = "REVIEWED"
-
- // PaymentRequestStatusREVIEWEDANDALLSERVICEITEMSREJECTED captures enum value "REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED"
- PaymentRequestStatusREVIEWEDANDALLSERVICEITEMSREJECTED PaymentRequestStatus = "REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED"
-
- // PaymentRequestStatusSENTTOGEX captures enum value "SENT_TO_GEX"
- PaymentRequestStatusSENTTOGEX PaymentRequestStatus = "SENT_TO_GEX"
-
- // PaymentRequestStatusTPPSRECEIVED captures enum value "TPPS_RECEIVED"
- PaymentRequestStatusTPPSRECEIVED PaymentRequestStatus = "TPPS_RECEIVED"
-
- // PaymentRequestStatusPAID captures enum value "PAID"
- PaymentRequestStatusPAID PaymentRequestStatus = "PAID"
-
- // PaymentRequestStatusEDIERROR captures enum value "EDI_ERROR"
- PaymentRequestStatusEDIERROR PaymentRequestStatus = "EDI_ERROR"
-
- // PaymentRequestStatusDEPRECATED captures enum value "DEPRECATED"
- PaymentRequestStatusDEPRECATED PaymentRequestStatus = "DEPRECATED"
-)
-
-// for schema
-var paymentRequestStatusEnum []interface{}
-
-func init() {
- var res []PaymentRequestStatus
- if err := json.Unmarshal([]byte(`["PENDING","REVIEWED","REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED","SENT_TO_GEX","TPPS_RECEIVED","PAID","EDI_ERROR","DEPRECATED"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- paymentRequestStatusEnum = append(paymentRequestStatusEnum, v)
- }
-}
-
-func (m PaymentRequestStatus) validatePaymentRequestStatusEnum(path, location string, value PaymentRequestStatus) error {
- if err := validate.EnumCase(path, location, value, paymentRequestStatusEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-// Validate validates this payment request status
-func (m PaymentRequestStatus) Validate(formats strfmt.Registry) error {
- var res []error
-
- // value enum
- if err := m.validatePaymentRequestStatusEnum("", "body", m); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validates this payment request status based on context it is used
-func (m PaymentRequestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
diff --git a/pkg/gen/supportmessages/payment_requests.go b/pkg/gen/supportmessages/payment_requests.go
deleted file mode 100644
index c7802632d9a..00000000000
--- a/pkg/gen/supportmessages/payment_requests.go
+++ /dev/null
@@ -1,78 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// PaymentRequests payment requests
-//
-// swagger:model PaymentRequests
-type PaymentRequests []*PaymentRequest
-
-// Validate validates this payment requests
-func (m PaymentRequests) Validate(formats strfmt.Registry) error {
- var res []error
-
- for i := 0; i < len(m); i++ {
- if swag.IsZero(m[i]) { // not required
- continue
- }
-
- if m[i] != nil {
- if err := m[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName(strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName(strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validate this payment requests based on the context it is used
-func (m PaymentRequests) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- for i := 0; i < len(m); i++ {
-
- if m[i] != nil {
-
- if swag.IsZero(m[i]) { // not required
- return nil
- }
-
- if err := m[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName(strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName(strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
diff --git a/pkg/gen/supportmessages/process_reviewed_payment_requests.go b/pkg/gen/supportmessages/process_reviewed_payment_requests.go
deleted file mode 100644
index b0f8b9b9ed0..00000000000
--- a/pkg/gen/supportmessages/process_reviewed_payment_requests.go
+++ /dev/null
@@ -1,180 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ProcessReviewedPaymentRequests process reviewed payment requests
-//
-// swagger:model ProcessReviewedPaymentRequests
-type ProcessReviewedPaymentRequests struct {
-
- // delete from syncada
- // Example: true
- // Required: true
- DeleteFromSyncada *bool `json:"deleteFromSyncada"`
-
- // payment request ID
- // Example: 1f2270c7-7166-40ae-981e-b200ebdf3054
- // Format: uuid
- PaymentRequestID strfmt.UUID `json:"paymentRequestID,omitempty"`
-
- // read from syncada
- // Example: true
- // Required: true
- ReadFromSyncada *bool `json:"readFromSyncada"`
-
- // send to syncada
- // Example: true
- // Required: true
- SendToSyncada *bool `json:"sendToSyncada"`
-
- // status
- Status PaymentRequestStatus `json:"status,omitempty"`
-}
-
-// Validate validates this process reviewed payment requests
-func (m *ProcessReviewedPaymentRequests) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateDeleteFromSyncada(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validatePaymentRequestID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateReadFromSyncada(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateSendToSyncada(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) validateDeleteFromSyncada(formats strfmt.Registry) error {
-
- if err := validate.Required("deleteFromSyncada", "body", m.DeleteFromSyncada); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) validatePaymentRequestID(formats strfmt.Registry) error {
- if swag.IsZero(m.PaymentRequestID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("paymentRequestID", "body", "uuid", m.PaymentRequestID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) validateReadFromSyncada(formats strfmt.Registry) error {
-
- if err := validate.Required("readFromSyncada", "body", m.ReadFromSyncada); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) validateSendToSyncada(formats strfmt.Registry) error {
-
- if err := validate.Required("sendToSyncada", "body", m.SendToSyncada); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this process reviewed payment requests based on the context it is used
-func (m *ProcessReviewedPaymentRequests) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateStatus(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ProcessReviewedPaymentRequests) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
-
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ProcessReviewedPaymentRequests) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ProcessReviewedPaymentRequests) UnmarshalBinary(b []byte) error {
- var res ProcessReviewedPaymentRequests
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/proof_of_service_package.go b/pkg/gen/supportmessages/proof_of_service_package.go
deleted file mode 100644
index c9bd714efea..00000000000
--- a/pkg/gen/supportmessages/proof_of_service_package.go
+++ /dev/null
@@ -1,143 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "strconv"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ProofOfServicePackage proof of service package
-//
-// swagger:model ProofOfServicePackage
-type ProofOfServicePackage struct {
-
- // id
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- ID strfmt.UUID `json:"id,omitempty"`
-
- // uploads
- Uploads []*UploadWithOmissions `json:"uploads"`
-}
-
-// Validate validates this proof of service package
-func (m *ProofOfServicePackage) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateUploads(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ProofOfServicePackage) validateID(formats strfmt.Registry) error {
- if swag.IsZero(m.ID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *ProofOfServicePackage) validateUploads(formats strfmt.Registry) error {
- if swag.IsZero(m.Uploads) { // not required
- return nil
- }
-
- for i := 0; i < len(m.Uploads); i++ {
- if swag.IsZero(m.Uploads[i]) { // not required
- continue
- }
-
- if m.Uploads[i] != nil {
- if err := m.Uploads[i].Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("uploads" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("uploads" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-// ContextValidate validate this proof of service package based on the context it is used
-func (m *ProofOfServicePackage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateUploads(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ProofOfServicePackage) contextValidateUploads(ctx context.Context, formats strfmt.Registry) error {
-
- for i := 0; i < len(m.Uploads); i++ {
-
- if m.Uploads[i] != nil {
-
- if swag.IsZero(m.Uploads[i]) { // not required
- return nil
- }
-
- if err := m.Uploads[i].ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("uploads" + "." + strconv.Itoa(i))
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("uploads" + "." + strconv.Itoa(i))
- }
- return err
- }
- }
-
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ProofOfServicePackage) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ProofOfServicePackage) UnmarshalBinary(b []byte) error {
- var res ProofOfServicePackage
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/rank.go b/pkg/gen/supportmessages/rank.go
deleted file mode 100644
index f42c0aec72e..00000000000
--- a/pkg/gen/supportmessages/rank.go
+++ /dev/null
@@ -1,159 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// Rank Rank of the service member, must match specific list of available ranks.
-//
-// swagger:model Rank
-type Rank string
-
-func NewRank(value Rank) *Rank {
- return &value
-}
-
-// Pointer returns a pointer to a freshly-allocated Rank.
-func (m Rank) Pointer() *Rank {
- return &m
-}
-
-const (
-
- // RankE1 captures enum value "E_1"
- RankE1 Rank = "E_1"
-
- // RankE2 captures enum value "E_2"
- RankE2 Rank = "E_2"
-
- // RankE3 captures enum value "E_3"
- RankE3 Rank = "E_3"
-
- // RankE4 captures enum value "E_4"
- RankE4 Rank = "E_4"
-
- // RankE5 captures enum value "E_5"
- RankE5 Rank = "E_5"
-
- // RankE6 captures enum value "E_6"
- RankE6 Rank = "E_6"
-
- // RankE7 captures enum value "E_7"
- RankE7 Rank = "E_7"
-
- // RankE8 captures enum value "E_8"
- RankE8 Rank = "E_8"
-
- // RankE9 captures enum value "E_9"
- RankE9 Rank = "E_9"
-
- // RankE9SPECIALSENIORENLISTED captures enum value "E_9_SPECIAL_SENIOR_ENLISTED"
- RankE9SPECIALSENIORENLISTED Rank = "E_9_SPECIAL_SENIOR_ENLISTED"
-
- // RankO1ACADEMYGRADUATE captures enum value "O_1_ACADEMY_GRADUATE"
- RankO1ACADEMYGRADUATE Rank = "O_1_ACADEMY_GRADUATE"
-
- // RankO2 captures enum value "O_2"
- RankO2 Rank = "O_2"
-
- // RankO3 captures enum value "O_3"
- RankO3 Rank = "O_3"
-
- // RankO4 captures enum value "O_4"
- RankO4 Rank = "O_4"
-
- // RankO5 captures enum value "O_5"
- RankO5 Rank = "O_5"
-
- // RankO6 captures enum value "O_6"
- RankO6 Rank = "O_6"
-
- // RankO7 captures enum value "O_7"
- RankO7 Rank = "O_7"
-
- // RankO8 captures enum value "O_8"
- RankO8 Rank = "O_8"
-
- // RankO9 captures enum value "O_9"
- RankO9 Rank = "O_9"
-
- // RankO10 captures enum value "O_10"
- RankO10 Rank = "O_10"
-
- // RankW1 captures enum value "W_1"
- RankW1 Rank = "W_1"
-
- // RankW2 captures enum value "W_2"
- RankW2 Rank = "W_2"
-
- // RankW3 captures enum value "W_3"
- RankW3 Rank = "W_3"
-
- // RankW4 captures enum value "W_4"
- RankW4 Rank = "W_4"
-
- // RankW5 captures enum value "W_5"
- RankW5 Rank = "W_5"
-
- // RankAVIATIONCADET captures enum value "AVIATION_CADET"
- RankAVIATIONCADET Rank = "AVIATION_CADET"
-
- // RankCIVILIANEMPLOYEE captures enum value "CIVILIAN_EMPLOYEE"
- RankCIVILIANEMPLOYEE Rank = "CIVILIAN_EMPLOYEE"
-
- // RankACADEMYCADET captures enum value "ACADEMY_CADET"
- RankACADEMYCADET Rank = "ACADEMY_CADET"
-
- // RankMIDSHIPMAN captures enum value "MIDSHIPMAN"
- RankMIDSHIPMAN Rank = "MIDSHIPMAN"
-)
-
-// for schema
-var rankEnum []interface{}
-
-func init() {
- var res []Rank
- if err := json.Unmarshal([]byte(`["E_1","E_2","E_3","E_4","E_5","E_6","E_7","E_8","E_9","E_9_SPECIAL_SENIOR_ENLISTED","O_1_ACADEMY_GRADUATE","O_2","O_3","O_4","O_5","O_6","O_7","O_8","O_9","O_10","W_1","W_2","W_3","W_4","W_5","AVIATION_CADET","CIVILIAN_EMPLOYEE","ACADEMY_CADET","MIDSHIPMAN"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- rankEnum = append(rankEnum, v)
- }
-}
-
-func (m Rank) validateRankEnum(path, location string, value Rank) error {
- if err := validate.EnumCase(path, location, value, rankEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-// Validate validates this rank
-func (m Rank) Validate(formats strfmt.Registry) error {
- var res []error
-
- // value enum
- if err := m.validateRankEnum("", "body", m); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validates this rank based on context it is used
-func (m Rank) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
diff --git a/pkg/gen/supportmessages/re_service_code.go b/pkg/gen/supportmessages/re_service_code.go
deleted file mode 100644
index ae293c133d2..00000000000
--- a/pkg/gen/supportmessages/re_service_code.go
+++ /dev/null
@@ -1,219 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// ReServiceCode This is the full list of service items that can be found on a shipment. Not all service items
-// may be requested by the Prime, but may be returned in a response.
-//
-// Documentation of all the service items will be provided.
-//
-// swagger:model ReServiceCode
-type ReServiceCode string
-
-func NewReServiceCode(value ReServiceCode) *ReServiceCode {
- return &value
-}
-
-// Pointer returns a pointer to a freshly-allocated ReServiceCode.
-func (m ReServiceCode) Pointer() *ReServiceCode {
- return &m
-}
-
-const (
-
- // ReServiceCodeCS captures enum value "CS"
- ReServiceCodeCS ReServiceCode = "CS"
-
- // ReServiceCodeDBHF captures enum value "DBHF"
- ReServiceCodeDBHF ReServiceCode = "DBHF"
-
- // ReServiceCodeDBTF captures enum value "DBTF"
- ReServiceCodeDBTF ReServiceCode = "DBTF"
-
- // ReServiceCodeDCRT captures enum value "DCRT"
- ReServiceCodeDCRT ReServiceCode = "DCRT"
-
- // ReServiceCodeDDASIT captures enum value "DDASIT"
- ReServiceCodeDDASIT ReServiceCode = "DDASIT"
-
- // ReServiceCodeDDDSIT captures enum value "DDDSIT"
- ReServiceCodeDDDSIT ReServiceCode = "DDDSIT"
-
- // ReServiceCodeDDFSIT captures enum value "DDFSIT"
- ReServiceCodeDDFSIT ReServiceCode = "DDFSIT"
-
- // ReServiceCodeDDP captures enum value "DDP"
- ReServiceCodeDDP ReServiceCode = "DDP"
-
- // ReServiceCodeDDSHUT captures enum value "DDSHUT"
- ReServiceCodeDDSHUT ReServiceCode = "DDSHUT"
-
- // ReServiceCodeDLH captures enum value "DLH"
- ReServiceCodeDLH ReServiceCode = "DLH"
-
- // ReServiceCodeDMHF captures enum value "DMHF"
- ReServiceCodeDMHF ReServiceCode = "DMHF"
-
- // ReServiceCodeDNPK captures enum value "DNPK"
- ReServiceCodeDNPK ReServiceCode = "DNPK"
-
- // ReServiceCodeDOASIT captures enum value "DOASIT"
- ReServiceCodeDOASIT ReServiceCode = "DOASIT"
-
- // ReServiceCodeDOFSIT captures enum value "DOFSIT"
- ReServiceCodeDOFSIT ReServiceCode = "DOFSIT"
-
- // ReServiceCodeDOP captures enum value "DOP"
- ReServiceCodeDOP ReServiceCode = "DOP"
-
- // ReServiceCodeDOPSIT captures enum value "DOPSIT"
- ReServiceCodeDOPSIT ReServiceCode = "DOPSIT"
-
- // ReServiceCodeDOSHUT captures enum value "DOSHUT"
- ReServiceCodeDOSHUT ReServiceCode = "DOSHUT"
-
- // ReServiceCodeDPK captures enum value "DPK"
- ReServiceCodeDPK ReServiceCode = "DPK"
-
- // ReServiceCodeDSH captures enum value "DSH"
- ReServiceCodeDSH ReServiceCode = "DSH"
-
- // ReServiceCodeDUCRT captures enum value "DUCRT"
- ReServiceCodeDUCRT ReServiceCode = "DUCRT"
-
- // ReServiceCodeDUPK captures enum value "DUPK"
- ReServiceCodeDUPK ReServiceCode = "DUPK"
-
- // ReServiceCodeFSC captures enum value "FSC"
- ReServiceCodeFSC ReServiceCode = "FSC"
-
- // ReServiceCodeIBHF captures enum value "IBHF"
- ReServiceCodeIBHF ReServiceCode = "IBHF"
-
- // ReServiceCodeIBTF captures enum value "IBTF"
- ReServiceCodeIBTF ReServiceCode = "IBTF"
-
- // ReServiceCodeICOLH captures enum value "ICOLH"
- ReServiceCodeICOLH ReServiceCode = "ICOLH"
-
- // ReServiceCodeICOUB captures enum value "ICOUB"
- ReServiceCodeICOUB ReServiceCode = "ICOUB"
-
- // ReServiceCodeICRT captures enum value "ICRT"
- ReServiceCodeICRT ReServiceCode = "ICRT"
-
- // ReServiceCodeIDASIT captures enum value "IDASIT"
- ReServiceCodeIDASIT ReServiceCode = "IDASIT"
-
- // ReServiceCodeIDDSIT captures enum value "IDDSIT"
- ReServiceCodeIDDSIT ReServiceCode = "IDDSIT"
-
- // ReServiceCodeIDFSIT captures enum value "IDFSIT"
- ReServiceCodeIDFSIT ReServiceCode = "IDFSIT"
-
- // ReServiceCodeIDSHUT captures enum value "IDSHUT"
- ReServiceCodeIDSHUT ReServiceCode = "IDSHUT"
-
- // ReServiceCodeIHPK captures enum value "IHPK"
- ReServiceCodeIHPK ReServiceCode = "IHPK"
-
- // ReServiceCodeIHUPK captures enum value "IHUPK"
- ReServiceCodeIHUPK ReServiceCode = "IHUPK"
-
- // ReServiceCodeINPK captures enum value "INPK"
- ReServiceCodeINPK ReServiceCode = "INPK"
-
- // ReServiceCodeIOASIT captures enum value "IOASIT"
- ReServiceCodeIOASIT ReServiceCode = "IOASIT"
-
- // ReServiceCodeIOCLH captures enum value "IOCLH"
- ReServiceCodeIOCLH ReServiceCode = "IOCLH"
-
- // ReServiceCodeIOCUB captures enum value "IOCUB"
- ReServiceCodeIOCUB ReServiceCode = "IOCUB"
-
- // ReServiceCodeIOFSIT captures enum value "IOFSIT"
- ReServiceCodeIOFSIT ReServiceCode = "IOFSIT"
-
- // ReServiceCodeIOOLH captures enum value "IOOLH"
- ReServiceCodeIOOLH ReServiceCode = "IOOLH"
-
- // ReServiceCodeIOOUB captures enum value "IOOUB"
- ReServiceCodeIOOUB ReServiceCode = "IOOUB"
-
- // ReServiceCodeIOPSIT captures enum value "IOPSIT"
- ReServiceCodeIOPSIT ReServiceCode = "IOPSIT"
-
- // ReServiceCodeIOSHUT captures enum value "IOSHUT"
- ReServiceCodeIOSHUT ReServiceCode = "IOSHUT"
-
- // ReServiceCodeIUBPK captures enum value "IUBPK"
- ReServiceCodeIUBPK ReServiceCode = "IUBPK"
-
- // ReServiceCodeIUBUPK captures enum value "IUBUPK"
- ReServiceCodeIUBUPK ReServiceCode = "IUBUPK"
-
- // ReServiceCodeIUCRT captures enum value "IUCRT"
- ReServiceCodeIUCRT ReServiceCode = "IUCRT"
-
- // ReServiceCodeMS captures enum value "MS"
- ReServiceCodeMS ReServiceCode = "MS"
-
- // ReServiceCodeNSTH captures enum value "NSTH"
- ReServiceCodeNSTH ReServiceCode = "NSTH"
-
- // ReServiceCodeNSTUB captures enum value "NSTUB"
- ReServiceCodeNSTUB ReServiceCode = "NSTUB"
-)
-
-// for schema
-var reServiceCodeEnum []interface{}
-
-func init() {
- var res []ReServiceCode
- if err := json.Unmarshal([]byte(`["CS","DBHF","DBTF","DCRT","DDASIT","DDDSIT","DDFSIT","DDP","DDSHUT","DLH","DMHF","DNPK","DOASIT","DOFSIT","DOP","DOPSIT","DOSHUT","DPK","DSH","DUCRT","DUPK","FSC","IBHF","IBTF","ICOLH","ICOUB","ICRT","IDASIT","IDDSIT","IDFSIT","IDSHUT","IHPK","IHUPK","INPK","IOASIT","IOCLH","IOCUB","IOFSIT","IOOLH","IOOUB","IOPSIT","IOSHUT","IUBPK","IUBUPK","IUCRT","MS","NSTH","NSTUB"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- reServiceCodeEnum = append(reServiceCodeEnum, v)
- }
-}
-
-func (m ReServiceCode) validateReServiceCodeEnum(path, location string, value ReServiceCode) error {
- if err := validate.EnumCase(path, location, value, reServiceCodeEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-// Validate validates this re service code
-func (m ReServiceCode) Validate(formats strfmt.Registry) error {
- var res []error
-
- // value enum
- if err := m.validateReServiceCodeEnum("", "body", m); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validates this re service code based on context it is used
-func (m ReServiceCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
diff --git a/pkg/gen/supportmessages/update_m_t_o_service_item_status.go b/pkg/gen/supportmessages/update_m_t_o_service_item_status.go
deleted file mode 100644
index a2243ef5595..00000000000
--- a/pkg/gen/supportmessages/update_m_t_o_service_item_status.go
+++ /dev/null
@@ -1,108 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
-)
-
-// UpdateMTOServiceItemStatus update m t o service item status
-//
-// swagger:model UpdateMTOServiceItemStatus
-type UpdateMTOServiceItemStatus struct {
-
- // Reason the service item was rejected by the TOO""
- // Example: item was too heavy
- RejectionReason *string `json:"rejectionReason,omitempty"`
-
- // status
- Status MTOServiceItemStatus `json:"status,omitempty"`
-}
-
-// Validate validates this update m t o service item status
-func (m *UpdateMTOServiceItemStatus) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UpdateMTOServiceItemStatus) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this update m t o service item status based on the context it is used
-func (m *UpdateMTOServiceItemStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateStatus(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UpdateMTOServiceItemStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
-
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *UpdateMTOServiceItemStatus) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *UpdateMTOServiceItemStatus) UnmarshalBinary(b []byte) error {
- var res UpdateMTOServiceItemStatus
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/update_m_t_o_shipment_status.go b/pkg/gen/supportmessages/update_m_t_o_shipment_status.go
deleted file mode 100644
index 201ee90a85b..00000000000
--- a/pkg/gen/supportmessages/update_m_t_o_shipment_status.go
+++ /dev/null
@@ -1,121 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// UpdateMTOShipmentStatus update m t o shipment status
-//
-// swagger:model UpdateMTOShipmentStatus
-type UpdateMTOShipmentStatus struct {
-
- // rejection reason
- // Example: MTO Shipment not good enough
- RejectionReason *string `json:"rejectionReason,omitempty"`
-
- // status
- // Enum: [REJECTED APPROVED SUBMITTED CANCELLATION_REQUESTED CANCELED DIVERSION_REQUESTED]
- Status string `json:"status,omitempty"`
-}
-
-// Validate validates this update m t o shipment status
-func (m *UpdateMTOShipmentStatus) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-var updateMTOShipmentStatusTypeStatusPropEnum []interface{}
-
-func init() {
- var res []string
- if err := json.Unmarshal([]byte(`["REJECTED","APPROVED","SUBMITTED","CANCELLATION_REQUESTED","CANCELED","DIVERSION_REQUESTED"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- updateMTOShipmentStatusTypeStatusPropEnum = append(updateMTOShipmentStatusTypeStatusPropEnum, v)
- }
-}
-
-const (
-
- // UpdateMTOShipmentStatusStatusREJECTED captures enum value "REJECTED"
- UpdateMTOShipmentStatusStatusREJECTED string = "REJECTED"
-
- // UpdateMTOShipmentStatusStatusAPPROVED captures enum value "APPROVED"
- UpdateMTOShipmentStatusStatusAPPROVED string = "APPROVED"
-
- // UpdateMTOShipmentStatusStatusSUBMITTED captures enum value "SUBMITTED"
- UpdateMTOShipmentStatusStatusSUBMITTED string = "SUBMITTED"
-
- // UpdateMTOShipmentStatusStatusCANCELLATIONREQUESTED captures enum value "CANCELLATION_REQUESTED"
- UpdateMTOShipmentStatusStatusCANCELLATIONREQUESTED string = "CANCELLATION_REQUESTED"
-
- // UpdateMTOShipmentStatusStatusCANCELED captures enum value "CANCELED"
- UpdateMTOShipmentStatusStatusCANCELED string = "CANCELED"
-
- // UpdateMTOShipmentStatusStatusDIVERSIONREQUESTED captures enum value "DIVERSION_REQUESTED"
- UpdateMTOShipmentStatusStatusDIVERSIONREQUESTED string = "DIVERSION_REQUESTED"
-)
-
-// prop value enum
-func (m *UpdateMTOShipmentStatus) validateStatusEnum(path, location string, value string) error {
- if err := validate.EnumCase(path, location, value, updateMTOShipmentStatusTypeStatusPropEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-func (m *UpdateMTOShipmentStatus) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- // value enum
- if err := m.validateStatusEnum("status", "body", m.Status); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validates this update m t o shipment status based on context it is used
-func (m *UpdateMTOShipmentStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *UpdateMTOShipmentStatus) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *UpdateMTOShipmentStatus) UnmarshalBinary(b []byte) error {
- var res UpdateMTOShipmentStatus
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/update_payment_request_status.go b/pkg/gen/supportmessages/update_payment_request_status.go
deleted file mode 100644
index 3060670f2ea..00000000000
--- a/pkg/gen/supportmessages/update_payment_request_status.go
+++ /dev/null
@@ -1,126 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// UpdatePaymentRequestStatus update payment request status
-//
-// swagger:model UpdatePaymentRequestStatus
-type UpdatePaymentRequestStatus struct {
-
- // Attribute of the payment request object that automatically changes when the request is updated. This matches the value passed in the header for `If-Match`. Required when sending PUT or PATCH requests to prevent updating stale data.
- // Read Only: true
- ETag string `json:"eTag,omitempty"`
-
- // A written reason to provide context for the status.
- // Example: documentation was incomplete
- RejectionReason *string `json:"rejectionReason,omitempty"`
-
- // status
- Status PaymentRequestStatus `json:"status,omitempty"`
-}
-
-// Validate validates this update payment request status
-func (m *UpdatePaymentRequestStatus) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UpdatePaymentRequestStatus) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this update payment request status based on the context it is used
-func (m *UpdatePaymentRequestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateETag(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateStatus(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UpdatePaymentRequestStatus) contextValidateETag(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "eTag", "body", string(m.ETag)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UpdatePaymentRequestStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
-
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *UpdatePaymentRequestStatus) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *UpdatePaymentRequestStatus) UnmarshalBinary(b []byte) error {
- var res UpdatePaymentRequestStatus
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/upload_with_omissions.go b/pkg/gen/supportmessages/upload_with_omissions.go
deleted file mode 100644
index f30bb739563..00000000000
--- a/pkg/gen/supportmessages/upload_with_omissions.go
+++ /dev/null
@@ -1,279 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// UploadWithOmissions An uploaded file.
-//
-// swagger:model UploadWithOmissions
-type UploadWithOmissions struct {
-
- // bytes
- // Required: true
- Bytes *int64 `json:"bytes"`
-
- // content type
- // Example: application/pdf
- // Required: true
- ContentType *string `json:"contentType"`
-
- // created at
- // Read Only: true
- // Format: date-time
- CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`
-
- // filename
- // Example: filename.pdf
- // Required: true
- Filename *string `json:"filename"`
-
- // id
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- ID strfmt.UUID `json:"id,omitempty"`
-
- // rotation
- Rotation int64 `json:"rotation,omitempty"`
-
- // status
- // Enum: [INFECTED CLEAN PROCESSING]
- Status string `json:"status,omitempty"`
-
- // updated at
- // Read Only: true
- // Format: date-time
- UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
-
- // url
- // Example: https://uploads.domain.test/dir/c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uri
- URL strfmt.URI `json:"url,omitempty"`
-}
-
-// Validate validates this upload with omissions
-func (m *UploadWithOmissions) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateBytes(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateContentType(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateCreatedAt(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateFilename(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateUpdatedAt(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateURL(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UploadWithOmissions) validateBytes(formats strfmt.Registry) error {
-
- if err := validate.Required("bytes", "body", m.Bytes); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateContentType(formats strfmt.Registry) error {
-
- if err := validate.Required("contentType", "body", m.ContentType); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateCreatedAt(formats strfmt.Registry) error {
- if swag.IsZero(m.CreatedAt) { // not required
- return nil
- }
-
- if err := validate.FormatOf("createdAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateFilename(formats strfmt.Registry) error {
-
- if err := validate.Required("filename", "body", m.Filename); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateID(formats strfmt.Registry) error {
- if swag.IsZero(m.ID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-var uploadWithOmissionsTypeStatusPropEnum []interface{}
-
-func init() {
- var res []string
- if err := json.Unmarshal([]byte(`["INFECTED","CLEAN","PROCESSING"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- uploadWithOmissionsTypeStatusPropEnum = append(uploadWithOmissionsTypeStatusPropEnum, v)
- }
-}
-
-const (
-
- // UploadWithOmissionsStatusINFECTED captures enum value "INFECTED"
- UploadWithOmissionsStatusINFECTED string = "INFECTED"
-
- // UploadWithOmissionsStatusCLEAN captures enum value "CLEAN"
- UploadWithOmissionsStatusCLEAN string = "CLEAN"
-
- // UploadWithOmissionsStatusPROCESSING captures enum value "PROCESSING"
- UploadWithOmissionsStatusPROCESSING string = "PROCESSING"
-)
-
-// prop value enum
-func (m *UploadWithOmissions) validateStatusEnum(path, location string, value string) error {
- if err := validate.EnumCase(path, location, value, uploadWithOmissionsTypeStatusPropEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-func (m *UploadWithOmissions) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- // value enum
- if err := m.validateStatusEnum("status", "body", m.Status); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateUpdatedAt(formats strfmt.Registry) error {
- if swag.IsZero(m.UpdatedAt) { // not required
- return nil
- }
-
- if err := validate.FormatOf("updatedAt", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) validateURL(formats strfmt.Registry) error {
- if swag.IsZero(m.URL) { // not required
- return nil
- }
-
- if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this upload with omissions based on the context it is used
-func (m *UploadWithOmissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateCreatedAt(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateUpdatedAt(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *UploadWithOmissions) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "createdAt", "body", strfmt.DateTime(m.CreatedAt)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *UploadWithOmissions) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "updatedAt", "body", strfmt.DateTime(m.UpdatedAt)); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *UploadWithOmissions) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *UploadWithOmissions) UnmarshalBinary(b []byte) error {
- var res UploadWithOmissions
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/validation_error.go b/pkg/gen/supportmessages/validation_error.go
deleted file mode 100644
index 49171854b2a..00000000000
--- a/pkg/gen/supportmessages/validation_error.go
+++ /dev/null
@@ -1,132 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// ValidationError validation error
-//
-// swagger:model ValidationError
-type ValidationError struct {
- ClientError
-
- // invalid fields
- // Required: true
- InvalidFields map[string][]string `json:"invalidFields"`
-}
-
-// UnmarshalJSON unmarshals this object from a JSON structure
-func (m *ValidationError) UnmarshalJSON(raw []byte) error {
- // AO0
- var aO0 ClientError
- if err := swag.ReadJSON(raw, &aO0); err != nil {
- return err
- }
- m.ClientError = aO0
-
- // AO1
- var dataAO1 struct {
- InvalidFields map[string][]string `json:"invalidFields"`
- }
- if err := swag.ReadJSON(raw, &dataAO1); err != nil {
- return err
- }
-
- m.InvalidFields = dataAO1.InvalidFields
-
- return nil
-}
-
-// MarshalJSON marshals this object to a JSON structure
-func (m ValidationError) MarshalJSON() ([]byte, error) {
- _parts := make([][]byte, 0, 2)
-
- aO0, err := swag.WriteJSON(m.ClientError)
- if err != nil {
- return nil, err
- }
- _parts = append(_parts, aO0)
- var dataAO1 struct {
- InvalidFields map[string][]string `json:"invalidFields"`
- }
-
- dataAO1.InvalidFields = m.InvalidFields
-
- jsonDataAO1, errAO1 := swag.WriteJSON(dataAO1)
- if errAO1 != nil {
- return nil, errAO1
- }
- _parts = append(_parts, jsonDataAO1)
- return swag.ConcatJSON(_parts...), nil
-}
-
-// Validate validates this validation error
-func (m *ValidationError) Validate(formats strfmt.Registry) error {
- var res []error
-
- // validation for a type composition with ClientError
- if err := m.ClientError.Validate(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateInvalidFields(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *ValidationError) validateInvalidFields(formats strfmt.Registry) error {
-
- if err := validate.Required("invalidFields", "body", m.InvalidFields); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this validation error based on the context it is used
-func (m *ValidationError) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- // validation for a type composition with ClientError
- if err := m.ClientError.ContextValidate(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *ValidationError) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *ValidationError) UnmarshalBinary(b []byte) error {
- var res ValidationError
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/webhook_notification.go b/pkg/gen/supportmessages/webhook_notification.go
deleted file mode 100644
index acaa8d3f34a..00000000000
--- a/pkg/gen/supportmessages/webhook_notification.go
+++ /dev/null
@@ -1,312 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/swag"
- "github.com/go-openapi/validate"
-)
-
-// WebhookNotification webhook notification
-//
-// swagger:model WebhookNotification
-type WebhookNotification struct {
-
- // Time representing when the event was triggered
- // Read Only: true
- // Format: date-time
- CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`
-
- // Name of event triggered
- // Example: PaymentRequest.Update
- EventKey string `json:"eventKey,omitempty"`
-
- // Time representing when the system firstAttempted to send this notification
- // Read Only: true
- // Format: date-time
- FirstAttemptedAt *strfmt.DateTime `json:"firstAttemptedAt,omitempty"`
-
- // id
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Read Only: true
- // Format: uuid
- ID strfmt.UUID `json:"id,omitempty"`
-
- // move task order ID
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- MoveTaskOrderID *strfmt.UUID `json:"moveTaskOrderID,omitempty"`
-
- // object
- Object *string `json:"object,omitempty"`
-
- // object ID
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- ObjectID *strfmt.UUID `json:"objectID,omitempty"`
-
- // status
- Status WebhookNotificationStatus `json:"status,omitempty"`
-
- // trace ID
- // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
- // Format: uuid
- TraceID strfmt.UUID `json:"traceID,omitempty"`
-
- // Time representing when the notification was last updated
- // Read Only: true
- // Format: date-time
- UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
-}
-
-// Validate validates this webhook notification
-func (m *WebhookNotification) Validate(formats strfmt.Registry) error {
- var res []error
-
- if err := m.validateCreatedAt(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateFirstAttemptedAt(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateMoveTaskOrderID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateObjectID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateStatus(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateTraceID(formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.validateUpdatedAt(formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *WebhookNotification) validateCreatedAt(formats strfmt.Registry) error {
- if swag.IsZero(m.CreatedAt) { // not required
- return nil
- }
-
- if err := validate.FormatOf("createdAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateFirstAttemptedAt(formats strfmt.Registry) error {
- if swag.IsZero(m.FirstAttemptedAt) { // not required
- return nil
- }
-
- if err := validate.FormatOf("firstAttemptedAt", "body", "date-time", m.FirstAttemptedAt.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateID(formats strfmt.Registry) error {
- if swag.IsZero(m.ID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateMoveTaskOrderID(formats strfmt.Registry) error {
- if swag.IsZero(m.MoveTaskOrderID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("moveTaskOrderID", "body", "uuid", m.MoveTaskOrderID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateObjectID(formats strfmt.Registry) error {
- if swag.IsZero(m.ObjectID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("objectID", "body", "uuid", m.ObjectID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateStatus(formats strfmt.Registry) error {
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.Validate(formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateTraceID(formats strfmt.Registry) error {
- if swag.IsZero(m.TraceID) { // not required
- return nil
- }
-
- if err := validate.FormatOf("traceID", "body", "uuid", m.TraceID.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) validateUpdatedAt(formats strfmt.Registry) error {
- if swag.IsZero(m.UpdatedAt) { // not required
- return nil
- }
-
- if err := validate.FormatOf("updatedAt", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
- return err
- }
-
- return nil
-}
-
-// ContextValidate validate this webhook notification based on the context it is used
-func (m *WebhookNotification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- var res []error
-
- if err := m.contextValidateCreatedAt(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateFirstAttemptedAt(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateID(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateStatus(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if err := m.contextValidateUpdatedAt(ctx, formats); err != nil {
- res = append(res, err)
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-func (m *WebhookNotification) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "createdAt", "body", strfmt.DateTime(m.CreatedAt)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) contextValidateFirstAttemptedAt(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "firstAttemptedAt", "body", m.FirstAttemptedAt); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
-
- if swag.IsZero(m.Status) { // not required
- return nil
- }
-
- if err := m.Status.ContextValidate(ctx, formats); err != nil {
- if ve, ok := err.(*errors.Validation); ok {
- return ve.ValidateName("status")
- } else if ce, ok := err.(*errors.CompositeError); ok {
- return ce.ValidateName("status")
- }
- return err
- }
-
- return nil
-}
-
-func (m *WebhookNotification) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error {
-
- if err := validate.ReadOnly(ctx, "updatedAt", "body", strfmt.DateTime(m.UpdatedAt)); err != nil {
- return err
- }
-
- return nil
-}
-
-// MarshalBinary interface implementation
-func (m *WebhookNotification) MarshalBinary() ([]byte, error) {
- if m == nil {
- return nil, nil
- }
- return swag.WriteJSON(m)
-}
-
-// UnmarshalBinary interface implementation
-func (m *WebhookNotification) UnmarshalBinary(b []byte) error {
- var res WebhookNotification
- if err := swag.ReadJSON(b, &res); err != nil {
- return err
- }
- *m = res
- return nil
-}
diff --git a/pkg/gen/supportmessages/webhook_notification_status.go b/pkg/gen/supportmessages/webhook_notification_status.go
deleted file mode 100644
index b6ca9f4f176..00000000000
--- a/pkg/gen/supportmessages/webhook_notification_status.go
+++ /dev/null
@@ -1,87 +0,0 @@
-// Code generated by go-swagger; DO NOT EDIT.
-
-package supportmessages
-
-// This file was generated by the swagger tool.
-// Editing this file might prove futile when you re-run the swagger generate command
-
-import (
- "context"
- "encoding/json"
-
- "github.com/go-openapi/errors"
- "github.com/go-openapi/strfmt"
- "github.com/go-openapi/validate"
-)
-
-// WebhookNotificationStatus Statuses available for a Webhook Notification
-//
-// swagger:model WebhookNotificationStatus
-type WebhookNotificationStatus string
-
-func NewWebhookNotificationStatus(value WebhookNotificationStatus) *WebhookNotificationStatus {
- return &value
-}
-
-// Pointer returns a pointer to a freshly-allocated WebhookNotificationStatus.
-func (m WebhookNotificationStatus) Pointer() *WebhookNotificationStatus {
- return &m
-}
-
-const (
-
- // WebhookNotificationStatusPENDING captures enum value "PENDING"
- WebhookNotificationStatusPENDING WebhookNotificationStatus = "PENDING"
-
- // WebhookNotificationStatusSENT captures enum value "SENT"
- WebhookNotificationStatusSENT WebhookNotificationStatus = "SENT"
-
- // WebhookNotificationStatusSKIPPED captures enum value "SKIPPED"
- WebhookNotificationStatusSKIPPED WebhookNotificationStatus = "SKIPPED"
-
- // WebhookNotificationStatusFAILING captures enum value "FAILING"
- WebhookNotificationStatusFAILING WebhookNotificationStatus = "FAILING"
-
- // WebhookNotificationStatusFAILED captures enum value "FAILED"
- WebhookNotificationStatusFAILED WebhookNotificationStatus = "FAILED"
-)
-
-// for schema
-var webhookNotificationStatusEnum []interface{}
-
-func init() {
- var res []WebhookNotificationStatus
- if err := json.Unmarshal([]byte(`["PENDING","SENT","SKIPPED","FAILING","FAILED"]`), &res); err != nil {
- panic(err)
- }
- for _, v := range res {
- webhookNotificationStatusEnum = append(webhookNotificationStatusEnum, v)
- }
-}
-
-func (m WebhookNotificationStatus) validateWebhookNotificationStatusEnum(path, location string, value WebhookNotificationStatus) error {
- if err := validate.EnumCase(path, location, value, webhookNotificationStatusEnum, true); err != nil {
- return err
- }
- return nil
-}
-
-// Validate validates this webhook notification status
-func (m WebhookNotificationStatus) Validate(formats strfmt.Registry) error {
- var res []error
-
- // value enum
- if err := m.validateWebhookNotificationStatusEnum("", "body", m); err != nil {
- return err
- }
-
- if len(res) > 0 {
- return errors.CompositeValidationError(res...)
- }
- return nil
-}
-
-// ContextValidate validates this webhook notification status based on context it is used
-func (m WebhookNotificationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
- return nil
-}
From 1e75690d950c4b15ef46716ba55e4d01e9385f76 Mon Sep 17 00:00:00 2001
From: Beth Grohmann
+
+This is a support endpoint and will not be available in production.
+*/
+type HideNonFakeMoveTaskOrders struct {
+ Context *middleware.Context
+ Handler HideNonFakeMoveTaskOrdersHandler
+}
+
+func (o *HideNonFakeMoveTaskOrders) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewHideNonFakeMoveTaskOrdersParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go
new file mode 100644
index 00000000000..b28c903b281
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_parameters.go
@@ -0,0 +1,46 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// NewHideNonFakeMoveTaskOrdersParams creates a new HideNonFakeMoveTaskOrdersParams object
+//
+// There are no default values defined in the spec.
+func NewHideNonFakeMoveTaskOrdersParams() HideNonFakeMoveTaskOrdersParams {
+
+ return HideNonFakeMoveTaskOrdersParams{}
+}
+
+// HideNonFakeMoveTaskOrdersParams contains all the bound params for the hide non fake move task orders operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters hideNonFakeMoveTaskOrders
+type HideNonFakeMoveTaskOrdersParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+}
+
+// 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 NewHideNonFakeMoveTaskOrdersParams() beforehand.
+func (o *HideNonFakeMoveTaskOrdersParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go
new file mode 100644
index 00000000000..3b8610b7ad1
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_responses.go
@@ -0,0 +1,419 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// HideNonFakeMoveTaskOrdersOKCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersOK
+const HideNonFakeMoveTaskOrdersOKCode int = 200
+
+/*
+HideNonFakeMoveTaskOrdersOK Successfully hid MTOs.
+
+swagger:response hideNonFakeMoveTaskOrdersOK
+*/
+type HideNonFakeMoveTaskOrdersOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.MTOHideMovesResponse `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersOK creates HideNonFakeMoveTaskOrdersOK with default headers values
+func NewHideNonFakeMoveTaskOrdersOK() *HideNonFakeMoveTaskOrdersOK {
+
+ return &HideNonFakeMoveTaskOrdersOK{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders o k response
+func (o *HideNonFakeMoveTaskOrdersOK) WithPayload(payload *supportmessages.MTOHideMovesResponse) *HideNonFakeMoveTaskOrdersOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders o k response
+func (o *HideNonFakeMoveTaskOrdersOK) SetPayload(payload *supportmessages.MTOHideMovesResponse) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersBadRequestCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersBadRequest
+const HideNonFakeMoveTaskOrdersBadRequestCode int = 400
+
+/*
+HideNonFakeMoveTaskOrdersBadRequest The request payload is invalid.
+
+swagger:response hideNonFakeMoveTaskOrdersBadRequest
+*/
+type HideNonFakeMoveTaskOrdersBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersBadRequest creates HideNonFakeMoveTaskOrdersBadRequest with default headers values
+func NewHideNonFakeMoveTaskOrdersBadRequest() *HideNonFakeMoveTaskOrdersBadRequest {
+
+ return &HideNonFakeMoveTaskOrdersBadRequest{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders bad request response
+func (o *HideNonFakeMoveTaskOrdersBadRequest) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders bad request response
+func (o *HideNonFakeMoveTaskOrdersBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersUnauthorizedCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersUnauthorized
+const HideNonFakeMoveTaskOrdersUnauthorizedCode int = 401
+
+/*
+HideNonFakeMoveTaskOrdersUnauthorized The request was denied.
+
+swagger:response hideNonFakeMoveTaskOrdersUnauthorized
+*/
+type HideNonFakeMoveTaskOrdersUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersUnauthorized creates HideNonFakeMoveTaskOrdersUnauthorized with default headers values
+func NewHideNonFakeMoveTaskOrdersUnauthorized() *HideNonFakeMoveTaskOrdersUnauthorized {
+
+ return &HideNonFakeMoveTaskOrdersUnauthorized{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders unauthorized response
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders unauthorized response
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersForbiddenCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersForbidden
+const HideNonFakeMoveTaskOrdersForbiddenCode int = 403
+
+/*
+HideNonFakeMoveTaskOrdersForbidden The request was denied.
+
+swagger:response hideNonFakeMoveTaskOrdersForbidden
+*/
+type HideNonFakeMoveTaskOrdersForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersForbidden creates HideNonFakeMoveTaskOrdersForbidden with default headers values
+func NewHideNonFakeMoveTaskOrdersForbidden() *HideNonFakeMoveTaskOrdersForbidden {
+
+ return &HideNonFakeMoveTaskOrdersForbidden{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders forbidden response
+func (o *HideNonFakeMoveTaskOrdersForbidden) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders forbidden response
+func (o *HideNonFakeMoveTaskOrdersForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersNotFoundCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersNotFound
+const HideNonFakeMoveTaskOrdersNotFoundCode int = 404
+
+/*
+HideNonFakeMoveTaskOrdersNotFound The requested resource wasn't found.
+
+swagger:response hideNonFakeMoveTaskOrdersNotFound
+*/
+type HideNonFakeMoveTaskOrdersNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersNotFound creates HideNonFakeMoveTaskOrdersNotFound with default headers values
+func NewHideNonFakeMoveTaskOrdersNotFound() *HideNonFakeMoveTaskOrdersNotFound {
+
+ return &HideNonFakeMoveTaskOrdersNotFound{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders not found response
+func (o *HideNonFakeMoveTaskOrdersNotFound) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders not found response
+func (o *HideNonFakeMoveTaskOrdersNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersConflictCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersConflict
+const HideNonFakeMoveTaskOrdersConflictCode int = 409
+
+/*
+HideNonFakeMoveTaskOrdersConflict There was a conflict with the request.
+
+swagger:response hideNonFakeMoveTaskOrdersConflict
+*/
+type HideNonFakeMoveTaskOrdersConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersConflict creates HideNonFakeMoveTaskOrdersConflict with default headers values
+func NewHideNonFakeMoveTaskOrdersConflict() *HideNonFakeMoveTaskOrdersConflict {
+
+ return &HideNonFakeMoveTaskOrdersConflict{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders conflict response
+func (o *HideNonFakeMoveTaskOrdersConflict) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders conflict response
+func (o *HideNonFakeMoveTaskOrdersConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersPreconditionFailedCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersPreconditionFailed
+const HideNonFakeMoveTaskOrdersPreconditionFailedCode int = 412
+
+/*
+HideNonFakeMoveTaskOrdersPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response hideNonFakeMoveTaskOrdersPreconditionFailed
+*/
+type HideNonFakeMoveTaskOrdersPreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersPreconditionFailed creates HideNonFakeMoveTaskOrdersPreconditionFailed with default headers values
+func NewHideNonFakeMoveTaskOrdersPreconditionFailed() *HideNonFakeMoveTaskOrdersPreconditionFailed {
+
+ return &HideNonFakeMoveTaskOrdersPreconditionFailed{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders precondition failed response
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *HideNonFakeMoveTaskOrdersPreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders precondition failed response
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersUnprocessableEntityCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersUnprocessableEntity
+const HideNonFakeMoveTaskOrdersUnprocessableEntityCode int = 422
+
+/*
+HideNonFakeMoveTaskOrdersUnprocessableEntity The payload was unprocessable.
+
+swagger:response hideNonFakeMoveTaskOrdersUnprocessableEntity
+*/
+type HideNonFakeMoveTaskOrdersUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersUnprocessableEntity creates HideNonFakeMoveTaskOrdersUnprocessableEntity with default headers values
+func NewHideNonFakeMoveTaskOrdersUnprocessableEntity() *HideNonFakeMoveTaskOrdersUnprocessableEntity {
+
+ return &HideNonFakeMoveTaskOrdersUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders unprocessable entity response
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *HideNonFakeMoveTaskOrdersUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders unprocessable entity response
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// HideNonFakeMoveTaskOrdersInternalServerErrorCode is the HTTP code returned for type HideNonFakeMoveTaskOrdersInternalServerError
+const HideNonFakeMoveTaskOrdersInternalServerErrorCode int = 500
+
+/*
+HideNonFakeMoveTaskOrdersInternalServerError A server error occurred.
+
+swagger:response hideNonFakeMoveTaskOrdersInternalServerError
+*/
+type HideNonFakeMoveTaskOrdersInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewHideNonFakeMoveTaskOrdersInternalServerError creates HideNonFakeMoveTaskOrdersInternalServerError with default headers values
+func NewHideNonFakeMoveTaskOrdersInternalServerError() *HideNonFakeMoveTaskOrdersInternalServerError {
+
+ return &HideNonFakeMoveTaskOrdersInternalServerError{}
+}
+
+// WithPayload adds the payload to the hide non fake move task orders internal server error response
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) WithPayload(payload *supportmessages.Error) *HideNonFakeMoveTaskOrdersInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the hide non fake move task orders internal server error response
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go
new file mode 100644
index 00000000000..ba5762da8b9
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/hide_non_fake_move_task_orders_urlbuilder.go
@@ -0,0 +1,87 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+)
+
+// HideNonFakeMoveTaskOrdersURL generates an URL for the hide non fake move task orders operation
+type HideNonFakeMoveTaskOrdersURL struct {
+ _basePath string
+}
+
+// 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
+func (o *HideNonFakeMoveTaskOrdersURL) WithBasePath(bp string) *HideNonFakeMoveTaskOrdersURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *HideNonFakeMoveTaskOrdersURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *HideNonFakeMoveTaskOrdersURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/move-task-orders/hide"
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *HideNonFakeMoveTaskOrdersURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *HideNonFakeMoveTaskOrdersURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *HideNonFakeMoveTaskOrdersURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on HideNonFakeMoveTaskOrdersURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on HideNonFakeMoveTaskOrdersURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *HideNonFakeMoveTaskOrdersURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go
new file mode 100644
index 00000000000..bdbbabe2ec8
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os.go
@@ -0,0 +1,61 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// ListMTOsHandlerFunc turns a function with the right signature into a list m t os handler
+type ListMTOsHandlerFunc func(ListMTOsParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn ListMTOsHandlerFunc) Handle(params ListMTOsParams) middleware.Responder {
+ return fn(params)
+}
+
+// ListMTOsHandler interface for that can handle valid list m t os params
+type ListMTOsHandler interface {
+ Handle(ListMTOsParams) middleware.Responder
+}
+
+// NewListMTOs creates a new http.Handler for the list m t os operation
+func NewListMTOs(ctx *middleware.Context, handler ListMTOsHandler) *ListMTOs {
+ return &ListMTOs{Context: ctx, Handler: handler}
+}
+
+/*
+ ListMTOs swagger:route GET /move-task-orders moveTaskOrder listMTOs
+
+listMTOs
+
+### Functionality
+This endpoint lists all MoveTaskOrders regardless of whether or not they have been made available to Prime.
+
+It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
+*/
+type ListMTOs struct {
+ Context *middleware.Context
+ Handler ListMTOsHandler
+}
+
+func (o *ListMTOs) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewListMTOsParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go
new file mode 100644
index 00000000000..754c2290e71
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_parameters.go
@@ -0,0 +1,83 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewListMTOsParams creates a new ListMTOsParams object
+//
+// There are no default values defined in the spec.
+func NewListMTOsParams() ListMTOsParams {
+
+ return ListMTOsParams{}
+}
+
+// ListMTOsParams contains all the bound params for the list m t os operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters listMTOs
+type ListMTOsParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Only return move task orders updated since this time.
+ In: query
+ */
+ Since *int64
+}
+
+// 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 NewListMTOsParams() beforehand.
+func (o *ListMTOsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ qs := runtime.Values(r.URL.Query())
+
+ qSince, qhkSince, _ := qs.GetOK("since")
+ if err := o.bindSince(qSince, qhkSince, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindSince binds and validates parameter Since from query.
+func (o *ListMTOsParams) bindSince(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: false
+ // AllowEmptyValue: false
+
+ if raw == "" { // empty values pass all other validations
+ return nil
+ }
+
+ value, err := swag.ConvertInt64(raw)
+ if err != nil {
+ return errors.InvalidType("since", "query", "int64", raw)
+ }
+ o.Since = &value
+
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go
new file mode 100644
index 00000000000..be3f9c979c0
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_responses.go
@@ -0,0 +1,287 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ListMTOsOKCode is the HTTP code returned for type ListMTOsOK
+const ListMTOsOKCode int = 200
+
+/*
+ListMTOsOK Successfully retrieved all move task orders.
+
+swagger:response listMTOsOK
+*/
+type ListMTOsOK struct {
+
+ /*
+ In: Body
+ */
+ Payload supportmessages.MoveTaskOrders `json:"body,omitempty"`
+}
+
+// NewListMTOsOK creates ListMTOsOK with default headers values
+func NewListMTOsOK() *ListMTOsOK {
+
+ return &ListMTOsOK{}
+}
+
+// WithPayload adds the payload to the list m t os o k response
+func (o *ListMTOsOK) WithPayload(payload supportmessages.MoveTaskOrders) *ListMTOsOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os o k response
+func (o *ListMTOsOK) SetPayload(payload supportmessages.MoveTaskOrders) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ payload := o.Payload
+ if payload == nil {
+ // return empty array
+ payload = supportmessages.MoveTaskOrders{}
+ }
+
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+}
+
+// ListMTOsBadRequestCode is the HTTP code returned for type ListMTOsBadRequest
+const ListMTOsBadRequestCode int = 400
+
+/*
+ListMTOsBadRequest The request payload is invalid.
+
+swagger:response listMTOsBadRequest
+*/
+type ListMTOsBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOsBadRequest creates ListMTOsBadRequest with default headers values
+func NewListMTOsBadRequest() *ListMTOsBadRequest {
+
+ return &ListMTOsBadRequest{}
+}
+
+// WithPayload adds the payload to the list m t os bad request response
+func (o *ListMTOsBadRequest) WithPayload(payload *supportmessages.ClientError) *ListMTOsBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os bad request response
+func (o *ListMTOsBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOsUnauthorizedCode is the HTTP code returned for type ListMTOsUnauthorized
+const ListMTOsUnauthorizedCode int = 401
+
+/*
+ListMTOsUnauthorized The request was denied.
+
+swagger:response listMTOsUnauthorized
+*/
+type ListMTOsUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOsUnauthorized creates ListMTOsUnauthorized with default headers values
+func NewListMTOsUnauthorized() *ListMTOsUnauthorized {
+
+ return &ListMTOsUnauthorized{}
+}
+
+// WithPayload adds the payload to the list m t os unauthorized response
+func (o *ListMTOsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ListMTOsUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os unauthorized response
+func (o *ListMTOsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOsForbiddenCode is the HTTP code returned for type ListMTOsForbidden
+const ListMTOsForbiddenCode int = 403
+
+/*
+ListMTOsForbidden The request was denied.
+
+swagger:response listMTOsForbidden
+*/
+type ListMTOsForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOsForbidden creates ListMTOsForbidden with default headers values
+func NewListMTOsForbidden() *ListMTOsForbidden {
+
+ return &ListMTOsForbidden{}
+}
+
+// WithPayload adds the payload to the list m t os forbidden response
+func (o *ListMTOsForbidden) WithPayload(payload *supportmessages.ClientError) *ListMTOsForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os forbidden response
+func (o *ListMTOsForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOsNotFoundCode is the HTTP code returned for type ListMTOsNotFound
+const ListMTOsNotFoundCode int = 404
+
+/*
+ListMTOsNotFound The requested resource wasn't found.
+
+swagger:response listMTOsNotFound
+*/
+type ListMTOsNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOsNotFound creates ListMTOsNotFound with default headers values
+func NewListMTOsNotFound() *ListMTOsNotFound {
+
+ return &ListMTOsNotFound{}
+}
+
+// WithPayload adds the payload to the list m t os not found response
+func (o *ListMTOsNotFound) WithPayload(payload *supportmessages.ClientError) *ListMTOsNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os not found response
+func (o *ListMTOsNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOsInternalServerErrorCode is the HTTP code returned for type ListMTOsInternalServerError
+const ListMTOsInternalServerErrorCode int = 500
+
+/*
+ListMTOsInternalServerError A server error occurred.
+
+swagger:response listMTOsInternalServerError
+*/
+type ListMTOsInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewListMTOsInternalServerError creates ListMTOsInternalServerError with default headers values
+func NewListMTOsInternalServerError() *ListMTOsInternalServerError {
+
+ return &ListMTOsInternalServerError{}
+}
+
+// WithPayload adds the payload to the list m t os internal server error response
+func (o *ListMTOsInternalServerError) WithPayload(payload *supportmessages.Error) *ListMTOsInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t os internal server error response
+func (o *ListMTOsInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go
new file mode 100644
index 00000000000..b78ce93d9e8
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/list_m_t_os_urlbuilder.go
@@ -0,0 +1,105 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+
+ "github.com/go-openapi/swag"
+)
+
+// ListMTOsURL generates an URL for the list m t os operation
+type ListMTOsURL struct {
+ Since *int64
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *ListMTOsURL) WithBasePath(bp string) *ListMTOsURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *ListMTOsURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *ListMTOsURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/move-task-orders"
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ qs := make(url.Values)
+
+ var sinceQ string
+ if o.Since != nil {
+ sinceQ = swag.FormatInt64(*o.Since)
+ }
+ if sinceQ != "" {
+ qs.Set("since", sinceQ)
+ }
+
+ _result.RawQuery = qs.Encode()
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *ListMTOsURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *ListMTOsURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *ListMTOsURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on ListMTOsURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on ListMTOsURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *ListMTOsURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go
new file mode 100644
index 00000000000..203b0a2c1a2
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available.go
@@ -0,0 +1,60 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// MakeMoveTaskOrderAvailableHandlerFunc turns a function with the right signature into a make move task order available handler
+type MakeMoveTaskOrderAvailableHandlerFunc func(MakeMoveTaskOrderAvailableParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn MakeMoveTaskOrderAvailableHandlerFunc) Handle(params MakeMoveTaskOrderAvailableParams) middleware.Responder {
+ return fn(params)
+}
+
+// MakeMoveTaskOrderAvailableHandler interface for that can handle valid make move task order available params
+type MakeMoveTaskOrderAvailableHandler interface {
+ Handle(MakeMoveTaskOrderAvailableParams) middleware.Responder
+}
+
+// NewMakeMoveTaskOrderAvailable creates a new http.Handler for the make move task order available operation
+func NewMakeMoveTaskOrderAvailable(ctx *middleware.Context, handler MakeMoveTaskOrderAvailableHandler) *MakeMoveTaskOrderAvailable {
+ return &MakeMoveTaskOrderAvailable{Context: ctx, Handler: handler}
+}
+
+/*
+ MakeMoveTaskOrderAvailable swagger:route PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime moveTaskOrder makeMoveTaskOrderAvailable
+
+makeMoveTaskOrderAvailable
+
+Updates move task order `availableToPrimeAt` to make it available to prime. No request body required.
+
+This is a support endpoint and will not be available in production.
+*/
+type MakeMoveTaskOrderAvailable struct {
+ Context *middleware.Context
+ Handler MakeMoveTaskOrderAvailableHandler
+}
+
+func (o *MakeMoveTaskOrderAvailable) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewMakeMoveTaskOrderAvailableParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go
new file mode 100644
index 00000000000..f4b48155900
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_parameters.go
@@ -0,0 +1,102 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// NewMakeMoveTaskOrderAvailableParams creates a new MakeMoveTaskOrderAvailableParams object
+//
+// There are no default values defined in the spec.
+func NewMakeMoveTaskOrderAvailableParams() MakeMoveTaskOrderAvailableParams {
+
+ return MakeMoveTaskOrderAvailableParams{}
+}
+
+// MakeMoveTaskOrderAvailableParams contains all the bound params for the make move task order available operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters makeMoveTaskOrderAvailable
+type MakeMoveTaskOrderAvailableParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ Required: true
+ In: header
+ */
+ IfMatch string
+ /*UUID of move task order.
+ Required: true
+ In: path
+ */
+ MoveTaskOrderID string
+}
+
+// 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 NewMakeMoveTaskOrderAvailableParams() beforehand.
+func (o *MakeMoveTaskOrderAvailableParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ rMoveTaskOrderID, rhkMoveTaskOrderID, _ := route.Params.GetOK("moveTaskOrderID")
+ if err := o.bindMoveTaskOrderID(rMoveTaskOrderID, rhkMoveTaskOrderID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindIfMatch binds and validates parameter IfMatch from header.
+func (o *MakeMoveTaskOrderAvailableParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ if !hasKey {
+ return errors.Required("If-Match", "header", rawData)
+ }
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+
+ if err := validate.RequiredString("If-Match", "header", raw); err != nil {
+ return err
+ }
+ o.IfMatch = raw
+
+ return nil
+}
+
+// bindMoveTaskOrderID binds and validates parameter MoveTaskOrderID from path.
+func (o *MakeMoveTaskOrderAvailableParams) bindMoveTaskOrderID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+ o.MoveTaskOrderID = raw
+
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go
new file mode 100644
index 00000000000..9db559ee96c
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_responses.go
@@ -0,0 +1,374 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// MakeMoveTaskOrderAvailableOKCode is the HTTP code returned for type MakeMoveTaskOrderAvailableOK
+const MakeMoveTaskOrderAvailableOKCode int = 200
+
+/*
+MakeMoveTaskOrderAvailableOK Successfully made MTO available to Prime.
+
+swagger:response makeMoveTaskOrderAvailableOK
+*/
+type MakeMoveTaskOrderAvailableOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.MoveTaskOrder `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableOK creates MakeMoveTaskOrderAvailableOK with default headers values
+func NewMakeMoveTaskOrderAvailableOK() *MakeMoveTaskOrderAvailableOK {
+
+ return &MakeMoveTaskOrderAvailableOK{}
+}
+
+// WithPayload adds the payload to the make move task order available o k response
+func (o *MakeMoveTaskOrderAvailableOK) WithPayload(payload *supportmessages.MoveTaskOrder) *MakeMoveTaskOrderAvailableOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available o k response
+func (o *MakeMoveTaskOrderAvailableOK) SetPayload(payload *supportmessages.MoveTaskOrder) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableBadRequestCode is the HTTP code returned for type MakeMoveTaskOrderAvailableBadRequest
+const MakeMoveTaskOrderAvailableBadRequestCode int = 400
+
+/*
+MakeMoveTaskOrderAvailableBadRequest The request payload is invalid.
+
+swagger:response makeMoveTaskOrderAvailableBadRequest
+*/
+type MakeMoveTaskOrderAvailableBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableBadRequest creates MakeMoveTaskOrderAvailableBadRequest with default headers values
+func NewMakeMoveTaskOrderAvailableBadRequest() *MakeMoveTaskOrderAvailableBadRequest {
+
+ return &MakeMoveTaskOrderAvailableBadRequest{}
+}
+
+// WithPayload adds the payload to the make move task order available bad request response
+func (o *MakeMoveTaskOrderAvailableBadRequest) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available bad request response
+func (o *MakeMoveTaskOrderAvailableBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableUnauthorizedCode is the HTTP code returned for type MakeMoveTaskOrderAvailableUnauthorized
+const MakeMoveTaskOrderAvailableUnauthorizedCode int = 401
+
+/*
+MakeMoveTaskOrderAvailableUnauthorized The request was denied.
+
+swagger:response makeMoveTaskOrderAvailableUnauthorized
+*/
+type MakeMoveTaskOrderAvailableUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableUnauthorized creates MakeMoveTaskOrderAvailableUnauthorized with default headers values
+func NewMakeMoveTaskOrderAvailableUnauthorized() *MakeMoveTaskOrderAvailableUnauthorized {
+
+ return &MakeMoveTaskOrderAvailableUnauthorized{}
+}
+
+// WithPayload adds the payload to the make move task order available unauthorized response
+func (o *MakeMoveTaskOrderAvailableUnauthorized) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available unauthorized response
+func (o *MakeMoveTaskOrderAvailableUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableForbiddenCode is the HTTP code returned for type MakeMoveTaskOrderAvailableForbidden
+const MakeMoveTaskOrderAvailableForbiddenCode int = 403
+
+/*
+MakeMoveTaskOrderAvailableForbidden The request was denied.
+
+swagger:response makeMoveTaskOrderAvailableForbidden
+*/
+type MakeMoveTaskOrderAvailableForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableForbidden creates MakeMoveTaskOrderAvailableForbidden with default headers values
+func NewMakeMoveTaskOrderAvailableForbidden() *MakeMoveTaskOrderAvailableForbidden {
+
+ return &MakeMoveTaskOrderAvailableForbidden{}
+}
+
+// WithPayload adds the payload to the make move task order available forbidden response
+func (o *MakeMoveTaskOrderAvailableForbidden) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available forbidden response
+func (o *MakeMoveTaskOrderAvailableForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableNotFoundCode is the HTTP code returned for type MakeMoveTaskOrderAvailableNotFound
+const MakeMoveTaskOrderAvailableNotFoundCode int = 404
+
+/*
+MakeMoveTaskOrderAvailableNotFound The requested resource wasn't found.
+
+swagger:response makeMoveTaskOrderAvailableNotFound
+*/
+type MakeMoveTaskOrderAvailableNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableNotFound creates MakeMoveTaskOrderAvailableNotFound with default headers values
+func NewMakeMoveTaskOrderAvailableNotFound() *MakeMoveTaskOrderAvailableNotFound {
+
+ return &MakeMoveTaskOrderAvailableNotFound{}
+}
+
+// WithPayload adds the payload to the make move task order available not found response
+func (o *MakeMoveTaskOrderAvailableNotFound) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailableNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available not found response
+func (o *MakeMoveTaskOrderAvailableNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailablePreconditionFailedCode is the HTTP code returned for type MakeMoveTaskOrderAvailablePreconditionFailed
+const MakeMoveTaskOrderAvailablePreconditionFailedCode int = 412
+
+/*
+MakeMoveTaskOrderAvailablePreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response makeMoveTaskOrderAvailablePreconditionFailed
+*/
+type MakeMoveTaskOrderAvailablePreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailablePreconditionFailed creates MakeMoveTaskOrderAvailablePreconditionFailed with default headers values
+func NewMakeMoveTaskOrderAvailablePreconditionFailed() *MakeMoveTaskOrderAvailablePreconditionFailed {
+
+ return &MakeMoveTaskOrderAvailablePreconditionFailed{}
+}
+
+// WithPayload adds the payload to the make move task order available precondition failed response
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) WithPayload(payload *supportmessages.ClientError) *MakeMoveTaskOrderAvailablePreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available precondition failed response
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableUnprocessableEntityCode is the HTTP code returned for type MakeMoveTaskOrderAvailableUnprocessableEntity
+const MakeMoveTaskOrderAvailableUnprocessableEntityCode int = 422
+
+/*
+MakeMoveTaskOrderAvailableUnprocessableEntity The payload was unprocessable.
+
+swagger:response makeMoveTaskOrderAvailableUnprocessableEntity
+*/
+type MakeMoveTaskOrderAvailableUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableUnprocessableEntity creates MakeMoveTaskOrderAvailableUnprocessableEntity with default headers values
+func NewMakeMoveTaskOrderAvailableUnprocessableEntity() *MakeMoveTaskOrderAvailableUnprocessableEntity {
+
+ return &MakeMoveTaskOrderAvailableUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the make move task order available unprocessable entity response
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *MakeMoveTaskOrderAvailableUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available unprocessable entity response
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// MakeMoveTaskOrderAvailableInternalServerErrorCode is the HTTP code returned for type MakeMoveTaskOrderAvailableInternalServerError
+const MakeMoveTaskOrderAvailableInternalServerErrorCode int = 500
+
+/*
+MakeMoveTaskOrderAvailableInternalServerError A server error occurred.
+
+swagger:response makeMoveTaskOrderAvailableInternalServerError
+*/
+type MakeMoveTaskOrderAvailableInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewMakeMoveTaskOrderAvailableInternalServerError creates MakeMoveTaskOrderAvailableInternalServerError with default headers values
+func NewMakeMoveTaskOrderAvailableInternalServerError() *MakeMoveTaskOrderAvailableInternalServerError {
+
+ return &MakeMoveTaskOrderAvailableInternalServerError{}
+}
+
+// WithPayload adds the payload to the make move task order available internal server error response
+func (o *MakeMoveTaskOrderAvailableInternalServerError) WithPayload(payload *supportmessages.Error) *MakeMoveTaskOrderAvailableInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the make move task order available internal server error response
+func (o *MakeMoveTaskOrderAvailableInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *MakeMoveTaskOrderAvailableInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go
new file mode 100644
index 00000000000..876b193942f
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/move_task_order/make_move_task_order_available_urlbuilder.go
@@ -0,0 +1,99 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+)
+
+// MakeMoveTaskOrderAvailableURL generates an URL for the make move task order available operation
+type MakeMoveTaskOrderAvailableURL struct {
+ MoveTaskOrderID string
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *MakeMoveTaskOrderAvailableURL) WithBasePath(bp string) *MakeMoveTaskOrderAvailableURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *MakeMoveTaskOrderAvailableURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *MakeMoveTaskOrderAvailableURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/move-task-orders/{moveTaskOrderID}/available-to-prime"
+
+ moveTaskOrderID := o.MoveTaskOrderID
+ if moveTaskOrderID != "" {
+ _path = strings.Replace(_path, "{moveTaskOrderID}", moveTaskOrderID, -1)
+ } else {
+ return nil, errors.New("moveTaskOrderId is required on MakeMoveTaskOrderAvailableURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *MakeMoveTaskOrderAvailableURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *MakeMoveTaskOrderAvailableURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *MakeMoveTaskOrderAvailableURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on MakeMoveTaskOrderAvailableURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on MakeMoveTaskOrderAvailableURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *MakeMoveTaskOrderAvailableURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go
new file mode 100644
index 00000000000..795ce4b9285
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status.go
@@ -0,0 +1,60 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// UpdateMTOServiceItemStatusHandlerFunc turns a function with the right signature into a update m t o service item status handler
+type UpdateMTOServiceItemStatusHandlerFunc func(UpdateMTOServiceItemStatusParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn UpdateMTOServiceItemStatusHandlerFunc) Handle(params UpdateMTOServiceItemStatusParams) middleware.Responder {
+ return fn(params)
+}
+
+// UpdateMTOServiceItemStatusHandler interface for that can handle valid update m t o service item status params
+type UpdateMTOServiceItemStatusHandler interface {
+ Handle(UpdateMTOServiceItemStatusParams) middleware.Responder
+}
+
+// NewUpdateMTOServiceItemStatus creates a new http.Handler for the update m t o service item status operation
+func NewUpdateMTOServiceItemStatus(ctx *middleware.Context, handler UpdateMTOServiceItemStatusHandler) *UpdateMTOServiceItemStatus {
+ return &UpdateMTOServiceItemStatus{Context: ctx, Handler: handler}
+}
+
+/*
+ UpdateMTOServiceItemStatus swagger:route PATCH /mto-service-items/{mtoServiceItemID}/status mtoServiceItem updateMTOServiceItemStatus
+
+updateMTOServiceItemStatus
+
+Updates the status of a service item for a move to APPROVED or REJECTED.
+
+This is a support endpoint and will not be available in production.
+*/
+type UpdateMTOServiceItemStatus struct {
+ Context *middleware.Context
+ Handler UpdateMTOServiceItemStatusHandler
+}
+
+func (o *UpdateMTOServiceItemStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewUpdateMTOServiceItemStatusParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go
new file mode 100644
index 00000000000..84aff8969a1
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_parameters.go
@@ -0,0 +1,139 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "io"
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams object
+//
+// There are no default values defined in the spec.
+func NewUpdateMTOServiceItemStatusParams() UpdateMTOServiceItemStatusParams {
+
+ return UpdateMTOServiceItemStatusParams{}
+}
+
+// UpdateMTOServiceItemStatusParams contains all the bound params for the update m t o service item status operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters updateMTOServiceItemStatus
+type UpdateMTOServiceItemStatusParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ Required: true
+ In: header
+ */
+ IfMatch string
+ /*
+ Required: true
+ In: body
+ */
+ Body *supportmessages.UpdateMTOServiceItemStatus
+ /*UUID of mto service item to use.
+ Required: true
+ In: path
+ */
+ MtoServiceItemID string
+}
+
+// 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 NewUpdateMTOServiceItemStatusParams() beforehand.
+func (o *UpdateMTOServiceItemStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.UpdateMTOServiceItemStatus
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ if err == io.EOF {
+ res = append(res, errors.Required("body", "body", ""))
+ } else {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ }
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ } else {
+ res = append(res, errors.Required("body", "body", ""))
+ }
+
+ rMtoServiceItemID, rhkMtoServiceItemID, _ := route.Params.GetOK("mtoServiceItemID")
+ if err := o.bindMtoServiceItemID(rMtoServiceItemID, rhkMtoServiceItemID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindIfMatch binds and validates parameter IfMatch from header.
+func (o *UpdateMTOServiceItemStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ if !hasKey {
+ return errors.Required("If-Match", "header", rawData)
+ }
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+
+ if err := validate.RequiredString("If-Match", "header", raw); err != nil {
+ return err
+ }
+ o.IfMatch = raw
+
+ return nil
+}
+
+// bindMtoServiceItemID binds and validates parameter MtoServiceItemID from path.
+func (o *UpdateMTOServiceItemStatusParams) bindMtoServiceItemID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+ o.MtoServiceItemID = raw
+
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go
new file mode 100644
index 00000000000..8ef6bd9a8d4
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_responses.go
@@ -0,0 +1,419 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdateMTOServiceItemStatusOKCode is the HTTP code returned for type UpdateMTOServiceItemStatusOK
+const UpdateMTOServiceItemStatusOKCode int = 200
+
+/*
+UpdateMTOServiceItemStatusOK Successfully updated service item status for a move task order.
+
+swagger:response updateMTOServiceItemStatusOK
+*/
+type UpdateMTOServiceItemStatusOK struct {
+
+ /*
+ In: Body
+ */
+ Payload supportmessages.MTOServiceItem `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusOK creates UpdateMTOServiceItemStatusOK with default headers values
+func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK {
+
+ return &UpdateMTOServiceItemStatusOK{}
+}
+
+// WithPayload adds the payload to the update m t o service item status o k response
+func (o *UpdateMTOServiceItemStatusOK) WithPayload(payload supportmessages.MTOServiceItem) *UpdateMTOServiceItemStatusOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status o k response
+func (o *UpdateMTOServiceItemStatusOK) SetPayload(payload supportmessages.MTOServiceItem) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusBadRequestCode is the HTTP code returned for type UpdateMTOServiceItemStatusBadRequest
+const UpdateMTOServiceItemStatusBadRequestCode int = 400
+
+/*
+UpdateMTOServiceItemStatusBadRequest The request payload is invalid.
+
+swagger:response updateMTOServiceItemStatusBadRequest
+*/
+type UpdateMTOServiceItemStatusBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusBadRequest creates UpdateMTOServiceItemStatusBadRequest with default headers values
+func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest {
+
+ return &UpdateMTOServiceItemStatusBadRequest{}
+}
+
+// WithPayload adds the payload to the update m t o service item status bad request response
+func (o *UpdateMTOServiceItemStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status bad request response
+func (o *UpdateMTOServiceItemStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnauthorized
+const UpdateMTOServiceItemStatusUnauthorizedCode int = 401
+
+/*
+UpdateMTOServiceItemStatusUnauthorized The request was denied.
+
+swagger:response updateMTOServiceItemStatusUnauthorized
+*/
+type UpdateMTOServiceItemStatusUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusUnauthorized creates UpdateMTOServiceItemStatusUnauthorized with default headers values
+func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized {
+
+ return &UpdateMTOServiceItemStatusUnauthorized{}
+}
+
+// WithPayload adds the payload to the update m t o service item status unauthorized response
+func (o *UpdateMTOServiceItemStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status unauthorized response
+func (o *UpdateMTOServiceItemStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusForbiddenCode is the HTTP code returned for type UpdateMTOServiceItemStatusForbidden
+const UpdateMTOServiceItemStatusForbiddenCode int = 403
+
+/*
+UpdateMTOServiceItemStatusForbidden The request was denied.
+
+swagger:response updateMTOServiceItemStatusForbidden
+*/
+type UpdateMTOServiceItemStatusForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusForbidden creates UpdateMTOServiceItemStatusForbidden with default headers values
+func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden {
+
+ return &UpdateMTOServiceItemStatusForbidden{}
+}
+
+// WithPayload adds the payload to the update m t o service item status forbidden response
+func (o *UpdateMTOServiceItemStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status forbidden response
+func (o *UpdateMTOServiceItemStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusNotFoundCode is the HTTP code returned for type UpdateMTOServiceItemStatusNotFound
+const UpdateMTOServiceItemStatusNotFoundCode int = 404
+
+/*
+UpdateMTOServiceItemStatusNotFound The requested resource wasn't found.
+
+swagger:response updateMTOServiceItemStatusNotFound
+*/
+type UpdateMTOServiceItemStatusNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusNotFound creates UpdateMTOServiceItemStatusNotFound with default headers values
+func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound {
+
+ return &UpdateMTOServiceItemStatusNotFound{}
+}
+
+// WithPayload adds the payload to the update m t o service item status not found response
+func (o *UpdateMTOServiceItemStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status not found response
+func (o *UpdateMTOServiceItemStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusConflictCode is the HTTP code returned for type UpdateMTOServiceItemStatusConflict
+const UpdateMTOServiceItemStatusConflictCode int = 409
+
+/*
+UpdateMTOServiceItemStatusConflict There was a conflict with the request.
+
+swagger:response updateMTOServiceItemStatusConflict
+*/
+type UpdateMTOServiceItemStatusConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusConflict creates UpdateMTOServiceItemStatusConflict with default headers values
+func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict {
+
+ return &UpdateMTOServiceItemStatusConflict{}
+}
+
+// WithPayload adds the payload to the update m t o service item status conflict response
+func (o *UpdateMTOServiceItemStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status conflict response
+func (o *UpdateMTOServiceItemStatusConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOServiceItemStatusPreconditionFailed
+const UpdateMTOServiceItemStatusPreconditionFailedCode int = 412
+
+/*
+UpdateMTOServiceItemStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response updateMTOServiceItemStatusPreconditionFailed
+*/
+type UpdateMTOServiceItemStatusPreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusPreconditionFailed creates UpdateMTOServiceItemStatusPreconditionFailed with default headers values
+func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed {
+
+ return &UpdateMTOServiceItemStatusPreconditionFailed{}
+}
+
+// WithPayload adds the payload to the update m t o service item status precondition failed response
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdateMTOServiceItemStatusPreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status precondition failed response
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOServiceItemStatusUnprocessableEntity
+const UpdateMTOServiceItemStatusUnprocessableEntityCode int = 422
+
+/*
+UpdateMTOServiceItemStatusUnprocessableEntity The payload was unprocessable.
+
+swagger:response updateMTOServiceItemStatusUnprocessableEntity
+*/
+type UpdateMTOServiceItemStatusUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusUnprocessableEntity creates UpdateMTOServiceItemStatusUnprocessableEntity with default headers values
+func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity {
+
+ return &UpdateMTOServiceItemStatusUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the update m t o service item status unprocessable entity response
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdateMTOServiceItemStatusUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status unprocessable entity response
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOServiceItemStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOServiceItemStatusInternalServerError
+const UpdateMTOServiceItemStatusInternalServerErrorCode int = 500
+
+/*
+UpdateMTOServiceItemStatusInternalServerError A server error occurred.
+
+swagger:response updateMTOServiceItemStatusInternalServerError
+*/
+type UpdateMTOServiceItemStatusInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewUpdateMTOServiceItemStatusInternalServerError creates UpdateMTOServiceItemStatusInternalServerError with default headers values
+func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError {
+
+ return &UpdateMTOServiceItemStatusInternalServerError{}
+}
+
+// WithPayload adds the payload to the update m t o service item status internal server error response
+func (o *UpdateMTOServiceItemStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdateMTOServiceItemStatusInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o service item status internal server error response
+func (o *UpdateMTOServiceItemStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOServiceItemStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go
new file mode 100644
index 00000000000..c9255587b06
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_service_item/update_m_t_o_service_item_status_urlbuilder.go
@@ -0,0 +1,99 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+)
+
+// UpdateMTOServiceItemStatusURL generates an URL for the update m t o service item status operation
+type UpdateMTOServiceItemStatusURL struct {
+ MtoServiceItemID string
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *UpdateMTOServiceItemStatusURL) WithBasePath(bp string) *UpdateMTOServiceItemStatusURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *UpdateMTOServiceItemStatusURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *UpdateMTOServiceItemStatusURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/mto-service-items/{mtoServiceItemID}/status"
+
+ mtoServiceItemID := o.MtoServiceItemID
+ if mtoServiceItemID != "" {
+ _path = strings.Replace(_path, "{mtoServiceItemID}", mtoServiceItemID, -1)
+ } else {
+ return nil, errors.New("mtoServiceItemId is required on UpdateMTOServiceItemStatusURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *UpdateMTOServiceItemStatusURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *UpdateMTOServiceItemStatusURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *UpdateMTOServiceItemStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on UpdateMTOServiceItemStatusURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on UpdateMTOServiceItemStatusURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *UpdateMTOServiceItemStatusURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go
new file mode 100644
index 00000000000..b99cc684796
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status.go
@@ -0,0 +1,58 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// UpdateMTOShipmentStatusHandlerFunc turns a function with the right signature into a update m t o shipment status handler
+type UpdateMTOShipmentStatusHandlerFunc func(UpdateMTOShipmentStatusParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn UpdateMTOShipmentStatusHandlerFunc) Handle(params UpdateMTOShipmentStatusParams) middleware.Responder {
+ return fn(params)
+}
+
+// UpdateMTOShipmentStatusHandler interface for that can handle valid update m t o shipment status params
+type UpdateMTOShipmentStatusHandler interface {
+ Handle(UpdateMTOShipmentStatusParams) middleware.Responder
+}
+
+// NewUpdateMTOShipmentStatus creates a new http.Handler for the update m t o shipment status operation
+func NewUpdateMTOShipmentStatus(ctx *middleware.Context, handler UpdateMTOShipmentStatusHandler) *UpdateMTOShipmentStatus {
+ return &UpdateMTOShipmentStatus{Context: ctx, Handler: handler}
+}
+
+/*
+ UpdateMTOShipmentStatus swagger:route PATCH /mto-shipments/{mtoShipmentID}/status mtoShipment updateMTOShipmentStatus
+
+updateMTOShipmentStatus
+
+Updates a shipment's status to APPROVED or REJECTED for the purpose of testing the Prime API. If APPROVED, `rejectionReason` should be blank and any value passed through the body will be ignored. If REJECTED, a value in `rejectionReason` is required.
This is a support endpoint and will not be available in production.
+*/
+type UpdateMTOShipmentStatus struct {
+ Context *middleware.Context
+ Handler UpdateMTOShipmentStatusHandler
+}
+
+func (o *UpdateMTOShipmentStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewUpdateMTOShipmentStatusParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go
new file mode 100644
index 00000000000..730d906a24d
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_parameters.go
@@ -0,0 +1,158 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "io"
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object
+//
+// There are no default values defined in the spec.
+func NewUpdateMTOShipmentStatusParams() UpdateMTOShipmentStatusParams {
+
+ return UpdateMTOShipmentStatusParams{}
+}
+
+// UpdateMTOShipmentStatusParams contains all the bound params for the update m t o shipment status operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters updateMTOShipmentStatus
+type UpdateMTOShipmentStatusParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ Required: true
+ In: header
+ */
+ IfMatch string
+ /*
+ Required: true
+ In: body
+ */
+ Body *supportmessages.UpdateMTOShipmentStatus
+ /*UUID of the shipment being updated.
+ Required: true
+ In: path
+ */
+ MtoShipmentID strfmt.UUID
+}
+
+// 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 NewUpdateMTOShipmentStatusParams() beforehand.
+func (o *UpdateMTOShipmentStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.UpdateMTOShipmentStatus
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ if err == io.EOF {
+ res = append(res, errors.Required("body", "body", ""))
+ } else {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ }
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ } else {
+ res = append(res, errors.Required("body", "body", ""))
+ }
+
+ rMtoShipmentID, rhkMtoShipmentID, _ := route.Params.GetOK("mtoShipmentID")
+ if err := o.bindMtoShipmentID(rMtoShipmentID, rhkMtoShipmentID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindIfMatch binds and validates parameter IfMatch from header.
+func (o *UpdateMTOShipmentStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ if !hasKey {
+ return errors.Required("If-Match", "header", rawData)
+ }
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+
+ if err := validate.RequiredString("If-Match", "header", raw); err != nil {
+ return err
+ }
+ o.IfMatch = raw
+
+ return nil
+}
+
+// bindMtoShipmentID binds and validates parameter MtoShipmentID from path.
+func (o *UpdateMTOShipmentStatusParams) bindMtoShipmentID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+
+ // Format: uuid
+ value, err := formats.Parse("uuid", raw)
+ if err != nil {
+ return errors.InvalidType("mtoShipmentID", "path", "strfmt.UUID", raw)
+ }
+ o.MtoShipmentID = *(value.(*strfmt.UUID))
+
+ if err := o.validateMtoShipmentID(formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// validateMtoShipmentID carries on validations for parameter MtoShipmentID
+func (o *UpdateMTOShipmentStatusParams) validateMtoShipmentID(formats strfmt.Registry) error {
+
+ if err := validate.FormatOf("mtoShipmentID", "path", "uuid", o.MtoShipmentID.String(), formats); err != nil {
+ return err
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go
new file mode 100644
index 00000000000..8fb69fb0fdd
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_responses.go
@@ -0,0 +1,419 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdateMTOShipmentStatusOKCode is the HTTP code returned for type UpdateMTOShipmentStatusOK
+const UpdateMTOShipmentStatusOKCode int = 200
+
+/*
+UpdateMTOShipmentStatusOK Successfully updated the shipment's status.
+
+swagger:response updateMTOShipmentStatusOK
+*/
+type UpdateMTOShipmentStatusOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.MTOShipment `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusOK creates UpdateMTOShipmentStatusOK with default headers values
+func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK {
+
+ return &UpdateMTOShipmentStatusOK{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status o k response
+func (o *UpdateMTOShipmentStatusOK) WithPayload(payload *supportmessages.MTOShipment) *UpdateMTOShipmentStatusOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status o k response
+func (o *UpdateMTOShipmentStatusOK) SetPayload(payload *supportmessages.MTOShipment) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusBadRequestCode is the HTTP code returned for type UpdateMTOShipmentStatusBadRequest
+const UpdateMTOShipmentStatusBadRequestCode int = 400
+
+/*
+UpdateMTOShipmentStatusBadRequest The request payload is invalid.
+
+swagger:response updateMTOShipmentStatusBadRequest
+*/
+type UpdateMTOShipmentStatusBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusBadRequest creates UpdateMTOShipmentStatusBadRequest with default headers values
+func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest {
+
+ return &UpdateMTOShipmentStatusBadRequest{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status bad request response
+func (o *UpdateMTOShipmentStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status bad request response
+func (o *UpdateMTOShipmentStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusUnauthorizedCode is the HTTP code returned for type UpdateMTOShipmentStatusUnauthorized
+const UpdateMTOShipmentStatusUnauthorizedCode int = 401
+
+/*
+UpdateMTOShipmentStatusUnauthorized The request was denied.
+
+swagger:response updateMTOShipmentStatusUnauthorized
+*/
+type UpdateMTOShipmentStatusUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusUnauthorized creates UpdateMTOShipmentStatusUnauthorized with default headers values
+func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized {
+
+ return &UpdateMTOShipmentStatusUnauthorized{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status unauthorized response
+func (o *UpdateMTOShipmentStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status unauthorized response
+func (o *UpdateMTOShipmentStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusForbiddenCode is the HTTP code returned for type UpdateMTOShipmentStatusForbidden
+const UpdateMTOShipmentStatusForbiddenCode int = 403
+
+/*
+UpdateMTOShipmentStatusForbidden The request was denied.
+
+swagger:response updateMTOShipmentStatusForbidden
+*/
+type UpdateMTOShipmentStatusForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusForbidden creates UpdateMTOShipmentStatusForbidden with default headers values
+func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden {
+
+ return &UpdateMTOShipmentStatusForbidden{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status forbidden response
+func (o *UpdateMTOShipmentStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status forbidden response
+func (o *UpdateMTOShipmentStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusNotFoundCode is the HTTP code returned for type UpdateMTOShipmentStatusNotFound
+const UpdateMTOShipmentStatusNotFoundCode int = 404
+
+/*
+UpdateMTOShipmentStatusNotFound The requested resource wasn't found.
+
+swagger:response updateMTOShipmentStatusNotFound
+*/
+type UpdateMTOShipmentStatusNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusNotFound creates UpdateMTOShipmentStatusNotFound with default headers values
+func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound {
+
+ return &UpdateMTOShipmentStatusNotFound{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status not found response
+func (o *UpdateMTOShipmentStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status not found response
+func (o *UpdateMTOShipmentStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusConflictCode is the HTTP code returned for type UpdateMTOShipmentStatusConflict
+const UpdateMTOShipmentStatusConflictCode int = 409
+
+/*
+UpdateMTOShipmentStatusConflict There was a conflict with the request.
+
+swagger:response updateMTOShipmentStatusConflict
+*/
+type UpdateMTOShipmentStatusConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusConflict creates UpdateMTOShipmentStatusConflict with default headers values
+func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict {
+
+ return &UpdateMTOShipmentStatusConflict{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status conflict response
+func (o *UpdateMTOShipmentStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status conflict response
+func (o *UpdateMTOShipmentStatusConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusPreconditionFailedCode is the HTTP code returned for type UpdateMTOShipmentStatusPreconditionFailed
+const UpdateMTOShipmentStatusPreconditionFailedCode int = 412
+
+/*
+UpdateMTOShipmentStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response updateMTOShipmentStatusPreconditionFailed
+*/
+type UpdateMTOShipmentStatusPreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusPreconditionFailed creates UpdateMTOShipmentStatusPreconditionFailed with default headers values
+func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed {
+
+ return &UpdateMTOShipmentStatusPreconditionFailed{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status precondition failed response
+func (o *UpdateMTOShipmentStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdateMTOShipmentStatusPreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status precondition failed response
+func (o *UpdateMTOShipmentStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusUnprocessableEntityCode is the HTTP code returned for type UpdateMTOShipmentStatusUnprocessableEntity
+const UpdateMTOShipmentStatusUnprocessableEntityCode int = 422
+
+/*
+UpdateMTOShipmentStatusUnprocessableEntity The payload was unprocessable.
+
+swagger:response updateMTOShipmentStatusUnprocessableEntity
+*/
+type UpdateMTOShipmentStatusUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusUnprocessableEntity creates UpdateMTOShipmentStatusUnprocessableEntity with default headers values
+func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity {
+
+ return &UpdateMTOShipmentStatusUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status unprocessable entity response
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdateMTOShipmentStatusUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status unprocessable entity response
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdateMTOShipmentStatusInternalServerErrorCode is the HTTP code returned for type UpdateMTOShipmentStatusInternalServerError
+const UpdateMTOShipmentStatusInternalServerErrorCode int = 500
+
+/*
+UpdateMTOShipmentStatusInternalServerError A server error occurred.
+
+swagger:response updateMTOShipmentStatusInternalServerError
+*/
+type UpdateMTOShipmentStatusInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewUpdateMTOShipmentStatusInternalServerError creates UpdateMTOShipmentStatusInternalServerError with default headers values
+func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError {
+
+ return &UpdateMTOShipmentStatusInternalServerError{}
+}
+
+// WithPayload adds the payload to the update m t o shipment status internal server error response
+func (o *UpdateMTOShipmentStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdateMTOShipmentStatusInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update m t o shipment status internal server error response
+func (o *UpdateMTOShipmentStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdateMTOShipmentStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go
new file mode 100644
index 00000000000..6637961762f
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mto_shipment/update_m_t_o_shipment_status_urlbuilder.go
@@ -0,0 +1,101 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// UpdateMTOShipmentStatusURL generates an URL for the update m t o shipment status operation
+type UpdateMTOShipmentStatusURL struct {
+ MtoShipmentID strfmt.UUID
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *UpdateMTOShipmentStatusURL) WithBasePath(bp string) *UpdateMTOShipmentStatusURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *UpdateMTOShipmentStatusURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *UpdateMTOShipmentStatusURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/mto-shipments/{mtoShipmentID}/status"
+
+ mtoShipmentID := o.MtoShipmentID.String()
+ if mtoShipmentID != "" {
+ _path = strings.Replace(_path, "{mtoShipmentID}", mtoShipmentID, -1)
+ } else {
+ return nil, errors.New("mtoShipmentId is required on UpdateMTOShipmentStatusURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *UpdateMTOShipmentStatusURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *UpdateMTOShipmentStatusURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *UpdateMTOShipmentStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on UpdateMTOShipmentStatusURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on UpdateMTOShipmentStatusURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *UpdateMTOShipmentStatusURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/mymove_api.go b/pkg/gen/supportapi/supportoperations/mymove_api.go
new file mode 100644
index 00000000000..7a9a7b04e5b
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/mymove_api.go
@@ -0,0 +1,469 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportoperations
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "net/http"
+ "strings"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/loads"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/runtime/security"
+ "github.com/go-openapi/spec"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+
+ "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/move_task_order"
+ "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/mto_service_item"
+ "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/mto_shipment"
+ "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/payment_request"
+ "github.com/transcom/mymove/pkg/gen/supportapi/supportoperations/webhook"
+)
+
+// NewMymoveAPI creates a new Mymove instance
+func NewMymoveAPI(spec *loads.Document) *MymoveAPI {
+ return &MymoveAPI{
+ handlers: make(map[string]map[string]http.Handler),
+ formats: strfmt.Default,
+ defaultConsumes: "application/json",
+ defaultProduces: "application/json",
+ customConsumers: make(map[string]runtime.Consumer),
+ customProducers: make(map[string]runtime.Producer),
+ PreServerShutdown: func() {},
+ ServerShutdown: func() {},
+ spec: spec,
+ useSwaggerUI: false,
+ ServeError: errors.ServeError,
+ BasicAuthenticator: security.BasicAuth,
+ APIKeyAuthenticator: security.APIKeyAuth,
+ BearerAuthenticator: security.BearerAuth,
+
+ JSONConsumer: runtime.JSONConsumer(),
+
+ JSONProducer: runtime.JSONProducer(),
+
+ MoveTaskOrderCreateMoveTaskOrderHandler: move_task_order.CreateMoveTaskOrderHandlerFunc(func(params move_task_order.CreateMoveTaskOrderParams) middleware.Responder {
+ return middleware.NotImplemented("operation move_task_order.CreateMoveTaskOrder has not yet been implemented")
+ }),
+ WebhookCreateWebhookNotificationHandler: webhook.CreateWebhookNotificationHandlerFunc(func(params webhook.CreateWebhookNotificationParams) middleware.Responder {
+ return middleware.NotImplemented("operation webhook.CreateWebhookNotification has not yet been implemented")
+ }),
+ MoveTaskOrderGetMoveTaskOrderHandler: move_task_order.GetMoveTaskOrderHandlerFunc(func(params move_task_order.GetMoveTaskOrderParams) middleware.Responder {
+ return middleware.NotImplemented("operation move_task_order.GetMoveTaskOrder has not yet been implemented")
+ }),
+ PaymentRequestGetPaymentRequestEDIHandler: payment_request.GetPaymentRequestEDIHandlerFunc(func(params payment_request.GetPaymentRequestEDIParams) middleware.Responder {
+ return middleware.NotImplemented("operation payment_request.GetPaymentRequestEDI has not yet been implemented")
+ }),
+ MoveTaskOrderHideNonFakeMoveTaskOrdersHandler: move_task_order.HideNonFakeMoveTaskOrdersHandlerFunc(func(params move_task_order.HideNonFakeMoveTaskOrdersParams) middleware.Responder {
+ return middleware.NotImplemented("operation move_task_order.HideNonFakeMoveTaskOrders has not yet been implemented")
+ }),
+ PaymentRequestListMTOPaymentRequestsHandler: payment_request.ListMTOPaymentRequestsHandlerFunc(func(params payment_request.ListMTOPaymentRequestsParams) middleware.Responder {
+ return middleware.NotImplemented("operation payment_request.ListMTOPaymentRequests has not yet been implemented")
+ }),
+ MoveTaskOrderListMTOsHandler: move_task_order.ListMTOsHandlerFunc(func(params move_task_order.ListMTOsParams) middleware.Responder {
+ return middleware.NotImplemented("operation move_task_order.ListMTOs has not yet been implemented")
+ }),
+ MoveTaskOrderMakeMoveTaskOrderAvailableHandler: move_task_order.MakeMoveTaskOrderAvailableHandlerFunc(func(params move_task_order.MakeMoveTaskOrderAvailableParams) middleware.Responder {
+ return middleware.NotImplemented("operation move_task_order.MakeMoveTaskOrderAvailable has not yet been implemented")
+ }),
+ PaymentRequestProcessReviewedPaymentRequestsHandler: payment_request.ProcessReviewedPaymentRequestsHandlerFunc(func(params payment_request.ProcessReviewedPaymentRequestsParams) middleware.Responder {
+ return middleware.NotImplemented("operation payment_request.ProcessReviewedPaymentRequests has not yet been implemented")
+ }),
+ PaymentRequestRecalculatePaymentRequestHandler: payment_request.RecalculatePaymentRequestHandlerFunc(func(params payment_request.RecalculatePaymentRequestParams) middleware.Responder {
+ return middleware.NotImplemented("operation payment_request.RecalculatePaymentRequest has not yet been implemented")
+ }),
+ WebhookReceiveWebhookNotificationHandler: webhook.ReceiveWebhookNotificationHandlerFunc(func(params webhook.ReceiveWebhookNotificationParams) middleware.Responder {
+ return middleware.NotImplemented("operation webhook.ReceiveWebhookNotification has not yet been implemented")
+ }),
+ MtoServiceItemUpdateMTOServiceItemStatusHandler: mto_service_item.UpdateMTOServiceItemStatusHandlerFunc(func(params mto_service_item.UpdateMTOServiceItemStatusParams) middleware.Responder {
+ return middleware.NotImplemented("operation mto_service_item.UpdateMTOServiceItemStatus has not yet been implemented")
+ }),
+ MtoShipmentUpdateMTOShipmentStatusHandler: mto_shipment.UpdateMTOShipmentStatusHandlerFunc(func(params mto_shipment.UpdateMTOShipmentStatusParams) middleware.Responder {
+ return middleware.NotImplemented("operation mto_shipment.UpdateMTOShipmentStatus has not yet been implemented")
+ }),
+ PaymentRequestUpdatePaymentRequestStatusHandler: payment_request.UpdatePaymentRequestStatusHandlerFunc(func(params payment_request.UpdatePaymentRequestStatusParams) middleware.Responder {
+ return middleware.NotImplemented("operation payment_request.UpdatePaymentRequestStatus has not yet been implemented")
+ }),
+ }
+}
+
+/*
+MymoveAPI The Support API gives you programmatic access to support functionality useful
+for testing and debugging. **This API is not available in the Production
+environment**.
+
+All endpoints are located at `/support/v1/`.
+*/
+type MymoveAPI struct {
+ spec *loads.Document
+ context *middleware.Context
+ handlers map[string]map[string]http.Handler
+ formats strfmt.Registry
+ customConsumers map[string]runtime.Consumer
+ customProducers map[string]runtime.Producer
+ defaultConsumes string
+ defaultProduces string
+ Middleware func(middleware.Builder) http.Handler
+ useSwaggerUI bool
+
+ // 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
+
+ // MoveTaskOrderCreateMoveTaskOrderHandler sets the operation handler for the create move task order operation
+ MoveTaskOrderCreateMoveTaskOrderHandler move_task_order.CreateMoveTaskOrderHandler
+ // WebhookCreateWebhookNotificationHandler sets the operation handler for the create webhook notification operation
+ WebhookCreateWebhookNotificationHandler webhook.CreateWebhookNotificationHandler
+ // MoveTaskOrderGetMoveTaskOrderHandler sets the operation handler for the get move task order operation
+ MoveTaskOrderGetMoveTaskOrderHandler move_task_order.GetMoveTaskOrderHandler
+ // PaymentRequestGetPaymentRequestEDIHandler sets the operation handler for the get payment request e d i operation
+ PaymentRequestGetPaymentRequestEDIHandler payment_request.GetPaymentRequestEDIHandler
+ // MoveTaskOrderHideNonFakeMoveTaskOrdersHandler sets the operation handler for the hide non fake move task orders operation
+ MoveTaskOrderHideNonFakeMoveTaskOrdersHandler move_task_order.HideNonFakeMoveTaskOrdersHandler
+ // PaymentRequestListMTOPaymentRequestsHandler sets the operation handler for the list m t o payment requests operation
+ PaymentRequestListMTOPaymentRequestsHandler payment_request.ListMTOPaymentRequestsHandler
+ // MoveTaskOrderListMTOsHandler sets the operation handler for the list m t os operation
+ MoveTaskOrderListMTOsHandler move_task_order.ListMTOsHandler
+ // MoveTaskOrderMakeMoveTaskOrderAvailableHandler sets the operation handler for the make move task order available operation
+ MoveTaskOrderMakeMoveTaskOrderAvailableHandler move_task_order.MakeMoveTaskOrderAvailableHandler
+ // PaymentRequestProcessReviewedPaymentRequestsHandler sets the operation handler for the process reviewed payment requests operation
+ PaymentRequestProcessReviewedPaymentRequestsHandler payment_request.ProcessReviewedPaymentRequestsHandler
+ // PaymentRequestRecalculatePaymentRequestHandler sets the operation handler for the recalculate payment request operation
+ PaymentRequestRecalculatePaymentRequestHandler payment_request.RecalculatePaymentRequestHandler
+ // WebhookReceiveWebhookNotificationHandler sets the operation handler for the receive webhook notification operation
+ WebhookReceiveWebhookNotificationHandler webhook.ReceiveWebhookNotificationHandler
+ // MtoServiceItemUpdateMTOServiceItemStatusHandler sets the operation handler for the update m t o service item status operation
+ MtoServiceItemUpdateMTOServiceItemStatusHandler mto_service_item.UpdateMTOServiceItemStatusHandler
+ // MtoShipmentUpdateMTOShipmentStatusHandler sets the operation handler for the update m t o shipment status operation
+ MtoShipmentUpdateMTOShipmentStatusHandler mto_shipment.UpdateMTOShipmentStatusHandler
+ // PaymentRequestUpdatePaymentRequestStatusHandler sets the operation handler for the update payment request status operation
+ PaymentRequestUpdatePaymentRequestStatusHandler payment_request.UpdatePaymentRequestStatusHandler
+
+ // 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{})
+}
+
+// UseRedoc for documentation at /docs
+func (o *MymoveAPI) UseRedoc() {
+ o.useSwaggerUI = false
+}
+
+// UseSwaggerUI for documentation at /docs
+func (o *MymoveAPI) UseSwaggerUI() {
+ o.useSwaggerUI = true
+}
+
+// SetDefaultProduces sets the default produces media type
+func (o *MymoveAPI) SetDefaultProduces(mediaType string) {
+ o.defaultProduces = mediaType
+}
+
+// SetDefaultConsumes returns the default consumes media type
+func (o *MymoveAPI) SetDefaultConsumes(mediaType string) {
+ o.defaultConsumes = mediaType
+}
+
+// SetSpec sets a spec that will be served for the clients.
+func (o *MymoveAPI) SetSpec(spec *loads.Document) {
+ o.spec = spec
+}
+
+// DefaultProduces returns the default produces media type
+func (o *MymoveAPI) DefaultProduces() string {
+ return o.defaultProduces
+}
+
+// DefaultConsumes returns the default consumes media type
+func (o *MymoveAPI) DefaultConsumes() string {
+ return o.defaultConsumes
+}
+
+// Formats returns the registered string formats
+func (o *MymoveAPI) Formats() strfmt.Registry {
+ return o.formats
+}
+
+// RegisterFormat registers a custom format validator
+func (o *MymoveAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator) {
+ o.formats.Add(name, format, validator)
+}
+
+// Validate validates the registrations in the MymoveAPI
+func (o *MymoveAPI) Validate() error {
+ var unregistered []string
+
+ if o.JSONConsumer == nil {
+ unregistered = append(unregistered, "JSONConsumer")
+ }
+
+ if o.JSONProducer == nil {
+ unregistered = append(unregistered, "JSONProducer")
+ }
+
+ if o.MoveTaskOrderCreateMoveTaskOrderHandler == nil {
+ unregistered = append(unregistered, "move_task_order.CreateMoveTaskOrderHandler")
+ }
+ if o.WebhookCreateWebhookNotificationHandler == nil {
+ unregistered = append(unregistered, "webhook.CreateWebhookNotificationHandler")
+ }
+ if o.MoveTaskOrderGetMoveTaskOrderHandler == nil {
+ unregistered = append(unregistered, "move_task_order.GetMoveTaskOrderHandler")
+ }
+ if o.PaymentRequestGetPaymentRequestEDIHandler == nil {
+ unregistered = append(unregistered, "payment_request.GetPaymentRequestEDIHandler")
+ }
+ if o.MoveTaskOrderHideNonFakeMoveTaskOrdersHandler == nil {
+ unregistered = append(unregistered, "move_task_order.HideNonFakeMoveTaskOrdersHandler")
+ }
+ if o.PaymentRequestListMTOPaymentRequestsHandler == nil {
+ unregistered = append(unregistered, "payment_request.ListMTOPaymentRequestsHandler")
+ }
+ if o.MoveTaskOrderListMTOsHandler == nil {
+ unregistered = append(unregistered, "move_task_order.ListMTOsHandler")
+ }
+ if o.MoveTaskOrderMakeMoveTaskOrderAvailableHandler == nil {
+ unregistered = append(unregistered, "move_task_order.MakeMoveTaskOrderAvailableHandler")
+ }
+ if o.PaymentRequestProcessReviewedPaymentRequestsHandler == nil {
+ unregistered = append(unregistered, "payment_request.ProcessReviewedPaymentRequestsHandler")
+ }
+ if o.PaymentRequestRecalculatePaymentRequestHandler == nil {
+ unregistered = append(unregistered, "payment_request.RecalculatePaymentRequestHandler")
+ }
+ if o.WebhookReceiveWebhookNotificationHandler == nil {
+ unregistered = append(unregistered, "webhook.ReceiveWebhookNotificationHandler")
+ }
+ if o.MtoServiceItemUpdateMTOServiceItemStatusHandler == nil {
+ unregistered = append(unregistered, "mto_service_item.UpdateMTOServiceItemStatusHandler")
+ }
+ if o.MtoShipmentUpdateMTOShipmentStatusHandler == nil {
+ unregistered = append(unregistered, "mto_shipment.UpdateMTOShipmentStatusHandler")
+ }
+ if o.PaymentRequestUpdatePaymentRequestStatusHandler == nil {
+ unregistered = append(unregistered, "payment_request.UpdatePaymentRequestStatusHandler")
+ }
+
+ if len(unregistered) > 0 {
+ return fmt.Errorf("missing registration: %s", strings.Join(unregistered, ", "))
+ }
+
+ return nil
+}
+
+// ServeErrorFor gets a error handler for a given operation id
+func (o *MymoveAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error) {
+ return o.ServeError
+}
+
+// AuthenticatorsFor gets the authenticators for the specified security schemes
+func (o *MymoveAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator {
+ return nil
+}
+
+// Authorizer returns the registered authorizer
+func (o *MymoveAPI) Authorizer() runtime.Authorizer {
+ return nil
+}
+
+// ConsumersFor gets the consumers for the specified media types.
+// MIME type parameters are ignored here.
+func (o *MymoveAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer {
+ result := make(map[string]runtime.Consumer, len(mediaTypes))
+ for _, mt := range mediaTypes {
+ switch mt {
+ case "application/json":
+ result["application/json"] = o.JSONConsumer
+ }
+
+ if c, ok := o.customConsumers[mt]; ok {
+ result[mt] = c
+ }
+ }
+ return result
+}
+
+// ProducersFor gets the producers for the specified media types.
+// MIME type parameters are ignored here.
+func (o *MymoveAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer {
+ result := make(map[string]runtime.Producer, len(mediaTypes))
+ for _, mt := range mediaTypes {
+ switch mt {
+ case "application/json":
+ result["application/json"] = o.JSONProducer
+ }
+
+ if p, ok := o.customProducers[mt]; ok {
+ result[mt] = p
+ }
+ }
+ return result
+}
+
+// HandlerFor gets a http.Handler for the provided operation method and path
+func (o *MymoveAPI) HandlerFor(method, path string) (http.Handler, bool) {
+ if o.handlers == nil {
+ return nil, false
+ }
+ um := strings.ToUpper(method)
+ if _, ok := o.handlers[um]; !ok {
+ return nil, false
+ }
+ if path == "/" {
+ path = ""
+ }
+ h, ok := o.handlers[um][path]
+ return h, ok
+}
+
+// Context returns the middleware context for the mymove API
+func (o *MymoveAPI) Context() *middleware.Context {
+ if o.context == nil {
+ o.context = middleware.NewRoutableContext(o.spec, o, nil)
+ }
+
+ return o.context
+}
+
+func (o *MymoveAPI) initHandlerCache() {
+ o.Context() // don't care about the result, just that the initialization happened
+ if o.handlers == nil {
+ o.handlers = make(map[string]map[string]http.Handler)
+ }
+
+ if o.handlers["POST"] == nil {
+ o.handlers["POST"] = make(map[string]http.Handler)
+ }
+ o.handlers["POST"]["/move-task-orders"] = move_task_order.NewCreateMoveTaskOrder(o.context, o.MoveTaskOrderCreateMoveTaskOrderHandler)
+ if o.handlers["POST"] == nil {
+ o.handlers["POST"] = make(map[string]http.Handler)
+ }
+ o.handlers["POST"]["/webhook-notifications"] = webhook.NewCreateWebhookNotification(o.context, o.WebhookCreateWebhookNotificationHandler)
+ if o.handlers["GET"] == nil {
+ o.handlers["GET"] = make(map[string]http.Handler)
+ }
+ o.handlers["GET"]["/move-task-orders/{moveTaskOrderID}"] = move_task_order.NewGetMoveTaskOrder(o.context, o.MoveTaskOrderGetMoveTaskOrderHandler)
+ if o.handlers["GET"] == nil {
+ o.handlers["GET"] = make(map[string]http.Handler)
+ }
+ o.handlers["GET"]["/payment-requests/{paymentRequestID}/edi"] = payment_request.NewGetPaymentRequestEDI(o.context, o.PaymentRequestGetPaymentRequestEDIHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/move-task-orders/hide"] = move_task_order.NewHideNonFakeMoveTaskOrders(o.context, o.MoveTaskOrderHideNonFakeMoveTaskOrdersHandler)
+ if o.handlers["GET"] == nil {
+ o.handlers["GET"] = make(map[string]http.Handler)
+ }
+ o.handlers["GET"]["/move-task-orders/{moveTaskOrderID}/payment-requests"] = payment_request.NewListMTOPaymentRequests(o.context, o.PaymentRequestListMTOPaymentRequestsHandler)
+ if o.handlers["GET"] == nil {
+ o.handlers["GET"] = make(map[string]http.Handler)
+ }
+ o.handlers["GET"]["/move-task-orders"] = move_task_order.NewListMTOs(o.context, o.MoveTaskOrderListMTOsHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/move-task-orders/{moveTaskOrderID}/available-to-prime"] = move_task_order.NewMakeMoveTaskOrderAvailable(o.context, o.MoveTaskOrderMakeMoveTaskOrderAvailableHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/payment-requests/process-reviewed"] = payment_request.NewProcessReviewedPaymentRequests(o.context, o.PaymentRequestProcessReviewedPaymentRequestsHandler)
+ if o.handlers["POST"] == nil {
+ o.handlers["POST"] = make(map[string]http.Handler)
+ }
+ o.handlers["POST"]["/payment-requests/{paymentRequestID}/recalculate"] = payment_request.NewRecalculatePaymentRequest(o.context, o.PaymentRequestRecalculatePaymentRequestHandler)
+ if o.handlers["POST"] == nil {
+ o.handlers["POST"] = make(map[string]http.Handler)
+ }
+ o.handlers["POST"]["/webhook-notify"] = webhook.NewReceiveWebhookNotification(o.context, o.WebhookReceiveWebhookNotificationHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/mto-service-items/{mtoServiceItemID}/status"] = mto_service_item.NewUpdateMTOServiceItemStatus(o.context, o.MtoServiceItemUpdateMTOServiceItemStatusHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/mto-shipments/{mtoShipmentID}/status"] = mto_shipment.NewUpdateMTOShipmentStatus(o.context, o.MtoShipmentUpdateMTOShipmentStatusHandler)
+ if o.handlers["PATCH"] == nil {
+ o.handlers["PATCH"] = make(map[string]http.Handler)
+ }
+ o.handlers["PATCH"]["/payment-requests/{paymentRequestID}/status"] = payment_request.NewUpdatePaymentRequestStatus(o.context, o.PaymentRequestUpdatePaymentRequestStatusHandler)
+}
+
+// Serve creates a http handler to serve the API over HTTP
+// can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
+func (o *MymoveAPI) Serve(builder middleware.Builder) http.Handler {
+ o.Init()
+
+ if o.Middleware != nil {
+ return o.Middleware(builder)
+ }
+ if o.useSwaggerUI {
+ return o.context.APIHandlerSwaggerUI(builder)
+ }
+ return o.context.APIHandler(builder)
+}
+
+// Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
+func (o *MymoveAPI) Init() {
+ if len(o.handlers) == 0 {
+ o.initHandlerCache()
+ }
+}
+
+// RegisterConsumer allows you to add (or override) a consumer for a media type.
+func (o *MymoveAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer) {
+ o.customConsumers[mediaType] = consumer
+}
+
+// RegisterProducer allows you to add (or override) a producer for a media type.
+func (o *MymoveAPI) RegisterProducer(mediaType string, producer runtime.Producer) {
+ o.customProducers[mediaType] = producer
+}
+
+// AddMiddlewareFor adds a http middleware to existing handler
+func (o *MymoveAPI) AddMiddlewareFor(method, path string, builder middleware.Builder) {
+ um := strings.ToUpper(method)
+ if path == "/" {
+ path = ""
+ }
+ o.Init()
+ if h, ok := o.handlers[um][path]; ok {
+ o.handlers[um][path] = builder(h)
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go
new file mode 100644
index 00000000000..8e6f851556e
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// GetPaymentRequestEDIHandlerFunc turns a function with the right signature into a get payment request e d i handler
+type GetPaymentRequestEDIHandlerFunc func(GetPaymentRequestEDIParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn GetPaymentRequestEDIHandlerFunc) Handle(params GetPaymentRequestEDIParams) middleware.Responder {
+ return fn(params)
+}
+
+// GetPaymentRequestEDIHandler interface for that can handle valid get payment request e d i params
+type GetPaymentRequestEDIHandler interface {
+ Handle(GetPaymentRequestEDIParams) middleware.Responder
+}
+
+// NewGetPaymentRequestEDI creates a new http.Handler for the get payment request e d i operation
+func NewGetPaymentRequestEDI(ctx *middleware.Context, handler GetPaymentRequestEDIHandler) *GetPaymentRequestEDI {
+ return &GetPaymentRequestEDI{Context: ctx, Handler: handler}
+}
+
+/*
+ GetPaymentRequestEDI swagger:route GET /payment-requests/{paymentRequestID}/edi paymentRequest getPaymentRequestEDI
+
+getPaymentRequestEDI
+
+Returns the EDI (Electronic Data Interchange) message for the payment request identified
+by the given payment request ID. Note that the EDI returned in the JSON payload will have where there
+would normally be line breaks (due to JSON not allowing line breaks in a string).
+
+This is a support endpoint and will not be available in production.
+*/
+type GetPaymentRequestEDI struct {
+ Context *middleware.Context
+ Handler GetPaymentRequestEDIHandler
+}
+
+func (o *GetPaymentRequestEDI) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewGetPaymentRequestEDIParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go
new file mode 100644
index 00000000000..ee326f2cdea
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_parameters.go
@@ -0,0 +1,91 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// NewGetPaymentRequestEDIParams creates a new GetPaymentRequestEDIParams object
+//
+// There are no default values defined in the spec.
+func NewGetPaymentRequestEDIParams() GetPaymentRequestEDIParams {
+
+ return GetPaymentRequestEDIParams{}
+}
+
+// GetPaymentRequestEDIParams contains all the bound params for the get payment request e d i operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters getPaymentRequestEDI
+type GetPaymentRequestEDIParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*UUID of the payment request for which EDI should be generated.
+ Required: true
+ In: path
+ */
+ PaymentRequestID strfmt.UUID
+}
+
+// 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 NewGetPaymentRequestEDIParams() beforehand.
+func (o *GetPaymentRequestEDIParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
+ if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
+func (o *GetPaymentRequestEDIParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+
+ // Format: uuid
+ value, err := formats.Parse("uuid", raw)
+ if err != nil {
+ return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
+ }
+ o.PaymentRequestID = *(value.(*strfmt.UUID))
+
+ if err := o.validatePaymentRequestID(formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// validatePaymentRequestID carries on validations for parameter PaymentRequestID
+func (o *GetPaymentRequestEDIParams) validatePaymentRequestID(formats strfmt.Registry) error {
+
+ if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
+ return err
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go
new file mode 100644
index 00000000000..28033983281
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_responses.go
@@ -0,0 +1,374 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// GetPaymentRequestEDIOKCode is the HTTP code returned for type GetPaymentRequestEDIOK
+const GetPaymentRequestEDIOKCode int = 200
+
+/*
+GetPaymentRequestEDIOK Successfully retrieved payment requests associated with a given move task order
+
+swagger:response getPaymentRequestEDIOK
+*/
+type GetPaymentRequestEDIOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.PaymentRequestEDI `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIOK creates GetPaymentRequestEDIOK with default headers values
+func NewGetPaymentRequestEDIOK() *GetPaymentRequestEDIOK {
+
+ return &GetPaymentRequestEDIOK{}
+}
+
+// WithPayload adds the payload to the get payment request e d i o k response
+func (o *GetPaymentRequestEDIOK) WithPayload(payload *supportmessages.PaymentRequestEDI) *GetPaymentRequestEDIOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i o k response
+func (o *GetPaymentRequestEDIOK) SetPayload(payload *supportmessages.PaymentRequestEDI) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIBadRequestCode is the HTTP code returned for type GetPaymentRequestEDIBadRequest
+const GetPaymentRequestEDIBadRequestCode int = 400
+
+/*
+GetPaymentRequestEDIBadRequest The request payload is invalid.
+
+swagger:response getPaymentRequestEDIBadRequest
+*/
+type GetPaymentRequestEDIBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIBadRequest creates GetPaymentRequestEDIBadRequest with default headers values
+func NewGetPaymentRequestEDIBadRequest() *GetPaymentRequestEDIBadRequest {
+
+ return &GetPaymentRequestEDIBadRequest{}
+}
+
+// WithPayload adds the payload to the get payment request e d i bad request response
+func (o *GetPaymentRequestEDIBadRequest) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i bad request response
+func (o *GetPaymentRequestEDIBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIUnauthorizedCode is the HTTP code returned for type GetPaymentRequestEDIUnauthorized
+const GetPaymentRequestEDIUnauthorizedCode int = 401
+
+/*
+GetPaymentRequestEDIUnauthorized The request was denied.
+
+swagger:response getPaymentRequestEDIUnauthorized
+*/
+type GetPaymentRequestEDIUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIUnauthorized creates GetPaymentRequestEDIUnauthorized with default headers values
+func NewGetPaymentRequestEDIUnauthorized() *GetPaymentRequestEDIUnauthorized {
+
+ return &GetPaymentRequestEDIUnauthorized{}
+}
+
+// WithPayload adds the payload to the get payment request e d i unauthorized response
+func (o *GetPaymentRequestEDIUnauthorized) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i unauthorized response
+func (o *GetPaymentRequestEDIUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIForbiddenCode is the HTTP code returned for type GetPaymentRequestEDIForbidden
+const GetPaymentRequestEDIForbiddenCode int = 403
+
+/*
+GetPaymentRequestEDIForbidden The request was denied.
+
+swagger:response getPaymentRequestEDIForbidden
+*/
+type GetPaymentRequestEDIForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIForbidden creates GetPaymentRequestEDIForbidden with default headers values
+func NewGetPaymentRequestEDIForbidden() *GetPaymentRequestEDIForbidden {
+
+ return &GetPaymentRequestEDIForbidden{}
+}
+
+// WithPayload adds the payload to the get payment request e d i forbidden response
+func (o *GetPaymentRequestEDIForbidden) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i forbidden response
+func (o *GetPaymentRequestEDIForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDINotFoundCode is the HTTP code returned for type GetPaymentRequestEDINotFound
+const GetPaymentRequestEDINotFoundCode int = 404
+
+/*
+GetPaymentRequestEDINotFound The requested resource wasn't found.
+
+swagger:response getPaymentRequestEDINotFound
+*/
+type GetPaymentRequestEDINotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDINotFound creates GetPaymentRequestEDINotFound with default headers values
+func NewGetPaymentRequestEDINotFound() *GetPaymentRequestEDINotFound {
+
+ return &GetPaymentRequestEDINotFound{}
+}
+
+// WithPayload adds the payload to the get payment request e d i not found response
+func (o *GetPaymentRequestEDINotFound) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDINotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i not found response
+func (o *GetPaymentRequestEDINotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDINotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIConflictCode is the HTTP code returned for type GetPaymentRequestEDIConflict
+const GetPaymentRequestEDIConflictCode int = 409
+
+/*
+GetPaymentRequestEDIConflict There was a conflict with the request.
+
+swagger:response getPaymentRequestEDIConflict
+*/
+type GetPaymentRequestEDIConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIConflict creates GetPaymentRequestEDIConflict with default headers values
+func NewGetPaymentRequestEDIConflict() *GetPaymentRequestEDIConflict {
+
+ return &GetPaymentRequestEDIConflict{}
+}
+
+// WithPayload adds the payload to the get payment request e d i conflict response
+func (o *GetPaymentRequestEDIConflict) WithPayload(payload *supportmessages.ClientError) *GetPaymentRequestEDIConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i conflict response
+func (o *GetPaymentRequestEDIConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIUnprocessableEntityCode is the HTTP code returned for type GetPaymentRequestEDIUnprocessableEntity
+const GetPaymentRequestEDIUnprocessableEntityCode int = 422
+
+/*
+GetPaymentRequestEDIUnprocessableEntity The payload was unprocessable.
+
+swagger:response getPaymentRequestEDIUnprocessableEntity
+*/
+type GetPaymentRequestEDIUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIUnprocessableEntity creates GetPaymentRequestEDIUnprocessableEntity with default headers values
+func NewGetPaymentRequestEDIUnprocessableEntity() *GetPaymentRequestEDIUnprocessableEntity {
+
+ return &GetPaymentRequestEDIUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the get payment request e d i unprocessable entity response
+func (o *GetPaymentRequestEDIUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *GetPaymentRequestEDIUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i unprocessable entity response
+func (o *GetPaymentRequestEDIUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// GetPaymentRequestEDIInternalServerErrorCode is the HTTP code returned for type GetPaymentRequestEDIInternalServerError
+const GetPaymentRequestEDIInternalServerErrorCode int = 500
+
+/*
+GetPaymentRequestEDIInternalServerError A server error occurred.
+
+swagger:response getPaymentRequestEDIInternalServerError
+*/
+type GetPaymentRequestEDIInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewGetPaymentRequestEDIInternalServerError creates GetPaymentRequestEDIInternalServerError with default headers values
+func NewGetPaymentRequestEDIInternalServerError() *GetPaymentRequestEDIInternalServerError {
+
+ return &GetPaymentRequestEDIInternalServerError{}
+}
+
+// WithPayload adds the payload to the get payment request e d i internal server error response
+func (o *GetPaymentRequestEDIInternalServerError) WithPayload(payload *supportmessages.Error) *GetPaymentRequestEDIInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the get payment request e d i internal server error response
+func (o *GetPaymentRequestEDIInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *GetPaymentRequestEDIInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go
new file mode 100644
index 00000000000..e5c52694d20
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/get_payment_request_e_d_i_urlbuilder.go
@@ -0,0 +1,101 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// GetPaymentRequestEDIURL generates an URL for the get payment request e d i operation
+type GetPaymentRequestEDIURL struct {
+ PaymentRequestID strfmt.UUID
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *GetPaymentRequestEDIURL) WithBasePath(bp string) *GetPaymentRequestEDIURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *GetPaymentRequestEDIURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *GetPaymentRequestEDIURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/payment-requests/{paymentRequestID}/edi"
+
+ paymentRequestID := o.PaymentRequestID.String()
+ if paymentRequestID != "" {
+ _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
+ } else {
+ return nil, errors.New("paymentRequestId is required on GetPaymentRequestEDIURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *GetPaymentRequestEDIURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *GetPaymentRequestEDIURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *GetPaymentRequestEDIURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on GetPaymentRequestEDIURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on GetPaymentRequestEDIURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *GetPaymentRequestEDIURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go
new file mode 100644
index 00000000000..8f2990500fb
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// ListMTOPaymentRequestsHandlerFunc turns a function with the right signature into a list m t o payment requests handler
+type ListMTOPaymentRequestsHandlerFunc func(ListMTOPaymentRequestsParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn ListMTOPaymentRequestsHandlerFunc) Handle(params ListMTOPaymentRequestsParams) middleware.Responder {
+ return fn(params)
+}
+
+// ListMTOPaymentRequestsHandler interface for that can handle valid list m t o payment requests params
+type ListMTOPaymentRequestsHandler interface {
+ Handle(ListMTOPaymentRequestsParams) middleware.Responder
+}
+
+// NewListMTOPaymentRequests creates a new http.Handler for the list m t o payment requests operation
+func NewListMTOPaymentRequests(ctx *middleware.Context, handler ListMTOPaymentRequestsHandler) *ListMTOPaymentRequests {
+ return &ListMTOPaymentRequests{Context: ctx, Handler: handler}
+}
+
+/*
+ ListMTOPaymentRequests swagger:route GET /move-task-orders/{moveTaskOrderID}/payment-requests paymentRequest listMTOPaymentRequests
+
+listMTOPaymentRequests
+
+### Functionality
+
+This endpoint lists all PaymentRequests associated with a given MoveTaskOrder.
+
+This is a support endpoint and is not available in production.
+*/
+type ListMTOPaymentRequests struct {
+ Context *middleware.Context
+ Handler ListMTOPaymentRequestsHandler
+}
+
+func (o *ListMTOPaymentRequests) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewListMTOPaymentRequestsParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go
new file mode 100644
index 00000000000..87340033535
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_parameters.go
@@ -0,0 +1,91 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// NewListMTOPaymentRequestsParams creates a new ListMTOPaymentRequestsParams object
+//
+// There are no default values defined in the spec.
+func NewListMTOPaymentRequestsParams() ListMTOPaymentRequestsParams {
+
+ return ListMTOPaymentRequestsParams{}
+}
+
+// ListMTOPaymentRequestsParams contains all the bound params for the list m t o payment requests operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters listMTOPaymentRequests
+type ListMTOPaymentRequestsParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Only return move task orders updated since this time.
+ Required: true
+ In: path
+ */
+ MoveTaskOrderID strfmt.UUID
+}
+
+// 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 NewListMTOPaymentRequestsParams() beforehand.
+func (o *ListMTOPaymentRequestsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ rMoveTaskOrderID, rhkMoveTaskOrderID, _ := route.Params.GetOK("moveTaskOrderID")
+ if err := o.bindMoveTaskOrderID(rMoveTaskOrderID, rhkMoveTaskOrderID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindMoveTaskOrderID binds and validates parameter MoveTaskOrderID from path.
+func (o *ListMTOPaymentRequestsParams) bindMoveTaskOrderID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+
+ // Format: uuid
+ value, err := formats.Parse("uuid", raw)
+ if err != nil {
+ return errors.InvalidType("moveTaskOrderID", "path", "strfmt.UUID", raw)
+ }
+ o.MoveTaskOrderID = *(value.(*strfmt.UUID))
+
+ if err := o.validateMoveTaskOrderID(formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// validateMoveTaskOrderID carries on validations for parameter MoveTaskOrderID
+func (o *ListMTOPaymentRequestsParams) validateMoveTaskOrderID(formats strfmt.Registry) error {
+
+ if err := validate.FormatOf("moveTaskOrderID", "path", "uuid", o.MoveTaskOrderID.String(), formats); err != nil {
+ return err
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go
new file mode 100644
index 00000000000..78390d49ed1
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_responses.go
@@ -0,0 +1,287 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ListMTOPaymentRequestsOKCode is the HTTP code returned for type ListMTOPaymentRequestsOK
+const ListMTOPaymentRequestsOKCode int = 200
+
+/*
+ListMTOPaymentRequestsOK Successfully retrieved payment requests associated with a given move task order
+
+swagger:response listMTOPaymentRequestsOK
+*/
+type ListMTOPaymentRequestsOK struct {
+
+ /*
+ In: Body
+ */
+ Payload supportmessages.PaymentRequests `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsOK creates ListMTOPaymentRequestsOK with default headers values
+func NewListMTOPaymentRequestsOK() *ListMTOPaymentRequestsOK {
+
+ return &ListMTOPaymentRequestsOK{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests o k response
+func (o *ListMTOPaymentRequestsOK) WithPayload(payload supportmessages.PaymentRequests) *ListMTOPaymentRequestsOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests o k response
+func (o *ListMTOPaymentRequestsOK) SetPayload(payload supportmessages.PaymentRequests) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ payload := o.Payload
+ if payload == nil {
+ // return empty array
+ payload = supportmessages.PaymentRequests{}
+ }
+
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+}
+
+// ListMTOPaymentRequestsBadRequestCode is the HTTP code returned for type ListMTOPaymentRequestsBadRequest
+const ListMTOPaymentRequestsBadRequestCode int = 400
+
+/*
+ListMTOPaymentRequestsBadRequest The request payload is invalid.
+
+swagger:response listMTOPaymentRequestsBadRequest
+*/
+type ListMTOPaymentRequestsBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsBadRequest creates ListMTOPaymentRequestsBadRequest with default headers values
+func NewListMTOPaymentRequestsBadRequest() *ListMTOPaymentRequestsBadRequest {
+
+ return &ListMTOPaymentRequestsBadRequest{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests bad request response
+func (o *ListMTOPaymentRequestsBadRequest) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests bad request response
+func (o *ListMTOPaymentRequestsBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOPaymentRequestsUnauthorizedCode is the HTTP code returned for type ListMTOPaymentRequestsUnauthorized
+const ListMTOPaymentRequestsUnauthorizedCode int = 401
+
+/*
+ListMTOPaymentRequestsUnauthorized The request was denied.
+
+swagger:response listMTOPaymentRequestsUnauthorized
+*/
+type ListMTOPaymentRequestsUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsUnauthorized creates ListMTOPaymentRequestsUnauthorized with default headers values
+func NewListMTOPaymentRequestsUnauthorized() *ListMTOPaymentRequestsUnauthorized {
+
+ return &ListMTOPaymentRequestsUnauthorized{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests unauthorized response
+func (o *ListMTOPaymentRequestsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests unauthorized response
+func (o *ListMTOPaymentRequestsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOPaymentRequestsForbiddenCode is the HTTP code returned for type ListMTOPaymentRequestsForbidden
+const ListMTOPaymentRequestsForbiddenCode int = 403
+
+/*
+ListMTOPaymentRequestsForbidden The request was denied.
+
+swagger:response listMTOPaymentRequestsForbidden
+*/
+type ListMTOPaymentRequestsForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsForbidden creates ListMTOPaymentRequestsForbidden with default headers values
+func NewListMTOPaymentRequestsForbidden() *ListMTOPaymentRequestsForbidden {
+
+ return &ListMTOPaymentRequestsForbidden{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests forbidden response
+func (o *ListMTOPaymentRequestsForbidden) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests forbidden response
+func (o *ListMTOPaymentRequestsForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOPaymentRequestsNotFoundCode is the HTTP code returned for type ListMTOPaymentRequestsNotFound
+const ListMTOPaymentRequestsNotFoundCode int = 404
+
+/*
+ListMTOPaymentRequestsNotFound The requested resource wasn't found.
+
+swagger:response listMTOPaymentRequestsNotFound
+*/
+type ListMTOPaymentRequestsNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsNotFound creates ListMTOPaymentRequestsNotFound with default headers values
+func NewListMTOPaymentRequestsNotFound() *ListMTOPaymentRequestsNotFound {
+
+ return &ListMTOPaymentRequestsNotFound{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests not found response
+func (o *ListMTOPaymentRequestsNotFound) WithPayload(payload *supportmessages.ClientError) *ListMTOPaymentRequestsNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests not found response
+func (o *ListMTOPaymentRequestsNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ListMTOPaymentRequestsInternalServerErrorCode is the HTTP code returned for type ListMTOPaymentRequestsInternalServerError
+const ListMTOPaymentRequestsInternalServerErrorCode int = 500
+
+/*
+ListMTOPaymentRequestsInternalServerError A server error occurred.
+
+swagger:response listMTOPaymentRequestsInternalServerError
+*/
+type ListMTOPaymentRequestsInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewListMTOPaymentRequestsInternalServerError creates ListMTOPaymentRequestsInternalServerError with default headers values
+func NewListMTOPaymentRequestsInternalServerError() *ListMTOPaymentRequestsInternalServerError {
+
+ return &ListMTOPaymentRequestsInternalServerError{}
+}
+
+// WithPayload adds the payload to the list m t o payment requests internal server error response
+func (o *ListMTOPaymentRequestsInternalServerError) WithPayload(payload *supportmessages.Error) *ListMTOPaymentRequestsInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the list m t o payment requests internal server error response
+func (o *ListMTOPaymentRequestsInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ListMTOPaymentRequestsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go
new file mode 100644
index 00000000000..f55d63b7339
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/list_m_t_o_payment_requests_urlbuilder.go
@@ -0,0 +1,101 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// ListMTOPaymentRequestsURL generates an URL for the list m t o payment requests operation
+type ListMTOPaymentRequestsURL struct {
+ MoveTaskOrderID strfmt.UUID
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *ListMTOPaymentRequestsURL) WithBasePath(bp string) *ListMTOPaymentRequestsURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *ListMTOPaymentRequestsURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *ListMTOPaymentRequestsURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/move-task-orders/{moveTaskOrderID}/payment-requests"
+
+ moveTaskOrderID := o.MoveTaskOrderID.String()
+ if moveTaskOrderID != "" {
+ _path = strings.Replace(_path, "{moveTaskOrderID}", moveTaskOrderID, -1)
+ } else {
+ return nil, errors.New("moveTaskOrderId is required on ListMTOPaymentRequestsURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *ListMTOPaymentRequestsURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *ListMTOPaymentRequestsURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *ListMTOPaymentRequestsURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on ListMTOPaymentRequestsURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on ListMTOPaymentRequestsURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *ListMTOPaymentRequestsURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go
new file mode 100644
index 00000000000..efefe2dd1b7
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests.go
@@ -0,0 +1,61 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// ProcessReviewedPaymentRequestsHandlerFunc turns a function with the right signature into a process reviewed payment requests handler
+type ProcessReviewedPaymentRequestsHandlerFunc func(ProcessReviewedPaymentRequestsParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn ProcessReviewedPaymentRequestsHandlerFunc) Handle(params ProcessReviewedPaymentRequestsParams) middleware.Responder {
+ return fn(params)
+}
+
+// ProcessReviewedPaymentRequestsHandler interface for that can handle valid process reviewed payment requests params
+type ProcessReviewedPaymentRequestsHandler interface {
+ Handle(ProcessReviewedPaymentRequestsParams) middleware.Responder
+}
+
+// NewProcessReviewedPaymentRequests creates a new http.Handler for the process reviewed payment requests operation
+func NewProcessReviewedPaymentRequests(ctx *middleware.Context, handler ProcessReviewedPaymentRequestsHandler) *ProcessReviewedPaymentRequests {
+ return &ProcessReviewedPaymentRequests{Context: ctx, Handler: handler}
+}
+
+/*
+ ProcessReviewedPaymentRequests swagger:route PATCH /payment-requests/process-reviewed paymentRequest processReviewedPaymentRequests
+
+processReviewedPaymentRequests
+
+Updates the status of reviewed payment requests and sends PRs to Syncada if
+the SendToSyncada flag is set
+
+This is a support endpoint and will not be available in production.
+*/
+type ProcessReviewedPaymentRequests struct {
+ Context *middleware.Context
+ Handler ProcessReviewedPaymentRequestsHandler
+}
+
+func (o *ProcessReviewedPaymentRequests) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewProcessReviewedPaymentRequestsParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go
new file mode 100644
index 00000000000..644c93041ee
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_parameters.go
@@ -0,0 +1,84 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "io"
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewProcessReviewedPaymentRequestsParams creates a new ProcessReviewedPaymentRequestsParams object
+//
+// There are no default values defined in the spec.
+func NewProcessReviewedPaymentRequestsParams() ProcessReviewedPaymentRequestsParams {
+
+ return ProcessReviewedPaymentRequestsParams{}
+}
+
+// ProcessReviewedPaymentRequestsParams contains all the bound params for the process reviewed payment requests operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters processReviewedPaymentRequests
+type ProcessReviewedPaymentRequestsParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*
+ Required: true
+ In: body
+ */
+ Body *supportmessages.ProcessReviewedPaymentRequests
+}
+
+// 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 NewProcessReviewedPaymentRequestsParams() beforehand.
+func (o *ProcessReviewedPaymentRequestsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.ProcessReviewedPaymentRequests
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ if err == io.EOF {
+ res = append(res, errors.Required("body", "body", ""))
+ } else {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ }
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ } else {
+ res = append(res, errors.Required("body", "body", ""))
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go
new file mode 100644
index 00000000000..56b1631599a
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_responses.go
@@ -0,0 +1,332 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ProcessReviewedPaymentRequestsOKCode is the HTTP code returned for type ProcessReviewedPaymentRequestsOK
+const ProcessReviewedPaymentRequestsOKCode int = 200
+
+/*
+ProcessReviewedPaymentRequestsOK Successfully updated status of reviewed payment request and sent to Syncada if that flag is set
+
+swagger:response processReviewedPaymentRequestsOK
+*/
+type ProcessReviewedPaymentRequestsOK struct {
+
+ /*
+ In: Body
+ */
+ Payload supportmessages.PaymentRequests `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsOK creates ProcessReviewedPaymentRequestsOK with default headers values
+func NewProcessReviewedPaymentRequestsOK() *ProcessReviewedPaymentRequestsOK {
+
+ return &ProcessReviewedPaymentRequestsOK{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests o k response
+func (o *ProcessReviewedPaymentRequestsOK) WithPayload(payload supportmessages.PaymentRequests) *ProcessReviewedPaymentRequestsOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests o k response
+func (o *ProcessReviewedPaymentRequestsOK) SetPayload(payload supportmessages.PaymentRequests) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ payload := o.Payload
+ if payload == nil {
+ // return empty array
+ payload = supportmessages.PaymentRequests{}
+ }
+
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+}
+
+// ProcessReviewedPaymentRequestsBadRequestCode is the HTTP code returned for type ProcessReviewedPaymentRequestsBadRequest
+const ProcessReviewedPaymentRequestsBadRequestCode int = 400
+
+/*
+ProcessReviewedPaymentRequestsBadRequest The request payload is invalid.
+
+swagger:response processReviewedPaymentRequestsBadRequest
+*/
+type ProcessReviewedPaymentRequestsBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsBadRequest creates ProcessReviewedPaymentRequestsBadRequest with default headers values
+func NewProcessReviewedPaymentRequestsBadRequest() *ProcessReviewedPaymentRequestsBadRequest {
+
+ return &ProcessReviewedPaymentRequestsBadRequest{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests bad request response
+func (o *ProcessReviewedPaymentRequestsBadRequest) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests bad request response
+func (o *ProcessReviewedPaymentRequestsBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ProcessReviewedPaymentRequestsUnauthorizedCode is the HTTP code returned for type ProcessReviewedPaymentRequestsUnauthorized
+const ProcessReviewedPaymentRequestsUnauthorizedCode int = 401
+
+/*
+ProcessReviewedPaymentRequestsUnauthorized The request was denied.
+
+swagger:response processReviewedPaymentRequestsUnauthorized
+*/
+type ProcessReviewedPaymentRequestsUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsUnauthorized creates ProcessReviewedPaymentRequestsUnauthorized with default headers values
+func NewProcessReviewedPaymentRequestsUnauthorized() *ProcessReviewedPaymentRequestsUnauthorized {
+
+ return &ProcessReviewedPaymentRequestsUnauthorized{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests unauthorized response
+func (o *ProcessReviewedPaymentRequestsUnauthorized) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests unauthorized response
+func (o *ProcessReviewedPaymentRequestsUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ProcessReviewedPaymentRequestsForbiddenCode is the HTTP code returned for type ProcessReviewedPaymentRequestsForbidden
+const ProcessReviewedPaymentRequestsForbiddenCode int = 403
+
+/*
+ProcessReviewedPaymentRequestsForbidden The request was denied.
+
+swagger:response processReviewedPaymentRequestsForbidden
+*/
+type ProcessReviewedPaymentRequestsForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsForbidden creates ProcessReviewedPaymentRequestsForbidden with default headers values
+func NewProcessReviewedPaymentRequestsForbidden() *ProcessReviewedPaymentRequestsForbidden {
+
+ return &ProcessReviewedPaymentRequestsForbidden{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests forbidden response
+func (o *ProcessReviewedPaymentRequestsForbidden) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests forbidden response
+func (o *ProcessReviewedPaymentRequestsForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ProcessReviewedPaymentRequestsNotFoundCode is the HTTP code returned for type ProcessReviewedPaymentRequestsNotFound
+const ProcessReviewedPaymentRequestsNotFoundCode int = 404
+
+/*
+ProcessReviewedPaymentRequestsNotFound The requested resource wasn't found.
+
+swagger:response processReviewedPaymentRequestsNotFound
+*/
+type ProcessReviewedPaymentRequestsNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsNotFound creates ProcessReviewedPaymentRequestsNotFound with default headers values
+func NewProcessReviewedPaymentRequestsNotFound() *ProcessReviewedPaymentRequestsNotFound {
+
+ return &ProcessReviewedPaymentRequestsNotFound{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests not found response
+func (o *ProcessReviewedPaymentRequestsNotFound) WithPayload(payload *supportmessages.ClientError) *ProcessReviewedPaymentRequestsNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests not found response
+func (o *ProcessReviewedPaymentRequestsNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ProcessReviewedPaymentRequestsUnprocessableEntityCode is the HTTP code returned for type ProcessReviewedPaymentRequestsUnprocessableEntity
+const ProcessReviewedPaymentRequestsUnprocessableEntityCode int = 422
+
+/*
+ProcessReviewedPaymentRequestsUnprocessableEntity The payload was unprocessable.
+
+swagger:response processReviewedPaymentRequestsUnprocessableEntity
+*/
+type ProcessReviewedPaymentRequestsUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsUnprocessableEntity creates ProcessReviewedPaymentRequestsUnprocessableEntity with default headers values
+func NewProcessReviewedPaymentRequestsUnprocessableEntity() *ProcessReviewedPaymentRequestsUnprocessableEntity {
+
+ return &ProcessReviewedPaymentRequestsUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests unprocessable entity response
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *ProcessReviewedPaymentRequestsUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests unprocessable entity response
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ProcessReviewedPaymentRequestsInternalServerErrorCode is the HTTP code returned for type ProcessReviewedPaymentRequestsInternalServerError
+const ProcessReviewedPaymentRequestsInternalServerErrorCode int = 500
+
+/*
+ProcessReviewedPaymentRequestsInternalServerError A server error occurred.
+
+swagger:response processReviewedPaymentRequestsInternalServerError
+*/
+type ProcessReviewedPaymentRequestsInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewProcessReviewedPaymentRequestsInternalServerError creates ProcessReviewedPaymentRequestsInternalServerError with default headers values
+func NewProcessReviewedPaymentRequestsInternalServerError() *ProcessReviewedPaymentRequestsInternalServerError {
+
+ return &ProcessReviewedPaymentRequestsInternalServerError{}
+}
+
+// WithPayload adds the payload to the process reviewed payment requests internal server error response
+func (o *ProcessReviewedPaymentRequestsInternalServerError) WithPayload(payload *supportmessages.Error) *ProcessReviewedPaymentRequestsInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the process reviewed payment requests internal server error response
+func (o *ProcessReviewedPaymentRequestsInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ProcessReviewedPaymentRequestsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go
new file mode 100644
index 00000000000..dfabf79ef51
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/process_reviewed_payment_requests_urlbuilder.go
@@ -0,0 +1,87 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+)
+
+// ProcessReviewedPaymentRequestsURL generates an URL for the process reviewed payment requests operation
+type ProcessReviewedPaymentRequestsURL struct {
+ _basePath string
+}
+
+// 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
+func (o *ProcessReviewedPaymentRequestsURL) WithBasePath(bp string) *ProcessReviewedPaymentRequestsURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *ProcessReviewedPaymentRequestsURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *ProcessReviewedPaymentRequestsURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/payment-requests/process-reviewed"
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *ProcessReviewedPaymentRequestsURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *ProcessReviewedPaymentRequestsURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *ProcessReviewedPaymentRequestsURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on ProcessReviewedPaymentRequestsURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on ProcessReviewedPaymentRequestsURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *ProcessReviewedPaymentRequestsURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go
new file mode 100644
index 00000000000..fb6b1a7f92a
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// RecalculatePaymentRequestHandlerFunc turns a function with the right signature into a recalculate payment request handler
+type RecalculatePaymentRequestHandlerFunc func(RecalculatePaymentRequestParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn RecalculatePaymentRequestHandlerFunc) Handle(params RecalculatePaymentRequestParams) middleware.Responder {
+ return fn(params)
+}
+
+// RecalculatePaymentRequestHandler interface for that can handle valid recalculate payment request params
+type RecalculatePaymentRequestHandler interface {
+ Handle(RecalculatePaymentRequestParams) middleware.Responder
+}
+
+// NewRecalculatePaymentRequest creates a new http.Handler for the recalculate payment request operation
+func NewRecalculatePaymentRequest(ctx *middleware.Context, handler RecalculatePaymentRequestHandler) *RecalculatePaymentRequest {
+ return &RecalculatePaymentRequest{Context: ctx, Handler: handler}
+}
+
+/*
+ RecalculatePaymentRequest swagger:route POST /payment-requests/{paymentRequestID}/recalculate paymentRequest recalculatePaymentRequest
+
+recalculatePaymentRequest
+
+Recalculates an existing pending payment request by creating a new payment request for the same service
+items but is priced based on the current inputs (weights, dates, etc.). The previously existing payment
+request is then deprecated. A link is made between the new and existing payment requests.
+
+This is a support endpoint and will not be available in production.
+*/
+type RecalculatePaymentRequest struct {
+ Context *middleware.Context
+ Handler RecalculatePaymentRequestHandler
+}
+
+func (o *RecalculatePaymentRequest) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewRecalculatePaymentRequestParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go
new file mode 100644
index 00000000000..d747015620e
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_parameters.go
@@ -0,0 +1,91 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// NewRecalculatePaymentRequestParams creates a new RecalculatePaymentRequestParams object
+//
+// There are no default values defined in the spec.
+func NewRecalculatePaymentRequestParams() RecalculatePaymentRequestParams {
+
+ return RecalculatePaymentRequestParams{}
+}
+
+// RecalculatePaymentRequestParams contains all the bound params for the recalculate payment request operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters recalculatePaymentRequest
+type RecalculatePaymentRequestParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*UUID of the payment request to recalculate.
+ Required: true
+ In: path
+ */
+ PaymentRequestID strfmt.UUID
+}
+
+// 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 NewRecalculatePaymentRequestParams() beforehand.
+func (o *RecalculatePaymentRequestParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
+ if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
+func (o *RecalculatePaymentRequestParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+
+ // Format: uuid
+ value, err := formats.Parse("uuid", raw)
+ if err != nil {
+ return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
+ }
+ o.PaymentRequestID = *(value.(*strfmt.UUID))
+
+ if err := o.validatePaymentRequestID(formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// validatePaymentRequestID carries on validations for parameter PaymentRequestID
+func (o *RecalculatePaymentRequestParams) validatePaymentRequestID(formats strfmt.Registry) error {
+
+ if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
+ return err
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go
new file mode 100644
index 00000000000..68d893ca414
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_responses.go
@@ -0,0 +1,419 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// RecalculatePaymentRequestCreatedCode is the HTTP code returned for type RecalculatePaymentRequestCreated
+const RecalculatePaymentRequestCreatedCode int = 201
+
+/*
+RecalculatePaymentRequestCreated The new payment request with recalculated pricing.
+
+swagger:response recalculatePaymentRequestCreated
+*/
+type RecalculatePaymentRequestCreated struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.PaymentRequest `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestCreated creates RecalculatePaymentRequestCreated with default headers values
+func NewRecalculatePaymentRequestCreated() *RecalculatePaymentRequestCreated {
+
+ return &RecalculatePaymentRequestCreated{}
+}
+
+// WithPayload adds the payload to the recalculate payment request created response
+func (o *RecalculatePaymentRequestCreated) WithPayload(payload *supportmessages.PaymentRequest) *RecalculatePaymentRequestCreated {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request created response
+func (o *RecalculatePaymentRequestCreated) SetPayload(payload *supportmessages.PaymentRequest) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(201)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestBadRequestCode is the HTTP code returned for type RecalculatePaymentRequestBadRequest
+const RecalculatePaymentRequestBadRequestCode int = 400
+
+/*
+RecalculatePaymentRequestBadRequest The request payload is invalid.
+
+swagger:response recalculatePaymentRequestBadRequest
+*/
+type RecalculatePaymentRequestBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestBadRequest creates RecalculatePaymentRequestBadRequest with default headers values
+func NewRecalculatePaymentRequestBadRequest() *RecalculatePaymentRequestBadRequest {
+
+ return &RecalculatePaymentRequestBadRequest{}
+}
+
+// WithPayload adds the payload to the recalculate payment request bad request response
+func (o *RecalculatePaymentRequestBadRequest) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request bad request response
+func (o *RecalculatePaymentRequestBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestUnauthorizedCode is the HTTP code returned for type RecalculatePaymentRequestUnauthorized
+const RecalculatePaymentRequestUnauthorizedCode int = 401
+
+/*
+RecalculatePaymentRequestUnauthorized The request was denied.
+
+swagger:response recalculatePaymentRequestUnauthorized
+*/
+type RecalculatePaymentRequestUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestUnauthorized creates RecalculatePaymentRequestUnauthorized with default headers values
+func NewRecalculatePaymentRequestUnauthorized() *RecalculatePaymentRequestUnauthorized {
+
+ return &RecalculatePaymentRequestUnauthorized{}
+}
+
+// WithPayload adds the payload to the recalculate payment request unauthorized response
+func (o *RecalculatePaymentRequestUnauthorized) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request unauthorized response
+func (o *RecalculatePaymentRequestUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestForbiddenCode is the HTTP code returned for type RecalculatePaymentRequestForbidden
+const RecalculatePaymentRequestForbiddenCode int = 403
+
+/*
+RecalculatePaymentRequestForbidden The request was denied.
+
+swagger:response recalculatePaymentRequestForbidden
+*/
+type RecalculatePaymentRequestForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestForbidden creates RecalculatePaymentRequestForbidden with default headers values
+func NewRecalculatePaymentRequestForbidden() *RecalculatePaymentRequestForbidden {
+
+ return &RecalculatePaymentRequestForbidden{}
+}
+
+// WithPayload adds the payload to the recalculate payment request forbidden response
+func (o *RecalculatePaymentRequestForbidden) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request forbidden response
+func (o *RecalculatePaymentRequestForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestNotFoundCode is the HTTP code returned for type RecalculatePaymentRequestNotFound
+const RecalculatePaymentRequestNotFoundCode int = 404
+
+/*
+RecalculatePaymentRequestNotFound The requested resource wasn't found.
+
+swagger:response recalculatePaymentRequestNotFound
+*/
+type RecalculatePaymentRequestNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestNotFound creates RecalculatePaymentRequestNotFound with default headers values
+func NewRecalculatePaymentRequestNotFound() *RecalculatePaymentRequestNotFound {
+
+ return &RecalculatePaymentRequestNotFound{}
+}
+
+// WithPayload adds the payload to the recalculate payment request not found response
+func (o *RecalculatePaymentRequestNotFound) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request not found response
+func (o *RecalculatePaymentRequestNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestConflictCode is the HTTP code returned for type RecalculatePaymentRequestConflict
+const RecalculatePaymentRequestConflictCode int = 409
+
+/*
+RecalculatePaymentRequestConflict There was a conflict with the request.
+
+swagger:response recalculatePaymentRequestConflict
+*/
+type RecalculatePaymentRequestConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestConflict creates RecalculatePaymentRequestConflict with default headers values
+func NewRecalculatePaymentRequestConflict() *RecalculatePaymentRequestConflict {
+
+ return &RecalculatePaymentRequestConflict{}
+}
+
+// WithPayload adds the payload to the recalculate payment request conflict response
+func (o *RecalculatePaymentRequestConflict) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request conflict response
+func (o *RecalculatePaymentRequestConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestPreconditionFailedCode is the HTTP code returned for type RecalculatePaymentRequestPreconditionFailed
+const RecalculatePaymentRequestPreconditionFailedCode int = 412
+
+/*
+RecalculatePaymentRequestPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response recalculatePaymentRequestPreconditionFailed
+*/
+type RecalculatePaymentRequestPreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestPreconditionFailed creates RecalculatePaymentRequestPreconditionFailed with default headers values
+func NewRecalculatePaymentRequestPreconditionFailed() *RecalculatePaymentRequestPreconditionFailed {
+
+ return &RecalculatePaymentRequestPreconditionFailed{}
+}
+
+// WithPayload adds the payload to the recalculate payment request precondition failed response
+func (o *RecalculatePaymentRequestPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *RecalculatePaymentRequestPreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request precondition failed response
+func (o *RecalculatePaymentRequestPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestUnprocessableEntityCode is the HTTP code returned for type RecalculatePaymentRequestUnprocessableEntity
+const RecalculatePaymentRequestUnprocessableEntityCode int = 422
+
+/*
+RecalculatePaymentRequestUnprocessableEntity The payload was unprocessable.
+
+swagger:response recalculatePaymentRequestUnprocessableEntity
+*/
+type RecalculatePaymentRequestUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestUnprocessableEntity creates RecalculatePaymentRequestUnprocessableEntity with default headers values
+func NewRecalculatePaymentRequestUnprocessableEntity() *RecalculatePaymentRequestUnprocessableEntity {
+
+ return &RecalculatePaymentRequestUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the recalculate payment request unprocessable entity response
+func (o *RecalculatePaymentRequestUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *RecalculatePaymentRequestUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request unprocessable entity response
+func (o *RecalculatePaymentRequestUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// RecalculatePaymentRequestInternalServerErrorCode is the HTTP code returned for type RecalculatePaymentRequestInternalServerError
+const RecalculatePaymentRequestInternalServerErrorCode int = 500
+
+/*
+RecalculatePaymentRequestInternalServerError A server error occurred.
+
+swagger:response recalculatePaymentRequestInternalServerError
+*/
+type RecalculatePaymentRequestInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewRecalculatePaymentRequestInternalServerError creates RecalculatePaymentRequestInternalServerError with default headers values
+func NewRecalculatePaymentRequestInternalServerError() *RecalculatePaymentRequestInternalServerError {
+
+ return &RecalculatePaymentRequestInternalServerError{}
+}
+
+// WithPayload adds the payload to the recalculate payment request internal server error response
+func (o *RecalculatePaymentRequestInternalServerError) WithPayload(payload *supportmessages.Error) *RecalculatePaymentRequestInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the recalculate payment request internal server error response
+func (o *RecalculatePaymentRequestInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *RecalculatePaymentRequestInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go
new file mode 100644
index 00000000000..61c73beca5e
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/recalculate_payment_request_urlbuilder.go
@@ -0,0 +1,101 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// RecalculatePaymentRequestURL generates an URL for the recalculate payment request operation
+type RecalculatePaymentRequestURL struct {
+ PaymentRequestID strfmt.UUID
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *RecalculatePaymentRequestURL) WithBasePath(bp string) *RecalculatePaymentRequestURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *RecalculatePaymentRequestURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *RecalculatePaymentRequestURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/payment-requests/{paymentRequestID}/recalculate"
+
+ paymentRequestID := o.PaymentRequestID.String()
+ if paymentRequestID != "" {
+ _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
+ } else {
+ return nil, errors.New("paymentRequestId is required on RecalculatePaymentRequestURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *RecalculatePaymentRequestURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *RecalculatePaymentRequestURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *RecalculatePaymentRequestURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on RecalculatePaymentRequestURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on RecalculatePaymentRequestURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *RecalculatePaymentRequestURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go
new file mode 100644
index 00000000000..2d608c5d45b
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status.go
@@ -0,0 +1,62 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// UpdatePaymentRequestStatusHandlerFunc turns a function with the right signature into a update payment request status handler
+type UpdatePaymentRequestStatusHandlerFunc func(UpdatePaymentRequestStatusParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn UpdatePaymentRequestStatusHandlerFunc) Handle(params UpdatePaymentRequestStatusParams) middleware.Responder {
+ return fn(params)
+}
+
+// UpdatePaymentRequestStatusHandler interface for that can handle valid update payment request status params
+type UpdatePaymentRequestStatusHandler interface {
+ Handle(UpdatePaymentRequestStatusParams) middleware.Responder
+}
+
+// NewUpdatePaymentRequestStatus creates a new http.Handler for the update payment request status operation
+func NewUpdatePaymentRequestStatus(ctx *middleware.Context, handler UpdatePaymentRequestStatusHandler) *UpdatePaymentRequestStatus {
+ return &UpdatePaymentRequestStatus{Context: ctx, Handler: handler}
+}
+
+/*
+ UpdatePaymentRequestStatus swagger:route PATCH /payment-requests/{paymentRequestID}/status paymentRequest updatePaymentRequestStatus
+
+updatePaymentRequestStatus
+
+Updates status of a payment request to REVIEWED, SENT_TO_GEX, TPPS_RECEIVED, REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED, PAID, EDI_ERROR, or DEPRECATED.
+
+A status of REVIEWED can optionally have a `rejectionReason`.
+
+This is a support endpoint and is not available in production.
+*/
+type UpdatePaymentRequestStatus struct {
+ Context *middleware.Context
+ Handler UpdatePaymentRequestStatusHandler
+}
+
+func (o *UpdatePaymentRequestStatus) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewUpdatePaymentRequestStatusParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go
new file mode 100644
index 00000000000..c2d24299565
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_parameters.go
@@ -0,0 +1,158 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "io"
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdatePaymentRequestStatusParams creates a new UpdatePaymentRequestStatusParams object
+//
+// There are no default values defined in the spec.
+func NewUpdatePaymentRequestStatusParams() UpdatePaymentRequestStatusParams {
+
+ return UpdatePaymentRequestStatusParams{}
+}
+
+// UpdatePaymentRequestStatusParams contains all the bound params for the update payment request status operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters updatePaymentRequestStatus
+type UpdatePaymentRequestStatusParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ Required: true
+ In: header
+ */
+ IfMatch string
+ /*
+ Required: true
+ In: body
+ */
+ Body *supportmessages.UpdatePaymentRequestStatus
+ /*UUID of payment request.
+ Required: true
+ In: path
+ */
+ PaymentRequestID strfmt.UUID
+}
+
+// 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 NewUpdatePaymentRequestStatusParams() beforehand.
+func (o *UpdatePaymentRequestStatusParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if err := o.bindIfMatch(r.Header[http.CanonicalHeaderKey("If-Match")], true, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.UpdatePaymentRequestStatus
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ if err == io.EOF {
+ res = append(res, errors.Required("body", "body", ""))
+ } else {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ }
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ } else {
+ res = append(res, errors.Required("body", "body", ""))
+ }
+
+ rPaymentRequestID, rhkPaymentRequestID, _ := route.Params.GetOK("paymentRequestID")
+ if err := o.bindPaymentRequestID(rPaymentRequestID, rhkPaymentRequestID, route.Formats); err != nil {
+ res = append(res, err)
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// bindIfMatch binds and validates parameter IfMatch from header.
+func (o *UpdatePaymentRequestStatusParams) bindIfMatch(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ if !hasKey {
+ return errors.Required("If-Match", "header", rawData)
+ }
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+
+ if err := validate.RequiredString("If-Match", "header", raw); err != nil {
+ return err
+ }
+ o.IfMatch = raw
+
+ return nil
+}
+
+// bindPaymentRequestID binds and validates parameter PaymentRequestID from path.
+func (o *UpdatePaymentRequestStatusParams) bindPaymentRequestID(rawData []string, hasKey bool, formats strfmt.Registry) error {
+ var raw string
+ if len(rawData) > 0 {
+ raw = rawData[len(rawData)-1]
+ }
+
+ // Required: true
+ // Parameter is provided by construction from the route
+
+ // Format: uuid
+ value, err := formats.Parse("uuid", raw)
+ if err != nil {
+ return errors.InvalidType("paymentRequestID", "path", "strfmt.UUID", raw)
+ }
+ o.PaymentRequestID = *(value.(*strfmt.UUID))
+
+ if err := o.validatePaymentRequestID(formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// validatePaymentRequestID carries on validations for parameter PaymentRequestID
+func (o *UpdatePaymentRequestStatusParams) validatePaymentRequestID(formats strfmt.Registry) error {
+
+ if err := validate.FormatOf("paymentRequestID", "path", "uuid", o.PaymentRequestID.String(), formats); err != nil {
+ return err
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go
new file mode 100644
index 00000000000..2fbd739f80d
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_responses.go
@@ -0,0 +1,419 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdatePaymentRequestStatusOKCode is the HTTP code returned for type UpdatePaymentRequestStatusOK
+const UpdatePaymentRequestStatusOKCode int = 200
+
+/*
+UpdatePaymentRequestStatusOK Successfully updated payment request status.
+
+swagger:response updatePaymentRequestStatusOK
+*/
+type UpdatePaymentRequestStatusOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.PaymentRequest `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusOK creates UpdatePaymentRequestStatusOK with default headers values
+func NewUpdatePaymentRequestStatusOK() *UpdatePaymentRequestStatusOK {
+
+ return &UpdatePaymentRequestStatusOK{}
+}
+
+// WithPayload adds the payload to the update payment request status o k response
+func (o *UpdatePaymentRequestStatusOK) WithPayload(payload *supportmessages.PaymentRequest) *UpdatePaymentRequestStatusOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status o k response
+func (o *UpdatePaymentRequestStatusOK) SetPayload(payload *supportmessages.PaymentRequest) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusBadRequestCode is the HTTP code returned for type UpdatePaymentRequestStatusBadRequest
+const UpdatePaymentRequestStatusBadRequestCode int = 400
+
+/*
+UpdatePaymentRequestStatusBadRequest The request payload is invalid.
+
+swagger:response updatePaymentRequestStatusBadRequest
+*/
+type UpdatePaymentRequestStatusBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusBadRequest creates UpdatePaymentRequestStatusBadRequest with default headers values
+func NewUpdatePaymentRequestStatusBadRequest() *UpdatePaymentRequestStatusBadRequest {
+
+ return &UpdatePaymentRequestStatusBadRequest{}
+}
+
+// WithPayload adds the payload to the update payment request status bad request response
+func (o *UpdatePaymentRequestStatusBadRequest) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status bad request response
+func (o *UpdatePaymentRequestStatusBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusUnauthorizedCode is the HTTP code returned for type UpdatePaymentRequestStatusUnauthorized
+const UpdatePaymentRequestStatusUnauthorizedCode int = 401
+
+/*
+UpdatePaymentRequestStatusUnauthorized The request was denied.
+
+swagger:response updatePaymentRequestStatusUnauthorized
+*/
+type UpdatePaymentRequestStatusUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusUnauthorized creates UpdatePaymentRequestStatusUnauthorized with default headers values
+func NewUpdatePaymentRequestStatusUnauthorized() *UpdatePaymentRequestStatusUnauthorized {
+
+ return &UpdatePaymentRequestStatusUnauthorized{}
+}
+
+// WithPayload adds the payload to the update payment request status unauthorized response
+func (o *UpdatePaymentRequestStatusUnauthorized) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status unauthorized response
+func (o *UpdatePaymentRequestStatusUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusForbiddenCode is the HTTP code returned for type UpdatePaymentRequestStatusForbidden
+const UpdatePaymentRequestStatusForbiddenCode int = 403
+
+/*
+UpdatePaymentRequestStatusForbidden The request was denied.
+
+swagger:response updatePaymentRequestStatusForbidden
+*/
+type UpdatePaymentRequestStatusForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusForbidden creates UpdatePaymentRequestStatusForbidden with default headers values
+func NewUpdatePaymentRequestStatusForbidden() *UpdatePaymentRequestStatusForbidden {
+
+ return &UpdatePaymentRequestStatusForbidden{}
+}
+
+// WithPayload adds the payload to the update payment request status forbidden response
+func (o *UpdatePaymentRequestStatusForbidden) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status forbidden response
+func (o *UpdatePaymentRequestStatusForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusNotFoundCode is the HTTP code returned for type UpdatePaymentRequestStatusNotFound
+const UpdatePaymentRequestStatusNotFoundCode int = 404
+
+/*
+UpdatePaymentRequestStatusNotFound The requested resource wasn't found.
+
+swagger:response updatePaymentRequestStatusNotFound
+*/
+type UpdatePaymentRequestStatusNotFound struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusNotFound creates UpdatePaymentRequestStatusNotFound with default headers values
+func NewUpdatePaymentRequestStatusNotFound() *UpdatePaymentRequestStatusNotFound {
+
+ return &UpdatePaymentRequestStatusNotFound{}
+}
+
+// WithPayload adds the payload to the update payment request status not found response
+func (o *UpdatePaymentRequestStatusNotFound) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusNotFound {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status not found response
+func (o *UpdatePaymentRequestStatusNotFound) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(404)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusConflictCode is the HTTP code returned for type UpdatePaymentRequestStatusConflict
+const UpdatePaymentRequestStatusConflictCode int = 409
+
+/*
+UpdatePaymentRequestStatusConflict There was a conflict with the request.
+
+swagger:response updatePaymentRequestStatusConflict
+*/
+type UpdatePaymentRequestStatusConflict struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusConflict creates UpdatePaymentRequestStatusConflict with default headers values
+func NewUpdatePaymentRequestStatusConflict() *UpdatePaymentRequestStatusConflict {
+
+ return &UpdatePaymentRequestStatusConflict{}
+}
+
+// WithPayload adds the payload to the update payment request status conflict response
+func (o *UpdatePaymentRequestStatusConflict) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusConflict {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status conflict response
+func (o *UpdatePaymentRequestStatusConflict) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(409)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusPreconditionFailedCode is the HTTP code returned for type UpdatePaymentRequestStatusPreconditionFailed
+const UpdatePaymentRequestStatusPreconditionFailedCode int = 412
+
+/*
+UpdatePaymentRequestStatusPreconditionFailed Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+
+swagger:response updatePaymentRequestStatusPreconditionFailed
+*/
+type UpdatePaymentRequestStatusPreconditionFailed struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusPreconditionFailed creates UpdatePaymentRequestStatusPreconditionFailed with default headers values
+func NewUpdatePaymentRequestStatusPreconditionFailed() *UpdatePaymentRequestStatusPreconditionFailed {
+
+ return &UpdatePaymentRequestStatusPreconditionFailed{}
+}
+
+// WithPayload adds the payload to the update payment request status precondition failed response
+func (o *UpdatePaymentRequestStatusPreconditionFailed) WithPayload(payload *supportmessages.ClientError) *UpdatePaymentRequestStatusPreconditionFailed {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status precondition failed response
+func (o *UpdatePaymentRequestStatusPreconditionFailed) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusPreconditionFailed) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(412)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusUnprocessableEntityCode is the HTTP code returned for type UpdatePaymentRequestStatusUnprocessableEntity
+const UpdatePaymentRequestStatusUnprocessableEntityCode int = 422
+
+/*
+UpdatePaymentRequestStatusUnprocessableEntity The payload was unprocessable.
+
+swagger:response updatePaymentRequestStatusUnprocessableEntity
+*/
+type UpdatePaymentRequestStatusUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusUnprocessableEntity creates UpdatePaymentRequestStatusUnprocessableEntity with default headers values
+func NewUpdatePaymentRequestStatusUnprocessableEntity() *UpdatePaymentRequestStatusUnprocessableEntity {
+
+ return &UpdatePaymentRequestStatusUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the update payment request status unprocessable entity response
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *UpdatePaymentRequestStatusUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status unprocessable entity response
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// UpdatePaymentRequestStatusInternalServerErrorCode is the HTTP code returned for type UpdatePaymentRequestStatusInternalServerError
+const UpdatePaymentRequestStatusInternalServerErrorCode int = 500
+
+/*
+UpdatePaymentRequestStatusInternalServerError A server error occurred.
+
+swagger:response updatePaymentRequestStatusInternalServerError
+*/
+type UpdatePaymentRequestStatusInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewUpdatePaymentRequestStatusInternalServerError creates UpdatePaymentRequestStatusInternalServerError with default headers values
+func NewUpdatePaymentRequestStatusInternalServerError() *UpdatePaymentRequestStatusInternalServerError {
+
+ return &UpdatePaymentRequestStatusInternalServerError{}
+}
+
+// WithPayload adds the payload to the update payment request status internal server error response
+func (o *UpdatePaymentRequestStatusInternalServerError) WithPayload(payload *supportmessages.Error) *UpdatePaymentRequestStatusInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the update payment request status internal server error response
+func (o *UpdatePaymentRequestStatusInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *UpdatePaymentRequestStatusInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go
new file mode 100644
index 00000000000..8d337b7e665
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/payment_request/update_payment_request_status_urlbuilder.go
@@ -0,0 +1,101 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+ "strings"
+
+ "github.com/go-openapi/strfmt"
+)
+
+// UpdatePaymentRequestStatusURL generates an URL for the update payment request status operation
+type UpdatePaymentRequestStatusURL struct {
+ PaymentRequestID strfmt.UUID
+
+ _basePath string
+ // avoid unkeyed usage
+ _ struct{}
+}
+
+// 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
+func (o *UpdatePaymentRequestStatusURL) WithBasePath(bp string) *UpdatePaymentRequestStatusURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *UpdatePaymentRequestStatusURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *UpdatePaymentRequestStatusURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/payment-requests/{paymentRequestID}/status"
+
+ paymentRequestID := o.PaymentRequestID.String()
+ if paymentRequestID != "" {
+ _path = strings.Replace(_path, "{paymentRequestID}", paymentRequestID, -1)
+ } else {
+ return nil, errors.New("paymentRequestId is required on UpdatePaymentRequestStatusURL")
+ }
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *UpdatePaymentRequestStatusURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *UpdatePaymentRequestStatusURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *UpdatePaymentRequestStatusURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on UpdatePaymentRequestStatusURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on UpdatePaymentRequestStatusURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *UpdatePaymentRequestStatusURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go
new file mode 100644
index 00000000000..15b207c8460
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification.go
@@ -0,0 +1,58 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// CreateWebhookNotificationHandlerFunc turns a function with the right signature into a create webhook notification handler
+type CreateWebhookNotificationHandlerFunc func(CreateWebhookNotificationParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn CreateWebhookNotificationHandlerFunc) Handle(params CreateWebhookNotificationParams) middleware.Responder {
+ return fn(params)
+}
+
+// CreateWebhookNotificationHandler interface for that can handle valid create webhook notification params
+type CreateWebhookNotificationHandler interface {
+ Handle(CreateWebhookNotificationParams) middleware.Responder
+}
+
+// NewCreateWebhookNotification creates a new http.Handler for the create webhook notification operation
+func NewCreateWebhookNotification(ctx *middleware.Context, handler CreateWebhookNotificationHandler) *CreateWebhookNotification {
+ return &CreateWebhookNotification{Context: ctx, Handler: handler}
+}
+
+/*
+ CreateWebhookNotification swagger:route POST /webhook-notifications webhook createWebhookNotification
+
+# Test endpoint for creating webhook notifications
+
+This endpoint creates a webhook notification in the database. If the webhook client is running, it may send the notification soon after creation.
+*/
+type CreateWebhookNotification struct {
+ Context *middleware.Context
+ Handler CreateWebhookNotificationHandler
+}
+
+func (o *CreateWebhookNotification) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewCreateWebhookNotificationParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go
new file mode 100644
index 00000000000..aeeedc93343
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_parameters.go
@@ -0,0 +1,76 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewCreateWebhookNotificationParams creates a new CreateWebhookNotificationParams object
+//
+// There are no default values defined in the spec.
+func NewCreateWebhookNotificationParams() CreateWebhookNotificationParams {
+
+ return CreateWebhookNotificationParams{}
+}
+
+// CreateWebhookNotificationParams contains all the bound params for the create webhook notification operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters createWebhookNotification
+type CreateWebhookNotificationParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*The notification sent by webhook-client.
+ In: body
+ */
+ Body *supportmessages.WebhookNotification
+}
+
+// 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 NewCreateWebhookNotificationParams() beforehand.
+func (o *CreateWebhookNotificationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.WebhookNotification
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go
new file mode 100644
index 00000000000..f697cc5bf92
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_responses.go
@@ -0,0 +1,149 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// CreateWebhookNotificationCreatedCode is the HTTP code returned for type CreateWebhookNotificationCreated
+const CreateWebhookNotificationCreatedCode int = 201
+
+/*
+CreateWebhookNotificationCreated Successful creation
+
+swagger:response createWebhookNotificationCreated
+*/
+type CreateWebhookNotificationCreated struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.WebhookNotification `json:"body,omitempty"`
+}
+
+// NewCreateWebhookNotificationCreated creates CreateWebhookNotificationCreated with default headers values
+func NewCreateWebhookNotificationCreated() *CreateWebhookNotificationCreated {
+
+ return &CreateWebhookNotificationCreated{}
+}
+
+// WithPayload adds the payload to the create webhook notification created response
+func (o *CreateWebhookNotificationCreated) WithPayload(payload *supportmessages.WebhookNotification) *CreateWebhookNotificationCreated {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the create webhook notification created response
+func (o *CreateWebhookNotificationCreated) SetPayload(payload *supportmessages.WebhookNotification) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *CreateWebhookNotificationCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(201)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// CreateWebhookNotificationUnprocessableEntityCode is the HTTP code returned for type CreateWebhookNotificationUnprocessableEntity
+const CreateWebhookNotificationUnprocessableEntityCode int = 422
+
+/*
+CreateWebhookNotificationUnprocessableEntity The payload was unprocessable.
+
+swagger:response createWebhookNotificationUnprocessableEntity
+*/
+type CreateWebhookNotificationUnprocessableEntity struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ValidationError `json:"body,omitempty"`
+}
+
+// NewCreateWebhookNotificationUnprocessableEntity creates CreateWebhookNotificationUnprocessableEntity with default headers values
+func NewCreateWebhookNotificationUnprocessableEntity() *CreateWebhookNotificationUnprocessableEntity {
+
+ return &CreateWebhookNotificationUnprocessableEntity{}
+}
+
+// WithPayload adds the payload to the create webhook notification unprocessable entity response
+func (o *CreateWebhookNotificationUnprocessableEntity) WithPayload(payload *supportmessages.ValidationError) *CreateWebhookNotificationUnprocessableEntity {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the create webhook notification unprocessable entity response
+func (o *CreateWebhookNotificationUnprocessableEntity) SetPayload(payload *supportmessages.ValidationError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *CreateWebhookNotificationUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(422)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// CreateWebhookNotificationInternalServerErrorCode is the HTTP code returned for type CreateWebhookNotificationInternalServerError
+const CreateWebhookNotificationInternalServerErrorCode int = 500
+
+/*
+CreateWebhookNotificationInternalServerError A server error occurred.
+
+swagger:response createWebhookNotificationInternalServerError
+*/
+type CreateWebhookNotificationInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewCreateWebhookNotificationInternalServerError creates CreateWebhookNotificationInternalServerError with default headers values
+func NewCreateWebhookNotificationInternalServerError() *CreateWebhookNotificationInternalServerError {
+
+ return &CreateWebhookNotificationInternalServerError{}
+}
+
+// WithPayload adds the payload to the create webhook notification internal server error response
+func (o *CreateWebhookNotificationInternalServerError) WithPayload(payload *supportmessages.Error) *CreateWebhookNotificationInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the create webhook notification internal server error response
+func (o *CreateWebhookNotificationInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *CreateWebhookNotificationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go
new file mode 100644
index 00000000000..ac3646fd8a0
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/create_webhook_notification_urlbuilder.go
@@ -0,0 +1,87 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+)
+
+// CreateWebhookNotificationURL generates an URL for the create webhook notification operation
+type CreateWebhookNotificationURL struct {
+ _basePath string
+}
+
+// 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
+func (o *CreateWebhookNotificationURL) WithBasePath(bp string) *CreateWebhookNotificationURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *CreateWebhookNotificationURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *CreateWebhookNotificationURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/webhook-notifications"
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *CreateWebhookNotificationURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *CreateWebhookNotificationURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *CreateWebhookNotificationURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on CreateWebhookNotificationURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on CreateWebhookNotificationURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *CreateWebhookNotificationURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go
new file mode 100644
index 00000000000..900907c8d0d
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification.go
@@ -0,0 +1,58 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime/middleware"
+)
+
+// ReceiveWebhookNotificationHandlerFunc turns a function with the right signature into a receive webhook notification handler
+type ReceiveWebhookNotificationHandlerFunc func(ReceiveWebhookNotificationParams) middleware.Responder
+
+// Handle executing the request and returning a response
+func (fn ReceiveWebhookNotificationHandlerFunc) Handle(params ReceiveWebhookNotificationParams) middleware.Responder {
+ return fn(params)
+}
+
+// ReceiveWebhookNotificationHandler interface for that can handle valid receive webhook notification params
+type ReceiveWebhookNotificationHandler interface {
+ Handle(ReceiveWebhookNotificationParams) middleware.Responder
+}
+
+// NewReceiveWebhookNotification creates a new http.Handler for the receive webhook notification operation
+func NewReceiveWebhookNotification(ctx *middleware.Context, handler ReceiveWebhookNotificationHandler) *ReceiveWebhookNotification {
+ return &ReceiveWebhookNotification{Context: ctx, Handler: handler}
+}
+
+/*
+ ReceiveWebhookNotification swagger:route POST /webhook-notify webhook receiveWebhookNotification
+
+# Test endpoint for receiving messages from our own webhook-client
+
+This endpoint receives a notification that matches the webhook notification model. This is a test endpoint that represents a receiving server. In production, the Prime will set up a receiving endpoint. In testing, this server accepts notifications at this endpoint and simply responds with success and logs them. The `webhook-client` is responsible for retrieving messages from the webhook_notifications table and sending them to the Prime (this endpoint in our testing case) via an mTLS connection.
+*/
+type ReceiveWebhookNotification struct {
+ Context *middleware.Context
+ Handler ReceiveWebhookNotificationHandler
+}
+
+func (o *ReceiveWebhookNotification) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
+ route, rCtx, _ := o.Context.RouteInfo(r)
+ if rCtx != nil {
+ *r = *rCtx
+ }
+ var Params = NewReceiveWebhookNotificationParams()
+ if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params
+ o.Context.Respond(rw, r, route.Produces, route, err)
+ return
+ }
+
+ res := o.Handler.Handle(Params) // actually handle the request
+ o.Context.Respond(rw, r, route.Produces, route, res)
+
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go
new file mode 100644
index 00000000000..633b176db6a
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_parameters.go
@@ -0,0 +1,84 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "io"
+ "net/http"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/runtime/middleware"
+ "github.com/go-openapi/validate"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewReceiveWebhookNotificationParams creates a new ReceiveWebhookNotificationParams object
+//
+// There are no default values defined in the spec.
+func NewReceiveWebhookNotificationParams() ReceiveWebhookNotificationParams {
+
+ return ReceiveWebhookNotificationParams{}
+}
+
+// ReceiveWebhookNotificationParams contains all the bound params for the receive webhook notification operation
+// typically these are obtained from a http.Request
+//
+// swagger:parameters receiveWebhookNotification
+type ReceiveWebhookNotificationParams struct {
+
+ // HTTP Request Object
+ HTTPRequest *http.Request `json:"-"`
+
+ /*The webhook notification being sent
+ Required: true
+ In: body
+ */
+ Body *supportmessages.WebhookNotification
+}
+
+// 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 NewReceiveWebhookNotificationParams() beforehand.
+func (o *ReceiveWebhookNotificationParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error {
+ var res []error
+
+ o.HTTPRequest = r
+
+ if runtime.HasBody(r) {
+ defer r.Body.Close()
+ var body supportmessages.WebhookNotification
+ if err := route.Consumer.Consume(r.Body, &body); err != nil {
+ if err == io.EOF {
+ res = append(res, errors.Required("body", "body", ""))
+ } else {
+ res = append(res, errors.NewParseError("body", "body", "", err))
+ }
+ } else {
+ // validate body object
+ if err := body.Validate(route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ ctx := validate.WithOperationRequest(r.Context())
+ if err := body.ContextValidate(ctx, route.Formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) == 0 {
+ o.Body = &body
+ }
+ }
+ } else {
+ res = append(res, errors.Required("body", "body", ""))
+ }
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go
new file mode 100644
index 00000000000..4bc18b5f51f
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_responses.go
@@ -0,0 +1,239 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "net/http"
+
+ "github.com/go-openapi/runtime"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ReceiveWebhookNotificationOKCode is the HTTP code returned for type ReceiveWebhookNotificationOK
+const ReceiveWebhookNotificationOKCode int = 200
+
+/*
+ReceiveWebhookNotificationOK Received notification
+
+swagger:response receiveWebhookNotificationOK
+*/
+type ReceiveWebhookNotificationOK struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.WebhookNotification `json:"body,omitempty"`
+}
+
+// NewReceiveWebhookNotificationOK creates ReceiveWebhookNotificationOK with default headers values
+func NewReceiveWebhookNotificationOK() *ReceiveWebhookNotificationOK {
+
+ return &ReceiveWebhookNotificationOK{}
+}
+
+// WithPayload adds the payload to the receive webhook notification o k response
+func (o *ReceiveWebhookNotificationOK) WithPayload(payload *supportmessages.WebhookNotification) *ReceiveWebhookNotificationOK {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the receive webhook notification o k response
+func (o *ReceiveWebhookNotificationOK) SetPayload(payload *supportmessages.WebhookNotification) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ReceiveWebhookNotificationOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(200)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ReceiveWebhookNotificationBadRequestCode is the HTTP code returned for type ReceiveWebhookNotificationBadRequest
+const ReceiveWebhookNotificationBadRequestCode int = 400
+
+/*
+ReceiveWebhookNotificationBadRequest The request payload is invalid.
+
+swagger:response receiveWebhookNotificationBadRequest
+*/
+type ReceiveWebhookNotificationBadRequest struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewReceiveWebhookNotificationBadRequest creates ReceiveWebhookNotificationBadRequest with default headers values
+func NewReceiveWebhookNotificationBadRequest() *ReceiveWebhookNotificationBadRequest {
+
+ return &ReceiveWebhookNotificationBadRequest{}
+}
+
+// WithPayload adds the payload to the receive webhook notification bad request response
+func (o *ReceiveWebhookNotificationBadRequest) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationBadRequest {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the receive webhook notification bad request response
+func (o *ReceiveWebhookNotificationBadRequest) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ReceiveWebhookNotificationBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(400)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ReceiveWebhookNotificationUnauthorizedCode is the HTTP code returned for type ReceiveWebhookNotificationUnauthorized
+const ReceiveWebhookNotificationUnauthorizedCode int = 401
+
+/*
+ReceiveWebhookNotificationUnauthorized The request was denied.
+
+swagger:response receiveWebhookNotificationUnauthorized
+*/
+type ReceiveWebhookNotificationUnauthorized struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewReceiveWebhookNotificationUnauthorized creates ReceiveWebhookNotificationUnauthorized with default headers values
+func NewReceiveWebhookNotificationUnauthorized() *ReceiveWebhookNotificationUnauthorized {
+
+ return &ReceiveWebhookNotificationUnauthorized{}
+}
+
+// WithPayload adds the payload to the receive webhook notification unauthorized response
+func (o *ReceiveWebhookNotificationUnauthorized) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationUnauthorized {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the receive webhook notification unauthorized response
+func (o *ReceiveWebhookNotificationUnauthorized) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ReceiveWebhookNotificationUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(401)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ReceiveWebhookNotificationForbiddenCode is the HTTP code returned for type ReceiveWebhookNotificationForbidden
+const ReceiveWebhookNotificationForbiddenCode int = 403
+
+/*
+ReceiveWebhookNotificationForbidden The request was denied.
+
+swagger:response receiveWebhookNotificationForbidden
+*/
+type ReceiveWebhookNotificationForbidden struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.ClientError `json:"body,omitempty"`
+}
+
+// NewReceiveWebhookNotificationForbidden creates ReceiveWebhookNotificationForbidden with default headers values
+func NewReceiveWebhookNotificationForbidden() *ReceiveWebhookNotificationForbidden {
+
+ return &ReceiveWebhookNotificationForbidden{}
+}
+
+// WithPayload adds the payload to the receive webhook notification forbidden response
+func (o *ReceiveWebhookNotificationForbidden) WithPayload(payload *supportmessages.ClientError) *ReceiveWebhookNotificationForbidden {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the receive webhook notification forbidden response
+func (o *ReceiveWebhookNotificationForbidden) SetPayload(payload *supportmessages.ClientError) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ReceiveWebhookNotificationForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(403)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
+
+// ReceiveWebhookNotificationInternalServerErrorCode is the HTTP code returned for type ReceiveWebhookNotificationInternalServerError
+const ReceiveWebhookNotificationInternalServerErrorCode int = 500
+
+/*
+ReceiveWebhookNotificationInternalServerError A server error occurred.
+
+swagger:response receiveWebhookNotificationInternalServerError
+*/
+type ReceiveWebhookNotificationInternalServerError struct {
+
+ /*
+ In: Body
+ */
+ Payload *supportmessages.Error `json:"body,omitempty"`
+}
+
+// NewReceiveWebhookNotificationInternalServerError creates ReceiveWebhookNotificationInternalServerError with default headers values
+func NewReceiveWebhookNotificationInternalServerError() *ReceiveWebhookNotificationInternalServerError {
+
+ return &ReceiveWebhookNotificationInternalServerError{}
+}
+
+// WithPayload adds the payload to the receive webhook notification internal server error response
+func (o *ReceiveWebhookNotificationInternalServerError) WithPayload(payload *supportmessages.Error) *ReceiveWebhookNotificationInternalServerError {
+ o.Payload = payload
+ return o
+}
+
+// SetPayload sets the payload to the receive webhook notification internal server error response
+func (o *ReceiveWebhookNotificationInternalServerError) SetPayload(payload *supportmessages.Error) {
+ o.Payload = payload
+}
+
+// WriteResponse to the client
+func (o *ReceiveWebhookNotificationInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
+
+ rw.WriteHeader(500)
+ if o.Payload != nil {
+ payload := o.Payload
+ if err := producer.Produce(rw, payload); err != nil {
+ panic(err) // let the recovery middleware deal with this
+ }
+ }
+}
diff --git a/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go
new file mode 100644
index 00000000000..37421521ef9
--- /dev/null
+++ b/pkg/gen/supportapi/supportoperations/webhook/receive_webhook_notification_urlbuilder.go
@@ -0,0 +1,87 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the generate command
+
+import (
+ "errors"
+ "net/url"
+ golangswaggerpaths "path"
+)
+
+// ReceiveWebhookNotificationURL generates an URL for the receive webhook notification operation
+type ReceiveWebhookNotificationURL struct {
+ _basePath string
+}
+
+// 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
+func (o *ReceiveWebhookNotificationURL) WithBasePath(bp string) *ReceiveWebhookNotificationURL {
+ o.SetBasePath(bp)
+ return o
+}
+
+// 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 (o *ReceiveWebhookNotificationURL) SetBasePath(bp string) {
+ o._basePath = bp
+}
+
+// Build a url path and query string
+func (o *ReceiveWebhookNotificationURL) Build() (*url.URL, error) {
+ var _result url.URL
+
+ var _path = "/webhook-notify"
+
+ _basePath := o._basePath
+ if _basePath == "" {
+ _basePath = "/support/v1"
+ }
+ _result.Path = golangswaggerpaths.Join(_basePath, _path)
+
+ return &_result, nil
+}
+
+// Must is a helper function to panic when the url builder returns an error
+func (o *ReceiveWebhookNotificationURL) Must(u *url.URL, err error) *url.URL {
+ if err != nil {
+ panic(err)
+ }
+ if u == nil {
+ panic("url can't be nil")
+ }
+ return u
+}
+
+// String returns the string representation of the path with query string
+func (o *ReceiveWebhookNotificationURL) String() string {
+ return o.Must(o.Build()).String()
+}
+
+// BuildFull builds a full url with scheme, host, path and query string
+func (o *ReceiveWebhookNotificationURL) BuildFull(scheme, host string) (*url.URL, error) {
+ if scheme == "" {
+ return nil, errors.New("scheme is required for a full url on ReceiveWebhookNotificationURL")
+ }
+ if host == "" {
+ return nil, errors.New("host is required for a full url on ReceiveWebhookNotificationURL")
+ }
+
+ base, err := o.Build()
+ if err != nil {
+ return nil, err
+ }
+
+ base.Scheme = scheme
+ base.Host = host
+ return base, nil
+}
+
+// StringFull returns the string representation of a complete url
+func (o *ReceiveWebhookNotificationURL) StringFull(scheme, host string) string {
+ return o.Must(o.BuildFull(scheme, host)).String()
+}
diff --git a/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go b/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go
new file mode 100644
index 00000000000..7e35818353c
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/create_move_task_order_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewCreateMoveTaskOrderParams creates a new CreateMoveTaskOrderParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateMoveTaskOrderParams() *CreateMoveTaskOrderParams {
+ return &CreateMoveTaskOrderParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateMoveTaskOrderParamsWithTimeout creates a new CreateMoveTaskOrderParams object
+// with the ability to set a timeout on a request.
+func NewCreateMoveTaskOrderParamsWithTimeout(timeout time.Duration) *CreateMoveTaskOrderParams {
+ return &CreateMoveTaskOrderParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateMoveTaskOrderParamsWithContext creates a new CreateMoveTaskOrderParams object
+// with the ability to set a context for a request.
+func NewCreateMoveTaskOrderParamsWithContext(ctx context.Context) *CreateMoveTaskOrderParams {
+ return &CreateMoveTaskOrderParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateMoveTaskOrderParamsWithHTTPClient creates a new CreateMoveTaskOrderParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateMoveTaskOrderParamsWithHTTPClient(client *http.Client) *CreateMoveTaskOrderParams {
+ return &CreateMoveTaskOrderParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateMoveTaskOrderParams contains all the parameters to send to the API endpoint
+
+ for the create move task order operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateMoveTaskOrderParams struct {
+
+ // Body.
+ Body *supportmessages.MoveTaskOrder
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create move task order params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateMoveTaskOrderParams) WithDefaults() *CreateMoveTaskOrderParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create move task order params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateMoveTaskOrderParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create move task order params
+func (o *CreateMoveTaskOrderParams) WithTimeout(timeout time.Duration) *CreateMoveTaskOrderParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create move task order params
+func (o *CreateMoveTaskOrderParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create move task order params
+func (o *CreateMoveTaskOrderParams) WithContext(ctx context.Context) *CreateMoveTaskOrderParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create move task order params
+func (o *CreateMoveTaskOrderParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create move task order params
+func (o *CreateMoveTaskOrderParams) WithHTTPClient(client *http.Client) *CreateMoveTaskOrderParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create move task order params
+func (o *CreateMoveTaskOrderParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create move task order params
+func (o *CreateMoveTaskOrderParams) WithBody(body *supportmessages.MoveTaskOrder) *CreateMoveTaskOrderParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create move task order params
+func (o *CreateMoveTaskOrderParams) SetBody(body *supportmessages.MoveTaskOrder) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateMoveTaskOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go b/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go
new file mode 100644
index 00000000000..3a902aaa15e
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/create_move_task_order_responses.go
@@ -0,0 +1,547 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// CreateMoveTaskOrderReader is a Reader for the CreateMoveTaskOrder structure.
+type CreateMoveTaskOrderReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateMoveTaskOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewCreateMoveTaskOrderCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewCreateMoveTaskOrderBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewCreateMoveTaskOrderUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewCreateMoveTaskOrderForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewCreateMoveTaskOrderNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewCreateMoveTaskOrderUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateMoveTaskOrderInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /move-task-orders] createMoveTaskOrder", response, response.Code())
+ }
+}
+
+// NewCreateMoveTaskOrderCreated creates a CreateMoveTaskOrderCreated with default headers values
+func NewCreateMoveTaskOrderCreated() *CreateMoveTaskOrderCreated {
+ return &CreateMoveTaskOrderCreated{}
+}
+
+/*
+CreateMoveTaskOrderCreated describes a response with status code 201, with default header values.
+
+Successfully created MoveTaskOrder object.
+*/
+type CreateMoveTaskOrderCreated struct {
+ Payload *supportmessages.MoveTaskOrder
+}
+
+// IsSuccess returns true when this create move task order created response has a 2xx status code
+func (o *CreateMoveTaskOrderCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create move task order created response has a 3xx status code
+func (o *CreateMoveTaskOrderCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order created response has a 4xx status code
+func (o *CreateMoveTaskOrderCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create move task order created response has a 5xx status code
+func (o *CreateMoveTaskOrderCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order created response a status code equal to that given
+func (o *CreateMoveTaskOrderCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the create move task order created response
+func (o *CreateMoveTaskOrderCreated) Code() int {
+ return 201
+}
+
+func (o *CreateMoveTaskOrderCreated) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderCreated %+v", 201, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderCreated) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderCreated %+v", 201, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderCreated) GetPayload() *supportmessages.MoveTaskOrder {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.MoveTaskOrder)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderBadRequest creates a CreateMoveTaskOrderBadRequest with default headers values
+func NewCreateMoveTaskOrderBadRequest() *CreateMoveTaskOrderBadRequest {
+ return &CreateMoveTaskOrderBadRequest{}
+}
+
+/*
+CreateMoveTaskOrderBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type CreateMoveTaskOrderBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this create move task order bad request response has a 2xx status code
+func (o *CreateMoveTaskOrderBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order bad request response has a 3xx status code
+func (o *CreateMoveTaskOrderBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order bad request response has a 4xx status code
+func (o *CreateMoveTaskOrderBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create move task order bad request response has a 5xx status code
+func (o *CreateMoveTaskOrderBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order bad request response a status code equal to that given
+func (o *CreateMoveTaskOrderBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the create move task order bad request response
+func (o *CreateMoveTaskOrderBadRequest) Code() int {
+ return 400
+}
+
+func (o *CreateMoveTaskOrderBadRequest) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderBadRequest) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderBadRequest %+v", 400, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderUnauthorized creates a CreateMoveTaskOrderUnauthorized with default headers values
+func NewCreateMoveTaskOrderUnauthorized() *CreateMoveTaskOrderUnauthorized {
+ return &CreateMoveTaskOrderUnauthorized{}
+}
+
+/*
+CreateMoveTaskOrderUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type CreateMoveTaskOrderUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this create move task order unauthorized response has a 2xx status code
+func (o *CreateMoveTaskOrderUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order unauthorized response has a 3xx status code
+func (o *CreateMoveTaskOrderUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order unauthorized response has a 4xx status code
+func (o *CreateMoveTaskOrderUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create move task order unauthorized response has a 5xx status code
+func (o *CreateMoveTaskOrderUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order unauthorized response a status code equal to that given
+func (o *CreateMoveTaskOrderUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the create move task order unauthorized response
+func (o *CreateMoveTaskOrderUnauthorized) Code() int {
+ return 401
+}
+
+func (o *CreateMoveTaskOrderUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderUnauthorized) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderForbidden creates a CreateMoveTaskOrderForbidden with default headers values
+func NewCreateMoveTaskOrderForbidden() *CreateMoveTaskOrderForbidden {
+ return &CreateMoveTaskOrderForbidden{}
+}
+
+/*
+CreateMoveTaskOrderForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type CreateMoveTaskOrderForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this create move task order forbidden response has a 2xx status code
+func (o *CreateMoveTaskOrderForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order forbidden response has a 3xx status code
+func (o *CreateMoveTaskOrderForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order forbidden response has a 4xx status code
+func (o *CreateMoveTaskOrderForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create move task order forbidden response has a 5xx status code
+func (o *CreateMoveTaskOrderForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order forbidden response a status code equal to that given
+func (o *CreateMoveTaskOrderForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the create move task order forbidden response
+func (o *CreateMoveTaskOrderForbidden) Code() int {
+ return 403
+}
+
+func (o *CreateMoveTaskOrderForbidden) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderForbidden) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderForbidden %+v", 403, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderNotFound creates a CreateMoveTaskOrderNotFound with default headers values
+func NewCreateMoveTaskOrderNotFound() *CreateMoveTaskOrderNotFound {
+ return &CreateMoveTaskOrderNotFound{}
+}
+
+/*
+CreateMoveTaskOrderNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type CreateMoveTaskOrderNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this create move task order not found response has a 2xx status code
+func (o *CreateMoveTaskOrderNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order not found response has a 3xx status code
+func (o *CreateMoveTaskOrderNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order not found response has a 4xx status code
+func (o *CreateMoveTaskOrderNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create move task order not found response has a 5xx status code
+func (o *CreateMoveTaskOrderNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order not found response a status code equal to that given
+func (o *CreateMoveTaskOrderNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the create move task order not found response
+func (o *CreateMoveTaskOrderNotFound) Code() int {
+ return 404
+}
+
+func (o *CreateMoveTaskOrderNotFound) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderNotFound %+v", 404, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderNotFound) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderNotFound %+v", 404, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderUnprocessableEntity creates a CreateMoveTaskOrderUnprocessableEntity with default headers values
+func NewCreateMoveTaskOrderUnprocessableEntity() *CreateMoveTaskOrderUnprocessableEntity {
+ return &CreateMoveTaskOrderUnprocessableEntity{}
+}
+
+/*
+CreateMoveTaskOrderUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type CreateMoveTaskOrderUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this create move task order unprocessable entity response has a 2xx status code
+func (o *CreateMoveTaskOrderUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order unprocessable entity response has a 3xx status code
+func (o *CreateMoveTaskOrderUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order unprocessable entity response has a 4xx status code
+func (o *CreateMoveTaskOrderUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create move task order unprocessable entity response has a 5xx status code
+func (o *CreateMoveTaskOrderUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create move task order unprocessable entity response a status code equal to that given
+func (o *CreateMoveTaskOrderUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the create move task order unprocessable entity response
+func (o *CreateMoveTaskOrderUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *CreateMoveTaskOrderUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderUnprocessableEntity) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateMoveTaskOrderInternalServerError creates a CreateMoveTaskOrderInternalServerError with default headers values
+func NewCreateMoveTaskOrderInternalServerError() *CreateMoveTaskOrderInternalServerError {
+ return &CreateMoveTaskOrderInternalServerError{}
+}
+
+/*
+CreateMoveTaskOrderInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type CreateMoveTaskOrderInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this create move task order internal server error response has a 2xx status code
+func (o *CreateMoveTaskOrderInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create move task order internal server error response has a 3xx status code
+func (o *CreateMoveTaskOrderInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create move task order internal server error response has a 4xx status code
+func (o *CreateMoveTaskOrderInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create move task order internal server error response has a 5xx status code
+func (o *CreateMoveTaskOrderInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create move task order internal server error response a status code equal to that given
+func (o *CreateMoveTaskOrderInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create move task order internal server error response
+func (o *CreateMoveTaskOrderInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateMoveTaskOrderInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderInternalServerError) String() string {
+ return fmt.Sprintf("[POST /move-task-orders][%d] createMoveTaskOrderInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateMoveTaskOrderInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *CreateMoveTaskOrderInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go b/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go
new file mode 100644
index 00000000000..e7b0c9c9eed
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/get_move_task_order_parameters.go
@@ -0,0 +1,151 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetMoveTaskOrderParams creates a new GetMoveTaskOrderParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetMoveTaskOrderParams() *GetMoveTaskOrderParams {
+ return &GetMoveTaskOrderParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetMoveTaskOrderParamsWithTimeout creates a new GetMoveTaskOrderParams object
+// with the ability to set a timeout on a request.
+func NewGetMoveTaskOrderParamsWithTimeout(timeout time.Duration) *GetMoveTaskOrderParams {
+ return &GetMoveTaskOrderParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetMoveTaskOrderParamsWithContext creates a new GetMoveTaskOrderParams object
+// with the ability to set a context for a request.
+func NewGetMoveTaskOrderParamsWithContext(ctx context.Context) *GetMoveTaskOrderParams {
+ return &GetMoveTaskOrderParams{
+ Context: ctx,
+ }
+}
+
+// NewGetMoveTaskOrderParamsWithHTTPClient creates a new GetMoveTaskOrderParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetMoveTaskOrderParamsWithHTTPClient(client *http.Client) *GetMoveTaskOrderParams {
+ return &GetMoveTaskOrderParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetMoveTaskOrderParams contains all the parameters to send to the API endpoint
+
+ for the get move task order operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetMoveTaskOrderParams struct {
+
+ /* MoveTaskOrderID.
+
+ UUID of move task order to use.
+ */
+ MoveTaskOrderID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get move task order params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetMoveTaskOrderParams) WithDefaults() *GetMoveTaskOrderParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get move task order params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetMoveTaskOrderParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get move task order params
+func (o *GetMoveTaskOrderParams) WithTimeout(timeout time.Duration) *GetMoveTaskOrderParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get move task order params
+func (o *GetMoveTaskOrderParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get move task order params
+func (o *GetMoveTaskOrderParams) WithContext(ctx context.Context) *GetMoveTaskOrderParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get move task order params
+func (o *GetMoveTaskOrderParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get move task order params
+func (o *GetMoveTaskOrderParams) WithHTTPClient(client *http.Client) *GetMoveTaskOrderParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get move task order params
+func (o *GetMoveTaskOrderParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithMoveTaskOrderID adds the moveTaskOrderID to the get move task order params
+func (o *GetMoveTaskOrderParams) WithMoveTaskOrderID(moveTaskOrderID string) *GetMoveTaskOrderParams {
+ o.SetMoveTaskOrderID(moveTaskOrderID)
+ return o
+}
+
+// SetMoveTaskOrderID adds the moveTaskOrderId to the get move task order params
+func (o *GetMoveTaskOrderParams) SetMoveTaskOrderID(moveTaskOrderID string) {
+ o.MoveTaskOrderID = moveTaskOrderID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetMoveTaskOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param moveTaskOrderID
+ if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go b/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go
new file mode 100644
index 00000000000..09f4fc6e91c
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/get_move_task_order_responses.go
@@ -0,0 +1,399 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// GetMoveTaskOrderReader is a Reader for the GetMoveTaskOrder structure.
+type GetMoveTaskOrderReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetMoveTaskOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetMoveTaskOrderOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 401:
+ result := NewGetMoveTaskOrderUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetMoveTaskOrderForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetMoveTaskOrderNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetMoveTaskOrderInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /move-task-orders/{moveTaskOrderID}] getMoveTaskOrder", response, response.Code())
+ }
+}
+
+// NewGetMoveTaskOrderOK creates a GetMoveTaskOrderOK with default headers values
+func NewGetMoveTaskOrderOK() *GetMoveTaskOrderOK {
+ return &GetMoveTaskOrderOK{}
+}
+
+/*
+GetMoveTaskOrderOK describes a response with status code 200, with default header values.
+
+Successfully retrieve an individual move task order.
+*/
+type GetMoveTaskOrderOK struct {
+ Payload *supportmessages.MoveTaskOrder
+}
+
+// IsSuccess returns true when this get move task order o k response has a 2xx status code
+func (o *GetMoveTaskOrderOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get move task order o k response has a 3xx status code
+func (o *GetMoveTaskOrderOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get move task order o k response has a 4xx status code
+func (o *GetMoveTaskOrderOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get move task order o k response has a 5xx status code
+func (o *GetMoveTaskOrderOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get move task order o k response a status code equal to that given
+func (o *GetMoveTaskOrderOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get move task order o k response
+func (o *GetMoveTaskOrderOK) Code() int {
+ return 200
+}
+
+func (o *GetMoveTaskOrderOK) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderOK %+v", 200, o.Payload)
+}
+
+func (o *GetMoveTaskOrderOK) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderOK %+v", 200, o.Payload)
+}
+
+func (o *GetMoveTaskOrderOK) GetPayload() *supportmessages.MoveTaskOrder {
+ return o.Payload
+}
+
+func (o *GetMoveTaskOrderOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.MoveTaskOrder)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMoveTaskOrderUnauthorized creates a GetMoveTaskOrderUnauthorized with default headers values
+func NewGetMoveTaskOrderUnauthorized() *GetMoveTaskOrderUnauthorized {
+ return &GetMoveTaskOrderUnauthorized{}
+}
+
+/*
+GetMoveTaskOrderUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type GetMoveTaskOrderUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get move task order unauthorized response has a 2xx status code
+func (o *GetMoveTaskOrderUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get move task order unauthorized response has a 3xx status code
+func (o *GetMoveTaskOrderUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get move task order unauthorized response has a 4xx status code
+func (o *GetMoveTaskOrderUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get move task order unauthorized response has a 5xx status code
+func (o *GetMoveTaskOrderUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get move task order unauthorized response a status code equal to that given
+func (o *GetMoveTaskOrderUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get move task order unauthorized response
+func (o *GetMoveTaskOrderUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetMoveTaskOrderUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetMoveTaskOrderUnauthorized) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetMoveTaskOrderUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetMoveTaskOrderUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMoveTaskOrderForbidden creates a GetMoveTaskOrderForbidden with default headers values
+func NewGetMoveTaskOrderForbidden() *GetMoveTaskOrderForbidden {
+ return &GetMoveTaskOrderForbidden{}
+}
+
+/*
+GetMoveTaskOrderForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type GetMoveTaskOrderForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get move task order forbidden response has a 2xx status code
+func (o *GetMoveTaskOrderForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get move task order forbidden response has a 3xx status code
+func (o *GetMoveTaskOrderForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get move task order forbidden response has a 4xx status code
+func (o *GetMoveTaskOrderForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get move task order forbidden response has a 5xx status code
+func (o *GetMoveTaskOrderForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get move task order forbidden response a status code equal to that given
+func (o *GetMoveTaskOrderForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get move task order forbidden response
+func (o *GetMoveTaskOrderForbidden) Code() int {
+ return 403
+}
+
+func (o *GetMoveTaskOrderForbidden) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetMoveTaskOrderForbidden) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetMoveTaskOrderForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetMoveTaskOrderForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMoveTaskOrderNotFound creates a GetMoveTaskOrderNotFound with default headers values
+func NewGetMoveTaskOrderNotFound() *GetMoveTaskOrderNotFound {
+ return &GetMoveTaskOrderNotFound{}
+}
+
+/*
+GetMoveTaskOrderNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type GetMoveTaskOrderNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get move task order not found response has a 2xx status code
+func (o *GetMoveTaskOrderNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get move task order not found response has a 3xx status code
+func (o *GetMoveTaskOrderNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get move task order not found response has a 4xx status code
+func (o *GetMoveTaskOrderNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get move task order not found response has a 5xx status code
+func (o *GetMoveTaskOrderNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get move task order not found response a status code equal to that given
+func (o *GetMoveTaskOrderNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the get move task order not found response
+func (o *GetMoveTaskOrderNotFound) Code() int {
+ return 404
+}
+
+func (o *GetMoveTaskOrderNotFound) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderNotFound %+v", 404, o.Payload)
+}
+
+func (o *GetMoveTaskOrderNotFound) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderNotFound %+v", 404, o.Payload)
+}
+
+func (o *GetMoveTaskOrderNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetMoveTaskOrderNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetMoveTaskOrderInternalServerError creates a GetMoveTaskOrderInternalServerError with default headers values
+func NewGetMoveTaskOrderInternalServerError() *GetMoveTaskOrderInternalServerError {
+ return &GetMoveTaskOrderInternalServerError{}
+}
+
+/*
+GetMoveTaskOrderInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type GetMoveTaskOrderInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this get move task order internal server error response has a 2xx status code
+func (o *GetMoveTaskOrderInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get move task order internal server error response has a 3xx status code
+func (o *GetMoveTaskOrderInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get move task order internal server error response has a 4xx status code
+func (o *GetMoveTaskOrderInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get move task order internal server error response has a 5xx status code
+func (o *GetMoveTaskOrderInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get move task order internal server error response a status code equal to that given
+func (o *GetMoveTaskOrderInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get move task order internal server error response
+func (o *GetMoveTaskOrderInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetMoveTaskOrderInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMoveTaskOrderInternalServerError) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}][%d] getMoveTaskOrderInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetMoveTaskOrderInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *GetMoveTaskOrderInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go
new file mode 100644
index 00000000000..a88f31ff1a6
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_parameters.go
@@ -0,0 +1,128 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewHideNonFakeMoveTaskOrdersParams creates a new HideNonFakeMoveTaskOrdersParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewHideNonFakeMoveTaskOrdersParams() *HideNonFakeMoveTaskOrdersParams {
+ return &HideNonFakeMoveTaskOrdersParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewHideNonFakeMoveTaskOrdersParamsWithTimeout creates a new HideNonFakeMoveTaskOrdersParams object
+// with the ability to set a timeout on a request.
+func NewHideNonFakeMoveTaskOrdersParamsWithTimeout(timeout time.Duration) *HideNonFakeMoveTaskOrdersParams {
+ return &HideNonFakeMoveTaskOrdersParams{
+ timeout: timeout,
+ }
+}
+
+// NewHideNonFakeMoveTaskOrdersParamsWithContext creates a new HideNonFakeMoveTaskOrdersParams object
+// with the ability to set a context for a request.
+func NewHideNonFakeMoveTaskOrdersParamsWithContext(ctx context.Context) *HideNonFakeMoveTaskOrdersParams {
+ return &HideNonFakeMoveTaskOrdersParams{
+ Context: ctx,
+ }
+}
+
+// NewHideNonFakeMoveTaskOrdersParamsWithHTTPClient creates a new HideNonFakeMoveTaskOrdersParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewHideNonFakeMoveTaskOrdersParamsWithHTTPClient(client *http.Client) *HideNonFakeMoveTaskOrdersParams {
+ return &HideNonFakeMoveTaskOrdersParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+HideNonFakeMoveTaskOrdersParams contains all the parameters to send to the API endpoint
+
+ for the hide non fake move task orders operation.
+
+ Typically these are written to a http.Request.
+*/
+type HideNonFakeMoveTaskOrdersParams struct {
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the hide non fake move task orders params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *HideNonFakeMoveTaskOrdersParams) WithDefaults() *HideNonFakeMoveTaskOrdersParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the hide non fake move task orders params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *HideNonFakeMoveTaskOrdersParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) WithTimeout(timeout time.Duration) *HideNonFakeMoveTaskOrdersParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) WithContext(ctx context.Context) *HideNonFakeMoveTaskOrdersParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) WithHTTPClient(client *http.Client) *HideNonFakeMoveTaskOrdersParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the hide non fake move task orders params
+func (o *HideNonFakeMoveTaskOrdersParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *HideNonFakeMoveTaskOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go
new file mode 100644
index 00000000000..8b3cf4daada
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/hide_non_fake_move_task_orders_responses.go
@@ -0,0 +1,695 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// HideNonFakeMoveTaskOrdersReader is a Reader for the HideNonFakeMoveTaskOrders structure.
+type HideNonFakeMoveTaskOrdersReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *HideNonFakeMoveTaskOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewHideNonFakeMoveTaskOrdersOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewHideNonFakeMoveTaskOrdersBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewHideNonFakeMoveTaskOrdersUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewHideNonFakeMoveTaskOrdersForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewHideNonFakeMoveTaskOrdersNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewHideNonFakeMoveTaskOrdersConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewHideNonFakeMoveTaskOrdersPreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewHideNonFakeMoveTaskOrdersUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewHideNonFakeMoveTaskOrdersInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /move-task-orders/hide] hideNonFakeMoveTaskOrders", response, response.Code())
+ }
+}
+
+// NewHideNonFakeMoveTaskOrdersOK creates a HideNonFakeMoveTaskOrdersOK with default headers values
+func NewHideNonFakeMoveTaskOrdersOK() *HideNonFakeMoveTaskOrdersOK {
+ return &HideNonFakeMoveTaskOrdersOK{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersOK describes a response with status code 200, with default header values.
+
+Successfully hid MTOs.
+*/
+type HideNonFakeMoveTaskOrdersOK struct {
+ Payload *supportmessages.MTOHideMovesResponse
+}
+
+// IsSuccess returns true when this hide non fake move task orders o k response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this hide non fake move task orders o k response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders o k response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this hide non fake move task orders o k response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders o k response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the hide non fake move task orders o k response
+func (o *HideNonFakeMoveTaskOrdersOK) Code() int {
+ return 200
+}
+
+func (o *HideNonFakeMoveTaskOrdersOK) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersOK %+v", 200, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersOK) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersOK %+v", 200, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersOK) GetPayload() *supportmessages.MTOHideMovesResponse {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.MTOHideMovesResponse)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersBadRequest creates a HideNonFakeMoveTaskOrdersBadRequest with default headers values
+func NewHideNonFakeMoveTaskOrdersBadRequest() *HideNonFakeMoveTaskOrdersBadRequest {
+ return &HideNonFakeMoveTaskOrdersBadRequest{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type HideNonFakeMoveTaskOrdersBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders bad request response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders bad request response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders bad request response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders bad request response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders bad request response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the hide non fake move task orders bad request response
+func (o *HideNonFakeMoveTaskOrdersBadRequest) Code() int {
+ return 400
+}
+
+func (o *HideNonFakeMoveTaskOrdersBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersBadRequest %+v", 400, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersBadRequest %+v", 400, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersUnauthorized creates a HideNonFakeMoveTaskOrdersUnauthorized with default headers values
+func NewHideNonFakeMoveTaskOrdersUnauthorized() *HideNonFakeMoveTaskOrdersUnauthorized {
+ return &HideNonFakeMoveTaskOrdersUnauthorized{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type HideNonFakeMoveTaskOrdersUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders unauthorized response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders unauthorized response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders unauthorized response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders unauthorized response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders unauthorized response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the hide non fake move task orders unauthorized response
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) Code() int {
+ return 401
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersForbidden creates a HideNonFakeMoveTaskOrdersForbidden with default headers values
+func NewHideNonFakeMoveTaskOrdersForbidden() *HideNonFakeMoveTaskOrdersForbidden {
+ return &HideNonFakeMoveTaskOrdersForbidden{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type HideNonFakeMoveTaskOrdersForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders forbidden response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders forbidden response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders forbidden response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders forbidden response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders forbidden response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the hide non fake move task orders forbidden response
+func (o *HideNonFakeMoveTaskOrdersForbidden) Code() int {
+ return 403
+}
+
+func (o *HideNonFakeMoveTaskOrdersForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersForbidden %+v", 403, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersForbidden) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersForbidden %+v", 403, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersNotFound creates a HideNonFakeMoveTaskOrdersNotFound with default headers values
+func NewHideNonFakeMoveTaskOrdersNotFound() *HideNonFakeMoveTaskOrdersNotFound {
+ return &HideNonFakeMoveTaskOrdersNotFound{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type HideNonFakeMoveTaskOrdersNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders not found response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders not found response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders not found response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders not found response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders not found response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the hide non fake move task orders not found response
+func (o *HideNonFakeMoveTaskOrdersNotFound) Code() int {
+ return 404
+}
+
+func (o *HideNonFakeMoveTaskOrdersNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersNotFound %+v", 404, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersNotFound) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersNotFound %+v", 404, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersConflict creates a HideNonFakeMoveTaskOrdersConflict with default headers values
+func NewHideNonFakeMoveTaskOrdersConflict() *HideNonFakeMoveTaskOrdersConflict {
+ return &HideNonFakeMoveTaskOrdersConflict{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type HideNonFakeMoveTaskOrdersConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders conflict response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders conflict response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders conflict response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders conflict response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders conflict response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the hide non fake move task orders conflict response
+func (o *HideNonFakeMoveTaskOrdersConflict) Code() int {
+ return 409
+}
+
+func (o *HideNonFakeMoveTaskOrdersConflict) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersConflict %+v", 409, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersConflict) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersConflict %+v", 409, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersPreconditionFailed creates a HideNonFakeMoveTaskOrdersPreconditionFailed with default headers values
+func NewHideNonFakeMoveTaskOrdersPreconditionFailed() *HideNonFakeMoveTaskOrdersPreconditionFailed {
+ return &HideNonFakeMoveTaskOrdersPreconditionFailed{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersPreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type HideNonFakeMoveTaskOrdersPreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this hide non fake move task orders precondition failed response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders precondition failed response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders precondition failed response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders precondition failed response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders precondition failed response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the hide non fake move task orders precondition failed response
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersUnprocessableEntity creates a HideNonFakeMoveTaskOrdersUnprocessableEntity with default headers values
+func NewHideNonFakeMoveTaskOrdersUnprocessableEntity() *HideNonFakeMoveTaskOrdersUnprocessableEntity {
+ return &HideNonFakeMoveTaskOrdersUnprocessableEntity{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type HideNonFakeMoveTaskOrdersUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this hide non fake move task orders unprocessable entity response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders unprocessable entity response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders unprocessable entity response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this hide non fake move task orders unprocessable entity response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this hide non fake move task orders unprocessable entity response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the hide non fake move task orders unprocessable entity response
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewHideNonFakeMoveTaskOrdersInternalServerError creates a HideNonFakeMoveTaskOrdersInternalServerError with default headers values
+func NewHideNonFakeMoveTaskOrdersInternalServerError() *HideNonFakeMoveTaskOrdersInternalServerError {
+ return &HideNonFakeMoveTaskOrdersInternalServerError{}
+}
+
+/*
+HideNonFakeMoveTaskOrdersInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type HideNonFakeMoveTaskOrdersInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this hide non fake move task orders internal server error response has a 2xx status code
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this hide non fake move task orders internal server error response has a 3xx status code
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this hide non fake move task orders internal server error response has a 4xx status code
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this hide non fake move task orders internal server error response has a 5xx status code
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this hide non fake move task orders internal server error response a status code equal to that given
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the hide non fake move task orders internal server error response
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) Code() int {
+ return 500
+}
+
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/hide][%d] hideNonFakeMoveTaskOrdersInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *HideNonFakeMoveTaskOrdersInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go b/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go
new file mode 100644
index 00000000000..152e1d4d21f
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/list_m_t_os_parameters.go
@@ -0,0 +1,166 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// NewListMTOsParams creates a new ListMTOsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewListMTOsParams() *ListMTOsParams {
+ return &ListMTOsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewListMTOsParamsWithTimeout creates a new ListMTOsParams object
+// with the ability to set a timeout on a request.
+func NewListMTOsParamsWithTimeout(timeout time.Duration) *ListMTOsParams {
+ return &ListMTOsParams{
+ timeout: timeout,
+ }
+}
+
+// NewListMTOsParamsWithContext creates a new ListMTOsParams object
+// with the ability to set a context for a request.
+func NewListMTOsParamsWithContext(ctx context.Context) *ListMTOsParams {
+ return &ListMTOsParams{
+ Context: ctx,
+ }
+}
+
+// NewListMTOsParamsWithHTTPClient creates a new ListMTOsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewListMTOsParamsWithHTTPClient(client *http.Client) *ListMTOsParams {
+ return &ListMTOsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ListMTOsParams contains all the parameters to send to the API endpoint
+
+ for the list m t os operation.
+
+ Typically these are written to a http.Request.
+*/
+type ListMTOsParams struct {
+
+ /* Since.
+
+ Only return move task orders updated since this time.
+
+ Format: timestamp
+ */
+ Since *int64
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the list m t os params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListMTOsParams) WithDefaults() *ListMTOsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the list m t os params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListMTOsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the list m t os params
+func (o *ListMTOsParams) WithTimeout(timeout time.Duration) *ListMTOsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the list m t os params
+func (o *ListMTOsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the list m t os params
+func (o *ListMTOsParams) WithContext(ctx context.Context) *ListMTOsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the list m t os params
+func (o *ListMTOsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the list m t os params
+func (o *ListMTOsParams) WithHTTPClient(client *http.Client) *ListMTOsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the list m t os params
+func (o *ListMTOsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithSince adds the since to the list m t os params
+func (o *ListMTOsParams) WithSince(since *int64) *ListMTOsParams {
+ o.SetSince(since)
+ return o
+}
+
+// SetSince adds the since to the list m t os params
+func (o *ListMTOsParams) SetSince(since *int64) {
+ o.Since = since
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ListMTOsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ if o.Since != nil {
+
+ // query param since
+ var qrSince int64
+
+ if o.Since != nil {
+ qrSince = *o.Since
+ }
+ qSince := swag.FormatInt64(qrSince)
+ if qSince != "" {
+
+ if err := r.SetQueryParam("since", qSince); err != nil {
+ return err
+ }
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go b/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go
new file mode 100644
index 00000000000..8f622a31f3d
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/list_m_t_os_responses.go
@@ -0,0 +1,471 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ListMTOsReader is a Reader for the ListMTOs structure.
+type ListMTOsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ListMTOsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewListMTOsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewListMTOsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewListMTOsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewListMTOsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewListMTOsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewListMTOsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /move-task-orders] listMTOs", response, response.Code())
+ }
+}
+
+// NewListMTOsOK creates a ListMTOsOK with default headers values
+func NewListMTOsOK() *ListMTOsOK {
+ return &ListMTOsOK{}
+}
+
+/*
+ListMTOsOK describes a response with status code 200, with default header values.
+
+Successfully retrieved all move task orders.
+*/
+type ListMTOsOK struct {
+ Payload supportmessages.MoveTaskOrders
+}
+
+// IsSuccess returns true when this list m t os o k response has a 2xx status code
+func (o *ListMTOsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this list m t os o k response has a 3xx status code
+func (o *ListMTOsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os o k response has a 4xx status code
+func (o *ListMTOsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list m t os o k response has a 5xx status code
+func (o *ListMTOsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t os o k response a status code equal to that given
+func (o *ListMTOsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the list m t os o k response
+func (o *ListMTOsOK) Code() int {
+ return 200
+}
+
+func (o *ListMTOsOK) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsOK %+v", 200, o.Payload)
+}
+
+func (o *ListMTOsOK) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsOK %+v", 200, o.Payload)
+}
+
+func (o *ListMTOsOK) GetPayload() supportmessages.MoveTaskOrders {
+ return o.Payload
+}
+
+func (o *ListMTOsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOsBadRequest creates a ListMTOsBadRequest with default headers values
+func NewListMTOsBadRequest() *ListMTOsBadRequest {
+ return &ListMTOsBadRequest{}
+}
+
+/*
+ListMTOsBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type ListMTOsBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t os bad request response has a 2xx status code
+func (o *ListMTOsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t os bad request response has a 3xx status code
+func (o *ListMTOsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os bad request response has a 4xx status code
+func (o *ListMTOsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t os bad request response has a 5xx status code
+func (o *ListMTOsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t os bad request response a status code equal to that given
+func (o *ListMTOsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the list m t os bad request response
+func (o *ListMTOsBadRequest) Code() int {
+ return 400
+}
+
+func (o *ListMTOsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ListMTOsBadRequest) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ListMTOsBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOsUnauthorized creates a ListMTOsUnauthorized with default headers values
+func NewListMTOsUnauthorized() *ListMTOsUnauthorized {
+ return &ListMTOsUnauthorized{}
+}
+
+/*
+ListMTOsUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type ListMTOsUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t os unauthorized response has a 2xx status code
+func (o *ListMTOsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t os unauthorized response has a 3xx status code
+func (o *ListMTOsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os unauthorized response has a 4xx status code
+func (o *ListMTOsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t os unauthorized response has a 5xx status code
+func (o *ListMTOsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t os unauthorized response a status code equal to that given
+func (o *ListMTOsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the list m t os unauthorized response
+func (o *ListMTOsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ListMTOsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ListMTOsUnauthorized) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ListMTOsUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOsForbidden creates a ListMTOsForbidden with default headers values
+func NewListMTOsForbidden() *ListMTOsForbidden {
+ return &ListMTOsForbidden{}
+}
+
+/*
+ListMTOsForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type ListMTOsForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t os forbidden response has a 2xx status code
+func (o *ListMTOsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t os forbidden response has a 3xx status code
+func (o *ListMTOsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os forbidden response has a 4xx status code
+func (o *ListMTOsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t os forbidden response has a 5xx status code
+func (o *ListMTOsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t os forbidden response a status code equal to that given
+func (o *ListMTOsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the list m t os forbidden response
+func (o *ListMTOsForbidden) Code() int {
+ return 403
+}
+
+func (o *ListMTOsForbidden) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListMTOsForbidden) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListMTOsForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOsNotFound creates a ListMTOsNotFound with default headers values
+func NewListMTOsNotFound() *ListMTOsNotFound {
+ return &ListMTOsNotFound{}
+}
+
+/*
+ListMTOsNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type ListMTOsNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t os not found response has a 2xx status code
+func (o *ListMTOsNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t os not found response has a 3xx status code
+func (o *ListMTOsNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os not found response has a 4xx status code
+func (o *ListMTOsNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t os not found response has a 5xx status code
+func (o *ListMTOsNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t os not found response a status code equal to that given
+func (o *ListMTOsNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the list m t os not found response
+func (o *ListMTOsNotFound) Code() int {
+ return 404
+}
+
+func (o *ListMTOsNotFound) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ListMTOsNotFound) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ListMTOsNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOsInternalServerError creates a ListMTOsInternalServerError with default headers values
+func NewListMTOsInternalServerError() *ListMTOsInternalServerError {
+ return &ListMTOsInternalServerError{}
+}
+
+/*
+ListMTOsInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type ListMTOsInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this list m t os internal server error response has a 2xx status code
+func (o *ListMTOsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t os internal server error response has a 3xx status code
+func (o *ListMTOsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t os internal server error response has a 4xx status code
+func (o *ListMTOsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list m t os internal server error response has a 5xx status code
+func (o *ListMTOsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this list m t os internal server error response a status code equal to that given
+func (o *ListMTOsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the list m t os internal server error response
+func (o *ListMTOsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ListMTOsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListMTOsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /move-task-orders][%d] listMTOsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListMTOsInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *ListMTOsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go
new file mode 100644
index 00000000000..765ce898477
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_parameters.go
@@ -0,0 +1,174 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewMakeMoveTaskOrderAvailableParams creates a new MakeMoveTaskOrderAvailableParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewMakeMoveTaskOrderAvailableParams() *MakeMoveTaskOrderAvailableParams {
+ return &MakeMoveTaskOrderAvailableParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewMakeMoveTaskOrderAvailableParamsWithTimeout creates a new MakeMoveTaskOrderAvailableParams object
+// with the ability to set a timeout on a request.
+func NewMakeMoveTaskOrderAvailableParamsWithTimeout(timeout time.Duration) *MakeMoveTaskOrderAvailableParams {
+ return &MakeMoveTaskOrderAvailableParams{
+ timeout: timeout,
+ }
+}
+
+// NewMakeMoveTaskOrderAvailableParamsWithContext creates a new MakeMoveTaskOrderAvailableParams object
+// with the ability to set a context for a request.
+func NewMakeMoveTaskOrderAvailableParamsWithContext(ctx context.Context) *MakeMoveTaskOrderAvailableParams {
+ return &MakeMoveTaskOrderAvailableParams{
+ Context: ctx,
+ }
+}
+
+// NewMakeMoveTaskOrderAvailableParamsWithHTTPClient creates a new MakeMoveTaskOrderAvailableParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewMakeMoveTaskOrderAvailableParamsWithHTTPClient(client *http.Client) *MakeMoveTaskOrderAvailableParams {
+ return &MakeMoveTaskOrderAvailableParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+MakeMoveTaskOrderAvailableParams contains all the parameters to send to the API endpoint
+
+ for the make move task order available operation.
+
+ Typically these are written to a http.Request.
+*/
+type MakeMoveTaskOrderAvailableParams struct {
+
+ /* IfMatch.
+
+ Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ */
+ IfMatch string
+
+ /* MoveTaskOrderID.
+
+ UUID of move task order.
+ */
+ MoveTaskOrderID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the make move task order available params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *MakeMoveTaskOrderAvailableParams) WithDefaults() *MakeMoveTaskOrderAvailableParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the make move task order available params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *MakeMoveTaskOrderAvailableParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) WithTimeout(timeout time.Duration) *MakeMoveTaskOrderAvailableParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) WithContext(ctx context.Context) *MakeMoveTaskOrderAvailableParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) WithHTTPClient(client *http.Client) *MakeMoveTaskOrderAvailableParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIfMatch adds the ifMatch to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) WithIfMatch(ifMatch string) *MakeMoveTaskOrderAvailableParams {
+ o.SetIfMatch(ifMatch)
+ return o
+}
+
+// SetIfMatch adds the ifMatch to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) SetIfMatch(ifMatch string) {
+ o.IfMatch = ifMatch
+}
+
+// WithMoveTaskOrderID adds the moveTaskOrderID to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) WithMoveTaskOrderID(moveTaskOrderID string) *MakeMoveTaskOrderAvailableParams {
+ o.SetMoveTaskOrderID(moveTaskOrderID)
+ return o
+}
+
+// SetMoveTaskOrderID adds the moveTaskOrderId to the make move task order available params
+func (o *MakeMoveTaskOrderAvailableParams) SetMoveTaskOrderID(moveTaskOrderID string) {
+ o.MoveTaskOrderID = moveTaskOrderID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *MakeMoveTaskOrderAvailableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param If-Match
+ if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
+ return err
+ }
+
+ // path param moveTaskOrderID
+ if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go
new file mode 100644
index 00000000000..8e488681cef
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/make_move_task_order_available_responses.go
@@ -0,0 +1,621 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// MakeMoveTaskOrderAvailableReader is a Reader for the MakeMoveTaskOrderAvailable structure.
+type MakeMoveTaskOrderAvailableReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *MakeMoveTaskOrderAvailableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewMakeMoveTaskOrderAvailableOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewMakeMoveTaskOrderAvailableBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewMakeMoveTaskOrderAvailableUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewMakeMoveTaskOrderAvailableForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewMakeMoveTaskOrderAvailableNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewMakeMoveTaskOrderAvailablePreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewMakeMoveTaskOrderAvailableUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewMakeMoveTaskOrderAvailableInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime] makeMoveTaskOrderAvailable", response, response.Code())
+ }
+}
+
+// NewMakeMoveTaskOrderAvailableOK creates a MakeMoveTaskOrderAvailableOK with default headers values
+func NewMakeMoveTaskOrderAvailableOK() *MakeMoveTaskOrderAvailableOK {
+ return &MakeMoveTaskOrderAvailableOK{}
+}
+
+/*
+MakeMoveTaskOrderAvailableOK describes a response with status code 200, with default header values.
+
+Successfully made MTO available to Prime.
+*/
+type MakeMoveTaskOrderAvailableOK struct {
+ Payload *supportmessages.MoveTaskOrder
+}
+
+// IsSuccess returns true when this make move task order available o k response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this make move task order available o k response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available o k response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this make move task order available o k response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available o k response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the make move task order available o k response
+func (o *MakeMoveTaskOrderAvailableOK) Code() int {
+ return 200
+}
+
+func (o *MakeMoveTaskOrderAvailableOK) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableOK %+v", 200, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableOK) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableOK %+v", 200, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableOK) GetPayload() *supportmessages.MoveTaskOrder {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.MoveTaskOrder)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableBadRequest creates a MakeMoveTaskOrderAvailableBadRequest with default headers values
+func NewMakeMoveTaskOrderAvailableBadRequest() *MakeMoveTaskOrderAvailableBadRequest {
+ return &MakeMoveTaskOrderAvailableBadRequest{}
+}
+
+/*
+MakeMoveTaskOrderAvailableBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type MakeMoveTaskOrderAvailableBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this make move task order available bad request response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available bad request response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available bad request response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available bad request response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available bad request response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the make move task order available bad request response
+func (o *MakeMoveTaskOrderAvailableBadRequest) Code() int {
+ return 400
+}
+
+func (o *MakeMoveTaskOrderAvailableBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableBadRequest %+v", 400, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableBadRequest %+v", 400, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableUnauthorized creates a MakeMoveTaskOrderAvailableUnauthorized with default headers values
+func NewMakeMoveTaskOrderAvailableUnauthorized() *MakeMoveTaskOrderAvailableUnauthorized {
+ return &MakeMoveTaskOrderAvailableUnauthorized{}
+}
+
+/*
+MakeMoveTaskOrderAvailableUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type MakeMoveTaskOrderAvailableUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this make move task order available unauthorized response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available unauthorized response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available unauthorized response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available unauthorized response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available unauthorized response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the make move task order available unauthorized response
+func (o *MakeMoveTaskOrderAvailableUnauthorized) Code() int {
+ return 401
+}
+
+func (o *MakeMoveTaskOrderAvailableUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableForbidden creates a MakeMoveTaskOrderAvailableForbidden with default headers values
+func NewMakeMoveTaskOrderAvailableForbidden() *MakeMoveTaskOrderAvailableForbidden {
+ return &MakeMoveTaskOrderAvailableForbidden{}
+}
+
+/*
+MakeMoveTaskOrderAvailableForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type MakeMoveTaskOrderAvailableForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this make move task order available forbidden response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available forbidden response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available forbidden response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available forbidden response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available forbidden response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the make move task order available forbidden response
+func (o *MakeMoveTaskOrderAvailableForbidden) Code() int {
+ return 403
+}
+
+func (o *MakeMoveTaskOrderAvailableForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableForbidden %+v", 403, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableForbidden) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableForbidden %+v", 403, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableNotFound creates a MakeMoveTaskOrderAvailableNotFound with default headers values
+func NewMakeMoveTaskOrderAvailableNotFound() *MakeMoveTaskOrderAvailableNotFound {
+ return &MakeMoveTaskOrderAvailableNotFound{}
+}
+
+/*
+MakeMoveTaskOrderAvailableNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type MakeMoveTaskOrderAvailableNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this make move task order available not found response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available not found response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available not found response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available not found response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available not found response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the make move task order available not found response
+func (o *MakeMoveTaskOrderAvailableNotFound) Code() int {
+ return 404
+}
+
+func (o *MakeMoveTaskOrderAvailableNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableNotFound %+v", 404, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableNotFound) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableNotFound %+v", 404, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailablePreconditionFailed creates a MakeMoveTaskOrderAvailablePreconditionFailed with default headers values
+func NewMakeMoveTaskOrderAvailablePreconditionFailed() *MakeMoveTaskOrderAvailablePreconditionFailed {
+ return &MakeMoveTaskOrderAvailablePreconditionFailed{}
+}
+
+/*
+MakeMoveTaskOrderAvailablePreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type MakeMoveTaskOrderAvailablePreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this make move task order available precondition failed response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available precondition failed response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available precondition failed response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available precondition failed response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available precondition failed response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the make move task order available precondition failed response
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailablePreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailablePreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailablePreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableUnprocessableEntity creates a MakeMoveTaskOrderAvailableUnprocessableEntity with default headers values
+func NewMakeMoveTaskOrderAvailableUnprocessableEntity() *MakeMoveTaskOrderAvailableUnprocessableEntity {
+ return &MakeMoveTaskOrderAvailableUnprocessableEntity{}
+}
+
+/*
+MakeMoveTaskOrderAvailableUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type MakeMoveTaskOrderAvailableUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this make move task order available unprocessable entity response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available unprocessable entity response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available unprocessable entity response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this make move task order available unprocessable entity response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this make move task order available unprocessable entity response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the make move task order available unprocessable entity response
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewMakeMoveTaskOrderAvailableInternalServerError creates a MakeMoveTaskOrderAvailableInternalServerError with default headers values
+func NewMakeMoveTaskOrderAvailableInternalServerError() *MakeMoveTaskOrderAvailableInternalServerError {
+ return &MakeMoveTaskOrderAvailableInternalServerError{}
+}
+
+/*
+MakeMoveTaskOrderAvailableInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type MakeMoveTaskOrderAvailableInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this make move task order available internal server error response has a 2xx status code
+func (o *MakeMoveTaskOrderAvailableInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this make move task order available internal server error response has a 3xx status code
+func (o *MakeMoveTaskOrderAvailableInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this make move task order available internal server error response has a 4xx status code
+func (o *MakeMoveTaskOrderAvailableInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this make move task order available internal server error response has a 5xx status code
+func (o *MakeMoveTaskOrderAvailableInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this make move task order available internal server error response a status code equal to that given
+func (o *MakeMoveTaskOrderAvailableInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the make move task order available internal server error response
+func (o *MakeMoveTaskOrderAvailableInternalServerError) Code() int {
+ return 500
+}
+
+func (o *MakeMoveTaskOrderAvailableInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /move-task-orders/{moveTaskOrderID}/available-to-prime][%d] makeMoveTaskOrderAvailableInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *MakeMoveTaskOrderAvailableInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *MakeMoveTaskOrderAvailableInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/move_task_order/move_task_order_client.go b/pkg/gen/supportclient/move_task_order/move_task_order_client.go
new file mode 100644
index 00000000000..fb46a6a86ba
--- /dev/null
+++ b/pkg/gen/supportclient/move_task_order/move_task_order_client.go
@@ -0,0 +1,278 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package move_task_order
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new move task order API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for move task order API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CreateMoveTaskOrder(params *CreateMoveTaskOrderParams, opts ...ClientOption) (*CreateMoveTaskOrderCreated, error)
+
+ GetMoveTaskOrder(params *GetMoveTaskOrderParams, opts ...ClientOption) (*GetMoveTaskOrderOK, error)
+
+ HideNonFakeMoveTaskOrders(params *HideNonFakeMoveTaskOrdersParams, opts ...ClientOption) (*HideNonFakeMoveTaskOrdersOK, error)
+
+ ListMTOs(params *ListMTOsParams, opts ...ClientOption) (*ListMTOsOK, error)
+
+ MakeMoveTaskOrderAvailable(params *MakeMoveTaskOrderAvailableParams, opts ...ClientOption) (*MakeMoveTaskOrderAvailableOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ CreateMoveTaskOrder creates move task order
+
+ Creates an instance of moveTaskOrder.
+
+Currently this will also create a number of nested objects but not all.
+It will currently create
+* MoveTaskOrder
+* Order
+* Customer
+* User
+* Entitlement
+
+It will not create addresses, duty stations, shipments, payment requests or service items. It requires an existing contractor ID, destination duty station ID,
+origin duty station ID, and an uploaded orders ID to be passed into the request.
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) CreateMoveTaskOrder(params *CreateMoveTaskOrderParams, opts ...ClientOption) (*CreateMoveTaskOrderCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateMoveTaskOrderParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "createMoveTaskOrder",
+ Method: "POST",
+ PathPattern: "/move-task-orders",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &CreateMoveTaskOrderReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateMoveTaskOrderCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for createMoveTaskOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ GetMoveTaskOrder gets move task order
+
+ ### Functionality
+
+This endpoint gets an individual MoveTaskOrder by ID.
+
+It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
+
+This is a support endpoint and is not available in production.
+*/
+func (a *Client) GetMoveTaskOrder(params *GetMoveTaskOrderParams, opts ...ClientOption) (*GetMoveTaskOrderOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetMoveTaskOrderParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getMoveTaskOrder",
+ Method: "GET",
+ PathPattern: "/move-task-orders/{moveTaskOrderID}",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetMoveTaskOrderReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetMoveTaskOrderOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getMoveTaskOrder: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ HideNonFakeMoveTaskOrders hides non fake move task orders
+
+ Updates move task order without fake user data `show` to false. No request body required.
+
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) HideNonFakeMoveTaskOrders(params *HideNonFakeMoveTaskOrdersParams, opts ...ClientOption) (*HideNonFakeMoveTaskOrdersOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewHideNonFakeMoveTaskOrdersParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "hideNonFakeMoveTaskOrders",
+ Method: "PATCH",
+ PathPattern: "/move-task-orders/hide",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &HideNonFakeMoveTaskOrdersReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*HideNonFakeMoveTaskOrdersOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for hideNonFakeMoveTaskOrders: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ ListMTOs lists m t os
+
+ ### Functionality
+
+This endpoint lists all MoveTaskOrders regardless of whether or not they have been made available to Prime.
+
+It will provide nested information about the Customer and any associated MTOShipments, MTOServiceItems and PaymentRequests.
+*/
+func (a *Client) ListMTOs(params *ListMTOsParams, opts ...ClientOption) (*ListMTOsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewListMTOsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "listMTOs",
+ Method: "GET",
+ PathPattern: "/move-task-orders",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &ListMTOsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ListMTOsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for listMTOs: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ MakeMoveTaskOrderAvailable makes move task order available
+
+ Updates move task order `availableToPrimeAt` to make it available to prime. No request body required.
+
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) MakeMoveTaskOrderAvailable(params *MakeMoveTaskOrderAvailableParams, opts ...ClientOption) (*MakeMoveTaskOrderAvailableOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewMakeMoveTaskOrderAvailableParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "makeMoveTaskOrderAvailable",
+ Method: "PATCH",
+ PathPattern: "/move-task-orders/{moveTaskOrderID}/available-to-prime",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &MakeMoveTaskOrderAvailableReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*MakeMoveTaskOrderAvailableOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for makeMoveTaskOrderAvailable: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go b/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go
new file mode 100644
index 00000000000..43ba2309d44
--- /dev/null
+++ b/pkg/gen/supportclient/mto_service_item/mto_service_item_client.go
@@ -0,0 +1,84 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new mto service item API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for mto service item API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ UpdateMTOServiceItemStatus updates m t o service item status
+
+ Updates the status of a service item for a move to APPROVED or REJECTED.
+
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) UpdateMTOServiceItemStatus(params *UpdateMTOServiceItemStatusParams, opts ...ClientOption) (*UpdateMTOServiceItemStatusOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdateMTOServiceItemStatusParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "updateMTOServiceItemStatus",
+ Method: "PATCH",
+ PathPattern: "/mto-service-items/{mtoServiceItemID}/status",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &UpdateMTOServiceItemStatusReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdateMTOServiceItemStatusOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for updateMTOServiceItemStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go
new file mode 100644
index 00000000000..b8fd5908aaf
--- /dev/null
+++ b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_parameters.go
@@ -0,0 +1,195 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdateMTOServiceItemStatusParams creates a new UpdateMTOServiceItemStatusParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdateMTOServiceItemStatusParams() *UpdateMTOServiceItemStatusParams {
+ return &UpdateMTOServiceItemStatusParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdateMTOServiceItemStatusParamsWithTimeout creates a new UpdateMTOServiceItemStatusParams object
+// with the ability to set a timeout on a request.
+func NewUpdateMTOServiceItemStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemStatusParams {
+ return &UpdateMTOServiceItemStatusParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdateMTOServiceItemStatusParamsWithContext creates a new UpdateMTOServiceItemStatusParams object
+// with the ability to set a context for a request.
+func NewUpdateMTOServiceItemStatusParamsWithContext(ctx context.Context) *UpdateMTOServiceItemStatusParams {
+ return &UpdateMTOServiceItemStatusParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdateMTOServiceItemStatusParamsWithHTTPClient creates a new UpdateMTOServiceItemStatusParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdateMTOServiceItemStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemStatusParams {
+ return &UpdateMTOServiceItemStatusParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdateMTOServiceItemStatusParams contains all the parameters to send to the API endpoint
+
+ for the update m t o service item status operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdateMTOServiceItemStatusParams struct {
+
+ /* IfMatch.
+
+ Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ */
+ IfMatch string
+
+ // Body.
+ Body *supportmessages.UpdateMTOServiceItemStatus
+
+ /* MtoServiceItemID.
+
+ UUID of mto service item to use.
+ */
+ MtoServiceItemID string
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update m t o service item status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateMTOServiceItemStatusParams) WithDefaults() *UpdateMTOServiceItemStatusParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update m t o service item status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateMTOServiceItemStatusParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOServiceItemStatusParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithContext(ctx context.Context) *UpdateMTOServiceItemStatusParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOServiceItemStatusParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIfMatch adds the ifMatch to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithIfMatch(ifMatch string) *UpdateMTOServiceItemStatusParams {
+ o.SetIfMatch(ifMatch)
+ return o
+}
+
+// SetIfMatch adds the ifMatch to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetIfMatch(ifMatch string) {
+ o.IfMatch = ifMatch
+}
+
+// WithBody adds the body to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithBody(body *supportmessages.UpdateMTOServiceItemStatus) *UpdateMTOServiceItemStatusParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetBody(body *supportmessages.UpdateMTOServiceItemStatus) {
+ o.Body = body
+}
+
+// WithMtoServiceItemID adds the mtoServiceItemID to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemStatusParams {
+ o.SetMtoServiceItemID(mtoServiceItemID)
+ return o
+}
+
+// SetMtoServiceItemID adds the mtoServiceItemId to the update m t o service item status params
+func (o *UpdateMTOServiceItemStatusParams) SetMtoServiceItemID(mtoServiceItemID string) {
+ o.MtoServiceItemID = mtoServiceItemID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdateMTOServiceItemStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param If-Match
+ if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ // path param mtoServiceItemID
+ if err := r.SetPathParam("mtoServiceItemID", o.MtoServiceItemID); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go
new file mode 100644
index 00000000000..cd3f6ec6339
--- /dev/null
+++ b/pkg/gen/supportclient/mto_service_item/update_m_t_o_service_item_status_responses.go
@@ -0,0 +1,695 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_service_item
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdateMTOServiceItemStatusReader is a Reader for the UpdateMTOServiceItemStatus structure.
+type UpdateMTOServiceItemStatusReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdateMTOServiceItemStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdateMTOServiceItemStatusOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdateMTOServiceItemStatusBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdateMTOServiceItemStatusUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdateMTOServiceItemStatusForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewUpdateMTOServiceItemStatusNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewUpdateMTOServiceItemStatusConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewUpdateMTOServiceItemStatusPreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewUpdateMTOServiceItemStatusUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdateMTOServiceItemStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /mto-service-items/{mtoServiceItemID}/status] updateMTOServiceItemStatus", response, response.Code())
+ }
+}
+
+// NewUpdateMTOServiceItemStatusOK creates a UpdateMTOServiceItemStatusOK with default headers values
+func NewUpdateMTOServiceItemStatusOK() *UpdateMTOServiceItemStatusOK {
+ return &UpdateMTOServiceItemStatusOK{}
+}
+
+/*
+UpdateMTOServiceItemStatusOK describes a response with status code 200, with default header values.
+
+Successfully updated service item status for a move task order.
+*/
+type UpdateMTOServiceItemStatusOK struct {
+ Payload supportmessages.MTOServiceItem
+}
+
+// IsSuccess returns true when this update m t o service item status o k response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update m t o service item status o k response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status o k response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update m t o service item status o k response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status o k response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update m t o service item status o k response
+func (o *UpdateMTOServiceItemStatusOK) Code() int {
+ return 200
+}
+
+func (o *UpdateMTOServiceItemStatusOK) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusOK) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusOK) GetPayload() supportmessages.MTOServiceItem {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // response payload as interface type
+ payload, err := supportmessages.UnmarshalMTOServiceItem(response.Body(), consumer)
+ if err != nil {
+ return err
+ }
+ o.Payload = payload
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusBadRequest creates a UpdateMTOServiceItemStatusBadRequest with default headers values
+func NewUpdateMTOServiceItemStatusBadRequest() *UpdateMTOServiceItemStatusBadRequest {
+ return &UpdateMTOServiceItemStatusBadRequest{}
+}
+
+/*
+UpdateMTOServiceItemStatusBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type UpdateMTOServiceItemStatusBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status bad request response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status bad request response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status bad request response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status bad request response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status bad request response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update m t o service item status bad request response
+func (o *UpdateMTOServiceItemStatusBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdateMTOServiceItemStatusBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusUnauthorized creates a UpdateMTOServiceItemStatusUnauthorized with default headers values
+func NewUpdateMTOServiceItemStatusUnauthorized() *UpdateMTOServiceItemStatusUnauthorized {
+ return &UpdateMTOServiceItemStatusUnauthorized{}
+}
+
+/*
+UpdateMTOServiceItemStatusUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type UpdateMTOServiceItemStatusUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status unauthorized response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status unauthorized response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status unauthorized response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status unauthorized response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status unauthorized response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update m t o service item status unauthorized response
+func (o *UpdateMTOServiceItemStatusUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdateMTOServiceItemStatusUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusForbidden creates a UpdateMTOServiceItemStatusForbidden with default headers values
+func NewUpdateMTOServiceItemStatusForbidden() *UpdateMTOServiceItemStatusForbidden {
+ return &UpdateMTOServiceItemStatusForbidden{}
+}
+
+/*
+UpdateMTOServiceItemStatusForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type UpdateMTOServiceItemStatusForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status forbidden response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status forbidden response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status forbidden response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status forbidden response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status forbidden response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update m t o service item status forbidden response
+func (o *UpdateMTOServiceItemStatusForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdateMTOServiceItemStatusForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusForbidden) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusNotFound creates a UpdateMTOServiceItemStatusNotFound with default headers values
+func NewUpdateMTOServiceItemStatusNotFound() *UpdateMTOServiceItemStatusNotFound {
+ return &UpdateMTOServiceItemStatusNotFound{}
+}
+
+/*
+UpdateMTOServiceItemStatusNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type UpdateMTOServiceItemStatusNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status not found response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status not found response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status not found response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status not found response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status not found response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the update m t o service item status not found response
+func (o *UpdateMTOServiceItemStatusNotFound) Code() int {
+ return 404
+}
+
+func (o *UpdateMTOServiceItemStatusNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusNotFound) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusConflict creates a UpdateMTOServiceItemStatusConflict with default headers values
+func NewUpdateMTOServiceItemStatusConflict() *UpdateMTOServiceItemStatusConflict {
+ return &UpdateMTOServiceItemStatusConflict{}
+}
+
+/*
+UpdateMTOServiceItemStatusConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type UpdateMTOServiceItemStatusConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status conflict response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status conflict response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status conflict response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status conflict response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status conflict response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the update m t o service item status conflict response
+func (o *UpdateMTOServiceItemStatusConflict) Code() int {
+ return 409
+}
+
+func (o *UpdateMTOServiceItemStatusConflict) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusConflict) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusPreconditionFailed creates a UpdateMTOServiceItemStatusPreconditionFailed with default headers values
+func NewUpdateMTOServiceItemStatusPreconditionFailed() *UpdateMTOServiceItemStatusPreconditionFailed {
+ return &UpdateMTOServiceItemStatusPreconditionFailed{}
+}
+
+/*
+UpdateMTOServiceItemStatusPreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type UpdateMTOServiceItemStatusPreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o service item status precondition failed response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status precondition failed response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status precondition failed response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status precondition failed response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status precondition failed response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the update m t o service item status precondition failed response
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusUnprocessableEntity creates a UpdateMTOServiceItemStatusUnprocessableEntity with default headers values
+func NewUpdateMTOServiceItemStatusUnprocessableEntity() *UpdateMTOServiceItemStatusUnprocessableEntity {
+ return &UpdateMTOServiceItemStatusUnprocessableEntity{}
+}
+
+/*
+UpdateMTOServiceItemStatusUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type UpdateMTOServiceItemStatusUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this update m t o service item status unprocessable entity response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status unprocessable entity response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status unprocessable entity response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o service item status unprocessable entity response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o service item status unprocessable entity response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the update m t o service item status unprocessable entity response
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOServiceItemStatusInternalServerError creates a UpdateMTOServiceItemStatusInternalServerError with default headers values
+func NewUpdateMTOServiceItemStatusInternalServerError() *UpdateMTOServiceItemStatusInternalServerError {
+ return &UpdateMTOServiceItemStatusInternalServerError{}
+}
+
+/*
+UpdateMTOServiceItemStatusInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type UpdateMTOServiceItemStatusInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this update m t o service item status internal server error response has a 2xx status code
+func (o *UpdateMTOServiceItemStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o service item status internal server error response has a 3xx status code
+func (o *UpdateMTOServiceItemStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o service item status internal server error response has a 4xx status code
+func (o *UpdateMTOServiceItemStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update m t o service item status internal server error response has a 5xx status code
+func (o *UpdateMTOServiceItemStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update m t o service item status internal server error response a status code equal to that given
+func (o *UpdateMTOServiceItemStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update m t o service item status internal server error response
+func (o *UpdateMTOServiceItemStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateMTOServiceItemStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /mto-service-items/{mtoServiceItemID}/status][%d] updateMTOServiceItemStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateMTOServiceItemStatusInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *UpdateMTOServiceItemStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go b/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go
new file mode 100644
index 00000000000..b61940f4c96
--- /dev/null
+++ b/pkg/gen/supportclient/mto_shipment/mto_shipment_client.go
@@ -0,0 +1,81 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new mto shipment API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for mto shipment API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+UpdateMTOShipmentStatus updates m t o shipment status
+
+Updates a shipment's status to APPROVED or REJECTED for the purpose of testing the Prime API. If APPROVED, `rejectionReason` should be blank and any value passed through the body will be ignored. If REJECTED, a value in `rejectionReason` is required.
This is a support endpoint and will not be available in production.
+*/
+func (a *Client) UpdateMTOShipmentStatus(params *UpdateMTOShipmentStatusParams, opts ...ClientOption) (*UpdateMTOShipmentStatusOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdateMTOShipmentStatusParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "updateMTOShipmentStatus",
+ Method: "PATCH",
+ PathPattern: "/mto-shipments/{mtoShipmentID}/status",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &UpdateMTOShipmentStatusReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdateMTOShipmentStatusOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for updateMTOShipmentStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go
new file mode 100644
index 00000000000..5b7ddf4db0c
--- /dev/null
+++ b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_parameters.go
@@ -0,0 +1,197 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdateMTOShipmentStatusParams creates a new UpdateMTOShipmentStatusParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdateMTOShipmentStatusParams() *UpdateMTOShipmentStatusParams {
+ return &UpdateMTOShipmentStatusParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdateMTOShipmentStatusParamsWithTimeout creates a new UpdateMTOShipmentStatusParams object
+// with the ability to set a timeout on a request.
+func NewUpdateMTOShipmentStatusParamsWithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams {
+ return &UpdateMTOShipmentStatusParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdateMTOShipmentStatusParamsWithContext creates a new UpdateMTOShipmentStatusParams object
+// with the ability to set a context for a request.
+func NewUpdateMTOShipmentStatusParamsWithContext(ctx context.Context) *UpdateMTOShipmentStatusParams {
+ return &UpdateMTOShipmentStatusParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdateMTOShipmentStatusParamsWithHTTPClient creates a new UpdateMTOShipmentStatusParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdateMTOShipmentStatusParamsWithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams {
+ return &UpdateMTOShipmentStatusParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdateMTOShipmentStatusParams contains all the parameters to send to the API endpoint
+
+ for the update m t o shipment status operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdateMTOShipmentStatusParams struct {
+
+ /* IfMatch.
+
+ Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ */
+ IfMatch string
+
+ // Body.
+ Body *supportmessages.UpdateMTOShipmentStatus
+
+ /* MtoShipmentID.
+
+ UUID of the shipment being updated.
+
+ Format: uuid
+ */
+ MtoShipmentID strfmt.UUID
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update m t o shipment status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateMTOShipmentStatusParams) WithDefaults() *UpdateMTOShipmentStatusParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update m t o shipment status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdateMTOShipmentStatusParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithTimeout(timeout time.Duration) *UpdateMTOShipmentStatusParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithContext(ctx context.Context) *UpdateMTOShipmentStatusParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithHTTPClient(client *http.Client) *UpdateMTOShipmentStatusParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIfMatch adds the ifMatch to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithIfMatch(ifMatch string) *UpdateMTOShipmentStatusParams {
+ o.SetIfMatch(ifMatch)
+ return o
+}
+
+// SetIfMatch adds the ifMatch to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetIfMatch(ifMatch string) {
+ o.IfMatch = ifMatch
+}
+
+// WithBody adds the body to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithBody(body *supportmessages.UpdateMTOShipmentStatus) *UpdateMTOShipmentStatusParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetBody(body *supportmessages.UpdateMTOShipmentStatus) {
+ o.Body = body
+}
+
+// WithMtoShipmentID adds the mtoShipmentID to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) WithMtoShipmentID(mtoShipmentID strfmt.UUID) *UpdateMTOShipmentStatusParams {
+ o.SetMtoShipmentID(mtoShipmentID)
+ return o
+}
+
+// SetMtoShipmentID adds the mtoShipmentId to the update m t o shipment status params
+func (o *UpdateMTOShipmentStatusParams) SetMtoShipmentID(mtoShipmentID strfmt.UUID) {
+ o.MtoShipmentID = mtoShipmentID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdateMTOShipmentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param If-Match
+ if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ // path param mtoShipmentID
+ if err := r.SetPathParam("mtoShipmentID", o.MtoShipmentID.String()); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go
new file mode 100644
index 00000000000..943de2db2d9
--- /dev/null
+++ b/pkg/gen/supportclient/mto_shipment/update_m_t_o_shipment_status_responses.go
@@ -0,0 +1,695 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package mto_shipment
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdateMTOShipmentStatusReader is a Reader for the UpdateMTOShipmentStatus structure.
+type UpdateMTOShipmentStatusReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdateMTOShipmentStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdateMTOShipmentStatusOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdateMTOShipmentStatusBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdateMTOShipmentStatusUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdateMTOShipmentStatusForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewUpdateMTOShipmentStatusNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewUpdateMTOShipmentStatusConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewUpdateMTOShipmentStatusPreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewUpdateMTOShipmentStatusUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdateMTOShipmentStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /mto-shipments/{mtoShipmentID}/status] updateMTOShipmentStatus", response, response.Code())
+ }
+}
+
+// NewUpdateMTOShipmentStatusOK creates a UpdateMTOShipmentStatusOK with default headers values
+func NewUpdateMTOShipmentStatusOK() *UpdateMTOShipmentStatusOK {
+ return &UpdateMTOShipmentStatusOK{}
+}
+
+/*
+UpdateMTOShipmentStatusOK describes a response with status code 200, with default header values.
+
+Successfully updated the shipment's status.
+*/
+type UpdateMTOShipmentStatusOK struct {
+ Payload *supportmessages.MTOShipment
+}
+
+// IsSuccess returns true when this update m t o shipment status o k response has a 2xx status code
+func (o *UpdateMTOShipmentStatusOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update m t o shipment status o k response has a 3xx status code
+func (o *UpdateMTOShipmentStatusOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status o k response has a 4xx status code
+func (o *UpdateMTOShipmentStatusOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update m t o shipment status o k response has a 5xx status code
+func (o *UpdateMTOShipmentStatusOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status o k response a status code equal to that given
+func (o *UpdateMTOShipmentStatusOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update m t o shipment status o k response
+func (o *UpdateMTOShipmentStatusOK) Code() int {
+ return 200
+}
+
+func (o *UpdateMTOShipmentStatusOK) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusOK) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusOK) GetPayload() *supportmessages.MTOShipment {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.MTOShipment)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusBadRequest creates a UpdateMTOShipmentStatusBadRequest with default headers values
+func NewUpdateMTOShipmentStatusBadRequest() *UpdateMTOShipmentStatusBadRequest {
+ return &UpdateMTOShipmentStatusBadRequest{}
+}
+
+/*
+UpdateMTOShipmentStatusBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type UpdateMTOShipmentStatusBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status bad request response has a 2xx status code
+func (o *UpdateMTOShipmentStatusBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status bad request response has a 3xx status code
+func (o *UpdateMTOShipmentStatusBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status bad request response has a 4xx status code
+func (o *UpdateMTOShipmentStatusBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status bad request response has a 5xx status code
+func (o *UpdateMTOShipmentStatusBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status bad request response a status code equal to that given
+func (o *UpdateMTOShipmentStatusBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update m t o shipment status bad request response
+func (o *UpdateMTOShipmentStatusBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdateMTOShipmentStatusBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusUnauthorized creates a UpdateMTOShipmentStatusUnauthorized with default headers values
+func NewUpdateMTOShipmentStatusUnauthorized() *UpdateMTOShipmentStatusUnauthorized {
+ return &UpdateMTOShipmentStatusUnauthorized{}
+}
+
+/*
+UpdateMTOShipmentStatusUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type UpdateMTOShipmentStatusUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status unauthorized response has a 2xx status code
+func (o *UpdateMTOShipmentStatusUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status unauthorized response has a 3xx status code
+func (o *UpdateMTOShipmentStatusUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status unauthorized response has a 4xx status code
+func (o *UpdateMTOShipmentStatusUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status unauthorized response has a 5xx status code
+func (o *UpdateMTOShipmentStatusUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status unauthorized response a status code equal to that given
+func (o *UpdateMTOShipmentStatusUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update m t o shipment status unauthorized response
+func (o *UpdateMTOShipmentStatusUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdateMTOShipmentStatusUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusForbidden creates a UpdateMTOShipmentStatusForbidden with default headers values
+func NewUpdateMTOShipmentStatusForbidden() *UpdateMTOShipmentStatusForbidden {
+ return &UpdateMTOShipmentStatusForbidden{}
+}
+
+/*
+UpdateMTOShipmentStatusForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type UpdateMTOShipmentStatusForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status forbidden response has a 2xx status code
+func (o *UpdateMTOShipmentStatusForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status forbidden response has a 3xx status code
+func (o *UpdateMTOShipmentStatusForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status forbidden response has a 4xx status code
+func (o *UpdateMTOShipmentStatusForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status forbidden response has a 5xx status code
+func (o *UpdateMTOShipmentStatusForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status forbidden response a status code equal to that given
+func (o *UpdateMTOShipmentStatusForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update m t o shipment status forbidden response
+func (o *UpdateMTOShipmentStatusForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdateMTOShipmentStatusForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusForbidden) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusNotFound creates a UpdateMTOShipmentStatusNotFound with default headers values
+func NewUpdateMTOShipmentStatusNotFound() *UpdateMTOShipmentStatusNotFound {
+ return &UpdateMTOShipmentStatusNotFound{}
+}
+
+/*
+UpdateMTOShipmentStatusNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type UpdateMTOShipmentStatusNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status not found response has a 2xx status code
+func (o *UpdateMTOShipmentStatusNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status not found response has a 3xx status code
+func (o *UpdateMTOShipmentStatusNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status not found response has a 4xx status code
+func (o *UpdateMTOShipmentStatusNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status not found response has a 5xx status code
+func (o *UpdateMTOShipmentStatusNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status not found response a status code equal to that given
+func (o *UpdateMTOShipmentStatusNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the update m t o shipment status not found response
+func (o *UpdateMTOShipmentStatusNotFound) Code() int {
+ return 404
+}
+
+func (o *UpdateMTOShipmentStatusNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusNotFound) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusConflict creates a UpdateMTOShipmentStatusConflict with default headers values
+func NewUpdateMTOShipmentStatusConflict() *UpdateMTOShipmentStatusConflict {
+ return &UpdateMTOShipmentStatusConflict{}
+}
+
+/*
+UpdateMTOShipmentStatusConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type UpdateMTOShipmentStatusConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status conflict response has a 2xx status code
+func (o *UpdateMTOShipmentStatusConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status conflict response has a 3xx status code
+func (o *UpdateMTOShipmentStatusConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status conflict response has a 4xx status code
+func (o *UpdateMTOShipmentStatusConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status conflict response has a 5xx status code
+func (o *UpdateMTOShipmentStatusConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status conflict response a status code equal to that given
+func (o *UpdateMTOShipmentStatusConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the update m t o shipment status conflict response
+func (o *UpdateMTOShipmentStatusConflict) Code() int {
+ return 409
+}
+
+func (o *UpdateMTOShipmentStatusConflict) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusConflict) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusPreconditionFailed creates a UpdateMTOShipmentStatusPreconditionFailed with default headers values
+func NewUpdateMTOShipmentStatusPreconditionFailed() *UpdateMTOShipmentStatusPreconditionFailed {
+ return &UpdateMTOShipmentStatusPreconditionFailed{}
+}
+
+/*
+UpdateMTOShipmentStatusPreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type UpdateMTOShipmentStatusPreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update m t o shipment status precondition failed response has a 2xx status code
+func (o *UpdateMTOShipmentStatusPreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status precondition failed response has a 3xx status code
+func (o *UpdateMTOShipmentStatusPreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status precondition failed response has a 4xx status code
+func (o *UpdateMTOShipmentStatusPreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status precondition failed response has a 5xx status code
+func (o *UpdateMTOShipmentStatusPreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status precondition failed response a status code equal to that given
+func (o *UpdateMTOShipmentStatusPreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the update m t o shipment status precondition failed response
+func (o *UpdateMTOShipmentStatusPreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *UpdateMTOShipmentStatusPreconditionFailed) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusPreconditionFailed) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusUnprocessableEntity creates a UpdateMTOShipmentStatusUnprocessableEntity with default headers values
+func NewUpdateMTOShipmentStatusUnprocessableEntity() *UpdateMTOShipmentStatusUnprocessableEntity {
+ return &UpdateMTOShipmentStatusUnprocessableEntity{}
+}
+
+/*
+UpdateMTOShipmentStatusUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type UpdateMTOShipmentStatusUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this update m t o shipment status unprocessable entity response has a 2xx status code
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status unprocessable entity response has a 3xx status code
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status unprocessable entity response has a 4xx status code
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update m t o shipment status unprocessable entity response has a 5xx status code
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update m t o shipment status unprocessable entity response a status code equal to that given
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the update m t o shipment status unprocessable entity response
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdateMTOShipmentStatusInternalServerError creates a UpdateMTOShipmentStatusInternalServerError with default headers values
+func NewUpdateMTOShipmentStatusInternalServerError() *UpdateMTOShipmentStatusInternalServerError {
+ return &UpdateMTOShipmentStatusInternalServerError{}
+}
+
+/*
+UpdateMTOShipmentStatusInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type UpdateMTOShipmentStatusInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this update m t o shipment status internal server error response has a 2xx status code
+func (o *UpdateMTOShipmentStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update m t o shipment status internal server error response has a 3xx status code
+func (o *UpdateMTOShipmentStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update m t o shipment status internal server error response has a 4xx status code
+func (o *UpdateMTOShipmentStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update m t o shipment status internal server error response has a 5xx status code
+func (o *UpdateMTOShipmentStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update m t o shipment status internal server error response a status code equal to that given
+func (o *UpdateMTOShipmentStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update m t o shipment status internal server error response
+func (o *UpdateMTOShipmentStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdateMTOShipmentStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /mto-shipments/{mtoShipmentID}/status][%d] updateMTOShipmentStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdateMTOShipmentStatusInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *UpdateMTOShipmentStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/mymove_client.go b/pkg/gen/supportclient/mymove_client.go
new file mode 100644
index 00000000000..4df4df28067
--- /dev/null
+++ b/pkg/gen/supportclient/mymove_client.go
@@ -0,0 +1,132 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportclient
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "github.com/go-openapi/runtime"
+ httptransport "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportclient/move_task_order"
+ "github.com/transcom/mymove/pkg/gen/supportclient/mto_service_item"
+ "github.com/transcom/mymove/pkg/gen/supportclient/mto_shipment"
+ "github.com/transcom/mymove/pkg/gen/supportclient/payment_request"
+ "github.com/transcom/mymove/pkg/gen/supportclient/webhook"
+)
+
+// Default mymove HTTP client.
+var Default = NewHTTPClient(nil)
+
+const (
+ // DefaultHost is the default Host
+ // found in Meta (info) section of spec file
+ DefaultHost string = "localhost"
+ // DefaultBasePath is the default BasePath
+ // found in Meta (info) section of spec file
+ DefaultBasePath string = "/support/v1"
+)
+
+// DefaultSchemes are the default schemes found in Meta (info) section of spec file
+var DefaultSchemes = []string{"http"}
+
+// NewHTTPClient creates a new mymove HTTP client.
+func NewHTTPClient(formats strfmt.Registry) *Mymove {
+ return NewHTTPClientWithConfig(formats, nil)
+}
+
+// NewHTTPClientWithConfig creates a new mymove HTTP client,
+// using a customizable transport config.
+func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Mymove {
+ // ensure nullable parameters have default
+ if cfg == nil {
+ cfg = DefaultTransportConfig()
+ }
+
+ // create transport and client
+ transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes)
+ return New(transport, formats)
+}
+
+// New creates a new mymove client
+func New(transport runtime.ClientTransport, formats strfmt.Registry) *Mymove {
+ // ensure nullable parameters have default
+ if formats == nil {
+ formats = strfmt.Default
+ }
+
+ cli := new(Mymove)
+ cli.Transport = transport
+ cli.MoveTaskOrder = move_task_order.New(transport, formats)
+ cli.MtoServiceItem = mto_service_item.New(transport, formats)
+ cli.MtoShipment = mto_shipment.New(transport, formats)
+ cli.PaymentRequest = payment_request.New(transport, formats)
+ cli.Webhook = webhook.New(transport, formats)
+ return cli
+}
+
+// DefaultTransportConfig creates a TransportConfig with the
+// default settings taken from the meta section of the spec file.
+func DefaultTransportConfig() *TransportConfig {
+ return &TransportConfig{
+ Host: DefaultHost,
+ BasePath: DefaultBasePath,
+ Schemes: DefaultSchemes,
+ }
+}
+
+// TransportConfig contains the transport related info,
+// found in the meta section of the spec file.
+type TransportConfig struct {
+ Host string
+ BasePath string
+ Schemes []string
+}
+
+// WithHost overrides the default host,
+// provided by the meta section of the spec file.
+func (cfg *TransportConfig) WithHost(host string) *TransportConfig {
+ cfg.Host = host
+ return cfg
+}
+
+// WithBasePath overrides the default basePath,
+// provided by the meta section of the spec file.
+func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig {
+ cfg.BasePath = basePath
+ return cfg
+}
+
+// WithSchemes overrides the default schemes,
+// provided by the meta section of the spec file.
+func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig {
+ cfg.Schemes = schemes
+ return cfg
+}
+
+// Mymove is a client for mymove
+type Mymove struct {
+ MoveTaskOrder move_task_order.ClientService
+
+ MtoServiceItem mto_service_item.ClientService
+
+ MtoShipment mto_shipment.ClientService
+
+ PaymentRequest payment_request.ClientService
+
+ Webhook webhook.ClientService
+
+ Transport runtime.ClientTransport
+}
+
+// SetTransport changes the transport on the client and all its subresources
+func (c *Mymove) SetTransport(transport runtime.ClientTransport) {
+ c.Transport = transport
+ c.MoveTaskOrder.SetTransport(transport)
+ c.MtoServiceItem.SetTransport(transport)
+ c.MtoShipment.SetTransport(transport)
+ c.PaymentRequest.SetTransport(transport)
+ c.Webhook.SetTransport(transport)
+}
diff --git a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go
new file mode 100644
index 00000000000..d4632c91481
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_parameters.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewGetPaymentRequestEDIParams creates a new GetPaymentRequestEDIParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewGetPaymentRequestEDIParams() *GetPaymentRequestEDIParams {
+ return &GetPaymentRequestEDIParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewGetPaymentRequestEDIParamsWithTimeout creates a new GetPaymentRequestEDIParams object
+// with the ability to set a timeout on a request.
+func NewGetPaymentRequestEDIParamsWithTimeout(timeout time.Duration) *GetPaymentRequestEDIParams {
+ return &GetPaymentRequestEDIParams{
+ timeout: timeout,
+ }
+}
+
+// NewGetPaymentRequestEDIParamsWithContext creates a new GetPaymentRequestEDIParams object
+// with the ability to set a context for a request.
+func NewGetPaymentRequestEDIParamsWithContext(ctx context.Context) *GetPaymentRequestEDIParams {
+ return &GetPaymentRequestEDIParams{
+ Context: ctx,
+ }
+}
+
+// NewGetPaymentRequestEDIParamsWithHTTPClient creates a new GetPaymentRequestEDIParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewGetPaymentRequestEDIParamsWithHTTPClient(client *http.Client) *GetPaymentRequestEDIParams {
+ return &GetPaymentRequestEDIParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+GetPaymentRequestEDIParams contains all the parameters to send to the API endpoint
+
+ for the get payment request e d i operation.
+
+ Typically these are written to a http.Request.
+*/
+type GetPaymentRequestEDIParams struct {
+
+ /* PaymentRequestID.
+
+ UUID of the payment request for which EDI should be generated.
+
+ Format: uuid
+ */
+ PaymentRequestID strfmt.UUID
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the get payment request e d i params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetPaymentRequestEDIParams) WithDefaults() *GetPaymentRequestEDIParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the get payment request e d i params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *GetPaymentRequestEDIParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) WithTimeout(timeout time.Duration) *GetPaymentRequestEDIParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) WithContext(ctx context.Context) *GetPaymentRequestEDIParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) WithHTTPClient(client *http.Client) *GetPaymentRequestEDIParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithPaymentRequestID adds the paymentRequestID to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *GetPaymentRequestEDIParams {
+ o.SetPaymentRequestID(paymentRequestID)
+ return o
+}
+
+// SetPaymentRequestID adds the paymentRequestId to the get payment request e d i params
+func (o *GetPaymentRequestEDIParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
+ o.PaymentRequestID = paymentRequestID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *GetPaymentRequestEDIParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param paymentRequestID
+ if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go
new file mode 100644
index 00000000000..cec8b4f5b7e
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/get_payment_request_e_d_i_responses.go
@@ -0,0 +1,621 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// GetPaymentRequestEDIReader is a Reader for the GetPaymentRequestEDI structure.
+type GetPaymentRequestEDIReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *GetPaymentRequestEDIReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewGetPaymentRequestEDIOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewGetPaymentRequestEDIBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewGetPaymentRequestEDIUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewGetPaymentRequestEDIForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewGetPaymentRequestEDINotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewGetPaymentRequestEDIConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewGetPaymentRequestEDIUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewGetPaymentRequestEDIInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /payment-requests/{paymentRequestID}/edi] getPaymentRequestEDI", response, response.Code())
+ }
+}
+
+// NewGetPaymentRequestEDIOK creates a GetPaymentRequestEDIOK with default headers values
+func NewGetPaymentRequestEDIOK() *GetPaymentRequestEDIOK {
+ return &GetPaymentRequestEDIOK{}
+}
+
+/*
+GetPaymentRequestEDIOK describes a response with status code 200, with default header values.
+
+Successfully retrieved payment requests associated with a given move task order
+*/
+type GetPaymentRequestEDIOK struct {
+ Payload *supportmessages.PaymentRequestEDI
+}
+
+// IsSuccess returns true when this get payment request e d i o k response has a 2xx status code
+func (o *GetPaymentRequestEDIOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this get payment request e d i o k response has a 3xx status code
+func (o *GetPaymentRequestEDIOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i o k response has a 4xx status code
+func (o *GetPaymentRequestEDIOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get payment request e d i o k response has a 5xx status code
+func (o *GetPaymentRequestEDIOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i o k response a status code equal to that given
+func (o *GetPaymentRequestEDIOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the get payment request e d i o k response
+func (o *GetPaymentRequestEDIOK) Code() int {
+ return 200
+}
+
+func (o *GetPaymentRequestEDIOK) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIOK %+v", 200, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIOK) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIOK %+v", 200, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIOK) GetPayload() *supportmessages.PaymentRequestEDI {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.PaymentRequestEDI)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIBadRequest creates a GetPaymentRequestEDIBadRequest with default headers values
+func NewGetPaymentRequestEDIBadRequest() *GetPaymentRequestEDIBadRequest {
+ return &GetPaymentRequestEDIBadRequest{}
+}
+
+/*
+GetPaymentRequestEDIBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type GetPaymentRequestEDIBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get payment request e d i bad request response has a 2xx status code
+func (o *GetPaymentRequestEDIBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i bad request response has a 3xx status code
+func (o *GetPaymentRequestEDIBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i bad request response has a 4xx status code
+func (o *GetPaymentRequestEDIBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i bad request response has a 5xx status code
+func (o *GetPaymentRequestEDIBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i bad request response a status code equal to that given
+func (o *GetPaymentRequestEDIBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the get payment request e d i bad request response
+func (o *GetPaymentRequestEDIBadRequest) Code() int {
+ return 400
+}
+
+func (o *GetPaymentRequestEDIBadRequest) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIBadRequest) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIBadRequest %+v", 400, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIUnauthorized creates a GetPaymentRequestEDIUnauthorized with default headers values
+func NewGetPaymentRequestEDIUnauthorized() *GetPaymentRequestEDIUnauthorized {
+ return &GetPaymentRequestEDIUnauthorized{}
+}
+
+/*
+GetPaymentRequestEDIUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type GetPaymentRequestEDIUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get payment request e d i unauthorized response has a 2xx status code
+func (o *GetPaymentRequestEDIUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i unauthorized response has a 3xx status code
+func (o *GetPaymentRequestEDIUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i unauthorized response has a 4xx status code
+func (o *GetPaymentRequestEDIUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i unauthorized response has a 5xx status code
+func (o *GetPaymentRequestEDIUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i unauthorized response a status code equal to that given
+func (o *GetPaymentRequestEDIUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the get payment request e d i unauthorized response
+func (o *GetPaymentRequestEDIUnauthorized) Code() int {
+ return 401
+}
+
+func (o *GetPaymentRequestEDIUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIUnauthorized) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIForbidden creates a GetPaymentRequestEDIForbidden with default headers values
+func NewGetPaymentRequestEDIForbidden() *GetPaymentRequestEDIForbidden {
+ return &GetPaymentRequestEDIForbidden{}
+}
+
+/*
+GetPaymentRequestEDIForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type GetPaymentRequestEDIForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get payment request e d i forbidden response has a 2xx status code
+func (o *GetPaymentRequestEDIForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i forbidden response has a 3xx status code
+func (o *GetPaymentRequestEDIForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i forbidden response has a 4xx status code
+func (o *GetPaymentRequestEDIForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i forbidden response has a 5xx status code
+func (o *GetPaymentRequestEDIForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i forbidden response a status code equal to that given
+func (o *GetPaymentRequestEDIForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the get payment request e d i forbidden response
+func (o *GetPaymentRequestEDIForbidden) Code() int {
+ return 403
+}
+
+func (o *GetPaymentRequestEDIForbidden) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIForbidden) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIForbidden %+v", 403, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDINotFound creates a GetPaymentRequestEDINotFound with default headers values
+func NewGetPaymentRequestEDINotFound() *GetPaymentRequestEDINotFound {
+ return &GetPaymentRequestEDINotFound{}
+}
+
+/*
+GetPaymentRequestEDINotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type GetPaymentRequestEDINotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get payment request e d i not found response has a 2xx status code
+func (o *GetPaymentRequestEDINotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i not found response has a 3xx status code
+func (o *GetPaymentRequestEDINotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i not found response has a 4xx status code
+func (o *GetPaymentRequestEDINotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i not found response has a 5xx status code
+func (o *GetPaymentRequestEDINotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i not found response a status code equal to that given
+func (o *GetPaymentRequestEDINotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the get payment request e d i not found response
+func (o *GetPaymentRequestEDINotFound) Code() int {
+ return 404
+}
+
+func (o *GetPaymentRequestEDINotFound) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDINotFound %+v", 404, o.Payload)
+}
+
+func (o *GetPaymentRequestEDINotFound) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDINotFound %+v", 404, o.Payload)
+}
+
+func (o *GetPaymentRequestEDINotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDINotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIConflict creates a GetPaymentRequestEDIConflict with default headers values
+func NewGetPaymentRequestEDIConflict() *GetPaymentRequestEDIConflict {
+ return &GetPaymentRequestEDIConflict{}
+}
+
+/*
+GetPaymentRequestEDIConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type GetPaymentRequestEDIConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this get payment request e d i conflict response has a 2xx status code
+func (o *GetPaymentRequestEDIConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i conflict response has a 3xx status code
+func (o *GetPaymentRequestEDIConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i conflict response has a 4xx status code
+func (o *GetPaymentRequestEDIConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i conflict response has a 5xx status code
+func (o *GetPaymentRequestEDIConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i conflict response a status code equal to that given
+func (o *GetPaymentRequestEDIConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the get payment request e d i conflict response
+func (o *GetPaymentRequestEDIConflict) Code() int {
+ return 409
+}
+
+func (o *GetPaymentRequestEDIConflict) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIConflict %+v", 409, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIConflict) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIConflict %+v", 409, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIUnprocessableEntity creates a GetPaymentRequestEDIUnprocessableEntity with default headers values
+func NewGetPaymentRequestEDIUnprocessableEntity() *GetPaymentRequestEDIUnprocessableEntity {
+ return &GetPaymentRequestEDIUnprocessableEntity{}
+}
+
+/*
+GetPaymentRequestEDIUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type GetPaymentRequestEDIUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this get payment request e d i unprocessable entity response has a 2xx status code
+func (o *GetPaymentRequestEDIUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i unprocessable entity response has a 3xx status code
+func (o *GetPaymentRequestEDIUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i unprocessable entity response has a 4xx status code
+func (o *GetPaymentRequestEDIUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this get payment request e d i unprocessable entity response has a 5xx status code
+func (o *GetPaymentRequestEDIUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this get payment request e d i unprocessable entity response a status code equal to that given
+func (o *GetPaymentRequestEDIUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the get payment request e d i unprocessable entity response
+func (o *GetPaymentRequestEDIUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *GetPaymentRequestEDIUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIUnprocessableEntity) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewGetPaymentRequestEDIInternalServerError creates a GetPaymentRequestEDIInternalServerError with default headers values
+func NewGetPaymentRequestEDIInternalServerError() *GetPaymentRequestEDIInternalServerError {
+ return &GetPaymentRequestEDIInternalServerError{}
+}
+
+/*
+GetPaymentRequestEDIInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type GetPaymentRequestEDIInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this get payment request e d i internal server error response has a 2xx status code
+func (o *GetPaymentRequestEDIInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this get payment request e d i internal server error response has a 3xx status code
+func (o *GetPaymentRequestEDIInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this get payment request e d i internal server error response has a 4xx status code
+func (o *GetPaymentRequestEDIInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this get payment request e d i internal server error response has a 5xx status code
+func (o *GetPaymentRequestEDIInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this get payment request e d i internal server error response a status code equal to that given
+func (o *GetPaymentRequestEDIInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the get payment request e d i internal server error response
+func (o *GetPaymentRequestEDIInternalServerError) Code() int {
+ return 500
+}
+
+func (o *GetPaymentRequestEDIInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIInternalServerError) String() string {
+ return fmt.Sprintf("[GET /payment-requests/{paymentRequestID}/edi][%d] getPaymentRequestEDIInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *GetPaymentRequestEDIInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *GetPaymentRequestEDIInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go
new file mode 100644
index 00000000000..30d1611d01c
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_parameters.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewListMTOPaymentRequestsParams creates a new ListMTOPaymentRequestsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewListMTOPaymentRequestsParams() *ListMTOPaymentRequestsParams {
+ return &ListMTOPaymentRequestsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewListMTOPaymentRequestsParamsWithTimeout creates a new ListMTOPaymentRequestsParams object
+// with the ability to set a timeout on a request.
+func NewListMTOPaymentRequestsParamsWithTimeout(timeout time.Duration) *ListMTOPaymentRequestsParams {
+ return &ListMTOPaymentRequestsParams{
+ timeout: timeout,
+ }
+}
+
+// NewListMTOPaymentRequestsParamsWithContext creates a new ListMTOPaymentRequestsParams object
+// with the ability to set a context for a request.
+func NewListMTOPaymentRequestsParamsWithContext(ctx context.Context) *ListMTOPaymentRequestsParams {
+ return &ListMTOPaymentRequestsParams{
+ Context: ctx,
+ }
+}
+
+// NewListMTOPaymentRequestsParamsWithHTTPClient creates a new ListMTOPaymentRequestsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewListMTOPaymentRequestsParamsWithHTTPClient(client *http.Client) *ListMTOPaymentRequestsParams {
+ return &ListMTOPaymentRequestsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ListMTOPaymentRequestsParams contains all the parameters to send to the API endpoint
+
+ for the list m t o payment requests operation.
+
+ Typically these are written to a http.Request.
+*/
+type ListMTOPaymentRequestsParams struct {
+
+ /* MoveTaskOrderID.
+
+ Only return move task orders updated since this time.
+
+ Format: uuid
+ */
+ MoveTaskOrderID strfmt.UUID
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the list m t o payment requests params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListMTOPaymentRequestsParams) WithDefaults() *ListMTOPaymentRequestsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the list m t o payment requests params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ListMTOPaymentRequestsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) WithTimeout(timeout time.Duration) *ListMTOPaymentRequestsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) WithContext(ctx context.Context) *ListMTOPaymentRequestsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) WithHTTPClient(client *http.Client) *ListMTOPaymentRequestsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithMoveTaskOrderID adds the moveTaskOrderID to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) WithMoveTaskOrderID(moveTaskOrderID strfmt.UUID) *ListMTOPaymentRequestsParams {
+ o.SetMoveTaskOrderID(moveTaskOrderID)
+ return o
+}
+
+// SetMoveTaskOrderID adds the moveTaskOrderId to the list m t o payment requests params
+func (o *ListMTOPaymentRequestsParams) SetMoveTaskOrderID(moveTaskOrderID strfmt.UUID) {
+ o.MoveTaskOrderID = moveTaskOrderID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ListMTOPaymentRequestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param moveTaskOrderID
+ if err := r.SetPathParam("moveTaskOrderID", o.MoveTaskOrderID.String()); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go
new file mode 100644
index 00000000000..0a969ab9f9f
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/list_m_t_o_payment_requests_responses.go
@@ -0,0 +1,471 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ListMTOPaymentRequestsReader is a Reader for the ListMTOPaymentRequests structure.
+type ListMTOPaymentRequestsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ListMTOPaymentRequestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewListMTOPaymentRequestsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewListMTOPaymentRequestsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewListMTOPaymentRequestsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewListMTOPaymentRequestsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewListMTOPaymentRequestsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewListMTOPaymentRequestsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[GET /move-task-orders/{moveTaskOrderID}/payment-requests] listMTOPaymentRequests", response, response.Code())
+ }
+}
+
+// NewListMTOPaymentRequestsOK creates a ListMTOPaymentRequestsOK with default headers values
+func NewListMTOPaymentRequestsOK() *ListMTOPaymentRequestsOK {
+ return &ListMTOPaymentRequestsOK{}
+}
+
+/*
+ListMTOPaymentRequestsOK describes a response with status code 200, with default header values.
+
+Successfully retrieved payment requests associated with a given move task order
+*/
+type ListMTOPaymentRequestsOK struct {
+ Payload supportmessages.PaymentRequests
+}
+
+// IsSuccess returns true when this list m t o payment requests o k response has a 2xx status code
+func (o *ListMTOPaymentRequestsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this list m t o payment requests o k response has a 3xx status code
+func (o *ListMTOPaymentRequestsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests o k response has a 4xx status code
+func (o *ListMTOPaymentRequestsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list m t o payment requests o k response has a 5xx status code
+func (o *ListMTOPaymentRequestsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t o payment requests o k response a status code equal to that given
+func (o *ListMTOPaymentRequestsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the list m t o payment requests o k response
+func (o *ListMTOPaymentRequestsOK) Code() int {
+ return 200
+}
+
+func (o *ListMTOPaymentRequestsOK) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsOK %+v", 200, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsOK) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsOK %+v", 200, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsOK) GetPayload() supportmessages.PaymentRequests {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOPaymentRequestsBadRequest creates a ListMTOPaymentRequestsBadRequest with default headers values
+func NewListMTOPaymentRequestsBadRequest() *ListMTOPaymentRequestsBadRequest {
+ return &ListMTOPaymentRequestsBadRequest{}
+}
+
+/*
+ListMTOPaymentRequestsBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type ListMTOPaymentRequestsBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t o payment requests bad request response has a 2xx status code
+func (o *ListMTOPaymentRequestsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t o payment requests bad request response has a 3xx status code
+func (o *ListMTOPaymentRequestsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests bad request response has a 4xx status code
+func (o *ListMTOPaymentRequestsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t o payment requests bad request response has a 5xx status code
+func (o *ListMTOPaymentRequestsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t o payment requests bad request response a status code equal to that given
+func (o *ListMTOPaymentRequestsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the list m t o payment requests bad request response
+func (o *ListMTOPaymentRequestsBadRequest) Code() int {
+ return 400
+}
+
+func (o *ListMTOPaymentRequestsBadRequest) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsBadRequest) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOPaymentRequestsUnauthorized creates a ListMTOPaymentRequestsUnauthorized with default headers values
+func NewListMTOPaymentRequestsUnauthorized() *ListMTOPaymentRequestsUnauthorized {
+ return &ListMTOPaymentRequestsUnauthorized{}
+}
+
+/*
+ListMTOPaymentRequestsUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type ListMTOPaymentRequestsUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t o payment requests unauthorized response has a 2xx status code
+func (o *ListMTOPaymentRequestsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t o payment requests unauthorized response has a 3xx status code
+func (o *ListMTOPaymentRequestsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests unauthorized response has a 4xx status code
+func (o *ListMTOPaymentRequestsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t o payment requests unauthorized response has a 5xx status code
+func (o *ListMTOPaymentRequestsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t o payment requests unauthorized response a status code equal to that given
+func (o *ListMTOPaymentRequestsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the list m t o payment requests unauthorized response
+func (o *ListMTOPaymentRequestsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ListMTOPaymentRequestsUnauthorized) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsUnauthorized) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOPaymentRequestsForbidden creates a ListMTOPaymentRequestsForbidden with default headers values
+func NewListMTOPaymentRequestsForbidden() *ListMTOPaymentRequestsForbidden {
+ return &ListMTOPaymentRequestsForbidden{}
+}
+
+/*
+ListMTOPaymentRequestsForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type ListMTOPaymentRequestsForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t o payment requests forbidden response has a 2xx status code
+func (o *ListMTOPaymentRequestsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t o payment requests forbidden response has a 3xx status code
+func (o *ListMTOPaymentRequestsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests forbidden response has a 4xx status code
+func (o *ListMTOPaymentRequestsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t o payment requests forbidden response has a 5xx status code
+func (o *ListMTOPaymentRequestsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t o payment requests forbidden response a status code equal to that given
+func (o *ListMTOPaymentRequestsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the list m t o payment requests forbidden response
+func (o *ListMTOPaymentRequestsForbidden) Code() int {
+ return 403
+}
+
+func (o *ListMTOPaymentRequestsForbidden) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsForbidden) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOPaymentRequestsNotFound creates a ListMTOPaymentRequestsNotFound with default headers values
+func NewListMTOPaymentRequestsNotFound() *ListMTOPaymentRequestsNotFound {
+ return &ListMTOPaymentRequestsNotFound{}
+}
+
+/*
+ListMTOPaymentRequestsNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type ListMTOPaymentRequestsNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this list m t o payment requests not found response has a 2xx status code
+func (o *ListMTOPaymentRequestsNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t o payment requests not found response has a 3xx status code
+func (o *ListMTOPaymentRequestsNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests not found response has a 4xx status code
+func (o *ListMTOPaymentRequestsNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this list m t o payment requests not found response has a 5xx status code
+func (o *ListMTOPaymentRequestsNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this list m t o payment requests not found response a status code equal to that given
+func (o *ListMTOPaymentRequestsNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the list m t o payment requests not found response
+func (o *ListMTOPaymentRequestsNotFound) Code() int {
+ return 404
+}
+
+func (o *ListMTOPaymentRequestsNotFound) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsNotFound) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewListMTOPaymentRequestsInternalServerError creates a ListMTOPaymentRequestsInternalServerError with default headers values
+func NewListMTOPaymentRequestsInternalServerError() *ListMTOPaymentRequestsInternalServerError {
+ return &ListMTOPaymentRequestsInternalServerError{}
+}
+
+/*
+ListMTOPaymentRequestsInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type ListMTOPaymentRequestsInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this list m t o payment requests internal server error response has a 2xx status code
+func (o *ListMTOPaymentRequestsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this list m t o payment requests internal server error response has a 3xx status code
+func (o *ListMTOPaymentRequestsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this list m t o payment requests internal server error response has a 4xx status code
+func (o *ListMTOPaymentRequestsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this list m t o payment requests internal server error response has a 5xx status code
+func (o *ListMTOPaymentRequestsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this list m t o payment requests internal server error response a status code equal to that given
+func (o *ListMTOPaymentRequestsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the list m t o payment requests internal server error response
+func (o *ListMTOPaymentRequestsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ListMTOPaymentRequestsInternalServerError) Error() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsInternalServerError) String() string {
+ return fmt.Sprintf("[GET /move-task-orders/{moveTaskOrderID}/payment-requests][%d] listMTOPaymentRequestsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ListMTOPaymentRequestsInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *ListMTOPaymentRequestsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/payment_request_client.go b/pkg/gen/supportclient/payment_request/payment_request_client.go
new file mode 100644
index 00000000000..dae7a0dbbce
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/payment_request_client.go
@@ -0,0 +1,271 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new payment request API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for payment request API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ GetPaymentRequestEDI(params *GetPaymentRequestEDIParams, opts ...ClientOption) (*GetPaymentRequestEDIOK, error)
+
+ ListMTOPaymentRequests(params *ListMTOPaymentRequestsParams, opts ...ClientOption) (*ListMTOPaymentRequestsOK, error)
+
+ ProcessReviewedPaymentRequests(params *ProcessReviewedPaymentRequestsParams, opts ...ClientOption) (*ProcessReviewedPaymentRequestsOK, error)
+
+ RecalculatePaymentRequest(params *RecalculatePaymentRequestParams, opts ...ClientOption) (*RecalculatePaymentRequestCreated, error)
+
+ UpdatePaymentRequestStatus(params *UpdatePaymentRequestStatusParams, opts ...ClientOption) (*UpdatePaymentRequestStatusOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+ GetPaymentRequestEDI gets payment request e d i
+
+ Returns the EDI (Electronic Data Interchange) message for the payment request identified
+
+by the given payment request ID. Note that the EDI returned in the JSON payload will have where there
+would normally be line breaks (due to JSON not allowing line breaks in a string).
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) GetPaymentRequestEDI(params *GetPaymentRequestEDIParams, opts ...ClientOption) (*GetPaymentRequestEDIOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewGetPaymentRequestEDIParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "getPaymentRequestEDI",
+ Method: "GET",
+ PathPattern: "/payment-requests/{paymentRequestID}/edi",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &GetPaymentRequestEDIReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*GetPaymentRequestEDIOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for getPaymentRequestEDI: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ ListMTOPaymentRequests lists m t o payment requests
+
+ ### Functionality
+
+This endpoint lists all PaymentRequests associated with a given MoveTaskOrder.
+
+This is a support endpoint and is not available in production.
+*/
+func (a *Client) ListMTOPaymentRequests(params *ListMTOPaymentRequestsParams, opts ...ClientOption) (*ListMTOPaymentRequestsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewListMTOPaymentRequestsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "listMTOPaymentRequests",
+ Method: "GET",
+ PathPattern: "/move-task-orders/{moveTaskOrderID}/payment-requests",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &ListMTOPaymentRequestsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ListMTOPaymentRequestsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for listMTOPaymentRequests: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ ProcessReviewedPaymentRequests processes reviewed payment requests
+
+ Updates the status of reviewed payment requests and sends PRs to Syncada if
+
+the SendToSyncada flag is set
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) ProcessReviewedPaymentRequests(params *ProcessReviewedPaymentRequestsParams, opts ...ClientOption) (*ProcessReviewedPaymentRequestsOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewProcessReviewedPaymentRequestsParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "processReviewedPaymentRequests",
+ Method: "PATCH",
+ PathPattern: "/payment-requests/process-reviewed",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &ProcessReviewedPaymentRequestsReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ProcessReviewedPaymentRequestsOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for processReviewedPaymentRequests: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ RecalculatePaymentRequest recalculates payment request
+
+ Recalculates an existing pending payment request by creating a new payment request for the same service
+
+items but is priced based on the current inputs (weights, dates, etc.). The previously existing payment
+request is then deprecated. A link is made between the new and existing payment requests.
+
+This is a support endpoint and will not be available in production.
+*/
+func (a *Client) RecalculatePaymentRequest(params *RecalculatePaymentRequestParams, opts ...ClientOption) (*RecalculatePaymentRequestCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewRecalculatePaymentRequestParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "recalculatePaymentRequest",
+ Method: "POST",
+ PathPattern: "/payment-requests/{paymentRequestID}/recalculate",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &RecalculatePaymentRequestReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*RecalculatePaymentRequestCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for recalculatePaymentRequest: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ UpdatePaymentRequestStatus updates payment request status
+
+ Updates status of a payment request to REVIEWED, SENT_TO_GEX, TPPS_RECEIVED, REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED, PAID, EDI_ERROR, or DEPRECATED.
+
+A status of REVIEWED can optionally have a `rejectionReason`.
+
+This is a support endpoint and is not available in production.
+*/
+func (a *Client) UpdatePaymentRequestStatus(params *UpdatePaymentRequestStatusParams, opts ...ClientOption) (*UpdatePaymentRequestStatusOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewUpdatePaymentRequestStatusParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "updatePaymentRequestStatus",
+ Method: "PATCH",
+ PathPattern: "/payment-requests/{paymentRequestID}/status",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &UpdatePaymentRequestStatusReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*UpdatePaymentRequestStatusOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for updatePaymentRequestStatus: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go
new file mode 100644
index 00000000000..9323038f443
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_parameters.go
@@ -0,0 +1,150 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewProcessReviewedPaymentRequestsParams creates a new ProcessReviewedPaymentRequestsParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewProcessReviewedPaymentRequestsParams() *ProcessReviewedPaymentRequestsParams {
+ return &ProcessReviewedPaymentRequestsParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewProcessReviewedPaymentRequestsParamsWithTimeout creates a new ProcessReviewedPaymentRequestsParams object
+// with the ability to set a timeout on a request.
+func NewProcessReviewedPaymentRequestsParamsWithTimeout(timeout time.Duration) *ProcessReviewedPaymentRequestsParams {
+ return &ProcessReviewedPaymentRequestsParams{
+ timeout: timeout,
+ }
+}
+
+// NewProcessReviewedPaymentRequestsParamsWithContext creates a new ProcessReviewedPaymentRequestsParams object
+// with the ability to set a context for a request.
+func NewProcessReviewedPaymentRequestsParamsWithContext(ctx context.Context) *ProcessReviewedPaymentRequestsParams {
+ return &ProcessReviewedPaymentRequestsParams{
+ Context: ctx,
+ }
+}
+
+// NewProcessReviewedPaymentRequestsParamsWithHTTPClient creates a new ProcessReviewedPaymentRequestsParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewProcessReviewedPaymentRequestsParamsWithHTTPClient(client *http.Client) *ProcessReviewedPaymentRequestsParams {
+ return &ProcessReviewedPaymentRequestsParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ProcessReviewedPaymentRequestsParams contains all the parameters to send to the API endpoint
+
+ for the process reviewed payment requests operation.
+
+ Typically these are written to a http.Request.
+*/
+type ProcessReviewedPaymentRequestsParams struct {
+
+ // Body.
+ Body *supportmessages.ProcessReviewedPaymentRequests
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the process reviewed payment requests params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ProcessReviewedPaymentRequestsParams) WithDefaults() *ProcessReviewedPaymentRequestsParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the process reviewed payment requests params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ProcessReviewedPaymentRequestsParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) WithTimeout(timeout time.Duration) *ProcessReviewedPaymentRequestsParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) WithContext(ctx context.Context) *ProcessReviewedPaymentRequestsParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) WithHTTPClient(client *http.Client) *ProcessReviewedPaymentRequestsParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) WithBody(body *supportmessages.ProcessReviewedPaymentRequests) *ProcessReviewedPaymentRequestsParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the process reviewed payment requests params
+func (o *ProcessReviewedPaymentRequestsParams) SetBody(body *supportmessages.ProcessReviewedPaymentRequests) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ProcessReviewedPaymentRequestsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go
new file mode 100644
index 00000000000..e853c7905ef
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/process_reviewed_payment_requests_responses.go
@@ -0,0 +1,545 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ProcessReviewedPaymentRequestsReader is a Reader for the ProcessReviewedPaymentRequests structure.
+type ProcessReviewedPaymentRequestsReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ProcessReviewedPaymentRequestsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewProcessReviewedPaymentRequestsOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewProcessReviewedPaymentRequestsBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewProcessReviewedPaymentRequestsUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewProcessReviewedPaymentRequestsForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewProcessReviewedPaymentRequestsNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewProcessReviewedPaymentRequestsUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewProcessReviewedPaymentRequestsInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /payment-requests/process-reviewed] processReviewedPaymentRequests", response, response.Code())
+ }
+}
+
+// NewProcessReviewedPaymentRequestsOK creates a ProcessReviewedPaymentRequestsOK with default headers values
+func NewProcessReviewedPaymentRequestsOK() *ProcessReviewedPaymentRequestsOK {
+ return &ProcessReviewedPaymentRequestsOK{}
+}
+
+/*
+ProcessReviewedPaymentRequestsOK describes a response with status code 200, with default header values.
+
+Successfully updated status of reviewed payment request and sent to Syncada if that flag is set
+*/
+type ProcessReviewedPaymentRequestsOK struct {
+ Payload supportmessages.PaymentRequests
+}
+
+// IsSuccess returns true when this process reviewed payment requests o k response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this process reviewed payment requests o k response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests o k response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this process reviewed payment requests o k response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests o k response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the process reviewed payment requests o k response
+func (o *ProcessReviewedPaymentRequestsOK) Code() int {
+ return 200
+}
+
+func (o *ProcessReviewedPaymentRequestsOK) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsOK %+v", 200, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsOK) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsOK %+v", 200, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsOK) GetPayload() supportmessages.PaymentRequests {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ // response payload
+ if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsBadRequest creates a ProcessReviewedPaymentRequestsBadRequest with default headers values
+func NewProcessReviewedPaymentRequestsBadRequest() *ProcessReviewedPaymentRequestsBadRequest {
+ return &ProcessReviewedPaymentRequestsBadRequest{}
+}
+
+/*
+ProcessReviewedPaymentRequestsBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type ProcessReviewedPaymentRequestsBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this process reviewed payment requests bad request response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests bad request response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests bad request response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this process reviewed payment requests bad request response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests bad request response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the process reviewed payment requests bad request response
+func (o *ProcessReviewedPaymentRequestsBadRequest) Code() int {
+ return 400
+}
+
+func (o *ProcessReviewedPaymentRequestsBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsUnauthorized creates a ProcessReviewedPaymentRequestsUnauthorized with default headers values
+func NewProcessReviewedPaymentRequestsUnauthorized() *ProcessReviewedPaymentRequestsUnauthorized {
+ return &ProcessReviewedPaymentRequestsUnauthorized{}
+}
+
+/*
+ProcessReviewedPaymentRequestsUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type ProcessReviewedPaymentRequestsUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this process reviewed payment requests unauthorized response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests unauthorized response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests unauthorized response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this process reviewed payment requests unauthorized response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests unauthorized response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the process reviewed payment requests unauthorized response
+func (o *ProcessReviewedPaymentRequestsUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ProcessReviewedPaymentRequestsUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsForbidden creates a ProcessReviewedPaymentRequestsForbidden with default headers values
+func NewProcessReviewedPaymentRequestsForbidden() *ProcessReviewedPaymentRequestsForbidden {
+ return &ProcessReviewedPaymentRequestsForbidden{}
+}
+
+/*
+ProcessReviewedPaymentRequestsForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type ProcessReviewedPaymentRequestsForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this process reviewed payment requests forbidden response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests forbidden response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests forbidden response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this process reviewed payment requests forbidden response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests forbidden response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the process reviewed payment requests forbidden response
+func (o *ProcessReviewedPaymentRequestsForbidden) Code() int {
+ return 403
+}
+
+func (o *ProcessReviewedPaymentRequestsForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsForbidden) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsForbidden %+v", 403, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsNotFound creates a ProcessReviewedPaymentRequestsNotFound with default headers values
+func NewProcessReviewedPaymentRequestsNotFound() *ProcessReviewedPaymentRequestsNotFound {
+ return &ProcessReviewedPaymentRequestsNotFound{}
+}
+
+/*
+ProcessReviewedPaymentRequestsNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type ProcessReviewedPaymentRequestsNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this process reviewed payment requests not found response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests not found response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests not found response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this process reviewed payment requests not found response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests not found response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the process reviewed payment requests not found response
+func (o *ProcessReviewedPaymentRequestsNotFound) Code() int {
+ return 404
+}
+
+func (o *ProcessReviewedPaymentRequestsNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsNotFound) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsNotFound %+v", 404, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsUnprocessableEntity creates a ProcessReviewedPaymentRequestsUnprocessableEntity with default headers values
+func NewProcessReviewedPaymentRequestsUnprocessableEntity() *ProcessReviewedPaymentRequestsUnprocessableEntity {
+ return &ProcessReviewedPaymentRequestsUnprocessableEntity{}
+}
+
+/*
+ProcessReviewedPaymentRequestsUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type ProcessReviewedPaymentRequestsUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this process reviewed payment requests unprocessable entity response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests unprocessable entity response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests unprocessable entity response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this process reviewed payment requests unprocessable entity response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this process reviewed payment requests unprocessable entity response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the process reviewed payment requests unprocessable entity response
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewProcessReviewedPaymentRequestsInternalServerError creates a ProcessReviewedPaymentRequestsInternalServerError with default headers values
+func NewProcessReviewedPaymentRequestsInternalServerError() *ProcessReviewedPaymentRequestsInternalServerError {
+ return &ProcessReviewedPaymentRequestsInternalServerError{}
+}
+
+/*
+ProcessReviewedPaymentRequestsInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type ProcessReviewedPaymentRequestsInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this process reviewed payment requests internal server error response has a 2xx status code
+func (o *ProcessReviewedPaymentRequestsInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this process reviewed payment requests internal server error response has a 3xx status code
+func (o *ProcessReviewedPaymentRequestsInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this process reviewed payment requests internal server error response has a 4xx status code
+func (o *ProcessReviewedPaymentRequestsInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this process reviewed payment requests internal server error response has a 5xx status code
+func (o *ProcessReviewedPaymentRequestsInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this process reviewed payment requests internal server error response a status code equal to that given
+func (o *ProcessReviewedPaymentRequestsInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the process reviewed payment requests internal server error response
+func (o *ProcessReviewedPaymentRequestsInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ProcessReviewedPaymentRequestsInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/process-reviewed][%d] processReviewedPaymentRequestsInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ProcessReviewedPaymentRequestsInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *ProcessReviewedPaymentRequestsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go b/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go
new file mode 100644
index 00000000000..a6660aa968f
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/recalculate_payment_request_parameters.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+)
+
+// NewRecalculatePaymentRequestParams creates a new RecalculatePaymentRequestParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewRecalculatePaymentRequestParams() *RecalculatePaymentRequestParams {
+ return &RecalculatePaymentRequestParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewRecalculatePaymentRequestParamsWithTimeout creates a new RecalculatePaymentRequestParams object
+// with the ability to set a timeout on a request.
+func NewRecalculatePaymentRequestParamsWithTimeout(timeout time.Duration) *RecalculatePaymentRequestParams {
+ return &RecalculatePaymentRequestParams{
+ timeout: timeout,
+ }
+}
+
+// NewRecalculatePaymentRequestParamsWithContext creates a new RecalculatePaymentRequestParams object
+// with the ability to set a context for a request.
+func NewRecalculatePaymentRequestParamsWithContext(ctx context.Context) *RecalculatePaymentRequestParams {
+ return &RecalculatePaymentRequestParams{
+ Context: ctx,
+ }
+}
+
+// NewRecalculatePaymentRequestParamsWithHTTPClient creates a new RecalculatePaymentRequestParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewRecalculatePaymentRequestParamsWithHTTPClient(client *http.Client) *RecalculatePaymentRequestParams {
+ return &RecalculatePaymentRequestParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+RecalculatePaymentRequestParams contains all the parameters to send to the API endpoint
+
+ for the recalculate payment request operation.
+
+ Typically these are written to a http.Request.
+*/
+type RecalculatePaymentRequestParams struct {
+
+ /* PaymentRequestID.
+
+ UUID of the payment request to recalculate.
+
+ Format: uuid
+ */
+ PaymentRequestID strfmt.UUID
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the recalculate payment request params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *RecalculatePaymentRequestParams) WithDefaults() *RecalculatePaymentRequestParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the recalculate payment request params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *RecalculatePaymentRequestParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) WithTimeout(timeout time.Duration) *RecalculatePaymentRequestParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) WithContext(ctx context.Context) *RecalculatePaymentRequestParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) WithHTTPClient(client *http.Client) *RecalculatePaymentRequestParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithPaymentRequestID adds the paymentRequestID to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *RecalculatePaymentRequestParams {
+ o.SetPaymentRequestID(paymentRequestID)
+ return o
+}
+
+// SetPaymentRequestID adds the paymentRequestId to the recalculate payment request params
+func (o *RecalculatePaymentRequestParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
+ o.PaymentRequestID = paymentRequestID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *RecalculatePaymentRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // path param paymentRequestID
+ if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go b/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go
new file mode 100644
index 00000000000..b604df58365
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/recalculate_payment_request_responses.go
@@ -0,0 +1,695 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// RecalculatePaymentRequestReader is a Reader for the RecalculatePaymentRequest structure.
+type RecalculatePaymentRequestReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *RecalculatePaymentRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewRecalculatePaymentRequestCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewRecalculatePaymentRequestBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewRecalculatePaymentRequestUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewRecalculatePaymentRequestForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewRecalculatePaymentRequestNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewRecalculatePaymentRequestConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewRecalculatePaymentRequestPreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewRecalculatePaymentRequestUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewRecalculatePaymentRequestInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /payment-requests/{paymentRequestID}/recalculate] recalculatePaymentRequest", response, response.Code())
+ }
+}
+
+// NewRecalculatePaymentRequestCreated creates a RecalculatePaymentRequestCreated with default headers values
+func NewRecalculatePaymentRequestCreated() *RecalculatePaymentRequestCreated {
+ return &RecalculatePaymentRequestCreated{}
+}
+
+/*
+RecalculatePaymentRequestCreated describes a response with status code 201, with default header values.
+
+The new payment request with recalculated pricing.
+*/
+type RecalculatePaymentRequestCreated struct {
+ Payload *supportmessages.PaymentRequest
+}
+
+// IsSuccess returns true when this recalculate payment request created response has a 2xx status code
+func (o *RecalculatePaymentRequestCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this recalculate payment request created response has a 3xx status code
+func (o *RecalculatePaymentRequestCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request created response has a 4xx status code
+func (o *RecalculatePaymentRequestCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this recalculate payment request created response has a 5xx status code
+func (o *RecalculatePaymentRequestCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request created response a status code equal to that given
+func (o *RecalculatePaymentRequestCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the recalculate payment request created response
+func (o *RecalculatePaymentRequestCreated) Code() int {
+ return 201
+}
+
+func (o *RecalculatePaymentRequestCreated) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestCreated %+v", 201, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestCreated) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestCreated %+v", 201, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestCreated) GetPayload() *supportmessages.PaymentRequest {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.PaymentRequest)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestBadRequest creates a RecalculatePaymentRequestBadRequest with default headers values
+func NewRecalculatePaymentRequestBadRequest() *RecalculatePaymentRequestBadRequest {
+ return &RecalculatePaymentRequestBadRequest{}
+}
+
+/*
+RecalculatePaymentRequestBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type RecalculatePaymentRequestBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request bad request response has a 2xx status code
+func (o *RecalculatePaymentRequestBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request bad request response has a 3xx status code
+func (o *RecalculatePaymentRequestBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request bad request response has a 4xx status code
+func (o *RecalculatePaymentRequestBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request bad request response has a 5xx status code
+func (o *RecalculatePaymentRequestBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request bad request response a status code equal to that given
+func (o *RecalculatePaymentRequestBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the recalculate payment request bad request response
+func (o *RecalculatePaymentRequestBadRequest) Code() int {
+ return 400
+}
+
+func (o *RecalculatePaymentRequestBadRequest) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestBadRequest %+v", 400, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestBadRequest) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestBadRequest %+v", 400, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestUnauthorized creates a RecalculatePaymentRequestUnauthorized with default headers values
+func NewRecalculatePaymentRequestUnauthorized() *RecalculatePaymentRequestUnauthorized {
+ return &RecalculatePaymentRequestUnauthorized{}
+}
+
+/*
+RecalculatePaymentRequestUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type RecalculatePaymentRequestUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request unauthorized response has a 2xx status code
+func (o *RecalculatePaymentRequestUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request unauthorized response has a 3xx status code
+func (o *RecalculatePaymentRequestUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request unauthorized response has a 4xx status code
+func (o *RecalculatePaymentRequestUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request unauthorized response has a 5xx status code
+func (o *RecalculatePaymentRequestUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request unauthorized response a status code equal to that given
+func (o *RecalculatePaymentRequestUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the recalculate payment request unauthorized response
+func (o *RecalculatePaymentRequestUnauthorized) Code() int {
+ return 401
+}
+
+func (o *RecalculatePaymentRequestUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestUnauthorized) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestForbidden creates a RecalculatePaymentRequestForbidden with default headers values
+func NewRecalculatePaymentRequestForbidden() *RecalculatePaymentRequestForbidden {
+ return &RecalculatePaymentRequestForbidden{}
+}
+
+/*
+RecalculatePaymentRequestForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type RecalculatePaymentRequestForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request forbidden response has a 2xx status code
+func (o *RecalculatePaymentRequestForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request forbidden response has a 3xx status code
+func (o *RecalculatePaymentRequestForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request forbidden response has a 4xx status code
+func (o *RecalculatePaymentRequestForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request forbidden response has a 5xx status code
+func (o *RecalculatePaymentRequestForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request forbidden response a status code equal to that given
+func (o *RecalculatePaymentRequestForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the recalculate payment request forbidden response
+func (o *RecalculatePaymentRequestForbidden) Code() int {
+ return 403
+}
+
+func (o *RecalculatePaymentRequestForbidden) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestForbidden %+v", 403, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestForbidden) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestForbidden %+v", 403, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestNotFound creates a RecalculatePaymentRequestNotFound with default headers values
+func NewRecalculatePaymentRequestNotFound() *RecalculatePaymentRequestNotFound {
+ return &RecalculatePaymentRequestNotFound{}
+}
+
+/*
+RecalculatePaymentRequestNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type RecalculatePaymentRequestNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request not found response has a 2xx status code
+func (o *RecalculatePaymentRequestNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request not found response has a 3xx status code
+func (o *RecalculatePaymentRequestNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request not found response has a 4xx status code
+func (o *RecalculatePaymentRequestNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request not found response has a 5xx status code
+func (o *RecalculatePaymentRequestNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request not found response a status code equal to that given
+func (o *RecalculatePaymentRequestNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the recalculate payment request not found response
+func (o *RecalculatePaymentRequestNotFound) Code() int {
+ return 404
+}
+
+func (o *RecalculatePaymentRequestNotFound) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestNotFound %+v", 404, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestNotFound) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestNotFound %+v", 404, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestConflict creates a RecalculatePaymentRequestConflict with default headers values
+func NewRecalculatePaymentRequestConflict() *RecalculatePaymentRequestConflict {
+ return &RecalculatePaymentRequestConflict{}
+}
+
+/*
+RecalculatePaymentRequestConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type RecalculatePaymentRequestConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request conflict response has a 2xx status code
+func (o *RecalculatePaymentRequestConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request conflict response has a 3xx status code
+func (o *RecalculatePaymentRequestConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request conflict response has a 4xx status code
+func (o *RecalculatePaymentRequestConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request conflict response has a 5xx status code
+func (o *RecalculatePaymentRequestConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request conflict response a status code equal to that given
+func (o *RecalculatePaymentRequestConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the recalculate payment request conflict response
+func (o *RecalculatePaymentRequestConflict) Code() int {
+ return 409
+}
+
+func (o *RecalculatePaymentRequestConflict) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestConflict %+v", 409, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestConflict) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestConflict %+v", 409, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestPreconditionFailed creates a RecalculatePaymentRequestPreconditionFailed with default headers values
+func NewRecalculatePaymentRequestPreconditionFailed() *RecalculatePaymentRequestPreconditionFailed {
+ return &RecalculatePaymentRequestPreconditionFailed{}
+}
+
+/*
+RecalculatePaymentRequestPreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type RecalculatePaymentRequestPreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this recalculate payment request precondition failed response has a 2xx status code
+func (o *RecalculatePaymentRequestPreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request precondition failed response has a 3xx status code
+func (o *RecalculatePaymentRequestPreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request precondition failed response has a 4xx status code
+func (o *RecalculatePaymentRequestPreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request precondition failed response has a 5xx status code
+func (o *RecalculatePaymentRequestPreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request precondition failed response a status code equal to that given
+func (o *RecalculatePaymentRequestPreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the recalculate payment request precondition failed response
+func (o *RecalculatePaymentRequestPreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *RecalculatePaymentRequestPreconditionFailed) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestPreconditionFailed) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestPreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestUnprocessableEntity creates a RecalculatePaymentRequestUnprocessableEntity with default headers values
+func NewRecalculatePaymentRequestUnprocessableEntity() *RecalculatePaymentRequestUnprocessableEntity {
+ return &RecalculatePaymentRequestUnprocessableEntity{}
+}
+
+/*
+RecalculatePaymentRequestUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type RecalculatePaymentRequestUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this recalculate payment request unprocessable entity response has a 2xx status code
+func (o *RecalculatePaymentRequestUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request unprocessable entity response has a 3xx status code
+func (o *RecalculatePaymentRequestUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request unprocessable entity response has a 4xx status code
+func (o *RecalculatePaymentRequestUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this recalculate payment request unprocessable entity response has a 5xx status code
+func (o *RecalculatePaymentRequestUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this recalculate payment request unprocessable entity response a status code equal to that given
+func (o *RecalculatePaymentRequestUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the recalculate payment request unprocessable entity response
+func (o *RecalculatePaymentRequestUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *RecalculatePaymentRequestUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestUnprocessableEntity) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewRecalculatePaymentRequestInternalServerError creates a RecalculatePaymentRequestInternalServerError with default headers values
+func NewRecalculatePaymentRequestInternalServerError() *RecalculatePaymentRequestInternalServerError {
+ return &RecalculatePaymentRequestInternalServerError{}
+}
+
+/*
+RecalculatePaymentRequestInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type RecalculatePaymentRequestInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this recalculate payment request internal server error response has a 2xx status code
+func (o *RecalculatePaymentRequestInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this recalculate payment request internal server error response has a 3xx status code
+func (o *RecalculatePaymentRequestInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this recalculate payment request internal server error response has a 4xx status code
+func (o *RecalculatePaymentRequestInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this recalculate payment request internal server error response has a 5xx status code
+func (o *RecalculatePaymentRequestInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this recalculate payment request internal server error response a status code equal to that given
+func (o *RecalculatePaymentRequestInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the recalculate payment request internal server error response
+func (o *RecalculatePaymentRequestInternalServerError) Code() int {
+ return 500
+}
+
+func (o *RecalculatePaymentRequestInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestInternalServerError) String() string {
+ return fmt.Sprintf("[POST /payment-requests/{paymentRequestID}/recalculate][%d] recalculatePaymentRequestInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *RecalculatePaymentRequestInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *RecalculatePaymentRequestInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go b/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go
new file mode 100644
index 00000000000..0f91c418a23
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/update_payment_request_status_parameters.go
@@ -0,0 +1,197 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewUpdatePaymentRequestStatusParams creates a new UpdatePaymentRequestStatusParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewUpdatePaymentRequestStatusParams() *UpdatePaymentRequestStatusParams {
+ return &UpdatePaymentRequestStatusParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewUpdatePaymentRequestStatusParamsWithTimeout creates a new UpdatePaymentRequestStatusParams object
+// with the ability to set a timeout on a request.
+func NewUpdatePaymentRequestStatusParamsWithTimeout(timeout time.Duration) *UpdatePaymentRequestStatusParams {
+ return &UpdatePaymentRequestStatusParams{
+ timeout: timeout,
+ }
+}
+
+// NewUpdatePaymentRequestStatusParamsWithContext creates a new UpdatePaymentRequestStatusParams object
+// with the ability to set a context for a request.
+func NewUpdatePaymentRequestStatusParamsWithContext(ctx context.Context) *UpdatePaymentRequestStatusParams {
+ return &UpdatePaymentRequestStatusParams{
+ Context: ctx,
+ }
+}
+
+// NewUpdatePaymentRequestStatusParamsWithHTTPClient creates a new UpdatePaymentRequestStatusParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewUpdatePaymentRequestStatusParamsWithHTTPClient(client *http.Client) *UpdatePaymentRequestStatusParams {
+ return &UpdatePaymentRequestStatusParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+UpdatePaymentRequestStatusParams contains all the parameters to send to the API endpoint
+
+ for the update payment request status operation.
+
+ Typically these are written to a http.Request.
+*/
+type UpdatePaymentRequestStatusParams struct {
+
+ /* IfMatch.
+
+ Optimistic locking is implemented via the `If-Match` header. If the ETag header does not match the value of the resource on the server, the server rejects the change with a `412 Precondition Failed` error.
+
+ */
+ IfMatch string
+
+ // Body.
+ Body *supportmessages.UpdatePaymentRequestStatus
+
+ /* PaymentRequestID.
+
+ UUID of payment request.
+
+ Format: uuid
+ */
+ PaymentRequestID strfmt.UUID
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the update payment request status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdatePaymentRequestStatusParams) WithDefaults() *UpdatePaymentRequestStatusParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the update payment request status params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *UpdatePaymentRequestStatusParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithTimeout(timeout time.Duration) *UpdatePaymentRequestStatusParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithContext(ctx context.Context) *UpdatePaymentRequestStatusParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithHTTPClient(client *http.Client) *UpdatePaymentRequestStatusParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithIfMatch adds the ifMatch to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithIfMatch(ifMatch string) *UpdatePaymentRequestStatusParams {
+ o.SetIfMatch(ifMatch)
+ return o
+}
+
+// SetIfMatch adds the ifMatch to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetIfMatch(ifMatch string) {
+ o.IfMatch = ifMatch
+}
+
+// WithBody adds the body to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithBody(body *supportmessages.UpdatePaymentRequestStatus) *UpdatePaymentRequestStatusParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetBody(body *supportmessages.UpdatePaymentRequestStatus) {
+ o.Body = body
+}
+
+// WithPaymentRequestID adds the paymentRequestID to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) WithPaymentRequestID(paymentRequestID strfmt.UUID) *UpdatePaymentRequestStatusParams {
+ o.SetPaymentRequestID(paymentRequestID)
+ return o
+}
+
+// SetPaymentRequestID adds the paymentRequestId to the update payment request status params
+func (o *UpdatePaymentRequestStatusParams) SetPaymentRequestID(paymentRequestID strfmt.UUID) {
+ o.PaymentRequestID = paymentRequestID
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *UpdatePaymentRequestStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+
+ // header param If-Match
+ if err := r.SetHeaderParam("If-Match", o.IfMatch); err != nil {
+ return err
+ }
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ // path param paymentRequestID
+ if err := r.SetPathParam("paymentRequestID", o.PaymentRequestID.String()); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go b/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go
new file mode 100644
index 00000000000..a6b142179ac
--- /dev/null
+++ b/pkg/gen/supportclient/payment_request/update_payment_request_status_responses.go
@@ -0,0 +1,695 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package payment_request
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// UpdatePaymentRequestStatusReader is a Reader for the UpdatePaymentRequestStatus structure.
+type UpdatePaymentRequestStatusReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *UpdatePaymentRequestStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewUpdatePaymentRequestStatusOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewUpdatePaymentRequestStatusBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewUpdatePaymentRequestStatusUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewUpdatePaymentRequestStatusForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 404:
+ result := NewUpdatePaymentRequestStatusNotFound()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 409:
+ result := NewUpdatePaymentRequestStatusConflict()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 412:
+ result := NewUpdatePaymentRequestStatusPreconditionFailed()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 422:
+ result := NewUpdatePaymentRequestStatusUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewUpdatePaymentRequestStatusInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[PATCH /payment-requests/{paymentRequestID}/status] updatePaymentRequestStatus", response, response.Code())
+ }
+}
+
+// NewUpdatePaymentRequestStatusOK creates a UpdatePaymentRequestStatusOK with default headers values
+func NewUpdatePaymentRequestStatusOK() *UpdatePaymentRequestStatusOK {
+ return &UpdatePaymentRequestStatusOK{}
+}
+
+/*
+UpdatePaymentRequestStatusOK describes a response with status code 200, with default header values.
+
+Successfully updated payment request status.
+*/
+type UpdatePaymentRequestStatusOK struct {
+ Payload *supportmessages.PaymentRequest
+}
+
+// IsSuccess returns true when this update payment request status o k response has a 2xx status code
+func (o *UpdatePaymentRequestStatusOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this update payment request status o k response has a 3xx status code
+func (o *UpdatePaymentRequestStatusOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status o k response has a 4xx status code
+func (o *UpdatePaymentRequestStatusOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update payment request status o k response has a 5xx status code
+func (o *UpdatePaymentRequestStatusOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status o k response a status code equal to that given
+func (o *UpdatePaymentRequestStatusOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the update payment request status o k response
+func (o *UpdatePaymentRequestStatusOK) Code() int {
+ return 200
+}
+
+func (o *UpdatePaymentRequestStatusOK) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusOK) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusOK %+v", 200, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusOK) GetPayload() *supportmessages.PaymentRequest {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.PaymentRequest)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusBadRequest creates a UpdatePaymentRequestStatusBadRequest with default headers values
+func NewUpdatePaymentRequestStatusBadRequest() *UpdatePaymentRequestStatusBadRequest {
+ return &UpdatePaymentRequestStatusBadRequest{}
+}
+
+/*
+UpdatePaymentRequestStatusBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type UpdatePaymentRequestStatusBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status bad request response has a 2xx status code
+func (o *UpdatePaymentRequestStatusBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status bad request response has a 3xx status code
+func (o *UpdatePaymentRequestStatusBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status bad request response has a 4xx status code
+func (o *UpdatePaymentRequestStatusBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status bad request response has a 5xx status code
+func (o *UpdatePaymentRequestStatusBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status bad request response a status code equal to that given
+func (o *UpdatePaymentRequestStatusBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the update payment request status bad request response
+func (o *UpdatePaymentRequestStatusBadRequest) Code() int {
+ return 400
+}
+
+func (o *UpdatePaymentRequestStatusBadRequest) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusBadRequest) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusBadRequest %+v", 400, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusUnauthorized creates a UpdatePaymentRequestStatusUnauthorized with default headers values
+func NewUpdatePaymentRequestStatusUnauthorized() *UpdatePaymentRequestStatusUnauthorized {
+ return &UpdatePaymentRequestStatusUnauthorized{}
+}
+
+/*
+UpdatePaymentRequestStatusUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type UpdatePaymentRequestStatusUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status unauthorized response has a 2xx status code
+func (o *UpdatePaymentRequestStatusUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status unauthorized response has a 3xx status code
+func (o *UpdatePaymentRequestStatusUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status unauthorized response has a 4xx status code
+func (o *UpdatePaymentRequestStatusUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status unauthorized response has a 5xx status code
+func (o *UpdatePaymentRequestStatusUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status unauthorized response a status code equal to that given
+func (o *UpdatePaymentRequestStatusUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the update payment request status unauthorized response
+func (o *UpdatePaymentRequestStatusUnauthorized) Code() int {
+ return 401
+}
+
+func (o *UpdatePaymentRequestStatusUnauthorized) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusUnauthorized) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusForbidden creates a UpdatePaymentRequestStatusForbidden with default headers values
+func NewUpdatePaymentRequestStatusForbidden() *UpdatePaymentRequestStatusForbidden {
+ return &UpdatePaymentRequestStatusForbidden{}
+}
+
+/*
+UpdatePaymentRequestStatusForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type UpdatePaymentRequestStatusForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status forbidden response has a 2xx status code
+func (o *UpdatePaymentRequestStatusForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status forbidden response has a 3xx status code
+func (o *UpdatePaymentRequestStatusForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status forbidden response has a 4xx status code
+func (o *UpdatePaymentRequestStatusForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status forbidden response has a 5xx status code
+func (o *UpdatePaymentRequestStatusForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status forbidden response a status code equal to that given
+func (o *UpdatePaymentRequestStatusForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the update payment request status forbidden response
+func (o *UpdatePaymentRequestStatusForbidden) Code() int {
+ return 403
+}
+
+func (o *UpdatePaymentRequestStatusForbidden) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusForbidden) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusForbidden %+v", 403, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusNotFound creates a UpdatePaymentRequestStatusNotFound with default headers values
+func NewUpdatePaymentRequestStatusNotFound() *UpdatePaymentRequestStatusNotFound {
+ return &UpdatePaymentRequestStatusNotFound{}
+}
+
+/*
+UpdatePaymentRequestStatusNotFound describes a response with status code 404, with default header values.
+
+The requested resource wasn't found.
+*/
+type UpdatePaymentRequestStatusNotFound struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status not found response has a 2xx status code
+func (o *UpdatePaymentRequestStatusNotFound) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status not found response has a 3xx status code
+func (o *UpdatePaymentRequestStatusNotFound) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status not found response has a 4xx status code
+func (o *UpdatePaymentRequestStatusNotFound) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status not found response has a 5xx status code
+func (o *UpdatePaymentRequestStatusNotFound) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status not found response a status code equal to that given
+func (o *UpdatePaymentRequestStatusNotFound) IsCode(code int) bool {
+ return code == 404
+}
+
+// Code gets the status code for the update payment request status not found response
+func (o *UpdatePaymentRequestStatusNotFound) Code() int {
+ return 404
+}
+
+func (o *UpdatePaymentRequestStatusNotFound) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusNotFound) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusNotFound %+v", 404, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusNotFound) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusConflict creates a UpdatePaymentRequestStatusConflict with default headers values
+func NewUpdatePaymentRequestStatusConflict() *UpdatePaymentRequestStatusConflict {
+ return &UpdatePaymentRequestStatusConflict{}
+}
+
+/*
+UpdatePaymentRequestStatusConflict describes a response with status code 409, with default header values.
+
+There was a conflict with the request.
+*/
+type UpdatePaymentRequestStatusConflict struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status conflict response has a 2xx status code
+func (o *UpdatePaymentRequestStatusConflict) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status conflict response has a 3xx status code
+func (o *UpdatePaymentRequestStatusConflict) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status conflict response has a 4xx status code
+func (o *UpdatePaymentRequestStatusConflict) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status conflict response has a 5xx status code
+func (o *UpdatePaymentRequestStatusConflict) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status conflict response a status code equal to that given
+func (o *UpdatePaymentRequestStatusConflict) IsCode(code int) bool {
+ return code == 409
+}
+
+// Code gets the status code for the update payment request status conflict response
+func (o *UpdatePaymentRequestStatusConflict) Code() int {
+ return 409
+}
+
+func (o *UpdatePaymentRequestStatusConflict) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusConflict) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusConflict %+v", 409, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusConflict) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusPreconditionFailed creates a UpdatePaymentRequestStatusPreconditionFailed with default headers values
+func NewUpdatePaymentRequestStatusPreconditionFailed() *UpdatePaymentRequestStatusPreconditionFailed {
+ return &UpdatePaymentRequestStatusPreconditionFailed{}
+}
+
+/*
+UpdatePaymentRequestStatusPreconditionFailed describes a response with status code 412, with default header values.
+
+Precondition failed, likely due to a stale eTag (If-Match). Fetch the request again to get the updated eTag value.
+*/
+type UpdatePaymentRequestStatusPreconditionFailed struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this update payment request status precondition failed response has a 2xx status code
+func (o *UpdatePaymentRequestStatusPreconditionFailed) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status precondition failed response has a 3xx status code
+func (o *UpdatePaymentRequestStatusPreconditionFailed) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status precondition failed response has a 4xx status code
+func (o *UpdatePaymentRequestStatusPreconditionFailed) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status precondition failed response has a 5xx status code
+func (o *UpdatePaymentRequestStatusPreconditionFailed) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status precondition failed response a status code equal to that given
+func (o *UpdatePaymentRequestStatusPreconditionFailed) IsCode(code int) bool {
+ return code == 412
+}
+
+// Code gets the status code for the update payment request status precondition failed response
+func (o *UpdatePaymentRequestStatusPreconditionFailed) Code() int {
+ return 412
+}
+
+func (o *UpdatePaymentRequestStatusPreconditionFailed) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusPreconditionFailed) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusPreconditionFailed %+v", 412, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusPreconditionFailed) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusUnprocessableEntity creates a UpdatePaymentRequestStatusUnprocessableEntity with default headers values
+func NewUpdatePaymentRequestStatusUnprocessableEntity() *UpdatePaymentRequestStatusUnprocessableEntity {
+ return &UpdatePaymentRequestStatusUnprocessableEntity{}
+}
+
+/*
+UpdatePaymentRequestStatusUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type UpdatePaymentRequestStatusUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this update payment request status unprocessable entity response has a 2xx status code
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status unprocessable entity response has a 3xx status code
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status unprocessable entity response has a 4xx status code
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this update payment request status unprocessable entity response has a 5xx status code
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this update payment request status unprocessable entity response a status code equal to that given
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the update payment request status unprocessable entity response
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewUpdatePaymentRequestStatusInternalServerError creates a UpdatePaymentRequestStatusInternalServerError with default headers values
+func NewUpdatePaymentRequestStatusInternalServerError() *UpdatePaymentRequestStatusInternalServerError {
+ return &UpdatePaymentRequestStatusInternalServerError{}
+}
+
+/*
+UpdatePaymentRequestStatusInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type UpdatePaymentRequestStatusInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this update payment request status internal server error response has a 2xx status code
+func (o *UpdatePaymentRequestStatusInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this update payment request status internal server error response has a 3xx status code
+func (o *UpdatePaymentRequestStatusInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this update payment request status internal server error response has a 4xx status code
+func (o *UpdatePaymentRequestStatusInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this update payment request status internal server error response has a 5xx status code
+func (o *UpdatePaymentRequestStatusInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this update payment request status internal server error response a status code equal to that given
+func (o *UpdatePaymentRequestStatusInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the update payment request status internal server error response
+func (o *UpdatePaymentRequestStatusInternalServerError) Code() int {
+ return 500
+}
+
+func (o *UpdatePaymentRequestStatusInternalServerError) Error() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusInternalServerError) String() string {
+ return fmt.Sprintf("[PATCH /payment-requests/{paymentRequestID}/status][%d] updatePaymentRequestStatusInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *UpdatePaymentRequestStatusInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *UpdatePaymentRequestStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go b/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go
new file mode 100644
index 00000000000..9b4ee14ea55
--- /dev/null
+++ b/pkg/gen/supportclient/webhook/create_webhook_notification_parameters.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewCreateWebhookNotificationParams creates a new CreateWebhookNotificationParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewCreateWebhookNotificationParams() *CreateWebhookNotificationParams {
+ return &CreateWebhookNotificationParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewCreateWebhookNotificationParamsWithTimeout creates a new CreateWebhookNotificationParams object
+// with the ability to set a timeout on a request.
+func NewCreateWebhookNotificationParamsWithTimeout(timeout time.Duration) *CreateWebhookNotificationParams {
+ return &CreateWebhookNotificationParams{
+ timeout: timeout,
+ }
+}
+
+// NewCreateWebhookNotificationParamsWithContext creates a new CreateWebhookNotificationParams object
+// with the ability to set a context for a request.
+func NewCreateWebhookNotificationParamsWithContext(ctx context.Context) *CreateWebhookNotificationParams {
+ return &CreateWebhookNotificationParams{
+ Context: ctx,
+ }
+}
+
+// NewCreateWebhookNotificationParamsWithHTTPClient creates a new CreateWebhookNotificationParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewCreateWebhookNotificationParamsWithHTTPClient(client *http.Client) *CreateWebhookNotificationParams {
+ return &CreateWebhookNotificationParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+CreateWebhookNotificationParams contains all the parameters to send to the API endpoint
+
+ for the create webhook notification operation.
+
+ Typically these are written to a http.Request.
+*/
+type CreateWebhookNotificationParams struct {
+
+ /* Body.
+
+ The notification sent by webhook-client.
+ */
+ Body *supportmessages.WebhookNotification
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the create webhook notification params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateWebhookNotificationParams) WithDefaults() *CreateWebhookNotificationParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the create webhook notification params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *CreateWebhookNotificationParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the create webhook notification params
+func (o *CreateWebhookNotificationParams) WithTimeout(timeout time.Duration) *CreateWebhookNotificationParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the create webhook notification params
+func (o *CreateWebhookNotificationParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the create webhook notification params
+func (o *CreateWebhookNotificationParams) WithContext(ctx context.Context) *CreateWebhookNotificationParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the create webhook notification params
+func (o *CreateWebhookNotificationParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the create webhook notification params
+func (o *CreateWebhookNotificationParams) WithHTTPClient(client *http.Client) *CreateWebhookNotificationParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the create webhook notification params
+func (o *CreateWebhookNotificationParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the create webhook notification params
+func (o *CreateWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *CreateWebhookNotificationParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the create webhook notification params
+func (o *CreateWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *CreateWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go b/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go
new file mode 100644
index 00000000000..c12b9427076
--- /dev/null
+++ b/pkg/gen/supportclient/webhook/create_webhook_notification_responses.go
@@ -0,0 +1,251 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// CreateWebhookNotificationReader is a Reader for the CreateWebhookNotification structure.
+type CreateWebhookNotificationReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *CreateWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 201:
+ result := NewCreateWebhookNotificationCreated()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 422:
+ result := NewCreateWebhookNotificationUnprocessableEntity()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewCreateWebhookNotificationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /webhook-notifications] createWebhookNotification", response, response.Code())
+ }
+}
+
+// NewCreateWebhookNotificationCreated creates a CreateWebhookNotificationCreated with default headers values
+func NewCreateWebhookNotificationCreated() *CreateWebhookNotificationCreated {
+ return &CreateWebhookNotificationCreated{}
+}
+
+/*
+CreateWebhookNotificationCreated describes a response with status code 201, with default header values.
+
+Successful creation
+*/
+type CreateWebhookNotificationCreated struct {
+ Payload *supportmessages.WebhookNotification
+}
+
+// IsSuccess returns true when this create webhook notification created response has a 2xx status code
+func (o *CreateWebhookNotificationCreated) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this create webhook notification created response has a 3xx status code
+func (o *CreateWebhookNotificationCreated) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create webhook notification created response has a 4xx status code
+func (o *CreateWebhookNotificationCreated) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create webhook notification created response has a 5xx status code
+func (o *CreateWebhookNotificationCreated) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create webhook notification created response a status code equal to that given
+func (o *CreateWebhookNotificationCreated) IsCode(code int) bool {
+ return code == 201
+}
+
+// Code gets the status code for the create webhook notification created response
+func (o *CreateWebhookNotificationCreated) Code() int {
+ return 201
+}
+
+func (o *CreateWebhookNotificationCreated) Error() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationCreated %+v", 201, o.Payload)
+}
+
+func (o *CreateWebhookNotificationCreated) String() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationCreated %+v", 201, o.Payload)
+}
+
+func (o *CreateWebhookNotificationCreated) GetPayload() *supportmessages.WebhookNotification {
+ return o.Payload
+}
+
+func (o *CreateWebhookNotificationCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.WebhookNotification)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateWebhookNotificationUnprocessableEntity creates a CreateWebhookNotificationUnprocessableEntity with default headers values
+func NewCreateWebhookNotificationUnprocessableEntity() *CreateWebhookNotificationUnprocessableEntity {
+ return &CreateWebhookNotificationUnprocessableEntity{}
+}
+
+/*
+CreateWebhookNotificationUnprocessableEntity describes a response with status code 422, with default header values.
+
+The payload was unprocessable.
+*/
+type CreateWebhookNotificationUnprocessableEntity struct {
+ Payload *supportmessages.ValidationError
+}
+
+// IsSuccess returns true when this create webhook notification unprocessable entity response has a 2xx status code
+func (o *CreateWebhookNotificationUnprocessableEntity) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create webhook notification unprocessable entity response has a 3xx status code
+func (o *CreateWebhookNotificationUnprocessableEntity) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create webhook notification unprocessable entity response has a 4xx status code
+func (o *CreateWebhookNotificationUnprocessableEntity) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this create webhook notification unprocessable entity response has a 5xx status code
+func (o *CreateWebhookNotificationUnprocessableEntity) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this create webhook notification unprocessable entity response a status code equal to that given
+func (o *CreateWebhookNotificationUnprocessableEntity) IsCode(code int) bool {
+ return code == 422
+}
+
+// Code gets the status code for the create webhook notification unprocessable entity response
+func (o *CreateWebhookNotificationUnprocessableEntity) Code() int {
+ return 422
+}
+
+func (o *CreateWebhookNotificationUnprocessableEntity) Error() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *CreateWebhookNotificationUnprocessableEntity) String() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationUnprocessableEntity %+v", 422, o.Payload)
+}
+
+func (o *CreateWebhookNotificationUnprocessableEntity) GetPayload() *supportmessages.ValidationError {
+ return o.Payload
+}
+
+func (o *CreateWebhookNotificationUnprocessableEntity) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ValidationError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewCreateWebhookNotificationInternalServerError creates a CreateWebhookNotificationInternalServerError with default headers values
+func NewCreateWebhookNotificationInternalServerError() *CreateWebhookNotificationInternalServerError {
+ return &CreateWebhookNotificationInternalServerError{}
+}
+
+/*
+CreateWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type CreateWebhookNotificationInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this create webhook notification internal server error response has a 2xx status code
+func (o *CreateWebhookNotificationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this create webhook notification internal server error response has a 3xx status code
+func (o *CreateWebhookNotificationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this create webhook notification internal server error response has a 4xx status code
+func (o *CreateWebhookNotificationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this create webhook notification internal server error response has a 5xx status code
+func (o *CreateWebhookNotificationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this create webhook notification internal server error response a status code equal to that given
+func (o *CreateWebhookNotificationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the create webhook notification internal server error response
+func (o *CreateWebhookNotificationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *CreateWebhookNotificationInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateWebhookNotificationInternalServerError) String() string {
+ return fmt.Sprintf("[POST /webhook-notifications][%d] createWebhookNotificationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *CreateWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *CreateWebhookNotificationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go b/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go
new file mode 100644
index 00000000000..f42c1ff0445
--- /dev/null
+++ b/pkg/gen/supportclient/webhook/receive_webhook_notification_parameters.go
@@ -0,0 +1,153 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "net/http"
+ "time"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/runtime"
+ cr "github.com/go-openapi/runtime/client"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// NewReceiveWebhookNotificationParams creates a new ReceiveWebhookNotificationParams object,
+// with the default timeout for this client.
+//
+// Default values are not hydrated, since defaults are normally applied by the API server side.
+//
+// To enforce default values in parameter, use SetDefaults or WithDefaults.
+func NewReceiveWebhookNotificationParams() *ReceiveWebhookNotificationParams {
+ return &ReceiveWebhookNotificationParams{
+ timeout: cr.DefaultTimeout,
+ }
+}
+
+// NewReceiveWebhookNotificationParamsWithTimeout creates a new ReceiveWebhookNotificationParams object
+// with the ability to set a timeout on a request.
+func NewReceiveWebhookNotificationParamsWithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams {
+ return &ReceiveWebhookNotificationParams{
+ timeout: timeout,
+ }
+}
+
+// NewReceiveWebhookNotificationParamsWithContext creates a new ReceiveWebhookNotificationParams object
+// with the ability to set a context for a request.
+func NewReceiveWebhookNotificationParamsWithContext(ctx context.Context) *ReceiveWebhookNotificationParams {
+ return &ReceiveWebhookNotificationParams{
+ Context: ctx,
+ }
+}
+
+// NewReceiveWebhookNotificationParamsWithHTTPClient creates a new ReceiveWebhookNotificationParams object
+// with the ability to set a custom HTTPClient for a request.
+func NewReceiveWebhookNotificationParamsWithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams {
+ return &ReceiveWebhookNotificationParams{
+ HTTPClient: client,
+ }
+}
+
+/*
+ReceiveWebhookNotificationParams contains all the parameters to send to the API endpoint
+
+ for the receive webhook notification operation.
+
+ Typically these are written to a http.Request.
+*/
+type ReceiveWebhookNotificationParams struct {
+
+ /* Body.
+
+ The webhook notification being sent
+ */
+ Body *supportmessages.WebhookNotification
+
+ timeout time.Duration
+ Context context.Context
+ HTTPClient *http.Client
+}
+
+// WithDefaults hydrates default values in the receive webhook notification params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ReceiveWebhookNotificationParams) WithDefaults() *ReceiveWebhookNotificationParams {
+ o.SetDefaults()
+ return o
+}
+
+// SetDefaults hydrates default values in the receive webhook notification params (not the query body).
+//
+// All values with no default are reset to their zero value.
+func (o *ReceiveWebhookNotificationParams) SetDefaults() {
+ // no default values defined for this parameter
+}
+
+// WithTimeout adds the timeout to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) WithTimeout(timeout time.Duration) *ReceiveWebhookNotificationParams {
+ o.SetTimeout(timeout)
+ return o
+}
+
+// SetTimeout adds the timeout to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) SetTimeout(timeout time.Duration) {
+ o.timeout = timeout
+}
+
+// WithContext adds the context to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) WithContext(ctx context.Context) *ReceiveWebhookNotificationParams {
+ o.SetContext(ctx)
+ return o
+}
+
+// SetContext adds the context to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) SetContext(ctx context.Context) {
+ o.Context = ctx
+}
+
+// WithHTTPClient adds the HTTPClient to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) WithHTTPClient(client *http.Client) *ReceiveWebhookNotificationParams {
+ o.SetHTTPClient(client)
+ return o
+}
+
+// SetHTTPClient adds the HTTPClient to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) SetHTTPClient(client *http.Client) {
+ o.HTTPClient = client
+}
+
+// WithBody adds the body to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) WithBody(body *supportmessages.WebhookNotification) *ReceiveWebhookNotificationParams {
+ o.SetBody(body)
+ return o
+}
+
+// SetBody adds the body to the receive webhook notification params
+func (o *ReceiveWebhookNotificationParams) SetBody(body *supportmessages.WebhookNotification) {
+ o.Body = body
+}
+
+// WriteToRequest writes these params to a swagger request
+func (o *ReceiveWebhookNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
+
+ if err := r.SetTimeout(o.timeout); err != nil {
+ return err
+ }
+ var res []error
+ if o.Body != nil {
+ if err := r.SetBodyParam(o.Body); err != nil {
+ return err
+ }
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go b/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go
new file mode 100644
index 00000000000..ad7f5cadcb3
--- /dev/null
+++ b/pkg/gen/supportclient/webhook/receive_webhook_notification_responses.go
@@ -0,0 +1,399 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+ "io"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+
+ "github.com/transcom/mymove/pkg/gen/supportmessages"
+)
+
+// ReceiveWebhookNotificationReader is a Reader for the ReceiveWebhookNotification structure.
+type ReceiveWebhookNotificationReader struct {
+ formats strfmt.Registry
+}
+
+// ReadResponse reads a server response into the received o.
+func (o *ReceiveWebhookNotificationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
+ switch response.Code() {
+ case 200:
+ result := NewReceiveWebhookNotificationOK()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return result, nil
+ case 400:
+ result := NewReceiveWebhookNotificationBadRequest()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 401:
+ result := NewReceiveWebhookNotificationUnauthorized()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 403:
+ result := NewReceiveWebhookNotificationForbidden()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ case 500:
+ result := NewReceiveWebhookNotificationInternalServerError()
+ if err := result.readResponse(response, consumer, o.formats); err != nil {
+ return nil, err
+ }
+ return nil, result
+ default:
+ return nil, runtime.NewAPIError("[POST /webhook-notify] receiveWebhookNotification", response, response.Code())
+ }
+}
+
+// NewReceiveWebhookNotificationOK creates a ReceiveWebhookNotificationOK with default headers values
+func NewReceiveWebhookNotificationOK() *ReceiveWebhookNotificationOK {
+ return &ReceiveWebhookNotificationOK{}
+}
+
+/*
+ReceiveWebhookNotificationOK describes a response with status code 200, with default header values.
+
+Received notification
+*/
+type ReceiveWebhookNotificationOK struct {
+ Payload *supportmessages.WebhookNotification
+}
+
+// IsSuccess returns true when this receive webhook notification o k response has a 2xx status code
+func (o *ReceiveWebhookNotificationOK) IsSuccess() bool {
+ return true
+}
+
+// IsRedirect returns true when this receive webhook notification o k response has a 3xx status code
+func (o *ReceiveWebhookNotificationOK) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this receive webhook notification o k response has a 4xx status code
+func (o *ReceiveWebhookNotificationOK) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this receive webhook notification o k response has a 5xx status code
+func (o *ReceiveWebhookNotificationOK) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this receive webhook notification o k response a status code equal to that given
+func (o *ReceiveWebhookNotificationOK) IsCode(code int) bool {
+ return code == 200
+}
+
+// Code gets the status code for the receive webhook notification o k response
+func (o *ReceiveWebhookNotificationOK) Code() int {
+ return 200
+}
+
+func (o *ReceiveWebhookNotificationOK) Error() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationOK %+v", 200, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationOK) String() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationOK %+v", 200, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationOK) GetPayload() *supportmessages.WebhookNotification {
+ return o.Payload
+}
+
+func (o *ReceiveWebhookNotificationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.WebhookNotification)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReceiveWebhookNotificationBadRequest creates a ReceiveWebhookNotificationBadRequest with default headers values
+func NewReceiveWebhookNotificationBadRequest() *ReceiveWebhookNotificationBadRequest {
+ return &ReceiveWebhookNotificationBadRequest{}
+}
+
+/*
+ReceiveWebhookNotificationBadRequest describes a response with status code 400, with default header values.
+
+The request payload is invalid.
+*/
+type ReceiveWebhookNotificationBadRequest struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this receive webhook notification bad request response has a 2xx status code
+func (o *ReceiveWebhookNotificationBadRequest) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this receive webhook notification bad request response has a 3xx status code
+func (o *ReceiveWebhookNotificationBadRequest) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this receive webhook notification bad request response has a 4xx status code
+func (o *ReceiveWebhookNotificationBadRequest) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this receive webhook notification bad request response has a 5xx status code
+func (o *ReceiveWebhookNotificationBadRequest) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this receive webhook notification bad request response a status code equal to that given
+func (o *ReceiveWebhookNotificationBadRequest) IsCode(code int) bool {
+ return code == 400
+}
+
+// Code gets the status code for the receive webhook notification bad request response
+func (o *ReceiveWebhookNotificationBadRequest) Code() int {
+ return 400
+}
+
+func (o *ReceiveWebhookNotificationBadRequest) Error() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationBadRequest) String() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationBadRequest %+v", 400, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationBadRequest) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ReceiveWebhookNotificationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReceiveWebhookNotificationUnauthorized creates a ReceiveWebhookNotificationUnauthorized with default headers values
+func NewReceiveWebhookNotificationUnauthorized() *ReceiveWebhookNotificationUnauthorized {
+ return &ReceiveWebhookNotificationUnauthorized{}
+}
+
+/*
+ReceiveWebhookNotificationUnauthorized describes a response with status code 401, with default header values.
+
+The request was denied.
+*/
+type ReceiveWebhookNotificationUnauthorized struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this receive webhook notification unauthorized response has a 2xx status code
+func (o *ReceiveWebhookNotificationUnauthorized) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this receive webhook notification unauthorized response has a 3xx status code
+func (o *ReceiveWebhookNotificationUnauthorized) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this receive webhook notification unauthorized response has a 4xx status code
+func (o *ReceiveWebhookNotificationUnauthorized) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this receive webhook notification unauthorized response has a 5xx status code
+func (o *ReceiveWebhookNotificationUnauthorized) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this receive webhook notification unauthorized response a status code equal to that given
+func (o *ReceiveWebhookNotificationUnauthorized) IsCode(code int) bool {
+ return code == 401
+}
+
+// Code gets the status code for the receive webhook notification unauthorized response
+func (o *ReceiveWebhookNotificationUnauthorized) Code() int {
+ return 401
+}
+
+func (o *ReceiveWebhookNotificationUnauthorized) Error() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationUnauthorized) String() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationUnauthorized %+v", 401, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationUnauthorized) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ReceiveWebhookNotificationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReceiveWebhookNotificationForbidden creates a ReceiveWebhookNotificationForbidden with default headers values
+func NewReceiveWebhookNotificationForbidden() *ReceiveWebhookNotificationForbidden {
+ return &ReceiveWebhookNotificationForbidden{}
+}
+
+/*
+ReceiveWebhookNotificationForbidden describes a response with status code 403, with default header values.
+
+The request was denied.
+*/
+type ReceiveWebhookNotificationForbidden struct {
+ Payload *supportmessages.ClientError
+}
+
+// IsSuccess returns true when this receive webhook notification forbidden response has a 2xx status code
+func (o *ReceiveWebhookNotificationForbidden) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this receive webhook notification forbidden response has a 3xx status code
+func (o *ReceiveWebhookNotificationForbidden) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this receive webhook notification forbidden response has a 4xx status code
+func (o *ReceiveWebhookNotificationForbidden) IsClientError() bool {
+ return true
+}
+
+// IsServerError returns true when this receive webhook notification forbidden response has a 5xx status code
+func (o *ReceiveWebhookNotificationForbidden) IsServerError() bool {
+ return false
+}
+
+// IsCode returns true when this receive webhook notification forbidden response a status code equal to that given
+func (o *ReceiveWebhookNotificationForbidden) IsCode(code int) bool {
+ return code == 403
+}
+
+// Code gets the status code for the receive webhook notification forbidden response
+func (o *ReceiveWebhookNotificationForbidden) Code() int {
+ return 403
+}
+
+func (o *ReceiveWebhookNotificationForbidden) Error() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationForbidden %+v", 403, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationForbidden) String() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationForbidden %+v", 403, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationForbidden) GetPayload() *supportmessages.ClientError {
+ return o.Payload
+}
+
+func (o *ReceiveWebhookNotificationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.ClientError)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
+
+// NewReceiveWebhookNotificationInternalServerError creates a ReceiveWebhookNotificationInternalServerError with default headers values
+func NewReceiveWebhookNotificationInternalServerError() *ReceiveWebhookNotificationInternalServerError {
+ return &ReceiveWebhookNotificationInternalServerError{}
+}
+
+/*
+ReceiveWebhookNotificationInternalServerError describes a response with status code 500, with default header values.
+
+A server error occurred.
+*/
+type ReceiveWebhookNotificationInternalServerError struct {
+ Payload *supportmessages.Error
+}
+
+// IsSuccess returns true when this receive webhook notification internal server error response has a 2xx status code
+func (o *ReceiveWebhookNotificationInternalServerError) IsSuccess() bool {
+ return false
+}
+
+// IsRedirect returns true when this receive webhook notification internal server error response has a 3xx status code
+func (o *ReceiveWebhookNotificationInternalServerError) IsRedirect() bool {
+ return false
+}
+
+// IsClientError returns true when this receive webhook notification internal server error response has a 4xx status code
+func (o *ReceiveWebhookNotificationInternalServerError) IsClientError() bool {
+ return false
+}
+
+// IsServerError returns true when this receive webhook notification internal server error response has a 5xx status code
+func (o *ReceiveWebhookNotificationInternalServerError) IsServerError() bool {
+ return true
+}
+
+// IsCode returns true when this receive webhook notification internal server error response a status code equal to that given
+func (o *ReceiveWebhookNotificationInternalServerError) IsCode(code int) bool {
+ return code == 500
+}
+
+// Code gets the status code for the receive webhook notification internal server error response
+func (o *ReceiveWebhookNotificationInternalServerError) Code() int {
+ return 500
+}
+
+func (o *ReceiveWebhookNotificationInternalServerError) Error() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationInternalServerError) String() string {
+ return fmt.Sprintf("[POST /webhook-notify][%d] receiveWebhookNotificationInternalServerError %+v", 500, o.Payload)
+}
+
+func (o *ReceiveWebhookNotificationInternalServerError) GetPayload() *supportmessages.Error {
+ return o.Payload
+}
+
+func (o *ReceiveWebhookNotificationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
+
+ o.Payload = new(supportmessages.Error)
+
+ // response payload
+ if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
+ return err
+ }
+
+ return nil
+}
diff --git a/pkg/gen/supportclient/webhook/webhook_client.go b/pkg/gen/supportclient/webhook/webhook_client.go
new file mode 100644
index 00000000000..0c645fb4d8b
--- /dev/null
+++ b/pkg/gen/supportclient/webhook/webhook_client.go
@@ -0,0 +1,123 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package webhook
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "fmt"
+
+ "github.com/go-openapi/runtime"
+ "github.com/go-openapi/strfmt"
+)
+
+// New creates a new webhook API client.
+func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
+ return &Client{transport: transport, formats: formats}
+}
+
+/*
+Client for webhook API
+*/
+type Client struct {
+ transport runtime.ClientTransport
+ formats strfmt.Registry
+}
+
+// ClientOption is the option for Client methods
+type ClientOption func(*runtime.ClientOperation)
+
+// ClientService is the interface for Client methods
+type ClientService interface {
+ CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error)
+
+ ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error)
+
+ SetTransport(transport runtime.ClientTransport)
+}
+
+/*
+CreateWebhookNotification tests endpoint for creating webhook notifications
+
+This endpoint creates a webhook notification in the database. If the webhook client is running, it may send the notification soon after creation.
+*/
+func (a *Client) CreateWebhookNotification(params *CreateWebhookNotificationParams, opts ...ClientOption) (*CreateWebhookNotificationCreated, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewCreateWebhookNotificationParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "createWebhookNotification",
+ Method: "POST",
+ PathPattern: "/webhook-notifications",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &CreateWebhookNotificationReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*CreateWebhookNotificationCreated)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for createWebhookNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+/*
+ReceiveWebhookNotification tests endpoint for receiving messages from our own webhook client
+
+This endpoint receives a notification that matches the webhook notification model. This is a test endpoint that represents a receiving server. In production, the Prime will set up a receiving endpoint. In testing, this server accepts notifications at this endpoint and simply responds with success and logs them. The `webhook-client` is responsible for retrieving messages from the webhook_notifications table and sending them to the Prime (this endpoint in our testing case) via an mTLS connection.
+*/
+func (a *Client) ReceiveWebhookNotification(params *ReceiveWebhookNotificationParams, opts ...ClientOption) (*ReceiveWebhookNotificationOK, error) {
+ // TODO: Validate the params before sending
+ if params == nil {
+ params = NewReceiveWebhookNotificationParams()
+ }
+ op := &runtime.ClientOperation{
+ ID: "receiveWebhookNotification",
+ Method: "POST",
+ PathPattern: "/webhook-notify",
+ ProducesMediaTypes: []string{"application/json"},
+ ConsumesMediaTypes: []string{"application/json"},
+ Schemes: []string{"http"},
+ Params: params,
+ Reader: &ReceiveWebhookNotificationReader{formats: a.formats},
+ Context: params.Context,
+ Client: params.HTTPClient,
+ }
+ for _, opt := range opts {
+ opt(op)
+ }
+
+ result, err := a.transport.Submit(op)
+ if err != nil {
+ return nil, err
+ }
+ success, ok := result.(*ReceiveWebhookNotificationOK)
+ if ok {
+ return success, nil
+ }
+ // unexpected success response
+ // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue
+ msg := fmt.Sprintf("unexpected success response for receiveWebhookNotification: API contract not enforced by server. Client expected to get an error, but got: %T", result)
+ panic(msg)
+}
+
+// SetTransport changes the transport on the client
+func (a *Client) SetTransport(transport runtime.ClientTransport) {
+ a.transport = transport
+}
diff --git a/pkg/gen/supportmessages/orders_type_detail.go b/pkg/gen/supportmessages/orders_type_detail.go
new file mode 100644
index 00000000000..55d6d1e2f10
--- /dev/null
+++ b/pkg/gen/supportmessages/orders_type_detail.go
@@ -0,0 +1,93 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// OrdersTypeDetail Orders type detail
+//
+// swagger:model OrdersTypeDetail
+type OrdersTypeDetail string
+
+func NewOrdersTypeDetail(value OrdersTypeDetail) *OrdersTypeDetail {
+ return &value
+}
+
+// Pointer returns a pointer to a freshly-allocated OrdersTypeDetail.
+func (m OrdersTypeDetail) Pointer() *OrdersTypeDetail {
+ return &m
+}
+
+const (
+
+ // OrdersTypeDetailHHGPERMITTED captures enum value "HHG_PERMITTED"
+ OrdersTypeDetailHHGPERMITTED OrdersTypeDetail = "HHG_PERMITTED"
+
+ // OrdersTypeDetailPCSTDY captures enum value "PCS_TDY"
+ OrdersTypeDetailPCSTDY OrdersTypeDetail = "PCS_TDY"
+
+ // OrdersTypeDetailHHGRESTRICTEDPROHIBITED captures enum value "HHG_RESTRICTED_PROHIBITED"
+ OrdersTypeDetailHHGRESTRICTEDPROHIBITED OrdersTypeDetail = "HHG_RESTRICTED_PROHIBITED"
+
+ // OrdersTypeDetailHHGRESTRICTEDAREA captures enum value "HHG_RESTRICTED_AREA"
+ OrdersTypeDetailHHGRESTRICTEDAREA OrdersTypeDetail = "HHG_RESTRICTED_AREA"
+
+ // OrdersTypeDetailINSTRUCTION20WEEKS captures enum value "INSTRUCTION_20_WEEKS"
+ OrdersTypeDetailINSTRUCTION20WEEKS OrdersTypeDetail = "INSTRUCTION_20_WEEKS"
+
+ // OrdersTypeDetailHHGPROHIBITED20WEEKS captures enum value "HHG_PROHIBITED_20_WEEKS"
+ OrdersTypeDetailHHGPROHIBITED20WEEKS OrdersTypeDetail = "HHG_PROHIBITED_20_WEEKS"
+
+ // OrdersTypeDetailDELAYEDAPPROVAL captures enum value "DELAYED_APPROVAL"
+ OrdersTypeDetailDELAYEDAPPROVAL OrdersTypeDetail = "DELAYED_APPROVAL"
+)
+
+// for schema
+var ordersTypeDetailEnum []interface{}
+
+func init() {
+ var res []OrdersTypeDetail
+ if err := json.Unmarshal([]byte(`["HHG_PERMITTED","PCS_TDY","HHG_RESTRICTED_PROHIBITED","HHG_RESTRICTED_AREA","INSTRUCTION_20_WEEKS","HHG_PROHIBITED_20_WEEKS","DELAYED_APPROVAL"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ ordersTypeDetailEnum = append(ordersTypeDetailEnum, v)
+ }
+}
+
+func (m OrdersTypeDetail) validateOrdersTypeDetailEnum(path, location string, value OrdersTypeDetail) error {
+ if err := validate.EnumCase(path, location, value, ordersTypeDetailEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Validate validates this orders type detail
+func (m OrdersTypeDetail) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // value enum
+ if err := m.validateOrdersTypeDetailEnum("", "body", m); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validates this orders type detail based on context it is used
+func (m OrdersTypeDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/pkg/gen/supportmessages/payment_request.go b/pkg/gen/supportmessages/payment_request.go
new file mode 100644
index 00000000000..b3bd5e62162
--- /dev/null
+++ b/pkg/gen/supportmessages/payment_request.go
@@ -0,0 +1,289 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PaymentRequest payment request
+//
+// swagger:model PaymentRequest
+type PaymentRequest struct {
+
+ // document package
+ DocumentPackage *ProofOfServicePackage `json:"documentPackage,omitempty"`
+
+ // e tag
+ // Read Only: true
+ ETag string `json:"eTag,omitempty"`
+
+ // id
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Read Only: true
+ // Format: uuid
+ ID strfmt.UUID `json:"id,omitempty"`
+
+ // is final
+ IsFinal *bool `json:"isFinal,omitempty"`
+
+ // move task order ID
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ MoveTaskOrderID strfmt.UUID `json:"moveTaskOrderID,omitempty"`
+
+ // payment request number
+ // Example: 1234-5678-1
+ // Read Only: true
+ PaymentRequestNumber string `json:"paymentRequestNumber,omitempty"`
+
+ // recalculation of payment request ID
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Read Only: true
+ // Format: uuid
+ RecalculationOfPaymentRequestID *strfmt.UUID `json:"recalculationOfPaymentRequestID,omitempty"`
+
+ // rejection reason
+ // Example: documentation was incomplete
+ RejectionReason *string `json:"rejectionReason,omitempty"`
+
+ // status
+ Status PaymentRequestStatus `json:"status,omitempty"`
+}
+
+// Validate validates this payment request
+func (m *PaymentRequest) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDocumentPackage(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMoveTaskOrderID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateRecalculationOfPaymentRequestID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PaymentRequest) validateDocumentPackage(formats strfmt.Registry) error {
+ if swag.IsZero(m.DocumentPackage) { // not required
+ return nil
+ }
+
+ if m.DocumentPackage != nil {
+ if err := m.DocumentPackage.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("documentPackage")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("documentPackage")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) validateID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) validateMoveTaskOrderID(formats strfmt.Registry) error {
+ if swag.IsZero(m.MoveTaskOrderID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("moveTaskOrderID", "body", "uuid", m.MoveTaskOrderID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) validateRecalculationOfPaymentRequestID(formats strfmt.Registry) error {
+ if swag.IsZero(m.RecalculationOfPaymentRequestID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("recalculationOfPaymentRequestID", "body", "uuid", m.RecalculationOfPaymentRequestID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this payment request based on the context it is used
+func (m *PaymentRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateDocumentPackage(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateETag(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidatePaymentRequestNumber(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateRecalculationOfPaymentRequestID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PaymentRequest) contextValidateDocumentPackage(ctx context.Context, formats strfmt.Registry) error {
+
+ if m.DocumentPackage != nil {
+
+ if swag.IsZero(m.DocumentPackage) { // not required
+ return nil
+ }
+
+ if err := m.DocumentPackage.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("documentPackage")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("documentPackage")
+ }
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) contextValidateETag(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "eTag", "body", string(m.ETag)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) contextValidatePaymentRequestNumber(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "paymentRequestNumber", "body", string(m.PaymentRequestNumber)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) contextValidateRecalculationOfPaymentRequestID(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "recalculationOfPaymentRequestID", "body", m.RecalculationOfPaymentRequestID); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PaymentRequest) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PaymentRequest) UnmarshalBinary(b []byte) error {
+ var res PaymentRequest
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/payment_request_e_d_i.go b/pkg/gen/supportmessages/payment_request_e_d_i.go
new file mode 100644
index 00000000000..c739c6d72d3
--- /dev/null
+++ b/pkg/gen/supportmessages/payment_request_e_d_i.go
@@ -0,0 +1,111 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// PaymentRequestEDI payment request e d i
+//
+// swagger:model PaymentRequestEDI
+type PaymentRequestEDI struct {
+
+ // edi
+ // Read Only: true
+ Edi string `json:"edi,omitempty"`
+
+ // id
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Read Only: true
+ // Format: uuid
+ ID strfmt.UUID `json:"id,omitempty"`
+}
+
+// Validate validates this payment request e d i
+func (m *PaymentRequestEDI) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PaymentRequestEDI) validateID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this payment request e d i based on the context it is used
+func (m *PaymentRequestEDI) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateEdi(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *PaymentRequestEDI) contextValidateEdi(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "edi", "body", string(m.Edi)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *PaymentRequestEDI) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *PaymentRequestEDI) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *PaymentRequestEDI) UnmarshalBinary(b []byte) error {
+ var res PaymentRequestEDI
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/payment_request_status.go b/pkg/gen/supportmessages/payment_request_status.go
new file mode 100644
index 00000000000..3fd718cfb10
--- /dev/null
+++ b/pkg/gen/supportmessages/payment_request_status.go
@@ -0,0 +1,96 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// PaymentRequestStatus Payment Request Status
+//
+// swagger:model PaymentRequestStatus
+type PaymentRequestStatus string
+
+func NewPaymentRequestStatus(value PaymentRequestStatus) *PaymentRequestStatus {
+ return &value
+}
+
+// Pointer returns a pointer to a freshly-allocated PaymentRequestStatus.
+func (m PaymentRequestStatus) Pointer() *PaymentRequestStatus {
+ return &m
+}
+
+const (
+
+ // PaymentRequestStatusPENDING captures enum value "PENDING"
+ PaymentRequestStatusPENDING PaymentRequestStatus = "PENDING"
+
+ // PaymentRequestStatusREVIEWED captures enum value "REVIEWED"
+ PaymentRequestStatusREVIEWED PaymentRequestStatus = "REVIEWED"
+
+ // PaymentRequestStatusREVIEWEDANDALLSERVICEITEMSREJECTED captures enum value "REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED"
+ PaymentRequestStatusREVIEWEDANDALLSERVICEITEMSREJECTED PaymentRequestStatus = "REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED"
+
+ // PaymentRequestStatusSENTTOGEX captures enum value "SENT_TO_GEX"
+ PaymentRequestStatusSENTTOGEX PaymentRequestStatus = "SENT_TO_GEX"
+
+ // PaymentRequestStatusTPPSRECEIVED captures enum value "TPPS_RECEIVED"
+ PaymentRequestStatusTPPSRECEIVED PaymentRequestStatus = "TPPS_RECEIVED"
+
+ // PaymentRequestStatusPAID captures enum value "PAID"
+ PaymentRequestStatusPAID PaymentRequestStatus = "PAID"
+
+ // PaymentRequestStatusEDIERROR captures enum value "EDI_ERROR"
+ PaymentRequestStatusEDIERROR PaymentRequestStatus = "EDI_ERROR"
+
+ // PaymentRequestStatusDEPRECATED captures enum value "DEPRECATED"
+ PaymentRequestStatusDEPRECATED PaymentRequestStatus = "DEPRECATED"
+)
+
+// for schema
+var paymentRequestStatusEnum []interface{}
+
+func init() {
+ var res []PaymentRequestStatus
+ if err := json.Unmarshal([]byte(`["PENDING","REVIEWED","REVIEWED_AND_ALL_SERVICE_ITEMS_REJECTED","SENT_TO_GEX","TPPS_RECEIVED","PAID","EDI_ERROR","DEPRECATED"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ paymentRequestStatusEnum = append(paymentRequestStatusEnum, v)
+ }
+}
+
+func (m PaymentRequestStatus) validatePaymentRequestStatusEnum(path, location string, value PaymentRequestStatus) error {
+ if err := validate.EnumCase(path, location, value, paymentRequestStatusEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Validate validates this payment request status
+func (m PaymentRequestStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // value enum
+ if err := m.validatePaymentRequestStatusEnum("", "body", m); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validates this payment request status based on context it is used
+func (m PaymentRequestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/pkg/gen/supportmessages/payment_requests.go b/pkg/gen/supportmessages/payment_requests.go
new file mode 100644
index 00000000000..c7802632d9a
--- /dev/null
+++ b/pkg/gen/supportmessages/payment_requests.go
@@ -0,0 +1,78 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// PaymentRequests payment requests
+//
+// swagger:model PaymentRequests
+type PaymentRequests []*PaymentRequest
+
+// Validate validates this payment requests
+func (m PaymentRequests) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ for i := 0; i < len(m); i++ {
+ if swag.IsZero(m[i]) { // not required
+ continue
+ }
+
+ if m[i] != nil {
+ if err := m[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName(strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName(strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validate this payment requests based on the context it is used
+func (m PaymentRequests) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ for i := 0; i < len(m); i++ {
+
+ if m[i] != nil {
+
+ if swag.IsZero(m[i]) { // not required
+ return nil
+ }
+
+ if err := m[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName(strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName(strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
diff --git a/pkg/gen/supportmessages/process_reviewed_payment_requests.go b/pkg/gen/supportmessages/process_reviewed_payment_requests.go
new file mode 100644
index 00000000000..b0f8b9b9ed0
--- /dev/null
+++ b/pkg/gen/supportmessages/process_reviewed_payment_requests.go
@@ -0,0 +1,180 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ProcessReviewedPaymentRequests process reviewed payment requests
+//
+// swagger:model ProcessReviewedPaymentRequests
+type ProcessReviewedPaymentRequests struct {
+
+ // delete from syncada
+ // Example: true
+ // Required: true
+ DeleteFromSyncada *bool `json:"deleteFromSyncada"`
+
+ // payment request ID
+ // Example: 1f2270c7-7166-40ae-981e-b200ebdf3054
+ // Format: uuid
+ PaymentRequestID strfmt.UUID `json:"paymentRequestID,omitempty"`
+
+ // read from syncada
+ // Example: true
+ // Required: true
+ ReadFromSyncada *bool `json:"readFromSyncada"`
+
+ // send to syncada
+ // Example: true
+ // Required: true
+ SendToSyncada *bool `json:"sendToSyncada"`
+
+ // status
+ Status PaymentRequestStatus `json:"status,omitempty"`
+}
+
+// Validate validates this process reviewed payment requests
+func (m *ProcessReviewedPaymentRequests) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateDeleteFromSyncada(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validatePaymentRequestID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateReadFromSyncada(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateSendToSyncada(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) validateDeleteFromSyncada(formats strfmt.Registry) error {
+
+ if err := validate.Required("deleteFromSyncada", "body", m.DeleteFromSyncada); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) validatePaymentRequestID(formats strfmt.Registry) error {
+ if swag.IsZero(m.PaymentRequestID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("paymentRequestID", "body", "uuid", m.PaymentRequestID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) validateReadFromSyncada(formats strfmt.Registry) error {
+
+ if err := validate.Required("readFromSyncada", "body", m.ReadFromSyncada); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) validateSendToSyncada(formats strfmt.Registry) error {
+
+ if err := validate.Required("sendToSyncada", "body", m.SendToSyncada); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this process reviewed payment requests based on the context it is used
+func (m *ProcessReviewedPaymentRequests) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ProcessReviewedPaymentRequests) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ProcessReviewedPaymentRequests) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ProcessReviewedPaymentRequests) UnmarshalBinary(b []byte) error {
+ var res ProcessReviewedPaymentRequests
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/proof_of_service_package.go b/pkg/gen/supportmessages/proof_of_service_package.go
new file mode 100644
index 00000000000..c9bd714efea
--- /dev/null
+++ b/pkg/gen/supportmessages/proof_of_service_package.go
@@ -0,0 +1,143 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "strconv"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ProofOfServicePackage proof of service package
+//
+// swagger:model ProofOfServicePackage
+type ProofOfServicePackage struct {
+
+ // id
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ ID strfmt.UUID `json:"id,omitempty"`
+
+ // uploads
+ Uploads []*UploadWithOmissions `json:"uploads"`
+}
+
+// Validate validates this proof of service package
+func (m *ProofOfServicePackage) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUploads(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ProofOfServicePackage) validateID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *ProofOfServicePackage) validateUploads(formats strfmt.Registry) error {
+ if swag.IsZero(m.Uploads) { // not required
+ return nil
+ }
+
+ for i := 0; i < len(m.Uploads); i++ {
+ if swag.IsZero(m.Uploads[i]) { // not required
+ continue
+ }
+
+ if m.Uploads[i] != nil {
+ if err := m.Uploads[i].Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("uploads" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("uploads" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// ContextValidate validate this proof of service package based on the context it is used
+func (m *ProofOfServicePackage) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateUploads(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ProofOfServicePackage) contextValidateUploads(ctx context.Context, formats strfmt.Registry) error {
+
+ for i := 0; i < len(m.Uploads); i++ {
+
+ if m.Uploads[i] != nil {
+
+ if swag.IsZero(m.Uploads[i]) { // not required
+ return nil
+ }
+
+ if err := m.Uploads[i].ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("uploads" + "." + strconv.Itoa(i))
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("uploads" + "." + strconv.Itoa(i))
+ }
+ return err
+ }
+ }
+
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ProofOfServicePackage) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ProofOfServicePackage) UnmarshalBinary(b []byte) error {
+ var res ProofOfServicePackage
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/rank.go b/pkg/gen/supportmessages/rank.go
new file mode 100644
index 00000000000..f42c0aec72e
--- /dev/null
+++ b/pkg/gen/supportmessages/rank.go
@@ -0,0 +1,159 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// Rank Rank of the service member, must match specific list of available ranks.
+//
+// swagger:model Rank
+type Rank string
+
+func NewRank(value Rank) *Rank {
+ return &value
+}
+
+// Pointer returns a pointer to a freshly-allocated Rank.
+func (m Rank) Pointer() *Rank {
+ return &m
+}
+
+const (
+
+ // RankE1 captures enum value "E_1"
+ RankE1 Rank = "E_1"
+
+ // RankE2 captures enum value "E_2"
+ RankE2 Rank = "E_2"
+
+ // RankE3 captures enum value "E_3"
+ RankE3 Rank = "E_3"
+
+ // RankE4 captures enum value "E_4"
+ RankE4 Rank = "E_4"
+
+ // RankE5 captures enum value "E_5"
+ RankE5 Rank = "E_5"
+
+ // RankE6 captures enum value "E_6"
+ RankE6 Rank = "E_6"
+
+ // RankE7 captures enum value "E_7"
+ RankE7 Rank = "E_7"
+
+ // RankE8 captures enum value "E_8"
+ RankE8 Rank = "E_8"
+
+ // RankE9 captures enum value "E_9"
+ RankE9 Rank = "E_9"
+
+ // RankE9SPECIALSENIORENLISTED captures enum value "E_9_SPECIAL_SENIOR_ENLISTED"
+ RankE9SPECIALSENIORENLISTED Rank = "E_9_SPECIAL_SENIOR_ENLISTED"
+
+ // RankO1ACADEMYGRADUATE captures enum value "O_1_ACADEMY_GRADUATE"
+ RankO1ACADEMYGRADUATE Rank = "O_1_ACADEMY_GRADUATE"
+
+ // RankO2 captures enum value "O_2"
+ RankO2 Rank = "O_2"
+
+ // RankO3 captures enum value "O_3"
+ RankO3 Rank = "O_3"
+
+ // RankO4 captures enum value "O_4"
+ RankO4 Rank = "O_4"
+
+ // RankO5 captures enum value "O_5"
+ RankO5 Rank = "O_5"
+
+ // RankO6 captures enum value "O_6"
+ RankO6 Rank = "O_6"
+
+ // RankO7 captures enum value "O_7"
+ RankO7 Rank = "O_7"
+
+ // RankO8 captures enum value "O_8"
+ RankO8 Rank = "O_8"
+
+ // RankO9 captures enum value "O_9"
+ RankO9 Rank = "O_9"
+
+ // RankO10 captures enum value "O_10"
+ RankO10 Rank = "O_10"
+
+ // RankW1 captures enum value "W_1"
+ RankW1 Rank = "W_1"
+
+ // RankW2 captures enum value "W_2"
+ RankW2 Rank = "W_2"
+
+ // RankW3 captures enum value "W_3"
+ RankW3 Rank = "W_3"
+
+ // RankW4 captures enum value "W_4"
+ RankW4 Rank = "W_4"
+
+ // RankW5 captures enum value "W_5"
+ RankW5 Rank = "W_5"
+
+ // RankAVIATIONCADET captures enum value "AVIATION_CADET"
+ RankAVIATIONCADET Rank = "AVIATION_CADET"
+
+ // RankCIVILIANEMPLOYEE captures enum value "CIVILIAN_EMPLOYEE"
+ RankCIVILIANEMPLOYEE Rank = "CIVILIAN_EMPLOYEE"
+
+ // RankACADEMYCADET captures enum value "ACADEMY_CADET"
+ RankACADEMYCADET Rank = "ACADEMY_CADET"
+
+ // RankMIDSHIPMAN captures enum value "MIDSHIPMAN"
+ RankMIDSHIPMAN Rank = "MIDSHIPMAN"
+)
+
+// for schema
+var rankEnum []interface{}
+
+func init() {
+ var res []Rank
+ if err := json.Unmarshal([]byte(`["E_1","E_2","E_3","E_4","E_5","E_6","E_7","E_8","E_9","E_9_SPECIAL_SENIOR_ENLISTED","O_1_ACADEMY_GRADUATE","O_2","O_3","O_4","O_5","O_6","O_7","O_8","O_9","O_10","W_1","W_2","W_3","W_4","W_5","AVIATION_CADET","CIVILIAN_EMPLOYEE","ACADEMY_CADET","MIDSHIPMAN"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ rankEnum = append(rankEnum, v)
+ }
+}
+
+func (m Rank) validateRankEnum(path, location string, value Rank) error {
+ if err := validate.EnumCase(path, location, value, rankEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Validate validates this rank
+func (m Rank) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // value enum
+ if err := m.validateRankEnum("", "body", m); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validates this rank based on context it is used
+func (m Rank) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/pkg/gen/supportmessages/re_service_code.go b/pkg/gen/supportmessages/re_service_code.go
new file mode 100644
index 00000000000..ae293c133d2
--- /dev/null
+++ b/pkg/gen/supportmessages/re_service_code.go
@@ -0,0 +1,219 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// ReServiceCode This is the full list of service items that can be found on a shipment. Not all service items
+// may be requested by the Prime, but may be returned in a response.
+//
+// Documentation of all the service items will be provided.
+//
+// swagger:model ReServiceCode
+type ReServiceCode string
+
+func NewReServiceCode(value ReServiceCode) *ReServiceCode {
+ return &value
+}
+
+// Pointer returns a pointer to a freshly-allocated ReServiceCode.
+func (m ReServiceCode) Pointer() *ReServiceCode {
+ return &m
+}
+
+const (
+
+ // ReServiceCodeCS captures enum value "CS"
+ ReServiceCodeCS ReServiceCode = "CS"
+
+ // ReServiceCodeDBHF captures enum value "DBHF"
+ ReServiceCodeDBHF ReServiceCode = "DBHF"
+
+ // ReServiceCodeDBTF captures enum value "DBTF"
+ ReServiceCodeDBTF ReServiceCode = "DBTF"
+
+ // ReServiceCodeDCRT captures enum value "DCRT"
+ ReServiceCodeDCRT ReServiceCode = "DCRT"
+
+ // ReServiceCodeDDASIT captures enum value "DDASIT"
+ ReServiceCodeDDASIT ReServiceCode = "DDASIT"
+
+ // ReServiceCodeDDDSIT captures enum value "DDDSIT"
+ ReServiceCodeDDDSIT ReServiceCode = "DDDSIT"
+
+ // ReServiceCodeDDFSIT captures enum value "DDFSIT"
+ ReServiceCodeDDFSIT ReServiceCode = "DDFSIT"
+
+ // ReServiceCodeDDP captures enum value "DDP"
+ ReServiceCodeDDP ReServiceCode = "DDP"
+
+ // ReServiceCodeDDSHUT captures enum value "DDSHUT"
+ ReServiceCodeDDSHUT ReServiceCode = "DDSHUT"
+
+ // ReServiceCodeDLH captures enum value "DLH"
+ ReServiceCodeDLH ReServiceCode = "DLH"
+
+ // ReServiceCodeDMHF captures enum value "DMHF"
+ ReServiceCodeDMHF ReServiceCode = "DMHF"
+
+ // ReServiceCodeDNPK captures enum value "DNPK"
+ ReServiceCodeDNPK ReServiceCode = "DNPK"
+
+ // ReServiceCodeDOASIT captures enum value "DOASIT"
+ ReServiceCodeDOASIT ReServiceCode = "DOASIT"
+
+ // ReServiceCodeDOFSIT captures enum value "DOFSIT"
+ ReServiceCodeDOFSIT ReServiceCode = "DOFSIT"
+
+ // ReServiceCodeDOP captures enum value "DOP"
+ ReServiceCodeDOP ReServiceCode = "DOP"
+
+ // ReServiceCodeDOPSIT captures enum value "DOPSIT"
+ ReServiceCodeDOPSIT ReServiceCode = "DOPSIT"
+
+ // ReServiceCodeDOSHUT captures enum value "DOSHUT"
+ ReServiceCodeDOSHUT ReServiceCode = "DOSHUT"
+
+ // ReServiceCodeDPK captures enum value "DPK"
+ ReServiceCodeDPK ReServiceCode = "DPK"
+
+ // ReServiceCodeDSH captures enum value "DSH"
+ ReServiceCodeDSH ReServiceCode = "DSH"
+
+ // ReServiceCodeDUCRT captures enum value "DUCRT"
+ ReServiceCodeDUCRT ReServiceCode = "DUCRT"
+
+ // ReServiceCodeDUPK captures enum value "DUPK"
+ ReServiceCodeDUPK ReServiceCode = "DUPK"
+
+ // ReServiceCodeFSC captures enum value "FSC"
+ ReServiceCodeFSC ReServiceCode = "FSC"
+
+ // ReServiceCodeIBHF captures enum value "IBHF"
+ ReServiceCodeIBHF ReServiceCode = "IBHF"
+
+ // ReServiceCodeIBTF captures enum value "IBTF"
+ ReServiceCodeIBTF ReServiceCode = "IBTF"
+
+ // ReServiceCodeICOLH captures enum value "ICOLH"
+ ReServiceCodeICOLH ReServiceCode = "ICOLH"
+
+ // ReServiceCodeICOUB captures enum value "ICOUB"
+ ReServiceCodeICOUB ReServiceCode = "ICOUB"
+
+ // ReServiceCodeICRT captures enum value "ICRT"
+ ReServiceCodeICRT ReServiceCode = "ICRT"
+
+ // ReServiceCodeIDASIT captures enum value "IDASIT"
+ ReServiceCodeIDASIT ReServiceCode = "IDASIT"
+
+ // ReServiceCodeIDDSIT captures enum value "IDDSIT"
+ ReServiceCodeIDDSIT ReServiceCode = "IDDSIT"
+
+ // ReServiceCodeIDFSIT captures enum value "IDFSIT"
+ ReServiceCodeIDFSIT ReServiceCode = "IDFSIT"
+
+ // ReServiceCodeIDSHUT captures enum value "IDSHUT"
+ ReServiceCodeIDSHUT ReServiceCode = "IDSHUT"
+
+ // ReServiceCodeIHPK captures enum value "IHPK"
+ ReServiceCodeIHPK ReServiceCode = "IHPK"
+
+ // ReServiceCodeIHUPK captures enum value "IHUPK"
+ ReServiceCodeIHUPK ReServiceCode = "IHUPK"
+
+ // ReServiceCodeINPK captures enum value "INPK"
+ ReServiceCodeINPK ReServiceCode = "INPK"
+
+ // ReServiceCodeIOASIT captures enum value "IOASIT"
+ ReServiceCodeIOASIT ReServiceCode = "IOASIT"
+
+ // ReServiceCodeIOCLH captures enum value "IOCLH"
+ ReServiceCodeIOCLH ReServiceCode = "IOCLH"
+
+ // ReServiceCodeIOCUB captures enum value "IOCUB"
+ ReServiceCodeIOCUB ReServiceCode = "IOCUB"
+
+ // ReServiceCodeIOFSIT captures enum value "IOFSIT"
+ ReServiceCodeIOFSIT ReServiceCode = "IOFSIT"
+
+ // ReServiceCodeIOOLH captures enum value "IOOLH"
+ ReServiceCodeIOOLH ReServiceCode = "IOOLH"
+
+ // ReServiceCodeIOOUB captures enum value "IOOUB"
+ ReServiceCodeIOOUB ReServiceCode = "IOOUB"
+
+ // ReServiceCodeIOPSIT captures enum value "IOPSIT"
+ ReServiceCodeIOPSIT ReServiceCode = "IOPSIT"
+
+ // ReServiceCodeIOSHUT captures enum value "IOSHUT"
+ ReServiceCodeIOSHUT ReServiceCode = "IOSHUT"
+
+ // ReServiceCodeIUBPK captures enum value "IUBPK"
+ ReServiceCodeIUBPK ReServiceCode = "IUBPK"
+
+ // ReServiceCodeIUBUPK captures enum value "IUBUPK"
+ ReServiceCodeIUBUPK ReServiceCode = "IUBUPK"
+
+ // ReServiceCodeIUCRT captures enum value "IUCRT"
+ ReServiceCodeIUCRT ReServiceCode = "IUCRT"
+
+ // ReServiceCodeMS captures enum value "MS"
+ ReServiceCodeMS ReServiceCode = "MS"
+
+ // ReServiceCodeNSTH captures enum value "NSTH"
+ ReServiceCodeNSTH ReServiceCode = "NSTH"
+
+ // ReServiceCodeNSTUB captures enum value "NSTUB"
+ ReServiceCodeNSTUB ReServiceCode = "NSTUB"
+)
+
+// for schema
+var reServiceCodeEnum []interface{}
+
+func init() {
+ var res []ReServiceCode
+ if err := json.Unmarshal([]byte(`["CS","DBHF","DBTF","DCRT","DDASIT","DDDSIT","DDFSIT","DDP","DDSHUT","DLH","DMHF","DNPK","DOASIT","DOFSIT","DOP","DOPSIT","DOSHUT","DPK","DSH","DUCRT","DUPK","FSC","IBHF","IBTF","ICOLH","ICOUB","ICRT","IDASIT","IDDSIT","IDFSIT","IDSHUT","IHPK","IHUPK","INPK","IOASIT","IOCLH","IOCUB","IOFSIT","IOOLH","IOOUB","IOPSIT","IOSHUT","IUBPK","IUBUPK","IUCRT","MS","NSTH","NSTUB"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ reServiceCodeEnum = append(reServiceCodeEnum, v)
+ }
+}
+
+func (m ReServiceCode) validateReServiceCodeEnum(path, location string, value ReServiceCode) error {
+ if err := validate.EnumCase(path, location, value, reServiceCodeEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Validate validates this re service code
+func (m ReServiceCode) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // value enum
+ if err := m.validateReServiceCodeEnum("", "body", m); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validates this re service code based on context it is used
+func (m ReServiceCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
diff --git a/pkg/gen/supportmessages/update_m_t_o_service_item_status.go b/pkg/gen/supportmessages/update_m_t_o_service_item_status.go
new file mode 100644
index 00000000000..a2243ef5595
--- /dev/null
+++ b/pkg/gen/supportmessages/update_m_t_o_service_item_status.go
@@ -0,0 +1,108 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+)
+
+// UpdateMTOServiceItemStatus update m t o service item status
+//
+// swagger:model UpdateMTOServiceItemStatus
+type UpdateMTOServiceItemStatus struct {
+
+ // Reason the service item was rejected by the TOO""
+ // Example: item was too heavy
+ RejectionReason *string `json:"rejectionReason,omitempty"`
+
+ // status
+ Status MTOServiceItemStatus `json:"status,omitempty"`
+}
+
+// Validate validates this update m t o service item status
+func (m *UpdateMTOServiceItemStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UpdateMTOServiceItemStatus) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this update m t o service item status based on the context it is used
+func (m *UpdateMTOServiceItemStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UpdateMTOServiceItemStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *UpdateMTOServiceItemStatus) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *UpdateMTOServiceItemStatus) UnmarshalBinary(b []byte) error {
+ var res UpdateMTOServiceItemStatus
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/update_m_t_o_shipment_status.go b/pkg/gen/supportmessages/update_m_t_o_shipment_status.go
new file mode 100644
index 00000000000..201ee90a85b
--- /dev/null
+++ b/pkg/gen/supportmessages/update_m_t_o_shipment_status.go
@@ -0,0 +1,121 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// UpdateMTOShipmentStatus update m t o shipment status
+//
+// swagger:model UpdateMTOShipmentStatus
+type UpdateMTOShipmentStatus struct {
+
+ // rejection reason
+ // Example: MTO Shipment not good enough
+ RejectionReason *string `json:"rejectionReason,omitempty"`
+
+ // status
+ // Enum: [REJECTED APPROVED SUBMITTED CANCELLATION_REQUESTED CANCELED DIVERSION_REQUESTED]
+ Status string `json:"status,omitempty"`
+}
+
+// Validate validates this update m t o shipment status
+func (m *UpdateMTOShipmentStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+var updateMTOShipmentStatusTypeStatusPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["REJECTED","APPROVED","SUBMITTED","CANCELLATION_REQUESTED","CANCELED","DIVERSION_REQUESTED"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ updateMTOShipmentStatusTypeStatusPropEnum = append(updateMTOShipmentStatusTypeStatusPropEnum, v)
+ }
+}
+
+const (
+
+ // UpdateMTOShipmentStatusStatusREJECTED captures enum value "REJECTED"
+ UpdateMTOShipmentStatusStatusREJECTED string = "REJECTED"
+
+ // UpdateMTOShipmentStatusStatusAPPROVED captures enum value "APPROVED"
+ UpdateMTOShipmentStatusStatusAPPROVED string = "APPROVED"
+
+ // UpdateMTOShipmentStatusStatusSUBMITTED captures enum value "SUBMITTED"
+ UpdateMTOShipmentStatusStatusSUBMITTED string = "SUBMITTED"
+
+ // UpdateMTOShipmentStatusStatusCANCELLATIONREQUESTED captures enum value "CANCELLATION_REQUESTED"
+ UpdateMTOShipmentStatusStatusCANCELLATIONREQUESTED string = "CANCELLATION_REQUESTED"
+
+ // UpdateMTOShipmentStatusStatusCANCELED captures enum value "CANCELED"
+ UpdateMTOShipmentStatusStatusCANCELED string = "CANCELED"
+
+ // UpdateMTOShipmentStatusStatusDIVERSIONREQUESTED captures enum value "DIVERSION_REQUESTED"
+ UpdateMTOShipmentStatusStatusDIVERSIONREQUESTED string = "DIVERSION_REQUESTED"
+)
+
+// prop value enum
+func (m *UpdateMTOShipmentStatus) validateStatusEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, updateMTOShipmentStatusTypeStatusPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *UpdateMTOShipmentStatus) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ // value enum
+ if err := m.validateStatusEnum("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validates this update m t o shipment status based on context it is used
+func (m *UpdateMTOShipmentStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *UpdateMTOShipmentStatus) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *UpdateMTOShipmentStatus) UnmarshalBinary(b []byte) error {
+ var res UpdateMTOShipmentStatus
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/update_payment_request_status.go b/pkg/gen/supportmessages/update_payment_request_status.go
new file mode 100644
index 00000000000..3060670f2ea
--- /dev/null
+++ b/pkg/gen/supportmessages/update_payment_request_status.go
@@ -0,0 +1,126 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// UpdatePaymentRequestStatus update payment request status
+//
+// swagger:model UpdatePaymentRequestStatus
+type UpdatePaymentRequestStatus struct {
+
+ // Attribute of the payment request object that automatically changes when the request is updated. This matches the value passed in the header for `If-Match`. Required when sending PUT or PATCH requests to prevent updating stale data.
+ // Read Only: true
+ ETag string `json:"eTag,omitempty"`
+
+ // A written reason to provide context for the status.
+ // Example: documentation was incomplete
+ RejectionReason *string `json:"rejectionReason,omitempty"`
+
+ // status
+ Status PaymentRequestStatus `json:"status,omitempty"`
+}
+
+// Validate validates this update payment request status
+func (m *UpdatePaymentRequestStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UpdatePaymentRequestStatus) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this update payment request status based on the context it is used
+func (m *UpdatePaymentRequestStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateETag(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UpdatePaymentRequestStatus) contextValidateETag(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "eTag", "body", string(m.ETag)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UpdatePaymentRequestStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *UpdatePaymentRequestStatus) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *UpdatePaymentRequestStatus) UnmarshalBinary(b []byte) error {
+ var res UpdatePaymentRequestStatus
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/upload_with_omissions.go b/pkg/gen/supportmessages/upload_with_omissions.go
new file mode 100644
index 00000000000..f30bb739563
--- /dev/null
+++ b/pkg/gen/supportmessages/upload_with_omissions.go
@@ -0,0 +1,279 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// UploadWithOmissions An uploaded file.
+//
+// swagger:model UploadWithOmissions
+type UploadWithOmissions struct {
+
+ // bytes
+ // Required: true
+ Bytes *int64 `json:"bytes"`
+
+ // content type
+ // Example: application/pdf
+ // Required: true
+ ContentType *string `json:"contentType"`
+
+ // created at
+ // Read Only: true
+ // Format: date-time
+ CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`
+
+ // filename
+ // Example: filename.pdf
+ // Required: true
+ Filename *string `json:"filename"`
+
+ // id
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ ID strfmt.UUID `json:"id,omitempty"`
+
+ // rotation
+ Rotation int64 `json:"rotation,omitempty"`
+
+ // status
+ // Enum: [INFECTED CLEAN PROCESSING]
+ Status string `json:"status,omitempty"`
+
+ // updated at
+ // Read Only: true
+ // Format: date-time
+ UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
+
+ // url
+ // Example: https://uploads.domain.test/dir/c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uri
+ URL strfmt.URI `json:"url,omitempty"`
+}
+
+// Validate validates this upload with omissions
+func (m *UploadWithOmissions) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateBytes(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateContentType(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFilename(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateURL(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UploadWithOmissions) validateBytes(formats strfmt.Registry) error {
+
+ if err := validate.Required("bytes", "body", m.Bytes); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateContentType(formats strfmt.Registry) error {
+
+ if err := validate.Required("contentType", "body", m.ContentType); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateCreatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.CreatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("createdAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateFilename(formats strfmt.Registry) error {
+
+ if err := validate.Required("filename", "body", m.Filename); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+var uploadWithOmissionsTypeStatusPropEnum []interface{}
+
+func init() {
+ var res []string
+ if err := json.Unmarshal([]byte(`["INFECTED","CLEAN","PROCESSING"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ uploadWithOmissionsTypeStatusPropEnum = append(uploadWithOmissionsTypeStatusPropEnum, v)
+ }
+}
+
+const (
+
+ // UploadWithOmissionsStatusINFECTED captures enum value "INFECTED"
+ UploadWithOmissionsStatusINFECTED string = "INFECTED"
+
+ // UploadWithOmissionsStatusCLEAN captures enum value "CLEAN"
+ UploadWithOmissionsStatusCLEAN string = "CLEAN"
+
+ // UploadWithOmissionsStatusPROCESSING captures enum value "PROCESSING"
+ UploadWithOmissionsStatusPROCESSING string = "PROCESSING"
+)
+
+// prop value enum
+func (m *UploadWithOmissions) validateStatusEnum(path, location string, value string) error {
+ if err := validate.EnumCase(path, location, value, uploadWithOmissionsTypeStatusPropEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+func (m *UploadWithOmissions) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ // value enum
+ if err := m.validateStatusEnum("status", "body", m.Status); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateUpdatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.UpdatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("updatedAt", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) validateURL(formats strfmt.Registry) error {
+ if swag.IsZero(m.URL) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("url", "body", "uri", m.URL.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this upload with omissions based on the context it is used
+func (m *UploadWithOmissions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateCreatedAt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateUpdatedAt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *UploadWithOmissions) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "createdAt", "body", strfmt.DateTime(m.CreatedAt)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *UploadWithOmissions) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "updatedAt", "body", strfmt.DateTime(m.UpdatedAt)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *UploadWithOmissions) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *UploadWithOmissions) UnmarshalBinary(b []byte) error {
+ var res UploadWithOmissions
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/validation_error.go b/pkg/gen/supportmessages/validation_error.go
new file mode 100644
index 00000000000..49171854b2a
--- /dev/null
+++ b/pkg/gen/supportmessages/validation_error.go
@@ -0,0 +1,132 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// ValidationError validation error
+//
+// swagger:model ValidationError
+type ValidationError struct {
+ ClientError
+
+ // invalid fields
+ // Required: true
+ InvalidFields map[string][]string `json:"invalidFields"`
+}
+
+// UnmarshalJSON unmarshals this object from a JSON structure
+func (m *ValidationError) UnmarshalJSON(raw []byte) error {
+ // AO0
+ var aO0 ClientError
+ if err := swag.ReadJSON(raw, &aO0); err != nil {
+ return err
+ }
+ m.ClientError = aO0
+
+ // AO1
+ var dataAO1 struct {
+ InvalidFields map[string][]string `json:"invalidFields"`
+ }
+ if err := swag.ReadJSON(raw, &dataAO1); err != nil {
+ return err
+ }
+
+ m.InvalidFields = dataAO1.InvalidFields
+
+ return nil
+}
+
+// MarshalJSON marshals this object to a JSON structure
+func (m ValidationError) MarshalJSON() ([]byte, error) {
+ _parts := make([][]byte, 0, 2)
+
+ aO0, err := swag.WriteJSON(m.ClientError)
+ if err != nil {
+ return nil, err
+ }
+ _parts = append(_parts, aO0)
+ var dataAO1 struct {
+ InvalidFields map[string][]string `json:"invalidFields"`
+ }
+
+ dataAO1.InvalidFields = m.InvalidFields
+
+ jsonDataAO1, errAO1 := swag.WriteJSON(dataAO1)
+ if errAO1 != nil {
+ return nil, errAO1
+ }
+ _parts = append(_parts, jsonDataAO1)
+ return swag.ConcatJSON(_parts...), nil
+}
+
+// Validate validates this validation error
+func (m *ValidationError) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // validation for a type composition with ClientError
+ if err := m.ClientError.Validate(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateInvalidFields(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *ValidationError) validateInvalidFields(formats strfmt.Registry) error {
+
+ if err := validate.Required("invalidFields", "body", m.InvalidFields); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this validation error based on the context it is used
+func (m *ValidationError) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ // validation for a type composition with ClientError
+ if err := m.ClientError.ContextValidate(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *ValidationError) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *ValidationError) UnmarshalBinary(b []byte) error {
+ var res ValidationError
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/webhook_notification.go b/pkg/gen/supportmessages/webhook_notification.go
new file mode 100644
index 00000000000..acaa8d3f34a
--- /dev/null
+++ b/pkg/gen/supportmessages/webhook_notification.go
@@ -0,0 +1,312 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/swag"
+ "github.com/go-openapi/validate"
+)
+
+// WebhookNotification webhook notification
+//
+// swagger:model WebhookNotification
+type WebhookNotification struct {
+
+ // Time representing when the event was triggered
+ // Read Only: true
+ // Format: date-time
+ CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`
+
+ // Name of event triggered
+ // Example: PaymentRequest.Update
+ EventKey string `json:"eventKey,omitempty"`
+
+ // Time representing when the system firstAttempted to send this notification
+ // Read Only: true
+ // Format: date-time
+ FirstAttemptedAt *strfmt.DateTime `json:"firstAttemptedAt,omitempty"`
+
+ // id
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Read Only: true
+ // Format: uuid
+ ID strfmt.UUID `json:"id,omitempty"`
+
+ // move task order ID
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ MoveTaskOrderID *strfmt.UUID `json:"moveTaskOrderID,omitempty"`
+
+ // object
+ Object *string `json:"object,omitempty"`
+
+ // object ID
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ ObjectID *strfmt.UUID `json:"objectID,omitempty"`
+
+ // status
+ Status WebhookNotificationStatus `json:"status,omitempty"`
+
+ // trace ID
+ // Example: c56a4180-65aa-42ec-a945-5fd21dec0538
+ // Format: uuid
+ TraceID strfmt.UUID `json:"traceID,omitempty"`
+
+ // Time representing when the notification was last updated
+ // Read Only: true
+ // Format: date-time
+ UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"`
+}
+
+// Validate validates this webhook notification
+func (m *WebhookNotification) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.validateCreatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateFirstAttemptedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateMoveTaskOrderID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateObjectID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateStatus(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateTraceID(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.validateUpdatedAt(formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *WebhookNotification) validateCreatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.CreatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("createdAt", "body", "date-time", m.CreatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateFirstAttemptedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.FirstAttemptedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("firstAttemptedAt", "body", "date-time", m.FirstAttemptedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("id", "body", "uuid", m.ID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateMoveTaskOrderID(formats strfmt.Registry) error {
+ if swag.IsZero(m.MoveTaskOrderID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("moveTaskOrderID", "body", "uuid", m.MoveTaskOrderID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateObjectID(formats strfmt.Registry) error {
+ if swag.IsZero(m.ObjectID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("objectID", "body", "uuid", m.ObjectID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateStatus(formats strfmt.Registry) error {
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.Validate(formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateTraceID(formats strfmt.Registry) error {
+ if swag.IsZero(m.TraceID) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("traceID", "body", "uuid", m.TraceID.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) validateUpdatedAt(formats strfmt.Registry) error {
+ if swag.IsZero(m.UpdatedAt) { // not required
+ return nil
+ }
+
+ if err := validate.FormatOf("updatedAt", "body", "date-time", m.UpdatedAt.String(), formats); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// ContextValidate validate this webhook notification based on the context it is used
+func (m *WebhookNotification) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ var res []error
+
+ if err := m.contextValidateCreatedAt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateFirstAttemptedAt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateID(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateStatus(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if err := m.contextValidateUpdatedAt(ctx, formats); err != nil {
+ res = append(res, err)
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+func (m *WebhookNotification) contextValidateCreatedAt(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "createdAt", "body", strfmt.DateTime(m.CreatedAt)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) contextValidateFirstAttemptedAt(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "firstAttemptedAt", "body", m.FirstAttemptedAt); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) contextValidateID(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "id", "body", strfmt.UUID(m.ID)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error {
+
+ if swag.IsZero(m.Status) { // not required
+ return nil
+ }
+
+ if err := m.Status.ContextValidate(ctx, formats); err != nil {
+ if ve, ok := err.(*errors.Validation); ok {
+ return ve.ValidateName("status")
+ } else if ce, ok := err.(*errors.CompositeError); ok {
+ return ce.ValidateName("status")
+ }
+ return err
+ }
+
+ return nil
+}
+
+func (m *WebhookNotification) contextValidateUpdatedAt(ctx context.Context, formats strfmt.Registry) error {
+
+ if err := validate.ReadOnly(ctx, "updatedAt", "body", strfmt.DateTime(m.UpdatedAt)); err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// MarshalBinary interface implementation
+func (m *WebhookNotification) MarshalBinary() ([]byte, error) {
+ if m == nil {
+ return nil, nil
+ }
+ return swag.WriteJSON(m)
+}
+
+// UnmarshalBinary interface implementation
+func (m *WebhookNotification) UnmarshalBinary(b []byte) error {
+ var res WebhookNotification
+ if err := swag.ReadJSON(b, &res); err != nil {
+ return err
+ }
+ *m = res
+ return nil
+}
diff --git a/pkg/gen/supportmessages/webhook_notification_status.go b/pkg/gen/supportmessages/webhook_notification_status.go
new file mode 100644
index 00000000000..b6ca9f4f176
--- /dev/null
+++ b/pkg/gen/supportmessages/webhook_notification_status.go
@@ -0,0 +1,87 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package supportmessages
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "context"
+ "encoding/json"
+
+ "github.com/go-openapi/errors"
+ "github.com/go-openapi/strfmt"
+ "github.com/go-openapi/validate"
+)
+
+// WebhookNotificationStatus Statuses available for a Webhook Notification
+//
+// swagger:model WebhookNotificationStatus
+type WebhookNotificationStatus string
+
+func NewWebhookNotificationStatus(value WebhookNotificationStatus) *WebhookNotificationStatus {
+ return &value
+}
+
+// Pointer returns a pointer to a freshly-allocated WebhookNotificationStatus.
+func (m WebhookNotificationStatus) Pointer() *WebhookNotificationStatus {
+ return &m
+}
+
+const (
+
+ // WebhookNotificationStatusPENDING captures enum value "PENDING"
+ WebhookNotificationStatusPENDING WebhookNotificationStatus = "PENDING"
+
+ // WebhookNotificationStatusSENT captures enum value "SENT"
+ WebhookNotificationStatusSENT WebhookNotificationStatus = "SENT"
+
+ // WebhookNotificationStatusSKIPPED captures enum value "SKIPPED"
+ WebhookNotificationStatusSKIPPED WebhookNotificationStatus = "SKIPPED"
+
+ // WebhookNotificationStatusFAILING captures enum value "FAILING"
+ WebhookNotificationStatusFAILING WebhookNotificationStatus = "FAILING"
+
+ // WebhookNotificationStatusFAILED captures enum value "FAILED"
+ WebhookNotificationStatusFAILED WebhookNotificationStatus = "FAILED"
+)
+
+// for schema
+var webhookNotificationStatusEnum []interface{}
+
+func init() {
+ var res []WebhookNotificationStatus
+ if err := json.Unmarshal([]byte(`["PENDING","SENT","SKIPPED","FAILING","FAILED"]`), &res); err != nil {
+ panic(err)
+ }
+ for _, v := range res {
+ webhookNotificationStatusEnum = append(webhookNotificationStatusEnum, v)
+ }
+}
+
+func (m WebhookNotificationStatus) validateWebhookNotificationStatusEnum(path, location string, value WebhookNotificationStatus) error {
+ if err := validate.EnumCase(path, location, value, webhookNotificationStatusEnum, true); err != nil {
+ return err
+ }
+ return nil
+}
+
+// Validate validates this webhook notification status
+func (m WebhookNotificationStatus) Validate(formats strfmt.Registry) error {
+ var res []error
+
+ // value enum
+ if err := m.validateWebhookNotificationStatusEnum("", "body", m); err != nil {
+ return err
+ }
+
+ if len(res) > 0 {
+ return errors.CompositeValidationError(res...)
+ }
+ return nil
+}
+
+// ContextValidate validates this webhook notification status based on context it is used
+func (m WebhookNotificationStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
+ return nil
+}
From 8183156977a673ac4255590a5466031a13128696 Mon Sep 17 00:00:00 2001
From: deandreJones
- Your weight allowance: {{.WeightAllowance}} pounds. + Your standard weight allowance: {{.WeightAllowance}} pounds. That is how much combined weight the government will pay for all movements between authorized locations under your - orders. + orders. Be advised, if you are moving to an administratively restricted HHG weight location this amount could be less.
diff --git a/pkg/assets/notifications/templates/move_submitted_template.txt b/pkg/assets/notifications/templates/move_submitted_template.txt
index 72f1c68566d..85516ead51f 100644
--- a/pkg/assets/notifications/templates/move_submitted_template.txt
+++ b/pkg/assets/notifications/templates/move_submitted_template.txt
@@ -6,7 +6,7 @@ We have assigned you a move code: {{.Locator}}. You can use this code when talki
{{ if .OriginDutyLocationPhoneLine -}} To change any information about your move, or to add or cancel shipments, you should contact {{.OriginDutyLocationPhoneLine}} or visit your local transportation office ({{.OneSourceTransportationOfficeLink}}) . {{- end }} {{- if not .OriginDutyLocationPhoneLine }} To change any information about your move, or to add or cancel shipments, you should contact your nearest transportation office. You can find the contact information using the directory of PCS-related contacts ({{.OneSourceTransportationOfficeLink}}) . {{- end }}
-Your weight allowance: {{.WeightAllowance}} pounds. That is how much combined weight the government will pay for all movements between authorized locations under your orders.
+Your standard weight allowance: {{.WeightAllowance}} pounds. That is how much combined weight the government will pay for all movements between authorized locations under your orders. Be advised, if you are moving to an administratively restricted HHG weight location this amount could be less.
If you move more than {{.WeightAllowance}} pounds or ship to/from an other than authorized location, you may owe the government the difference in cost between what you are authorized and what you decide to move.
diff --git a/pkg/notifications/move_approved.go b/pkg/notifications/move_approved.go
index 96b198d6c8b..fb207acfbe3 100644
--- a/pkg/notifications/move_approved.go
+++ b/pkg/notifications/move_approved.go
@@ -86,12 +86,13 @@ func (m MoveApproved) emails(appCtx appcontext.AppContext) ([]emailContent, erro
}
htmlBody, textBody, err := m.renderTemplates(appCtx, moveApprovedEmailData{
- Link: ppmInfoSheetURL.String(),
- OriginDutyLocation: originDutyLocation,
- DestinationDutyLocation: orders.NewDutyLocation.Name,
- OriginDutyLocationPhoneLine: originDutyLocationPhoneLine,
- Locator: move.Locator,
- MyMoveLink: MyMoveLink,
+ Link: ppmInfoSheetURL.String(),
+ OriginDutyLocation: originDutyLocation,
+ DestinationDutyLocation: orders.NewDutyLocation.Name,
+ OriginDutyLocationPhoneLine: originDutyLocationPhoneLine,
+ Locator: move.Locator,
+ MyMoveLink: MyMoveLink,
+ AdminRestrictedWeightLocation: orders.Entitlement.AdminRestrictedWeightLocation,
})
if err != nil {
@@ -128,12 +129,13 @@ func (m MoveApproved) renderTemplates(appCtx appcontext.AppContext, data moveApp
// moveApprovedEmailData has content for email template
type moveApprovedEmailData struct {
- Link string
- OriginDutyLocation *string
- DestinationDutyLocation string
- OriginDutyLocationPhoneLine *string
- Locator string
- MyMoveLink string
+ Link string
+ OriginDutyLocation *string
+ DestinationDutyLocation string
+ OriginDutyLocationPhoneLine *string
+ Locator string
+ MyMoveLink string
+ AdminRestrictedWeightLocation bool
}
// RenderHTML renders the html for the email
diff --git a/src/components/Customer/MtoShipmentForm/MtoShipmentForm.jsx b/src/components/Customer/MtoShipmentForm/MtoShipmentForm.jsx
index e1fb7f72263..badadb06df0 100644
--- a/src/components/Customer/MtoShipmentForm/MtoShipmentForm.jsx
+++ b/src/components/Customer/MtoShipmentForm/MtoShipmentForm.jsx
@@ -314,12 +314,14 @@ class MtoShipmentForm extends Component {