operations

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

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func (*Client) GetOrders

func (a *Client) GetOrders(params *GetOrdersParams) (*GetOrdersOK, error)
GetOrders retrieves a set of orders and all of its revisions by UUID

Gets Orders with the supplied UUID.

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

func (*Client) GetOrdersByIssuerAndOrdersNum

func (a *Client) GetOrdersByIssuerAndOrdersNum(params *GetOrdersByIssuerAndOrdersNumParams) (*GetOrdersByIssuerAndOrdersNumOK, error)
GetOrdersByIssuerAndOrdersNum retrieves orders by issuer and orders number

Return Orders with the provided issuer and orders number.

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

func (*Client) GetOrdersCountByIssuer

func (a *Client) GetOrdersCountByIssuer(params *GetOrdersCountByIssuerParams) (*GetOrdersCountByIssuerOK, error)
GetOrdersCountByIssuer retrieves a count of orders by issuer

Gets a Count of Orders by issuer.

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

func (*Client) IndexOrdersForMember

func (a *Client) IndexOrdersForMember(params *IndexOrdersForMemberParams) (*IndexOrdersForMemberOK, error)

IndexOrdersForMember retrieves orders for a particular member

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

func (*Client) PostRevision

func (a *Client) PostRevision(params *PostRevisionParams) (*PostRevisionCreated, error)
PostRevision submits a new set of orders make an amendment to an existing set of orders or cancel a set of orders

Creates a Revision of a set of orders.

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

func (*Client) PostRevisionToOrders

func (a *Client) PostRevisionToOrders(params *PostRevisionToOrdersParams) (*PostRevisionToOrdersCreated, error)
PostRevisionToOrders makes an amendment to or cancel an existing set of orders by UUID

Creates a Revision of a set of orders. The Orders to be amended or canceled must already exist with the supplied UUID.

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

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetOrders(params *GetOrdersParams) (*GetOrdersOK, error)

	GetOrdersByIssuerAndOrdersNum(params *GetOrdersByIssuerAndOrdersNumParams) (*GetOrdersByIssuerAndOrdersNumOK, error)

	GetOrdersCountByIssuer(params *GetOrdersCountByIssuerParams) (*GetOrdersCountByIssuerOK, error)

	IndexOrdersForMember(params *IndexOrdersForMemberParams) (*IndexOrdersForMemberOK, error)

	PostRevision(params *PostRevisionParams) (*PostRevisionCreated, error)

	PostRevisionToOrders(params *PostRevisionToOrdersParams) (*PostRevisionToOrdersCreated, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new operations API client.

type GetOrdersBadRequest

type GetOrdersBadRequest struct {
}

GetOrdersBadRequest handles this case with default header values.

Invalid

func NewGetOrdersBadRequest

func NewGetOrdersBadRequest() *GetOrdersBadRequest

NewGetOrdersBadRequest creates a GetOrdersBadRequest with default headers values

func (*GetOrdersBadRequest) Error

func (o *GetOrdersBadRequest) Error() string

type GetOrdersByIssuerAndOrdersNumBadRequest

type GetOrdersByIssuerAndOrdersNumBadRequest struct {
}

GetOrdersByIssuerAndOrdersNumBadRequest handles this case with default header values.

Invalid

func NewGetOrdersByIssuerAndOrdersNumBadRequest

func NewGetOrdersByIssuerAndOrdersNumBadRequest() *GetOrdersByIssuerAndOrdersNumBadRequest

NewGetOrdersByIssuerAndOrdersNumBadRequest creates a GetOrdersByIssuerAndOrdersNumBadRequest with default headers values

func (*GetOrdersByIssuerAndOrdersNumBadRequest) Error

type GetOrdersByIssuerAndOrdersNumForbidden

type GetOrdersByIssuerAndOrdersNumForbidden struct {
}

GetOrdersByIssuerAndOrdersNumForbidden handles this case with default header values.

Forbidden

func NewGetOrdersByIssuerAndOrdersNumForbidden

func NewGetOrdersByIssuerAndOrdersNumForbidden() *GetOrdersByIssuerAndOrdersNumForbidden

NewGetOrdersByIssuerAndOrdersNumForbidden creates a GetOrdersByIssuerAndOrdersNumForbidden with default headers values

func (*GetOrdersByIssuerAndOrdersNumForbidden) Error

type GetOrdersByIssuerAndOrdersNumInternalServerError

type GetOrdersByIssuerAndOrdersNumInternalServerError struct {
}

GetOrdersByIssuerAndOrdersNumInternalServerError handles this case with default header values.

Server error

func NewGetOrdersByIssuerAndOrdersNumInternalServerError

func NewGetOrdersByIssuerAndOrdersNumInternalServerError() *GetOrdersByIssuerAndOrdersNumInternalServerError

NewGetOrdersByIssuerAndOrdersNumInternalServerError creates a GetOrdersByIssuerAndOrdersNumInternalServerError with default headers values

func (*GetOrdersByIssuerAndOrdersNumInternalServerError) Error

type GetOrdersByIssuerAndOrdersNumNotFound

type GetOrdersByIssuerAndOrdersNumNotFound struct {
}

GetOrdersByIssuerAndOrdersNumNotFound handles this case with default header values.

Orders not found

func NewGetOrdersByIssuerAndOrdersNumNotFound

func NewGetOrdersByIssuerAndOrdersNumNotFound() *GetOrdersByIssuerAndOrdersNumNotFound

NewGetOrdersByIssuerAndOrdersNumNotFound creates a GetOrdersByIssuerAndOrdersNumNotFound with default headers values

func (*GetOrdersByIssuerAndOrdersNumNotFound) Error

type GetOrdersByIssuerAndOrdersNumOK

type GetOrdersByIssuerAndOrdersNumOK struct {
	Payload *ordersmessages.Orders
}

GetOrdersByIssuerAndOrdersNumOK handles this case with default header values.

Successful

func NewGetOrdersByIssuerAndOrdersNumOK

func NewGetOrdersByIssuerAndOrdersNumOK() *GetOrdersByIssuerAndOrdersNumOK

NewGetOrdersByIssuerAndOrdersNumOK creates a GetOrdersByIssuerAndOrdersNumOK with default headers values

func (*GetOrdersByIssuerAndOrdersNumOK) Error

func (*GetOrdersByIssuerAndOrdersNumOK) GetPayload

type GetOrdersByIssuerAndOrdersNumParams

type GetOrdersByIssuerAndOrdersNumParams struct {

	/*Issuer
	  Organization that issued the Orders

	*/
	Issuer string
	/*OrdersNum
	  Orders number, corresponding to the ORDERS number (Army), the CT SDN (Navy, Marines), the SPECIAL ORDER NO (Air Force), the Travel Order No (Coast Guard), or the Travel Authorization Number (Civilian).

	*/
	OrdersNum string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrdersByIssuerAndOrdersNumParams contains all the parameters to send to the API endpoint for the get orders by issuer and orders num operation typically these are written to a http.Request

func NewGetOrdersByIssuerAndOrdersNumParams

func NewGetOrdersByIssuerAndOrdersNumParams() *GetOrdersByIssuerAndOrdersNumParams

NewGetOrdersByIssuerAndOrdersNumParams creates a new GetOrdersByIssuerAndOrdersNumParams object with the default values initialized.

func NewGetOrdersByIssuerAndOrdersNumParamsWithContext

func NewGetOrdersByIssuerAndOrdersNumParamsWithContext(ctx context.Context) *GetOrdersByIssuerAndOrdersNumParams

NewGetOrdersByIssuerAndOrdersNumParamsWithContext creates a new GetOrdersByIssuerAndOrdersNumParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrdersByIssuerAndOrdersNumParamsWithHTTPClient

func NewGetOrdersByIssuerAndOrdersNumParamsWithHTTPClient(client *http.Client) *GetOrdersByIssuerAndOrdersNumParams

NewGetOrdersByIssuerAndOrdersNumParamsWithHTTPClient creates a new GetOrdersByIssuerAndOrdersNumParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrdersByIssuerAndOrdersNumParamsWithTimeout

func NewGetOrdersByIssuerAndOrdersNumParamsWithTimeout(timeout time.Duration) *GetOrdersByIssuerAndOrdersNumParams

NewGetOrdersByIssuerAndOrdersNumParamsWithTimeout creates a new GetOrdersByIssuerAndOrdersNumParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrdersByIssuerAndOrdersNumParams) SetContext

SetContext adds the context to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) SetHTTPClient

func (o *GetOrdersByIssuerAndOrdersNumParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) SetIssuer

func (o *GetOrdersByIssuerAndOrdersNumParams) SetIssuer(issuer string)

SetIssuer adds the issuer to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) SetOrdersNum

func (o *GetOrdersByIssuerAndOrdersNumParams) SetOrdersNum(ordersNum string)

SetOrdersNum adds the ordersNum to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) SetTimeout

func (o *GetOrdersByIssuerAndOrdersNumParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WithContext

WithContext adds the context to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WithIssuer

WithIssuer adds the issuer to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WithOrdersNum

WithOrdersNum adds the ordersNum to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WithTimeout

WithTimeout adds the timeout to the get orders by issuer and orders num params

func (*GetOrdersByIssuerAndOrdersNumParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrdersByIssuerAndOrdersNumReader

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

GetOrdersByIssuerAndOrdersNumReader is a Reader for the GetOrdersByIssuerAndOrdersNum structure.

func (*GetOrdersByIssuerAndOrdersNumReader) ReadResponse

func (o *GetOrdersByIssuerAndOrdersNumReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrdersByIssuerAndOrdersNumUnauthorized

type GetOrdersByIssuerAndOrdersNumUnauthorized struct {
}

GetOrdersByIssuerAndOrdersNumUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewGetOrdersByIssuerAndOrdersNumUnauthorized

func NewGetOrdersByIssuerAndOrdersNumUnauthorized() *GetOrdersByIssuerAndOrdersNumUnauthorized

NewGetOrdersByIssuerAndOrdersNumUnauthorized creates a GetOrdersByIssuerAndOrdersNumUnauthorized with default headers values

func (*GetOrdersByIssuerAndOrdersNumUnauthorized) Error

type GetOrdersCountByIssuerBadRequest

type GetOrdersCountByIssuerBadRequest struct {
}

GetOrdersCountByIssuerBadRequest handles this case with default header values.

Invalid

func NewGetOrdersCountByIssuerBadRequest

func NewGetOrdersCountByIssuerBadRequest() *GetOrdersCountByIssuerBadRequest

NewGetOrdersCountByIssuerBadRequest creates a GetOrdersCountByIssuerBadRequest with default headers values

func (*GetOrdersCountByIssuerBadRequest) Error

type GetOrdersCountByIssuerForbidden

type GetOrdersCountByIssuerForbidden struct {
}

GetOrdersCountByIssuerForbidden handles this case with default header values.

Forbidden

func NewGetOrdersCountByIssuerForbidden

func NewGetOrdersCountByIssuerForbidden() *GetOrdersCountByIssuerForbidden

NewGetOrdersCountByIssuerForbidden creates a GetOrdersCountByIssuerForbidden with default headers values

func (*GetOrdersCountByIssuerForbidden) Error

type GetOrdersCountByIssuerInternalServerError

type GetOrdersCountByIssuerInternalServerError struct {
}

GetOrdersCountByIssuerInternalServerError handles this case with default header values.

Server error

func NewGetOrdersCountByIssuerInternalServerError

func NewGetOrdersCountByIssuerInternalServerError() *GetOrdersCountByIssuerInternalServerError

NewGetOrdersCountByIssuerInternalServerError creates a GetOrdersCountByIssuerInternalServerError with default headers values

func (*GetOrdersCountByIssuerInternalServerError) Error

type GetOrdersCountByIssuerOK

type GetOrdersCountByIssuerOK struct {
	Payload *ordersmessages.OrdersCountByIssuer
}

GetOrdersCountByIssuerOK handles this case with default header values.

Successful

func NewGetOrdersCountByIssuerOK

func NewGetOrdersCountByIssuerOK() *GetOrdersCountByIssuerOK

NewGetOrdersCountByIssuerOK creates a GetOrdersCountByIssuerOK with default headers values

func (*GetOrdersCountByIssuerOK) Error

func (o *GetOrdersCountByIssuerOK) Error() string

func (*GetOrdersCountByIssuerOK) GetPayload

type GetOrdersCountByIssuerParams

type GetOrdersCountByIssuerParams struct {

	/*EndDateTime
	  Search date-time end

	*/
	EndDateTime *strfmt.DateTime
	/*Issuer
	  Organization that issued the Orders.

	*/
	Issuer string
	/*StartDateTime
	  Search date-time start

	*/
	StartDateTime *strfmt.DateTime

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrdersCountByIssuerParams contains all the parameters to send to the API endpoint for the get orders count by issuer operation typically these are written to a http.Request

func NewGetOrdersCountByIssuerParams

func NewGetOrdersCountByIssuerParams() *GetOrdersCountByIssuerParams

NewGetOrdersCountByIssuerParams creates a new GetOrdersCountByIssuerParams object with the default values initialized.

func NewGetOrdersCountByIssuerParamsWithContext

func NewGetOrdersCountByIssuerParamsWithContext(ctx context.Context) *GetOrdersCountByIssuerParams

NewGetOrdersCountByIssuerParamsWithContext creates a new GetOrdersCountByIssuerParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrdersCountByIssuerParamsWithHTTPClient

func NewGetOrdersCountByIssuerParamsWithHTTPClient(client *http.Client) *GetOrdersCountByIssuerParams

NewGetOrdersCountByIssuerParamsWithHTTPClient creates a new GetOrdersCountByIssuerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrdersCountByIssuerParamsWithTimeout

func NewGetOrdersCountByIssuerParamsWithTimeout(timeout time.Duration) *GetOrdersCountByIssuerParams

NewGetOrdersCountByIssuerParamsWithTimeout creates a new GetOrdersCountByIssuerParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrdersCountByIssuerParams) SetContext

func (o *GetOrdersCountByIssuerParams) SetContext(ctx context.Context)

SetContext adds the context to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) SetEndDateTime

func (o *GetOrdersCountByIssuerParams) SetEndDateTime(endDateTime *strfmt.DateTime)

SetEndDateTime adds the endDateTime to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) SetHTTPClient

func (o *GetOrdersCountByIssuerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) SetIssuer

func (o *GetOrdersCountByIssuerParams) SetIssuer(issuer string)

SetIssuer adds the issuer to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) SetStartDateTime

func (o *GetOrdersCountByIssuerParams) SetStartDateTime(startDateTime *strfmt.DateTime)

SetStartDateTime adds the startDateTime to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) SetTimeout

func (o *GetOrdersCountByIssuerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithContext

WithContext adds the context to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithEndDateTime

WithEndDateTime adds the endDateTime to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithIssuer

WithIssuer adds the issuer to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithStartDateTime

func (o *GetOrdersCountByIssuerParams) WithStartDateTime(startDateTime *strfmt.DateTime) *GetOrdersCountByIssuerParams

WithStartDateTime adds the startDateTime to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WithTimeout

WithTimeout adds the timeout to the get orders count by issuer params

func (*GetOrdersCountByIssuerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrdersCountByIssuerReader

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

GetOrdersCountByIssuerReader is a Reader for the GetOrdersCountByIssuer structure.

func (*GetOrdersCountByIssuerReader) ReadResponse

func (o *GetOrdersCountByIssuerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrdersCountByIssuerUnauthorized

type GetOrdersCountByIssuerUnauthorized struct {
}

GetOrdersCountByIssuerUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewGetOrdersCountByIssuerUnauthorized

func NewGetOrdersCountByIssuerUnauthorized() *GetOrdersCountByIssuerUnauthorized

NewGetOrdersCountByIssuerUnauthorized creates a GetOrdersCountByIssuerUnauthorized with default headers values

func (*GetOrdersCountByIssuerUnauthorized) Error

type GetOrdersForbidden

type GetOrdersForbidden struct {
}

GetOrdersForbidden handles this case with default header values.

Forbidden

func NewGetOrdersForbidden

func NewGetOrdersForbidden() *GetOrdersForbidden

NewGetOrdersForbidden creates a GetOrdersForbidden with default headers values

func (*GetOrdersForbidden) Error

func (o *GetOrdersForbidden) Error() string

type GetOrdersInternalServerError

type GetOrdersInternalServerError struct {
}

GetOrdersInternalServerError handles this case with default header values.

Server error

func NewGetOrdersInternalServerError

func NewGetOrdersInternalServerError() *GetOrdersInternalServerError

NewGetOrdersInternalServerError creates a GetOrdersInternalServerError with default headers values

func (*GetOrdersInternalServerError) Error

type GetOrdersNotFound

type GetOrdersNotFound struct {
}

GetOrdersNotFound handles this case with default header values.

Orders not found

func NewGetOrdersNotFound

func NewGetOrdersNotFound() *GetOrdersNotFound

NewGetOrdersNotFound creates a GetOrdersNotFound with default headers values

func (*GetOrdersNotFound) Error

func (o *GetOrdersNotFound) Error() string

type GetOrdersOK

type GetOrdersOK struct {
	Payload *ordersmessages.Orders
}

GetOrdersOK handles this case with default header values.

Successful

func NewGetOrdersOK

func NewGetOrdersOK() *GetOrdersOK

NewGetOrdersOK creates a GetOrdersOK with default headers values

func (*GetOrdersOK) Error

func (o *GetOrdersOK) Error() string

func (*GetOrdersOK) GetPayload

func (o *GetOrdersOK) GetPayload() *ordersmessages.Orders

type GetOrdersParams

type GetOrdersParams struct {

	/*UUID
	  UUID of the orders to return

	*/
	UUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrdersParams contains all the parameters to send to the API endpoint for the get orders operation typically these are written to a http.Request

func NewGetOrdersParams

func NewGetOrdersParams() *GetOrdersParams

NewGetOrdersParams creates a new GetOrdersParams object with the default values initialized.

func NewGetOrdersParamsWithContext

func NewGetOrdersParamsWithContext(ctx context.Context) *GetOrdersParams

NewGetOrdersParamsWithContext creates a new GetOrdersParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrdersParamsWithHTTPClient

func NewGetOrdersParamsWithHTTPClient(client *http.Client) *GetOrdersParams

NewGetOrdersParamsWithHTTPClient creates a new GetOrdersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrdersParamsWithTimeout

func NewGetOrdersParamsWithTimeout(timeout time.Duration) *GetOrdersParams

NewGetOrdersParamsWithTimeout creates a new GetOrdersParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrdersParams) SetContext

func (o *GetOrdersParams) SetContext(ctx context.Context)

SetContext adds the context to the get orders params

func (*GetOrdersParams) SetHTTPClient

func (o *GetOrdersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get orders params

func (*GetOrdersParams) SetTimeout

func (o *GetOrdersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get orders params

func (*GetOrdersParams) SetUUID

func (o *GetOrdersParams) SetUUID(uuid strfmt.UUID)

SetUUID adds the uuid to the get orders params

func (*GetOrdersParams) WithContext

func (o *GetOrdersParams) WithContext(ctx context.Context) *GetOrdersParams

WithContext adds the context to the get orders params

func (*GetOrdersParams) WithHTTPClient

func (o *GetOrdersParams) WithHTTPClient(client *http.Client) *GetOrdersParams

WithHTTPClient adds the HTTPClient to the get orders params

func (*GetOrdersParams) WithTimeout

func (o *GetOrdersParams) WithTimeout(timeout time.Duration) *GetOrdersParams

WithTimeout adds the timeout to the get orders params

func (*GetOrdersParams) WithUUID

func (o *GetOrdersParams) WithUUID(uuid strfmt.UUID) *GetOrdersParams

WithUUID adds the uuid to the get orders params

func (*GetOrdersParams) WriteToRequest

func (o *GetOrdersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOrdersReader

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

GetOrdersReader is a Reader for the GetOrders structure.

func (*GetOrdersReader) ReadResponse

func (o *GetOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrdersUnauthorized

type GetOrdersUnauthorized struct {
}

GetOrdersUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewGetOrdersUnauthorized

func NewGetOrdersUnauthorized() *GetOrdersUnauthorized

NewGetOrdersUnauthorized creates a GetOrdersUnauthorized with default headers values

func (*GetOrdersUnauthorized) Error

func (o *GetOrdersUnauthorized) Error() string

type IndexOrdersForMemberBadRequest

type IndexOrdersForMemberBadRequest struct {
}

IndexOrdersForMemberBadRequest handles this case with default header values.

Bad request

func NewIndexOrdersForMemberBadRequest

func NewIndexOrdersForMemberBadRequest() *IndexOrdersForMemberBadRequest

NewIndexOrdersForMemberBadRequest creates a IndexOrdersForMemberBadRequest with default headers values

func (*IndexOrdersForMemberBadRequest) Error

type IndexOrdersForMemberForbidden

type IndexOrdersForMemberForbidden struct {
}

IndexOrdersForMemberForbidden handles this case with default header values.

Forbidden

func NewIndexOrdersForMemberForbidden

func NewIndexOrdersForMemberForbidden() *IndexOrdersForMemberForbidden

NewIndexOrdersForMemberForbidden creates a IndexOrdersForMemberForbidden with default headers values

func (*IndexOrdersForMemberForbidden) Error

type IndexOrdersForMemberInternalServerError

type IndexOrdersForMemberInternalServerError struct {
}

IndexOrdersForMemberInternalServerError handles this case with default header values.

Server error

func NewIndexOrdersForMemberInternalServerError

func NewIndexOrdersForMemberInternalServerError() *IndexOrdersForMemberInternalServerError

NewIndexOrdersForMemberInternalServerError creates a IndexOrdersForMemberInternalServerError with default headers values

func (*IndexOrdersForMemberInternalServerError) Error

type IndexOrdersForMemberNotFound

type IndexOrdersForMemberNotFound struct {
}

IndexOrdersForMemberNotFound handles this case with default header values.

No orders found

func NewIndexOrdersForMemberNotFound

func NewIndexOrdersForMemberNotFound() *IndexOrdersForMemberNotFound

NewIndexOrdersForMemberNotFound creates a IndexOrdersForMemberNotFound with default headers values

func (*IndexOrdersForMemberNotFound) Error

type IndexOrdersForMemberOK

type IndexOrdersForMemberOK struct {
	Payload []*ordersmessages.Orders
}

IndexOrdersForMemberOK handles this case with default header values.

Successful

func NewIndexOrdersForMemberOK

func NewIndexOrdersForMemberOK() *IndexOrdersForMemberOK

NewIndexOrdersForMemberOK creates a IndexOrdersForMemberOK with default headers values

func (*IndexOrdersForMemberOK) Error

func (o *IndexOrdersForMemberOK) Error() string

func (*IndexOrdersForMemberOK) GetPayload

func (o *IndexOrdersForMemberOK) GetPayload() []*ordersmessages.Orders

type IndexOrdersForMemberParams

type IndexOrdersForMemberParams struct {

	/*Edipi
	  EDIPI of the member to retrieve Orders

	*/
	Edipi string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

IndexOrdersForMemberParams contains all the parameters to send to the API endpoint for the index orders for member operation typically these are written to a http.Request

func NewIndexOrdersForMemberParams

func NewIndexOrdersForMemberParams() *IndexOrdersForMemberParams

NewIndexOrdersForMemberParams creates a new IndexOrdersForMemberParams object with the default values initialized.

func NewIndexOrdersForMemberParamsWithContext

func NewIndexOrdersForMemberParamsWithContext(ctx context.Context) *IndexOrdersForMemberParams

NewIndexOrdersForMemberParamsWithContext creates a new IndexOrdersForMemberParams object with the default values initialized, and the ability to set a context for a request

func NewIndexOrdersForMemberParamsWithHTTPClient

func NewIndexOrdersForMemberParamsWithHTTPClient(client *http.Client) *IndexOrdersForMemberParams

NewIndexOrdersForMemberParamsWithHTTPClient creates a new IndexOrdersForMemberParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewIndexOrdersForMemberParamsWithTimeout

func NewIndexOrdersForMemberParamsWithTimeout(timeout time.Duration) *IndexOrdersForMemberParams

NewIndexOrdersForMemberParamsWithTimeout creates a new IndexOrdersForMemberParams object with the default values initialized, and the ability to set a timeout on a request

func (*IndexOrdersForMemberParams) SetContext

func (o *IndexOrdersForMemberParams) SetContext(ctx context.Context)

SetContext adds the context to the index orders for member params

func (*IndexOrdersForMemberParams) SetEdipi

func (o *IndexOrdersForMemberParams) SetEdipi(edipi string)

SetEdipi adds the edipi to the index orders for member params

func (*IndexOrdersForMemberParams) SetHTTPClient

func (o *IndexOrdersForMemberParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the index orders for member params

func (*IndexOrdersForMemberParams) SetTimeout

func (o *IndexOrdersForMemberParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the index orders for member params

func (*IndexOrdersForMemberParams) WithContext

WithContext adds the context to the index orders for member params

func (*IndexOrdersForMemberParams) WithEdipi

WithEdipi adds the edipi to the index orders for member params

func (*IndexOrdersForMemberParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the index orders for member params

func (*IndexOrdersForMemberParams) WithTimeout

WithTimeout adds the timeout to the index orders for member params

func (*IndexOrdersForMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type IndexOrdersForMemberReader

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

IndexOrdersForMemberReader is a Reader for the IndexOrdersForMember structure.

func (*IndexOrdersForMemberReader) ReadResponse

func (o *IndexOrdersForMemberReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type IndexOrdersForMemberUnauthorized

type IndexOrdersForMemberUnauthorized struct {
}

IndexOrdersForMemberUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewIndexOrdersForMemberUnauthorized

func NewIndexOrdersForMemberUnauthorized() *IndexOrdersForMemberUnauthorized

NewIndexOrdersForMemberUnauthorized creates a IndexOrdersForMemberUnauthorized with default headers values

func (*IndexOrdersForMemberUnauthorized) Error

type PostRevisionBadRequest

type PostRevisionBadRequest struct {
}

PostRevisionBadRequest handles this case with default header values.

Invalid

func NewPostRevisionBadRequest

func NewPostRevisionBadRequest() *PostRevisionBadRequest

NewPostRevisionBadRequest creates a PostRevisionBadRequest with default headers values

func (*PostRevisionBadRequest) Error

func (o *PostRevisionBadRequest) Error() string

type PostRevisionConflict

type PostRevisionConflict struct {
}

PostRevisionConflict handles this case with default header values.

Conflict

func NewPostRevisionConflict

func NewPostRevisionConflict() *PostRevisionConflict

NewPostRevisionConflict creates a PostRevisionConflict with default headers values

func (*PostRevisionConflict) Error

func (o *PostRevisionConflict) Error() string

type PostRevisionCreated

type PostRevisionCreated struct {
	Payload *ordersmessages.Orders
}

PostRevisionCreated handles this case with default header values.

Created

func NewPostRevisionCreated

func NewPostRevisionCreated() *PostRevisionCreated

NewPostRevisionCreated creates a PostRevisionCreated with default headers values

func (*PostRevisionCreated) Error

func (o *PostRevisionCreated) Error() string

func (*PostRevisionCreated) GetPayload

func (o *PostRevisionCreated) GetPayload() *ordersmessages.Orders

type PostRevisionForbidden

type PostRevisionForbidden struct {
}

PostRevisionForbidden handles this case with default header values.

Forbidden

func NewPostRevisionForbidden

func NewPostRevisionForbidden() *PostRevisionForbidden

NewPostRevisionForbidden creates a PostRevisionForbidden with default headers values

func (*PostRevisionForbidden) Error

func (o *PostRevisionForbidden) Error() string

type PostRevisionInternalServerError

type PostRevisionInternalServerError struct {
}

PostRevisionInternalServerError handles this case with default header values.

Server error

func NewPostRevisionInternalServerError

func NewPostRevisionInternalServerError() *PostRevisionInternalServerError

NewPostRevisionInternalServerError creates a PostRevisionInternalServerError with default headers values

func (*PostRevisionInternalServerError) Error

type PostRevisionNotFound

type PostRevisionNotFound struct {
}

PostRevisionNotFound handles this case with default header values.

Not Found

func NewPostRevisionNotFound

func NewPostRevisionNotFound() *PostRevisionNotFound

NewPostRevisionNotFound creates a PostRevisionNotFound with default headers values

func (*PostRevisionNotFound) Error

func (o *PostRevisionNotFound) Error() string

type PostRevisionParams

type PostRevisionParams struct {

	/*Issuer
	  Organization that issued the Orders.

	*/
	Issuer string
	/*MemberID
	  Electronic Data Interchange Personal Identifier of the member (preferred). If the member's EDIPI is unknown, then the Social Security Number may be provided instead.


	*/
	MemberID string
	/*OrdersNum
	  Orders number, corresponding to the ORDERS number (Army), the CT SDN (Navy, Marines), the SPECIAL ORDER NO (Air Force), the Travel Order No (Coast Guard), or the Travel Authorization Number (Civilian).

	*/
	OrdersNum string
	/*Revision*/
	Revision *ordersmessages.Revision

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostRevisionParams contains all the parameters to send to the API endpoint for the post revision operation typically these are written to a http.Request

func NewPostRevisionParams

func NewPostRevisionParams() *PostRevisionParams

NewPostRevisionParams creates a new PostRevisionParams object with the default values initialized.

func NewPostRevisionParamsWithContext

func NewPostRevisionParamsWithContext(ctx context.Context) *PostRevisionParams

NewPostRevisionParamsWithContext creates a new PostRevisionParams object with the default values initialized, and the ability to set a context for a request

func NewPostRevisionParamsWithHTTPClient

func NewPostRevisionParamsWithHTTPClient(client *http.Client) *PostRevisionParams

NewPostRevisionParamsWithHTTPClient creates a new PostRevisionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostRevisionParamsWithTimeout

func NewPostRevisionParamsWithTimeout(timeout time.Duration) *PostRevisionParams

NewPostRevisionParamsWithTimeout creates a new PostRevisionParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostRevisionParams) SetContext

func (o *PostRevisionParams) SetContext(ctx context.Context)

SetContext adds the context to the post revision params

func (*PostRevisionParams) SetHTTPClient

func (o *PostRevisionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post revision params

func (*PostRevisionParams) SetIssuer

func (o *PostRevisionParams) SetIssuer(issuer string)

SetIssuer adds the issuer to the post revision params

func (*PostRevisionParams) SetMemberID

func (o *PostRevisionParams) SetMemberID(memberID string)

SetMemberID adds the memberId to the post revision params

func (*PostRevisionParams) SetOrdersNum

func (o *PostRevisionParams) SetOrdersNum(ordersNum string)

SetOrdersNum adds the ordersNum to the post revision params

func (*PostRevisionParams) SetRevision

func (o *PostRevisionParams) SetRevision(revision *ordersmessages.Revision)

SetRevision adds the revision to the post revision params

func (*PostRevisionParams) SetTimeout

func (o *PostRevisionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post revision params

func (*PostRevisionParams) WithContext

WithContext adds the context to the post revision params

func (*PostRevisionParams) WithHTTPClient

func (o *PostRevisionParams) WithHTTPClient(client *http.Client) *PostRevisionParams

WithHTTPClient adds the HTTPClient to the post revision params

func (*PostRevisionParams) WithIssuer

func (o *PostRevisionParams) WithIssuer(issuer string) *PostRevisionParams

WithIssuer adds the issuer to the post revision params

func (*PostRevisionParams) WithMemberID

func (o *PostRevisionParams) WithMemberID(memberID string) *PostRevisionParams

WithMemberID adds the memberID to the post revision params

func (*PostRevisionParams) WithOrdersNum

func (o *PostRevisionParams) WithOrdersNum(ordersNum string) *PostRevisionParams

WithOrdersNum adds the ordersNum to the post revision params

func (*PostRevisionParams) WithRevision

func (o *PostRevisionParams) WithRevision(revision *ordersmessages.Revision) *PostRevisionParams

WithRevision adds the revision to the post revision params

func (*PostRevisionParams) WithTimeout

func (o *PostRevisionParams) WithTimeout(timeout time.Duration) *PostRevisionParams

WithTimeout adds the timeout to the post revision params

func (*PostRevisionParams) WriteToRequest

func (o *PostRevisionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostRevisionReader

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

PostRevisionReader is a Reader for the PostRevision structure.

func (*PostRevisionReader) ReadResponse

func (o *PostRevisionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostRevisionToOrdersBadRequest

type PostRevisionToOrdersBadRequest struct {
}

PostRevisionToOrdersBadRequest handles this case with default header values.

Invalid

func NewPostRevisionToOrdersBadRequest

func NewPostRevisionToOrdersBadRequest() *PostRevisionToOrdersBadRequest

NewPostRevisionToOrdersBadRequest creates a PostRevisionToOrdersBadRequest with default headers values

func (*PostRevisionToOrdersBadRequest) Error

type PostRevisionToOrdersConflict

type PostRevisionToOrdersConflict struct {
}

PostRevisionToOrdersConflict handles this case with default header values.

Conflict

func NewPostRevisionToOrdersConflict

func NewPostRevisionToOrdersConflict() *PostRevisionToOrdersConflict

NewPostRevisionToOrdersConflict creates a PostRevisionToOrdersConflict with default headers values

func (*PostRevisionToOrdersConflict) Error

type PostRevisionToOrdersCreated

type PostRevisionToOrdersCreated struct {
	Payload *ordersmessages.Orders
}

PostRevisionToOrdersCreated handles this case with default header values.

Created

func NewPostRevisionToOrdersCreated

func NewPostRevisionToOrdersCreated() *PostRevisionToOrdersCreated

NewPostRevisionToOrdersCreated creates a PostRevisionToOrdersCreated with default headers values

func (*PostRevisionToOrdersCreated) Error

func (*PostRevisionToOrdersCreated) GetPayload

type PostRevisionToOrdersForbidden

type PostRevisionToOrdersForbidden struct {
}

PostRevisionToOrdersForbidden handles this case with default header values.

Forbidden

func NewPostRevisionToOrdersForbidden

func NewPostRevisionToOrdersForbidden() *PostRevisionToOrdersForbidden

NewPostRevisionToOrdersForbidden creates a PostRevisionToOrdersForbidden with default headers values

func (*PostRevisionToOrdersForbidden) Error

type PostRevisionToOrdersInternalServerError

type PostRevisionToOrdersInternalServerError struct {
}

PostRevisionToOrdersInternalServerError handles this case with default header values.

Server error

func NewPostRevisionToOrdersInternalServerError

func NewPostRevisionToOrdersInternalServerError() *PostRevisionToOrdersInternalServerError

NewPostRevisionToOrdersInternalServerError creates a PostRevisionToOrdersInternalServerError with default headers values

func (*PostRevisionToOrdersInternalServerError) Error

type PostRevisionToOrdersNotFound

type PostRevisionToOrdersNotFound struct {
}

PostRevisionToOrdersNotFound handles this case with default header values.

Orders not found

func NewPostRevisionToOrdersNotFound

func NewPostRevisionToOrdersNotFound() *PostRevisionToOrdersNotFound

NewPostRevisionToOrdersNotFound creates a PostRevisionToOrdersNotFound with default headers values

func (*PostRevisionToOrdersNotFound) Error

type PostRevisionToOrdersParams

type PostRevisionToOrdersParams struct {

	/*Revision*/
	Revision *ordersmessages.Revision
	/*UUID
	  UUID of the orders to amend

	*/
	UUID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostRevisionToOrdersParams contains all the parameters to send to the API endpoint for the post revision to orders operation typically these are written to a http.Request

func NewPostRevisionToOrdersParams

func NewPostRevisionToOrdersParams() *PostRevisionToOrdersParams

NewPostRevisionToOrdersParams creates a new PostRevisionToOrdersParams object with the default values initialized.

func NewPostRevisionToOrdersParamsWithContext

func NewPostRevisionToOrdersParamsWithContext(ctx context.Context) *PostRevisionToOrdersParams

NewPostRevisionToOrdersParamsWithContext creates a new PostRevisionToOrdersParams object with the default values initialized, and the ability to set a context for a request

func NewPostRevisionToOrdersParamsWithHTTPClient

func NewPostRevisionToOrdersParamsWithHTTPClient(client *http.Client) *PostRevisionToOrdersParams

NewPostRevisionToOrdersParamsWithHTTPClient creates a new PostRevisionToOrdersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostRevisionToOrdersParamsWithTimeout

func NewPostRevisionToOrdersParamsWithTimeout(timeout time.Duration) *PostRevisionToOrdersParams

NewPostRevisionToOrdersParamsWithTimeout creates a new PostRevisionToOrdersParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostRevisionToOrdersParams) SetContext

func (o *PostRevisionToOrdersParams) SetContext(ctx context.Context)

SetContext adds the context to the post revision to orders params

func (*PostRevisionToOrdersParams) SetHTTPClient

func (o *PostRevisionToOrdersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post revision to orders params

func (*PostRevisionToOrdersParams) SetRevision

func (o *PostRevisionToOrdersParams) SetRevision(revision *ordersmessages.Revision)

SetRevision adds the revision to the post revision to orders params

func (*PostRevisionToOrdersParams) SetTimeout

func (o *PostRevisionToOrdersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post revision to orders params

func (*PostRevisionToOrdersParams) SetUUID

func (o *PostRevisionToOrdersParams) SetUUID(uuid strfmt.UUID)

SetUUID adds the uuid to the post revision to orders params

func (*PostRevisionToOrdersParams) WithContext

WithContext adds the context to the post revision to orders params

func (*PostRevisionToOrdersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post revision to orders params

func (*PostRevisionToOrdersParams) WithRevision

WithRevision adds the revision to the post revision to orders params

func (*PostRevisionToOrdersParams) WithTimeout

WithTimeout adds the timeout to the post revision to orders params

func (*PostRevisionToOrdersParams) WithUUID

WithUUID adds the uuid to the post revision to orders params

func (*PostRevisionToOrdersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostRevisionToOrdersReader

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

PostRevisionToOrdersReader is a Reader for the PostRevisionToOrders structure.

func (*PostRevisionToOrdersReader) ReadResponse

func (o *PostRevisionToOrdersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostRevisionToOrdersUnauthorized

type PostRevisionToOrdersUnauthorized struct {
}

PostRevisionToOrdersUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewPostRevisionToOrdersUnauthorized

func NewPostRevisionToOrdersUnauthorized() *PostRevisionToOrdersUnauthorized

NewPostRevisionToOrdersUnauthorized creates a PostRevisionToOrdersUnauthorized with default headers values

func (*PostRevisionToOrdersUnauthorized) Error

type PostRevisionUnauthorized

type PostRevisionUnauthorized struct {
}

PostRevisionUnauthorized handles this case with default header values.

must be authenticated to use this endpoint

func NewPostRevisionUnauthorized

func NewPostRevisionUnauthorized() *PostRevisionUnauthorized

NewPostRevisionUnauthorized creates a PostRevisionUnauthorized with default headers values

func (*PostRevisionUnauthorized) Error

func (o *PostRevisionUnauthorized) Error() string

Jump to

Keyboard shortcuts

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