mto_service_item

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

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

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

Documentation

Index

Constants

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 mto service item API

func (*Client) CreateMTOServiceItem

func (a *Client) CreateMTOServiceItem(params *CreateMTOServiceItemParams, opts ...ClientOption) (*CreateMTOServiceItemOK, error)
CreateMTOServiceItem creates m t o service item

Creates one or more MTOServiceItems. Not all service items may be created, please see details below.

This endpoint supports different body definitions. In the modelType field below, select the modelType corresponding

to the service item you wish to create and the documentation will update with the new definition.

Upon creation these items are associated with a Move Task Order and an MTO Shipment. The request must include UUIDs for the MTO and MTO Shipment connected to this service item. Some service item types require additional service items to be autogenerated when added - all created service items, autogenerated included, will be returned in the response.

To update a service item, please use [updateMTOServiceItem](#operation/updateMTOServiceItem) endpoint.

---

**`MTOServiceItemOriginSIT`**

MTOServiceItemOriginSIT is a subtype of MTOServiceItem.

This model type describes a domestic origin SIT service item. Items can be created using this model type with the following codes:

**DOFSIT**

**1st day origin SIT service item**. When a DOFSIT is requested, the API will auto-create the following group of service items:

  • DOFSIT - Domestic origin 1st day SIT
  • DOASIT - Domestic origin Additional day SIT
  • DOPSIT - Domestic origin SIT pickup
  • DOSFSC - Domestic origin SIT fuel surcharge

**DOASIT**

**Addt'l days origin SIT service item**. This represents an additional day of storage for the same item. Additional DOASIT service items can be created and added to an existing shipment that **includes a DOFSIT service item**.

---

**`MTOServiceItemDestSIT`**

MTOServiceItemDestSIT is a subtype of MTOServiceItem.

This model type describes a domestic destination SIT service item. Items can be created using this model type with the following codes:

**DDFSIT**

**1st day destination SIT service item**.

These additional fields are optional for creating a DDFSIT:

  • `firstAvailableDeliveryDate1`
  • string <date>
  • First available date that Prime can deliver SIT service item.
  • firstAvailableDeliveryDate1, dateOfContact1, and timeMilitary1 are required together
  • `dateOfContact1`
  • string <date>
  • Date of attempted contact by the prime corresponding to `timeMilitary1`
  • dateOfContact1, timeMilitary1, and firstAvailableDeliveryDate1 are required together
  • `timeMilitary1`
  • string\d{4}Z
  • Time of attempted contact corresponding to `dateOfContact1`, in military format.
  • timeMilitary1, dateOfContact1, and firstAvailableDeliveryDate1 are required together
  • `firstAvailableDeliveryDate2`
  • string <date>
  • Second available date that Prime can deliver SIT service item.
  • firstAvailableDeliveryDate2, dateOfContact2, and timeMilitary2 are required together
  • `dateOfContact2`
  • string <date>
  • Date of attempted contact delivery by the prime corresponding to `timeMilitary2`
  • dateOfContact2, timeMilitary2, and firstAvailableDeliveryDate2 are required together
  • `timeMilitary2`
  • string\d{4}Z
  • Time of attempted contact corresponding to `dateOfContact2`, in military format.
  • timeMilitary2, dateOfContact2, and firstAvailableDeliveryDate2 are required together

When a DDFSIT is requested, the API will auto-create the following group of service items:

  • DDFSIT - Domestic destination 1st day SIT
  • DDASIT - Domestic destination Additional day SIT
  • DDDSIT - Domestic destination SIT delivery
  • DDSFSC - Domestic destination SIT fuel surcharge

**NOTE** When providing the `sitEntryDate` value in the payload, please ensure that the date is not BEFORE `firstAvailableDeliveryDate1` or `firstAvailableDeliveryDate2`. If it is, you will receive an error response.

**DDASIT**

**Addt'l days destination SIT service item**. This represents an additional day of storage for the same item. Additional DDASIT service items can be created and added to an existing shipment that **includes a DDFSIT service item**.

func (*Client) CreateServiceRequestDocumentUpload

func (a *Client) CreateServiceRequestDocumentUpload(params *CreateServiceRequestDocumentUploadParams, opts ...ClientOption) (*CreateServiceRequestDocumentUploadCreated, error)
CreateServiceRequestDocumentUpload creates service request document upload

### Functionality

This endpoint **uploads** a Service Request document for a ServiceItem.

The ServiceItem should already exist.

ServiceItems are created with the [createMTOServiceItem](#operation/createMTOServiceItem) endpoint.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateMTOServiceItem

func (a *Client) UpdateMTOServiceItem(params *UpdateMTOServiceItemParams, opts ...ClientOption) (*UpdateMTOServiceItemOK, error)
UpdateMTOServiceItem updates m t o service item

Updates MTOServiceItems after creation. Not all service items or fields may be updated, please see details below.

This endpoint supports different body definitions. In the modelType field below, select the modelType corresponding

to the service item you wish to update and the documentation will update with the new definition.

* Addresses: To update a destination service item's SIT destination final address, update the shipment destination address. For approved shipments, please use [updateShipmentDestinationAddress](#mtoShipment/updateShipmentDestinationAddress). For shipments not yet approved, please use [updateMTOShipmentAddress](#mtoShipment/updateMTOShipmentAddress).

* SIT Service Items: Take note that when updating `sitCustomerContacted`, `sitDepartureDate`, or `sitRequestedDelivery`, we want those to be updated on `DOASIT` (for origin SIT) and `DDASIT` (for destination SIT). If updating those values in other service items, the office users will not have as much attention to those values.

To create a service item, please use [createMTOServiceItem](#mtoServiceItem/createMTOServiceItem)) endpoint.

* Resubmitting rejected SIT service items: This endpoint will handle the logic of changing the status of rejected SIT service items from REJECTED to SUBMITTED. Please provide the `requestedApprovalsRequestedStatus: true` when resubmitting as this will give attention to the TOO to review the resubmitted SIT service item. Another note, `updateReason` must have a different value than the current `reason` value on the service item. If this value is not updated, then an error will be sent back.

The following SIT service items can be resubmitted following a rejection: - DDASIT - DDDSIT - DDFSIT - DOASIT - DOPSIT - DOFSIT - DDSFSC - DOSFSC

At a MINIMUM, the payload for resubmitting a rejected SIT service item must look like this: ```json

{
  "reServiceCode": "DDFSIT",
  "updateReason": "A reason that differs from the previous reason",
  "modelType": "UpdateMTOServiceItemSIT",
  "requestApprovalsRequestedStatus": true
}

```

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateMTOServiceItem(params *CreateMTOServiceItemParams, opts ...ClientOption) (*CreateMTOServiceItemOK, error)

	CreateServiceRequestDocumentUpload(params *CreateServiceRequestDocumentUploadParams, opts ...ClientOption) (*CreateServiceRequestDocumentUploadCreated, error)

	UpdateMTOServiceItem(params *UpdateMTOServiceItemParams, opts ...ClientOption) (*UpdateMTOServiceItemOK, 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 mto service item API client.

type CreateMTOServiceItemBadRequest

type CreateMTOServiceItemBadRequest struct {
	Payload *primemessages.ClientError
}

CreateMTOServiceItemBadRequest describes a response with status code 400, with default header values.

The request payload is invalid.

func NewCreateMTOServiceItemBadRequest

func NewCreateMTOServiceItemBadRequest() *CreateMTOServiceItemBadRequest

NewCreateMTOServiceItemBadRequest creates a CreateMTOServiceItemBadRequest with default headers values

func (*CreateMTOServiceItemBadRequest) Code

Code gets the status code for the create m t o service item bad request response

func (*CreateMTOServiceItemBadRequest) Error

func (*CreateMTOServiceItemBadRequest) GetPayload

func (*CreateMTOServiceItemBadRequest) IsClientError

func (o *CreateMTOServiceItemBadRequest) IsClientError() bool

IsClientError returns true when this create m t o service item bad request response has a 4xx status code

func (*CreateMTOServiceItemBadRequest) IsCode

func (o *CreateMTOServiceItemBadRequest) IsCode(code int) bool

IsCode returns true when this create m t o service item bad request response a status code equal to that given

func (*CreateMTOServiceItemBadRequest) IsRedirect

func (o *CreateMTOServiceItemBadRequest) IsRedirect() bool

IsRedirect returns true when this create m t o service item bad request response has a 3xx status code

func (*CreateMTOServiceItemBadRequest) IsServerError

func (o *CreateMTOServiceItemBadRequest) IsServerError() bool

IsServerError returns true when this create m t o service item bad request response has a 5xx status code

func (*CreateMTOServiceItemBadRequest) IsSuccess

func (o *CreateMTOServiceItemBadRequest) IsSuccess() bool

IsSuccess returns true when this create m t o service item bad request response has a 2xx status code

func (*CreateMTOServiceItemBadRequest) String

type CreateMTOServiceItemConflict

type CreateMTOServiceItemConflict struct {
	Payload *primemessages.ClientError
}

CreateMTOServiceItemConflict describes a response with status code 409, with default header values.

The request could not be processed because of conflict in the current state of the resource.

func NewCreateMTOServiceItemConflict

func NewCreateMTOServiceItemConflict() *CreateMTOServiceItemConflict

NewCreateMTOServiceItemConflict creates a CreateMTOServiceItemConflict with default headers values

func (*CreateMTOServiceItemConflict) Code

Code gets the status code for the create m t o service item conflict response

func (*CreateMTOServiceItemConflict) Error

func (*CreateMTOServiceItemConflict) GetPayload

func (*CreateMTOServiceItemConflict) IsClientError

func (o *CreateMTOServiceItemConflict) IsClientError() bool

IsClientError returns true when this create m t o service item conflict response has a 4xx status code

func (*CreateMTOServiceItemConflict) IsCode

func (o *CreateMTOServiceItemConflict) IsCode(code int) bool

IsCode returns true when this create m t o service item conflict response a status code equal to that given

func (*CreateMTOServiceItemConflict) IsRedirect

func (o *CreateMTOServiceItemConflict) IsRedirect() bool

IsRedirect returns true when this create m t o service item conflict response has a 3xx status code

func (*CreateMTOServiceItemConflict) IsServerError

func (o *CreateMTOServiceItemConflict) IsServerError() bool

IsServerError returns true when this create m t o service item conflict response has a 5xx status code

func (*CreateMTOServiceItemConflict) IsSuccess

func (o *CreateMTOServiceItemConflict) IsSuccess() bool

IsSuccess returns true when this create m t o service item conflict response has a 2xx status code

func (*CreateMTOServiceItemConflict) String

type CreateMTOServiceItemForbidden

type CreateMTOServiceItemForbidden struct {
	Payload *primemessages.ClientError
}

CreateMTOServiceItemForbidden describes a response with status code 403, with default header values.

The request was denied.

func NewCreateMTOServiceItemForbidden

func NewCreateMTOServiceItemForbidden() *CreateMTOServiceItemForbidden

NewCreateMTOServiceItemForbidden creates a CreateMTOServiceItemForbidden with default headers values

func (*CreateMTOServiceItemForbidden) Code

Code gets the status code for the create m t o service item forbidden response

func (*CreateMTOServiceItemForbidden) Error

func (*CreateMTOServiceItemForbidden) GetPayload

func (*CreateMTOServiceItemForbidden) IsClientError

func (o *CreateMTOServiceItemForbidden) IsClientError() bool

IsClientError returns true when this create m t o service item forbidden response has a 4xx status code

func (*CreateMTOServiceItemForbidden) IsCode

func (o *CreateMTOServiceItemForbidden) IsCode(code int) bool

IsCode returns true when this create m t o service item forbidden response a status code equal to that given

func (*CreateMTOServiceItemForbidden) IsRedirect

func (o *CreateMTOServiceItemForbidden) IsRedirect() bool

IsRedirect returns true when this create m t o service item forbidden response has a 3xx status code

func (*CreateMTOServiceItemForbidden) IsServerError

func (o *CreateMTOServiceItemForbidden) IsServerError() bool

IsServerError returns true when this create m t o service item forbidden response has a 5xx status code

func (*CreateMTOServiceItemForbidden) IsSuccess

func (o *CreateMTOServiceItemForbidden) IsSuccess() bool

IsSuccess returns true when this create m t o service item forbidden response has a 2xx status code

func (*CreateMTOServiceItemForbidden) String

type CreateMTOServiceItemInternalServerError

type CreateMTOServiceItemInternalServerError struct {
	Payload *primemessages.Error
}

CreateMTOServiceItemInternalServerError describes a response with status code 500, with default header values.

A server error occurred.

func NewCreateMTOServiceItemInternalServerError

func NewCreateMTOServiceItemInternalServerError() *CreateMTOServiceItemInternalServerError

NewCreateMTOServiceItemInternalServerError creates a CreateMTOServiceItemInternalServerError with default headers values

func (*CreateMTOServiceItemInternalServerError) Code

Code gets the status code for the create m t o service item internal server error response

func (*CreateMTOServiceItemInternalServerError) Error

func (*CreateMTOServiceItemInternalServerError) GetPayload

func (*CreateMTOServiceItemInternalServerError) IsClientError

func (o *CreateMTOServiceItemInternalServerError) IsClientError() bool

IsClientError returns true when this create m t o service item internal server error response has a 4xx status code

func (*CreateMTOServiceItemInternalServerError) IsCode

IsCode returns true when this create m t o service item internal server error response a status code equal to that given

func (*CreateMTOServiceItemInternalServerError) IsRedirect

IsRedirect returns true when this create m t o service item internal server error response has a 3xx status code

func (*CreateMTOServiceItemInternalServerError) IsServerError

func (o *CreateMTOServiceItemInternalServerError) IsServerError() bool

IsServerError returns true when this create m t o service item internal server error response has a 5xx status code

func (*CreateMTOServiceItemInternalServerError) IsSuccess

IsSuccess returns true when this create m t o service item internal server error response has a 2xx status code

func (*CreateMTOServiceItemInternalServerError) String

type CreateMTOServiceItemNotFound

type CreateMTOServiceItemNotFound struct {
	Payload *primemessages.ClientError
}

CreateMTOServiceItemNotFound describes a response with status code 404, with default header values.

The requested resource wasn't found.

func NewCreateMTOServiceItemNotFound

func NewCreateMTOServiceItemNotFound() *CreateMTOServiceItemNotFound

NewCreateMTOServiceItemNotFound creates a CreateMTOServiceItemNotFound with default headers values

func (*CreateMTOServiceItemNotFound) Code

Code gets the status code for the create m t o service item not found response

func (*CreateMTOServiceItemNotFound) Error

func (*CreateMTOServiceItemNotFound) GetPayload

func (*CreateMTOServiceItemNotFound) IsClientError

func (o *CreateMTOServiceItemNotFound) IsClientError() bool

IsClientError returns true when this create m t o service item not found response has a 4xx status code

func (*CreateMTOServiceItemNotFound) IsCode

func (o *CreateMTOServiceItemNotFound) IsCode(code int) bool

IsCode returns true when this create m t o service item not found response a status code equal to that given

func (*CreateMTOServiceItemNotFound) IsRedirect

func (o *CreateMTOServiceItemNotFound) IsRedirect() bool

IsRedirect returns true when this create m t o service item not found response has a 3xx status code

func (*CreateMTOServiceItemNotFound) IsServerError

func (o *CreateMTOServiceItemNotFound) IsServerError() bool

IsServerError returns true when this create m t o service item not found response has a 5xx status code

func (*CreateMTOServiceItemNotFound) IsSuccess

func (o *CreateMTOServiceItemNotFound) IsSuccess() bool

IsSuccess returns true when this create m t o service item not found response has a 2xx status code

func (*CreateMTOServiceItemNotFound) String

type CreateMTOServiceItemOK

type CreateMTOServiceItemOK struct {
	Payload []primemessages.MTOServiceItem
}

CreateMTOServiceItemOK describes a response with status code 200, with default header values.

Successfully created an MTO service item.

func NewCreateMTOServiceItemOK

func NewCreateMTOServiceItemOK() *CreateMTOServiceItemOK

NewCreateMTOServiceItemOK creates a CreateMTOServiceItemOK with default headers values

func (*CreateMTOServiceItemOK) Code

func (o *CreateMTOServiceItemOK) Code() int

Code gets the status code for the create m t o service item o k response

func (*CreateMTOServiceItemOK) Error

func (o *CreateMTOServiceItemOK) Error() string

func (*CreateMTOServiceItemOK) GetPayload

func (*CreateMTOServiceItemOK) IsClientError

func (o *CreateMTOServiceItemOK) IsClientError() bool

IsClientError returns true when this create m t o service item o k response has a 4xx status code

func (*CreateMTOServiceItemOK) IsCode

func (o *CreateMTOServiceItemOK) IsCode(code int) bool

IsCode returns true when this create m t o service item o k response a status code equal to that given

func (*CreateMTOServiceItemOK) IsRedirect

func (o *CreateMTOServiceItemOK) IsRedirect() bool

IsRedirect returns true when this create m t o service item o k response has a 3xx status code

func (*CreateMTOServiceItemOK) IsServerError

func (o *CreateMTOServiceItemOK) IsServerError() bool

IsServerError returns true when this create m t o service item o k response has a 5xx status code

func (*CreateMTOServiceItemOK) IsSuccess

func (o *CreateMTOServiceItemOK) IsSuccess() bool

IsSuccess returns true when this create m t o service item o k response has a 2xx status code

func (*CreateMTOServiceItemOK) String

func (o *CreateMTOServiceItemOK) String() string

type CreateMTOServiceItemParams

type CreateMTOServiceItemParams struct {

	// Body.
	Body primemessages.MTOServiceItem

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

CreateMTOServiceItemParams contains all the parameters to send to the API endpoint

for the create m t o service item operation.

Typically these are written to a http.Request.

func NewCreateMTOServiceItemParams

func NewCreateMTOServiceItemParams() *CreateMTOServiceItemParams

NewCreateMTOServiceItemParams creates a new CreateMTOServiceItemParams 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 NewCreateMTOServiceItemParamsWithContext

func NewCreateMTOServiceItemParamsWithContext(ctx context.Context) *CreateMTOServiceItemParams

NewCreateMTOServiceItemParamsWithContext creates a new CreateMTOServiceItemParams object with the ability to set a context for a request.

func NewCreateMTOServiceItemParamsWithHTTPClient

func NewCreateMTOServiceItemParamsWithHTTPClient(client *http.Client) *CreateMTOServiceItemParams

NewCreateMTOServiceItemParamsWithHTTPClient creates a new CreateMTOServiceItemParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMTOServiceItemParamsWithTimeout

func NewCreateMTOServiceItemParamsWithTimeout(timeout time.Duration) *CreateMTOServiceItemParams

NewCreateMTOServiceItemParamsWithTimeout creates a new CreateMTOServiceItemParams object with the ability to set a timeout on a request.

func (*CreateMTOServiceItemParams) SetBody

SetBody adds the body to the create m t o service item params

func (*CreateMTOServiceItemParams) SetContext

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

SetContext adds the context to the create m t o service item params

func (*CreateMTOServiceItemParams) SetDefaults

func (o *CreateMTOServiceItemParams) SetDefaults()

SetDefaults hydrates default values in the create m t o service item params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMTOServiceItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create m t o service item params

func (*CreateMTOServiceItemParams) SetTimeout

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

SetTimeout adds the timeout to the create m t o service item params

func (*CreateMTOServiceItemParams) WithBody

WithBody adds the body to the create m t o service item params

func (*CreateMTOServiceItemParams) WithContext

WithContext adds the context to the create m t o service item params

func (*CreateMTOServiceItemParams) WithDefaults

WithDefaults hydrates default values in the create m t o service item params (not the query body).

All values with no default are reset to their zero value.

func (*CreateMTOServiceItemParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create m t o service item params

func (*CreateMTOServiceItemParams) WithTimeout

WithTimeout adds the timeout to the create m t o service item params

func (*CreateMTOServiceItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMTOServiceItemReader

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

CreateMTOServiceItemReader is a Reader for the CreateMTOServiceItem structure.

func (*CreateMTOServiceItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateMTOServiceItemUnauthorized

type CreateMTOServiceItemUnauthorized struct {
	Payload *primemessages.ClientError
}

CreateMTOServiceItemUnauthorized describes a response with status code 401, with default header values.

The request was denied.

func NewCreateMTOServiceItemUnauthorized

func NewCreateMTOServiceItemUnauthorized() *CreateMTOServiceItemUnauthorized

NewCreateMTOServiceItemUnauthorized creates a CreateMTOServiceItemUnauthorized with default headers values

func (*CreateMTOServiceItemUnauthorized) Code

Code gets the status code for the create m t o service item unauthorized response

func (*CreateMTOServiceItemUnauthorized) Error

func (*CreateMTOServiceItemUnauthorized) GetPayload

func (*CreateMTOServiceItemUnauthorized) IsClientError

func (o *CreateMTOServiceItemUnauthorized) IsClientError() bool

IsClientError returns true when this create m t o service item unauthorized response has a 4xx status code

func (*CreateMTOServiceItemUnauthorized) IsCode

func (o *CreateMTOServiceItemUnauthorized) IsCode(code int) bool

IsCode returns true when this create m t o service item unauthorized response a status code equal to that given

func (*CreateMTOServiceItemUnauthorized) IsRedirect

func (o *CreateMTOServiceItemUnauthorized) IsRedirect() bool

IsRedirect returns true when this create m t o service item unauthorized response has a 3xx status code

func (*CreateMTOServiceItemUnauthorized) IsServerError

func (o *CreateMTOServiceItemUnauthorized) IsServerError() bool

IsServerError returns true when this create m t o service item unauthorized response has a 5xx status code

func (*CreateMTOServiceItemUnauthorized) IsSuccess

func (o *CreateMTOServiceItemUnauthorized) IsSuccess() bool

IsSuccess returns true when this create m t o service item unauthorized response has a 2xx status code

func (*CreateMTOServiceItemUnauthorized) String

type CreateMTOServiceItemUnprocessableEntity

type CreateMTOServiceItemUnprocessableEntity struct {
	Payload *primemessages.ValidationError
}

CreateMTOServiceItemUnprocessableEntity describes a response with status code 422, with default header values.

The request was unprocessable, likely due to bad input from the requester.

func NewCreateMTOServiceItemUnprocessableEntity

func NewCreateMTOServiceItemUnprocessableEntity() *CreateMTOServiceItemUnprocessableEntity

NewCreateMTOServiceItemUnprocessableEntity creates a CreateMTOServiceItemUnprocessableEntity with default headers values

func (*CreateMTOServiceItemUnprocessableEntity) Code

Code gets the status code for the create m t o service item unprocessable entity response

func (*CreateMTOServiceItemUnprocessableEntity) Error

func (*CreateMTOServiceItemUnprocessableEntity) GetPayload

func (*CreateMTOServiceItemUnprocessableEntity) IsClientError

func (o *CreateMTOServiceItemUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create m t o service item unprocessable entity response has a 4xx status code

func (*CreateMTOServiceItemUnprocessableEntity) IsCode

IsCode returns true when this create m t o service item unprocessable entity response a status code equal to that given

func (*CreateMTOServiceItemUnprocessableEntity) IsRedirect

IsRedirect returns true when this create m t o service item unprocessable entity response has a 3xx status code

func (*CreateMTOServiceItemUnprocessableEntity) IsServerError

func (o *CreateMTOServiceItemUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create m t o service item unprocessable entity response has a 5xx status code

func (*CreateMTOServiceItemUnprocessableEntity) IsSuccess

IsSuccess returns true when this create m t o service item unprocessable entity response has a 2xx status code

func (*CreateMTOServiceItemUnprocessableEntity) String

type CreateServiceRequestDocumentUploadBadRequest

type CreateServiceRequestDocumentUploadBadRequest struct {
	Payload *primemessages.ClientError
}

CreateServiceRequestDocumentUploadBadRequest describes a response with status code 400, with default header values.

The request payload is invalid.

func NewCreateServiceRequestDocumentUploadBadRequest

func NewCreateServiceRequestDocumentUploadBadRequest() *CreateServiceRequestDocumentUploadBadRequest

NewCreateServiceRequestDocumentUploadBadRequest creates a CreateServiceRequestDocumentUploadBadRequest with default headers values

func (*CreateServiceRequestDocumentUploadBadRequest) Code

Code gets the status code for the create service request document upload bad request response

func (*CreateServiceRequestDocumentUploadBadRequest) Error

func (*CreateServiceRequestDocumentUploadBadRequest) GetPayload

func (*CreateServiceRequestDocumentUploadBadRequest) IsClientError

IsClientError returns true when this create service request document upload bad request response has a 4xx status code

func (*CreateServiceRequestDocumentUploadBadRequest) IsCode

IsCode returns true when this create service request document upload bad request response a status code equal to that given

func (*CreateServiceRequestDocumentUploadBadRequest) IsRedirect

IsRedirect returns true when this create service request document upload bad request response has a 3xx status code

func (*CreateServiceRequestDocumentUploadBadRequest) IsServerError

IsServerError returns true when this create service request document upload bad request response has a 5xx status code

func (*CreateServiceRequestDocumentUploadBadRequest) IsSuccess

IsSuccess returns true when this create service request document upload bad request response has a 2xx status code

func (*CreateServiceRequestDocumentUploadBadRequest) String

type CreateServiceRequestDocumentUploadCreated

type CreateServiceRequestDocumentUploadCreated struct {
	Payload *primemessages.UploadWithOmissions
}

CreateServiceRequestDocumentUploadCreated describes a response with status code 201, with default header values.

Successfully created upload of digital file.

func NewCreateServiceRequestDocumentUploadCreated

func NewCreateServiceRequestDocumentUploadCreated() *CreateServiceRequestDocumentUploadCreated

NewCreateServiceRequestDocumentUploadCreated creates a CreateServiceRequestDocumentUploadCreated with default headers values

func (*CreateServiceRequestDocumentUploadCreated) Code

Code gets the status code for the create service request document upload created response

func (*CreateServiceRequestDocumentUploadCreated) Error

func (*CreateServiceRequestDocumentUploadCreated) GetPayload

func (*CreateServiceRequestDocumentUploadCreated) IsClientError

IsClientError returns true when this create service request document upload created response has a 4xx status code

func (*CreateServiceRequestDocumentUploadCreated) IsCode

IsCode returns true when this create service request document upload created response a status code equal to that given

func (*CreateServiceRequestDocumentUploadCreated) IsRedirect

IsRedirect returns true when this create service request document upload created response has a 3xx status code

func (*CreateServiceRequestDocumentUploadCreated) IsServerError

IsServerError returns true when this create service request document upload created response has a 5xx status code

func (*CreateServiceRequestDocumentUploadCreated) IsSuccess

IsSuccess returns true when this create service request document upload created response has a 2xx status code

func (*CreateServiceRequestDocumentUploadCreated) String

type CreateServiceRequestDocumentUploadForbidden

type CreateServiceRequestDocumentUploadForbidden struct {
	Payload *primemessages.ClientError
}

CreateServiceRequestDocumentUploadForbidden describes a response with status code 403, with default header values.

The request was denied.

func NewCreateServiceRequestDocumentUploadForbidden

func NewCreateServiceRequestDocumentUploadForbidden() *CreateServiceRequestDocumentUploadForbidden

NewCreateServiceRequestDocumentUploadForbidden creates a CreateServiceRequestDocumentUploadForbidden with default headers values

func (*CreateServiceRequestDocumentUploadForbidden) Code

Code gets the status code for the create service request document upload forbidden response

func (*CreateServiceRequestDocumentUploadForbidden) Error

func (*CreateServiceRequestDocumentUploadForbidden) GetPayload

func (*CreateServiceRequestDocumentUploadForbidden) IsClientError

IsClientError returns true when this create service request document upload forbidden response has a 4xx status code

func (*CreateServiceRequestDocumentUploadForbidden) IsCode

IsCode returns true when this create service request document upload forbidden response a status code equal to that given

func (*CreateServiceRequestDocumentUploadForbidden) IsRedirect

IsRedirect returns true when this create service request document upload forbidden response has a 3xx status code

func (*CreateServiceRequestDocumentUploadForbidden) IsServerError

IsServerError returns true when this create service request document upload forbidden response has a 5xx status code

func (*CreateServiceRequestDocumentUploadForbidden) IsSuccess

IsSuccess returns true when this create service request document upload forbidden response has a 2xx status code

func (*CreateServiceRequestDocumentUploadForbidden) String

type CreateServiceRequestDocumentUploadInternalServerError

type CreateServiceRequestDocumentUploadInternalServerError struct {
	Payload *primemessages.Error
}

CreateServiceRequestDocumentUploadInternalServerError describes a response with status code 500, with default header values.

A server error occurred.

func NewCreateServiceRequestDocumentUploadInternalServerError

func NewCreateServiceRequestDocumentUploadInternalServerError() *CreateServiceRequestDocumentUploadInternalServerError

NewCreateServiceRequestDocumentUploadInternalServerError creates a CreateServiceRequestDocumentUploadInternalServerError with default headers values

func (*CreateServiceRequestDocumentUploadInternalServerError) Code

Code gets the status code for the create service request document upload internal server error response

func (*CreateServiceRequestDocumentUploadInternalServerError) Error

func (*CreateServiceRequestDocumentUploadInternalServerError) GetPayload

func (*CreateServiceRequestDocumentUploadInternalServerError) IsClientError

IsClientError returns true when this create service request document upload internal server error response has a 4xx status code

func (*CreateServiceRequestDocumentUploadInternalServerError) IsCode

IsCode returns true when this create service request document upload internal server error response a status code equal to that given

func (*CreateServiceRequestDocumentUploadInternalServerError) IsRedirect

IsRedirect returns true when this create service request document upload internal server error response has a 3xx status code

func (*CreateServiceRequestDocumentUploadInternalServerError) IsServerError

IsServerError returns true when this create service request document upload internal server error response has a 5xx status code

func (*CreateServiceRequestDocumentUploadInternalServerError) IsSuccess

IsSuccess returns true when this create service request document upload internal server error response has a 2xx status code

func (*CreateServiceRequestDocumentUploadInternalServerError) String

type CreateServiceRequestDocumentUploadNotFound

type CreateServiceRequestDocumentUploadNotFound struct {
	Payload *primemessages.ClientError
}

CreateServiceRequestDocumentUploadNotFound describes a response with status code 404, with default header values.

The requested resource wasn't found.

func NewCreateServiceRequestDocumentUploadNotFound

func NewCreateServiceRequestDocumentUploadNotFound() *CreateServiceRequestDocumentUploadNotFound

NewCreateServiceRequestDocumentUploadNotFound creates a CreateServiceRequestDocumentUploadNotFound with default headers values

func (*CreateServiceRequestDocumentUploadNotFound) Code

Code gets the status code for the create service request document upload not found response

func (*CreateServiceRequestDocumentUploadNotFound) Error

func (*CreateServiceRequestDocumentUploadNotFound) GetPayload

func (*CreateServiceRequestDocumentUploadNotFound) IsClientError

IsClientError returns true when this create service request document upload not found response has a 4xx status code

func (*CreateServiceRequestDocumentUploadNotFound) IsCode

IsCode returns true when this create service request document upload not found response a status code equal to that given

func (*CreateServiceRequestDocumentUploadNotFound) IsRedirect

IsRedirect returns true when this create service request document upload not found response has a 3xx status code

func (*CreateServiceRequestDocumentUploadNotFound) IsServerError

IsServerError returns true when this create service request document upload not found response has a 5xx status code

func (*CreateServiceRequestDocumentUploadNotFound) IsSuccess

IsSuccess returns true when this create service request document upload not found response has a 2xx status code

func (*CreateServiceRequestDocumentUploadNotFound) String

type CreateServiceRequestDocumentUploadParams

type CreateServiceRequestDocumentUploadParams struct {

	/* File.

	   The file to upload.
	*/
	File runtime.NamedReadCloser

	/* MtoServiceItemID.

	   UUID of the service item to use.
	*/
	MtoServiceItemID string

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

CreateServiceRequestDocumentUploadParams contains all the parameters to send to the API endpoint

for the create service request document upload operation.

Typically these are written to a http.Request.

func NewCreateServiceRequestDocumentUploadParams

func NewCreateServiceRequestDocumentUploadParams() *CreateServiceRequestDocumentUploadParams

NewCreateServiceRequestDocumentUploadParams creates a new CreateServiceRequestDocumentUploadParams 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 NewCreateServiceRequestDocumentUploadParamsWithContext

func NewCreateServiceRequestDocumentUploadParamsWithContext(ctx context.Context) *CreateServiceRequestDocumentUploadParams

NewCreateServiceRequestDocumentUploadParamsWithContext creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a context for a request.

func NewCreateServiceRequestDocumentUploadParamsWithHTTPClient

func NewCreateServiceRequestDocumentUploadParamsWithHTTPClient(client *http.Client) *CreateServiceRequestDocumentUploadParams

NewCreateServiceRequestDocumentUploadParamsWithHTTPClient creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceRequestDocumentUploadParamsWithTimeout

func NewCreateServiceRequestDocumentUploadParamsWithTimeout(timeout time.Duration) *CreateServiceRequestDocumentUploadParams

NewCreateServiceRequestDocumentUploadParamsWithTimeout creates a new CreateServiceRequestDocumentUploadParams object with the ability to set a timeout on a request.

func (*CreateServiceRequestDocumentUploadParams) SetContext

SetContext adds the context to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) SetDefaults

SetDefaults hydrates default values in the create service request document upload params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServiceRequestDocumentUploadParams) SetFile

SetFile adds the file to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) SetMtoServiceItemID

func (o *CreateServiceRequestDocumentUploadParams) SetMtoServiceItemID(mtoServiceItemID string)

SetMtoServiceItemID adds the mtoServiceItemId to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) SetTimeout

SetTimeout adds the timeout to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WithContext

WithContext adds the context to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WithDefaults

WithDefaults hydrates default values in the create service request document upload params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServiceRequestDocumentUploadParams) WithFile

WithFile adds the file to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WithMtoServiceItemID

WithMtoServiceItemID adds the mtoServiceItemID to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WithTimeout

WithTimeout adds the timeout to the create service request document upload params

func (*CreateServiceRequestDocumentUploadParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServiceRequestDocumentUploadReader

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

CreateServiceRequestDocumentUploadReader is a Reader for the CreateServiceRequestDocumentUpload structure.

func (*CreateServiceRequestDocumentUploadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateServiceRequestDocumentUploadUnauthorized

type CreateServiceRequestDocumentUploadUnauthorized struct {
	Payload *primemessages.ClientError
}

CreateServiceRequestDocumentUploadUnauthorized describes a response with status code 401, with default header values.

The request was denied.

func NewCreateServiceRequestDocumentUploadUnauthorized

func NewCreateServiceRequestDocumentUploadUnauthorized() *CreateServiceRequestDocumentUploadUnauthorized

NewCreateServiceRequestDocumentUploadUnauthorized creates a CreateServiceRequestDocumentUploadUnauthorized with default headers values

func (*CreateServiceRequestDocumentUploadUnauthorized) Code

Code gets the status code for the create service request document upload unauthorized response

func (*CreateServiceRequestDocumentUploadUnauthorized) Error

func (*CreateServiceRequestDocumentUploadUnauthorized) GetPayload

func (*CreateServiceRequestDocumentUploadUnauthorized) IsClientError

IsClientError returns true when this create service request document upload unauthorized response has a 4xx status code

func (*CreateServiceRequestDocumentUploadUnauthorized) IsCode

IsCode returns true when this create service request document upload unauthorized response a status code equal to that given

func (*CreateServiceRequestDocumentUploadUnauthorized) IsRedirect

IsRedirect returns true when this create service request document upload unauthorized response has a 3xx status code

func (*CreateServiceRequestDocumentUploadUnauthorized) IsServerError

IsServerError returns true when this create service request document upload unauthorized response has a 5xx status code

func (*CreateServiceRequestDocumentUploadUnauthorized) IsSuccess

IsSuccess returns true when this create service request document upload unauthorized response has a 2xx status code

func (*CreateServiceRequestDocumentUploadUnauthorized) String

type CreateServiceRequestDocumentUploadUnprocessableEntity

type CreateServiceRequestDocumentUploadUnprocessableEntity struct {
	Payload *primemessages.ValidationError
}

CreateServiceRequestDocumentUploadUnprocessableEntity describes a response with status code 422, with default header values.

The request was unprocessable, likely due to bad input from the requester.

func NewCreateServiceRequestDocumentUploadUnprocessableEntity

func NewCreateServiceRequestDocumentUploadUnprocessableEntity() *CreateServiceRequestDocumentUploadUnprocessableEntity

NewCreateServiceRequestDocumentUploadUnprocessableEntity creates a CreateServiceRequestDocumentUploadUnprocessableEntity with default headers values

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) Code

Code gets the status code for the create service request document upload unprocessable entity response

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) Error

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) GetPayload

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsClientError

IsClientError returns true when this create service request document upload unprocessable entity response has a 4xx status code

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsCode

IsCode returns true when this create service request document upload unprocessable entity response a status code equal to that given

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsRedirect

IsRedirect returns true when this create service request document upload unprocessable entity response has a 3xx status code

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsServerError

IsServerError returns true when this create service request document upload unprocessable entity response has a 5xx status code

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) IsSuccess

IsSuccess returns true when this create service request document upload unprocessable entity response has a 2xx status code

func (*CreateServiceRequestDocumentUploadUnprocessableEntity) String

type UpdateMTOServiceItemBadRequest

type UpdateMTOServiceItemBadRequest struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemBadRequest describes a response with status code 400, with default header values.

The request payload is invalid.

func NewUpdateMTOServiceItemBadRequest

func NewUpdateMTOServiceItemBadRequest() *UpdateMTOServiceItemBadRequest

NewUpdateMTOServiceItemBadRequest creates a UpdateMTOServiceItemBadRequest with default headers values

func (*UpdateMTOServiceItemBadRequest) Code

Code gets the status code for the update m t o service item bad request response

func (*UpdateMTOServiceItemBadRequest) Error

func (*UpdateMTOServiceItemBadRequest) GetPayload

func (*UpdateMTOServiceItemBadRequest) IsClientError

func (o *UpdateMTOServiceItemBadRequest) IsClientError() bool

IsClientError returns true when this update m t o service item bad request response has a 4xx status code

func (*UpdateMTOServiceItemBadRequest) IsCode

func (o *UpdateMTOServiceItemBadRequest) IsCode(code int) bool

IsCode returns true when this update m t o service item bad request response a status code equal to that given

func (*UpdateMTOServiceItemBadRequest) IsRedirect

func (o *UpdateMTOServiceItemBadRequest) IsRedirect() bool

IsRedirect returns true when this update m t o service item bad request response has a 3xx status code

func (*UpdateMTOServiceItemBadRequest) IsServerError

func (o *UpdateMTOServiceItemBadRequest) IsServerError() bool

IsServerError returns true when this update m t o service item bad request response has a 5xx status code

func (*UpdateMTOServiceItemBadRequest) IsSuccess

func (o *UpdateMTOServiceItemBadRequest) IsSuccess() bool

IsSuccess returns true when this update m t o service item bad request response has a 2xx status code

func (*UpdateMTOServiceItemBadRequest) String

type UpdateMTOServiceItemConflict

type UpdateMTOServiceItemConflict struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemConflict describes a response with status code 409, with default header values.

The request could not be processed because of conflict in the current state of the resource.

func NewUpdateMTOServiceItemConflict

func NewUpdateMTOServiceItemConflict() *UpdateMTOServiceItemConflict

NewUpdateMTOServiceItemConflict creates a UpdateMTOServiceItemConflict with default headers values

func (*UpdateMTOServiceItemConflict) Code

Code gets the status code for the update m t o service item conflict response

func (*UpdateMTOServiceItemConflict) Error

func (*UpdateMTOServiceItemConflict) GetPayload

func (*UpdateMTOServiceItemConflict) IsClientError

func (o *UpdateMTOServiceItemConflict) IsClientError() bool

IsClientError returns true when this update m t o service item conflict response has a 4xx status code

func (*UpdateMTOServiceItemConflict) IsCode

func (o *UpdateMTOServiceItemConflict) IsCode(code int) bool

IsCode returns true when this update m t o service item conflict response a status code equal to that given

func (*UpdateMTOServiceItemConflict) IsRedirect

func (o *UpdateMTOServiceItemConflict) IsRedirect() bool

IsRedirect returns true when this update m t o service item conflict response has a 3xx status code

func (*UpdateMTOServiceItemConflict) IsServerError

func (o *UpdateMTOServiceItemConflict) IsServerError() bool

IsServerError returns true when this update m t o service item conflict response has a 5xx status code

func (*UpdateMTOServiceItemConflict) IsSuccess

func (o *UpdateMTOServiceItemConflict) IsSuccess() bool

IsSuccess returns true when this update m t o service item conflict response has a 2xx status code

func (*UpdateMTOServiceItemConflict) String

type UpdateMTOServiceItemForbidden

type UpdateMTOServiceItemForbidden struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemForbidden describes a response with status code 403, with default header values.

The request was denied.

func NewUpdateMTOServiceItemForbidden

func NewUpdateMTOServiceItemForbidden() *UpdateMTOServiceItemForbidden

NewUpdateMTOServiceItemForbidden creates a UpdateMTOServiceItemForbidden with default headers values

func (*UpdateMTOServiceItemForbidden) Code

Code gets the status code for the update m t o service item forbidden response

func (*UpdateMTOServiceItemForbidden) Error

func (*UpdateMTOServiceItemForbidden) GetPayload

func (*UpdateMTOServiceItemForbidden) IsClientError

func (o *UpdateMTOServiceItemForbidden) IsClientError() bool

IsClientError returns true when this update m t o service item forbidden response has a 4xx status code

func (*UpdateMTOServiceItemForbidden) IsCode

func (o *UpdateMTOServiceItemForbidden) IsCode(code int) bool

IsCode returns true when this update m t o service item forbidden response a status code equal to that given

func (*UpdateMTOServiceItemForbidden) IsRedirect

func (o *UpdateMTOServiceItemForbidden) IsRedirect() bool

IsRedirect returns true when this update m t o service item forbidden response has a 3xx status code

func (*UpdateMTOServiceItemForbidden) IsServerError

func (o *UpdateMTOServiceItemForbidden) IsServerError() bool

IsServerError returns true when this update m t o service item forbidden response has a 5xx status code

func (*UpdateMTOServiceItemForbidden) IsSuccess

func (o *UpdateMTOServiceItemForbidden) IsSuccess() bool

IsSuccess returns true when this update m t o service item forbidden response has a 2xx status code

func (*UpdateMTOServiceItemForbidden) String

type UpdateMTOServiceItemInternalServerError

type UpdateMTOServiceItemInternalServerError struct {
	Payload *primemessages.Error
}

UpdateMTOServiceItemInternalServerError describes a response with status code 500, with default header values.

A server error occurred.

func NewUpdateMTOServiceItemInternalServerError

func NewUpdateMTOServiceItemInternalServerError() *UpdateMTOServiceItemInternalServerError

NewUpdateMTOServiceItemInternalServerError creates a UpdateMTOServiceItemInternalServerError with default headers values

func (*UpdateMTOServiceItemInternalServerError) Code

Code gets the status code for the update m t o service item internal server error response

func (*UpdateMTOServiceItemInternalServerError) Error

func (*UpdateMTOServiceItemInternalServerError) GetPayload

func (*UpdateMTOServiceItemInternalServerError) IsClientError

func (o *UpdateMTOServiceItemInternalServerError) IsClientError() bool

IsClientError returns true when this update m t o service item internal server error response has a 4xx status code

func (*UpdateMTOServiceItemInternalServerError) IsCode

IsCode returns true when this update m t o service item internal server error response a status code equal to that given

func (*UpdateMTOServiceItemInternalServerError) IsRedirect

IsRedirect returns true when this update m t o service item internal server error response has a 3xx status code

func (*UpdateMTOServiceItemInternalServerError) IsServerError

func (o *UpdateMTOServiceItemInternalServerError) IsServerError() bool

IsServerError returns true when this update m t o service item internal server error response has a 5xx status code

func (*UpdateMTOServiceItemInternalServerError) IsSuccess

IsSuccess returns true when this update m t o service item internal server error response has a 2xx status code

func (*UpdateMTOServiceItemInternalServerError) String

type UpdateMTOServiceItemNotFound

type UpdateMTOServiceItemNotFound struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemNotFound describes a response with status code 404, with default header values.

The requested resource wasn't found.

func NewUpdateMTOServiceItemNotFound

func NewUpdateMTOServiceItemNotFound() *UpdateMTOServiceItemNotFound

NewUpdateMTOServiceItemNotFound creates a UpdateMTOServiceItemNotFound with default headers values

func (*UpdateMTOServiceItemNotFound) Code

Code gets the status code for the update m t o service item not found response

func (*UpdateMTOServiceItemNotFound) Error

func (*UpdateMTOServiceItemNotFound) GetPayload

func (*UpdateMTOServiceItemNotFound) IsClientError

func (o *UpdateMTOServiceItemNotFound) IsClientError() bool

IsClientError returns true when this update m t o service item not found response has a 4xx status code

func (*UpdateMTOServiceItemNotFound) IsCode

func (o *UpdateMTOServiceItemNotFound) IsCode(code int) bool

IsCode returns true when this update m t o service item not found response a status code equal to that given

func (*UpdateMTOServiceItemNotFound) IsRedirect

func (o *UpdateMTOServiceItemNotFound) IsRedirect() bool

IsRedirect returns true when this update m t o service item not found response has a 3xx status code

func (*UpdateMTOServiceItemNotFound) IsServerError

func (o *UpdateMTOServiceItemNotFound) IsServerError() bool

IsServerError returns true when this update m t o service item not found response has a 5xx status code

func (*UpdateMTOServiceItemNotFound) IsSuccess

func (o *UpdateMTOServiceItemNotFound) IsSuccess() bool

IsSuccess returns true when this update m t o service item not found response has a 2xx status code

func (*UpdateMTOServiceItemNotFound) String

type UpdateMTOServiceItemOK

type UpdateMTOServiceItemOK struct {
	Payload primemessages.MTOServiceItem
}

UpdateMTOServiceItemOK describes a response with status code 200, with default header values.

Successfully updated the MTO service item.

func NewUpdateMTOServiceItemOK

func NewUpdateMTOServiceItemOK() *UpdateMTOServiceItemOK

NewUpdateMTOServiceItemOK creates a UpdateMTOServiceItemOK with default headers values

func (*UpdateMTOServiceItemOK) Code

func (o *UpdateMTOServiceItemOK) Code() int

Code gets the status code for the update m t o service item o k response

func (*UpdateMTOServiceItemOK) Error

func (o *UpdateMTOServiceItemOK) Error() string

func (*UpdateMTOServiceItemOK) GetPayload

func (*UpdateMTOServiceItemOK) IsClientError

func (o *UpdateMTOServiceItemOK) IsClientError() bool

IsClientError returns true when this update m t o service item o k response has a 4xx status code

func (*UpdateMTOServiceItemOK) IsCode

func (o *UpdateMTOServiceItemOK) IsCode(code int) bool

IsCode returns true when this update m t o service item o k response a status code equal to that given

func (*UpdateMTOServiceItemOK) IsRedirect

func (o *UpdateMTOServiceItemOK) IsRedirect() bool

IsRedirect returns true when this update m t o service item o k response has a 3xx status code

func (*UpdateMTOServiceItemOK) IsServerError

func (o *UpdateMTOServiceItemOK) IsServerError() bool

IsServerError returns true when this update m t o service item o k response has a 5xx status code

func (*UpdateMTOServiceItemOK) IsSuccess

func (o *UpdateMTOServiceItemOK) IsSuccess() bool

IsSuccess returns true when this update m t o service item o k response has a 2xx status code

func (*UpdateMTOServiceItemOK) String

func (o *UpdateMTOServiceItemOK) String() string

type UpdateMTOServiceItemParams

type UpdateMTOServiceItemParams 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 primemessages.UpdateMTOServiceItem

	/* MtoServiceItemID.

	   UUID of service item to update.
	*/
	MtoServiceItemID string

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

UpdateMTOServiceItemParams contains all the parameters to send to the API endpoint

for the update m t o service item operation.

Typically these are written to a http.Request.

func NewUpdateMTOServiceItemParams

func NewUpdateMTOServiceItemParams() *UpdateMTOServiceItemParams

NewUpdateMTOServiceItemParams creates a new UpdateMTOServiceItemParams 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 NewUpdateMTOServiceItemParamsWithContext

func NewUpdateMTOServiceItemParamsWithContext(ctx context.Context) *UpdateMTOServiceItemParams

NewUpdateMTOServiceItemParamsWithContext creates a new UpdateMTOServiceItemParams object with the ability to set a context for a request.

func NewUpdateMTOServiceItemParamsWithHTTPClient

func NewUpdateMTOServiceItemParamsWithHTTPClient(client *http.Client) *UpdateMTOServiceItemParams

NewUpdateMTOServiceItemParamsWithHTTPClient creates a new UpdateMTOServiceItemParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateMTOServiceItemParamsWithTimeout

func NewUpdateMTOServiceItemParamsWithTimeout(timeout time.Duration) *UpdateMTOServiceItemParams

NewUpdateMTOServiceItemParamsWithTimeout creates a new UpdateMTOServiceItemParams object with the ability to set a timeout on a request.

func (*UpdateMTOServiceItemParams) SetBody

SetBody adds the body to the update m t o service item params

func (*UpdateMTOServiceItemParams) SetContext

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

SetContext adds the context to the update m t o service item params

func (*UpdateMTOServiceItemParams) SetDefaults

func (o *UpdateMTOServiceItemParams) SetDefaults()

SetDefaults hydrates default values in the update m t o service item params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMTOServiceItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update m t o service item params

func (*UpdateMTOServiceItemParams) SetIfMatch

func (o *UpdateMTOServiceItemParams) SetIfMatch(ifMatch string)

SetIfMatch adds the ifMatch to the update m t o service item params

func (*UpdateMTOServiceItemParams) SetMtoServiceItemID

func (o *UpdateMTOServiceItemParams) SetMtoServiceItemID(mtoServiceItemID string)

SetMtoServiceItemID adds the mtoServiceItemId to the update m t o service item params

func (*UpdateMTOServiceItemParams) SetTimeout

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

SetTimeout adds the timeout to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithBody

WithBody adds the body to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithContext

WithContext adds the context to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithDefaults

WithDefaults hydrates default values in the update m t o service item params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateMTOServiceItemParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithIfMatch

WithIfMatch adds the ifMatch to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithMtoServiceItemID

func (o *UpdateMTOServiceItemParams) WithMtoServiceItemID(mtoServiceItemID string) *UpdateMTOServiceItemParams

WithMtoServiceItemID adds the mtoServiceItemID to the update m t o service item params

func (*UpdateMTOServiceItemParams) WithTimeout

WithTimeout adds the timeout to the update m t o service item params

func (*UpdateMTOServiceItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateMTOServiceItemPreconditionFailed

type UpdateMTOServiceItemPreconditionFailed struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemPreconditionFailed 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.

func NewUpdateMTOServiceItemPreconditionFailed

func NewUpdateMTOServiceItemPreconditionFailed() *UpdateMTOServiceItemPreconditionFailed

NewUpdateMTOServiceItemPreconditionFailed creates a UpdateMTOServiceItemPreconditionFailed with default headers values

func (*UpdateMTOServiceItemPreconditionFailed) Code

Code gets the status code for the update m t o service item precondition failed response

func (*UpdateMTOServiceItemPreconditionFailed) Error

func (*UpdateMTOServiceItemPreconditionFailed) GetPayload

func (*UpdateMTOServiceItemPreconditionFailed) IsClientError

func (o *UpdateMTOServiceItemPreconditionFailed) IsClientError() bool

IsClientError returns true when this update m t o service item precondition failed response has a 4xx status code

func (*UpdateMTOServiceItemPreconditionFailed) IsCode

IsCode returns true when this update m t o service item precondition failed response a status code equal to that given

func (*UpdateMTOServiceItemPreconditionFailed) IsRedirect

IsRedirect returns true when this update m t o service item precondition failed response has a 3xx status code

func (*UpdateMTOServiceItemPreconditionFailed) IsServerError

func (o *UpdateMTOServiceItemPreconditionFailed) IsServerError() bool

IsServerError returns true when this update m t o service item precondition failed response has a 5xx status code

func (*UpdateMTOServiceItemPreconditionFailed) IsSuccess

IsSuccess returns true when this update m t o service item precondition failed response has a 2xx status code

func (*UpdateMTOServiceItemPreconditionFailed) String

type UpdateMTOServiceItemReader

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

UpdateMTOServiceItemReader is a Reader for the UpdateMTOServiceItem structure.

func (*UpdateMTOServiceItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateMTOServiceItemUnauthorized

type UpdateMTOServiceItemUnauthorized struct {
	Payload *primemessages.ClientError
}

UpdateMTOServiceItemUnauthorized describes a response with status code 401, with default header values.

The request was denied.

func NewUpdateMTOServiceItemUnauthorized

func NewUpdateMTOServiceItemUnauthorized() *UpdateMTOServiceItemUnauthorized

NewUpdateMTOServiceItemUnauthorized creates a UpdateMTOServiceItemUnauthorized with default headers values

func (*UpdateMTOServiceItemUnauthorized) Code

Code gets the status code for the update m t o service item unauthorized response

func (*UpdateMTOServiceItemUnauthorized) Error

func (*UpdateMTOServiceItemUnauthorized) GetPayload

func (*UpdateMTOServiceItemUnauthorized) IsClientError

func (o *UpdateMTOServiceItemUnauthorized) IsClientError() bool

IsClientError returns true when this update m t o service item unauthorized response has a 4xx status code

func (*UpdateMTOServiceItemUnauthorized) IsCode

func (o *UpdateMTOServiceItemUnauthorized) IsCode(code int) bool

IsCode returns true when this update m t o service item unauthorized response a status code equal to that given

func (*UpdateMTOServiceItemUnauthorized) IsRedirect

func (o *UpdateMTOServiceItemUnauthorized) IsRedirect() bool

IsRedirect returns true when this update m t o service item unauthorized response has a 3xx status code

func (*UpdateMTOServiceItemUnauthorized) IsServerError

func (o *UpdateMTOServiceItemUnauthorized) IsServerError() bool

IsServerError returns true when this update m t o service item unauthorized response has a 5xx status code

func (*UpdateMTOServiceItemUnauthorized) IsSuccess

func (o *UpdateMTOServiceItemUnauthorized) IsSuccess() bool

IsSuccess returns true when this update m t o service item unauthorized response has a 2xx status code

func (*UpdateMTOServiceItemUnauthorized) String

type UpdateMTOServiceItemUnprocessableEntity

type UpdateMTOServiceItemUnprocessableEntity struct {
	Payload *primemessages.ValidationError
}

UpdateMTOServiceItemUnprocessableEntity describes a response with status code 422, with default header values.

The request was unprocessable, likely due to bad input from the requester.

func NewUpdateMTOServiceItemUnprocessableEntity

func NewUpdateMTOServiceItemUnprocessableEntity() *UpdateMTOServiceItemUnprocessableEntity

NewUpdateMTOServiceItemUnprocessableEntity creates a UpdateMTOServiceItemUnprocessableEntity with default headers values

func (*UpdateMTOServiceItemUnprocessableEntity) Code

Code gets the status code for the update m t o service item unprocessable entity response

func (*UpdateMTOServiceItemUnprocessableEntity) Error

func (*UpdateMTOServiceItemUnprocessableEntity) GetPayload

func (*UpdateMTOServiceItemUnprocessableEntity) IsClientError

func (o *UpdateMTOServiceItemUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update m t o service item unprocessable entity response has a 4xx status code

func (*UpdateMTOServiceItemUnprocessableEntity) IsCode

IsCode returns true when this update m t o service item unprocessable entity response a status code equal to that given

func (*UpdateMTOServiceItemUnprocessableEntity) IsRedirect

IsRedirect returns true when this update m t o service item unprocessable entity response has a 3xx status code

func (*UpdateMTOServiceItemUnprocessableEntity) IsServerError

func (o *UpdateMTOServiceItemUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update m t o service item unprocessable entity response has a 5xx status code

func (*UpdateMTOServiceItemUnprocessableEntity) IsSuccess

IsSuccess returns true when this update m t o service item unprocessable entity response has a 2xx status code

func (*UpdateMTOServiceItemUnprocessableEntity) String

Jump to

Keyboard shortcuts

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