Documentation ¶
Overview ¶
Package delivery_sdk provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.
Package delivery_sdk provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateOpenRobotLidCommandRequest(server string, deliveryJobUuid openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateOpenRobotLidCommandRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewCreateOrderRequest(server string, body CreateOrderJSONRequestBody) (*http.Request, error)
- func NewCreateOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetDeliveryJobCurrentCourierRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)
- func NewGetDeliveryJobRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)
- func NewGetJobsForOrderRequest(server string, orderUuid openapi_types.UUID) (*http.Request, error)
- func NewGetOrderByExternalIdRequest(server string, externalId string) (*http.Request, error)
- func NewGetOrderRequest(server string, orderUuid openapi_types.UUID) (*http.Request, error)
- func NewPostJobCancelledRequest(server string, deliveryJobUuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPostJobCancelledRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewPostOrderDroppedOffRequest(server string, deliveryJobUuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPostOrderDroppedOffRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewPostOrderPickedUpRequest(server string, deliveryJobUuid openapi_types.UUID, ...) (*http.Request, error)
- func NewPostOrderPickedUpRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewRequestQuoteRequest(server string, body RequestQuoteJSONRequestBody) (*http.Request, error)
- func NewRequestQuoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetWebhooksRequest(server string, body SetWebhooksJSONRequestBody) (*http.Request, error)
- func NewSetWebhooksRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AddressDescription
- type Client
- func (c *Client) CreateOpenRobotLidCommand(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateOpenRobotLidCommandWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateOrder(ctx context.Context, body CreateOrderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateOrderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetDeliveryJob(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetDeliveryJobCurrentCourier(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetJobsForOrder(ctx context.Context, orderUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetOrder(ctx context.Context, orderUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetOrderByExternalId(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PostJobCancelled(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PostJobCancelledWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) PostOrderDroppedOff(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PostOrderDroppedOffWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) PostOrderPickedUp(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) PostOrderPickedUpWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) RequestQuote(ctx context.Context, body RequestQuoteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RequestQuoteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetWebhooks(ctx context.Context, body SetWebhooksJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetWebhooksWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateOpenRobotLidCommandWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*CreateOpenRobotLidCommandResponse, error)
- func (c *ClientWithResponses) CreateOpenRobotLidCommandWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*CreateOpenRobotLidCommandResponse, error)
- func (c *ClientWithResponses) CreateOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOrderResponse, error)
- func (c *ClientWithResponses) CreateOrderWithResponse(ctx context.Context, body CreateOrderJSONRequestBody, ...) (*CreateOrderResponse, error)
- func (c *ClientWithResponses) GetDeliveryJobCurrentCourierWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*GetDeliveryJobCurrentCourierResponse, error)
- func (c *ClientWithResponses) GetDeliveryJobWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*GetDeliveryJobResponse, error)
- func (c *ClientWithResponses) GetJobsForOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, ...) (*GetJobsForOrderResponse, error)
- func (c *ClientWithResponses) GetOrderByExternalIdWithResponse(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*GetOrderByExternalIdResponse, error)
- func (c *ClientWithResponses) GetOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, ...) (*GetOrderResponse, error)
- func (c *ClientWithResponses) PostJobCancelledWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*PostJobCancelledResponse, error)
- func (c *ClientWithResponses) PostJobCancelledWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*PostJobCancelledResponse, error)
- func (c *ClientWithResponses) PostOrderDroppedOffWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*PostOrderDroppedOffResponse, error)
- func (c *ClientWithResponses) PostOrderDroppedOffWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*PostOrderDroppedOffResponse, error)
- func (c *ClientWithResponses) PostOrderPickedUpWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, ...) (*PostOrderPickedUpResponse, error)
- func (c *ClientWithResponses) PostOrderPickedUpWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, ...) (*PostOrderPickedUpResponse, error)
- func (c *ClientWithResponses) RequestQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RequestQuoteResponse, error)
- func (c *ClientWithResponses) RequestQuoteWithResponse(ctx context.Context, body RequestQuoteJSONRequestBody, ...) (*RequestQuoteResponse, error)
- func (c *ClientWithResponses) SetWebhooksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetWebhooksResponse, error)
- func (c *ClientWithResponses) SetWebhooksWithResponse(ctx context.Context, body SetWebhooksJSONRequestBody, ...) (*SetWebhooksResponse, error)
- type ClientWithResponsesInterface
- type CompleteAddress
- type Courier
- type CourierDestination
- type CourierEvent
- type CourierEventKind
- type CourierState
- type CourierType
- type CreateOpenRobotLidCommandJSONBody
- type CreateOpenRobotLidCommandJSONRequestBody
- type CreateOpenRobotLidCommandResponse
- type CreateOrderClientErrorResponse
- type CreateOrderJSONBody
- type CreateOrderJSONRequestBody
- type CreateOrderResponse
- type DeliveryCharges
- type DeliveryJob
- type DeliveryJobEvent
- type DeliveryJobEventKind
- type DeliveryJobPackageHolder
- type DeliveryJobStage
- type DeliveryOrder
- type DeliveryOrderCreationRequest
- type DeliveryOrderParty
- type DeliveryOrderQuote
- type DeliveryOrderQuoteRequest
- type DeliveryOrderRejection
- type DeliveryOrderRejectionReason
- type DeliveryOrderStatus
- type DeliveryService
- type DeliveryServiceNotifyParty
- type GeocodeLogEntry
- type GeocodedAddress
- type GetDeliveryJobCurrentCourierResponse
- type GetDeliveryJobResponse
- type GetJobsForOrderResponse
- type GetOrderByExternalIdResponse
- type GetOrderResponse
- type HttpRequestDoer
- type InvalidClientActionError
- type InvalidClientActionErrorReason
- type PostJobCancelledJSONBody
- type PostJobCancelledJSONRequestBody
- type PostJobCancelledResponse
- type PostOrderDroppedOffJSONBody
- type PostOrderDroppedOffJSONRequestBody
- type PostOrderDroppedOffResponse
- type PostOrderPickedUpJSONBody
- type PostOrderPickedUpJSONRequestBody
- type PostOrderPickedUpResponse
- type RequestEditorFn
- type RequestQuoteClientErrorResponse
- type RequestQuoteJSONBody
- type RequestQuoteJSONRequestBody
- type RequestQuoteResponse
- type SetWebhookError
- type SetWebhookErrorReason
- type SetWebhooksJSONBody
- type SetWebhooksJSONRequestBody
- type SetWebhooksResponse
- type TimeWindow
- type Webhook
- type Webhooks
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateOpenRobotLidCommandRequest ¶
func NewCreateOpenRobotLidCommandRequest(server string, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody) (*http.Request, error)
NewCreateOpenRobotLidCommandRequest calls the generic CreateOpenRobotLidCommand builder with application/json body
func NewCreateOpenRobotLidCommandRequestWithBody ¶
func NewCreateOpenRobotLidCommandRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateOpenRobotLidCommandRequestWithBody generates requests for CreateOpenRobotLidCommand with any type of body
func NewCreateOrderRequest ¶
func NewCreateOrderRequest(server string, body CreateOrderJSONRequestBody) (*http.Request, error)
NewCreateOrderRequest calls the generic CreateOrder builder with application/json body
func NewCreateOrderRequestWithBody ¶
func NewCreateOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateOrderRequestWithBody generates requests for CreateOrder with any type of body
func NewGetDeliveryJobCurrentCourierRequest ¶
func NewGetDeliveryJobCurrentCourierRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)
NewGetDeliveryJobCurrentCourierRequest generates requests for GetDeliveryJobCurrentCourier
func NewGetDeliveryJobRequest ¶
func NewGetDeliveryJobRequest(server string, deliveryJobUuid openapi_types.UUID) (*http.Request, error)
NewGetDeliveryJobRequest generates requests for GetDeliveryJob
func NewGetJobsForOrderRequest ¶
NewGetJobsForOrderRequest generates requests for GetJobsForOrder
func NewGetOrderByExternalIdRequest ¶
NewGetOrderByExternalIdRequest generates requests for GetOrderByExternalId
func NewGetOrderRequest ¶
NewGetOrderRequest generates requests for GetOrder
func NewPostJobCancelledRequest ¶
func NewPostJobCancelledRequest(server string, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody) (*http.Request, error)
NewPostJobCancelledRequest calls the generic PostJobCancelled builder with application/json body
func NewPostJobCancelledRequestWithBody ¶
func NewPostJobCancelledRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewPostJobCancelledRequestWithBody generates requests for PostJobCancelled with any type of body
func NewPostOrderDroppedOffRequest ¶
func NewPostOrderDroppedOffRequest(server string, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody) (*http.Request, error)
NewPostOrderDroppedOffRequest calls the generic PostOrderDroppedOff builder with application/json body
func NewPostOrderDroppedOffRequestWithBody ¶
func NewPostOrderDroppedOffRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewPostOrderDroppedOffRequestWithBody generates requests for PostOrderDroppedOff with any type of body
func NewPostOrderPickedUpRequest ¶
func NewPostOrderPickedUpRequest(server string, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody) (*http.Request, error)
NewPostOrderPickedUpRequest calls the generic PostOrderPickedUp builder with application/json body
func NewPostOrderPickedUpRequestWithBody ¶
func NewPostOrderPickedUpRequestWithBody(server string, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewPostOrderPickedUpRequestWithBody generates requests for PostOrderPickedUp with any type of body
func NewRequestQuoteRequest ¶
func NewRequestQuoteRequest(server string, body RequestQuoteJSONRequestBody) (*http.Request, error)
NewRequestQuoteRequest calls the generic RequestQuote builder with application/json body
func NewRequestQuoteRequestWithBody ¶
func NewRequestQuoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRequestQuoteRequestWithBody generates requests for RequestQuote with any type of body
func NewSetWebhooksRequest ¶
func NewSetWebhooksRequest(server string, body SetWebhooksJSONRequestBody) (*http.Request, error)
NewSetWebhooksRequest calls the generic SetWebhooks builder with application/json body
Types ¶
type AddressDescription ¶
type AddressDescription struct { AddressLine1 string `json:"addressLine1"` AddressLine2 *string `json:"addressLine2,omitempty"` Country string `json:"country"` EstablishmentName *string `json:"establishmentName,omitempty"` Locality string `json:"locality"` PostalCode string `json:"postalCode"` State string `json:"state"` }
AddressDescription defines model for AddressDescription.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateOpenRobotLidCommand ¶
func (c *Client) CreateOpenRobotLidCommand(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOpenRobotLidCommandWithBody ¶
func (*Client) CreateOrder ¶
func (c *Client) CreateOrder(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOrderWithBody ¶
func (*Client) GetDeliveryJob ¶
func (c *Client) GetDeliveryJob(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDeliveryJobCurrentCourier ¶
func (c *Client) GetDeliveryJobCurrentCourier(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetJobsForOrder ¶
func (c *Client) GetJobsForOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrder ¶
func (c *Client) GetOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrderByExternalId ¶
func (*Client) PostJobCancelled ¶
func (c *Client) PostJobCancelled(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostJobCancelledWithBody ¶
func (*Client) PostOrderDroppedOff ¶
func (c *Client) PostOrderDroppedOff(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostOrderDroppedOffWithBody ¶
func (*Client) PostOrderPickedUp ¶
func (c *Client) PostOrderPickedUp(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostOrderPickedUpWithBody ¶
func (*Client) RequestQuote ¶
func (c *Client) RequestQuote(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RequestQuoteWithBody ¶
func (*Client) SetWebhooks ¶
func (c *Client) SetWebhooks(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetDeliveryJob request GetDeliveryJob(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // PostJobCancelled request with any body PostJobCancelledWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostJobCancelled(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDeliveryJobCurrentCourier request GetDeliveryJobCurrentCourier(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateOpenRobotLidCommand request with any body CreateOpenRobotLidCommandWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateOpenRobotLidCommand(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostOrderDroppedOff request with any body PostOrderDroppedOffWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostOrderDroppedOff(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostOrderPickedUp request with any body PostOrderPickedUpWithBody(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostOrderPickedUp(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOrderByExternalId request GetOrderByExternalId(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateOrder request with any body CreateOrderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateOrder(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetOrder request GetOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetJobsForOrder request GetJobsForOrder(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // RequestQuote request with any body RequestQuoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) RequestQuote(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // SetWebhooks request with any body SetWebhooksWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) SetWebhooks(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithAPIKeyAuthentication ¶
func WithAPIKeyAuthentication(apiKey string) ClientOption
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateOpenRobotLidCommandWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOpenRobotLidCommandWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)
CreateOpenRobotLidCommandWithBodyWithResponse request with arbitrary body returning *CreateOpenRobotLidCommandResponse
func (*ClientWithResponses) CreateOpenRobotLidCommandWithResponse ¶
func (c *ClientWithResponses) CreateOpenRobotLidCommandWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error)
func (*ClientWithResponses) CreateOrderWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)
CreateOrderWithBodyWithResponse request with arbitrary body returning *CreateOrderResponse
func (*ClientWithResponses) CreateOrderWithResponse ¶
func (c *ClientWithResponses) CreateOrderWithResponse(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error)
func (*ClientWithResponses) GetDeliveryJobCurrentCourierWithResponse ¶
func (c *ClientWithResponses) GetDeliveryJobCurrentCourierWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobCurrentCourierResponse, error)
GetDeliveryJobCurrentCourierWithResponse request returning *GetDeliveryJobCurrentCourierResponse
func (*ClientWithResponses) GetDeliveryJobWithResponse ¶
func (c *ClientWithResponses) GetDeliveryJobWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobResponse, error)
GetDeliveryJobWithResponse request returning *GetDeliveryJobResponse
func (*ClientWithResponses) GetJobsForOrderWithResponse ¶
func (c *ClientWithResponses) GetJobsForOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobsForOrderResponse, error)
GetJobsForOrderWithResponse request returning *GetJobsForOrderResponse
func (*ClientWithResponses) GetOrderByExternalIdWithResponse ¶
func (c *ClientWithResponses) GetOrderByExternalIdWithResponse(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*GetOrderByExternalIdResponse, error)
GetOrderByExternalIdWithResponse request returning *GetOrderByExternalIdResponse
func (*ClientWithResponses) GetOrderWithResponse ¶
func (c *ClientWithResponses) GetOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrderResponse, error)
GetOrderWithResponse request returning *GetOrderResponse
func (*ClientWithResponses) PostJobCancelledWithBodyWithResponse ¶
func (c *ClientWithResponses) PostJobCancelledWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)
PostJobCancelledWithBodyWithResponse request with arbitrary body returning *PostJobCancelledResponse
func (*ClientWithResponses) PostJobCancelledWithResponse ¶
func (c *ClientWithResponses) PostJobCancelledWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error)
func (*ClientWithResponses) PostOrderDroppedOffWithBodyWithResponse ¶
func (c *ClientWithResponses) PostOrderDroppedOffWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)
PostOrderDroppedOffWithBodyWithResponse request with arbitrary body returning *PostOrderDroppedOffResponse
func (*ClientWithResponses) PostOrderDroppedOffWithResponse ¶
func (c *ClientWithResponses) PostOrderDroppedOffWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error)
func (*ClientWithResponses) PostOrderPickedUpWithBodyWithResponse ¶
func (c *ClientWithResponses) PostOrderPickedUpWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)
PostOrderPickedUpWithBodyWithResponse request with arbitrary body returning *PostOrderPickedUpResponse
func (*ClientWithResponses) PostOrderPickedUpWithResponse ¶
func (c *ClientWithResponses) PostOrderPickedUpWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error)
func (*ClientWithResponses) RequestQuoteWithBodyWithResponse ¶
func (c *ClientWithResponses) RequestQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)
RequestQuoteWithBodyWithResponse request with arbitrary body returning *RequestQuoteResponse
func (*ClientWithResponses) RequestQuoteWithResponse ¶
func (c *ClientWithResponses) RequestQuoteWithResponse(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error)
func (*ClientWithResponses) SetWebhooksWithBodyWithResponse ¶
func (c *ClientWithResponses) SetWebhooksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)
SetWebhooksWithBodyWithResponse request with arbitrary body returning *SetWebhooksResponse
func (*ClientWithResponses) SetWebhooksWithResponse ¶
func (c *ClientWithResponses) SetWebhooksWithResponse(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetDeliveryJob request GetDeliveryJobWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobResponse, error) // PostJobCancelled request with any body PostJobCancelledWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error) PostJobCancelledWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostJobCancelledJSONRequestBody, reqEditors ...RequestEditorFn) (*PostJobCancelledResponse, error) // GetDeliveryJobCurrentCourier request GetDeliveryJobCurrentCourierWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDeliveryJobCurrentCourierResponse, error) // CreateOpenRobotLidCommand request with any body CreateOpenRobotLidCommandWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error) CreateOpenRobotLidCommandWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body CreateOpenRobotLidCommandJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOpenRobotLidCommandResponse, error) // PostOrderDroppedOff request with any body PostOrderDroppedOffWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error) PostOrderDroppedOffWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderDroppedOffJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderDroppedOffResponse, error) // PostOrderPickedUp request with any body PostOrderPickedUpWithBodyWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error) PostOrderPickedUpWithResponse(ctx context.Context, deliveryJobUuid openapi_types.UUID, body PostOrderPickedUpJSONRequestBody, reqEditors ...RequestEditorFn) (*PostOrderPickedUpResponse, error) // GetOrderByExternalId request GetOrderByExternalIdWithResponse(ctx context.Context, externalId string, reqEditors ...RequestEditorFn) (*GetOrderByExternalIdResponse, error) // CreateOrder request with any body CreateOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error) CreateOrderWithResponse(ctx context.Context, body CreateOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrderResponse, error) // GetOrder request GetOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrderResponse, error) // GetJobsForOrder request GetJobsForOrderWithResponse(ctx context.Context, orderUuid openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetJobsForOrderResponse, error) // RequestQuote request with any body RequestQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error) RequestQuoteWithResponse(ctx context.Context, body RequestQuoteJSONRequestBody, reqEditors ...RequestEditorFn) (*RequestQuoteResponse, error) // SetWebhooks request with any body SetWebhooksWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error) SetWebhooksWithResponse(ctx context.Context, body SetWebhooksJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhooksResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompleteAddress ¶
type CompleteAddress struct { AddressDescription AddressDescription `json:"addressDescription"` GeocodedAddress GeocodedAddress `json:"geocodedAddress"` }
CompleteAddress defines model for CompleteAddress.
type Courier ¶
type Courier struct { ActiveDeliveryUuid openapi_types.UUID `json:"activeDeliveryUuid"` Destination *CourierDestination `json:"destination,omitempty"` IsAcceptingDeliveries bool `json:"isAcceptingDeliveries"` LastKnownPosition *GeocodeLogEntry `json:"lastKnownPosition,omitempty"` Name string `json:"name"` State CourierState `json:"state"` Type CourierType `json:"type"` Uuid openapi_types.UUID `json:"uuid"` }
Courier defines model for Courier.
type CourierDestination ¶
type CourierDestination struct { Eta *time.Time `json:"eta,omitempty"` GeocodedAddress GeocodedAddress `json:"geocodedAddress"` }
CourierDestination defines model for CourierDestination.
type CourierEvent ¶
type CourierEvent struct { Courier Courier `json:"courier"` CourierBefore *Courier `json:"courierBefore,omitempty"` Kind CourierEventKind `json:"kind"` ProducedAt time.Time `json:"producedAt"` Uuid openapi_types.UUID `json:"uuid"` }
CourierEvent defines model for CourierEvent.
type CourierEventKind ¶
type CourierEventKind string
CourierEventKind defines model for CourierEvent.Kind.
const ( CourierEventKindCourierAbortedDelivery CourierEventKind = "courier-aborted-delivery" CourierEventKindCourierAcceptedDeliveryOffer CourierEventKind = "courier-accepted-delivery-offer" CourierEventKindCourierArrivedAtDropOff CourierEventKind = "courier-arrived-at-drop-off" CourierEventKindCourierArrivedAtPickUp CourierEventKind = "courier-arrived-at-pick-up" CourierEventKindCourierDelegatedActiveDelivery CourierEventKind = "courier-delegated-active-delivery" CourierEventKindCourierDroppedOffPackage CourierEventKind = "courier-dropped-off-package" CourierEventKindCourierHandedOverPackage CourierEventKind = "courier-handed-over-package" CourierEventKindCourierLeftForDropOff CourierEventKind = "courier-left-for-drop-off" CourierEventKindCourierLeftForPickUp CourierEventKind = "courier-left-for-pick-up" CourierEventKindCourierPickedUpPackage CourierEventKind = "courier-picked-up-package" CourierEventKindCourierPositionChanged CourierEventKind = "courier-position-changed" CourierEventKindCourierPreparedToHandOver CourierEventKind = "courier-prepared-to-hand-over" CourierEventKindCourierReceivedDeliveryOffer CourierEventKind = "courier-received-delivery-offer" CourierEventKindCourierRejectedDeliveryOffer CourierEventKind = "courier-rejected-delivery-offer" CourierEventKindCourierStartedAcceptingDeliveries CourierEventKind = "courier-started-accepting-deliveries" CourierEventKindCourierStoppedAcceptingDeliveries CourierEventKind = "courier-stopped-accepting-deliveries" )
Defines values for CourierEventKind.
type CourierState ¶
type CourierState string
CourierState defines model for Courier.State.
const ( CourierStateAnalyzingDeliveryOffer CourierState = "analyzing-delivery-offer" CourierStateEnRouteToDropOff CourierState = "en-route-to-drop-off" CourierStateEnRouteToPickUp CourierState = "en-route-to-pick-up" CourierStatePlanningDropOffRoute CourierState = "planning-drop-off-route" CourierStatePlanningPickUpRoute CourierState = "planning-pick-up-route" CourierStateUnspecified CourierState = "unspecified" CourierStateWaitingForDropOff CourierState = "waiting-for-drop-off" CourierStateWaitingForPickUp CourierState = "waiting-for-pick-up" CourierStateWaitingToHandOver CourierState = "waiting-to-hand-over" )
Defines values for CourierState.
type CourierType ¶
type CourierType string
CourierType defines model for Courier.Type.
const ( CourierTypeConventional CourierType = "conventional" CourierTypeRobot CourierType = "robot" )
Defines values for CourierType.
type CreateOpenRobotLidCommandJSONBody ¶
type CreateOpenRobotLidCommandJSONBody interface{}
CreateOpenRobotLidCommandJSONBody defines parameters for CreateOpenRobotLidCommand.
type CreateOpenRobotLidCommandJSONRequestBody ¶
type CreateOpenRobotLidCommandJSONRequestBody CreateOpenRobotLidCommandJSONBody
CreateOpenRobotLidCommandJSONRequestBody defines body for CreateOpenRobotLidCommand for application/json ContentType.
type CreateOpenRobotLidCommandResponse ¶
type CreateOpenRobotLidCommandResponse struct { Body []byte HTTPResponse *http.Response JSON400 *InvalidClientActionError }
func ParseCreateOpenRobotLidCommandResponse ¶
func ParseCreateOpenRobotLidCommandResponse(rsp *http.Response) (*CreateOpenRobotLidCommandResponse, error)
ParseCreateOpenRobotLidCommandResponse parses an HTTP response from a CreateOpenRobotLidCommandWithResponse call
func (CreateOpenRobotLidCommandResponse) Status ¶
func (r CreateOpenRobotLidCommandResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOpenRobotLidCommandResponse) StatusCode ¶
func (r CreateOpenRobotLidCommandResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOrderClientErrorResponse ¶
type CreateOrderClientErrorResponse interface{}
CreateOrderClientErrorResponse defines model for CreateOrderClientErrorResponse.
type CreateOrderJSONBody ¶
type CreateOrderJSONBody DeliveryOrderCreationRequest
CreateOrderJSONBody defines parameters for CreateOrder.
type CreateOrderJSONRequestBody ¶
type CreateOrderJSONRequestBody CreateOrderJSONBody
CreateOrderJSONRequestBody defines body for CreateOrder for application/json ContentType.
type CreateOrderResponse ¶
type CreateOrderResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeliveryOrder JSON400 *CreateOrderClientErrorResponse }
func ParseCreateOrderResponse ¶
func ParseCreateOrderResponse(rsp *http.Response) (*CreateOrderResponse, error)
ParseCreateOrderResponse parses an HTTP response from a CreateOrderWithResponse call
func (CreateOrderResponse) Status ¶
func (r CreateOrderResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOrderResponse) StatusCode ¶
func (r CreateOrderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeliveryCharges ¶
type DeliveryCharges struct {
TotalInCents int32 `json:"totalInCents"`
}
DeliveryCharges defines model for DeliveryCharges.
type DeliveryJob ¶
type DeliveryJob struct { CompletedAt *time.Time `json:"completedAt,omitempty"` CurrentCourierUUID *openapi_types.UUID `json:"currentCourierUUID,omitempty"` DeliveryCharges DeliveryCharges `json:"deliveryCharges"` DeliveryOrderUUID openapi_types.UUID `json:"deliveryOrderUUID"` DropOffAddress CompleteAddress `json:"dropOffAddress"` DropOffEstimatedAt time.Time `json:"dropOffEstimatedAt"` NextCourierUUID *openapi_types.UUID `json:"nextCourierUUID,omitempty"` PackageHolder DeliveryJobPackageHolder `json:"packageHolder"` PickUpAddress CompleteAddress `json:"pickUpAddress"` PickUpEstimatedAt time.Time `json:"pickUpEstimatedAt"` Stage DeliveryJobStage `json:"stage"` Uuid openapi_types.UUID `json:"uuid"` }
DeliveryJob defines model for DeliveryJob.
type DeliveryJobEvent ¶
type DeliveryJobEvent struct { DeliveryJob DeliveryJob `json:"deliveryJob"` DeliveryJobBefore *DeliveryJob `json:"deliveryJobBefore,omitempty"` Kind DeliveryJobEventKind `json:"kind"` ProducedAt time.Time `json:"producedAt"` Uuid openapi_types.UUID `json:"uuid"` }
DeliveryJobEvent defines model for DeliveryJobEvent.
type DeliveryJobEventKind ¶
type DeliveryJobEventKind string
DeliveryJobEventKind defines model for DeliveryJobEvent.Kind.
const ( DeliveryJobEventKindDeliveryCanceled DeliveryJobEventKind = "delivery-canceled" DeliveryJobEventKindDeliveryCompleted DeliveryJobEventKind = "delivery-completed" DeliveryJobEventKindDeliveryHandedOver DeliveryJobEventKind = "delivery-handed-over" DeliveryJobEventKindDeliveryJobAcceptedByNextCourier DeliveryJobEventKind = "delivery-job-accepted-by-next-courier" DeliveryJobEventKindDeliveryJobAssigned DeliveryJobEventKind = "delivery-job-assigned" DeliveryJobEventKindDeliveryJobCreated DeliveryJobEventKind = "delivery-job-created" DeliveryJobEventKindDeliveryJobDelegatedToNextCourier DeliveryJobEventKind = "delivery-job-delegated-to-next-courier" DeliveryJobEventKindDeliveryJobOfferedToCourier DeliveryJobEventKind = "delivery-job-offered-to-courier" DeliveryJobEventKindDeliveryJobOfferedToNextCourier DeliveryJobEventKind = "delivery-job-offered-to-next-courier" DeliveryJobEventKindDeliveryJobRejectedByCourier DeliveryJobEventKind = "delivery-job-rejected-by-courier" DeliveryJobEventKindDeliveryJobRejectedByNextCourier DeliveryJobEventKind = "delivery-job-rejected-by-next-courier" DeliveryJobEventKindDeliveryJobUnassigned DeliveryJobEventKind = "delivery-job-unassigned" DeliveryJobEventKindDeliveryPickedUp DeliveryJobEventKind = "delivery-picked-up" DeliveryJobEventKindReceivedNewCourierPosition DeliveryJobEventKind = "received-new-courier-position" DeliveryJobEventKindUnassignedNextCourier DeliveryJobEventKind = "unassigned-next-courier" )
Defines values for DeliveryJobEventKind.
type DeliveryJobPackageHolder ¶
type DeliveryJobPackageHolder string
DeliveryJobPackageHolder defines model for DeliveryJob.PackageHolder.
const ( DeliveryJobPackageHolderCourier DeliveryJobPackageHolder = "courier" DeliveryJobPackageHolderReceiver DeliveryJobPackageHolder = "receiver" DeliveryJobPackageHolderShipper DeliveryJobPackageHolder = "shipper" DeliveryJobPackageHolderUnknown DeliveryJobPackageHolder = "unknown" )
Defines values for DeliveryJobPackageHolder.
type DeliveryJobStage ¶
type DeliveryJobStage string
DeliveryJobStage defines model for DeliveryJob.Stage.
const ( DeliveryJobStageCourierAssignment DeliveryJobStage = "courier-assignment" DeliveryJobStageDeliveryCanceled DeliveryJobStage = "delivery-canceled" DeliveryJobStageDeliveryCompleted DeliveryJobStage = "delivery-completed" DeliveryJobStageDropOff DeliveryJobStage = "drop-off" DeliveryJobStagePickUp DeliveryJobStage = "pick-up" )
Defines values for DeliveryJobStage.
type DeliveryOrder ¶
type DeliveryOrder struct { DeliveryCharges DeliveryCharges `json:"deliveryCharges"` DropOff DeliveryService `json:"dropOff"` ExternalID string `json:"externalID"` IsMock bool `json:"isMock"` PickUp DeliveryService `json:"pickUp"` ReceivedAt time.Time `json:"receivedAt"` Receiver DeliveryOrderParty `json:"receiver"` Shipper DeliveryOrderParty `json:"shipper"` Status DeliveryOrderStatus `json:"status"` Uuid openapi_types.UUID `json:"uuid"` }
DeliveryOrder defines model for DeliveryOrder.
type DeliveryOrderCreationRequest ¶
type DeliveryOrderCreationRequest struct { DropOffAddress CompleteAddress `json:"dropOffAddress"` DropOffDeadlineAt *time.Time `json:"dropOffDeadlineAt,omitempty"` DropOffNotes *string `json:"dropOffNotes,omitempty"` DropOffNotifyParty *DeliveryServiceNotifyParty `json:"dropOffNotifyParty,omitempty"` ExternalID string `json:"externalID"` IsMock *bool `json:"isMock,omitempty"` PickUpAddress CompleteAddress `json:"pickUpAddress"` PickUpAfter *time.Time `json:"pickUpAfter,omitempty"` PickUpDeadlineAt *time.Time `json:"pickUpDeadlineAt,omitempty"` PickUpNotes *string `json:"pickUpNotes,omitempty"` PickUpNotifyParty *DeliveryServiceNotifyParty `json:"pickUpNotifyParty,omitempty"` Receiver DeliveryOrderParty `json:"receiver"` Shipper DeliveryOrderParty `json:"shipper"` }
DeliveryOrderCreationRequest defines model for DeliveryOrderCreationRequest.
type DeliveryOrderParty ¶
type DeliveryOrderParty struct { Email *string `json:"email,omitempty"` IsBusiness bool `json:"isBusiness"` Name string `json:"name"` PhoneNumber *string `json:"phoneNumber,omitempty"` }
DeliveryOrderParty defines model for DeliveryOrderParty.
type DeliveryOrderQuote ¶
type DeliveryOrderQuote struct { DeliveryCharges DeliveryCharges `json:"deliveryCharges"` DropOffAddress CompleteAddress `json:"dropOffAddress"` DropOffAfter time.Time `json:"dropOffAfter"` DropOffDeadlineAt time.Time `json:"dropOffDeadlineAt"` EstimatedDropOffWindow TimeWindow `json:"estimatedDropOffWindow"` EstimatedPickUpWindow TimeWindow `json:"estimatedPickUpWindow"` GoodUntil time.Time `json:"goodUntil"` IsMock bool `json:"isMock"` PickUpAddress CompleteAddress `json:"pickUpAddress"` PickUpAfter time.Time `json:"pickUpAfter"` PickUpDeadlineAt time.Time `json:"pickUpDeadlineAt"` ReceivedAt time.Time `json:"receivedAt"` Uuid openapi_types.UUID `json:"uuid"` }
DeliveryOrderQuote defines model for DeliveryOrderQuote.
type DeliveryOrderQuoteRequest ¶
type DeliveryOrderQuoteRequest struct { DropOffAddress GeocodedAddress `json:"dropOffAddress"` IsMock *bool `json:"isMock,omitempty"` PickUpAddress GeocodedAddress `json:"pickUpAddress"` }
DeliveryOrderQuoteRequest defines model for DeliveryOrderQuoteRequest.
type DeliveryOrderRejection ¶
type DeliveryOrderRejection struct { Message string `json:"message"` Reason DeliveryOrderRejectionReason `json:"reason"` }
DeliveryOrderRejection defines model for DeliveryOrderRejection.
type DeliveryOrderRejectionReason ¶
type DeliveryOrderRejectionReason string
DeliveryOrderRejectionReason defines model for DeliveryOrderRejection.Reason.
const ( DeliveryOrderRejectionReasonDeliveryDistanceTooLarge DeliveryOrderRejectionReason = "delivery-distance-too-large" DeliveryOrderRejectionReasonDropOffOutsideDeliveryArea DeliveryOrderRejectionReason = "drop-off-outside-delivery-area" DeliveryOrderRejectionReasonNoCapacity DeliveryOrderRejectionReason = "no-capacity" DeliveryOrderRejectionReasonOutsideDeliveryArea DeliveryOrderRejectionReason = "outside-delivery-area" DeliveryOrderRejectionReasonPickUpOutsideDeliveryArea DeliveryOrderRejectionReason = "pick-up-outside-delivery-area" DeliveryOrderRejectionReasonScheduledDeliveryNotSupported DeliveryOrderRejectionReason = "scheduled-delivery-not-supported" )
Defines values for DeliveryOrderRejectionReason.
type DeliveryOrderStatus ¶
type DeliveryOrderStatus string
DeliveryOrderStatus defines model for DeliveryOrder.Status.
const ( DeliveryOrderStatusOrderAccepted DeliveryOrderStatus = "order-accepted" DeliveryOrderStatusOrderCanceled DeliveryOrderStatus = "order-canceled" DeliveryOrderStatusOrderReceived DeliveryOrderStatus = "order-received" DeliveryOrderStatusOrderRejected DeliveryOrderStatus = "order-rejected" )
Defines values for DeliveryOrderStatus.
type DeliveryService ¶
type DeliveryService struct { Address CompleteAddress `json:"address"` DeadlineAt time.Time `json:"deadlineAt"` IsSelfServiceAvailable bool `json:"isSelfServiceAvailable"` Notes string `json:"notes"` NotifyParty DeliveryServiceNotifyParty `json:"notifyParty"` ServiceAfter time.Time `json:"serviceAfter"` }
DeliveryService defines model for DeliveryService.
type DeliveryServiceNotifyParty ¶
type DeliveryServiceNotifyParty struct { Email *string `json:"email,omitempty"` Name *string `json:"name,omitempty"` PhoneNumber *string `json:"phoneNumber,omitempty"` }
DeliveryServiceNotifyParty defines model for DeliveryServiceNotifyParty.
type GeocodeLogEntry ¶
type GeocodeLogEntry struct { GeocodedAddress GeocodedAddress `json:"geocodedAddress"` RecordedAt time.Time `json:"recordedAt"` }
GeocodeLogEntry defines model for GeocodeLogEntry.
type GeocodedAddress ¶
type GeocodedAddress struct { GooglePlaceID *string `json:"googlePlaceID,omitempty"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` }
GeocodedAddress defines model for GeocodedAddress.
type GetDeliveryJobCurrentCourierResponse ¶
type GetDeliveryJobCurrentCourierResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Courier }
func ParseGetDeliveryJobCurrentCourierResponse ¶
func ParseGetDeliveryJobCurrentCourierResponse(rsp *http.Response) (*GetDeliveryJobCurrentCourierResponse, error)
ParseGetDeliveryJobCurrentCourierResponse parses an HTTP response from a GetDeliveryJobCurrentCourierWithResponse call
func (GetDeliveryJobCurrentCourierResponse) Status ¶
func (r GetDeliveryJobCurrentCourierResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeliveryJobCurrentCourierResponse) StatusCode ¶
func (r GetDeliveryJobCurrentCourierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeliveryJobResponse ¶
type GetDeliveryJobResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeliveryJob }
func ParseGetDeliveryJobResponse ¶
func ParseGetDeliveryJobResponse(rsp *http.Response) (*GetDeliveryJobResponse, error)
ParseGetDeliveryJobResponse parses an HTTP response from a GetDeliveryJobWithResponse call
func (GetDeliveryJobResponse) Status ¶
func (r GetDeliveryJobResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeliveryJobResponse) StatusCode ¶
func (r GetDeliveryJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetJobsForOrderResponse ¶
type GetJobsForOrderResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]DeliveryJob }
func ParseGetJobsForOrderResponse ¶
func ParseGetJobsForOrderResponse(rsp *http.Response) (*GetJobsForOrderResponse, error)
ParseGetJobsForOrderResponse parses an HTTP response from a GetJobsForOrderWithResponse call
func (GetJobsForOrderResponse) Status ¶
func (r GetJobsForOrderResponse) Status() string
Status returns HTTPResponse.Status
func (GetJobsForOrderResponse) StatusCode ¶
func (r GetJobsForOrderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrderByExternalIdResponse ¶
type GetOrderByExternalIdResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeliveryOrder }
func ParseGetOrderByExternalIdResponse ¶
func ParseGetOrderByExternalIdResponse(rsp *http.Response) (*GetOrderByExternalIdResponse, error)
ParseGetOrderByExternalIdResponse parses an HTTP response from a GetOrderByExternalIdWithResponse call
func (GetOrderByExternalIdResponse) Status ¶
func (r GetOrderByExternalIdResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrderByExternalIdResponse) StatusCode ¶
func (r GetOrderByExternalIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrderResponse ¶
type GetOrderResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeliveryOrder }
func ParseGetOrderResponse ¶
func ParseGetOrderResponse(rsp *http.Response) (*GetOrderResponse, error)
ParseGetOrderResponse parses an HTTP response from a GetOrderWithResponse call
func (GetOrderResponse) Status ¶
func (r GetOrderResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrderResponse) StatusCode ¶
func (r GetOrderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InvalidClientActionError ¶
type InvalidClientActionError struct { Message string `json:"message"` Reason InvalidClientActionErrorReason `json:"reason"` }
InvalidClientActionError defines model for InvalidClientActionError.
type InvalidClientActionErrorReason ¶
type InvalidClientActionErrorReason string
InvalidClientActionErrorReason defines model for InvalidClientActionError.Reason.
const ( InvalidClientActionErrorReasonDeactivatedClient InvalidClientActionErrorReason = "deactivated-client" InvalidClientActionErrorReasonInvalidArgument InvalidClientActionErrorReason = "invalid-argument" )
Defines values for InvalidClientActionErrorReason.
type PostJobCancelledJSONBody ¶
type PostJobCancelledJSONBody interface{}
PostJobCancelledJSONBody defines parameters for PostJobCancelled.
type PostJobCancelledJSONRequestBody ¶
type PostJobCancelledJSONRequestBody PostJobCancelledJSONBody
PostJobCancelledJSONRequestBody defines body for PostJobCancelled for application/json ContentType.
type PostJobCancelledResponse ¶
type PostJobCancelledResponse struct { Body []byte HTTPResponse *http.Response JSON400 *InvalidClientActionError }
func ParsePostJobCancelledResponse ¶
func ParsePostJobCancelledResponse(rsp *http.Response) (*PostJobCancelledResponse, error)
ParsePostJobCancelledResponse parses an HTTP response from a PostJobCancelledWithResponse call
func (PostJobCancelledResponse) Status ¶
func (r PostJobCancelledResponse) Status() string
Status returns HTTPResponse.Status
func (PostJobCancelledResponse) StatusCode ¶
func (r PostJobCancelledResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOrderDroppedOffJSONBody ¶
type PostOrderDroppedOffJSONBody interface{}
PostOrderDroppedOffJSONBody defines parameters for PostOrderDroppedOff.
type PostOrderDroppedOffJSONRequestBody ¶
type PostOrderDroppedOffJSONRequestBody PostOrderDroppedOffJSONBody
PostOrderDroppedOffJSONRequestBody defines body for PostOrderDroppedOff for application/json ContentType.
type PostOrderDroppedOffResponse ¶
type PostOrderDroppedOffResponse struct { Body []byte HTTPResponse *http.Response JSON400 *InvalidClientActionError }
func ParsePostOrderDroppedOffResponse ¶
func ParsePostOrderDroppedOffResponse(rsp *http.Response) (*PostOrderDroppedOffResponse, error)
ParsePostOrderDroppedOffResponse parses an HTTP response from a PostOrderDroppedOffWithResponse call
func (PostOrderDroppedOffResponse) Status ¶
func (r PostOrderDroppedOffResponse) Status() string
Status returns HTTPResponse.Status
func (PostOrderDroppedOffResponse) StatusCode ¶
func (r PostOrderDroppedOffResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostOrderPickedUpJSONBody ¶
type PostOrderPickedUpJSONBody interface{}
PostOrderPickedUpJSONBody defines parameters for PostOrderPickedUp.
type PostOrderPickedUpJSONRequestBody ¶
type PostOrderPickedUpJSONRequestBody PostOrderPickedUpJSONBody
PostOrderPickedUpJSONRequestBody defines body for PostOrderPickedUp for application/json ContentType.
type PostOrderPickedUpResponse ¶
type PostOrderPickedUpResponse struct { Body []byte HTTPResponse *http.Response JSON400 *InvalidClientActionError }
func ParsePostOrderPickedUpResponse ¶
func ParsePostOrderPickedUpResponse(rsp *http.Response) (*PostOrderPickedUpResponse, error)
ParsePostOrderPickedUpResponse parses an HTTP response from a PostOrderPickedUpWithResponse call
func (PostOrderPickedUpResponse) Status ¶
func (r PostOrderPickedUpResponse) Status() string
Status returns HTTPResponse.Status
func (PostOrderPickedUpResponse) StatusCode ¶
func (r PostOrderPickedUpResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestQuoteClientErrorResponse ¶
type RequestQuoteClientErrorResponse interface{}
RequestQuoteClientErrorResponse defines model for RequestQuoteClientErrorResponse.
type RequestQuoteJSONBody ¶
type RequestQuoteJSONBody DeliveryOrderQuoteRequest
RequestQuoteJSONBody defines parameters for RequestQuote.
type RequestQuoteJSONRequestBody ¶
type RequestQuoteJSONRequestBody RequestQuoteJSONBody
RequestQuoteJSONRequestBody defines body for RequestQuote for application/json ContentType.
type RequestQuoteResponse ¶
type RequestQuoteResponse struct { Body []byte HTTPResponse *http.Response JSON200 *DeliveryOrderQuote JSON400 *RequestQuoteClientErrorResponse }
func ParseRequestQuoteResponse ¶
func ParseRequestQuoteResponse(rsp *http.Response) (*RequestQuoteResponse, error)
ParseRequestQuoteResponse parses an HTTP response from a RequestQuoteWithResponse call
func (RequestQuoteResponse) Status ¶
func (r RequestQuoteResponse) Status() string
Status returns HTTPResponse.Status
func (RequestQuoteResponse) StatusCode ¶
func (r RequestQuoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetWebhookError ¶
type SetWebhookError struct { Message string `json:"message"` Reason SetWebhookErrorReason `json:"reason"` }
SetWebhookError defines model for SetWebhookError.
type SetWebhookErrorReason ¶
type SetWebhookErrorReason string
SetWebhookErrorReason defines model for SetWebhookError.Reason.
const (
SetWebhookErrorReasonInvalidUrl SetWebhookErrorReason = "invalid-url"
)
Defines values for SetWebhookErrorReason.
type SetWebhooksJSONBody ¶
type SetWebhooksJSONBody Webhooks
SetWebhooksJSONBody defines parameters for SetWebhooks.
type SetWebhooksJSONRequestBody ¶
type SetWebhooksJSONRequestBody SetWebhooksJSONBody
SetWebhooksJSONRequestBody defines body for SetWebhooks for application/json ContentType.
type SetWebhooksResponse ¶
type SetWebhooksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Webhooks JSON400 *SetWebhookError }
func ParseSetWebhooksResponse ¶
func ParseSetWebhooksResponse(rsp *http.Response) (*SetWebhooksResponse, error)
ParseSetWebhooksResponse parses an HTTP response from a SetWebhooksWithResponse call
func (SetWebhooksResponse) Status ¶
func (r SetWebhooksResponse) Status() string
Status returns HTTPResponse.Status
func (SetWebhooksResponse) StatusCode ¶
func (r SetWebhooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TimeWindow ¶
TimeWindow defines model for TimeWindow.